Coupon class

Constructors

Coupon({int? id, String? code, String? amount, String? dateCreated, String? dateCreatedGmt, String? dateModified, String? dateModifiedGmt, String? discountType, String? description, String? dateExpires, String? dateExpiresGmt, int? usageCount, bool? individualUse, List<int>? productIds, List<int>? excludedProductIds, int? usageLimit, int? usageLimitPerUser, int? limitUsageToXItems, bool? freeShipping, List<int>? productCategories, List<int>? excludedProductCategories, bool? excludeSaleItems, String? minimumAmount, String? maximumAmount, List<String>? emailRestrictions, List<int>? usedBy, List<WooMeta>? metaData})
Coupon.fromJson(String source)
factory
Coupon.fromMap(Map<String, dynamic> map)
factory

Properties

amount String?
final
code String?
final
dateCreated String?
final
dateCreatedGmt String?
final
dateExpires String?
final
dateExpiresGmt String?
final
dateModified String?
final
dateModifiedGmt String?
final
description String?
final
discountType String?
final
emailRestrictions List<String>?
final
excludedProductCategories List<int>?
final
excludedProductIds List<int>?
final
excludeSaleItems bool?
final
freeShipping bool?
final
hashCode int
The hash code for this object.
no setteroverride
id int?
final
individualUse bool?
final
limitUsageToXItems int?
final
maximumAmount String?
final
metaData List<WooMeta>?
final
minimumAmount String?
final
productCategories List<int>?
final
productIds List<int>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usageCount int?
final
usageLimit int?
final
usageLimitPerUser int?
final
usedBy List<int>?
final

Methods

copyWith({int? id, String? code, String? amount, String? dateCreated, String? dateCreatedGmt, String? dateModified, String? dateModifiedGmt, String? discountType, String? description, String? dateExpires, String? dateExpiresGmt, int? usageCount, bool? individualUse, List? productIds, List? excludedProductIds, int? usageLimit, int? usageLimitPerUser, int? limitUsageToXItems, bool? freeShipping, List<int>? productCategories, List<int>? excludedProductCategories, bool? excludeSaleItems, String? minimumAmount, String? maximumAmount, List<String>? emailRestrictions, List<int>? usedBy, List<WooMeta>? metaData}) Coupon
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override