Class: Inttegro::Checkout::PurchaseIntentPayRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::PurchaseIntentPayRequest
- Defined in:
- lib/inttegro/checkout/purchase_intent_pay_request.rb
Overview
Creates an Order from a Purchase Intent and pays it with a newly supplied payment method.
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
-
#customer_data ⇒ Inttegro::Checkout::CustomerData
readonly
Value of the
customer_datafield in the Inttegro API payload. -
#payment_method_data ⇒ Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData
readonly
New payment method details supplied by the payer.
-
#purchase_intent_id ⇒ String
readonly
Purchase Intent to turn into an Order and pay in this request.
-
#quantity ⇒ Integer?
readonly
Quantity selected by the payer.
-
#save_payment_method ⇒ Boolean?
readonly
Save the newly supplied payment method to the Order's customer.
-
#selected_amount ⇒ Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount?
readonly
Amount selected by the payer when the Purchase Intent accepts customer-selected pricing.
-
#variant_product_id ⇒ String?
readonly
Selected variant when the Purchase Intent offers product variants.
Instance Attribute Details
#customer_data ⇒ Inttegro::Checkout::CustomerData (readonly)
Value of the customer_data field in the Inttegro API payload.
Required in the API payload. Wire name: customer_data.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#payment_method_data ⇒ Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData (readonly)
New payment method details supplied by the payer. Shipping details are not accepted here because checkout cannot change the resulting Order's shipping address.
Required in the API payload. Wire name: payment_method_data.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#purchase_intent_id ⇒ String (readonly)
Purchase Intent to turn into an Order and pay in this request.
Required in the API payload. Wire name: purchase_intent_id.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#quantity ⇒ Integer? (readonly)
Quantity selected by the payer. Defaults to the Purchase Intent minimum.
Optional in the API payload; omitted values default to nil. Wire name: quantity.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#save_payment_method ⇒ Boolean? (readonly)
Save the newly supplied payment method to the Order's customer.
Optional in the API payload; omitted values default to nil. Wire name: save_payment_method.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#selected_amount ⇒ Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount? (readonly)
Amount selected by the payer when the Purchase Intent accepts customer-selected pricing.
Optional in the API payload; omitted values default to nil. Wire name: selected_amount.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#variant_product_id ⇒ String? (readonly)
Selected variant when the Purchase Intent offers product variants.
Optional in the API payload; omitted values default to nil. Wire name: variant_product_id.
63 64 65 66 67 68 69 70 71 |
# File 'lib/inttegro/checkout/purchase_intent_pay_request.rb', line 63 class PurchaseIntentPayRequest < T::Struct const :purchase_intent_id, String const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PurchaseIntentPayRequestSelectedAmount), default: nil const :customer_data, Inttegro::Checkout::CustomerData const :payment_method_data, Inttegro::Checkout::PurchaseIntentPayRequestPaymentMethodData const :save_payment_method, T.nilable(T::Boolean), default: nil end |