Class: ModernTreasury::Models::IncomingPaymentDetail

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/incoming_payment_detail.rb

Overview

Defined Under Namespace

Modules: OriginatingAccountNumberType, OriginatingRoutingNumberType, ReconciliationStatus, Status, Type

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(id: , amount: , as_of_date: , created_at: , currency: , data: , direction: , internal_account_id: , ledger_transaction_id: , live_mode: , metadata: , object: , originating_account_number_safe: , originating_account_number_type: , originating_routing_number: , originating_routing_number_type: , reconciliation_status: , status: , transaction_id: , transaction_line_item_id: , type: , updated_at: , vendor_id: , virtual_account: , virtual_account_id: , originating_account_number: nil) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::IncomingPaymentDetail for more details.

Parameters:

  • id (String) (defaults to: )
  • amount (Integer) (defaults to: )

    Value in specified currency’s smallest unit. e.g. $10 would be represented as 10

  • as_of_date (Date) (defaults to: )

    The date on which the corresponding transaction will occur.

  • created_at (Time) (defaults to: )
  • currency (Symbol, ModernTreasury::Models::Currency) (defaults to: )

    The currency of the incoming payment detail.

  • data (Hash{Symbol=>Object}) (defaults to: )

    The raw data from the payment pre-notification file that we get from the bank.

  • direction (Symbol, ModernTreasury::Models::TransactionDirection) (defaults to: )

    One of ‘credit` or `debit`.

  • internal_account_id (String) (defaults to: )

    The ID of the Internal Account for the incoming payment detail. This is always p

  • ledger_transaction_id (String, nil) (defaults to: )

    The ID of the ledger transaction linked to the incoming payment detail or ‘null`

  • live_mode (Boolean) (defaults to: )

    This field will be true if this object exists in the live environment or false i

  • metadata (Hash{Symbol=>String}) (defaults to: )

    Additional data represented as key-value pairs. Both the key and value must be s

  • object (String) (defaults to: )
  • originating_account_number_safe (String, nil) (defaults to: )

    The last 4 digits of the originating account_number for the incoming payment det

  • originating_account_number_type (Symbol, ModernTreasury::Models::IncomingPaymentDetail::OriginatingAccountNumberType, nil) (defaults to: )

    The type of the originating account number for the incoming payment detail.

  • originating_routing_number (String, nil) (defaults to: )

    The routing number of the originating account for the incoming payment detail.

  • originating_routing_number_type (Symbol, ModernTreasury::Models::IncomingPaymentDetail::OriginatingRoutingNumberType, nil) (defaults to: )

    The type of the originating routing number for the incoming payment detail.

  • reconciliation_status (Symbol, ModernTreasury::Models::IncomingPaymentDetail::ReconciliationStatus) (defaults to: )

    One of ‘unreconciled`, `tentatively_reconciled` or `reconciled`.

  • status (Symbol, ModernTreasury::Models::IncomingPaymentDetail::Status) (defaults to: )

    The current status of the incoming payment order. One of ‘pending`, `completed`,

  • transaction_id (String, nil) (defaults to: )

    The ID of the reconciled Transaction or ‘null`.

  • transaction_line_item_id (String, nil) (defaults to: )

    The ID of the reconciled Transaction Line Item or ‘null`.

  • type (Symbol, ModernTreasury::Models::IncomingPaymentDetail::Type) (defaults to: )

    One of: ‘ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w

  • updated_at (Time) (defaults to: )
  • vendor_id (String, nil) (defaults to: )

    The identifier of the vendor bank.

  • virtual_account (ModernTreasury::Models::VirtualAccount, nil) (defaults to: )

    If the incoming payment detail is in a virtual account, the serialized virtual a

  • virtual_account_id (String, nil) (defaults to: )

    If the incoming payment detail is in a virtual account, the ID of the Virtual Ac

  • originating_account_number (String, nil) (defaults to: nil)

    The account number of the originating account for the incoming payment detail.



# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 173


Instance Attribute Details

#amountInteger

Value in specified currency’s smallest unit. e.g. $10 would be represented as 1000.

Returns:

  • (Integer)


17
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 17

required :amount, Integer

#as_of_dateDate

The date on which the corresponding transaction will occur.

Returns:

  • (Date)


23
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 23

required :as_of_date, Date

#created_atTime

Returns:

  • (Time)


28
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 28

required :created_at, Time

#currencySymbol, ModernTreasury::Models::Currency

The currency of the incoming payment detail.



34
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 34

required :currency, enum: -> { ModernTreasury::Currency }

#dataHash{Symbol=>Object}

The raw data from the payment pre-notification file that we get from the bank.

Returns:

  • (Hash{Symbol=>Object})


40
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 40

required :data, ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]

#directionSymbol, ModernTreasury::Models::TransactionDirection

One of ‘credit` or `debit`.



46
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 46

required :direction, enum: -> { ModernTreasury::TransactionDirection }

#idString

Returns:

  • (String)


10
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 10

required :id, String

#internal_account_idString

The ID of the Internal Account for the incoming payment detail. This is always present.

Returns:

  • (String)


53
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 53

required :internal_account_id, String

#ledger_transaction_idString?

The ID of the ledger transaction linked to the incoming payment detail or ‘null`.

Returns:

  • (String, nil)


60
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 60

required :ledger_transaction_id, String, nil?: true

#live_modeBoolean

This field will be true if this object exists in the live environment or false if it exists in the test environment.

Returns:

  • (Boolean)


67
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 67

required :live_mode, ModernTreasury::Internal::Type::Boolean

#metadataHash{Symbol=>String}

Additional data represented as key-value pairs. Both the key and value must be strings.

Returns:

  • (Hash{Symbol=>String})


74
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 74

required :metadata, ModernTreasury::Internal::Type::HashOf[String]

#objectString

Returns:

  • (String)


79
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 79

required :object, String

#originating_account_numberString?

The account number of the originating account for the incoming payment detail.

Returns:

  • (String, nil)


171
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 171

optional :originating_account_number, String, nil?: true

#originating_account_number_safeString?

The last 4 digits of the originating account_number for the incoming payment detail.

Returns:

  • (String, nil)


86
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 86

required :originating_account_number_safe, String, nil?: true

#originating_account_number_typeSymbol, ...

The type of the originating account number for the incoming payment detail.



92
93
94
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 92

required :originating_account_number_type,
enum: -> { ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType },
nil?: true

#originating_routing_numberString?

The routing number of the originating account for the incoming payment detail.

Returns:

  • (String, nil)


100
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 100

required :originating_routing_number, String, nil?: true

#originating_routing_number_typeSymbol, ...

The type of the originating routing number for the incoming payment detail.



106
107
108
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 106

required :originating_routing_number_type,
enum: -> { ModernTreasury::IncomingPaymentDetail::OriginatingRoutingNumberType },
nil?: true

#reconciliation_statusSymbol, ModernTreasury::Models::IncomingPaymentDetail::ReconciliationStatus

One of ‘unreconciled`, `tentatively_reconciled` or `reconciled`.



114
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 114

required :reconciliation_status, enum: -> { ModernTreasury::IncomingPaymentDetail::ReconciliationStatus }

#statusSymbol, ModernTreasury::Models::IncomingPaymentDetail::Status

The current status of the incoming payment order. One of ‘pending`, `completed`, or `returned`.



121
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 121

required :status, enum: -> { ModernTreasury::IncomingPaymentDetail::Status }

#transaction_idString?

The ID of the reconciled Transaction or ‘null`.

Returns:

  • (String, nil)


127
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 127

required :transaction_id, String, nil?: true

#transaction_line_item_idString?

The ID of the reconciled Transaction Line Item or ‘null`.

Returns:

  • (String, nil)


133
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 133

required :transaction_line_item_id, String, nil?: true

#typeSymbol, ModernTreasury::Models::IncomingPaymentDetail::Type

One of: ‘ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `wire`.



140
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 140

required :type, enum: -> { ModernTreasury::IncomingPaymentDetail::Type }

#updated_atTime

Returns:

  • (Time)


145
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 145

required :updated_at, Time

#vendor_idString?

The identifier of the vendor bank.

Returns:

  • (String, nil)


151
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 151

required :vendor_id, String, nil?: true

#virtual_accountModernTreasury::Models::VirtualAccount?

If the incoming payment detail is in a virtual account, the serialized virtual account object.



158
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 158

required :virtual_account, -> { ModernTreasury::VirtualAccount }, nil?: true

#virtual_account_idString?

If the incoming payment detail is in a virtual account, the ID of the Virtual Account.

Returns:

  • (String, nil)


165
# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 165

required :virtual_account_id, String, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/incoming_payment_detail.rb', line 250