content: {-# LANGUAGE ApplicativeDo #-}
  {-# OPTIONS_GHC -Wno-unused-imports #-}
  
  module Domain.Types.FRFSTicketCategoryMetadataConfig where
  
  import qualified BecknV2.FRFS.Enums
  import Data.Aeson
  import qualified Domain.Types.FRFSQuoteCategorySpec
  import qualified Domain.Types.Merchant
  import qualified Domain.Types.MerchantOperatingCity
  import Kernel.Prelude
  import qualified Kernel.Types.Id
  import qualified Tools.Beam.UtilsTH
  
  data FRFSTicketCategoryMetadataConfig = FRFSTicketCategoryMetadataConfig
    { category :: Domain.Types.FRFSTicketCategoryMetadataConfig.FRFSQuoteCategoryType,
      code :: Kernel.Prelude.Text,
      description :: Kernel.Prelude.Text,
      domainCategoryValue :: Domain.Types.FRFSQuoteCategorySpec.OfferedValue,
      id :: Kernel.Types.Id.Id Domain.Types.FRFSTicketCategoryMetadataConfig.FRFSTicketCategoryMetadataConfig,
      merchantId :: Kernel.Types.Id.Id Domain.Types.Merchant.Merchant,
      merchantOperatingCityId :: Kernel.Types.Id.Id Domain.Types.MerchantOperatingCity.MerchantOperatingCity,
      title :: Kernel.Prelude.Text,
      tnc :: Kernel.Prelude.Text,
      vehicleCategory :: BecknV2.FRFS.Enums.VehicleCategory,
      createdAt :: Kernel.Prelude.UTCTime,
      updatedAt :: Kernel.Prelude.UTCTime
    }
    deriving (Generic, Show, ToJSON, FromJSON, ToSchema)
  
  data FRFSQuoteCategoryType = ADULT | CHILD | SENIOR_CITIZEN | STUDENT | FEMALE | MALE deriving (Eq, Ord, Show, Read, Generic, ToJSON, FromJSON, ToSchema)
  
  $(Tools.Beam.UtilsTH.mkBeamInstancesForEnumAndList ''FRFSQuoteCategoryType)
  