Class: Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element

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

Defined Under Namespace

Classes: CustomFieldsValue, Embedded

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(message: nil) ⇒ Object

Parameters:

  • message (String, nil) (defaults to: nil)


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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 46

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

  # @!attribute _embedded
  #
  #   @return [Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded, nil]
  optional :_embedded,
           -> { Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded }

  # @!attribute _links
  #
  #   @return [Object, nil]
  optional :_links, Amocrm::Internal::Type::Unknown

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

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

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

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

  # @!attribute custom_fields_values
  #
  #   @return [Array<Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue>, nil]
  optional :custom_fields_values,
           -> do
             Amocrm::Internal::Type::ArrayOf[
               Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue
             ]
           end,
           nil?: true

  # @!attribute invoice_link
  #
  #   @return [String, nil]
  optional :invoice_link, String, nil?: true

  # @!attribute is_deleted
  #
  #   @return [Boolean, nil]
  optional :is_deleted, Amocrm::Internal::Type::Boolean

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

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

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

  # @!method initialize(id: nil, _embedded: nil, _links: nil, account_id: nil, catalog_id: nil, created_at: nil, created_by: nil, custom_fields_values: nil, invoice_link: nil, is_deleted: nil, name: nil, updated_at: nil, updated_by: nil)
  #   @param id [Integer]
  #   @param _embedded [Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded]
  #   @param _links [Object]
  #   @param account_id [Integer]
  #   @param catalog_id [Integer]
  #   @param created_at [Integer]
  #   @param created_by [Integer]
  #   @param custom_fields_values [Array<Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue>, nil]
  #   @param invoice_link [String, nil]
  #   @param is_deleted [Boolean]
  #   @param name [String]
  #   @param updated_at [Integer]
  #   @param updated_by [Integer]

  # @see Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element#_embedded
  class Embedded < Amocrm::Internal::Type::BaseModel
    # @!attribute warning
    #
    #   @return [Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded::Warning, nil]
    optional :warning,
             -> { Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded::Warning },
             nil?: true

    # @!method initialize(warning: nil)
    #   @param warning [Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded::Warning, nil]

    # @see Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::Embedded#warning
    class Warning < Amocrm::Internal::Type::BaseModel
      # @!attribute message
      #
      #   @return [String, nil]
      optional :message, String, nil?: true

      # @!method initialize(message: nil)
      #   @param message [String, nil]
    end
  end

  class CustomFieldsValue < Amocrm::Internal::Type::BaseModel
    # @!attribute values
    #
    #   @return [Array<Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue::Value>]
    required :values,
             -> do
               Amocrm::Internal::Type::ArrayOf[
                 Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue::Value
               ]
             end

    # @!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::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::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

Returns:

  • (Object, nil)


61
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 61

optional :_links, Amocrm::Internal::Type::Unknown

#account_idInteger?

Returns:

  • (Integer, nil)


66
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 66

optional :account_id, Integer

#catalog_idInteger?

Returns:

  • (Integer, nil)


71
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 71

optional :catalog_id, Integer

#created_atInteger?

Returns:

  • (Integer, nil)


76
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 76

optional :created_at, Integer

#created_byInteger?

Returns:

  • (Integer, nil)


81
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 81

optional :created_by, Integer

#custom_fields_valuesArray<Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue>?



86
87
88
89
90
91
92
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 86

optional :custom_fields_values,
-> do
  Amocrm::Internal::Type::ArrayOf[
    Amocrm::Models::CatalogElementListResponse::CatalogElementListResponse::Embedded::Element::CustomFieldsValue
  ]
end,
nil?: true

#idInteger?

Returns:

  • (Integer, nil)


50
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 50

optional :id, Integer

Returns:

  • (String, nil)


97
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 97

optional :invoice_link, String, nil?: true

#is_deletedBoolean?

Returns:

  • (Boolean, nil)


102
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 102

optional :is_deleted, Amocrm::Internal::Type::Boolean

#nameString?

Returns:

  • (String, nil)


107
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 107

optional :name, String

#updated_atInteger?

Returns:

  • (Integer, nil)


112
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 112

optional :updated_at, Integer

#updated_byInteger?

Returns:

  • (Integer, nil)


117
# File 'lib/amocrm/models/catalog_element_list_response.rb', line 117

optional :updated_by, Integer