Class: Inttegro::PurchaseIntent::CreateRequestUsage

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

Overview

Optional link-use policy. Omit to create a reusable Buy link.

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

#multi_use ⇒ Boolean? (readonly)

The Buy link may create multiple orders

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

Returns:

  • (Boolean, nil)


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

class CreateRequestUsage < T::Struct
  const :single_use, T.nilable(T::Boolean), default: nil
  const :multi_use, T.nilable(T::Boolean), default: nil
end

#single_use ⇒ Boolean? (readonly)

Creating the first order consumes the Buy link

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

Returns:

  • (Boolean, nil)


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

class CreateRequestUsage < T::Struct
  const :single_use, T.nilable(T::Boolean), default: nil
  const :multi_use, T.nilable(T::Boolean), default: nil
end