Class: MetronomeSDK::Models::V1::Contracts::ProductListResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contracts/product_list_response.rb

Overview

Defined Under Namespace

Modules: Type Classes: Update

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], 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

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#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

Parameters:



# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 46


Instance Attribute Details

#archived_atTime?

Returns:

  • (Time, nil)


38
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 38

optional :archived_at, Time, nil?: true

#currentMetronomeSDK::Models::V1::Contracts::ProductListItemState



17
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 17

required :current, -> { MetronomeSDK::V1::Contracts::ProductListItemState }

#custom_fieldsHash{Symbol=>String}?

Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }

Returns:

  • (Hash{Symbol=>String}, nil)


44
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 44

optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]

#idString

Returns:

  • (String)


12
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 12

required :id, String

#initialMetronomeSDK::Models::V1::Contracts::ProductListItemState



22
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 22

required :initial, -> { MetronomeSDK::V1::Contracts::ProductListItemState }

#typeSymbol, MetronomeSDK::Models::V1::Contracts::ProductListResponse::Type



27
# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 27

required :type, enum: -> { MetronomeSDK::Models::V1::Contracts::ProductListResponse::Type }

#updatesArray<MetronomeSDK::Models::V1::Contracts::ProductListResponse::Update>



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

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/metronome_sdk/models/v1/contracts/product_list_response.rb', line 71