Class SetupAttempt
- All Implemented Interfaces:
HasId,StripeObjectInterface
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGet ID of expandableapplicationobject.Get expandedapplication.If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.Time at which the object was created.Get ID of expandablecustomerobject.Get expandedcustomer.Indicates the directions of money movement for which this payment method is intended to be used.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Get ID of expandableonBehalfOfobject.Get expandedonBehalfOf.Get ID of expandablepaymentMethodobject.Get expandedpaymentMethod.The error encountered during this attempt to confirm the SetupIntent, if any.Get ID of expandablesetupIntentobject.Get expandedsetupIntent.Status of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned.getUsage()The value of usage on the SetupIntent at the time of this confirmation, one ofoff_sessionoron_session.inthashCode()static SetupAttemptCollectionlist(SetupAttemptListParams params) Returns a list of SetupAttempts associated with a provided SetupIntent.static SetupAttemptCollectionlist(SetupAttemptListParams params, RequestOptions options) Returns a list of SetupAttempts associated with a provided SetupIntent.static SetupAttemptCollectionReturns a list of SetupAttempts associated with a provided SetupIntent.static SetupAttemptCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of SetupAttempts associated with a provided SetupIntent.voidsetApplication(String id) voidsetApplicationObject(Application expandableObject) voidsetAttachToSelf(Boolean attachToSelf) If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.voidsetCreated(Long created) Time at which the object was created.voidsetCustomer(String id) voidsetCustomerObject(Customer expandableObject) voidsetFlowDirections(List<String> flowDirections) Indicates the directions of money movement for which this payment method is intended to be used.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetOnBehalfOf(String id) voidsetOnBehalfOfObject(Account expandableObject) voidvoidsetPaymentMethodDetails(SetupAttempt.PaymentMethodDetails paymentMethodDetails) voidsetPaymentMethodObject(PaymentMethod expandableObject) voidsetSetupError(StripeError setupError) The error encountered during this attempt to confirm the SetupIntent, if any.voidsetSetupIntent(String id) voidsetSetupIntentObject(SetupIntent expandableObject) voidStatus of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned.voidThe value of usage on the SetupIntent at the time of this confirmation, one ofoff_sessionoron_session.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SetupAttempt
public SetupAttempt()
-
-
Method Details
-
getApplication
Get ID of expandableapplicationobject. -
setApplication
-
getApplicationObject
Get expandedapplication. -
setApplicationObject
-
getCustomer
Get ID of expandablecustomerobject. -
setCustomer
-
getCustomerObject
Get expandedcustomer. -
setCustomerObject
-
getOnBehalfOf
Get ID of expandableonBehalfOfobject. -
setOnBehalfOf
-
getOnBehalfOfObject
Get expandedonBehalfOf. -
setOnBehalfOfObject
-
getPaymentMethod
Get ID of expandablepaymentMethodobject. -
setPaymentMethod
-
getPaymentMethodObject
Get expandedpaymentMethod. -
setPaymentMethodObject
-
getSetupIntent
Get ID of expandablesetupIntentobject. -
setSetupIntent
-
getSetupIntentObject
Get expandedsetupIntent. -
setSetupIntentObject
-
list
Returns a list of SetupAttempts associated with a provided SetupIntent.- Throws:
StripeException
-
list
public static SetupAttemptCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of SetupAttempts associated with a provided SetupIntent.- Throws:
StripeException
-
list
Returns a list of SetupAttempts associated with a provided SetupIntent.- Throws:
StripeException
-
list
public static SetupAttemptCollection list(SetupAttemptListParams params, RequestOptions options) throws StripeException Returns a list of SetupAttempts associated with a provided SetupIntent.- Throws:
StripeException
-
getAttachToSelf
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getFlowDirections
Indicates the directions of money movement for which this payment method is intended to be used.Include
inboundif you intend to use the payment method as the origin to pull funds from. Includeoutboundif you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
setup_attempt. -
getPaymentMethodDetails
-
getSetupError
The error encountered during this attempt to confirm the SetupIntent, if any. -
getStatus
Status of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned. -
getUsage
The value of usage on the SetupIntent at the time of this confirmation, one ofoff_sessionoron_session. -
setAttachToSelf
If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.It can only be used for this Stripe Account’s own money movement flows like InboundTransfer and OutboundTransfers. It cannot be set to true when setting up a PaymentMethod for a Customer, and defaults to false when attaching a PaymentMethod to a Customer.
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setFlowDirections
Indicates the directions of money movement for which this payment method is intended to be used.Include
inboundif you intend to use the payment method as the origin to pull funds from. Includeoutboundif you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
setup_attempt. -
setPaymentMethodDetails
-
setSetupError
The error encountered during this attempt to confirm the SetupIntent, if any. -
setStatus
Status of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned. -
setUsage
The value of usage on the SetupIntent at the time of this confirmation, one ofoff_sessionoron_session. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-