OrderPromotion class

Constructors

OrderPromotion({List<OrderPromotionItem>? applicableItems, List<OrderPromotionItem>? appliedItems, String? endTime, String? funder, String? merchantPromotionId, Price? priceValue, String? shortTitle, String? startTime, String? subtype, Price? taxValue, String? title, String? type})
OrderPromotion.fromJson(Map json_)

Properties

applicableItems List<OrderPromotionItem>?
Items that this promotion may be applied to.
getter/setter pair
appliedItems List<OrderPromotionItem>?
Items that this promotion have been applied to.
getter/setter pair
endTime String?
Promotion end time in ISO 8601 format.
getter/setter pair
funder String?
The party funding the promotion.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
merchantPromotionId String?
This field is used to identify promotions within merchants' own systems.
getter/setter pair
priceValue Price?
Estimated discount applied to price.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortTitle String?
A short title of the promotion to be shown on the checkout page.
getter/setter pair
startTime String?
Promotion start time in ISO 8601 format.
getter/setter pair
subtype String?
The category of the promotion.
getter/setter pair
taxValue Price?
Estimated discount applied to tax (if allowed by law).
getter/setter pair
title String?
The title of the promotion.
getter/setter pair
type String?
The scope of the promotion.
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