Class: Inttegro::Order::PayPaymentMethodData

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

Overview

New mobile-money payment method details supplied while paying 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

#billing_details ⇒ Inttegro::PaymentMethod::BillingDetailsInput? (readonly)

Value of the billing_details field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: billing_details.



45
46
47
48
49
50
# File 'lib/inttegro/order/pay_payment_method_data.rb', line 45

class PayPaymentMethodData < T::Struct
  const :type, Inttegro::Order::PayPaymentMethodDataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
  const :billing_details, T.nilable(Inttegro::PaymentMethod::BillingDetailsInput), default: nil
  const :shipping, T.nilable(Inttegro::PaymentMethod::ShippingInput), default: nil
end

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

Mobile-money wallet details.

Required in the API payload. Wire name: mobile_money.



45
46
47
48
49
50
# File 'lib/inttegro/order/pay_payment_method_data.rb', line 45

class PayPaymentMethodData < T::Struct
  const :type, Inttegro::Order::PayPaymentMethodDataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
  const :billing_details, T.nilable(Inttegro::PaymentMethod::BillingDetailsInput), default: nil
  const :shipping, T.nilable(Inttegro::PaymentMethod::ShippingInput), default: nil
end

#shipping ⇒ Inttegro::PaymentMethod::ShippingInput? (readonly)

Value of the shipping field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: shipping.



45
46
47
48
49
50
# File 'lib/inttegro/order/pay_payment_method_data.rb', line 45

class PayPaymentMethodData < T::Struct
  const :type, Inttegro::Order::PayPaymentMethodDataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
  const :billing_details, T.nilable(Inttegro::PaymentMethod::BillingDetailsInput), default: nil
  const :shipping, T.nilable(Inttegro::PaymentMethod::ShippingInput), default: nil
end

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

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



45
46
47
48
49
50
# File 'lib/inttegro/order/pay_payment_method_data.rb', line 45

class PayPaymentMethodData < T::Struct
  const :type, Inttegro::Order::PayPaymentMethodDataType
  const :mobile_money, Inttegro::PaymentMethod::MobileMoneyInput
  const :billing_details, T.nilable(Inttegro::PaymentMethod::BillingDetailsInput), default: nil
  const :shipping, T.nilable(Inttegro::PaymentMethod::ShippingInput), default: nil
end