Class: Amocrm::Models::CompanyUpdateByIDParams::CustomFieldsValue::Value

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/company_update_by_id_params.rb

Defined Under Namespace

Modules: Value

Instance Attribute 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(value:, enum_code: nil, enum_id: nil) ⇒ Object

Parameters:

  • value (String, Integer, Boolean)
  • enum_code (String) (defaults to: nil)

    Option code for list/select custom fields (if you use code instead of id)

  • enum_id (Integer) (defaults to: nil)

    Option id for list/select custom fields (one of predefined options)



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# File 'lib/amocrm/models/company_update_by_id_params.rb', line 156

class Value < Amocrm::Internal::Type::BaseModel
  # @!attribute value
  #
  #   @return [String, Integer, Boolean]
  required :value, union: -> { Amocrm::CompanyUpdateByIDParams::CustomFieldsValue::Value::Value }

  # @!attribute enum_code
  #   Option code for list/select custom fields (if you use code instead of id)
  #
  #   @return [String, nil]
  optional :enum_code, String

  # @!attribute enum_id
  #   Option id for list/select custom fields (one of predefined options)
  #
  #   @return [Integer, nil]
  optional :enum_id, Integer

  # @!method initialize(value:, enum_code: nil, enum_id: nil)
  #   @param value [String, Integer, Boolean]
  #
  #   @param enum_code [String] Option code for list/select custom fields (if you use code instead of id)
  #
  #   @param enum_id [Integer] Option id for list/select custom fields (one of predefined options)

  # @see Amocrm::Models::CompanyUpdateByIDParams::CustomFieldsValue::Value#value
  module Value
    extend Amocrm::Internal::Type::Union

    variant String

    variant Integer

    variant Amocrm::Internal::Type::Boolean

    # @!method self.variants
    #   @return [Array(String, Integer, Boolean)]
  end
end

Instance Attribute Details

#enum_codeString?

Option code for list/select custom fields (if you use code instead of id)

Returns:

  • (String, nil)


166
# File 'lib/amocrm/models/company_update_by_id_params.rb', line 166

optional :enum_code, String

#enum_idInteger?

Option id for list/select custom fields (one of predefined options)

Returns:

  • (Integer, nil)


172
# File 'lib/amocrm/models/company_update_by_id_params.rb', line 172

optional :enum_id, Integer

#valueString, ...

Returns:

  • (String, Integer, Boolean)


160
# File 'lib/amocrm/models/company_update_by_id_params.rb', line 160

required :value, union: -> { Amocrm::CompanyUpdateByIDParams::CustomFieldsValue::Value::Value }