Package com.stripe.model.v2.core
Class AccountPersonToken
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.core.AccountPersonToken
- All Implemented Interfaces:
HasId,StripeObjectInterface
Person Tokens are single-use tokens which tokenize person information, and are used for creating
or updating a Person.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTime at which the token was created.Time at which the token will expire.getId()Unique identifier for the token.Has the valuetrueif the token exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.getUsed()Determines if the token has already been used (tokens can only be used once).inthashCode()voidsetCreated(Instant created) Time at which the token was created.voidsetExpiresAt(Instant expiresAt) Time at which the token will expire.voidUnique identifier for the token.voidsetLivemode(Boolean livemode) Has the valuetrueif the token exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidDetermines if the token has already been used (tokens can only be used once).Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
AccountPersonToken
public AccountPersonToken()
-
-
Method Details
-
getCreated
Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. -
getExpiresAt
Time at which the token will expire. -
getLivemode
Has the valuetrueif the token 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 of the object field.Equal to
v2.core.account_person_token. -
getUsed
Determines if the token has already been used (tokens can only be used once). -
setCreated
Time at which the token was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. -
setExpiresAt
Time at which the token will expire. -
setId
Unique identifier for the token. -
setLivemode
Has the valuetrueif the token 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 of the object field.Equal to
v2.core.account_person_token. -
setUsed
Determines if the token has already been used (tokens can only be used once). -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the token.
-