Class: Inttegro::Order::CompleteRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/complete_request.rb

Overview

Typed representation of the complete 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

Instance Attribute Details

#order_id ⇒ String (readonly)

Unique identifier of the order to complete

Required in the API payload. Wire name: order_id.

Returns:

  • (String)


31
32
33
34
# File 'lib/inttegro/order/complete_request.rb', line 31

class CompleteRequest < T::Struct
  const :order_id, String
  const :paid_out_of_band, T.nilable(T::Boolean), default: nil
end

Set to true if payment was received outside Inttegro (e.g., cash, bank transfer, check). When true, the associated payment will be marked as paid offline before completing the order.

Optional in the API payload; omitted values default to nil. Wire name: paid_out_of_band.

Returns:

  • (Boolean, nil)


31
32
33
34
# File 'lib/inttegro/order/complete_request.rb', line 31

class CompleteRequest < T::Struct
  const :order_id, String
  const :paid_out_of_band, T.nilable(T::Boolean), default: nil
end