public class EphemeralKey extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
EphemeralKey.AssociatedObject |
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
EphemeralKey() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static EphemeralKey |
create(EphemeralKeyCreateParams params,
RequestOptions options)
Creates an ephemeral API key for a given resource.
|
static EphemeralKey |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates an ephemeral API key for a given resource.
|
EphemeralKey |
delete()
Invalidates an ephemeral API key for a given resource.
|
EphemeralKey |
delete(RequestOptions options)
Invalidates an ephemeral API key for a given resource.
|
boolean |
equals(java.lang.Object o) |
java.util.List<EphemeralKey.AssociatedObject> |
getAssociatedObjects() |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.Long |
getExpires()
Time at which the key will expire.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getRawJson() |
java.lang.String |
getSecret()
The key's secret.
|
int |
hashCode() |
void |
setAssociatedObjects(java.util.List<EphemeralKey.AssociatedObject> associatedObjects) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setExpires(java.lang.Long expires)
Time at which the key will expire.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setRawJson(java.lang.String rawJson) |
void |
setSecret(java.lang.String secret)
The key's secret.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public static EphemeralKey create(EphemeralKeyCreateParams params, RequestOptions options) throws StripeException
params
- request parametersoptions
- request options. stripeVersion
is required when creating ephemeral keys.
it must have non-null RequestOptions.getStripeVersionOverride()
.StripeException
public static EphemeralKey create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
params
- request parametersoptions
- request options. stripeVersion
is required when creating ephemeral keys.
it must have non-null RequestOptions.getStripeVersionOverride()
.StripeException
public EphemeralKey delete() throws StripeException
StripeException
public EphemeralKey delete(RequestOptions options) throws StripeException
StripeException
public java.lang.Long getCreated()
public java.lang.Long getExpires()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.lang.String getObject()
public java.lang.String getSecret()
public java.util.List<EphemeralKey.AssociatedObject> getAssociatedObjects()
public java.lang.String getRawJson()
public void setCreated(java.lang.Long created)
public void setExpires(java.lang.Long expires)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setObject(java.lang.String object)
public void setSecret(java.lang.String secret)
public void setAssociatedObjects(java.util.List<EphemeralKey.AssociatedObject> associatedObjects)
public void setRawJson(java.lang.String rawJson)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object