Class: Inttegro::PaymentMethod::Data

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

Overview

Payment instrument details for tokenization

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::DataMobileMoney? (readonly)

Mobile money wallet details (required when type is mobile_money)

Optional in the API payload; omitted values default to nil. 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, T.nilable(Inttegro::PaymentMethod::DataMobileMoney), default: nil
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, T.nilable(Inttegro::PaymentMethod::DataMobileMoney), default: nil
end