Class: Amocrm::Models::CatalogElementUpdateParams::Body

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

Defined Under Namespace

Classes: CustomFieldsValue

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(catalog_id:, body:, request_options: {}) ⇒ Object

Parameters:



25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/amocrm/models/catalog_element_update_params.rb', line 25

class Body < Amocrm::Internal::Type::BaseModel
  # @!attribute id
  #
  #   @return [Integer]
  required :id, Integer

  # @!attribute custom_fields_values
  #
  #   @return [Array<Amocrm::Models::CatalogElementUpdateParams::Body::CustomFieldsValue>, nil]
  optional :custom_fields_values,
           -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementUpdateParams::Body::CustomFieldsValue] }

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

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

  # @!method initialize(id:, custom_fields_values: nil, name: nil, request_id: nil)
  #   @param id [Integer]
  #   @param custom_fields_values [Array<Amocrm::Models::CatalogElementUpdateParams::Body::CustomFieldsValue>]
  #   @param name [String]
  #   @param request_id [String]

  class CustomFieldsValue < Amocrm::Internal::Type::BaseModel
    # @!attribute values
    #
    #   @return [Array<Amocrm::Models::CatalogElementUpdateParams::Body::CustomFieldsValue::Value>]
    required :values,
             -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementUpdateParams::Body::CustomFieldsValue::Value] }

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

    # @!attribute field_id
    #
    #   @return [Integer, nil]
    optional :field_id, Integer

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

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

    # @!method initialize(values:, field_code: nil, field_id: nil, field_name: nil, field_type: nil)
    #   @param values [Array<Amocrm::Models::CatalogElementUpdateParams::Body::CustomFieldsValue::Value>]
    #   @param field_code [String]
    #   @param field_id [Integer]
    #   @param field_name [String]
    #   @param field_type [String]

    class Value < Amocrm::Internal::Type::BaseModel
      # @!attribute value
      #
      #   @return [Object]
      required :value, Amocrm::Internal::Type::Unknown

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

      # @!attribute enum_id
      #
      #   @return [Integer, nil]
      optional :enum_id, Integer

      # @!method initialize(value:, enum_code: nil, enum_id: nil)
      #   @param value [Object]
      #   @param enum_code [String]
      #   @param enum_id [Integer]
    end
  end
end

Instance Attribute Details

#custom_fields_valuesArray<Amocrm::Models::CatalogElementUpdateParams::Body::CustomFieldsValue>?



34
35
# File 'lib/amocrm/models/catalog_element_update_params.rb', line 34

optional :custom_fields_values,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CatalogElementUpdateParams::Body::CustomFieldsValue] }

#idInteger

Returns:

  • (Integer)


29
# File 'lib/amocrm/models/catalog_element_update_params.rb', line 29

required :id, Integer

#nameString?

Returns:

  • (String, nil)


40
# File 'lib/amocrm/models/catalog_element_update_params.rb', line 40

optional :name, String

#request_idString?

Returns:

  • (String, nil)


45
# File 'lib/amocrm/models/catalog_element_update_params.rb', line 45

optional :request_id, String