Class Customer
- All Implemented Interfaces:
HasId
,MetadataStore<Customer>
,StripeActiveObject
,StripeObjectInterface
Related guide: Save a card during payment
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.static class
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier 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 boolean
Returns 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 Customer
create
(CustomerCreateParams params) Creates a new customer object.static Customer
create
(CustomerCreateParams params, RequestOptions options) Creates a new customer object.static Customer
Creates a new customer object.static Customer
create
(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.boolean
The customer's address.The current balance, if any, that's stored on the customer.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 expandabledefaultSource
object.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 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 valuetrue
if the object exists in live mode or the valuefalse
if 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 expandabletestClock
object.Get expandedtestClock
.The customer's state, county, province, or region as identified by Stripe Tax.int
hashCode()
static CustomerCollection
list
(CustomerListParams params) Returns a list of your customers.static CustomerCollection
list
(CustomerListParams params, RequestOptions options) Returns a list of your customers.static CustomerCollection
Returns a list of your customers.static CustomerCollection
list
(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 Customer
Retrieves a Customer object.static Customer
retrieve
(String customer, RequestOptions options) Retrieves a Customer object.static Customer
retrieve
(String customer, CustomerRetrieveParams params, RequestOptions options) Retrieves a Customer object.static Customer
Retrieves a Customer object.retrievePaymentMethod
(String paymentMethod) 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 CustomerSearchResult
search
(CustomerSearchParams params) Search for customers you’ve previously created using Stripe’s Search Query Language.static CustomerSearchResult
search
(CustomerSearchParams params, RequestOptions options) Search for customers you’ve previously created using Stripe’s Search Query Language.static CustomerSearchResult
Search for customers you’ve previously created using Stripe’s Search Query Language.static CustomerSearchResult
search
(Map<String, Object> params, RequestOptions options) Search for customers you’ve previously created using Stripe’s Search Query Language.void
setAddress
(Address address) The customer's address.void
setBalance
(Long balance) The current balance, if any, that's stored on the customer.void
setCashBalance
(CashBalance cashBalance) The current funds being held by Stripe on behalf of the customer.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes.void
void
setDefaultSourceObject
(PaymentSource expandableObject) void
setDeleted
(Boolean deleted) Always true for a deleted object.void
setDelinquent
(Boolean delinquent) Tracks the most recent state change on any invoice belonging to the customer.void
setDescription
(String description) An arbitrary string attached to the object.void
setDiscount
(Discount discount) Describes the current discount active on the customer, if there is one.void
The customer's email address.void
Unique identifier for the object.void
setInvoiceCreditBalance
(Map<String, Long> invoiceCreditBalance) The current multi-currency balances, if any, that's stored on the customer.void
setInvoicePrefix
(String invoicePrefix) The prefix for the customer used to generate unique invoice numbers.void
setInvoiceSettings
(Customer.InvoiceSettings invoiceSettings) void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
The customer's full name or business name.void
setNextInvoiceSequence
(Long nextInvoiceSequence) The suffix of the customer's next invoice number (for example, 0001).void
String representing the object's type.void
The customer's phone number.void
setPreferredLocales
(List<String> preferredLocales) The customer's preferred locales (languages), ordered by preference.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setShipping
(ShippingDetails shipping) Mailing and shipping address for the customer.void
setSources
(PaymentSourceCollection sources) The customer's payment sources, if any.void
setSubscriptions
(SubscriptionCollection subscriptions) The customer's current subscriptions, if any.void
setTax
(Customer.Tax tax) void
setTaxExempt
(String taxExempt) Describes the customer's tax exemption status, which isnone
,exempt
, orreverse
.void
setTaxIds
(TaxIdCollection taxIds) The customer's tax IDs.void
setTestClock
(String id) void
setTestClockObject
(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.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Customer
public Customer()
-
-
Method Details
-
getDefaultSource
Get ID of expandabledefaultSource
object. -
setDefaultSource
-
getDefaultSourceObject
Get expandeddefaultSource
. -
setDefaultSourceObject
-
getTestClock
Get ID of expandabletestClock
object. -
setTestClock
-
getTestClockObject
Get expandedtestClock
. -
setTestClockObject
-
balanceTransactions
Returns a list of transactions that updated the customer’s balances.- Throws:
StripeException
-
balanceTransactions
public CustomerBalanceTransactionCollection balanceTransactions(Map<String, Object> params) throws StripeExceptionReturns a list of transactions that updated the customer’s balances.- Throws:
StripeException
-
balanceTransactions
public CustomerBalanceTransactionCollection balanceTransactions(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of transactions that updated the customer’s balances.- Throws:
StripeException
-
balanceTransactions
public CustomerBalanceTransactionCollection balanceTransactions(CustomerBalanceTransactionsParams params) throws StripeException Returns a list of transactions that updated the customer’s balances.- Throws:
StripeException
-
balanceTransactions
public CustomerBalanceTransactionCollection balanceTransactions(CustomerBalanceTransactionsParams params, RequestOptions options) throws StripeException Returns a list of transactions that updated the customer’s balances.- Throws:
StripeException
-
cashBalanceTransactions
Returns a list of transactions that modified the customer’s cash balance.- Throws:
StripeException
-
cashBalanceTransactions
public CustomerCashBalanceTransactionCollection cashBalanceTransactions(Map<String, Object> params) throws StripeExceptionReturns a list of transactions that modified the customer’s cash balance.- Throws:
StripeException
-
cashBalanceTransactions
public CustomerCashBalanceTransactionCollection cashBalanceTransactions(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of transactions that modified the customer’s cash balance.- Throws:
StripeException
-
cashBalanceTransactions
public CustomerCashBalanceTransactionCollection cashBalanceTransactions(CustomerCashBalanceTransactionsParams params) throws StripeException Returns a list of transactions that modified the customer’s cash balance.- Throws:
StripeException
-
cashBalanceTransactions
public CustomerCashBalanceTransactionCollection cashBalanceTransactions(CustomerCashBalanceTransactionsParams params, RequestOptions options) throws StripeException Returns a list of transactions that modified the customer’s cash balance.- Throws:
StripeException
-
create
Creates a new customer object.- Throws:
StripeException
-
create
public static Customer create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new customer object.- Throws:
StripeException
-
create
Creates a new customer object.- Throws:
StripeException
-
create
public static Customer create(CustomerCreateParams params, RequestOptions options) throws StripeException Creates a new customer object.- Throws:
StripeException
-
createFundingInstructions
public 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
-
createFundingInstructions
public 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
-
createFundingInstructions
public 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
-
createFundingInstructions
public 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
-
delete
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
StripeException
-
delete
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
StripeException
-
delete
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
StripeException
-
delete
Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.- Throws:
StripeException
-
deleteDiscount
Removes the currently applied discount on a customer.- Throws:
StripeException
-
deleteDiscount
Removes the currently applied discount on a customer.- Throws:
StripeException
-
deleteDiscount
public Discount deleteDiscount(Map<String, Object> params, RequestOptions options) throws StripeExceptionRemoves the currently applied discount on a customer.- Throws:
StripeException
-
list
Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.- Throws:
StripeException
-
list
public 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
-
list
Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.- Throws:
StripeException
-
list
public 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
-
listPaymentMethods
Returns a list of PaymentMethods for a given Customer.- Throws:
StripeException
-
listPaymentMethods
Returns a list of PaymentMethods for a given Customer.- Throws:
StripeException
-
listPaymentMethods
public PaymentMethodCollection listPaymentMethods(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of PaymentMethods for a given Customer.- Throws:
StripeException
-
listPaymentMethods
public PaymentMethodCollection listPaymentMethods(CustomerListPaymentMethodsParams params) throws StripeException Returns a list of PaymentMethods for a given Customer.- Throws:
StripeException
-
listPaymentMethods
public PaymentMethodCollection listPaymentMethods(CustomerListPaymentMethodsParams params, RequestOptions options) throws StripeException Returns a list of PaymentMethods for a given Customer.- Throws:
StripeException
-
retrieve
Retrieves a Customer object.- Throws:
StripeException
-
retrieve
Retrieves a Customer object.- Throws:
StripeException
-
retrieve
public static Customer retrieve(String customer, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a Customer object.- Throws:
StripeException
-
retrieve
public static Customer retrieve(String customer, CustomerRetrieveParams params, RequestOptions options) throws StripeException Retrieves a Customer object.- Throws:
StripeException
-
retrievePaymentMethod
Retrieves a PaymentMethod object for a given Customer.- Throws:
StripeException
-
retrievePaymentMethod
public PaymentMethod retrievePaymentMethod(String paymentMethod, Map<String, Object> params) throws StripeExceptionRetrieves a PaymentMethod object for a given Customer.- Throws:
StripeException
-
retrievePaymentMethod
public PaymentMethod retrievePaymentMethod(String paymentMethod, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a PaymentMethod object for a given Customer.- Throws:
StripeException
-
retrievePaymentMethod
public PaymentMethod retrievePaymentMethod(String paymentMethod, CustomerRetrievePaymentMethodParams params) throws StripeException Retrieves a PaymentMethod object for a given Customer.- Throws:
StripeException
-
retrievePaymentMethod
public PaymentMethod retrievePaymentMethod(String paymentMethod, CustomerRetrievePaymentMethodParams params, RequestOptions options) throws StripeException Retrieves a PaymentMethod object for a given Customer.- Throws:
StripeException
-
search
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
-
search
public 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
-
search
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
-
search
public 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
-
update
Updates 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_due
state, 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:
update
in interfaceMetadataStore<Customer>
- Throws:
StripeException
-
update
Updates 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_due
state, 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:
update
in interfaceMetadataStore<Customer>
- Throws:
StripeException
-
update
Updates 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_due
state, 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
-
update
Updates 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_due
state, 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
-
getTestHelpers
The customer's state, county, province, or region as identified by Stripe Tax. -
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getAddress
The customer's address. -
getBalance
The current balance, if any, that's stored on the customer. 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. -
getCashBalance
The 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. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes. -
getDeleted
Always true for a deleted object. -
getDelinquent
Tracks 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_date
will set this field totrue
.If an invoice becomes uncollectible by dunning,
delinquent
doesn't reset tofalse
.If you care whether the customer has paid their most recent subscription invoice, use
subscription.status
instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field tofalse
. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getDiscount
Describes the current discount active on the customer, if there is one. -
getEmail
The customer's email address. -
getInvoiceCreditBalance
The 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. -
getInvoicePrefix
The prefix for the customer used to generate unique invoice numbers. -
getInvoiceSettings
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getName
The customer's full name or business name. -
getNextInvoiceSequence
The 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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
customer
. -
getPhone
The customer's phone number. -
getPreferredLocales
The customer's preferred locales (languages), ordered by preference. -
getShipping
Mailing and shipping address for the customer. Appears on invoices emailed to this customer. -
getSources
The customer's payment sources, if any. -
getSubscriptions
The customer's current subscriptions, if any. -
getTax
-
getTaxExempt
Describes 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
. -
getTaxIds
The customer's tax IDs. -
setAddress
The customer's address. -
setBalance
The current balance, if any, that's stored on the customer. 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. -
setCashBalance
The 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. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO code for the currency the customer can be charged in for recurring billing purposes. -
setDeleted
Always true for a deleted object. -
setDelinquent
Tracks 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_date
will set this field totrue
.If an invoice becomes uncollectible by dunning,
delinquent
doesn't reset tofalse
.If you care whether the customer has paid their most recent subscription invoice, use
subscription.status
instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field tofalse
. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setDiscount
Describes the current discount active on the customer, if there is one. -
setEmail
The customer's email address. -
setId
Unique identifier for the object. -
setInvoiceCreditBalance
The 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. -
setInvoicePrefix
The prefix for the customer used to generate unique invoice numbers. -
setInvoiceSettings
-
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetadata
Set 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. -
setName
The customer's full name or business name. -
setNextInvoiceSequence
The 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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
customer
. -
setPhone
The customer's phone number. -
setPreferredLocales
The customer's preferred locales (languages), ordered by preference. -
setShipping
Mailing and shipping address for the customer. Appears on invoices emailed to this customer. -
setSources
The customer's payment sources, if any. -
setSubscriptions
The customer's current subscriptions, if any. -
setTax
-
setTaxExempt
Describes 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
. -
setTaxIds
The customer's tax IDs. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set 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:
getMetadata
in interfaceMetadataStore<Customer>
-