Class: Inttegro::Order::CreatedFrom

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/order/created_from.rb

Overview

Attribution for the public resource that created this order, when available.

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)


36
37
38
39
40
# File 'lib/inttegro/order/created_from.rb', line 36

class CreatedFrom < T::Struct
  const :source, T.nilable(String), default: nil
  const :resource_type, T.nilable(Inttegro::Order::CreatedFromResourceType), default: nil
  const :resource_id, T.nilable(String), default: nil
end

#resource_type ⇒ Inttegro::Order::CreatedFromResourceType? (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.



36
37
38
39
40
# File 'lib/inttegro/order/created_from.rb', line 36

class CreatedFrom < T::Struct
  const :source, T.nilable(String), default: nil
  const :resource_type, T.nilable(Inttegro::Order::CreatedFromResourceType), 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)


36
37
38
39
40
# File 'lib/inttegro/order/created_from.rb', line 36

class CreatedFrom < T::Struct
  const :source, T.nilable(String), default: nil
  const :resource_type, T.nilable(Inttegro::Order::CreatedFromResourceType), default: nil
  const :resource_id, T.nilable(String), default: nil
end