Class: Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog

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

Defined Under Namespace

Modules: SDKWidgetCode, Type

Instance Attribute Summary collapse

Class Method 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(id: nil, _links: nil, account_id: nil, can_add_elements: nil, can_be_deleted: nil, can_link_multiple: nil, can_show_in_cards: nil, created_at: nil, created_by: nil, name: nil, request_id: nil, sdk_widget_code: nil, sort: nil, type: nil, updated_at: nil, updated_by: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • _links (Object) (defaults to: nil)
  • account_id (Integer) (defaults to: nil)
  • can_add_elements (Boolean) (defaults to: nil)
  • can_be_deleted (Boolean) (defaults to: nil)
  • can_link_multiple (Boolean) (defaults to: nil)
  • can_show_in_cards (Boolean) (defaults to: nil)
  • created_at (Integer) (defaults to: nil)
  • created_by (Integer) (defaults to: nil)
  • name (String) (defaults to: nil)
  • request_id (String) (defaults to: nil)
  • sdk_widget_code (String, Integer, nil) (defaults to: nil)
  • sort (Integer) (defaults to: nil)
  • type (Symbol, String, Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type) (defaults to: nil)
  • updated_at (Integer) (defaults to: nil)
  • updated_by (Integer) (defaults to: nil)


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
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
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 39

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

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

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

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

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

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

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

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

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

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

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

  # @!attribute sdk_widget_code
  #
  #   @return [String, Integer, nil]
  optional :sdk_widget_code,
           union: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::SDKWidgetCode },
           nil?: true

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

  # @!attribute type
  #
  #   @return [Symbol, String, Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type, nil]
  optional :type,
           union: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type }

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

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

  # @!method initialize(id: nil, _links: nil, account_id: nil, can_add_elements: nil, can_be_deleted: nil, can_link_multiple: nil, can_show_in_cards: nil, created_at: nil, created_by: nil, name: nil, request_id: nil, sdk_widget_code: nil, sort: nil, type: nil, updated_at: nil, updated_by: nil)
  #   @param id [Integer]
  #   @param _links [Object]
  #   @param account_id [Integer]
  #   @param can_add_elements [Boolean]
  #   @param can_be_deleted [Boolean]
  #   @param can_link_multiple [Boolean]
  #   @param can_show_in_cards [Boolean]
  #   @param created_at [Integer]
  #   @param created_by [Integer]
  #   @param name [String]
  #   @param request_id [String]
  #   @param sdk_widget_code [String, Integer, nil]
  #   @param sort [Integer]
  #   @param type [Symbol, String, Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type]
  #   @param updated_at [Integer]
  #   @param updated_by [Integer]

  # @see Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog#sdk_widget_code
  module SDKWidgetCode
    extend Amocrm::Internal::Type::Union

    variant String

    variant Integer

    # @!method self.variants
    #   @return [Array(String, Integer)]
  end

  # @see Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog#type
  module Type
    extend Amocrm::Internal::Type::Union

    variant const: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type::REGULAR }

    variant const: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type::INVOICES }

    variant const: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type::PRODUCTS }

    variant String

    # @!method self.variants
    #   @return [Array(Symbol, String)]

    define_sorbet_constant!(:Variants) do
      T.type_alias do
        T.any(
          Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type::TaggedSymbol,
          String
        )
      end
    end

    # @!group

    REGULAR = :regular
    INVOICES = :invoices
    PRODUCTS = :products

    # @!endgroup
  end
end

Instance Attribute Details

Returns:

  • (Object, nil)


48
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 48

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

#account_idInteger?

Returns:

  • (Integer, nil)


53
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 53

optional :account_id, Integer

#can_add_elementsBoolean?

Returns:

  • (Boolean, nil)


58
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 58

optional :can_add_elements, Amocrm::Internal::Type::Boolean

#can_be_deletedBoolean?

Returns:

  • (Boolean, nil)


63
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 63

optional :can_be_deleted, Amocrm::Internal::Type::Boolean

Returns:

  • (Boolean, nil)


68
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 68

optional :can_link_multiple, Amocrm::Internal::Type::Boolean

#can_show_in_cardsBoolean?

Returns:

  • (Boolean, nil)


73
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 73

optional :can_show_in_cards, Amocrm::Internal::Type::Boolean

#created_atInteger?

Returns:

  • (Integer, nil)


78
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 78

optional :created_at, Integer

#created_byInteger?

Returns:

  • (Integer, nil)


83
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 83

optional :created_by, Integer

#idInteger?

Returns:

  • (Integer, nil)


43
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 43

optional :id, Integer

#nameString?

Returns:

  • (String, nil)


88
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 88

optional :name, String

#request_idString?

Returns:

  • (String, nil)


93
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 93

optional :request_id, String

#sdk_widget_codeString, ...

Returns:

  • (String, Integer, nil)


98
99
100
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 98

optional :sdk_widget_code,
union: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::SDKWidgetCode },
nil?: true

#sortInteger?

Returns:

  • (Integer, nil)


105
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 105

optional :sort, Integer

#typeSymbol, ...



110
111
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 110

optional :type,
union: -> { Amocrm::Models::CatalogUpdateByIDResponse::CatalogUpdateResponse::Embedded::Catalog::Type }

#updated_atInteger?

Returns:

  • (Integer, nil)


116
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 116

optional :updated_at, Integer

#updated_byInteger?

Returns:

  • (Integer, nil)


121
# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 121

optional :updated_by, Integer

Class Method Details

.variantsArray(String, Integer)

Returns:

  • (Array(String, Integer))


# File 'lib/amocrm/models/catalog_update_by_id_response.rb', line 149