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 classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getCard()
Get ID of expandablecard
object.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 valuetrue
if the object exists in live mode or the valuefalse
if 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.int
hashCode()
static TokenCollection
list
(TokenListParams params) Lists all IssuingToken
objects for a given card.static TokenCollection
list
(TokenListParams params, RequestOptions options) Lists all IssuingToken
objects for a given card.static TokenCollection
Lists all IssuingToken
objects for a given card.static TokenCollection
list
(Map<String, Object> params, RequestOptions options) Lists all IssuingToken
objects for a given card.static Token
Retrieves an IssuingToken
object.static Token
retrieve
(String token, RequestOptions options) Retrieves an IssuingToken
object.static Token
retrieve
(String token, TokenRetrieveParams params, RequestOptions options) Retrieves an IssuingToken
object.static Token
Retrieves an IssuingToken
object.void
void
setCardObject
(Card expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setDeviceFingerprint
(String deviceFingerprint) The hashed ID derived from the device ID from the card network associated with the token.void
Unique identifier for the object.void
The last four digits of the token.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setNetwork
(String network) The token service provider / card network associated with the token.void
setNetworkData
(Token.NetworkData networkData) void
setNetworkUpdatedAt
(Long networkUpdatedAt) Time at which the token was last updated by the card network.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) The postal code of the cardholder tokenizing the card.void
The usage state of the token.void
setWalletProvider
(String walletProvider) The digital wallet for this token, if one was used.update
(TokenUpdateParams params) Attempts to update the specified IssuingToken
object to the status specified.update
(TokenUpdateParams params, RequestOptions options) Attempts to update the specified IssuingToken
object to the status specified.Attempts to update the specified IssuingToken
object to the status specified.update
(Map<String, Object> params, RequestOptions options) Attempts to update the specified IssuingToken
object to the status specified.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
getCard
Get ID of expandablecard
object. -
setCard
-
getCardObject
Get expandedcard
. -
setCardObject
-
list
Lists all IssuingToken
objects for a given card.- Throws:
StripeException
-
list
public static TokenCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all IssuingToken
objects for a given card.- Throws:
StripeException
-
list
Lists all IssuingToken
objects for a given card.- Throws:
StripeException
-
list
public static TokenCollection list(TokenListParams params, RequestOptions options) throws StripeException Lists all IssuingToken
objects for a given card.- Throws:
StripeException
-
retrieve
Retrieves an IssuingToken
object.- Throws:
StripeException
-
retrieve
Retrieves an IssuingToken
object.- Throws:
StripeException
-
retrieve
public static Token retrieve(String token, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an IssuingToken
object.- Throws:
StripeException
-
retrieve
public static Token retrieve(String token, TokenRetrieveParams params, RequestOptions options) throws StripeException Retrieves an IssuingToken
object.- Throws:
StripeException
-
update
Attempts to update the specified IssuingToken
object to the status specified.- Throws:
StripeException
-
update
Attempts to update the specified IssuingToken
object to the status specified.- Throws:
StripeException
-
update
Attempts to update the specified IssuingToken
object to the status specified.- Throws:
StripeException
-
update
Attempts to update the specified IssuingToken
object to the status specified.- Throws:
StripeException
-
setResponseGetter
The postal code of the cardholder tokenizing the card.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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 valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.
-