Class: Increase::Models::PendingTransaction

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

Overview

Defined Under Namespace

Modules: BalanceImpact, Currency, RouteType, Status, Type Classes: Source

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, 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(account_number: , amount: , message_to_recipient: , routing_number: , transfer_id: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::PendingTransaction::Source::WireTransferInstruction for more details.

A Wire Transfer Instruction object. This field will be present in the JSON response if and only if ‘category` is equal to `wire_transfer_instruction`.

Parameters:

  • account_number (String) (defaults to: )

    The account number for the destination account.

  • amount (Integer) (defaults to: )

    The transfer amount in USD cents.

  • message_to_recipient (String) (defaults to: )

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

  • routing_number (String) (defaults to: )

    The American Bankers’ Association (ABA) Routing Transit Number (RTN) for the des

  • transfer_id (String) (defaults to: )

    The identifier of the Wire Transfer that led to this Pending Transaction.



# File 'lib/increase/models/pending_transaction.rb', line 98

Instance Attribute Details

#account_idString

The identifier for the account this Pending Transaction belongs to.

Returns:

  • (String)


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

required :account_id, String

#amountInteger

The Pending Transaction amount in the minor unit of its currency. For dollars, for example, this is cents.

Returns:

  • (Integer)


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

required :amount, Integer

#balance_impactSymbol, Increase::Models::PendingTransaction::BalanceImpact

How the Pending Transaction affects the balance of its Account while its status is ‘pending`.



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

required :balance_impact, enum: -> { Increase::PendingTransaction::BalanceImpact }

#completed_atTime?

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date on which the Pending Transaction was completed.

Returns:

  • (Time, nil)


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

required :completed_at, Time, nil?: true

#created_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) date on which the Pending Transaction occurred.

Returns:

  • (Time)


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

required :created_at, Time

#currencySymbol, Increase::Models::PendingTransaction::Currency

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the Pending Transaction’s currency. This will match the currency on the Pending Transaction’s Account.



53
# File 'lib/increase/models/pending_transaction.rb', line 53

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

#descriptionString

For a Pending Transaction related to a transfer, this is the description you provide. For a Pending Transaction related to a payment, this is the description the vendor provides.

Returns:

  • (String)


61
# File 'lib/increase/models/pending_transaction.rb', line 61

required :description, String

#idString

The Pending Transaction identifier.

Returns:

  • (String)


11
# File 'lib/increase/models/pending_transaction.rb', line 11

required :id, String

#route_idString?

The identifier for the route this Pending Transaction came through. Routes are things like cards and ACH details.

Returns:

  • (String, nil)


68
# File 'lib/increase/models/pending_transaction.rb', line 68

required :route_id, String, nil?: true

#route_typeSymbol, ...

The type of the route this Pending Transaction came through.



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

required :route_type, enum: -> { Increase::PendingTransaction::RouteType }, nil?: true

#sourceIncrease::Models::PendingTransaction::Source

This is an object giving more details on the network-level event that caused the Pending Transaction. For example, for a card transaction this lists the merchant’s industry and location.



82
# File 'lib/increase/models/pending_transaction.rb', line 82

required :source, -> { Increase::PendingTransaction::Source }

#statusSymbol, Increase::Models::PendingTransaction::Status

Whether the Pending Transaction has been confirmed and has an associated Transaction.



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

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

#typeSymbol, Increase::Models::PendingTransaction::Type

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



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

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

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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