Customer constructor

const Customer({
  1. Address? address,
  2. int? balance,
  3. CashBalance? cashBalance,
  4. required DateTime created,
  5. String? currency,
  6. PaymentSourceOrId? defaultSource,
  7. bool? delinquent,
  8. String? description,
  9. CustomerDiscount? discount,
  10. String? email,
  11. required String id,
  12. Map<String, int>? invoiceCreditBalance,
  13. String? invoicePrefix,
  14. InvoiceSettingCustomerSetting? invoiceSettings,
  15. required bool livemode,
  16. Map<String, String>? metadata,
  17. String? name,
  18. int? nextInvoiceSequence,
  19. String? phone,
  20. List<String>? preferredLocales,
  21. ChargeShipping? shipping,
  22. CustomerSources? sources,
  23. CustomerSubscriptions? subscriptions,
  24. CustomerTax? tax,
  25. CheckoutSessionCustomerDetailsTaxExempt? taxExempt,
  26. CustomerTaxIds? taxIds,
  27. TestHelpersTestClockOrId? testClock,
})

Customer

This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer. Related guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment)

Implementation

const Customer({
  this.address,
  this.balance,
  this.cashBalance,
  required this.created,
  this.currency,
  this.defaultSource,
  this.delinquent,
  this.description,
  this.discount,
  this.email,
  required this.id,
  this.invoiceCreditBalance,
  this.invoicePrefix,
  this.invoiceSettings,
  required this.livemode,
  this.metadata,
  this.name,
  this.nextInvoiceSequence,
  this.phone,
  this.preferredLocales,
  this.shipping,
  this.sources,
  this.subscriptions,
  this.tax,
  this.taxExempt,
  this.taxIds,
  this.testClock,
});