Promotion class
Represents a promotion.
See the following articles for more details. Required promotion input attributes to pass data validation checks are primarily defined below: * Promotions data specification * Local promotions data specification After inserting, updating a promotion input, it may take several minutes before the final promotion can be retrieved.
Constructors
-
Promotion.new({Attributes? attributes, String? contentLanguage, List<
CustomAttribute> ? customAttributes, String? dataSource, String? name, String? promotionId, PromotionStatus? promotionStatus, List<String> ? redemptionChannel, String? targetCountry, String? versionNumber}) - Promotion.fromJson(Map json_)
Properties
- attributes ↔ Attributes?
-
A list of promotion attributes.
getter/setter pair
- contentLanguage ↔ String?
-
The two-letter [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1)
language code for the promotion.
getter/setter pair
-
customAttributes
↔ List<
CustomAttribute> ? -
A list of custom (merchant-provided) attributes.
getter/setter pair
- dataSource ↔ String?
-
The primary data source of the promotion.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String?
-
Identifier.
getter/setter pair
- promotionId ↔ String?
-
The user provided promotion ID to uniquely identify the promotion.
getter/setter pair
- promotionStatus ↔ PromotionStatus?
-
The
status of a promotion,
data validation issues, that is, information about a promotion computed
asynchronously.
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
- targetCountry ↔ String?
-
The target country used as part of the unique identifier.
getter/setter pair
- versionNumber ↔ String?
-
Represents the existing version (freshness) of the promotion, which can be
used to preserve the right order when multiple updates are done at the
same time.
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