Class: Inttegro::PurchaseIntent::PriceSelectionOriginalNominal
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::PriceSelectionOriginalNominal
- Defined in:
- lib/inttegro/purchase_intent/price_selection_original_nominal.rb
Overview
Inline original price amount
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
-
#currency ⇒ Inttegro::Money::Currency
readonly
A currency code recognized by the Inttegro API.
-
#value ⇒ Integer
readonly
Price in the currency's smallest unit.
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.
31 32 33 34 |
# File 'lib/inttegro/purchase_intent/price_selection_original_nominal.rb', line 31 class PriceSelectionOriginalNominal < T::Struct const :currency, Inttegro::Money::Currency const :value, Integer end |
#value ⇒ Integer (readonly)
Price in the currency's smallest unit.
Required in the API payload. Wire name: value.
31 32 33 34 |
# File 'lib/inttegro/purchase_intent/price_selection_original_nominal.rb', line 31 class PriceSelectionOriginalNominal < T::Struct const :currency, Inttegro::Money::Currency const :value, Integer end |