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 classSetupAttempt.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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetApplication()Get ID of expandableapplicationobject.ApplicationgetApplicationObject()Get expandedapplication.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCustomer()Get ID of expandablecustomerobject.CustomergetCustomerObject()Get expandedcustomer.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.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.SetupAttempt.PaymentMethodDetailsgetPaymentMethodDetails()PaymentMethodgetPaymentMethodObject()Get expandedpaymentMethod.StripeErrorgetSetupError()The error encountered during this attempt to confirm the SetupIntent, if any.java.lang.StringgetSetupIntent()Get ID of expandablesetupIntentobject.SetupIntentgetSetupIntentObject()Get expandedsetupIntent.java.lang.StringgetStatus()Status of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned.java.lang.StringgetUsage()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 SetupAttemptCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of SetupAttempts associated with a provided SetupIntent.static SetupAttemptCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of SetupAttempts associated with a provided SetupIntent.voidsetApplication(java.lang.String id)voidsetApplicationObject(Application expandableObject)voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCustomer(java.lang.String id)voidsetCustomerObject(Customer expandableObject)voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetObject(java.lang.String object)String representing the object's type.voidsetOnBehalfOf(java.lang.String id)voidsetOnBehalfOfObject(Account expandableObject)voidsetPaymentMethod(java.lang.String id)voidsetPaymentMethodDetails(SetupAttempt.PaymentMethodDetails paymentMethodDetails)voidsetPaymentMethodObject(PaymentMethod expandableObject)voidsetSetupError(StripeError setupError)The error encountered during this attempt to confirm the SetupIntent, if any.voidsetSetupIntent(java.lang.String id)voidsetSetupIntentObject(SetupIntent expandableObject)voidsetStatus(java.lang.String status)Status of this SetupAttempt, one ofrequires_confirmation,requires_action,processing,succeeded,failed, orabandoned.voidsetUsage(java.lang.String usage)The 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, 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)
-
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)
-
getSetupIntent
public java.lang.String getSetupIntent()
Get ID of expandablesetupIntentobject.
-
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 valuetrueif the object exists in live mode or the valuefalseif 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_sessionoron_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 valuetrueif the object exists in live mode or the valuefalseif 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_sessionoron_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
-
-