Package com.stripe.model
Class Capability
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.Capability
-
- All Implemented Interfaces:
HasId,StripeObjectInterface
public class Capability extends ApiResource implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCapability.Requirements-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Capability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetAccount()Get ID of expandableaccountobject.AccountgetAccountObject()Get expandedaccount.java.lang.StringgetId()The identifier for the capability.java.lang.StringgetObject()String representing the object's type.java.lang.BooleangetRequested()Whether the capability has been requested.java.lang.LonggetRequestedAt()Time at which the capability was requested.Capability.RequirementsgetRequirements()java.lang.StringgetStatus()The status of the capability.inthashCode()voidsetAccount(java.lang.String id)voidsetAccountObject(Account expandableObject)voidsetId(java.lang.String id)The identifier for the capability.voidsetObject(java.lang.String object)String representing the object's type.voidsetRequested(java.lang.Boolean requested)Whether the capability has been requested.voidsetRequestedAt(java.lang.Long requestedAt)Time at which the capability was requested.voidsetRequirements(Capability.Requirements requirements)voidsetStatus(java.lang.String status)The status of the capability.Capabilityupdate(CapabilityUpdateParams params)Updates an existing Account Capability.Capabilityupdate(CapabilityUpdateParams params, RequestOptions options)Updates an existing Account Capability.Capabilityupdate(java.util.Map<java.lang.String,java.lang.Object> params)Updates an existing Account Capability.Capabilityupdate(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Updates an existing Account Capability.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAccount
public java.lang.String getAccount()
Get ID of expandableaccountobject.
-
setAccount
public void setAccount(java.lang.String id)
-
getAccountObject
public Account getAccountObject()
Get expandedaccount.
-
setAccountObject
public void setAccountObject(Account expandableObject)
-
update
public Capability update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Updates an existing Account Capability.- Throws:
StripeException
-
update
public Capability update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Updates an existing Account Capability.- Throws:
StripeException
-
update
public Capability update(CapabilityUpdateParams params) throws StripeException
Updates an existing Account Capability.- Throws:
StripeException
-
update
public Capability update(CapabilityUpdateParams params, RequestOptions options) throws StripeException
Updates an existing Account Capability.- Throws:
StripeException
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
capability.
-
getRequested
public java.lang.Boolean getRequested()
Whether the capability has been requested.
-
getRequestedAt
public java.lang.Long getRequestedAt()
Time at which the capability was requested. Measured in seconds since the Unix epoch.
-
getRequirements
public Capability.Requirements getRequirements()
-
getStatus
public java.lang.String getStatus()
The status of the capability. Can beactive,inactive,pending, orunrequested.
-
setId
public void setId(java.lang.String id)
The identifier for the capability.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
capability.
-
setRequested
public void setRequested(java.lang.Boolean requested)
Whether the capability has been requested.
-
setRequestedAt
public void setRequestedAt(java.lang.Long requestedAt)
Time at which the capability was requested. Measured in seconds since the Unix epoch.
-
setRequirements
public void setRequirements(Capability.Requirements requirements)
-
setStatus
public void setStatus(java.lang.String status)
The status of the capability. Can beactive,inactive,pending, orunrequested.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-