Class SetupAttempt
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about PaymentMethodDetails, please refer to the API Reference.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_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.The value of customer_account on the SetupIntent at the time of this confirmation.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 that associate with a provided SetupIntent.static SetupAttemptCollectionlist(SetupAttemptListParams params, RequestOptions options) Returns a list of SetupAttempts that associate with a provided SetupIntent.static SetupAttemptCollectionReturns a list of SetupAttempts that associate with a provided SetupIntent.static SetupAttemptCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of SetupAttempts that associate 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) voidsetCustomerAccount(String customerAccount) The value of customer_account on the SetupIntent at the time of this confirmation.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) voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.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, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
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 that associate with a provided SetupIntent.- Throws:
StripeException
-
list
public static SetupAttemptCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of SetupAttempts that associate with a provided SetupIntent.- Throws:
StripeException
-
list
Returns a list of SetupAttempts that associate with a provided SetupIntent.- Throws:
StripeException
-
list
public static SetupAttemptCollection list(SetupAttemptListParams params, RequestOptions options) throws StripeException Returns a list of SetupAttempts that associate with a provided SetupIntent.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
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. -
getCustomerAccount
The value of customer_account on the SetupIntent at the time of this confirmation. -
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. -
setCustomerAccount
The value of customer_account on the SetupIntent at the time of this confirmation. -
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.
-