Class: Amocrm::Models::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Amocrm::Models::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue
- Defined in:
- lib/amocrm/models/lead_update_by_id_params.rb
Defined Under Namespace
Classes: Value
Instance Attribute Summary collapse
-
#field_code ⇒ String?
Field code (e.g. PHONE/EMAIL).
-
#field_id ⇒ Integer?
Use either field_id or field_code (e.g. PHONE/EMAIL).
-
#values ⇒ Array<Amocrm::Models::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue::Value>
Values for the field (multiple values allowed).
Instance Method Summary collapse
- #initialize(id: nil, custom_fields_values: nil, first_name: nil, last_name: nil, name: nil) ⇒ Object constructor
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: nil, custom_fields_values: nil, first_name: nil, last_name: nil, name: nil) ⇒ Object
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/amocrm/models/lead_update_by_id_params.rb', line 206 class CustomFieldsValue < Amocrm::Internal::Type::BaseModel # @!attribute values # Values for the field (multiple values allowed) # # @return [Array<Amocrm::Models::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue::Value>] required :values, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue::Value] } # @!attribute field_code # Field code (e.g. PHONE/EMAIL) # # @return [String, nil] optional :field_code, String # @!attribute field_id # Use either field_id or field_code (e.g. PHONE/EMAIL) # # @return [Integer, nil] optional :field_id, Integer # @!method initialize(values:, field_code: nil, field_id: nil) # @param values [Array<Amocrm::Models::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue::Value>] Values for the field (multiple values allowed) # # @param field_code [String] Field code (e.g. PHONE/EMAIL) # # @param field_id [Integer] Use either field_id or field_code (e.g. PHONE/EMAIL) class Value < Amocrm::Internal::Type::BaseModel # @!attribute value # # @return [String, Integer, Boolean] required :value, union: -> { Amocrm::LeadUpdateByIDParams::Embedded::Contact::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::LeadUpdateByIDParams::Embedded::Contact::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 end |
Instance Attribute Details
#field_code ⇒ String?
Field code (e.g. PHONE/EMAIL)
218 |
# File 'lib/amocrm/models/lead_update_by_id_params.rb', line 218 optional :field_code, String |
#field_id ⇒ Integer?
Use either field_id or field_code (e.g. PHONE/EMAIL)
224 |
# File 'lib/amocrm/models/lead_update_by_id_params.rb', line 224 optional :field_id, Integer |
#values ⇒ Array<Amocrm::Models::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue::Value>
Values for the field (multiple values allowed)
211 212 |
# File 'lib/amocrm/models/lead_update_by_id_params.rb', line 211 required :values, -> { Amocrm::Internal::Type::ArrayOf[Amocrm::LeadUpdateByIDParams::Embedded::Contact::CustomFieldsValue::Value] } |