Discount constructor

const Discount({
  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,
})

Discount

A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes). It contains information about when the discount began, when it will end, and what it is applied to. Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)

Implementation

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