Package com.stripe.model.issuing
Class Token
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.issuing.Token
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
An issuing token object is created when an issued card is added to a digital wallet. As a card issuer, you can view and manage these tokens
through Stripe.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about NetworkData, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetCard()Get ID of expandablecardobject.Get expandedcard.Time at which the object was created.The hashed ID derived from the device ID from the card network associated with the token.getId()Unique identifier for the object.getLast4()The last four digits of the token.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.The token service provider / card network associated with the token.Time at which the token was last updated by the card network.String representing the object's type.The usage state of the token.The digital wallet for this token, if one was used.inthashCode()static TokenCollectionlist(TokenListParams params) Lists all IssuingTokenobjects for a given card.static TokenCollectionlist(TokenListParams params, RequestOptions options) Lists all IssuingTokenobjects for a given card.static TokenCollectionLists all IssuingTokenobjects for a given card.static TokenCollectionlist(Map<String, Object> params, RequestOptions options) Lists all IssuingTokenobjects for a given card.static TokenRetrieves an IssuingTokenobject.static Tokenretrieve(String token, RequestOptions options) Retrieves an IssuingTokenobject.static Tokenretrieve(String token, TokenRetrieveParams params, RequestOptions options) Retrieves an IssuingTokenobject.static TokenRetrieves an IssuingTokenobject.voidvoidsetCardObject(Card expandableObject) voidsetCreated(Long created) Time at which the object was created.voidsetDeviceFingerprint(String deviceFingerprint) The hashed ID derived from the device ID from the card network associated with the token.voidUnique identifier for the object.voidThe last four digits of the token.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetNetwork(String network) The token service provider / card network associated with the token.voidsetNetworkData(Token.NetworkData networkData) voidsetNetworkUpdatedAt(Long networkUpdatedAt) Time at which the token was last updated by the card network.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) The postal code of the cardholder tokenizing the card.voidThe usage state of the token.voidsetWalletProvider(String walletProvider) The digital wallet for this token, if one was used.update(TokenUpdateParams params) Attempts to update the specified IssuingTokenobject to the status specified.update(TokenUpdateParams params, RequestOptions options) Attempts to update the specified IssuingTokenobject to the status specified.Attempts to update the specified IssuingTokenobject to the status specified.update(Map<String, Object> params, RequestOptions options) Attempts to update the specified IssuingTokenobject to the status specified.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
getCard
Get ID of expandablecardobject. -
setCard
-
getCardObject
Get expandedcard. -
setCardObject
-
list
Lists all IssuingTokenobjects for a given card.- Throws:
StripeException
-
list
public static TokenCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all IssuingTokenobjects for a given card.- Throws:
StripeException
-
list
Lists all IssuingTokenobjects for a given card.- Throws:
StripeException
-
list
public static TokenCollection list(TokenListParams params, RequestOptions options) throws StripeException Lists all IssuingTokenobjects for a given card.- Throws:
StripeException
-
retrieve
Retrieves an IssuingTokenobject.- Throws:
StripeException
-
retrieve
Retrieves an IssuingTokenobject.- Throws:
StripeException
-
retrieve
public static Token retrieve(String token, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingTokenobject.- Throws:
StripeException
-
retrieve
public static Token retrieve(String token, TokenRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingTokenobject.- Throws:
StripeException
-
update
Attempts to update the specified IssuingTokenobject to the status specified.- Throws:
StripeException
-
update
Attempts to update the specified IssuingTokenobject to the status specified.- Throws:
StripeException
-
update
Attempts to update the specified IssuingTokenobject to the status specified.- Throws:
StripeException
-
update
Attempts to update the specified IssuingTokenobject to the status specified.- Throws:
StripeException
-
setResponseGetter
The postal code of the cardholder tokenizing the card.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getDeviceFingerprint
The hashed ID derived from the device ID from the card network associated with the token. -
getLast4
The last four digits of the token. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getNetwork
The token service provider / card network associated with the token.One of
mastercard, orvisa. -
getNetworkData
-
getNetworkUpdatedAt
Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.token. -
getStatus
The usage state of the token.One of
active,deleted,requested, orsuspended. -
getWalletProvider
The digital wallet for this token, if one was used.One of
apple_pay,google_pay, orsamsung_pay. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDeviceFingerprint
The hashed ID derived from the device ID from the card network associated with the token. -
setId
Unique identifier for the object. -
setLast4
The last four digits of the token. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setNetwork
The token service provider / card network associated with the token.One of
mastercard, orvisa. -
setNetworkData
-
setNetworkUpdatedAt
Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
issuing.token. -
setStatus
The usage state of the token.One of
active,deleted,requested, orsuspended. -
setWalletProvider
The digital wallet for this token, if one was used.One of
apple_pay,google_pay, orsamsung_pay. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-