Class SetupAttempt
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
-
Nested Class Summary
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 TypeMethodDescriptionprotected boolean
boolean
Get ID of expandableapplication
object.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 expandablecustomer
object.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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Get ID of expandableonBehalfOf
object.Get expandedonBehalfOf
.Get ID of expandablepaymentMethod
object.Get expandedpaymentMethod
.The error encountered during this attempt to confirm the SetupIntent, if any.Get ID of expandablesetupIntent
object.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_session
oron_session
.int
hashCode()
static SetupAttemptCollection
list
(SetupAttemptListParams params) Returns a list of SetupAttempts that associate with a provided SetupIntent.static SetupAttemptCollection
list
(SetupAttemptListParams params, RequestOptions options) Returns a list of SetupAttempts that associate with a provided SetupIntent.static SetupAttemptCollection
Returns a list of SetupAttempts that associate with a provided SetupIntent.static SetupAttemptCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of SetupAttempts that associate with a provided SetupIntent.void
setApplication
(String id) void
setApplicationObject
(Application expandableObject) void
setAttachToSelf
(Boolean attachToSelf) If present, the SetupIntent's payment method will be attached to the in-context Stripe Account.void
setCreated
(Long created) Time at which the object was created.void
setCustomer
(String id) void
setCustomerObject
(Customer expandableObject) void
setFlowDirections
(List<String> flowDirections) Indicates the directions of money movement for which this payment method is intended to be used.void
Unique identifier for the object.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
String representing the object's type.void
setOnBehalfOf
(String id) void
setOnBehalfOfObject
(Account expandableObject) void
void
setPaymentMethodDetails
(SetupAttempt.PaymentMethodDetails paymentMethodDetails) void
setPaymentMethodObject
(PaymentMethod expandableObject) void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setSetupError
(StripeError setupError) The error encountered during this attempt to confirm the SetupIntent, if any.void
setSetupIntent
(String id) void
setSetupIntentObject
(SetupIntent expandableObject) void
Status of this SetupAttempt, one ofrequires_confirmation
,requires_action
,processing
,succeeded
,failed
, orabandoned
.void
The value of usage on the SetupIntent at the time of this confirmation, one ofoff_session
oron_session
.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
-
SetupAttempt
public SetupAttempt()
-
-
Method Details
-
getApplication
Get ID of expandableapplication
object. -
setApplication
-
getApplicationObject
Get expandedapplication
. -
setApplicationObject
-
getCustomer
Get ID of expandablecustomer
object. -
setCustomer
-
getCustomerObject
Get expandedcustomer
. -
setCustomerObject
-
getOnBehalfOf
Get ID of expandableonBehalfOf
object. -
setOnBehalfOf
-
getOnBehalfOfObject
Get expandedonBehalfOf
. -
setOnBehalfOfObject
-
getPaymentMethod
Get ID of expandablepaymentMethod
object. -
setPaymentMethod
-
getPaymentMethodObject
Get expandedpaymentMethod
. -
setPaymentMethodObject
-
getSetupIntent
Get ID of expandablesetupIntent
object. -
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: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.
-
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
inbound
if you intend to use the payment method as the origin to pull funds from. Includeoutbound
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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_session
oron_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
inbound
if you intend to use the payment method as the origin to pull funds from. Includeoutbound
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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_session
oron_session
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-