Class: Amocrm::Models::CustomerUpdateByIDParams::Embedded

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

Defined Under Namespace

Classes: Segment, Tag

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(id: nil, _links: nil) ⇒ Object

Parameters:

  • id (Integer) (defaults to: nil)
  • _links (Object) (defaults to: nil)


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

class Embedded < Amocrm::Internal::Type::BaseModel
  # @!attribute segments
  #
  #   @return [Array<Amocrm::Models::CustomerUpdateByIDParams::Embedded::Segment>, nil]
  optional :segments,
           -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Segment] },
           nil?: true

  # @!attribute tags
  #
  #   @return [Array<Amocrm::Models::CustomerUpdateByIDParams::Embedded::Tag>, nil]
  optional :tags,
           -> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Tag] },
           nil?: true

  # @!method initialize(segments: nil, tags: nil)
  #   @param segments [Array<Amocrm::Models::CustomerUpdateByIDParams::Embedded::Segment>, nil]
  #   @param tags [Array<Amocrm::Models::CustomerUpdateByIDParams::Embedded::Tag>, nil]

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

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

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

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

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

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

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

Instance Attribute Details

#segmentsArray<Amocrm::Models::CustomerUpdateByIDParams::Embedded::Segment>?



103
104
105
# File 'lib/amocrm/models/customer_update_by_id_params.rb', line 103

optional :segments,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Segment] },
nil?: true

#tagsArray<Amocrm::Models::CustomerUpdateByIDParams::Embedded::Tag>?



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

optional :tags,
-> { Amocrm::Internal::Type::ArrayOf[Amocrm::CustomerUpdateByIDParams::Embedded::Tag] },
nil?: true