public class Capability extends ApiResource implements HasId
Modifier and Type | Class and Description |
---|---|
static class |
Capability.Requirements |
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Capability() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAccount()
Get ID of expandable
account object. |
Account |
getAccountObject()
Get expanded
account . |
java.lang.String |
getId()
The identifier for the capability.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.Boolean |
getRequested()
Whether the capability has been requested.
|
java.lang.Long |
getRequestedAt()
Time at which the capability was requested.
|
Capability.Requirements |
getRequirements() |
java.lang.String |
getStatus()
The status of the capability.
|
int |
hashCode() |
void |
setAccount(java.lang.String id) |
void |
setAccountObject(Account expandableObject) |
void |
setId(java.lang.String id)
The identifier for the capability.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setRequested(java.lang.Boolean requested)
Whether the capability has been requested.
|
void |
setRequestedAt(java.lang.Long requestedAt)
Time at which the capability was requested.
|
void |
setRequirements(Capability.Requirements requirements) |
void |
setStatus(java.lang.String status)
The status of the capability.
|
Capability |
update(CapabilityUpdateParams params)
Updates an existing Account Capability.
|
Capability |
update(CapabilityUpdateParams params,
RequestOptions options)
Updates an existing Account Capability.
|
Capability |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates an existing Account Capability.
|
Capability |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates an existing Account Capability.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getAccount()
account
object.public void setAccount(java.lang.String id)
public Account getAccountObject()
account
.public void setAccountObject(Account expandableObject)
public Capability update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public Capability update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public Capability update(CapabilityUpdateParams params) throws StripeException
StripeException
public Capability update(CapabilityUpdateParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.String getObject()
Equal to capability
.
public java.lang.Boolean getRequested()
public java.lang.Long getRequestedAt()
public Capability.Requirements getRequirements()
public java.lang.String getStatus()
active
, inactive
, pending
, or
unrequested
.public void setId(java.lang.String id)
public void setObject(java.lang.String object)
Equal to capability
.
public void setRequested(java.lang.Boolean requested)
public void setRequestedAt(java.lang.Long requestedAt)
public void setRequirements(Capability.Requirements requirements)
public void setStatus(java.lang.String status)
active
, inactive
, pending
, or
unrequested
.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