module Text.HTML5.MetaData.Schema.Offer where
import Text.HTML5.MetaData.Class
import Text.HTML5.MetaData.Type
import Data.Text
import Data.Typeable
import qualified Text.HTML5.MetaData.Schema.Thing
import qualified Text.HTML5.MetaData.Schema.Intangible
import qualified Text.HTML5.MetaData.Schema.AggregateOffer
data Offer = Offer { acceptedPaymentMethod :: AcceptedPaymentMethod
, addOn :: AddOn
, advanceBookingRequirement :: AdvanceBookingRequirement
, aggregateRating :: AggregateRating
, areaServed :: AreaServed
, availability :: Availability
, availabilityEnds :: AvailabilityEnds
, availabilityStarts :: AvailabilityStarts
, availableAtOrFrom :: AvailableAtOrFrom
, availableDeliveryMethod :: AvailableDeliveryMethod
, businessFunction :: BusinessFunction
, category :: Category
, deliveryLeadTime :: DeliveryLeadTime
, eligibleCustomerType :: EligibleCustomerType
, eligibleDuration :: EligibleDuration
, eligibleQuantity :: EligibleQuantity
, eligibleRegion :: EligibleRegion
, eligibleTransactionVolume :: EligibleTransactionVolume
, gtin12 :: Gtin12
, gtin13 :: Gtin13
, gtin14 :: Gtin14
, gtin8 :: Gtin8
, includesObject :: IncludesObject
, ineligibleRegion :: IneligibleRegion
, inventoryLevel :: InventoryLevel
, itemCondition :: ItemCondition
, itemOffered :: ItemOffered
, mpn :: Mpn
, offeredBy :: OfferedBy
, price :: Price
, priceCurrency :: PriceCurrency
, priceSpecification :: PriceSpecification
, priceValidUntil :: PriceValidUntil
, review :: Review
, seller :: Seller
, serialNumber :: SerialNumber
, sku :: Sku
, validFrom :: ValidFrom
, validThrough :: ValidThrough
, warranty :: Warranty
, additionalType :: AdditionalType
, alternateName :: AlternateName
, description :: Description
, image :: Image
, mainEntityOfPage :: MainEntityOfPage
, name :: Name
, potentialAction :: PotentialAction
, sameAs :: SameAs
, url :: Url
}
deriving (Show, Read, Eq, Typeable)
instance MetaData Offer where
_label = const "Offer"
_comment_plain = const "An offer to transfer some rights to an item or to provide a service—for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book. For GTIN-related fields, see Check Digit calculator and validation guide from GS1."
_comment = const "An offer to transfer some rights to an item or to provide a service—for example, an offer to sell tickets to an event, to rent the DVD of a movie, to stream a TV show over the internet, to repair a motorcycle, or to loan a book. <br/><br/> For <a href=\"http://www.gs1.org/barcodes/technical/idkeys/gtin\">GTIN</a>-related fields, see <a href=\"http://www.gs1.org/barcodes/support/check_digit_calculator\">Check Digit calculator</a> and <a href=\"http://www.gs1us.org/resources/standards/gtin-validation-guide\">validation guide</a> from <a href=\"http://www.gs1.org/\">GS1</a>."
_url = const "http://schema.org/Offer"
_ancestors = const [typeOf (undefined :: Text.HTML5.MetaData.Schema.Thing.Thing)
,typeOf (undefined :: Text.HTML5.MetaData.Schema.Intangible.Intangible)]
_subtypes = const [typeOf (undefined :: Text.HTML5.MetaData.Schema.AggregateOffer.AggregateOffer)]
_supertypes = const [typeOf (undefined :: Text.HTML5.MetaData.Schema.Intangible.Intangible)]