CustomerDiscount constructor

const CustomerDiscount({
  1. String? checkoutSession,
  2. required Coupon coupon,
  3. BankAccountCustomerOrId? customer,
  4. DateTime? end,
  5. required String id,
  6. String? invoice,
  7. String? invoiceItem,
  8. PromotionCodeOrId? promotionCode,
  9. required DateTime start,
  10. String? subscription,
})

Describes the current discount active on the customer, if there is one.

Implementation

const CustomerDiscount({
  this.checkoutSession,
  required this.coupon,
  this.customer,
  this.end,
  required this.id,
  this.invoice,
  this.invoiceItem,
  this.promotionCode,
  required this.start,
  this.subscription,
});