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, 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, 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 192

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

#beneficiary_address_line1String?

The beneficiary’s address line 1.

Returns:

  • (String, nil)


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

required :beneficiary_address_line1, String, nil?: true

#beneficiary_address_line2String?

The beneficiary’s address line 2.

Returns:

  • (String, nil)


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

required :beneficiary_address_line2, String, nil?: true

#beneficiary_address_line3String?

The beneficiary’s address line 3.

Returns:

  • (String, nil)


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

required :beneficiary_address_line3, String, nil?: true

#beneficiary_nameString?

The beneficiary’s name.

Returns:

  • (String, nil)


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

required :beneficiary_name, String, 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.



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

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)


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

required :created_at, Time

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

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



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

required :created_by, -> { Increase::WireTransfer::CreatedBy }, 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`.



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

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

#external_account_idString?

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

Returns:

  • (String, nil)


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

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)


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

required :idempotency_key, String, nil?: true

#message_to_recipientString?

The message that will show on the recipient’s bank statement.

Returns:

  • (String, nil)


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

required :message_to_recipient, String, nil?: true

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

The transfer’s network.



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

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

#originator_address_line1String?

The originator’s address line 1.

Returns:

  • (String, nil)


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

required :originator_address_line1, String, nil?: true

#originator_address_line2String?

The originator’s address line 2.

Returns:

  • (String, nil)


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

required :originator_address_line2, String, nil?: true

#originator_address_line3String?

The originator’s address line 3.

Returns:

  • (String, nil)


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

required :originator_address_line3, String, nil?: true

#originator_nameString?

The originator’s name.

Returns:

  • (String, nil)


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

required :originator_name, String, nil?: true

#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)


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

required :pending_transaction_id, String, nil?: true

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

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



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

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

#routing_numberString

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

Returns:

  • (String)


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

required :routing_number, String

#source_account_number_idString?

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

Returns:

  • (String, nil)


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

required :source_account_number_id, String, nil?: true

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

The lifecycle status of the transfer.



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

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

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

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



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

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

#transaction_idString?

The ID for the transaction funding the transfer.

Returns:

  • (String, nil)


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

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`.



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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