Class: Lithic::Models::CardAuthorization::Amounts::Cardholder

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

Overview

See Also:

  • Lithic::Models::CardAuthorization::Amounts#cardholder

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

#initializeObject



238
# File 'sig/lithic/models/card_authorization.rbs', line 238

def initialize: (

Instance Attribute Details

#amountInteger

Amount in the smallest unit of the applicable currency (e.g., cents)

Parameters:

  • value (Integer)

Returns:

  • (Integer)


353
# File 'lib/lithic/models/card_authorization.rb', line 353

required :amount, Integer

#conversion_rateString

Exchange rate used for currency conversion

Parameters:

  • value (String)

Returns:

  • (String)


359
# File 'lib/lithic/models/card_authorization.rb', line 359

required :conversion_rate, String

#currencyString

3-character alphabetic ISO 4217 currency

Parameters:

  • value (String)

Returns:

  • (String)


365
# File 'lib/lithic/models/card_authorization.rb', line 365

required :currency, String

Instance Method Details

#to_hash{

Returns:

  • ({)


244
# File 'sig/lithic/models/card_authorization.rbs', line 244

def to_hash: -> {