Class: Inttegro::Order::CancelRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::CancelRequest
- Defined in:
- lib/inttegro/order/cancel_request.rb
Overview
Typed representation of the cancel 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
-
#execute_refund ⇒ Boolean?
readonly
Whether the cancellation evidence should record that a refund was requested.
-
#order_id ⇒ String
readonly
Unique identifier of the order to cancel.
-
#reason ⇒ String?
readonly
Optional reason for cancelling the order.
Instance Attribute Details
#execute_refund ⇒ Boolean? (readonly)
Whether the cancellation evidence should record that a refund was requested. This does not execute a refund.
Optional in the API payload; omitted values default to nil. Wire name: execute_refund.
36 37 38 39 40 |
# File 'lib/inttegro/order/cancel_request.rb', line 36 class CancelRequest < T::Struct const :order_id, String const :reason, T.nilable(String), default: nil const :execute_refund, T.nilable(T::Boolean), default: nil end |
#order_id ⇒ String (readonly)
Unique identifier of the order to cancel
Required in the API payload. Wire name: order_id.
36 37 38 39 40 |
# File 'lib/inttegro/order/cancel_request.rb', line 36 class CancelRequest < T::Struct const :order_id, String const :reason, T.nilable(String), default: nil const :execute_refund, T.nilable(T::Boolean), default: nil end |
#reason ⇒ String? (readonly)
Optional reason for cancelling the order
Optional in the API payload; omitted values default to nil. Wire name: reason.
36 37 38 39 40 |
# File 'lib/inttegro/order/cancel_request.rb', line 36 class CancelRequest < T::Struct const :order_id, String const :reason, T.nilable(String), default: nil const :execute_refund, T.nilable(T::Boolean), default: nil end |