Class: Increase::Models::AccountTransfer
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::AccountTransfer
- 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
-
#account_id ⇒ String
The Account to which the transfer belongs.
-
#amount ⇒ Integer
The transfer amount in the minor unit of the destination account currency.
-
#approval ⇒ Increase::Models::AccountTransfer::Approval?
If your account requires approvals for transfers and the transfer was approved, this will contain details of the approval.
-
#cancellation ⇒ Increase::Models::AccountTransfer::Cancellation?
If your account requires approvals for transfers and the transfer was not approved, this will contain details of the cancellation.
-
#created_at ⇒ Time
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was created.
-
#created_by ⇒ Increase::Models::AccountTransfer::CreatedBy?
What object created the transfer, either via the API or the dashboard.
-
#currency ⇒ Symbol, Increase::Models::AccountTransfer::Currency
The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the destination account currency.
-
#description ⇒ String
The description that will show on the transactions.
-
#destination_account_id ⇒ String
The destination account’s identifier.
-
#destination_transaction_id ⇒ String?
The ID for the transaction receiving the transfer.
-
#id ⇒ String
The account transfer’s identifier.
-
#idempotency_key ⇒ String?
The idempotency key you chose for this object.
-
#network ⇒ Symbol, Increase::Models::AccountTransfer::Network
The transfer’s network.
-
#pending_transaction_id ⇒ String?
The ID for the pending transaction representing the transfer.
-
#status ⇒ Symbol, Increase::Models::AccountTransfer::Status
The lifecycle status of the transfer.
-
#transaction_id ⇒ String?
The ID for the transaction funding the transfer.
-
#type ⇒ Symbol, Increase::Models::AccountTransfer::Type
A constant representing the object’s type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(email: ) ⇒ Object
constructor
If present, details about the User that created the transfer.
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.
|
|
# File 'lib/increase/models/account_transfer.rb', line 120
|
Instance Attribute Details
#account_id ⇒ String
The Account to which the transfer belongs.
17 |
# File 'lib/increase/models/account_transfer.rb', line 17 required :account_id, String |
#amount ⇒ Integer
The transfer amount in the minor unit of the destination account currency. For dollars, for example, this is cents.
24 |
# File 'lib/increase/models/account_transfer.rb', line 24 required :amount, Integer |
#approval ⇒ Increase::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 |
#cancellation ⇒ Increase::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_at ⇒ Time
The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was created.
45 |
# File 'lib/increase/models/account_transfer.rb', line 45 required :created_at, Time |
#created_by ⇒ Increase::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 |
#currency ⇒ Symbol, 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 } |
#description ⇒ String
The description that will show on the transactions.
64 |
# File 'lib/increase/models/account_transfer.rb', line 64 required :description, String |
#destination_account_id ⇒ String
The destination account’s identifier.
70 |
# File 'lib/increase/models/account_transfer.rb', line 70 required :destination_account_id, String |
#destination_transaction_id ⇒ String?
The ID for the transaction receiving the transfer.
76 |
# File 'lib/increase/models/account_transfer.rb', line 76 required :destination_transaction_id, String, nil?: true |
#id ⇒ String
The account transfer’s identifier.
11 |
# File 'lib/increase/models/account_transfer.rb', line 11 required :id, String |
#idempotency_key ⇒ String?
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).
84 |
# File 'lib/increase/models/account_transfer.rb', line 84 required :idempotency_key, String, nil?: true |
#network ⇒ Symbol, 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_id ⇒ String?
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.
99 |
# File 'lib/increase/models/account_transfer.rb', line 99 required :pending_transaction_id, String, nil?: true |
#status ⇒ Symbol, 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_id ⇒ String?
The ID for the transaction funding the transfer.
111 |
# File 'lib/increase/models/account_transfer.rb', line 111 required :transaction_id, String, nil?: true |
#type ⇒ Symbol, 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
.values ⇒ Array<Symbol>
|
|
# File 'lib/increase/models/account_transfer.rb', line 340
|