Promotion class Null safety

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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