Class: Amocrm::Models::UnsortedLeadCreateFormsParams::Body::Embedded::Company

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

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(companies: nil, contacts: nil, leads: nil) ⇒ Object

Embedded entities (lead/contact/company)

Parameters:



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 194

class Company < Amocrm::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer, nil]
  optional :id, Integer

  # @!attribute name
  #
  #   @return [String, nil]
  optional :name, String

  # @!method initialize(id: nil, name: nil)
  #   @param id [Integer]
  #   @param name [String]
end

Instance Attribute Details

#idInteger?

Returns:

  • (Integer, nil)


198
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 198

optional :id, Integer

#nameString?

Returns:

  • (String, nil)


203
# File 'lib/amocrm/models/unsorted_lead_create_forms_params.rb', line 203

optional :name, String