Class: Inttegro::Order::CreatedFrom
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::CreatedFrom
- 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
-
#resource_id ⇒ String?
readonly
Value of the
resource_idfield in the Inttegro API payload. -
#resource_type ⇒ Inttegro::Order::CreatedFromResourceType?
readonly
Value of the
resource_typefield in the Inttegro API payload. -
#source ⇒ String?
readonly
Value of the
sourcefield in the Inttegro API payload.
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.
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.
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 |