Class: MetronomeSDK::Models::V1::Contracts::ProductListResponse
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_list_response.rb', line 46
|
Instance Attribute Details
#archived_at ⇒ Time?
38
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 38
optional :archived_at, Time, nil?: true
|
17
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 17
required :current, -> { MetronomeSDK::V1::Contracts::ProductListItemState }
|
#custom_fields ⇒ Hash{Symbol=>String}?
Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }
44
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 44
optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
|
#id ⇒ String
12
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 12
required :id, String
|
22
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 22
required :initial, -> { MetronomeSDK::V1::Contracts::ProductListItemState }
|
27
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 27
required :type, enum: -> { MetronomeSDK::Models::V1::Contracts::ProductListResponse::Type }
|
32
33
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 32
required :updates,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::Contracts::ProductListResponse::Update] }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 71
|