Class: Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData

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

Overview

New payment method details supplied by the payer. Shipping details are not accepted here because checkout cannot change the resulting 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.



40
41
42
43
44
# File 'lib/inttegro/checkout/purchase_intent_pay_request_payment_method_data.rb', line 40

class PurchaseIntentPayRequestPaymentMethodData < T::Struct
  const :type, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodDataType
  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.



40
41
42
43
44
# File 'lib/inttegro/checkout/purchase_intent_pay_request_payment_method_data.rb', line 40

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

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

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



40
41
42
43
44
# File 'lib/inttegro/checkout/purchase_intent_pay_request_payment_method_data.rb', line 40

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