Class: Increase::Models::WireTransfer

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

Overview

Defined Under Namespace

Modules: Currency, Network, Status, Type Classes: Approval, Cancellation, CreatedBy, Creditor, Debtor, Remittance, Reversal, Submission

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(input_message_accountability_data: , submitted_at: ) ⇒ Object

After the transfer is submitted to Fedwire, this will contain supplemental details.

Parameters:

  • input_message_accountability_data (String) (defaults to: )

    The accountability data for the submission.

  • submitted_at (Time) (defaults to: )

    When this wire transfer was submitted to Fedwire.



# File 'lib/increase/models/wire_transfer.rb', line 163


Instance Attribute Details

#account_idString

The Account to which the transfer belongs.

Returns:

  • (String)


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

required :account_id, String

#account_numberString

The destination account number.

Returns:

  • (String)


23
# File 'lib/increase/models/wire_transfer.rb', line 23

required :account_number, String

#amountInteger

The transfer amount in USD cents.

Returns:

  • (Integer)


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

required :amount, Integer

#approvalIncrease::Models::WireTransfer::Approval?

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



36
# File 'lib/increase/models/wire_transfer.rb', line 36

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

#cancellationIncrease::Models::WireTransfer::Cancellation?

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



43
# File 'lib/increase/models/wire_transfer.rb', line 43

required :cancellation, -> { Increase::WireTransfer::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)


50
# File 'lib/increase/models/wire_transfer.rb', line 50

required :created_at, Time

#created_byIncrease::Models::WireTransfer::CreatedBy?

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



56
# File 'lib/increase/models/wire_transfer.rb', line 56

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

#creditorIncrease::Models::WireTransfer::Creditor?

The person or business that is receiving the funds from the transfer.



62
# File 'lib/increase/models/wire_transfer.rb', line 62

required :creditor, -> { Increase::WireTransfer::Creditor }, nil?: true

#currencySymbol, Increase::Models::WireTransfer::Currency

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the transfer’s currency. For wire transfers this is always equal to ‘usd`.



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

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

#debtorIncrease::Models::WireTransfer::Debtor?

The person or business whose funds are being transferred.



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

required :debtor, -> { Increase::WireTransfer::Debtor }, nil?: true

#external_account_idString?

The identifier of the External Account the transfer was made to, if any.

Returns:

  • (String, nil)


81
# File 'lib/increase/models/wire_transfer.rb', line 81

required :external_account_id, String, nil?: true

#idString

The wire transfer’s identifier.

Returns:

  • (String)


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


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

required :idempotency_key, String, nil?: true

#inbound_wire_drawdown_request_idString?

The ID of an Inbound Wire Drawdown Request in response to which this transfer was sent.

Returns:

  • (String, nil)


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

required :inbound_wire_drawdown_request_id, String, nil?: true

#networkSymbol, Increase::Models::WireTransfer::Network

The transfer’s network.



102
# File 'lib/increase/models/wire_transfer.rb', line 102

required :network, enum: -> { Increase::WireTransfer::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)


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

required :pending_transaction_id, String, nil?: true

#remittanceIncrease::Models::WireTransfer::Remittance?

Remittance information sent with the wire transfer.



117
# File 'lib/increase/models/wire_transfer.rb', line 117

required :remittance, -> { Increase::WireTransfer::Remittance }, nil?: true

#reversalIncrease::Models::WireTransfer::Reversal?

If your transfer is reversed, this will contain details of the reversal.



123
# File 'lib/increase/models/wire_transfer.rb', line 123

required :reversal, -> { Increase::WireTransfer::Reversal }, nil?: true

#routing_numberString

The American Bankers’ Association (ABA) Routing Transit Number (RTN).

Returns:

  • (String)


129
# File 'lib/increase/models/wire_transfer.rb', line 129

required :routing_number, String

#source_account_number_idString?

The Account Number that was passed to the wire’s recipient.

Returns:

  • (String, nil)


135
# File 'lib/increase/models/wire_transfer.rb', line 135

required :source_account_number_id, String, nil?: true

#statusSymbol, Increase::Models::WireTransfer::Status

The lifecycle status of the transfer.



141
# File 'lib/increase/models/wire_transfer.rb', line 141

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

#submissionIncrease::Models::WireTransfer::Submission?

After the transfer is submitted to Fedwire, this will contain supplemental details.



148
# File 'lib/increase/models/wire_transfer.rb', line 148

required :submission, -> { Increase::WireTransfer::Submission }, nil?: true

#transaction_idString?

The ID for the transaction funding the transfer.

Returns:

  • (String, nil)


154
# File 'lib/increase/models/wire_transfer.rb', line 154

required :transaction_id, String, nil?: true

#typeSymbol, Increase::Models::WireTransfer::Type

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



161
# File 'lib/increase/models/wire_transfer.rb', line 161

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/wire_transfer.rb', line 449