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
This is an object representing a capability for a Stripe account.
Related guide: Account capabilities.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Get ID of expandableaccount
object.Get expandedaccount
.getId()
The identifier for the capability.String representing the object's type.Whether the capability has been requested.Time at which the capability was requested.The status of the capability.int
hashCode()
void
setAccount
(String id) void
setAccountObject
(Account expandableObject) void
setFutureRequirements
(Capability.FutureRequirements futureRequirements) void
The identifier for the capability.void
String representing the object's type.void
setRequested
(Boolean requested) Whether the capability has been requested.void
setRequestedAt
(Long requestedAt) Time at which the capability was requested.void
setRequirements
(Capability.Requirements requirements) void
The status of the capability.update
(CapabilityUpdateParams params) Updates an existing Account Capability.update
(CapabilityUpdateParams params, RequestOptions options) Updates an existing Account Capability.Updates an existing Account Capability.update
(Map<String, Object> params, RequestOptions options) Updates an existing Account Capability.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Capability
public Capability()
-
-
Method Details
-
getAccount
Get ID of expandableaccount
object. -
setAccount
-
getAccountObject
Get expandedaccount
. -
setAccountObject
-
update
Updates an existing Account Capability.- Throws:
StripeException
-
update
Updates an existing Account Capability.- Throws:
StripeException
-
update
Updates an existing Account Capability.- Throws:
StripeException
-
update
public Capability update(CapabilityUpdateParams params, RequestOptions options) throws StripeException Updates an existing Account Capability.- Throws:
StripeException
-
getFutureRequirements
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
capability
. -
getRequested
Whether the capability has been requested. -
getRequestedAt
Time at which the capability was requested. Measured in seconds since the Unix epoch. -
getRequirements
-
getStatus
The status of the capability. Can beactive
,inactive
,pending
, orunrequested
. -
setFutureRequirements
-
setId
The identifier for the capability. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
capability
. -
setRequested
Whether the capability has been requested. -
setRequestedAt
Time at which the capability was requested. Measured in seconds since the Unix epoch. -
setRequirements
-
setStatus
The status of the capability. Can beactive
,inactive
,pending
, orunrequested
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
The identifier for the capability.
-