Class Account

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.core.Account
All Implemented Interfaces:
HasId, StripeObjectInterface

public class Account extends StripeObject implements HasId
An Account v2 object represents a company, individual, or other entity that interacts with a platform on Stripe. It contains both identifying information and properties that control its behavior and functionality. An Account can have one or more configurations that enable sets of related features, such as allowing it to act as a merchant or customer. The Accounts v2 API supports both the Global Payouts preview feature and the Connect-Billing integration preview feature. However, a particular Account can only access one of them. The Connect-Billing integration preview feature allows an Account v2 to pay subscription fees to a platform. An Account v1 required a separate Customer object to pay subscription fees.
  • Constructor Details

    • Account

      public Account()
  • Method Details

    • getAppliedConfigurations

      public List<String> getAppliedConfigurations()
      The configurations that have been applied to this account.
    • getClosed

      public Boolean getClosed()
      Indicates whether the account has been closed.
    • getConfiguration

      public Account.Configuration getConfiguration()
      An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later.
    • getContactEmail

      public String getContactEmail()
      The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
    • getContactPhone

      public String getContactPhone()
      The default contact phone for the Account.
    • getCreated

      public Instant getCreated()
      Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • getDashboard

      public String getDashboard()
      A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.

      One of express, full, or none.

    • getDefaults

      public Account.Defaults getDefaults()
      Default values for settings shared across Account configurations.
    • getDisplayName

      public String getDisplayName()
      A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
    • getFutureRequirements

      public Account.FutureRequirements getFutureRequirements()
      Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when.
    • getIdentity

      public Account.Identity getIdentity()
      Information about the company, individual, and business represented by the Account.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getMetadata

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • getObject

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

      Equal to v2.core.account.

    • getRequirements

      public Account.Requirements getRequirements()
      Information about the active requirements for the Account, including what information needs to be collected, and by when.
    • setAppliedConfigurations

      public void setAppliedConfigurations(List<String> appliedConfigurations)
      The configurations that have been applied to this account.
    • setClosed

      public void setClosed(Boolean closed)
      Indicates whether the account has been closed.
    • setConfiguration

      public void setConfiguration(Account.Configuration configuration)
      An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later.
    • setContactEmail

      public void setContactEmail(String contactEmail)
      The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
    • setContactPhone

      public void setContactPhone(String contactPhone)
      The default contact phone for the Account.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
    • setDashboard

      public void setDashboard(String dashboard)
      A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.

      One of express, full, or none.

    • setDefaults

      public void setDefaults(Account.Defaults defaults)
      Default values for settings shared across Account configurations.
    • setDisplayName

      public void setDisplayName(String displayName)
      A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
    • setFutureRequirements

      public void setFutureRequirements(Account.FutureRequirements futureRequirements)
      Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when.
    • setId

      public void setId(String id)
      Unique identifier for the Account.
    • setIdentity

      public void setIdentity(Account.Identity identity)
      Information about the company, individual, and business represented by the Account.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • setObject

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

      Equal to v2.core.account.

    • setRequirements

      public void setRequirements(Account.Requirements requirements)
      Information about the active requirements for the Account, including what information needs to be collected, and by when.
    • 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()
      Unique identifier for the Account.
      Specified by:
      getId in interface HasId