Package com.stripe.model
Class EphemeralKey
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.EphemeralKey
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
-
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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic EphemeralKeycreate(EphemeralKeyCreateParams params) Creates a short-lived API key for a given resource.static EphemeralKeycreate(EphemeralKeyCreateParams params, RequestOptions options) Creates a short-lived API key for a given resource.static EphemeralKeyCreates a short-lived API key for a given resource.static EphemeralKeycreate(Map<String, Object> params, RequestOptions options) Creates a short-lived API key for a given resource.delete()Invalidates a short-lived API key for a given resource.delete(RequestOptions options) Invalidates a short-lived API key for a given resource.delete(EphemeralKeyDeleteParams params) Invalidates a short-lived API key for a given resource.delete(EphemeralKeyDeleteParams params, RequestOptions options) Invalidates a short-lived API key for a given resource.Invalidates a short-lived API key for a given resource.delete(Map<String, Object> params, RequestOptions options) Invalidates a short-lived API key for a given resource.booleanTime at which the object was created.Time at which the key will expire.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.The key's secret.inthashCode()voidsetCreated(Long created) Time at which the object was created.voidsetExpires(Long expires) Time at which the key will expire.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.voidsetRawJson(String rawJson) voidThe key's secret.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, 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
-
EphemeralKey
public EphemeralKey()
-
-
Method Details
-
create
Creates a short-lived API key for a given resource.- Throws:
StripeException
-
create
public static EphemeralKey create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a short-lived API key for a given resource.- Throws:
StripeException
-
create
Creates a short-lived API key for a given resource.- Throws:
StripeException
-
create
public static EphemeralKey create(EphemeralKeyCreateParams params, RequestOptions options) throws StripeException Creates a short-lived API key for a given resource.- Throws:
StripeException
-
delete
Invalidates a short-lived API key for a given resource.- Throws:
StripeException
-
delete
Invalidates a short-lived API key for a given resource.- Throws:
StripeException
-
delete
Invalidates a short-lived API key for a given resource.- Throws:
StripeException
-
delete
public EphemeralKey delete(Map<String, Object> params, RequestOptions options) throws StripeExceptionInvalidates a short-lived API key for a given resource.- Throws:
StripeException
-
delete
Invalidates a short-lived API key for a given resource.- Throws:
StripeException
-
delete
public EphemeralKey delete(EphemeralKeyDeleteParams params, RequestOptions options) throws StripeException Invalidates a short-lived API key for a given resource.- Throws:
StripeException
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getExpires
Time at which the key will expire. Measured in seconds since the Unix epoch. -
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
ephemeral_key. -
getSecret
The key's secret. You can use this value to make authorized requests to the Stripe API. -
getRawJson
-
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setExpires
Time at which the key will expire. Measured in seconds since the Unix epoch. -
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
ephemeral_key. -
setSecret
The key's secret. You can use this value to make authorized requests to the Stripe API. -
setRawJson
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-