Class: Inttegro::PurchaseIntent::CancelRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::CancelRequest
- Defined in:
- lib/inttegro/purchase_intent/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
-
#id ⇒ String?
readonly
Purchase intent ID to cancel.
-
#purchase_intent_id ⇒ String?
readonly
Alias for id.
Instance Attribute Details
#id ⇒ String? (readonly)
Purchase intent ID to cancel. Send this or purchase_intent_id.
Optional in the API payload; omitted values default to nil. Wire name: id.
29 30 31 32 |
# File 'lib/inttegro/purchase_intent/cancel_request.rb', line 29 class CancelRequest < T::Struct const :id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil end |
#purchase_intent_id ⇒ String? (readonly)
Alias for id. If both are present, this value takes precedence.
Optional in the API payload; omitted values default to nil. Wire name: purchase_intent_id.
29 30 31 32 |
# File 'lib/inttegro/purchase_intent/cancel_request.rb', line 29 class CancelRequest < T::Struct const :id, T.nilable(String), default: nil const :purchase_intent_id, T.nilable(String), default: nil end |