Class: Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/amocrm/models/unsorted_lead_create_forms_response.rb,
sig/amocrm/models/unsorted_lead_create_forms_response.rbs

Defined Under Namespace

Classes: 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(_embedded: nil, _links: nil, account_id: nil, request_id: nil, uid: nil) ⇒ Object

Parameters:



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

class Unsorted < Amocrm::Internal::Type::BaseModel
  # @!attribute _embedded
  #
  #   @return [Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded, nil]
  optional :_embedded,
           -> { Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded }

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

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

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

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

  # @!method initialize(_embedded: nil, _links: nil, account_id: nil, request_id: nil, uid: nil)
  #   @param _embedded [Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded]
  #
  #   @param _links [Object]
  #
  #   @param account_id [Integer]
  #
  #   @param request_id [String] Echoed request id
  #
  #   @param uid [String]

  # @see Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted#_embedded
  class Embedded < Amocrm::Internal::Type::BaseModel
    # @!attribute companies
    #
    #   @return [Array<Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Company>, nil]
    optional :companies,
             -> do
               Amocrm::Internal::Type::ArrayOf[
                 Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Company
               ]
             end

    # @!attribute contacts
    #
    #   @return [Array<Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Contact>, nil]
    optional :contacts,
             -> do
               Amocrm::Internal::Type::ArrayOf[
                 Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Contact
               ]
             end

    # @!attribute leads
    #
    #   @return [Array<Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Lead>, nil]
    optional :leads,
             -> do
               Amocrm::Internal::Type::ArrayOf[
                 Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Lead
               ]
             end

    # @!method initialize(companies: nil, contacts: nil, leads: nil)
    #   @param companies [Array<Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Company>]
    #   @param contacts [Array<Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Contact>]
    #   @param leads [Array<Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded::Lead>]

    class Company < 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 Contact < 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 Lead < 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
  end
end

Instance Attribute Details

#_embedded ⇒ Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded?



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

optional :_embedded,
-> { Amocrm::Models::UnsortedLeadCreateFormsResponse::UnsortedCreateResponse::Embedded::Unsorted::Embedded }

Parameters:

  • (top)

Returns:

  • (Object, nil)


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

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

#account_id ⇒ Integer?

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


55
# File 'lib/amocrm/models/unsorted_lead_create_forms_response.rb', line 55

optional :account_id, Integer

#request_id ⇒ String?

Echoed request id

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :request_id, String

#uid ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :uid, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


97
# File 'sig/amocrm/models/unsorted_lead_create_forms_response.rbs', line 97

def to_hash: -> {