Class: Inttegro::Order::PayRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::PayRequest
- Defined in:
- lib/inttegro/order/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
-
#order_id ⇒ String
readonly
Unique identifier of the order to pay.
-
#paid_out_of_band ⇒ Boolean?
readonly
Set to true if payment was received outside Inttegro (cash, bank transfer, check).
-
#payment_method_data ⇒ Inttegro::Order::PayPaymentMethodData?
readonly
New mobile-money payment method details supplied while paying an order.
-
#payment_method_id ⇒ String?
readonly
ID of a saved payment method to use for this payment.
-
#payment_method_types ⇒ Array<Inttegro::PaymentMethod::Type>?
readonly
Payment method types to expose for this payment attempt.
-
#save_payment_method ⇒ Boolean?
readonly
Save a newly supplied payment method.
Instance Attribute Details
#order_id ⇒ String (readonly)
Unique identifier of the order to pay
Required in the API payload. Wire name: order_id.
58 59 60 61 62 63 64 65 |
# File 'lib/inttegro/order/pay_request.rb', line 58 class PayRequest < T::Struct const :order_id, String const :payment_method_types, T.nilable(T::Array[Inttegro::PaymentMethod::Type]), default: nil const :payment_method_data, T.nilable(Inttegro::Order::PayPaymentMethodData), default: nil const :payment_method_id, T.nilable(String), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil const :paid_out_of_band, T.nilable(T::Boolean), default: nil end |
#paid_out_of_band ⇒ Boolean? (readonly)
Set to true if payment was received outside Inttegro (cash, bank transfer, check). Marks the payment as paid offline. Mutually exclusive with payment_method_id and payment_method_data. Defaults to false.
Optional in the API payload; omitted values default to nil. Wire name: paid_out_of_band.
58 59 60 61 62 63 64 65 |
# File 'lib/inttegro/order/pay_request.rb', line 58 class PayRequest < T::Struct const :order_id, String const :payment_method_types, T.nilable(T::Array[Inttegro::PaymentMethod::Type]), default: nil const :payment_method_data, T.nilable(Inttegro::Order::PayPaymentMethodData), default: nil const :payment_method_id, T.nilable(String), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil const :paid_out_of_band, T.nilable(T::Boolean), default: nil end |
#payment_method_data ⇒ Inttegro::Order::PayPaymentMethodData? (readonly)
New mobile-money payment method details supplied while paying an order.
Optional in the API payload; omitted values default to nil. Wire name: payment_method_data.
58 59 60 61 62 63 64 65 |
# File 'lib/inttegro/order/pay_request.rb', line 58 class PayRequest < T::Struct const :order_id, String const :payment_method_types, T.nilable(T::Array[Inttegro::PaymentMethod::Type]), default: nil const :payment_method_data, T.nilable(Inttegro::Order::PayPaymentMethodData), default: nil const :payment_method_id, T.nilable(String), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil const :paid_out_of_band, T.nilable(T::Boolean), default: nil end |
#payment_method_id ⇒ String? (readonly)
ID of a saved payment method to use for this payment
Optional in the API payload; omitted values default to nil. Wire name: payment_method_id.
58 59 60 61 62 63 64 65 |
# File 'lib/inttegro/order/pay_request.rb', line 58 class PayRequest < T::Struct const :order_id, String const :payment_method_types, T.nilable(T::Array[Inttegro::PaymentMethod::Type]), default: nil const :payment_method_data, T.nilable(Inttegro::Order::PayPaymentMethodData), default: nil const :payment_method_id, T.nilable(String), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil const :paid_out_of_band, T.nilable(T::Boolean), default: nil end |
#payment_method_types ⇒ Array<Inttegro::PaymentMethod::Type>? (readonly)
Payment method types to expose for this payment attempt.
Optional in the API payload; omitted values default to nil. Wire name: payment_method_types.
58 59 60 61 62 63 64 65 |
# File 'lib/inttegro/order/pay_request.rb', line 58 class PayRequest < T::Struct const :order_id, String const :payment_method_types, T.nilable(T::Array[Inttegro::PaymentMethod::Type]), default: nil const :payment_method_data, T.nilable(Inttegro::Order::PayPaymentMethodData), default: nil const :payment_method_id, T.nilable(String), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil const :paid_out_of_band, T.nilable(T::Boolean), default: nil end |
#save_payment_method ⇒ Boolean? (readonly)
Save a newly supplied payment method. When true and payment_method_data is present, billing_details is required.
Optional in the API payload; omitted values default to nil. Wire name: save_payment_method.
58 59 60 61 62 63 64 65 |
# File 'lib/inttegro/order/pay_request.rb', line 58 class PayRequest < T::Struct const :order_id, String const :payment_method_types, T.nilable(T::Array[Inttegro::PaymentMethod::Type]), default: nil const :payment_method_data, T.nilable(Inttegro::Order::PayPaymentMethodData), default: nil const :payment_method_id, T.nilable(String), default: nil const :save_payment_method, T.nilable(T::Boolean), default: nil const :paid_out_of_band, T.nilable(T::Boolean), default: nil end |