Class Capability

All Implemented Interfaces:
HasId, StripeActiveObject, StripeObjectInterface

public class Capability extends ApiResource implements HasId
This is an object representing a capability for a Stripe account.

Related guide: Account capabilities

  • Constructor Details

    • Capability

      public Capability()
  • Method Details

    • getAccount

      public String getAccount()
      Get ID of expandable account object.
    • setAccount

      public void setAccount(String id)
    • getAccountObject

      public Account getAccountObject()
      Get expanded account.
    • setAccountObject

      public void setAccountObject(Account expandableObject)
    • update

      public Capability update(Map<String,Object> params) throws StripeException
      Updates an existing Account Capability. Request or remove a capability by updating its requested parameter.
      Throws:
      StripeException
    • update

      public Capability update(Map<String,Object> params, RequestOptions options) throws StripeException
      Updates an existing Account Capability. Request or remove a capability by updating its requested parameter.
      Throws:
      StripeException
    • update

      public Capability update(CapabilityUpdateParams params) throws StripeException
      Updates an existing Account Capability. Request or remove a capability by updating its requested 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 its requested parameter.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getFutureRequirements

      public Capability.FutureRequirements getFutureRequirements()
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to capability.

    • getRequested

      public Boolean getRequested()
      Whether the capability has been requested.
    • getRequestedAt

      public Long getRequestedAt()
      Time at which the capability was requested. Measured in seconds since the Unix epoch.
    • getRequirements

      public Capability.Requirements getRequirements()
    • getStatus

      public String getStatus()
      The status of the capability. Can be active, inactive, pending, or unrequested.
    • setFutureRequirements

      public void setFutureRequirements(Capability.FutureRequirements futureRequirements)
    • setId

      public void setId(String id)
      The identifier for the capability.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to capability.

    • setRequested

      public void setRequested(Boolean requested)
      Whether the capability has been requested.
    • setRequestedAt

      public void setRequestedAt(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(String status)
      The status of the capability. Can be active, inactive, pending, or unrequested.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      The identifier for the capability.
      Specified by:
      getId in interface HasId