Customer class final
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)
- Implemented types
Constructors
-
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
const
- Customer.fromJson(Object? json)
-
factory
Properties
- address → Address?
-
final
- balance → int?
-
final
- cashBalance → CashBalance?
-
final
- created → DateTime
-
final
- currency → String?
-
final
- defaultSource → PaymentSourceOrId?
-
final
- delinquent → bool?
-
final
- description → String?
-
final
- discount → CustomerDiscount?
-
Describes the current discount active on the customer, if there is one.
final
- email → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The ID of the BankAccountCustomer.
final
-
invoiceCreditBalance
→ Map<
String, int> ? -
final
- invoicePrefix → String?
-
final
- invoiceSettings → InvoiceSettingCustomerSetting?
-
final
- livemode → bool
-
final
-
metadata
→ Map<
String, String> ? -
final
- name → String?
-
final
- nextInvoiceSequence → int?
-
final
- object → String
-
final
- phone → String?
-
final
-
preferredLocales
→ List<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shipping → ChargeShipping?
-
final
- sources → CustomerSources?
-
ApmsSourcesSourceList
final
- subscriptions → CustomerSubscriptions?
-
SubscriptionList
final
- tax → CustomerTax?
-
final
- taxExempt → CheckoutSessionCustomerDetailsTaxExempt?
-
final
- taxIds → CustomerTaxIds?
-
TaxIDsList
final
- testClock → TestHelpersTestClockOrId?
-
final
Methods
-
encodeWith<
V> (Encoder< V> encoder) → V -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited