Class: Inttegro::Checkout::OrderCreatedFrom

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/order_created_from.rb

Overview

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

#resource_id ⇒ String? (readonly)

Value of the resource_id field in the Inttegro API payload.

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

Returns:

  • (String, nil)


35
36
37
38
39
# File 'lib/inttegro/checkout/order_created_from.rb', line 35

class OrderCreatedFrom < T::Struct
  const :source, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
end

#resource_type ⇒ String? (readonly)

Value of the resource_type field in the Inttegro API payload.

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

Returns:

  • (String, nil)


35
36
37
38
39
# File 'lib/inttegro/checkout/order_created_from.rb', line 35

class OrderCreatedFrom < T::Struct
  const :source, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
end

#source ⇒ String? (readonly)

Value of the source field in the Inttegro API payload.

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

Returns:

  • (String, nil)


35
36
37
38
39
# File 'lib/inttegro/checkout/order_created_from.rb', line 35

class OrderCreatedFrom < T::Struct
  const :source, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
end