Coupon constructor
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<
String> ? usedBy, - List<
MetaData> ? metaData, - Links? links,
Implementation
Coupon(
{this.id,
this.code,
this.amount,
this.dateCreated,
this.dateCreatedGmt,
this.dateModified,
this.dateModifiedGmt,
this.discountType,
this.description,
this.dateExpires,
this.dateExpiresGmt,
this.usageCount,
this.individualUse,
this.productIds,
this.excludedProductIds,
this.usageLimit,
this.usageLimitPerUser,
this.limitUsageToXItems,
this.freeShipping,
this.productCategories,
this.excludedProductCategories,
this.excludeSaleItems,
this.minimumAmount,
this.maximumAmount,
this.emailRestrictions,
this.usedBy,
this.metaData,
this.links});