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 class
Capability.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 boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getAccount()
Get ID of expandableaccount
object.Account
getAccountObject()
Get expandedaccount
.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.-
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 expandableaccount
object.
-
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:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-