WooCoupon constructor

WooCoupon({
  1. int? id,
  2. String? code,
  3. String? amount,
  4. DateTime? dateCreated,
  5. DateTime? dateCreatedGmt,
  6. DateTime? dateModified,
  7. DateTime? dateModifiedGmt,
  8. String? discountType,
  9. String? description,
  10. String? dateExpires,
  11. String? dateExpiresGmt,
  12. int? usageCount,
  13. bool? individualUse,
  14. List<int>? productIds,
  15. List<int>? excludedProductIds,
  16. int? usageLimit,
  17. int? usageLimitPerUser,
  18. int? limitUsageToXItems,
  19. bool? freeShipping,
  20. List<int>? productCategories,
  21. List<int>? excludedProductCategories,
  22. bool? excludeSaleItems,
  23. String? minimumAmount,
  24. String? maximumAmount,
  25. List<String>? emailRestrictions,
  26. List<String>? usedBy,
  27. List<String>? metaData,
  28. WooCouponLinks? lLinks,
})

Implementation

WooCoupon(
    {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.lLinks});