content: {-# LANGUAGE ApplicativeDo #-}
  {-# OPTIONS_GHC -Wno-unused-imports #-}
  
  module Domain.Types.FRFSSearch where
  
  import qualified BecknV2.FRFS.Enums
  import Data.Aeson
  import qualified Domain.Types.IntegratedBPPConfig
  import qualified Domain.Types.Merchant
  import qualified Domain.Types.MerchantOperatingCity
  import qualified Domain.Types.PartnerOrganization
  import qualified Domain.Types.Person
  import qualified Domain.Types.RecentLocation
  import Kernel.Prelude
  import qualified Kernel.Types.Id
  import qualified Tools.Beam.UtilsTH
  
  data FRFSSearch = FRFSSearch
    { fromStationCode :: Kernel.Prelude.Text,
      id :: Kernel.Types.Id.Id Domain.Types.FRFSSearch.FRFSSearch,
      integratedBppConfigId :: Kernel.Types.Id.Id Domain.Types.IntegratedBPPConfig.IntegratedBPPConfig,
      isOnSearchReceived :: Kernel.Prelude.Maybe Kernel.Prelude.Bool,
      merchantId :: Kernel.Types.Id.Id Domain.Types.Merchant.Merchant,
      merchantOperatingCityId :: Kernel.Types.Id.Id Domain.Types.MerchantOperatingCity.MerchantOperatingCity,
      multimodalSearchRequestId :: Kernel.Prelude.Maybe Kernel.Prelude.Text,
      onSearchFailed :: Kernel.Prelude.Maybe Kernel.Prelude.Bool,
      partnerOrgId :: Kernel.Prelude.Maybe (Kernel.Types.Id.Id Domain.Types.PartnerOrganization.PartnerOrganization),
      partnerOrgTransactionId :: Kernel.Prelude.Maybe (Kernel.Types.Id.Id Domain.Types.PartnerOrganization.PartnerOrgTransaction),
      quantity :: Kernel.Prelude.Int,
      recentLocationId :: Kernel.Prelude.Maybe (Kernel.Types.Id.Id Domain.Types.RecentLocation.RecentLocation),
      riderId :: Kernel.Types.Id.Id Domain.Types.Person.Person,
      routeCode :: Kernel.Prelude.Maybe Kernel.Prelude.Text,
      searchAsParentStops :: Kernel.Prelude.Maybe Kernel.Prelude.Bool,
      toStationCode :: Kernel.Prelude.Text,
      validTill :: Kernel.Prelude.Maybe Kernel.Prelude.UTCTime,
      vehicleType :: BecknV2.FRFS.Enums.VehicleCategory,
      createdAt :: Kernel.Prelude.UTCTime,
      updatedAt :: Kernel.Prelude.UTCTime
    }
    deriving (Generic, Show, ToJSON, FromJSON, ToSchema)
  