Package com.stripe.model
Class SetupAttempt
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.SetupAttempt
-
- All Implemented Interfaces:
HasId
,StripeObjectInterface
public class SetupAttempt extends ApiResource implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetupAttempt.PaymentMethodDetails
-
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 SetupAttempt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getApplication()
Get ID of expandableapplication
object.Application
getApplicationObject()
Get expandedapplication
.java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCustomer()
Get ID of expandablecustomer
object.Customer
getCustomerObject()
Get expandedcustomer
.java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getObject()
String representing the object's type.java.lang.String
getOnBehalfOf()
Get ID of expandableonBehalfOf
object.Account
getOnBehalfOfObject()
Get expandedonBehalfOf
.java.lang.String
getPaymentMethod()
Get ID of expandablepaymentMethod
object.SetupAttempt.PaymentMethodDetails
getPaymentMethodDetails()
PaymentMethod
getPaymentMethodObject()
Get expandedpaymentMethod
.StripeError
getSetupError()
The error encountered during this attempt to confirm the SetupIntent, if any.java.lang.String
getSetupIntent()
Get ID of expandablesetupIntent
object.SetupIntent
getSetupIntentObject()
Get expandedsetupIntent
.java.lang.String
getStatus()
Status of this SetupAttempt, one ofrequires_confirmation
,requires_action
,processing
,succeeded
,failed
, orabandoned
.java.lang.String
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 associated with a provided SetupIntent.static SetupAttemptCollection
list(SetupAttemptListParams params, RequestOptions options)
Returns a list of SetupAttempts associated with a provided SetupIntent.static SetupAttemptCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of SetupAttempts associated with a provided SetupIntent.static SetupAttemptCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Returns a list of SetupAttempts associated with a provided SetupIntent.void
setApplication(java.lang.String id)
void
setApplicationObject(Application expandableObject)
void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCustomer(java.lang.String id)
void
setCustomerObject(Customer expandableObject)
void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setObject(java.lang.String object)
String representing the object's type.void
setOnBehalfOf(java.lang.String id)
void
setOnBehalfOfObject(Account expandableObject)
void
setPaymentMethod(java.lang.String id)
void
setPaymentMethodDetails(SetupAttempt.PaymentMethodDetails paymentMethodDetails)
void
setPaymentMethodObject(PaymentMethod expandableObject)
void
setSetupError(StripeError setupError)
The error encountered during this attempt to confirm the SetupIntent, if any.void
setSetupIntent(java.lang.String id)
void
setSetupIntentObject(SetupIntent expandableObject)
void
setStatus(java.lang.String status)
Status of this SetupAttempt, one ofrequires_confirmation
,requires_action
,processing
,succeeded
,failed
, orabandoned
.void
setUsage(java.lang.String usage)
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, 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 expandableapplication
object.
-
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 expandablecustomer
object.
-
setCustomer
public void setCustomer(java.lang.String id)
-
getCustomerObject
public Customer getCustomerObject()
Get expandedcustomer
.
-
setCustomerObject
public void setCustomerObject(Customer expandableObject)
-
getOnBehalfOf
public java.lang.String getOnBehalfOf()
Get ID of expandableonBehalfOf
object.
-
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 expandablepaymentMethod
object.
-
setPaymentMethod
public void setPaymentMethod(java.lang.String id)
-
getPaymentMethodObject
public PaymentMethod getPaymentMethodObject()
Get expandedpaymentMethod
.
-
setPaymentMethodObject
public void setPaymentMethodObject(PaymentMethod expandableObject)
-
getSetupIntent
public java.lang.String getSetupIntent()
Get ID of expandablesetupIntent
object.
-
setSetupIntent
public void setSetupIntent(java.lang.String id)
-
getSetupIntentObject
public SetupIntent getSetupIntentObject()
Get expandedsetupIntent
.
-
setSetupIntentObject
public void setSetupIntentObject(SetupIntent expandableObject)
-
list
public static SetupAttemptCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of SetupAttempts associated with a provided SetupIntent.- Throws:
StripeException
-
list
public static SetupAttemptCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list of SetupAttempts associated with a provided SetupIntent.- Throws:
StripeException
-
list
public static SetupAttemptCollection list(SetupAttemptListParams params) throws StripeException
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
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
setup_attempt
.
-
getPaymentMethodDetails
public SetupAttempt.PaymentMethodDetails getPaymentMethodDetails()
-
getSetupError
public StripeError getSetupError()
The error encountered during this attempt to confirm the SetupIntent, if any.
-
getStatus
public java.lang.String getStatus()
Status of this SetupAttempt, one ofrequires_confirmation
,requires_action
,processing
,succeeded
,failed
, orabandoned
.
-
getUsage
public java.lang.String getUsage()
The value of usage on the SetupIntent at the time of this confirmation, one ofoff_session
oron_session
.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
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_attempt
.
-
setPaymentMethodDetails
public void setPaymentMethodDetails(SetupAttempt.PaymentMethodDetails paymentMethodDetails)
-
setSetupError
public void setSetupError(StripeError setupError)
The error encountered during this attempt to confirm the SetupIntent, if any.
-
setStatus
public void setStatus(java.lang.String status)
Status of this SetupAttempt, one ofrequires_confirmation
,requires_action
,processing
,succeeded
,failed
, orabandoned
.
-
setUsage
public void setUsage(java.lang.String usage)
The value of usage on the SetupIntent at the time of this confirmation, one ofoff_session
oron_session
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-