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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about NetworkData, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
Tokenpublic Token()
 
- 
- 
Method Details- 
getCardGet ID of expandablecardobject.
- 
setCard
- 
getCardObjectGet expandedcard.
- 
setCardObject
- 
listLists all IssuingTokenobjects for a given card.- Throws:
- StripeException
 
- 
listpublic static TokenCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all IssuingTokenobjects for a given card.- Throws:
- StripeException
 
- 
listLists all IssuingTokenobjects for a given card.- Throws:
- StripeException
 
- 
listpublic static TokenCollection list(TokenListParams params, RequestOptions options) throws StripeException Lists all IssuingTokenobjects for a given card.- Throws:
- StripeException
 
- 
retrieveRetrieves an IssuingTokenobject.- Throws:
- StripeException
 
- 
retrieveRetrieves an IssuingTokenobject.- Throws:
- StripeException
 
- 
retrievepublic static Token retrieve(String token, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingTokenobject.- Throws:
- StripeException
 
- 
retrievepublic static Token retrieve(String token, TokenRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingTokenobject.- Throws:
- StripeException
 
- 
updateAttempts to update the specified IssuingTokenobject to the status specified.- Throws:
- StripeException
 
- 
updateAttempts to update the specified IssuingTokenobject to the status specified.- Throws:
- StripeException
 
- 
updateAttempts to update the specified IssuingTokenobject to the status specified.- Throws:
- StripeException
 
- 
updateAttempts to update the specified IssuingTokenobject to the status specified.- Throws:
- StripeException
 
- 
setResponseGetterThe postal code of the cardholder tokenizing the card.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
getDeviceFingerprintThe hashed ID derived from the device ID from the card network associated with the token.
- 
getLast4The last four digits of the token.
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getNetworkThe token service provider / card network associated with the token.One of mastercard, orvisa.
- 
getNetworkData
- 
getNetworkUpdatedAtTime at which the token was last updated by the card network. Measured in seconds since the Unix epoch.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to issuing.token.
- 
getStatusThe usage state of the token.One of active,deleted,requested, orsuspended.
- 
getWalletProviderThe digital wallet for this token, if one was used.One of apple_pay,google_pay, orsamsung_pay.
- 
setCreatedTime at which the object was created. Measured in seconds since the Unix epoch.
- 
setDeviceFingerprintThe hashed ID derived from the device ID from the card network associated with the token.
- 
setIdUnique identifier for the object.
- 
setLast4The last four digits of the token.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setNetworkThe token service provider / card network associated with the token.One of mastercard, orvisa.
- 
setNetworkData
- 
setNetworkUpdatedAtTime at which the token was last updated by the card network. Measured in seconds since the Unix epoch.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to issuing.token.
- 
setStatusThe usage state of the token.One of active,deleted,requested, orsuspended.
- 
setWalletProviderThe digital wallet for this token, if one was used.One of apple_pay,google_pay, orsamsung_pay.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-