Class Customer
- All Implemented Interfaces:
- HasId,- MetadataStore<Customer>,- StripeActiveObject,- StripeObjectInterface
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about InvoiceSettings, please refer to the API Reference.static classFor more details about Tax, please refer to the API Reference.static classNested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns a list of transactions that updated the customer’s balances.Returns a list of transactions that updated the customer’s balances.balanceTransactions(CustomerBalanceTransactionsParams params, RequestOptions options) Returns a list of transactions that updated the customer’s balances.balanceTransactions(Map<String, Object> params) Returns a list of transactions that updated the customer’s balances.balanceTransactions(Map<String, Object> params, RequestOptions options) Returns a list of transactions that updated the customer’s balances.protected booleanReturns a list of transactions that modified the customer’s cash balance.Returns a list of transactions that modified the customer’s cash balance.cashBalanceTransactions(CustomerCashBalanceTransactionsParams params, RequestOptions options) Returns a list of transactions that modified the customer’s cash balance.cashBalanceTransactions(Map<String, Object> params) Returns a list of transactions that modified the customer’s cash balance.cashBalanceTransactions(Map<String, Object> params, RequestOptions options) Returns a list of transactions that modified the customer’s cash balance.static Customercreate(CustomerCreateParams params) Creates a new customer object.static Customercreate(CustomerCreateParams params, RequestOptions options) Creates a new customer object.static CustomerCreates a new customer object.static Customercreate(Map<String, Object> params, RequestOptions options) Creates a new customer object.Retrieve funding instructions for a customer cash balance.Retrieve funding instructions for a customer cash balance.createFundingInstructions(Map<String, Object> params) Retrieve funding instructions for a customer cash balance.createFundingInstructions(Map<String, Object> params, RequestOptions options) Retrieve funding instructions for a customer cash balance.delete()Permanently deletes a customer.delete(RequestOptions options) Permanently deletes a customer.Permanently deletes a customer.delete(Map<String, Object> params, RequestOptions options) Permanently deletes a customer.Removes the currently applied discount on a customer.deleteDiscount(Map<String, Object> params) Removes the currently applied discount on a customer.deleteDiscount(Map<String, Object> params, RequestOptions options) Removes the currently applied discount on a customer.booleanThe customer's address.The current balance, if any, that's stored on the customer in their default currency.The customer's business name.The current funds being held by Stripe on behalf of the customer.Time at which the object was created.Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.Get ID of expandabledefaultSourceobject.Get expandeddefaultSource.Always true for a deleted object.Tracks the most recent state change on any invoice belonging to the customer.An arbitrary string attached to the object.Describes the current discount active on the customer, if there is one.getEmail()The customer's email address.getId()Unique identifier for the object.The customer's individual name.The current multi-currency balances, if any, that's stored on the customer.The prefix for the customer used to generate unique invoice numbers.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.getName()The customer's full name or business name.The suffix of the customer's next invoice number (for example, 0001).String representing the object's type.getPhone()The customer's phone number.The customer's preferred locales (languages), ordered by preference.Mailing and shipping address for the customer.The customer's payment sources, if any.The customer's current subscriptions, if any.getTax()Describes the customer's tax exemption status, which isnone,exempt, orreverse.The customer's tax IDs.Get ID of expandabletestClockobject.Get expandedtestClock.The identified tax state, county, province, or region of the customer.inthashCode()static CustomerCollectionlist(CustomerListParams params) Returns a list of your customers.static CustomerCollectionlist(CustomerListParams params, RequestOptions options) Returns a list of your customers.static CustomerCollectionReturns a list of your customers.static CustomerCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of your customers.Returns a list of PaymentMethods for a given Customer.Returns a list of PaymentMethods for a given Customer.listPaymentMethods(CustomerListPaymentMethodsParams params, RequestOptions options) Returns a list of PaymentMethods for a given Customer.listPaymentMethods(Map<String, Object> params) Returns a list of PaymentMethods for a given Customer.listPaymentMethods(Map<String, Object> params, RequestOptions options) Returns a list of PaymentMethods for a given Customer.static CustomerRetrieves a Customer object.static Customerretrieve(String customer, RequestOptions options) Retrieves a Customer object.static Customerretrieve(String customer, CustomerRetrieveParams params, RequestOptions options) Retrieves a Customer object.static CustomerRetrieves a Customer object.retrievePaymentMethod(String paymentMethod) Retrieves a PaymentMethod object for a given Customer.retrievePaymentMethod(String paymentMethod, RequestOptions options) Retrieves a PaymentMethod object for a given Customer.retrievePaymentMethod(String paymentMethod, CustomerRetrievePaymentMethodParams params) Retrieves a PaymentMethod object for a given Customer.retrievePaymentMethod(String paymentMethod, CustomerRetrievePaymentMethodParams params, RequestOptions options) Retrieves a PaymentMethod object for a given Customer.retrievePaymentMethod(String paymentMethod, Map<String, Object> params) Retrieves a PaymentMethod object for a given Customer.retrievePaymentMethod(String paymentMethod, Map<String, Object> params, RequestOptions options) Retrieves a PaymentMethod object for a given Customer.static CustomerSearchResultsearch(CustomerSearchParams params) Search for customers you’ve previously created using Stripe’s Search Query Language.static CustomerSearchResultsearch(CustomerSearchParams params, RequestOptions options) Search for customers you’ve previously created using Stripe’s Search Query Language.static CustomerSearchResultSearch for customers you’ve previously created using Stripe’s Search Query Language.static CustomerSearchResultsearch(Map<String, Object> params, RequestOptions options) Search for customers you’ve previously created using Stripe’s Search Query Language.voidsetAddress(Address address) The customer's address.voidsetBalance(Long balance) The current balance, if any, that's stored on the customer in their default currency.voidsetBusinessName(String businessName) The customer's business name.voidsetCashBalance(CashBalance cashBalance) The current funds being held by Stripe on behalf of the customer.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.voidsetCustomerAccount(String customerAccount) voidvoidsetDefaultSourceObject(PaymentSource expandableObject) voidsetDeleted(Boolean deleted) Always true for a deleted object.voidsetDelinquent(Boolean delinquent) Tracks the most recent state change on any invoice belonging to the customer.voidsetDescription(String description) An arbitrary string attached to the object.voidsetDiscount(Discount discount) Describes the current discount active on the customer, if there is one.voidThe customer's email address.voidUnique identifier for the object.voidsetIndividualName(String individualName) The customer's individual name.voidsetInvoiceCreditBalance(Map<String, Long> invoiceCreditBalance) The current multi-currency balances, if any, that's stored on the customer.voidsetInvoicePrefix(String invoicePrefix) The prefix for the customer used to generate unique invoice numbers.voidsetInvoiceSettings(Customer.InvoiceSettings invoiceSettings) voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidThe customer's full name or business name.voidsetNextInvoiceSequence(Long nextInvoiceSequence) The suffix of the customer's next invoice number (for example, 0001).voidString representing the object's type.voidThe customer's phone number.voidsetPreferredLocales(List<String> preferredLocales) The customer's preferred locales (languages), ordered by preference.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetShipping(ShippingDetails shipping) Mailing and shipping address for the customer.voidsetSources(PaymentSourceCollection sources) The customer's payment sources, if any.voidsetSubscriptions(SubscriptionCollection subscriptions) The customer's current subscriptions, if any.voidsetTax(Customer.Tax tax) voidsetTaxExempt(String taxExempt) Describes the customer's tax exemption status, which isnone,exempt, orreverse.voidsetTaxIds(TaxIdCollection taxIds) The customer's tax IDs.voidsetTestClock(String id) voidsetTestClockObject(TestClock expandableObject) update(CustomerUpdateParams params) Updates the specified customer by setting the values of the parameters passed.update(CustomerUpdateParams params, RequestOptions options) Updates the specified customer by setting the values of the parameters passed.Updates the specified customer by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates the specified customer by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
Customerpublic Customer()
 
- 
- 
Method Details- 
getDefaultSourceGet ID of expandabledefaultSourceobject.
- 
setDefaultSource
- 
getDefaultSourceObjectGet expandeddefaultSource.
- 
setDefaultSourceObject
- 
getTestClockGet ID of expandabletestClockobject.
- 
setTestClock
- 
getTestClockObjectGet expandedtestClock.
- 
setTestClockObject
- 
balanceTransactionsReturns a list of transactions that updated the customer’s balances.- Throws:
- StripeException
 
- 
balanceTransactionspublic CustomerBalanceTransactionCollection balanceTransactions(Map<String, Object> params) throws StripeExceptionReturns a list of transactions that updated the customer’s balances.- Throws:
- StripeException
 
- 
balanceTransactionspublic CustomerBalanceTransactionCollection balanceTransactions(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of transactions that updated the customer’s balances.- Throws:
- StripeException
 
- 
balanceTransactionspublic CustomerBalanceTransactionCollection balanceTransactions(CustomerBalanceTransactionsParams params) throws StripeException Returns a list of transactions that updated the customer’s balances.- Throws:
- StripeException
 
- 
balanceTransactionspublic CustomerBalanceTransactionCollection balanceTransactions(CustomerBalanceTransactionsParams params, RequestOptions options) throws StripeException Returns a list of transactions that updated the customer’s balances.- Throws:
- StripeException
 
- 
cashBalanceTransactionsReturns a list of transactions that modified the customer’s cash balance.- Throws:
- StripeException
 
- 
cashBalanceTransactionspublic CustomerCashBalanceTransactionCollection cashBalanceTransactions(Map<String, Object> params) throws StripeExceptionReturns a list of transactions that modified the customer’s cash balance.- Throws:
- StripeException
 
- 
cashBalanceTransactionspublic CustomerCashBalanceTransactionCollection cashBalanceTransactions(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of transactions that modified the customer’s cash balance.- Throws:
- StripeException
 
- 
cashBalanceTransactionspublic CustomerCashBalanceTransactionCollection cashBalanceTransactions(CustomerCashBalanceTransactionsParams params) throws StripeException Returns a list of transactions that modified the customer’s cash balance.- Throws:
- StripeException
 
- 
cashBalanceTransactionspublic CustomerCashBalanceTransactionCollection cashBalanceTransactions(CustomerCashBalanceTransactionsParams params, RequestOptions options) throws StripeException Returns a list of transactions that modified the customer’s cash balance.- Throws:
- StripeException
 
- 
createCreates a new customer object.- Throws:
- StripeException
 
- 
createpublic static Customer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new customer object.- Throws:
- StripeException
 
- 
createCreates a new customer object.- Throws:
- StripeException
 
- 
createpublic static Customer create(CustomerCreateParams params, RequestOptions options) throws StripeException Creates a new customer object.- Throws:
- StripeException
 
- 
createFundingInstructionspublic FundingInstructions createFundingInstructions(Map<String, Object> params) throws StripeExceptionRetrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new funding instructions will be created. If funding instructions have already been created for a given customer, the same funding instructions will be retrieved. In other words, we will return the same funding instructions each time.- Throws:
- StripeException
 
- 
createFundingInstructionspublic FundingInstructions createFundingInstructions(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new funding instructions will be created. If funding instructions have already been created for a given customer, the same funding instructions will be retrieved. In other words, we will return the same funding instructions each time.- Throws:
- StripeException
 
- 
createFundingInstructionspublic FundingInstructions createFundingInstructions(CustomerCreateFundingInstructionsParams params) throws StripeException Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new funding instructions will be created. If funding instructions have already been created for a given customer, the same funding instructions will be retrieved. In other words, we will return the same funding instructions each time.- Throws:
- StripeException
 
- 
createFundingInstructionspublic FundingInstructions createFundingInstructions(CustomerCreateFundingInstructionsParams params, RequestOptions options) throws StripeException Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new funding instructions will be created. If funding instructions have already been created for a given customer, the same funding instructions will be retrieved. In other words, we will return the same funding instructions each time.- Throws:
- StripeException
 
- 
deletePermanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
- StripeException
 
- 
deletePermanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
- StripeException
 
- 
deletePermanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
- StripeException
 
- 
deletePermanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
- StripeException
 
- 
deleteDiscountRemoves the currently applied discount on a customer.- Throws:
- StripeException
 
- 
deleteDiscountRemoves the currently applied discount on a customer.- Throws:
- StripeException
 
- 
deleteDiscountpublic Discount deleteDiscount(Map<String, Object> params, RequestOptions options) throws StripeExceptionRemoves the currently applied discount on a customer.- Throws:
- StripeException
 
- 
listReturns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.- Throws:
- StripeException
 
- 
listpublic static CustomerCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.- Throws:
- StripeException
 
- 
listReturns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.- Throws:
- StripeException
 
- 
listpublic static CustomerCollection list(CustomerListParams params, RequestOptions options) throws StripeException Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.- Throws:
- StripeException
 
- 
listPaymentMethodsReturns a list of PaymentMethods for a given Customer.- Throws:
- StripeException
 
- 
listPaymentMethodsReturns a list of PaymentMethods for a given Customer.- Throws:
- StripeException
 
- 
listPaymentMethodspublic PaymentMethodCollection listPaymentMethods(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of PaymentMethods for a given Customer.- Throws:
- StripeException
 
- 
listPaymentMethodspublic PaymentMethodCollection listPaymentMethods(CustomerListPaymentMethodsParams params) throws StripeException Returns a list of PaymentMethods for a given Customer.- Throws:
- StripeException
 
- 
listPaymentMethodspublic PaymentMethodCollection listPaymentMethods(CustomerListPaymentMethodsParams params, RequestOptions options) throws StripeException Returns a list of PaymentMethods for a given Customer.- Throws:
- StripeException
 
- 
retrieveRetrieves a Customer object.- Throws:
- StripeException
 
- 
retrieveRetrieves a Customer object.- Throws:
- StripeException
 
- 
retrievepublic static Customer retrieve(String customer, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a Customer object.- Throws:
- StripeException
 
- 
retrievepublic static Customer retrieve(String customer, CustomerRetrieveParams params, RequestOptions options) throws StripeException Retrieves a Customer object.- Throws:
- StripeException
 
- 
retrievePaymentMethodRetrieves a PaymentMethod object for a given Customer.- Throws:
- StripeException
 
- 
retrievePaymentMethodpublic PaymentMethod retrievePaymentMethod(String paymentMethod, RequestOptions options) throws StripeException Retrieves a PaymentMethod object for a given Customer.- Throws:
- StripeException
 
- 
retrievePaymentMethodpublic PaymentMethod retrievePaymentMethod(String paymentMethod, Map<String, Object> params) throws StripeExceptionRetrieves a PaymentMethod object for a given Customer.- Throws:
- StripeException
 
- 
retrievePaymentMethodpublic PaymentMethod retrievePaymentMethod(String paymentMethod, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a PaymentMethod object for a given Customer.- Throws:
- StripeException
 
- 
retrievePaymentMethodpublic PaymentMethod retrievePaymentMethod(String paymentMethod, CustomerRetrievePaymentMethodParams params) throws StripeException Retrieves a PaymentMethod object for a given Customer.- Throws:
- StripeException
 
- 
retrievePaymentMethodpublic PaymentMethod retrievePaymentMethod(String paymentMethod, CustomerRetrievePaymentMethodParams params, RequestOptions options) throws StripeException Retrieves a PaymentMethod object for a given Customer.- Throws:
- StripeException
 
- 
searchSearch for customers you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.- Throws:
- StripeException
 
- 
searchpublic static CustomerSearchResult search(Map<String, Object> params, RequestOptions options) throws StripeExceptionSearch for customers you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.- Throws:
- StripeException
 
- 
searchSearch for customers you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.- Throws:
- StripeException
 
- 
searchpublic static CustomerSearchResult search(CustomerSearchParams params, RequestOptions options) throws StripeException Search for customers you’ve previously created using Stripe’s Search Query Language. Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up to an hour behind during outages. Search functionality is not available to merchants in India.- Throws:
- StripeException
 
- 
updateUpdates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in thepast_duestate, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.This request accepts mostly the same arguments as the customer creation call. - Specified by:
- updatein interface- MetadataStore<Customer>
- Throws:
- StripeException
 
- 
updateUpdates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in thepast_duestate, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.This request accepts mostly the same arguments as the customer creation call. - Specified by:
- updatein interface- MetadataStore<Customer>
- Throws:
- StripeException
 
- 
updateUpdates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in thepast_duestate, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.This request accepts mostly the same arguments as the customer creation call. - Throws:
- StripeException
 
- 
updateUpdates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the source parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the source parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in thepast_duestate, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the default_source for a customer will not trigger this behavior.This request accepts mostly the same arguments as the customer creation call. - Throws:
- StripeException
 
- 
getTestHelpersThe identified tax state, county, province, or region of the customer.
- 
setResponseGetterDescription copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getAddressThe customer's address.
- 
getBalanceThe current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see invoice_credit_balance.
- 
getBusinessNameThe customer's business name.
- 
getCashBalanceThe current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". Thesettings[reconciliation_mode]field describes if these funds apply to these payment intents manually or automatically.
- 
getCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
getCurrencyThree-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
- 
getCustomerAccount
- 
getDeletedAlways true for a deleted object.
- 
getDelinquentTracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing theinvoice.due_datewill set this field totrue.If an invoice becomes uncollectible by dunning, delinquentdoesn't reset tofalse.If you care whether the customer has paid their most recent subscription invoice, use subscription.statusinstead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field tofalse.
- 
getDescriptionAn arbitrary string attached to the object. Often useful for displaying to users.
- 
getDiscountDescribes the current discount active on the customer, if there is one.
- 
getEmailThe customer's email address.
- 
getIndividualNameThe customer's individual name.
- 
getInvoiceCreditBalanceThe current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
- 
getInvoicePrefixThe prefix for the customer used to generate unique invoice numbers.
- 
getInvoiceSettings
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getNameThe customer's full name or business name.
- 
getNextInvoiceSequenceThe suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to customer.
- 
getPhoneThe customer's phone number.
- 
getPreferredLocalesThe customer's preferred locales (languages), ordered by preference.
- 
getShippingMailing and shipping address for the customer. Appears on invoices emailed to this customer.
- 
getSourcesThe customer's payment sources, if any.
- 
getSubscriptionsThe customer's current subscriptions, if any.
- 
getTax
- 
getTaxExemptDescribes the customer's tax exemption status, which isnone,exempt, orreverse. When set toreverse, invoice and receipt PDFs include the following text: "Reverse charge".One of exempt,none, orreverse.
- 
getTaxIdsThe customer's tax IDs.
- 
setAddressThe customer's address.
- 
setBalanceThe current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see invoice_credit_balance.
- 
setBusinessNameThe customer's business name.
- 
setCashBalanceThe current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". Thesettings[reconciliation_mode]field describes if these funds apply to these payment intents manually or automatically.
- 
setCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
setCurrencyThree-letter ISO code for the currency the customer can be charged in for recurring billing purposes.
- 
setCustomerAccount
- 
setDeletedAlways true for a deleted object.
- 
setDelinquentTracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing theinvoice.due_datewill set this field totrue.If an invoice becomes uncollectible by dunning, delinquentdoesn't reset tofalse.If you care whether the customer has paid their most recent subscription invoice, use subscription.statusinstead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field tofalse.
- 
setDescriptionAn arbitrary string attached to the object. Often useful for displaying to users.
- 
setDiscountDescribes the current discount active on the customer, if there is one.
- 
setEmailThe customer's email address.
- 
setIdUnique identifier for the object.
- 
setIndividualNameThe customer's individual name.
- 
setInvoiceCreditBalanceThe current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
- 
setInvoicePrefixThe prefix for the customer used to generate unique invoice numbers.
- 
setInvoiceSettings
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setMetadataSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
- 
setNameThe customer's full name or business name.
- 
setNextInvoiceSequenceThe suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to customer.
- 
setPhoneThe customer's phone number.
- 
setPreferredLocalesThe customer's preferred locales (languages), ordered by preference.
- 
setShippingMailing and shipping address for the customer. Appears on invoices emailed to this customer.
- 
setSourcesThe customer's payment sources, if any.
- 
setSubscriptionsThe customer's current subscriptions, if any.
- 
setTax
- 
setTaxExemptDescribes the customer's tax exemption status, which isnone,exempt, orreverse. When set toreverse, invoice and receipt PDFs include the following text: "Reverse charge".One of exempt,none, orreverse.
- 
setTaxIdsThe customer's tax IDs.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
- 
getMetadataSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
- getMetadatain interface- MetadataStore<Customer>
 
 
-