Class: Lithic::Models::CardAuthorization::Amounts::Hold

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#hold

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

#initializeHold

Returns a new instance of Hold.

Parameters:

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


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

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

Instance Attribute Details

#amountInteger

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

Parameters:

  • value (Integer)

Returns:

  • (Integer)


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

required :amount, Integer

#currencyString

3-character alphabetic ISO 4217 currency

Parameters:

  • value (String)

Returns:

  • (String)


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

required :currency, String

Instance Method Details

#to_hash{ amount: Integer, currency: String }

Returns:

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


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

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