Promotion class

Represents a promotion.

See the following articles for more details. * Promotions feed specification * Local promotions feed specification * Promotions on Buy on Google product data specification

Constructors

Promotion({List<String>? brand, List<String>? brandExclusion, String? contentLanguage, String? couponValueType, String? freeGiftDescription, String? freeGiftItemId, PriceAmount? freeGiftValue, String? genericRedemptionCode, int? getThisQuantityDiscounted, String? id, List<String>? itemGroupId, List<String>? itemGroupIdExclusion, List<String>? itemId, List<String>? itemIdExclusion, int? limitQuantity, PriceAmount? limitValue, String? longTitle, PriceAmount? minimumPurchaseAmount, int? minimumPurchaseQuantity, PriceAmount? moneyBudget, PriceAmount? moneyOffAmount, String? offerType, int? orderLimit, int? percentOff, String? productApplicability, List<String>? productType, List<String>? productTypeExclusion, List<String>? promotionDestinationIds, String? promotionDisplayDates, TimePeriod? promotionDisplayTimePeriod, String? promotionEffectiveDates, TimePeriod? promotionEffectiveTimePeriod, String? promotionId, PromotionPromotionStatus? promotionStatus, String? promotionUrl, List<String>? redemptionChannel, List<String>? shippingServiceNames, String? storeApplicability, List<String>? storeCode, List<String>? storeCodeExclusion, String? targetCountry})
Promotion.fromJson(Map json_)

Properties

brand List<String>?
Product filter by brand for the promotion.
getter/setter pair
brandExclusion List<String>?
Product filter by brand exclusion for the promotion.
getter/setter pair
contentLanguage String?
The content language used as part of the unique identifier.
getter/setter pair
couponValueType String?
Coupon value type for the promotion.
getter/setter pair
freeGiftDescription String?
Free gift description for the promotion.
getter/setter pair
freeGiftItemId String?
Free gift item ID for the promotion.
getter/setter pair
freeGiftValue PriceAmount?
Free gift value for the promotion.
getter/setter pair
genericRedemptionCode String?
Generic redemption code for the promotion.
getter/setter pair
getThisQuantityDiscounted int?
The number of items discounted in the promotion.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The REST promotion ID to uniquely identify the promotion.
getter/setter pair
itemGroupId List<String>?
Product filter by item group ID for the promotion.
getter/setter pair
itemGroupIdExclusion List<String>?
Product filter by item group ID exclusion for the promotion.
getter/setter pair
itemId List<String>?
Product filter by item ID for the promotion.
getter/setter pair
itemIdExclusion List<String>?
Product filter by item ID exclusion for the promotion.
getter/setter pair
limitQuantity int?
Maximum purchase quantity for the promotion.
getter/setter pair
limitValue PriceAmount?
Maximum purchase value for the promotion.
getter/setter pair
longTitle String?
Long title for the promotion.
getter/setter pair
minimumPurchaseAmount PriceAmount?
Minimum purchase amount for the promotion.
getter/setter pair
minimumPurchaseQuantity int?
Minimum purchase quantity for the promotion.
getter/setter pair
moneyBudget PriceAmount?
Cost cap for the promotion.
getter/setter pair
moneyOffAmount PriceAmount?
The money off amount offered in the promotion.
getter/setter pair
offerType String?
Type of the promotion.
getter/setter pair
orderLimit int?
Order limit for the promotion.
getter/setter pair
percentOff int?
The percentage discount offered in the promotion.
getter/setter pair
productApplicability String?
Applicability of the promotion to either all products or only specific products.
getter/setter pair
productType List<String>?
Product filter by product type for the promotion.
getter/setter pair
productTypeExclusion List<String>?
Product filter by product type exclusion for the promotion.
getter/setter pair
promotionDestinationIds List<String>?
Destination ID for the promotion.
getter/setter pair
promotionDisplayDates String?
String representation of the promotion display dates.
getter/setter pair
promotionDisplayTimePeriod TimePeriod?
TimePeriod representation of the promotion's display dates.
getter/setter pair
promotionEffectiveDates String?
String representation of the promotion effective dates.
getter/setter pair
promotionEffectiveTimePeriod TimePeriod?
TimePeriod representation of the promotion's effective dates.
getter/setter pair
promotionId String?
The user provided promotion ID to uniquely identify the promotion.
getter/setter pair
promotionStatus PromotionPromotionStatus?
The current status of the promotion.
getter/setter pair
promotionUrl String?
URL to the page on the merchant's site where the promotion shows.
getter/setter pair
redemptionChannel List<String>?
Redemption channel for the promotion.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingServiceNames List<String>?
Shipping service names for the promotion.
getter/setter pair
storeApplicability String?
Whether the promotion applies to all stores, or only specified stores.
getter/setter pair
storeCode List<String>?
Store codes to include for the promotion.
getter/setter pair
storeCodeExclusion List<String>?
Store codes to exclude for the promotion.
getter/setter pair
targetCountry String?
The target country used as part of the unique identifier.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited