Package com.stripe.model
Class ThreeDSecure
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.ThreeDSecure
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class ThreeDSecure extends ApiResource implements HasId
-
-
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
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description ThreeDSecure()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)static ThreeDSecurecreate(ThreeDSecureCreateParams params)Initiate 3D Secure authentication.static ThreeDSecurecreate(ThreeDSecureCreateParams params, RequestOptions options)Initiate 3D Secure authentication.static ThreeDSecurecreate(java.util.Map<java.lang.String,java.lang.Object> params)Initiate 3D Secure authentication.static ThreeDSecurecreate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Initiate 3D Secure authentication.booleanequals(java.lang.Object o)java.lang.LonggetAmount()Amount of the charge that you will create when authentication completes.java.lang.BooleangetAuthenticated()True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.CardgetCard()You can store multiple cards on a customer in order to charge the customer later.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCurrency()Three-letter ISO currency code, in lowercase.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.StringgetRedirectUrl()If present, this is the URL that you should send the cardholder to for authentication.java.lang.StringgetStatus()Possible values areredirect_pending,succeeded, orfailed.inthashCode()static ThreeDSecureretrieve(java.lang.String threeDSecure)Retrieves a 3D Secure object.static ThreeDSecureretrieve(java.lang.String threeDSecure, RequestOptions options)Retrieves a 3D Secure object.static ThreeDSecureretrieve(java.lang.String threeDSecure, ThreeDSecureRetrieveParams params, RequestOptions options)Retrieves a 3D Secure object.static ThreeDSecureretrieve(java.lang.String threeDSecure, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Retrieves a 3D Secure object.voidsetAmount(java.lang.Long amount)Amount of the charge that you will create when authentication completes.voidsetAuthenticated(java.lang.Boolean authenticated)True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.voidsetCard(Card card)You can store multiple cards on a customer in order to charge the customer later.voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.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.voidsetRedirectUrl(java.lang.String redirectUrl)If present, this is the URL that you should send the cardholder to for authentication.voidsetStatus(java.lang.String status)Possible values areredirect_pending,succeeded, orfailed.-
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
-
retrieve
public static ThreeDSecure retrieve(java.lang.String threeDSecure) throws StripeException
Retrieves a 3D Secure object.- Throws:
StripeException
-
retrieve
public static ThreeDSecure retrieve(java.lang.String threeDSecure, RequestOptions options) throws StripeException
Retrieves a 3D Secure object.- Throws:
StripeException
-
retrieve
public static ThreeDSecure retrieve(java.lang.String threeDSecure, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves a 3D Secure object.- Throws:
StripeException
-
retrieve
public static ThreeDSecure retrieve(java.lang.String threeDSecure, ThreeDSecureRetrieveParams params, RequestOptions options) throws StripeException
Retrieves a 3D Secure object.- Throws:
StripeException
-
create
public static ThreeDSecure create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Initiate 3D Secure authentication.- Throws:
StripeException
-
create
public static ThreeDSecure create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Initiate 3D Secure authentication.- Throws:
StripeException
-
create
public static ThreeDSecure create(ThreeDSecureCreateParams params) throws StripeException
Initiate 3D Secure authentication.- Throws:
StripeException
-
create
public static ThreeDSecure create(ThreeDSecureCreateParams params, RequestOptions options) throws StripeException
Initiate 3D Secure authentication.- Throws:
StripeException
-
getAmount
public java.lang.Long getAmount()
Amount of the charge that you will create when authentication completes.
-
getAuthenticated
public java.lang.Boolean getAuthenticated()
True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.
-
getCard
public Card getCard()
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.Related guide: Card Payments with Sources.
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
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
three_d_secure.
-
getRedirectUrl
public java.lang.String getRedirectUrl()
If present, this is the URL that you should send the cardholder to for authentication. If you are going to use Stripe.js to display the authentication page in an iframe, you should use the value "_callback".
-
getStatus
public java.lang.String getStatus()
Possible values areredirect_pending,succeeded, orfailed. When the cardholder can be authenticated, the object starts with statusredirect_pending. When liability will be shifted to the cardholder's bank (either because the cardholder was successfully authenticated, or because the bank has not implemented 3D Secure, the object wlil be in statussucceeded.failedindicates that authentication was attempted unsuccessfully.
-
setAmount
public void setAmount(java.lang.Long amount)
Amount of the charge that you will create when authentication completes.
-
setAuthenticated
public void setAuthenticated(java.lang.Boolean authenticated)
True if the cardholder went through the authentication flow and their bank indicated that authentication succeeded.
-
setCard
public void setCard(Card card)
You can store multiple cards on a customer in order to charge the customer later. You can also store multiple debit cards on a recipient in order to transfer to those cards later.Related guide: Card Payments with Sources.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
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
three_d_secure.
-
setRedirectUrl
public void setRedirectUrl(java.lang.String redirectUrl)
If present, this is the URL that you should send the cardholder to for authentication. If you are going to use Stripe.js to display the authentication page in an iframe, you should use the value "_callback".
-
setStatus
public void setStatus(java.lang.String status)
Possible values areredirect_pending,succeeded, orfailed. When the cardholder can be authenticated, the object starts with statusredirect_pending. When liability will be shifted to the cardholder's bank (either because the cardholder was successfully authenticated, or because the bank has not implemented 3D Secure, the object wlil be in statussucceeded.failedindicates that authentication was attempted unsuccessfully.
-
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
-
-