Class: Inttegro::Checkout::PayRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Checkout::PayRequest
- Defined in:
- lib/inttegro/checkout/pay_request.rb
Overview
Typed representation of the pay request 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
-
#customer_data ⇒ Inttegro::Checkout::CustomerData?
readonly
Value of the
customer_datafield in the Inttegro API payload. -
#order_id ⇒ String?
readonly
The finalized Order to pay.
-
#payment_method_data ⇒ Inttegro::Checkout::PayRequestPaymentMethodData?
readonly
New payment method details supplied by the payer.
-
#payment_method_id ⇒ String?
readonly
A saved payment method owned by the Order's immutable customer.
-
#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 a newly supplied payment method to the Order's customer.
-
#selected_amount ⇒ Inttegro::Checkout::PayRequestSelectedAmount?
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.
Optional in the API payload; omitted values default to nil. Wire name: customer_data.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#order_id ⇒ String? (readonly)
The finalized Order to pay.
Optional in the API payload; omitted values default to nil. Wire name: order_id.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#payment_method_data ⇒ Inttegro::Checkout::PayRequestPaymentMethodData? (readonly)
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.
Optional in the API payload; omitted values default to nil. Wire name: payment_method_data.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#payment_method_id ⇒ String? (readonly)
A saved payment method owned by the Order's immutable customer. Mutually exclusive with
payment_method_data.
Optional in the API payload; omitted values default to nil. Wire name: payment_method_id.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil 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.
Optional in the API payload; omitted values default to nil. Wire name: purchase_intent_id.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil 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.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#save_payment_method ⇒ Boolean? (readonly)
Save a newly supplied payment method to the Order's customer. When true,
payment_method_data.billing_details is required.
Optional in the API payload; omitted values default to nil. Wire name: save_payment_method.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil end |
#selected_amount ⇒ Inttegro::Checkout::PayRequestSelectedAmount? (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.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil 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.
78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/inttegro/checkout/pay_request.rb', line 78 class PayRequest < T::Struct const :order_id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil const :variant_product_id, T.nilable(String), default: nil const :quantity, T.nilable(Integer), default: nil const :selected_amount, T.nilable(Inttegro::Checkout::PayRequestSelectedAmount), default: nil const :customer_data, T.nilable(Inttegro::Checkout::CustomerData), default: nil const :payment_method_id, T.nilable(String), default: nil const :payment_method_data, T.nilable(Inttegro::Checkout::PayRequestPaymentMethodData), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil end |