Class: Inttegro::Checkout::PayRequestSelectedAmount

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/pay_request_selected_amount.rb

Overview

Amount selected by the payer when the Purchase Intent accepts customer-selected pricing.

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.



31
32
33
34
# File 'lib/inttegro/checkout/pay_request_selected_amount.rb', line 31

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

#value ⇒ Integer (readonly)

Payer-selected amount in the currency's smallest unit.

Required in the API payload. Wire name: value.

Returns:

  • (Integer)


31
32
33
34
# File 'lib/inttegro/checkout/pay_request_selected_amount.rb', line 31

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