Class SetupIntent
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.SetupIntent
-
- All Implemented Interfaces:
HasId,MetadataStore<SetupIntent>,StripeObjectInterface
public class SetupIntent extends ApiResource implements HasId, MetadataStore<SetupIntent>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSetupIntent.NextActionstatic classSetupIntent.NextActionRedirectToUrlThe URL for the hosted verification page, which allows customers to verify their bank account.static classSetupIntent.PaymentMethodOptions-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description SetupIntent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SetupIntentcancel()A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.SetupIntentcancel(RequestOptions options)A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.SetupIntentcancel(SetupIntentCancelParams params)A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.SetupIntentcancel(SetupIntentCancelParams params, RequestOptions options)A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.SetupIntentcancel(java.util.Map<java.lang.String,java.lang.Object> params)A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.SetupIntentcancel(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.protected booleancanEqual(java.lang.Object other)SetupIntentconfirm()Confirm that your customer intends to set up the current or provided payment method.SetupIntentconfirm(RequestOptions options)Confirm that your customer intends to set up the current or provided payment method.SetupIntentconfirm(SetupIntentConfirmParams params)Confirm that your customer intends to set up the current or provided payment method.SetupIntentconfirm(SetupIntentConfirmParams params, RequestOptions options)Confirm that your customer intends to set up the current or provided payment method.SetupIntentconfirm(java.util.Map<java.lang.String,java.lang.Object> params)Confirm that your customer intends to set up the current or provided payment method.SetupIntentconfirm(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Confirm that your customer intends to set up the current or provided payment method.static SetupIntentcreate(SetupIntentCreateParams params)Creates a SetupIntent object.static SetupIntentcreate(SetupIntentCreateParams params, RequestOptions options)Creates a SetupIntent object.static SetupIntentcreate(java.util.Map<java.lang.String,java.lang.Object> params)Creates a SetupIntent object.static SetupIntentcreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Creates a SetupIntent object.booleanequals(java.lang.Object o)java.lang.StringgetApplication()Get ID of expandableapplicationobject.ApplicationgetApplicationObject()Get expandedapplication.java.lang.StringgetCancellationReason()Reason for cancellation of this SetupIntent, one ofabandoned,requested_by_customer, orduplicate.java.lang.StringgetClientSecret()The client secret of this SetupIntent.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCustomer()Get ID of expandablecustomerobject.CustomergetCustomerObject()Get expandedcustomer.java.lang.StringgetDescription()An arbitrary string attached to the object.java.lang.StringgetId()Unique identifier for the object.StripeErrorgetLastSetupError()The error encountered in the previous SetupIntent confirmation.java.lang.StringgetLatestAttempt()Get ID of expandablelatestAttemptobject.SetupAttemptgetLatestAttemptObject()Get expandedlatestAttempt.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.lang.StringgetMandate()Get ID of expandablemandateobject.MandategetMandateObject()Get expandedmandate.java.util.Map<java.lang.String,java.lang.String>getMetadata()Set of key-value pairs that you can attach to an object.SetupIntent.NextActiongetNextAction()If present, this property tells you what actions you need to take in order for your customer to continue payment setup.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetOnBehalfOf()Get ID of expandableonBehalfOfobject.AccountgetOnBehalfOfObject()Get expandedonBehalfOf.java.lang.StringgetPaymentMethod()Get ID of expandablepaymentMethodobject.PaymentMethodgetPaymentMethodObject()Get expandedpaymentMethod.SetupIntent.PaymentMethodOptionsgetPaymentMethodOptions()Payment-method-specific configuration for this SetupIntent.java.util.List<java.lang.String>getPaymentMethodTypes()The list of payment method types (e.g.java.lang.StringgetSingleUseMandate()Get ID of expandablesingleUseMandateobject.MandategetSingleUseMandateObject()Get expandedsingleUseMandate.java.lang.StringgetStatus()Status of this SetupIntent, one ofrequires_payment_method,requires_confirmation,requires_action,processing,canceled, orsucceeded.java.lang.StringgetUsage()Indicates how the payment method is intended to be used in the future.inthashCode()static SetupIntentCollectionlist(SetupIntentListParams params)Returns a list of SetupIntents.static SetupIntentCollectionlist(SetupIntentListParams params, RequestOptions options)Returns a list of SetupIntents.static SetupIntentCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of SetupIntents.static SetupIntentCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of SetupIntents.static SetupIntentretrieve(java.lang.String intent)Retrieves the details of a SetupIntent that has previously been created.static SetupIntentretrieve(java.lang.String intent, RequestOptions options)Retrieves the details of a SetupIntent that has previously been created.static SetupIntentretrieve(java.lang.String intent, SetupIntentRetrieveParams params, RequestOptions options)Retrieves the details of a SetupIntent that has previously been created.static SetupIntentretrieve(java.lang.String intent, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves the details of a SetupIntent that has previously been created.voidsetApplication(java.lang.String id)voidsetApplicationObject(Application expandableObject)voidsetCancellationReason(java.lang.String cancellationReason)Reason for cancellation of this SetupIntent, one ofabandoned,requested_by_customer, orduplicate.voidsetClientSecret(java.lang.String clientSecret)The client secret of this SetupIntent.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCustomer(java.lang.String id)voidsetCustomerObject(Customer expandableObject)voidsetDescription(java.lang.String description)An arbitrary string attached to the object.voidsetId(java.lang.String id)Unique identifier for the object.voidsetLastSetupError(StripeError lastSetupError)The error encountered in the previous SetupIntent confirmation.voidsetLatestAttempt(java.lang.String id)voidsetLatestAttemptObject(SetupAttempt expandableObject)voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMandate(java.lang.String id)voidsetMandateObject(Mandate expandableObject)voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetNextAction(SetupIntent.NextAction nextAction)If present, this property tells you what actions you need to take in order for your customer to continue payment setup.voidsetObject(java.lang.String object)String representing the object's type.voidsetOnBehalfOf(java.lang.String id)voidsetOnBehalfOfObject(Account expandableObject)voidsetPaymentMethod(java.lang.String id)voidsetPaymentMethodObject(PaymentMethod expandableObject)voidsetPaymentMethodOptions(SetupIntent.PaymentMethodOptions paymentMethodOptions)Payment-method-specific configuration for this SetupIntent.voidsetPaymentMethodTypes(java.util.List<java.lang.String> paymentMethodTypes)The list of payment method types (e.g.voidsetSingleUseMandate(java.lang.String id)voidsetSingleUseMandateObject(Mandate expandableObject)voidsetStatus(java.lang.String status)Status of this SetupIntent, one ofrequires_payment_method,requires_confirmation,requires_action,processing,canceled, orsucceeded.voidsetUsage(java.lang.String usage)Indicates how the payment method is intended to be used in the future.SetupIntentupdate(SetupIntentUpdateParams params)Updates a SetupIntent object.SetupIntentupdate(SetupIntentUpdateParams params, RequestOptions options)Updates a SetupIntent object.SetupIntentupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates a SetupIntent object.SetupIntentupdate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Updates a SetupIntent object.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getApplication
public java.lang.String getApplication()
Get ID of expandableapplicationobject.
-
setApplication
public void setApplication(java.lang.String id)
-
getApplicationObject
public Application getApplicationObject()
Get expandedapplication.
-
setApplicationObject
public void setApplicationObject(Application expandableObject)
-
getCustomer
public java.lang.String getCustomer()
Get ID of expandablecustomerobject.
-
setCustomer
public void setCustomer(java.lang.String id)
-
getCustomerObject
public Customer getCustomerObject()
Get expandedcustomer.
-
setCustomerObject
public void setCustomerObject(Customer expandableObject)
-
getLatestAttempt
public java.lang.String getLatestAttempt()
Get ID of expandablelatestAttemptobject.
-
setLatestAttempt
public void setLatestAttempt(java.lang.String id)
-
getLatestAttemptObject
public SetupAttempt getLatestAttemptObject()
Get expandedlatestAttempt.
-
setLatestAttemptObject
public void setLatestAttemptObject(SetupAttempt expandableObject)
-
getMandate
public java.lang.String getMandate()
Get ID of expandablemandateobject.
-
setMandate
public void setMandate(java.lang.String id)
-
getMandateObject
public Mandate getMandateObject()
Get expandedmandate.
-
setMandateObject
public void setMandateObject(Mandate expandableObject)
-
getOnBehalfOf
public java.lang.String getOnBehalfOf()
Get ID of expandableonBehalfOfobject.
-
setOnBehalfOf
public void setOnBehalfOf(java.lang.String id)
-
getOnBehalfOfObject
public Account getOnBehalfOfObject()
Get expandedonBehalfOf.
-
setOnBehalfOfObject
public void setOnBehalfOfObject(Account expandableObject)
-
getPaymentMethod
public java.lang.String getPaymentMethod()
Get ID of expandablepaymentMethodobject.
-
setPaymentMethod
public void setPaymentMethod(java.lang.String id)
-
getPaymentMethodObject
public PaymentMethod getPaymentMethodObject()
Get expandedpaymentMethod.
-
setPaymentMethodObject
public void setPaymentMethodObject(PaymentMethod expandableObject)
-
getSingleUseMandate
public java.lang.String getSingleUseMandate()
Get ID of expandablesingleUseMandateobject.
-
setSingleUseMandate
public void setSingleUseMandate(java.lang.String id)
-
getSingleUseMandateObject
public Mandate getSingleUseMandateObject()
Get expandedsingleUseMandate.
-
setSingleUseMandateObject
public void setSingleUseMandateObject(Mandate expandableObject)
-
create
public static SetupIntent create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Creates a SetupIntent object.After the SetupIntent is created, attach a payment method and confirm to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
create
public static SetupIntent create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Creates a SetupIntent object.After the SetupIntent is created, attach a payment method and confirm to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
create
public static SetupIntent create(SetupIntentCreateParams params) throws StripeException
Creates a SetupIntent object.After the SetupIntent is created, attach a payment method and confirm to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
create
public static SetupIntent create(SetupIntentCreateParams params, RequestOptions options) throws StripeException
Creates a SetupIntent object.After the SetupIntent is created, attach a payment method and confirm to collect any required permissions to charge the payment method later.
- Throws:
StripeException
-
list
public static SetupIntentCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of SetupIntents.- Throws:
StripeException
-
list
public static SetupIntentCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list of SetupIntents.- Throws:
StripeException
-
list
public static SetupIntentCollection list(SetupIntentListParams params) throws StripeException
Returns a list of SetupIntents.- Throws:
StripeException
-
list
public static SetupIntentCollection list(SetupIntentListParams params, RequestOptions options) throws StripeException
Returns a list of SetupIntents.- Throws:
StripeException
-
retrieve
public static SetupIntent retrieve(java.lang.String intent) throws StripeException
Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secretis provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
retrieve
public static SetupIntent retrieve(java.lang.String intent, RequestOptions options) throws StripeException
Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secretis provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
retrieve
public static SetupIntent retrieve(java.lang.String intent, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secretis provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
retrieve
public static SetupIntent retrieve(java.lang.String intent, SetupIntentRetrieveParams params, RequestOptions options) throws StripeException
Retrieves the details of a SetupIntent that has previously been created.Client-side retrieval using a publishable key is allowed when the
client_secretis provided in the query string.When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the SetupIntent object reference for more details.
- Throws:
StripeException
-
update
public SetupIntent update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates a SetupIntent object.- Specified by:
updatein interfaceMetadataStore<SetupIntent>- Throws:
StripeException
-
update
public SetupIntent update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates a SetupIntent object.- Specified by:
updatein interfaceMetadataStore<SetupIntent>- Throws:
StripeException
-
update
public SetupIntent update(SetupIntentUpdateParams params) throws StripeException
Updates a SetupIntent object.- Throws:
StripeException
-
update
public SetupIntent update(SetupIntentUpdateParams params, RequestOptions options) throws StripeException
Updates a SetupIntent object.- Throws:
StripeException
-
confirm
public SetupIntent confirm() throws StripeException
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeededstatus.Otherwise, it will transition to the
requires_actionstatus and suggest additional actions vianext_action. If setup fails, the SetupIntent will transition to therequires_payment_methodstatus.- Throws:
StripeException
-
confirm
public SetupIntent confirm(RequestOptions options) throws StripeException
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeededstatus.Otherwise, it will transition to the
requires_actionstatus and suggest additional actions vianext_action. If setup fails, the SetupIntent will transition to therequires_payment_methodstatus.- Throws:
StripeException
-
confirm
public SetupIntent confirm(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeededstatus.Otherwise, it will transition to the
requires_actionstatus and suggest additional actions vianext_action. If setup fails, the SetupIntent will transition to therequires_payment_methodstatus.- Throws:
StripeException
-
confirm
public SetupIntent confirm(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeededstatus.Otherwise, it will transition to the
requires_actionstatus and suggest additional actions vianext_action. If setup fails, the SetupIntent will transition to therequires_payment_methodstatus.- Throws:
StripeException
-
confirm
public SetupIntent confirm(SetupIntentConfirmParams params) throws StripeException
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeededstatus.Otherwise, it will transition to the
requires_actionstatus and suggest additional actions vianext_action. If setup fails, the SetupIntent will transition to therequires_payment_methodstatus.- Throws:
StripeException
-
confirm
public SetupIntent confirm(SetupIntentConfirmParams params, RequestOptions options) throws StripeException
Confirm that your customer intends to set up the current or provided payment method. For example, you would confirm a SetupIntent when a customer hits the “Save” button on a payment method management page on your website.If the selected payment method does not require any additional steps from the customer, the SetupIntent will transition to the
succeededstatus.Otherwise, it will transition to the
requires_actionstatus and suggest additional actions vianext_action. If setup fails, the SetupIntent will transition to therequires_payment_methodstatus.- Throws:
StripeException
-
cancel
public SetupIntent cancel() throws StripeException
A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
- Throws:
StripeException
-
cancel
public SetupIntent cancel(RequestOptions options) throws StripeException
A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
- Throws:
StripeException
-
cancel
public SetupIntent cancel(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
- Throws:
StripeException
-
cancel
public SetupIntent cancel(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
- Throws:
StripeException
-
cancel
public SetupIntent cancel(SetupIntentCancelParams params) throws StripeException
A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
- Throws:
StripeException
-
cancel
public SetupIntent cancel(SetupIntentCancelParams params, RequestOptions options) throws StripeException
A SetupIntent object can be canceled when it is in one of these statuses:requires_payment_method,requires_confirmation, orrequires_action.Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
- Throws:
StripeException
-
getCancellationReason
public java.lang.String getCancellationReason()
Reason for cancellation of this SetupIntent, one ofabandoned,requested_by_customer, orduplicate.
-
getClientSecret
public java.lang.String getClientSecret()
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getDescription
public java.lang.String getDescription()
An arbitrary string attached to the object. Often useful for displaying to users.
-
getLastSetupError
public StripeError getLastSetupError()
The error encountered in the previous SetupIntent confirmation.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
getNextAction
public SetupIntent.NextAction getNextAction()
If present, this property tells you what actions you need to take in order for your customer to continue payment setup.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
setup_intent.
-
getPaymentMethodOptions
public SetupIntent.PaymentMethodOptions getPaymentMethodOptions()
Payment-method-specific configuration for this SetupIntent.
-
getPaymentMethodTypes
public java.util.List<java.lang.String> getPaymentMethodTypes()
The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
-
getStatus
public java.lang.String getStatus()
Status of this SetupIntent, one ofrequires_payment_method,requires_confirmation,requires_action,processing,canceled, orsucceeded.
-
getUsage
public java.lang.String getUsage()
Indicates how the payment method is intended to be used in the future.Use
on_sessionif you intend to only reuse the payment method when the customer is in your checkout flow. Useoff_sessionif your customer may or may not be in your checkout flow. If not provided, this value defaults tooff_session.
-
setCancellationReason
public void setCancellationReason(java.lang.String cancellationReason)
Reason for cancellation of this SetupIntent, one ofabandoned,requested_by_customer, orduplicate.
-
setClientSecret
public void setClientSecret(java.lang.String clientSecret)
The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.The client secret can be used to complete payment setup from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setDescription
public void setDescription(java.lang.String description)
An arbitrary string attached to the object. Often useful for displaying to users.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLastSetupError
public void setLastSetupError(StripeError lastSetupError)
The error encountered in the previous SetupIntent confirmation.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
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.
-
setNextAction
public void setNextAction(SetupIntent.NextAction nextAction)
If present, this property tells you what actions you need to take in order for your customer to continue payment setup.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
setup_intent.
-
setPaymentMethodOptions
public void setPaymentMethodOptions(SetupIntent.PaymentMethodOptions paymentMethodOptions)
Payment-method-specific configuration for this SetupIntent.
-
setPaymentMethodTypes
public void setPaymentMethodTypes(java.util.List<java.lang.String> paymentMethodTypes)
The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
-
setStatus
public void setStatus(java.lang.String status)
Status of this SetupIntent, one ofrequires_payment_method,requires_confirmation,requires_action,processing,canceled, orsucceeded.
-
setUsage
public void setUsage(java.lang.String usage)
Indicates how the payment method is intended to be used in the future.Use
on_sessionif you intend to only reuse the payment method when the customer is in your checkout flow. Useoff_sessionif your customer may or may not be in your checkout flow. If not provided, this value defaults tooff_session.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getId
public java.lang.String getId()
Unique identifier for the object.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> 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:
getMetadatain interfaceMetadataStore<SetupIntent>
-
-