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,StripeObjectInterface
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic EphemeralKeycreate(EphemeralKeyCreateParams params, RequestOptions options) Creates an ephemeral API key for a given resource.static EphemeralKeycreate(Map<String, Object> params, RequestOptions options) Creates an ephemeral API key for a given resource.delete()Invalidates an ephemeral API key for a given resource.delete(RequestOptions options) Invalidates an ephemeral 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()voidsetAssociatedObjects(List<EphemeralKey.AssociatedObject> associatedObjects) 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, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
EphemeralKey
public EphemeralKey()
-
-
Method Details
-
create
public static EphemeralKey create(EphemeralKeyCreateParams params, RequestOptions options) throws StripeException Creates an ephemeral API key for a given resource.- Parameters:
params- request parametersoptions- request options.stripeVersionis required when creating ephemeral keys. it must have non-nullRequestOptions.getStripeVersionOverride().- Returns:
- the new ephemeral key
- Throws:
StripeException
-
create
public static EphemeralKey create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates an ephemeral API key for a given resource.- Parameters:
params- request parametersoptions- request options.stripeVersionis required when creating ephemeral keys. it must have non-nullRequestOptions.getStripeVersionOverride().- Returns:
- the new ephemeral key
- Throws:
StripeException
-
delete
Invalidates an ephemeral API key for a given resource.- Throws:
StripeException
-
delete
Invalidates an ephemeral 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. -
getSecret
The key's secret. You can use this value to make authorized requests to the Stripe API. -
getAssociatedObjects
-
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. -
setSecret
The key's secret. You can use this value to make authorized requests to the Stripe API. -
setAssociatedObjects
-
setRawJson
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-