class

Stripe::TreasuryFinancialAccount

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. FinancialAccounts serve as the source and destination of Treasury’s money movement APIs.

Constants

ERROR_MESSAGE_FOR_ACTIVE_FEATURES = "invalid value for \"active_features\", must be one of [card_issuing, deposit_insurance, financial_addresses.aba, financial_addresses.aba.forwarding, inbound_transfers.ach, intra_stripe_flows, outbound_payments.ach, outbound_payments.us_domestic_wire, outbound_transfers.ach, outbound_transfers.us_domestic_wire, remote_deposit_capture]."
ERROR_MESSAGE_FOR_OBJECT = "invalid value for \"object\", must be one of [treasury.financial_account]."
ERROR_MESSAGE_FOR_PENDING_FEATURES = "invalid value for \"pending_features\", must be one of [card_issuing, deposit_insurance, financial_addresses.aba, financial_addresses.aba.forwarding, inbound_transfers.ach, intra_stripe_flows, outbound_payments.ach, outbound_payments.us_domestic_wire, outbound_transfers.ach, outbound_transfers.us_domestic_wire, remote_deposit_capture]."
ERROR_MESSAGE_FOR_RESTRICTED_FEATURES = "invalid value for \"restricted_features\", must be one of [card_issuing, deposit_insurance, financial_addresses.aba, financial_addresses.aba.forwarding, inbound_transfers.ach, intra_stripe_flows, outbound_payments.ach, outbound_payments.us_domestic_wire, outbound_transfers.ach, outbound_transfers.us_domestic_wire, remote_deposit_capture]."
ERROR_MESSAGE_FOR_STATUS = "invalid value for \"status\", must be one of [closed, open]."
MAX_LENGTH_FOR_COUNTRY = 5000
MAX_LENGTH_FOR_ID = 5000
VALID_VALUES_FOR_ACTIVE_FEATURES = String.static_array("card_issuing", "deposit_insurance", "financial_addresses.aba", "financial_addresses.aba.forwarding", "inbound_transfers.ach", "intra_stripe_flows", "outbound_payments.ach", "outbound_payments.us_domestic_wire", "outbound_transfers.ach", "outbound_transfers.us_domestic_wire", "remote_deposit_capture")
VALID_VALUES_FOR_OBJECT = String.static_array("treasury.financial_account")
VALID_VALUES_FOR_PENDING_FEATURES = String.static_array("card_issuing", "deposit_insurance", "financial_addresses.aba", "financial_addresses.aba.forwarding", "inbound_transfers.ach", "intra_stripe_flows", "outbound_payments.ach", "outbound_payments.us_domestic_wire", "outbound_transfers.ach", "outbound_transfers.us_domestic_wire", "remote_deposit_capture")
VALID_VALUES_FOR_RESTRICTED_FEATURES = String.static_array("card_issuing", "deposit_insurance", "financial_addresses.aba", "financial_addresses.aba.forwarding", "inbound_transfers.ach", "intra_stripe_flows", "outbound_payments.ach", "outbound_payments.us_domestic_wire", "outbound_transfers.ach", "outbound_transfers.us_domestic_wire", "remote_deposit_capture")
VALID_VALUES_FOR_STATUS = String.static_array("closed", "open")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, balance : Stripe::TreasuryFinancialAccountsResourceBalance | Nil = nil, country : String | Nil = nil, created : Int64 | Nil = nil, financial_addresses : Array(Stripe::TreasuryFinancialAccountsResourceFinancialAddress) | Nil = nil, id : String | Nil = nil, livemode : Bool | Nil = nil, metadata : Hash(String, String) | Nil = nil, object : String | Nil = nil, status : String | Nil = nil, status_details : Stripe::TreasuryFinancialAccountsResourceStatusDetails | Nil = nil, supported_currencies : Array(String) | Nil = nil, active_features : Array(String) | Nil = nil, features : Stripe::TreasuryFinancialAccountFeatures | Nil = nil, pending_features : Array(String) | Nil = nil, platform_restrictions : Stripe::TreasuryFinancialAccountPlatformRestrictions | Nil = nil, restricted_features : Array(String) | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

active_features

The array of paths to active Features in the Features hash.

Source
active_features=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] active_features Object to be assigned

Source
balance
Source

Custom attribute writer method checking allowed values (enum). @param [Object] balance Object to be assigned

Source
country

Two-letter country code (ISO 3166-1 alpha-2).

Source
country=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] country Object to be assigned

Source
created

Time at which the object was created. Measured in seconds since the Unix epoch.

Source
created=(new_value : Int64 | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned

Source
features
Source
features=(new_value : Stripe::TreasuryFinancialAccountFeatures | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] features Object to be assigned

Source
financial_addresses

The set of credentials that resolve to a FinancialAccount.

Source
financial_addresses=(new_value : Array(Stripe::TreasuryFinancialAccountsResourceFinancialAddress) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] financial_addresses Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

id

Unique identifier for the object.

Source
id=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
livemode

Has the value true if the object exists in live mode or the value false if the object exists in test mode.

Source
livemode=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] livemode Object to be assigned

Source
metadata
Source
metadata=(new_value : Hash(String, String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned

Source
object

String representing the object's type. Objects of the same type share the same value.

Source
object=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned

Source
pending_features

The array of paths to pending Features in the Features hash.

Source
pending_features=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] pending_features Object to be assigned

Source
platform_restrictions
Source
platform_restrictions=(new_value : Stripe::TreasuryFinancialAccountPlatformRestrictions | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] platform_restrictions Object to be assigned

Source
platform_restrictions_present=(platform_restrictions_present : Bool)
Source
platform_restrictions_present?
Source
restricted_features

The array of paths to restricted Features in the Features hash.

Source
restricted_features=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] restricted_features Object to be assigned

Source
status

The enum specifying what state the account is in.

Source
status=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned

Source
status_details
Source

Custom attribute writer method checking allowed values (enum). @param [Object] status_details Object to be assigned

Source
supported_currencies

The currencies the FinancialAccount can hold a balance in. Three-letter ISO currency code, in lowercase.

Source
supported_currencies=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] supported_currencies Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source