Class: Inttegro::Checkout::PaymentMethodData
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::PaymentMethodData
- Defined in:
- lib/inttegro/checkout/payment_method_data.rb
Overview
Typed representation of the payment method data object in the Inttegro API.
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
-
#billing_details ⇒ Inttegro::Checkout::PaymentMethodDataBillingDetails?
readonly
Billing details for this new payment method.
-
#mobile_money ⇒ Inttegro::Checkout::MobileMoneyData
readonly
Value of the
mobile_moneyfield in the Inttegro API payload. -
#type ⇒ Inttegro::Checkout::PaymentMethodDataType
readonly
Value of the
typefield in the Inttegro API payload.
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.
39 40 41 42 43 |
# File 'lib/inttegro/checkout/payment_method_data.rb', line 39 class PaymentMethodData < T::Struct const :type, Inttegro::Checkout::PaymentMethodDataType 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.
39 40 41 42 43 |
# File 'lib/inttegro/checkout/payment_method_data.rb', line 39 class PaymentMethodData < T::Struct const :type, Inttegro::Checkout::PaymentMethodDataType const :mobile_money, Inttegro::Checkout::MobileMoneyData const :billing_details, T.nilable(Inttegro::Checkout::PaymentMethodDataBillingDetails), default: nil end |
#type ⇒ Inttegro::Checkout::PaymentMethodDataType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
39 40 41 42 43 |
# File 'lib/inttegro/checkout/payment_method_data.rb', line 39 class PaymentMethodData < T::Struct const :type, Inttegro::Checkout::PaymentMethodDataType const :mobile_money, Inttegro::Checkout::MobileMoneyData const :billing_details, T.nilable(Inttegro::Checkout::PaymentMethodDataBillingDetails), default: nil end |