Class: Lithic::Models::Transaction::Amounts

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/transaction.rb

Overview

See Also:

Defined Under Namespace

Classes: Cardholder, Hold, Merchant, Settlement

Instance Attribute 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(amount:, currency:) ⇒ Object

Parameters:

  • amount (Integer)

    The settled amount of the transaction in the merchant currency.

  • currency (String)

    3-character alphabetic ISO 4217 currency



# File 'lib/lithic/models/transaction.rb', line 279

Instance Attribute Details

#cardholderLithic::Models::Transaction::Amounts::Cardholder



262
# File 'lib/lithic/models/transaction.rb', line 262

required :cardholder, -> { Lithic::Transaction::Amounts::Cardholder }

#holdLithic::Models::Transaction::Amounts::Hold



267
# File 'lib/lithic/models/transaction.rb', line 267

required :hold, -> { Lithic::Transaction::Amounts::Hold }

#merchantLithic::Models::Transaction::Amounts::Merchant



272
# File 'lib/lithic/models/transaction.rb', line 272

required :merchant, -> { Lithic::Transaction::Amounts::Merchant }

#settlementLithic::Models::Transaction::Amounts::Settlement



277
# File 'lib/lithic/models/transaction.rb', line 277

required :settlement, -> { Lithic::Transaction::Amounts::Settlement }