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

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

Overview

See Also:

  • Lithic::Models::Transaction::Amounts#merchant

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

#initializeMerchant

Returns a new instance of Merchant.

Parameters:

  • amount: (Integer)
  • currency: (String)


231
# File 'sig/lithic/models/transaction.rbs', line 231

def initialize: (amount: Integer, currency: String) -> void

Instance Attribute Details

#amountInteger

The settled amount of the transaction in the merchant currency.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :amount, Integer

#currencyString

3-character alphabetic ISO 4217 currency

Parameters:

  • value (String)

Returns:

  • (String)


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

required :currency, String

Instance Method Details

#to_hash{ amount: Integer, currency: String }

Returns:

  • ({ amount: Integer, currency: String })


233
# File 'sig/lithic/models/transaction.rbs', line 233

def to_hash: -> { amount: Integer, currency: String }