Class: Increase::Models::Account

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/account.rb

Overview

Defined Under Namespace

Modules: Bank, Currency, Status, Type

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: , account_revenue_rate: , bank: , closed_at: , created_at: , currency: , entity_id: , idempotency_key: , informational_entity_id: , interest_accrued: , interest_accrued_at: , interest_rate: , name: , program_id: , status: , type: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::Account for more details.

Accounts are your bank accounts with Increase. They store money, receive transfers, and send payments. They earn interest and have depository insurance.

Parameters:

  • id (String) (defaults to: )

    The Account identifier.

  • account_revenue_rate (String, nil) (defaults to: )

    The account revenue rate currently being earned on the account, as a string cont

  • bank (Symbol, Increase::Models::Account::Bank) (defaults to: )

    The bank the Account is with.

  • closed_at (Time, nil) (defaults to: )

    The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Account

  • created_at (Time) (defaults to: )

    The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Account

  • currency (Symbol, Increase::Models::Account::Currency) (defaults to: )

    The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the Account curr

  • entity_id (String) (defaults to: )

    The identifier for the Entity the Account belongs to.

  • idempotency_key (String, nil) (defaults to: )

    The idempotency key you chose for this object. This value is unique across Incre

  • informational_entity_id (String, nil) (defaults to: )

    The identifier of an Entity that, while not owning the Account, is associated wi

  • interest_accrued (String) (defaults to: )

    The interest accrued but not yet paid, expressed as a string containing a floati

  • interest_accrued_at (Date, nil) (defaults to: )

    The latest [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date on which inte

  • interest_rate (String) (defaults to: )

    The interest rate currently being earned on the account, as a string containing

  • name (String) (defaults to: )

    The name you choose for the Account.

  • program_id (String) (defaults to: )

    The identifier of the Program determining the compliance and commercial terms of

  • status (Symbol, Increase::Models::Account::Status) (defaults to: )

    The status of the Account.

  • type (Symbol, Increase::Models::Account::Type) (defaults to: )

    A constant representing the object’s type. For this resource it will always be ‘



# File 'lib/increase/models/account.rb', line 118


Instance Attribute Details

#account_revenue_rateString?

The account revenue rate currently being earned on the account, as a string containing a decimal number. For example, a 1% account revenue rate would be represented as “0.01”. Account revenue is a type of non-interest income accrued on the account.

Returns:

  • (String, nil)


20
# File 'lib/increase/models/account.rb', line 20

required :account_revenue_rate, String, nil?: true

#bankSymbol, Increase::Models::Account::Bank

The bank the Account is with.

Returns:



26
# File 'lib/increase/models/account.rb', line 26

required :bank, enum: -> { Increase::::Bank }

#closed_atTime?

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Account was closed.

Returns:

  • (Time, nil)


33
# File 'lib/increase/models/account.rb', line 33

required :closed_at, Time, nil?: true

#created_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Account was created.

Returns:

  • (Time)


40
# File 'lib/increase/models/account.rb', line 40

required :created_at, Time

#currencySymbol, Increase::Models::Account::Currency

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the Account currency.



47
# File 'lib/increase/models/account.rb', line 47

required :currency, enum: -> { Increase::::Currency }

#entity_idString

The identifier for the Entity the Account belongs to.

Returns:

  • (String)


53
# File 'lib/increase/models/account.rb', line 53

required :entity_id, String

#idString

The Account identifier.

Returns:

  • (String)


11
# File 'lib/increase/models/account.rb', line 11

required :id, String

#idempotency_keyString?

The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](increase.com/documentation/idempotency-keys).

Returns:

  • (String, nil)


61
# File 'lib/increase/models/account.rb', line 61

required :idempotency_key, String, nil?: true

#informational_entity_idString?

The identifier of an Entity that, while not owning the Account, is associated with its activity.

Returns:

  • (String, nil)


68
# File 'lib/increase/models/account.rb', line 68

required :informational_entity_id, String, nil?: true

#interest_accruedString

The interest accrued but not yet paid, expressed as a string containing a floating-point value.

Returns:

  • (String)


75
# File 'lib/increase/models/account.rb', line 75

required :interest_accrued, String

#interest_accrued_atDate?

The latest [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date on which interest was accrued.

Returns:

  • (Date, nil)


82
# File 'lib/increase/models/account.rb', line 82

required :interest_accrued_at, Date, nil?: true

#interest_rateString

The interest rate currently being earned on the account, as a string containing a decimal number. For example, a 1% interest rate would be represented as “0.01”.

Returns:

  • (String)


90
# File 'lib/increase/models/account.rb', line 90

required :interest_rate, String

#nameString

The name you choose for the Account.

Returns:

  • (String)


96
# File 'lib/increase/models/account.rb', line 96

required :name, String

#program_idString

The identifier of the Program determining the compliance and commercial terms of this Account.

Returns:

  • (String)


103
# File 'lib/increase/models/account.rb', line 103

required :program_id, String

#statusSymbol, Increase::Models::Account::Status

The status of the Account.



109
# File 'lib/increase/models/account.rb', line 109

required :status, enum: -> { Increase::::Status }

#typeSymbol, Increase::Models::Account::Type

A constant representing the object’s type. For this resource it will always be ‘account`.

Returns:



116
# File 'lib/increase/models/account.rb', line 116

required :type, enum: -> { Increase::::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/account.rb', line 172