PromotionCode constructor
const
PromotionCode({
- required bool active,
- required String code,
- required Coupon coupon,
- required DateTime created,
- BankAccountCustomerOrId? customer,
- DateTime? expiresAt,
- required String id,
- required bool livemode,
- int? maxRedemptions,
- Map<
String, String> ? metadata, - required PromotionCodesResourceRestrictions restrictions,
- 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,
});