Coupon class
Constructors
-
Coupon.fromJson(Map<
String, dynamic> json) -
Coupon.fromOpencartJson(Map<
String, dynamic> json) -
Coupon.fromPresta(Map<
String, dynamic> json) -
Coupon.fromShopify(Map<
String, dynamic> json)
Properties
- amount ↔ double?
-
getter/setter pair
- code ↔ String?
-
getter/setter pair
- dateExpires ↔ DateTime?
-
getter/setter pair
- description ↔ String?
-
getter/setter pair
- discountType ↔ String?
-
getter/setter pair
-
emailRestrictions
↔ List<
String> -
getter/setter pair
-
excludedProductCategories
↔ List<
String> -
getter/setter pair
-
excludedProductIds
↔ List<
String> -
getter/setter pair
- excludeSaleItems ↔ bool?
-
getter/setter pair
- freeShipping ↔ bool?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pair
- individualUse ↔ bool?
-
getter/setter pair
- isExpired → bool
-
Check whether the coupon is expired.
If dateExpires is null, the coupon is never expired (return false).
no setter
- isFixedCartDiscount → bool
-
no setter
- isFixedProductDiscount → bool
-
no setter
- isPercentageDiscount → bool
-
no setter
- isPrivateStatus → bool
-
no setter
- isPublishStatus → bool
-
no setter
- maximumAmount ↔ double
-
getter/setter pair
- message ↔ String?
-
getter/setter pair
- minimumAmount ↔ double
-
getter/setter pair
-
productCategories
↔ List<
String> -
getter/setter pair
-
productIds
↔ List<
String> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
getter/setter pair
- usageCount ↔ int?
-
getter/setter pair
- usageLimit ↔ int?
-
getter/setter pair
- usageLimitPerUser ↔ int?
-
getter/setter pair
-
usedBy
↔ List<
String> ? -
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