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,StripeActiveObject,StripeObjectInterface
This is an object representing a capability for a Stripe account.
Related guide: Account capabilities
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about FutureRequirements, please refer to the API Reference.static classFor more details about Requirements, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_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) voidsetResponseGetter(StripeResponseGetter responseGetter) The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.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, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Capability
public Capability()
-
-
Method Details
-
getAccount
Get ID of expandableaccountobject. -
setAccount
-
getAccountObject
Get expandedaccount. -
setAccountObject
-
update
Updates an existing Account Capability. Request or remove a capability by updating itsrequestedparameter.- Throws:
StripeException
-
update
Updates an existing Account Capability. Request or remove a capability by updating itsrequestedparameter.- Throws:
StripeException
-
update
Updates an existing Account Capability. Request or remove a capability by updating itsrequestedparameter.- Throws:
StripeException
-
update
public Capability update(CapabilityUpdateParams params, RequestOptions options) throws StripeException Updates an existing Account Capability. Request or remove a capability by updating itsrequestedparameter.- Throws:
StripeException
-
setResponseGetter
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
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.One of
active,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.One of
active,inactive,pending, orunrequested. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
The identifier for the capability.
-