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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classThe 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, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGet ID of expandableaccountobject.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.inthashCode()voidsetAccount(String id) voidsetAccountObject(Account expandableObject) voidsetFutureRequirements(Capability.FutureRequirements futureRequirements) voidThe identifier for the capability.voidString representing the object's type.voidsetRequested(Boolean requested) Whether the capability has been requested.voidsetRequestedAt(Long requestedAt) Time at which the capability was requested.voidsetRequirements(Capability.Requirements requirements) voidThe 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, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Capability
public Capability()
-
-
Method Details
-
getAccount
Get ID of expandableaccountobject. -
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.
-