Class: Increase::Models::AccountTransfer

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/increase/models/account_transfer.rb

Defined Under Namespace

Classes: Approval, Cancellation, CreatedBy

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseModel

#[], #inspect, #to_h, #to_s

Instance Attribute Details

#account_idString

The Account to which the transfer belongs.

Returns:

  • (String)


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

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)


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

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.



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

required :approval, -> { Increase::Models::AccountTransfer::Approval }

#cancellationIncrease::Models::AccountTransfer::Cancellation

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



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

required :cancellation, -> { Increase::Models::AccountTransfer::Cancellation }

#created_atString

The ISO 8601 date and time at which the transfer was created.

Returns:

  • (String)


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

required :created_at, String

#created_byIncrease::Models::AccountTransfer::CreatedBy

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



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

required :created_by, -> { Increase::Models::AccountTransfer::CreatedBy }

#currencySymbol

The ISO 4217 code for the destination account currency.

Returns:

  • (Symbol)


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

required :currency, Increase::Enum.new(:CAD, :CHF, :EUR, :GBP, :JPY, :USD)

#descriptionString

The description that will show on the transactions.

Returns:

  • (String)


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

required :description, String

#destination_account_idString

The destination account's identifier.

Returns:

  • (String)


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

required :destination_account_id, String

#destination_transaction_idString

The ID for the transaction receiving the transfer.

Returns:

  • (String)


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

required :destination_transaction_id, String

#idString

The account transfer's identifier.

Returns:

  • (String)


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

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.

Returns:

  • (String)


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

required :idempotency_key, String

#networkSymbol

The transfer's network.

Returns:

  • (Symbol)


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

required :network, Increase::Enum.new(:account)

#pending_transaction_idString

The ID for the pending transaction representing the transfer. A pending transaction is created when the transfer requires approval by someone else in your organization.

Returns:

  • (String)


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

required :pending_transaction_id, String

#statusSymbol

The lifecycle status of the transfer.

Returns:

  • (Symbol)


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

required :status, Increase::Enum.new(:pending_approval, :canceled, :complete)

#transaction_idString

The ID for the transaction funding the transfer.

Returns:

  • (String)


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

required :transaction_id, String

#typeSymbol

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

Returns:

  • (Symbol)


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

required :type, Increase::Enum.new(:account_transfer)