PromotionCode constructor

const PromotionCode({
  1. required bool active,
  2. required String code,
  3. required Coupon coupon,
  4. required DateTime created,
  5. BankAccountCustomerOrId? customer,
  6. DateTime? expiresAt,
  7. required String id,
  8. required bool livemode,
  9. int? maxRedemptions,
  10. Map<String, String>? metadata,
  11. required PromotionCodesResourceRestrictions restrictions,
  12. required int timesRedeemed,
})

PromotionCode

A Promotion Code represents a customer-redeemable code for a [coupon](https://stripe.com/docs/api#coupons). It can be used to create multiple codes for a single coupon.

Implementation

const PromotionCode({
  required this.active,
  required this.code,
  required this.coupon,
  required this.created,
  this.customer,
  this.expiresAt,
  required this.id,
  required this.livemode,
  this.maxRedemptions,
  this.metadata,
  required this.restrictions,
  required this.timesRedeemed,
});