Class FinancialAccount

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

public class FinancialAccount extends StripeObject implements HasId
A FinancialAccount represents a balance and can be the source or destination of money movement.
  • Constructor Details

    • FinancialAccount

      public FinancialAccount()
  • Method Details

    • getBalance

      public FinancialAccount.Balance getBalance()
      The FinancialAccount's balance, split into available, inbound_pending, and outbound_pending balances. Each balance is a hash keyed by lowercase currency codes, with an amount for each currency.
    • getCountry

      public String getCountry()
      Open Enum. The country where the LegalEntity associated with the FinancialAccount is based, represented as a two-letter country code.
    • getCreated

      public Instant getCreated()
      Time at which the object was created. Represented as an RFC 3339 timestamp in UTC with millisecond precision, for example 2022-09-18T13:22:18.123Z.
    • getDisplayName

      public String getDisplayName()
      A descriptive name for the FinancialAccount, up to 50 characters long. This name appears in the Stripe Dashboard and embedded components.
    • 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.money_management.financial_account.

    • getOther

      public FinancialAccount.Other getOther()
      If the FinancialAccount's type is other, this hash identifies its actual type. Upgrade your API version to see that type in type.
    • getStatus

      public String getStatus()
      Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.

      One of closed, open, or pending.

    • getStorage

      public FinancialAccount.Storage getStorage()
      If the FinancialAccount's type is storage, this hash contains details specific to that type.
    • getType

      public String getType()
      Closed Enum. The type of the FinancialAccount. Details specific to the type appear in the matching hash. For example, a storage FinancialAccount includes a storage hash.

      One of other, or storage.

    • setBalance

      public void setBalance(FinancialAccount.Balance balance)
      The FinancialAccount's balance, split into available, inbound_pending, and outbound_pending balances. Each balance is a hash keyed by lowercase currency codes, with an amount for each currency.
    • setCountry

      public void setCountry(String country)
      Open Enum. The country where the LegalEntity associated with the FinancialAccount is based, represented as a two-letter country code.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created. Represented as an RFC 3339 timestamp in UTC with millisecond precision, for example 2022-09-18T13:22:18.123Z.
    • setDisplayName

      public void setDisplayName(String displayName)
      A descriptive name for the FinancialAccount, up to 50 characters long. This name appears in the Stripe Dashboard and embedded components.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • 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.money_management.financial_account.

    • setOther

      public void setOther(FinancialAccount.Other other)
      If the FinancialAccount's type is other, this hash identifies its actual type. Upgrade your API version to see that type in type.
    • setStatus

      public void setStatus(String status)
      Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.

      One of closed, open, or pending.

    • setStorage

      public void setStorage(FinancialAccount.Storage storage)
      If the FinancialAccount's type is storage, this hash contains details specific to that type.
    • setType

      public void setType(String type)
      Closed Enum. The type of the FinancialAccount. Details specific to the type appear in the matching hash. For example, a storage FinancialAccount includes a storage hash.

      One of other, or storage.

    • 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 object.
      Specified by:
      getId in interface HasId