Class: Inttegro::Order::CreateNewCustomerPaymentMethodData

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/create_new_customer_payment_method_data.rb

Overview

New payment instrument details to use when executing payment for the 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/order/create_new_customer_payment_method_data.rb', line 31

class CreateNewCustomerPaymentMethodData < T::Struct
  const :type, Inttegro::Order::CreateNewCustomerPaymentMethodDataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
end

#type ⇒ Inttegro::Order::CreateNewCustomerPaymentMethodDataType (readonly)

Payment rail type (currently only mobile_money supported)

Required in the API payload. Wire name: type.



31
32
33
34
# File 'lib/inttegro/order/create_new_customer_payment_method_data.rb', line 31

class CreateNewCustomerPaymentMethodData < T::Struct
  const :type, Inttegro::Order::CreateNewCustomerPaymentMethodDataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
end