Class: Amocrm::Models::ContactCreateParams::Body::CustomFieldsValue

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/amocrm/models/contact_create_params.rb,
sig/amocrm/models/contact_create_params.rbs

Defined Under Namespace

Classes: 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 ⇒ Object



185
# File 'sig/amocrm/models/contact_create_params.rbs', line 185

def initialize: (

Instance Attribute Details

#field_code ⇒ String?

Field code (e.g. PHONE/EMAIL)

Parameters:

  • (String)

Returns:

  • (String, nil)


158
# File 'lib/amocrm/models/contact_create_params.rb', line 158

optional :field_code, String

#field_id ⇒ Integer?

Use either field_id or field_code (e.g. PHONE/EMAIL)

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


164
# File 'lib/amocrm/models/contact_create_params.rb', line 164

optional :field_id, Integer

#values ⇒ Array<Amocrm::Models::ContactCreateParams::Body::CustomFieldsValue::Value>

Values for the field (multiple values allowed)

Parameters:

  • value (::Array[Amocrm::ContactCreateParams::Body::CustomFieldsValue::Value])

Returns:



151
152
# File 'lib/amocrm/models/contact_create_params.rb', line 151

required :values,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::ContactCreateParams::Body::CustomFieldsValue::Value] }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


191
# File 'sig/amocrm/models/contact_create_params.rbs', line 191

def to_hash: -> {