Class: Increase::Models::AccountTransfer

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

Overview

Defined Under Namespace

Modules: Currency, Network, Status, Type Classes: Approval, Cancellation, CreatedBy

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(email: ) ⇒ Object

If present, details about the User that created the transfer.

Parameters:

  • email (String) (defaults to: )

    The email address of the User.



# File 'lib/increase/models/account_transfer.rb', line 120

Instance Attribute Details

#account_idString

The Account to which the transfer belongs.

Returns:

  • (String)


17
# File 'lib/increase/models/account_transfer.rb', line 17

required :account_id, String

#amountInteger

The transfer amount in the minor unit of the destination account currency. For dollars, for example, this is cents.

Returns:

  • (Integer)


24
# File 'lib/increase/models/account_transfer.rb', line 24

required :amount, Integer

#approvalIncrease::Models::AccountTransfer::Approval?

If your account requires approvals for transfers and the transfer was approved, this will contain details of the approval.



31
# File 'lib/increase/models/account_transfer.rb', line 31

required :approval, -> { Increase::AccountTransfer::Approval }, nil?: true

#cancellationIncrease::Models::AccountTransfer::Cancellation?

If your account requires approvals for transfers and the transfer was not approved, this will contain details of the cancellation.



38
# File 'lib/increase/models/account_transfer.rb', line 38

required :cancellation, -> { Increase::AccountTransfer::Cancellation }, nil?: true

#created_atTime

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

Returns:

  • (Time)


45
# File 'lib/increase/models/account_transfer.rb', line 45

required :created_at, Time

#created_byIncrease::Models::AccountTransfer::CreatedBy?

What object created the transfer, either via the API or the dashboard.



51
# File 'lib/increase/models/account_transfer.rb', line 51

required :created_by, -> { Increase::AccountTransfer::CreatedBy }, nil?: true

#currencySymbol, Increase::Models::AccountTransfer::Currency

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



58
# File 'lib/increase/models/account_transfer.rb', line 58

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

#descriptionString

The description that will show on the transactions.

Returns:

  • (String)


64
# File 'lib/increase/models/account_transfer.rb', line 64

required :description, String

#destination_account_idString

The destination account’s identifier.

Returns:

  • (String)


70
# File 'lib/increase/models/account_transfer.rb', line 70

required :destination_account_id, String

#destination_transaction_idString?

The ID for the transaction receiving the transfer.

Returns:

  • (String, nil)


76
# File 'lib/increase/models/account_transfer.rb', line 76

required :destination_transaction_id, String, nil?: true

#idString

The account transfer’s identifier.

Returns:

  • (String)


11
# File 'lib/increase/models/account_transfer.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)


84
# File 'lib/increase/models/account_transfer.rb', line 84

required :idempotency_key, String, nil?: true

#networkSymbol, Increase::Models::AccountTransfer::Network

The transfer’s network.



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

required :network, enum: -> { Increase::AccountTransfer::Network }

#pending_transaction_idString?

The ID for the pending transaction representing the transfer. A pending transaction is created when the transfer [requires approval](increase.com/documentation/transfer-approvals#transfer-approvals) by someone else in your organization.

Returns:

  • (String, nil)


99
# File 'lib/increase/models/account_transfer.rb', line 99

required :pending_transaction_id, String, nil?: true

#statusSymbol, Increase::Models::AccountTransfer::Status

The lifecycle status of the transfer.



105
# File 'lib/increase/models/account_transfer.rb', line 105

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

#transaction_idString?

The ID for the transaction funding the transfer.

Returns:

  • (String, nil)


111
# File 'lib/increase/models/account_transfer.rb', line 111

required :transaction_id, String, nil?: true

#typeSymbol, Increase::Models::AccountTransfer::Type

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



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/account_transfer.rb', line 340