Class: Inttegro::Customer::SelectedPriceInputSelectedAmount

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/customer/selected_price_input_selected_amount.rb

Overview

Concrete unit amount selected for this order; it must satisfy the referenced price's currency and range

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#currency ⇒ Inttegro::Money::Currency (readonly)

A currency code recognized by the Inttegro API. Individual operations can support a subset of these currencies.

Required in the API payload. Wire name: currency.



32
33
34
35
# File 'lib/inttegro/customer/selected_price_input_selected_amount.rb', line 32

class SelectedPriceInputSelectedAmount < T::Struct
  const :currency, Inttegro::Money::Currency
  const :value, Integer
end

#value ⇒ Integer (readonly)

Amount in smallest currency unit (e.g., pesewas for GHS)

Required in the API payload. Wire name: value.

Returns:

  • (Integer)


32
33
34
35
# File 'lib/inttegro/customer/selected_price_input_selected_amount.rb', line 32

class SelectedPriceInputSelectedAmount < T::Struct
  const :currency, Inttegro::Money::Currency
  const :value, Integer
end