Package com.stripe.model.sharedpayment
Class GrantedToken
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.sharedpayment.GrantedToken
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
SharedPaymentGrantedToken is the view-only resource of a SharedPaymentIssuedToken, which is a
limited-use reference to a PaymentMethod. When another Stripe merchant shares a
SharedPaymentIssuedToken with you, you can view attributes of the shared token using the
SharedPaymentGrantedToken API, and use it with a PaymentIntent.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classSome details on how the SharedPaymentGrantedToken has been used so far.static classLimits on how this SharedPaymentGrantedToken can be used.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 booleanbooleanTime at which the object was created.Time at which this SharedPaymentGrantedToken expires and can no longer be used to confirm a PaymentIntent.The reason why the SharedPaymentGrantedToken has been deactivated.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Metadata about the SharedPaymentGrantedToken.Some details about how the SharedPaymentGrantedToken has been used already.Limits on how this SharedPaymentGrantedToken can be used.inthashCode()static GrantedTokenRetrieves an existing SharedPaymentGrantedToken object.static GrantedTokenretrieve(String sharedPaymentGrantedToken, RequestOptions options) Retrieves an existing SharedPaymentGrantedToken object.static GrantedTokenretrieve(String sharedPaymentGrantedToken, GrantedTokenRetrieveParams params, RequestOptions options) Retrieves an existing SharedPaymentGrantedToken object.static GrantedTokenRetrieves an existing SharedPaymentGrantedToken object.voidsetCreated(Long created) Time at which the object was created.voidsetDeactivatedAt(Long deactivatedAt) Time at which this SharedPaymentGrantedToken expires and can no longer be used to confirm a PaymentIntent.voidsetDeactivatedReason(String deactivatedReason) The reason why the SharedPaymentGrantedToken has been deactivated.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetSharedMetadata(Map<String, String> sharedMetadata) Metadata about the SharedPaymentGrantedToken.voidsetUsageDetails(GrantedToken.UsageDetails usageDetails) Some details about how the SharedPaymentGrantedToken has been used already.voidsetUsageLimits(GrantedToken.UsageLimits usageLimits) Limits on how this SharedPaymentGrantedToken can be used.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
-
GrantedToken
public GrantedToken()
-
-
Method Details
-
retrieve
Retrieves an existing SharedPaymentGrantedToken object.- Throws:
StripeException
-
retrieve
public static GrantedToken retrieve(String sharedPaymentGrantedToken, RequestOptions options) throws StripeException Retrieves an existing SharedPaymentGrantedToken object.- Throws:
StripeException
-
retrieve
public static GrantedToken retrieve(String sharedPaymentGrantedToken, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves an existing SharedPaymentGrantedToken object.- Throws:
StripeException
-
getTestHelpers
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- 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. -
getDeactivatedAt
Time at which this SharedPaymentGrantedToken expires and can no longer be used to confirm a PaymentIntent. -
getDeactivatedReason
The reason why the SharedPaymentGrantedToken has been deactivated.One of
consumed,expired, orrevoked. -
getLivemode
Has the valuetrueif the object 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.Equal to
shared_payment.granted_token. -
getUsageDetails
Some details about how the SharedPaymentGrantedToken has been used already. -
getUsageLimits
Limits on how this SharedPaymentGrantedToken can be used. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setDeactivatedAt
Time at which this SharedPaymentGrantedToken expires and can no longer be used to confirm a PaymentIntent. -
setDeactivatedReason
The reason why the SharedPaymentGrantedToken has been deactivated.One of
consumed,expired, orrevoked. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object 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.Equal to
shared_payment.granted_token. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-