Class: Inttegro::Checkout::PayRequestPaymentMethodData

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

Overview

New payment method details supplied by the payer. Mutually exclusive with payment_method_id. Shipping details are not accepted here because checkout cannot change the Order's shipping address.

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

Billing details for this new payment method. They do not replace the Order customer's identity or the Order's shipping address.

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



41
42
43
44
45
# File 'lib/inttegro/checkout/pay_request_payment_method_data.rb', line 41

class PayRequestPaymentMethodData < T::Struct
  const :type, Inttegro::Checkout::PayRequestPaymentMethodDataType
  const :mobile_money, Inttegro::Checkout::MobileMoneyData
  const :billing_details, T.nilable(Inttegro::Checkout::PaymentMethodDataBillingDetails), default: nil
end

#mobile_money ⇒ Inttegro::Checkout::MobileMoneyData (readonly)

Value of the mobile_money field in the Inttegro API payload.

Required in the API payload. Wire name: mobile_money.



41
42
43
44
45
# File 'lib/inttegro/checkout/pay_request_payment_method_data.rb', line 41

class PayRequestPaymentMethodData < T::Struct
  const :type, Inttegro::Checkout::PayRequestPaymentMethodDataType
  const :mobile_money, Inttegro::Checkout::MobileMoneyData
  const :billing_details, T.nilable(Inttegro::Checkout::PaymentMethodDataBillingDetails), default: nil
end

#type ⇒ Inttegro::Checkout::PayRequestPaymentMethodDataType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



41
42
43
44
45
# File 'lib/inttegro/checkout/pay_request_payment_method_data.rb', line 41

class PayRequestPaymentMethodData < T::Struct
  const :type, Inttegro::Checkout::PayRequestPaymentMethodDataType
  const :mobile_money, Inttegro::Checkout::MobileMoneyData
  const :billing_details, T.nilable(Inttegro::Checkout::PaymentMethodDataBillingDetails), default: nil
end