Class: Inttegro::PurchaseIntent::UsageOrder

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/purchase_intent/usage_order.rb

Overview

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

#created_at ⇒ Time (readonly)

When order creation consumed the single-use Buy link

Required in the API payload. Wire name: created_at.

Returns:

  • (Time)


29
30
31
32
# File 'lib/inttegro/purchase_intent/usage_order.rb', line 29

class UsageOrder < T::Struct
  const :created_at, Time
  const :id, String
end

#id ⇒ String (readonly)

Order that consumed the Buy link

Required in the API payload. Wire name: id.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/purchase_intent/usage_order.rb', line 29

class UsageOrder < T::Struct
  const :created_at, Time
  const :id, String
end