Customer constructor
const
Customer({
- Address? address,
- int? balance,
- CashBalance? cashBalance,
- required DateTime created,
- String? currency,
- PaymentSourceOrId? defaultSource,
- bool? delinquent,
- String? description,
- CustomerDiscount? discount,
- String? email,
- required String id,
- Map<
String, int> ? invoiceCreditBalance, - String? invoicePrefix,
- InvoiceSettingCustomerSetting? invoiceSettings,
- required bool livemode,
- Map<
String, String> ? metadata, - String? name,
- int? nextInvoiceSequence,
- String? phone,
- List<
String> ? preferredLocales, - ChargeShipping? shipping,
- CustomerSources? sources,
- CustomerSubscriptions? subscriptions,
- CustomerTax? tax,
- CheckoutSessionCustomerDetailsTaxExempt? taxExempt,
- CustomerTaxIds? taxIds,
- 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,
});