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
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, INTERNAL_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
setResponseGetter
(StripeResponseGetter responseGetter) The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.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, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Capability
public Capability()
-
-
Method Details
-
getAccount
Get ID of expandableaccount
object. -
setAccount
-
getAccountObject
Get expandedaccount
. -
setAccountObject
-
update
Updates an existing Account Capability. Request or remove a capability by updating itsrequested
parameter.- Throws:
StripeException
-
update
Updates an existing Account Capability. Request or remove a capability by updating itsrequested
parameter.- Throws:
StripeException
-
update
Updates an existing Account Capability. Request or remove a capability by updating itsrequested
parameter.- Throws:
StripeException
-
update
public Capability update(CapabilityUpdateParams params, RequestOptions options) throws StripeException Updates an existing Account Capability. Request or remove a capability by updating itsrequested
parameter.- Throws:
StripeException
-
setResponseGetter
The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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. 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.
-