SchemaOffer class
//www.gs1.org/). See https://schema.org/Offer
Constructors
- SchemaOffer.new({dynamic acceptedPaymentMethod, SchemaOffer? addOn, SchemaPropertyValue? additionalProperty, SchemaQuantitativeValue? advanceBookingRequirement, SchemaAggregateRating? aggregateRating, dynamic areaServed, String? asin, SchemaItemAvailability? availability, String? availabilityEnds, String? availabilityStarts, SchemaPlace? availableAtOrFrom, SchemaDeliveryMethod? availableDeliveryMethod, SchemaBusinessFunction? businessFunction, dynamic category, String? checkoutPageURLTemplate, SchemaQuantitativeValue? deliveryLeadTime, SchemaBusinessEntityType? eligibleCustomerType, SchemaQuantitativeValue? eligibleDuration, SchemaQuantitativeValue? eligibleQuantity, dynamic eligibleRegion, SchemaPriceSpecification? eligibleTransactionVolume, String? gtin, String? gtin12, String? gtin13, String? gtin14, String? gtin8, SchemaAdultOrientedEnumeration? hasAdultConsideration, SchemaQuantitativeValue? hasMeasurement, SchemaMerchantReturnPolicy? hasMerchantReturnPolicy, SchemaTypeAndQuantityNode? includesObject, dynamic ineligibleRegion, SchemaQuantitativeValue? inventoryLevel, bool? isFamilyFriendly, SchemaOfferItemCondition? itemCondition, dynamic itemOffered, dynamic leaseLength, String? mobileUrl, String? mpn, dynamic offeredBy, dynamic price, String? priceCurrency, SchemaPriceSpecification? priceSpecification, String? priceValidUntil, SchemaReview? review, SchemaReview? reviews, dynamic seller, String? serialNumber, SchemaOfferShippingDetails? shippingDetails, String? sku, String? validFrom, String? validThrough, SchemaWarrantyPromise? warranty, String? additionalType, String? alternateName, dynamic description, String? disambiguatingDescription, dynamic identifier, dynamic image, dynamic mainEntityOfPage, String? name, SchemaAction? potentialAction, String? sameAs, dynamic subjectOf, String? url})
- Create a new instance of SchemaOffer
Properties
- acceptedPaymentMethod ↔ dynamic
-
The payment method(s) accepted by seller for this offer.
Supported types:
LoanOrCredit
,PaymentMethod
getter/setter pair - additionalProperty ↔ SchemaPropertyValue?
-
//schema.org/gtin13, ...) will typically expect such data to be
provided using those properties, rather than using the generic
property/value mechanism.
getter/setter pair
- additionalType ↔ String?
-
//schema.org/docs/styleguide.html">style guide. Supported
types: String, String
getter/setter pair
- addOn ↔ SchemaOffer?
-
An additional offer that can only be obtained in combination
with the first base offer (e.g supplements and extensions that
are available for a surcharge).
getter/setter pair
- advanceBookingRequirement ↔ SchemaQuantitativeValue?
-
The amount of time that is required between accepting the offer
and the actual usage of the resource or service.
getter/setter pair
- aggregateRating ↔ SchemaAggregateRating?
-
The overall rating, based on a collection of reviews or ratings,
of the item.
getter/setter pair
- alternateName ↔ String?
-
An alias for the item.
getter/setter pair
- areaServed ↔ dynamic
-
The geographic area where a service or offered item is provided.
Supported types:
AdministrativeArea
,GeoShape
,Place
, Stringgetter/setter pair - asin ↔ String?
-
//en.wikipedia.org/wiki/Amazon_Standard_Identification_Number)'s
article) Note also that this is a definition for how to include
ASINs in Schema.org data, and not a definition of ASINs in
general - see documentation from Amazon for authoritative
details ASINs are most commonly encoded as text strings, but the
asin property supports URL/URI as potential values too.
Supported types: String, String
getter/setter pair
- availability ↔ SchemaItemAvailability?
-
The availability of this item—for example In stock, Out
of stock, Pre-order, etc.
getter/setter pair
- availabilityEnds ↔ String?
-
The end of the availability of the product or service included
in the offer. Supported types: String, String, String
getter/setter pair
- availabilityStarts ↔ String?
-
The beginning of the availability of the product or service
included in the offer. Supported types: String, String,
String
getter/setter pair
- availableAtOrFrom ↔ SchemaPlace?
-
The place(s) from which the offer can be obtained (e.g store
locations).
getter/setter pair
- availableDeliveryMethod ↔ SchemaDeliveryMethod?
-
The delivery method(s) available for this offer.
getter/setter pair
- businessFunction ↔ SchemaBusinessFunction?
-
//purl.org/goodrelations/v1#Sell.
getter/setter pair
- category ↔ dynamic
-
A category for the item Greater signs or slashes can be used to
informally indicate a category hierarchy. Supported types:
CategoryCode
,PhysicalActivityCategory
, String, String,Thing
getter/setter pair - checkoutPageURLTemplate ↔ String?
-
A URL template (RFC 6570) for a checkout page for an offer This
approach allows merchants to specify a URL for online checkout
of the offered product, by interpolating parameters such as the
logged in user ID, product ID, quantity, discount code etc
Parameter naming and standardization are not specified here.
getter/setter pair
- deliveryLeadTime ↔ SchemaQuantitativeValue?
-
The typical delay between the receipt of the order and the goods
either leaving the warehouse or being prepared for pickup, in
case the delivery method is on site pickup.
getter/setter pair
- description ↔ dynamic
-
A description of the item. Supported types: String,
TextObject
getter/setter pair - disambiguatingDescription ↔ String?
-
A sub property of description A short description of the item
used to disambiguate from other, similar items Information from
other properties (in particular, name) may be necessary for the
description to be useful for disambiguation.
getter/setter pair
- eligibleCustomerType ↔ SchemaBusinessEntityType?
-
The type(s) of customers for which the given offer is valid.
getter/setter pair
- eligibleDuration ↔ SchemaQuantitativeValue?
-
The duration for which the given offer is valid.
getter/setter pair
- eligibleQuantity ↔ SchemaQuantitativeValue?
-
The interval and unit of measurement of ordering quantities for
which the offer or price specification is valid This allows e.g
specifying that a certain freight charge is valid only for a
certain quantity.
getter/setter pair
- eligibleRegion ↔ dynamic
-
The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the
place, or the GeoShape for the geo-political region(s) for which
the offer or delivery charge specification is valid.\n\nSee also
[ineligibleRegion] Supported types:
GeoShape
,Place
, Stringgetter/setter pair - eligibleTransactionVolume ↔ SchemaPriceSpecification?
-
The transaction volume, in a monetary unit, for which the offer
or price specification is valid, e.g for indicating a minimal
purchasing volume, to express free shipping above a certain
order volume, or to limit the acceptance of credit cards to
purchases to a certain minimal amount.
getter/setter pair
- gtin ↔ String?
-
//en.wikipedia.org/wiki/Global_Trade_Item_Number) for more
details Left-padding of the gtin values is not required or
encouraged The [gtin] property generalizes the earlier
[gtin8], [gtin12], [gtin13], and [gtin14] properties
Note also that this is a definition for how to include GTINs in
Schema.org data, and not a definition of GTINs in general - see
the GS1 documentation for authoritative details. Supported
types: String, String
getter/setter pair
- gtin12 ↔ String?
-
//www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
getter/setter pair
- gtin13 ↔ String?
-
//www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
getter/setter pair
- gtin14 ↔ String?
-
//www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
getter/setter pair
- gtin8 ↔ String?
-
//www.gs1.org/barcodes/technical/idkeys/gtin) for more details.
getter/setter pair
- hasAdultConsideration ↔ SchemaAdultOrientedEnumeration?
-
Used to tag an item to be intended or suitable for consumption
or use by adults only.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMeasurement ↔ SchemaQuantitativeValue?
-
A measurement of an item, For example, the inseam of pants, the
wheel size of a bicycle, the gauge of a screw, or the carbon
footprint measured for certification by an authority Usually an
exact measurement, but can also be a range of measurements for
adjustable products, for example belts and ski bindings.
getter/setter pair
- hasMerchantReturnPolicy ↔ SchemaMerchantReturnPolicy?
-
Specifies a MerchantReturnPolicy that may be applicable.
getter/setter pair
- identifier ↔ dynamic
-
The identifier property represents any kind of identifier for
any kind of [
Thing
], such as ISBNs, GTIN codes, UUIDs etc Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links See background notes for more details Supported types:PropertyValue
, String, Stringgetter/setter pair - image ↔ dynamic
-
An image of the item This can be a [
URL
] or a fully described [ImageObject
]. Supported types:ImageObject
, Stringgetter/setter pair - includesObject ↔ SchemaTypeAndQuantityNode?
-
This links to a node or nodes indicating the exact quantity of
the products included in an [
Offer
] or [ProductCollection
].getter/setter pair - ineligibleRegion ↔ dynamic
-
The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the
place, or the GeoShape for the geo-political region(s) for which
the offer or delivery charge specification is not valid, e.g a
region where the transaction is not allowed.\n\nSee also
[eligibleRegion] Supported types:
GeoShape
,Place
, Stringgetter/setter pair - inventoryLevel ↔ SchemaQuantitativeValue?
-
The current approximate inventory level for the item or items.
getter/setter pair
- isFamilyFriendly ↔ bool?
-
Indicates whether this content is family friendly.
getter/setter pair
- itemCondition ↔ SchemaOfferItemCondition?
-
A predefined value from OfferItemCondition specifying the
condition of the product or service, or the products or services
included in the offer Also used for product return policies to
specify the condition of products accepted for returns.
getter/setter pair
- itemOffered ↔ dynamic
-
An item being offered (or demanded) The transactional nature of
the offer or demand is documented using [businessFunction],
e.g sell, lease etc While several common expected types are
listed explicitly in this definition, others can be used Using a
second type, such as Product or a subtype of Product, can
clarify the nature of the offer. Supported types:
AggregateOffer
,CreativeWork
, Event,MenuItem
,Product
, Service,Trip
getter/setter pair - leaseLength ↔ dynamic
-
Length of the lease for some [
Accommodation
], either particular to some [Offer
] or in some cases intrinsic to the property. Supported types: Duration,QuantitativeValue
getter/setter pair - mainEntityOfPage ↔ dynamic
-
Indicates a page (or other CreativeWork) for which this thing is
the main entity being described See background
notes for details.
Supported types:
CreativeWork
, Stringgetter/setter pair - mobileUrl ↔ String?
-
//en.wikipedia.org/wiki/Responsive_web_design) in which content
can be flexibly adapted to a wide range of browsing environments
Pages and sites referenced with the long-established [url]
property should ideally also be usable on a wide variety of
devices, including mobile phones In most cases, it would be
pointless and counter productive to attempt to update all
[url] markup to use [mobileUrl] for more mobile-oriented
pages The property is intended for the case when items
(primarily [
Product
] and [Offer
]) have extra URLs hosted on an additional "mobile site" alongside the main one It should not be taken as an endorsement of this publication style.getter/setter pair - mpn ↔ String?
-
The Manufacturer Part Number (MPN) of the product, or the
product to which the offer refers.
getter/setter pair
- name ↔ String?
-
The name of the item.
getter/setter pair
- offeredBy ↔ dynamic
-
A pointer to the organization or person making the offer.
Supported types:
Organization
,Person
getter/setter pair - potentialAction ↔ SchemaAction?
-
Indicates a potential Action, which describes an idealized
action in which this thing would play an 'object' role.
getter/setter pair
- price ↔ dynamic
-
//www.w3.org/TR/xhtml-rdfa-primer/#using-the-content-attribute)
and Microdata syntax allow the use of a "content=" attribute for
publishing simple machine-readable values alongside more
human-friendly formatting.\n* Use values from 0123456789
(Unicode 'DIGIT ZERO' (U+0030) to 'DIGIT NINE' (U+0039)) rather
than superficially similar Unicode symbols Supported types:
String, int
getter/setter pair
- priceCurrency ↔ String?
-
//en.wikipedia.org/wiki/Local_exchange_trading_system) (LETS)
and other currency types, e.g "Ithaca HOUR".
getter/setter pair
- priceSpecification ↔ SchemaPriceSpecification?
-
One or more detailed price specifications, indicating the unit
price and delivery or payment charges.
getter/setter pair
- priceValidUntil ↔ String?
-
The date after which the price is no longer available.
getter/setter pair
- review ↔ SchemaReview?
-
A review of the item.
getter/setter pair
- reviews ↔ SchemaReview?
-
Review of the item.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameAs ↔ String?
-
URL of a reference Web page that unambiguously indicates the
item's identity E.g the URL of the item's Wikipedia page,
Wikidata entry, or official website.
getter/setter pair
- seller ↔ dynamic
-
An entity which offers (sells / leases / lends / loans) the
services / goods A seller may also be a provider. Supported
types:
Organization
,Person
getter/setter pair - serialNumber ↔ String?
-
The serial number or any alphanumeric identifier of a particular
product When attached to an offer, it is a shortcut for the
serial number of the product included in the offer.
getter/setter pair
- shippingDetails ↔ SchemaOfferShippingDetails?
-
Indicates information about the shipping policies and options
associated with an [
Offer
].getter/setter pair - sku ↔ String?
-
The Stock Keeping Unit (SKU), i.e a merchant-specific identifier
for a product or service, or the product to which the offer
refers.
getter/setter pair
- subjectOf ↔ dynamic
-
A CreativeWork or Event about this Thing. Supported types:
CreativeWork
, Eventgetter/setter pair - url ↔ String?
-
URL of the item.
getter/setter pair
- validFrom ↔ String?
-
The date when the item becomes valid. Supported types:
String, String
getter/setter pair
- validThrough ↔ String?
-
The date after when the item is not valid For example the end of
an offer, salary period, or a period of opening hours.
Supported types: String, String
getter/setter pair
- warranty ↔ SchemaWarrantyPromise?
-
The warranty promise(s) included in the offer.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJsonLd(
) → Map< String, dynamic> - Serialize SchemaOffer to JSON-LD
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited