Class: Inttegro::PaymentMethod::Data

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payment_method/data.rb

Overview

Payment instrument details supplied while creating an order.

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

#mobile_money ⇒ Inttegro::PaymentMethod::MobileMoneyInput (readonly)

Mobile-money wallet details.

Required in the API payload. Wire name: mobile_money.



31
32
33
34
# File 'lib/inttegro/payment_method/data.rb', line 31

class Data < T::Struct
  const :type, Inttegro::PaymentMethod::DataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
end

#type ⇒ Inttegro::PaymentMethod::DataType (readonly)

Payment rail type (currently only mobile_money supported)

Required in the API payload. Wire name: type.



31
32
33
34
# File 'lib/inttegro/payment_method/data.rb', line 31

class Data < T::Struct
  const :type, Inttegro::PaymentMethod::DataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
end