Class: MetronomeSDK::Models::V1::Contracts::ProductRetrieveResponse::Data
Overview
Defined Under Namespace
Modules: Type
Classes: Update
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , current: , initial: , type: , updates: , archived_at: nil, custom_fields: nil) ⇒ Object
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 56
|
Instance Attribute Details
#archived_at ⇒ Time?
48
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 48
optional :archived_at, Time, nil?: true
|
27
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 27
required :current, -> { MetronomeSDK::V1::Contracts::ProductListItemState }
|
#custom_fields ⇒ Hash{Symbol=>String}?
Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }
54
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 54
optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
|
#id ⇒ String
22
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 22
required :id, String
|
32
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 32
required :initial, -> { MetronomeSDK::V1::Contracts::ProductListItemState }
|
37
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 37
required :type, enum: -> { MetronomeSDK::Models::V1::Contracts::ProductRetrieveResponse::Data::Type }
|
42
43
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 42
required :updates,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::Contracts::ProductRetrieveResponse::Data::Update] }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/metronome_sdk/models/v1/contracts/product_retrieve_response.rb', line 81
|