amocrm 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +19 -0
- data/README.md +233 -0
- data/SECURITY.md +23 -0
- data/lib/amocrm/client.rb +65 -0
- data/lib/amocrm/errors.rb +228 -0
- data/lib/amocrm/file_part.rb +58 -0
- data/lib/amocrm/internal/transport/base_client.rb +567 -0
- data/lib/amocrm/internal/transport/pooled_net_requester.rb +210 -0
- data/lib/amocrm/internal/type/array_of.rb +168 -0
- data/lib/amocrm/internal/type/base_model.rb +523 -0
- data/lib/amocrm/internal/type/base_page.rb +55 -0
- data/lib/amocrm/internal/type/boolean.rb +77 -0
- data/lib/amocrm/internal/type/converter.rb +327 -0
- data/lib/amocrm/internal/type/enum.rb +131 -0
- data/lib/amocrm/internal/type/file_input.rb +111 -0
- data/lib/amocrm/internal/type/hash_of.rb +188 -0
- data/lib/amocrm/internal/type/request_parameters.rb +42 -0
- data/lib/amocrm/internal/type/union.rb +248 -0
- data/lib/amocrm/internal/type/unknown.rb +81 -0
- data/lib/amocrm/internal/util.rb +920 -0
- data/lib/amocrm/internal.rb +20 -0
- data/lib/amocrm/models/v4/leads/unsorted_accept_params.rb +34 -0
- data/lib/amocrm/models/v4/leads/unsorted_accept_response.rb +172 -0
- data/lib/amocrm/models/v4/leads/unsorted_create_forms_params.rb +883 -0
- data/lib/amocrm/models/v4/leads/unsorted_create_forms_response.rb +204 -0
- data/lib/amocrm/models/v4/leads/unsorted_decline_params.rb +26 -0
- data/lib/amocrm/models/v4/leads/unsorted_decline_response.rb +172 -0
- data/lib/amocrm/models.rb +43 -0
- data/lib/amocrm/request_options.rb +77 -0
- data/lib/amocrm/resources/v4/leads/unsorted.rb +83 -0
- data/lib/amocrm/resources/v4/leads.rb +20 -0
- data/lib/amocrm/resources/v4.rb +18 -0
- data/lib/amocrm/version.rb +5 -0
- data/lib/amocrm.rb +64 -0
- data/manifest.yaml +17 -0
- data/rbi/amocrm/client.rbi +44 -0
- data/rbi/amocrm/errors.rbi +205 -0
- data/rbi/amocrm/file_part.rbi +37 -0
- data/rbi/amocrm/internal/transport/base_client.rbi +292 -0
- data/rbi/amocrm/internal/transport/pooled_net_requester.rbi +82 -0
- data/rbi/amocrm/internal/type/array_of.rbi +104 -0
- data/rbi/amocrm/internal/type/base_model.rbi +299 -0
- data/rbi/amocrm/internal/type/base_page.rbi +42 -0
- data/rbi/amocrm/internal/type/boolean.rbi +58 -0
- data/rbi/amocrm/internal/type/converter.rbi +204 -0
- data/rbi/amocrm/internal/type/enum.rbi +82 -0
- data/rbi/amocrm/internal/type/file_input.rbi +59 -0
- data/rbi/amocrm/internal/type/hash_of.rbi +104 -0
- data/rbi/amocrm/internal/type/request_parameters.rbi +29 -0
- data/rbi/amocrm/internal/type/union.rbi +126 -0
- data/rbi/amocrm/internal/type/unknown.rbi +58 -0
- data/rbi/amocrm/internal/util.rbi +484 -0
- data/rbi/amocrm/internal.rbi +16 -0
- data/rbi/amocrm/models/v4/leads/unsorted_accept_params.rbi +64 -0
- data/rbi/amocrm/models/v4/leads/unsorted_accept_response.rbi +441 -0
- data/rbi/amocrm/models/v4/leads/unsorted_create_forms_params.rbi +1927 -0
- data/rbi/amocrm/models/v4/leads/unsorted_create_forms_response.rbi +502 -0
- data/rbi/amocrm/models/v4/leads/unsorted_decline_params.rbi +50 -0
- data/rbi/amocrm/models/v4/leads/unsorted_decline_response.rbi +441 -0
- data/rbi/amocrm/models.rbi +5 -0
- data/rbi/amocrm/request_options.rbi +55 -0
- data/rbi/amocrm/resources/v4/leads/unsorted.rbi +67 -0
- data/rbi/amocrm/resources/v4/leads.rbi +17 -0
- data/rbi/amocrm/resources/v4.rbi +15 -0
- data/rbi/amocrm/version.rbi +5 -0
- data/sig/amocrm/client.rbs +24 -0
- data/sig/amocrm/errors.rbs +117 -0
- data/sig/amocrm/file_part.rbs +21 -0
- data/sig/amocrm/internal/transport/base_client.rbs +131 -0
- data/sig/amocrm/internal/transport/pooled_net_requester.rbs +48 -0
- data/sig/amocrm/internal/type/array_of.rbs +48 -0
- data/sig/amocrm/internal/type/base_model.rbs +102 -0
- data/sig/amocrm/internal/type/base_page.rbs +24 -0
- data/sig/amocrm/internal/type/boolean.rbs +26 -0
- data/sig/amocrm/internal/type/converter.rbs +79 -0
- data/sig/amocrm/internal/type/enum.rbs +32 -0
- data/sig/amocrm/internal/type/file_input.rbs +25 -0
- data/sig/amocrm/internal/type/hash_of.rbs +48 -0
- data/sig/amocrm/internal/type/request_parameters.rbs +17 -0
- data/sig/amocrm/internal/type/union.rbs +52 -0
- data/sig/amocrm/internal/type/unknown.rbs +26 -0
- data/sig/amocrm/internal/util.rbs +185 -0
- data/sig/amocrm/internal.rbs +9 -0
- data/sig/amocrm/models/v4/leads/unsorted_accept_params.rbs +36 -0
- data/sig/amocrm/models/v4/leads/unsorted_accept_response.rbs +203 -0
- data/sig/amocrm/models/v4/leads/unsorted_create_forms_params.rbs +920 -0
- data/sig/amocrm/models/v4/leads/unsorted_create_forms_response.rbs +237 -0
- data/sig/amocrm/models/v4/leads/unsorted_decline_params.rbs +29 -0
- data/sig/amocrm/models/v4/leads/unsorted_decline_response.rbs +203 -0
- data/sig/amocrm/models.rbs +3 -0
- data/sig/amocrm/request_options.rbs +34 -0
- data/sig/amocrm/resources/v4/leads/unsorted.rbs +29 -0
- data/sig/amocrm/resources/v4/leads.rbs +11 -0
- data/sig/amocrm/resources/v4.rbs +9 -0
- data/sig/amocrm/version.rbs +3 -0
- metadata +169 -0
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
module Amocrm
|
|
2
|
+
module Models
|
|
3
|
+
module V4
|
|
4
|
+
module Leads
|
|
5
|
+
type unsorted_create_forms_params =
|
|
6
|
+
{ body: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body] }
|
|
7
|
+
& Amocrm::Internal::Type::request_parameters
|
|
8
|
+
|
|
9
|
+
class UnsortedCreateFormsParams < Amocrm::Internal::Type::BaseModel
|
|
10
|
+
extend Amocrm::Internal::Type::RequestParameters::Converter
|
|
11
|
+
include Amocrm::Internal::Type::RequestParameters
|
|
12
|
+
|
|
13
|
+
attr_accessor body: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
body: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body],
|
|
17
|
+
?request_options: Amocrm::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
body: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body],
|
|
22
|
+
request_options: Amocrm::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type body =
|
|
26
|
+
{
|
|
27
|
+
metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Metadata,
|
|
28
|
+
source_name: String,
|
|
29
|
+
source_uid: String,
|
|
30
|
+
_embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded,
|
|
31
|
+
created_at: Integer,
|
|
32
|
+
pipeline_id: Integer,
|
|
33
|
+
request_id: String
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class Body < Amocrm::Internal::Type::BaseModel
|
|
37
|
+
attr_accessor metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Metadata
|
|
38
|
+
|
|
39
|
+
attr_accessor source_name: String
|
|
40
|
+
|
|
41
|
+
attr_accessor source_uid: String
|
|
42
|
+
|
|
43
|
+
attr_reader _embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded?
|
|
44
|
+
|
|
45
|
+
def _embedded=: (
|
|
46
|
+
Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded
|
|
47
|
+
) -> Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded
|
|
48
|
+
|
|
49
|
+
attr_reader created_at: Integer?
|
|
50
|
+
|
|
51
|
+
def created_at=: (Integer) -> Integer
|
|
52
|
+
|
|
53
|
+
attr_reader pipeline_id: Integer?
|
|
54
|
+
|
|
55
|
+
def pipeline_id=: (Integer) -> Integer
|
|
56
|
+
|
|
57
|
+
attr_reader request_id: String?
|
|
58
|
+
|
|
59
|
+
def request_id=: (String) -> String
|
|
60
|
+
|
|
61
|
+
def initialize: (
|
|
62
|
+
metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Metadata,
|
|
63
|
+
source_name: String,
|
|
64
|
+
source_uid: String,
|
|
65
|
+
?_embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded,
|
|
66
|
+
?created_at: Integer,
|
|
67
|
+
?pipeline_id: Integer,
|
|
68
|
+
?request_id: String
|
|
69
|
+
) -> void
|
|
70
|
+
|
|
71
|
+
def to_hash: -> {
|
|
72
|
+
metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Metadata,
|
|
73
|
+
source_name: String,
|
|
74
|
+
source_uid: String,
|
|
75
|
+
_embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded,
|
|
76
|
+
created_at: Integer,
|
|
77
|
+
pipeline_id: Integer,
|
|
78
|
+
request_id: String
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
type metadata =
|
|
82
|
+
{
|
|
83
|
+
form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id,
|
|
84
|
+
form_name: String,
|
|
85
|
+
form_page: String,
|
|
86
|
+
form_sent_at: Integer,
|
|
87
|
+
form_type: Integer,
|
|
88
|
+
ip: String,
|
|
89
|
+
referer: String,
|
|
90
|
+
visitor_uid: String
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
class Metadata < Amocrm::Internal::Type::BaseModel
|
|
94
|
+
attr_reader form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id?
|
|
95
|
+
|
|
96
|
+
def form_id=: (
|
|
97
|
+
Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id
|
|
98
|
+
) -> Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id
|
|
99
|
+
|
|
100
|
+
attr_reader form_name: String?
|
|
101
|
+
|
|
102
|
+
def form_name=: (String) -> String
|
|
103
|
+
|
|
104
|
+
attr_reader form_page: String?
|
|
105
|
+
|
|
106
|
+
def form_page=: (String) -> String
|
|
107
|
+
|
|
108
|
+
attr_reader form_sent_at: Integer?
|
|
109
|
+
|
|
110
|
+
def form_sent_at=: (Integer) -> Integer
|
|
111
|
+
|
|
112
|
+
attr_reader form_type: Integer?
|
|
113
|
+
|
|
114
|
+
def form_type=: (Integer) -> Integer
|
|
115
|
+
|
|
116
|
+
attr_reader ip: String?
|
|
117
|
+
|
|
118
|
+
def ip=: (String) -> String
|
|
119
|
+
|
|
120
|
+
attr_reader referer: String?
|
|
121
|
+
|
|
122
|
+
def referer=: (String) -> String
|
|
123
|
+
|
|
124
|
+
attr_reader visitor_uid: String?
|
|
125
|
+
|
|
126
|
+
def visitor_uid=: (String) -> String
|
|
127
|
+
|
|
128
|
+
def initialize: (
|
|
129
|
+
?form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id,
|
|
130
|
+
?form_name: String,
|
|
131
|
+
?form_page: String,
|
|
132
|
+
?form_sent_at: Integer,
|
|
133
|
+
?form_type: Integer,
|
|
134
|
+
?ip: String,
|
|
135
|
+
?referer: String,
|
|
136
|
+
?visitor_uid: String
|
|
137
|
+
) -> void
|
|
138
|
+
|
|
139
|
+
def to_hash: -> {
|
|
140
|
+
form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id,
|
|
141
|
+
form_name: String,
|
|
142
|
+
form_page: String,
|
|
143
|
+
form_sent_at: Integer,
|
|
144
|
+
form_type: Integer,
|
|
145
|
+
ip: String,
|
|
146
|
+
referer: String,
|
|
147
|
+
visitor_uid: String
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
type form_id = String | Integer
|
|
151
|
+
|
|
152
|
+
module FormID
|
|
153
|
+
extend Amocrm::Internal::Type::Union
|
|
154
|
+
|
|
155
|
+
def self?.variants: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Metadata::form_id]
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
type embedded =
|
|
160
|
+
{
|
|
161
|
+
companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Company],
|
|
162
|
+
contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact],
|
|
163
|
+
leads: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead]
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
class Embedded < Amocrm::Internal::Type::BaseModel
|
|
167
|
+
attr_reader companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Company]?
|
|
168
|
+
|
|
169
|
+
def companies=: (
|
|
170
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Company]
|
|
171
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Company]
|
|
172
|
+
|
|
173
|
+
attr_reader contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact]?
|
|
174
|
+
|
|
175
|
+
def contacts=: (
|
|
176
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact]
|
|
177
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact]
|
|
178
|
+
|
|
179
|
+
attr_reader leads: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead]?
|
|
180
|
+
|
|
181
|
+
def leads=: (
|
|
182
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead]
|
|
183
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead]
|
|
184
|
+
|
|
185
|
+
def initialize: (
|
|
186
|
+
?companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Company],
|
|
187
|
+
?contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact],
|
|
188
|
+
?leads: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead]
|
|
189
|
+
) -> void
|
|
190
|
+
|
|
191
|
+
def to_hash: -> {
|
|
192
|
+
companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Company],
|
|
193
|
+
contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact],
|
|
194
|
+
leads: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead]
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
type company = { id: Integer, name: String }
|
|
198
|
+
|
|
199
|
+
class Company < Amocrm::Internal::Type::BaseModel
|
|
200
|
+
attr_reader id: Integer?
|
|
201
|
+
|
|
202
|
+
def id=: (Integer) -> Integer
|
|
203
|
+
|
|
204
|
+
attr_reader name: String?
|
|
205
|
+
|
|
206
|
+
def name=: (String) -> String
|
|
207
|
+
|
|
208
|
+
def initialize: (?id: Integer, ?name: String) -> void
|
|
209
|
+
|
|
210
|
+
def to_hash: -> { id: Integer, name: String }
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
type contact =
|
|
214
|
+
{
|
|
215
|
+
id: Integer,
|
|
216
|
+
custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue],
|
|
217
|
+
first_name: String,
|
|
218
|
+
last_name: String,
|
|
219
|
+
name: String
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
class Contact < Amocrm::Internal::Type::BaseModel
|
|
223
|
+
attr_reader id: Integer?
|
|
224
|
+
|
|
225
|
+
def id=: (Integer) -> Integer
|
|
226
|
+
|
|
227
|
+
attr_reader custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue]?
|
|
228
|
+
|
|
229
|
+
def custom_fields_values=: (
|
|
230
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue]
|
|
231
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue]
|
|
232
|
+
|
|
233
|
+
attr_reader first_name: String?
|
|
234
|
+
|
|
235
|
+
def first_name=: (String) -> String
|
|
236
|
+
|
|
237
|
+
attr_reader last_name: String?
|
|
238
|
+
|
|
239
|
+
def last_name=: (String) -> String
|
|
240
|
+
|
|
241
|
+
attr_reader name: String?
|
|
242
|
+
|
|
243
|
+
def name=: (String) -> String
|
|
244
|
+
|
|
245
|
+
def initialize: (
|
|
246
|
+
?id: Integer,
|
|
247
|
+
?custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue],
|
|
248
|
+
?first_name: String,
|
|
249
|
+
?last_name: String,
|
|
250
|
+
?name: String
|
|
251
|
+
) -> void
|
|
252
|
+
|
|
253
|
+
def to_hash: -> {
|
|
254
|
+
id: Integer,
|
|
255
|
+
custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue],
|
|
256
|
+
first_name: String,
|
|
257
|
+
last_name: String,
|
|
258
|
+
name: String
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
type custom_fields_value =
|
|
262
|
+
{
|
|
263
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value],
|
|
264
|
+
field_code: String,
|
|
265
|
+
field_id: Integer
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
class CustomFieldsValue < Amocrm::Internal::Type::BaseModel
|
|
269
|
+
attr_accessor values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value]
|
|
270
|
+
|
|
271
|
+
attr_reader field_code: String?
|
|
272
|
+
|
|
273
|
+
def field_code=: (String) -> String
|
|
274
|
+
|
|
275
|
+
attr_reader field_id: Integer?
|
|
276
|
+
|
|
277
|
+
def field_id=: (Integer) -> Integer
|
|
278
|
+
|
|
279
|
+
def initialize: (
|
|
280
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value],
|
|
281
|
+
?field_code: String,
|
|
282
|
+
?field_id: Integer
|
|
283
|
+
) -> void
|
|
284
|
+
|
|
285
|
+
def to_hash: -> {
|
|
286
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value],
|
|
287
|
+
field_code: String,
|
|
288
|
+
field_id: Integer
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
type value =
|
|
292
|
+
{
|
|
293
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value::value,
|
|
294
|
+
enum_code: String,
|
|
295
|
+
enum_id: Integer
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
class Value < Amocrm::Internal::Type::BaseModel
|
|
299
|
+
attr_accessor value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value::value
|
|
300
|
+
|
|
301
|
+
attr_reader enum_code: String?
|
|
302
|
+
|
|
303
|
+
def enum_code=: (String) -> String
|
|
304
|
+
|
|
305
|
+
attr_reader enum_id: Integer?
|
|
306
|
+
|
|
307
|
+
def enum_id=: (Integer) -> Integer
|
|
308
|
+
|
|
309
|
+
def initialize: (
|
|
310
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value::value,
|
|
311
|
+
?enum_code: String,
|
|
312
|
+
?enum_id: Integer
|
|
313
|
+
) -> void
|
|
314
|
+
|
|
315
|
+
def to_hash: -> {
|
|
316
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value::value,
|
|
317
|
+
enum_code: String,
|
|
318
|
+
enum_id: Integer
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type value = String | Integer | bool
|
|
322
|
+
|
|
323
|
+
module Value
|
|
324
|
+
extend Amocrm::Internal::Type::Union
|
|
325
|
+
|
|
326
|
+
def self?.variants: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Contact::CustomFieldsValue::Value::value]
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
type lead =
|
|
333
|
+
{
|
|
334
|
+
_embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded,
|
|
335
|
+
closed_at: Integer,
|
|
336
|
+
created_at: Integer,
|
|
337
|
+
created_by: Integer,
|
|
338
|
+
custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue],
|
|
339
|
+
group_id: Integer,
|
|
340
|
+
loss_reason_id: Integer,
|
|
341
|
+
name: String,
|
|
342
|
+
pipeline_id: Integer,
|
|
343
|
+
price: Integer,
|
|
344
|
+
request_id: String,
|
|
345
|
+
responsible_user_id: Integer,
|
|
346
|
+
status_id: Integer,
|
|
347
|
+
tags_to_add: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::TagsToAdd],
|
|
348
|
+
updated_at: Integer,
|
|
349
|
+
updated_by: Integer,
|
|
350
|
+
visitor_uid: String
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
class Lead < Amocrm::Internal::Type::BaseModel
|
|
354
|
+
attr_reader _embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded?
|
|
355
|
+
|
|
356
|
+
def _embedded=: (
|
|
357
|
+
Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded
|
|
358
|
+
) -> Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded
|
|
359
|
+
|
|
360
|
+
attr_reader closed_at: Integer?
|
|
361
|
+
|
|
362
|
+
def closed_at=: (Integer) -> Integer
|
|
363
|
+
|
|
364
|
+
attr_reader created_at: Integer?
|
|
365
|
+
|
|
366
|
+
def created_at=: (Integer) -> Integer
|
|
367
|
+
|
|
368
|
+
attr_reader created_by: Integer?
|
|
369
|
+
|
|
370
|
+
def created_by=: (Integer) -> Integer
|
|
371
|
+
|
|
372
|
+
attr_reader custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue]?
|
|
373
|
+
|
|
374
|
+
def custom_fields_values=: (
|
|
375
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue]
|
|
376
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue]
|
|
377
|
+
|
|
378
|
+
attr_reader group_id: Integer?
|
|
379
|
+
|
|
380
|
+
def group_id=: (Integer) -> Integer
|
|
381
|
+
|
|
382
|
+
attr_reader loss_reason_id: Integer?
|
|
383
|
+
|
|
384
|
+
def loss_reason_id=: (Integer) -> Integer
|
|
385
|
+
|
|
386
|
+
attr_reader name: String?
|
|
387
|
+
|
|
388
|
+
def name=: (String) -> String
|
|
389
|
+
|
|
390
|
+
attr_reader pipeline_id: Integer?
|
|
391
|
+
|
|
392
|
+
def pipeline_id=: (Integer) -> Integer
|
|
393
|
+
|
|
394
|
+
attr_reader price: Integer?
|
|
395
|
+
|
|
396
|
+
def price=: (Integer) -> Integer
|
|
397
|
+
|
|
398
|
+
attr_reader request_id: String?
|
|
399
|
+
|
|
400
|
+
def request_id=: (String) -> String
|
|
401
|
+
|
|
402
|
+
attr_reader responsible_user_id: Integer?
|
|
403
|
+
|
|
404
|
+
def responsible_user_id=: (Integer) -> Integer
|
|
405
|
+
|
|
406
|
+
attr_reader status_id: Integer?
|
|
407
|
+
|
|
408
|
+
def status_id=: (Integer) -> Integer
|
|
409
|
+
|
|
410
|
+
attr_reader tags_to_add: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::TagsToAdd]?
|
|
411
|
+
|
|
412
|
+
def tags_to_add=: (
|
|
413
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::TagsToAdd]
|
|
414
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::TagsToAdd]
|
|
415
|
+
|
|
416
|
+
attr_reader updated_at: Integer?
|
|
417
|
+
|
|
418
|
+
def updated_at=: (Integer) -> Integer
|
|
419
|
+
|
|
420
|
+
attr_reader updated_by: Integer?
|
|
421
|
+
|
|
422
|
+
def updated_by=: (Integer) -> Integer
|
|
423
|
+
|
|
424
|
+
attr_reader visitor_uid: String?
|
|
425
|
+
|
|
426
|
+
def visitor_uid=: (String) -> String
|
|
427
|
+
|
|
428
|
+
def initialize: (
|
|
429
|
+
?_embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded,
|
|
430
|
+
?closed_at: Integer,
|
|
431
|
+
?created_at: Integer,
|
|
432
|
+
?created_by: Integer,
|
|
433
|
+
?custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue],
|
|
434
|
+
?group_id: Integer,
|
|
435
|
+
?loss_reason_id: Integer,
|
|
436
|
+
?name: String,
|
|
437
|
+
?pipeline_id: Integer,
|
|
438
|
+
?price: Integer,
|
|
439
|
+
?request_id: String,
|
|
440
|
+
?responsible_user_id: Integer,
|
|
441
|
+
?status_id: Integer,
|
|
442
|
+
?tags_to_add: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::TagsToAdd],
|
|
443
|
+
?updated_at: Integer,
|
|
444
|
+
?updated_by: Integer,
|
|
445
|
+
?visitor_uid: String
|
|
446
|
+
) -> void
|
|
447
|
+
|
|
448
|
+
def to_hash: -> {
|
|
449
|
+
_embedded: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded,
|
|
450
|
+
closed_at: Integer,
|
|
451
|
+
created_at: Integer,
|
|
452
|
+
created_by: Integer,
|
|
453
|
+
custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue],
|
|
454
|
+
group_id: Integer,
|
|
455
|
+
loss_reason_id: Integer,
|
|
456
|
+
name: String,
|
|
457
|
+
pipeline_id: Integer,
|
|
458
|
+
price: Integer,
|
|
459
|
+
request_id: String,
|
|
460
|
+
responsible_user_id: Integer,
|
|
461
|
+
status_id: Integer,
|
|
462
|
+
tags_to_add: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::TagsToAdd],
|
|
463
|
+
updated_at: Integer,
|
|
464
|
+
updated_by: Integer,
|
|
465
|
+
visitor_uid: String
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
type embedded =
|
|
469
|
+
{
|
|
470
|
+
companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Company],
|
|
471
|
+
contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact],
|
|
472
|
+
metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata,
|
|
473
|
+
source: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source,
|
|
474
|
+
tags: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Tag]
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
class Embedded < Amocrm::Internal::Type::BaseModel
|
|
478
|
+
attr_reader companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Company]?
|
|
479
|
+
|
|
480
|
+
def companies=: (
|
|
481
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Company]
|
|
482
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Company]
|
|
483
|
+
|
|
484
|
+
attr_reader contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact]?
|
|
485
|
+
|
|
486
|
+
def contacts=: (
|
|
487
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact]
|
|
488
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact]
|
|
489
|
+
|
|
490
|
+
attr_reader metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata?
|
|
491
|
+
|
|
492
|
+
def metadata=: (
|
|
493
|
+
Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata
|
|
494
|
+
) -> Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata
|
|
495
|
+
|
|
496
|
+
attr_reader source: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source?
|
|
497
|
+
|
|
498
|
+
def source=: (
|
|
499
|
+
Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source
|
|
500
|
+
) -> Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source
|
|
501
|
+
|
|
502
|
+
attr_reader tags: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Tag]?
|
|
503
|
+
|
|
504
|
+
def tags=: (
|
|
505
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Tag]
|
|
506
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Tag]
|
|
507
|
+
|
|
508
|
+
def initialize: (
|
|
509
|
+
?companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Company],
|
|
510
|
+
?contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact],
|
|
511
|
+
?metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata,
|
|
512
|
+
?source: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source,
|
|
513
|
+
?tags: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Tag]
|
|
514
|
+
) -> void
|
|
515
|
+
|
|
516
|
+
def to_hash: -> {
|
|
517
|
+
companies: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Company],
|
|
518
|
+
contacts: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact],
|
|
519
|
+
metadata: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata,
|
|
520
|
+
source: Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source,
|
|
521
|
+
tags: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Tag]
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
type company = { id: Integer, name: String }
|
|
525
|
+
|
|
526
|
+
class Company < Amocrm::Internal::Type::BaseModel
|
|
527
|
+
attr_reader id: Integer?
|
|
528
|
+
|
|
529
|
+
def id=: (Integer) -> Integer
|
|
530
|
+
|
|
531
|
+
attr_reader name: String?
|
|
532
|
+
|
|
533
|
+
def name=: (String) -> String
|
|
534
|
+
|
|
535
|
+
def initialize: (?id: Integer, ?name: String) -> void
|
|
536
|
+
|
|
537
|
+
def to_hash: -> { id: Integer, name: String }
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
type contact =
|
|
541
|
+
{
|
|
542
|
+
id: Integer,
|
|
543
|
+
custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue],
|
|
544
|
+
first_name: String,
|
|
545
|
+
last_name: String,
|
|
546
|
+
name: String
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
class Contact < Amocrm::Internal::Type::BaseModel
|
|
550
|
+
attr_reader id: Integer?
|
|
551
|
+
|
|
552
|
+
def id=: (Integer) -> Integer
|
|
553
|
+
|
|
554
|
+
attr_reader custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue]?
|
|
555
|
+
|
|
556
|
+
def custom_fields_values=: (
|
|
557
|
+
::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue]
|
|
558
|
+
) -> ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue]
|
|
559
|
+
|
|
560
|
+
attr_reader first_name: String?
|
|
561
|
+
|
|
562
|
+
def first_name=: (String) -> String
|
|
563
|
+
|
|
564
|
+
attr_reader last_name: String?
|
|
565
|
+
|
|
566
|
+
def last_name=: (String) -> String
|
|
567
|
+
|
|
568
|
+
attr_reader name: String?
|
|
569
|
+
|
|
570
|
+
def name=: (String) -> String
|
|
571
|
+
|
|
572
|
+
def initialize: (
|
|
573
|
+
?id: Integer,
|
|
574
|
+
?custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue],
|
|
575
|
+
?first_name: String,
|
|
576
|
+
?last_name: String,
|
|
577
|
+
?name: String
|
|
578
|
+
) -> void
|
|
579
|
+
|
|
580
|
+
def to_hash: -> {
|
|
581
|
+
id: Integer,
|
|
582
|
+
custom_fields_values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue],
|
|
583
|
+
first_name: String,
|
|
584
|
+
last_name: String,
|
|
585
|
+
name: String
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
type custom_fields_value =
|
|
589
|
+
{
|
|
590
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value],
|
|
591
|
+
field_code: String,
|
|
592
|
+
field_id: Integer
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
class CustomFieldsValue < Amocrm::Internal::Type::BaseModel
|
|
596
|
+
attr_accessor values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value]
|
|
597
|
+
|
|
598
|
+
attr_reader field_code: String?
|
|
599
|
+
|
|
600
|
+
def field_code=: (String) -> String
|
|
601
|
+
|
|
602
|
+
attr_reader field_id: Integer?
|
|
603
|
+
|
|
604
|
+
def field_id=: (Integer) -> Integer
|
|
605
|
+
|
|
606
|
+
def initialize: (
|
|
607
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value],
|
|
608
|
+
?field_code: String,
|
|
609
|
+
?field_id: Integer
|
|
610
|
+
) -> void
|
|
611
|
+
|
|
612
|
+
def to_hash: -> {
|
|
613
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value],
|
|
614
|
+
field_code: String,
|
|
615
|
+
field_id: Integer
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
type value =
|
|
619
|
+
{
|
|
620
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value::value,
|
|
621
|
+
enum_code: String,
|
|
622
|
+
enum_id: Integer
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
class Value < Amocrm::Internal::Type::BaseModel
|
|
626
|
+
attr_accessor value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value::value
|
|
627
|
+
|
|
628
|
+
attr_reader enum_code: String?
|
|
629
|
+
|
|
630
|
+
def enum_code=: (String) -> String
|
|
631
|
+
|
|
632
|
+
attr_reader enum_id: Integer?
|
|
633
|
+
|
|
634
|
+
def enum_id=: (Integer) -> Integer
|
|
635
|
+
|
|
636
|
+
def initialize: (
|
|
637
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value::value,
|
|
638
|
+
?enum_code: String,
|
|
639
|
+
?enum_id: Integer
|
|
640
|
+
) -> void
|
|
641
|
+
|
|
642
|
+
def to_hash: -> {
|
|
643
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value::value,
|
|
644
|
+
enum_code: String,
|
|
645
|
+
enum_id: Integer
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
type value = String | Integer | bool
|
|
649
|
+
|
|
650
|
+
module Value
|
|
651
|
+
extend Amocrm::Internal::Type::Union
|
|
652
|
+
|
|
653
|
+
def self?.variants: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Contact::CustomFieldsValue::Value::value]
|
|
654
|
+
end
|
|
655
|
+
end
|
|
656
|
+
end
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
type metadata =
|
|
660
|
+
{
|
|
661
|
+
category: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category,
|
|
662
|
+
form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id,
|
|
663
|
+
form_name: String,
|
|
664
|
+
form_page: String,
|
|
665
|
+
form_sent_at: Integer,
|
|
666
|
+
form_type: Integer,
|
|
667
|
+
ip: String,
|
|
668
|
+
referer: String,
|
|
669
|
+
visitor_uid: String
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
class Metadata < Amocrm::Internal::Type::BaseModel
|
|
673
|
+
attr_reader category: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category?
|
|
674
|
+
|
|
675
|
+
def category=: (
|
|
676
|
+
Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category
|
|
677
|
+
) -> Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category
|
|
678
|
+
|
|
679
|
+
attr_reader form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id?
|
|
680
|
+
|
|
681
|
+
def form_id=: (
|
|
682
|
+
Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id
|
|
683
|
+
) -> Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id
|
|
684
|
+
|
|
685
|
+
attr_reader form_name: String?
|
|
686
|
+
|
|
687
|
+
def form_name=: (String) -> String
|
|
688
|
+
|
|
689
|
+
attr_reader form_page: String?
|
|
690
|
+
|
|
691
|
+
def form_page=: (String) -> String
|
|
692
|
+
|
|
693
|
+
attr_reader form_sent_at: Integer?
|
|
694
|
+
|
|
695
|
+
def form_sent_at=: (Integer) -> Integer
|
|
696
|
+
|
|
697
|
+
attr_reader form_type: Integer?
|
|
698
|
+
|
|
699
|
+
def form_type=: (Integer) -> Integer
|
|
700
|
+
|
|
701
|
+
attr_reader ip: String?
|
|
702
|
+
|
|
703
|
+
def ip=: (String) -> String
|
|
704
|
+
|
|
705
|
+
attr_reader referer: String?
|
|
706
|
+
|
|
707
|
+
def referer=: (String) -> String
|
|
708
|
+
|
|
709
|
+
attr_reader visitor_uid: String?
|
|
710
|
+
|
|
711
|
+
def visitor_uid=: (String) -> String
|
|
712
|
+
|
|
713
|
+
def initialize: (
|
|
714
|
+
?category: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category,
|
|
715
|
+
?form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id,
|
|
716
|
+
?form_name: String,
|
|
717
|
+
?form_page: String,
|
|
718
|
+
?form_sent_at: Integer,
|
|
719
|
+
?form_type: Integer,
|
|
720
|
+
?ip: String,
|
|
721
|
+
?referer: String,
|
|
722
|
+
?visitor_uid: String
|
|
723
|
+
) -> void
|
|
724
|
+
|
|
725
|
+
def to_hash: -> {
|
|
726
|
+
category: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category,
|
|
727
|
+
form_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id,
|
|
728
|
+
form_name: String,
|
|
729
|
+
form_page: String,
|
|
730
|
+
form_sent_at: Integer,
|
|
731
|
+
form_type: Integer,
|
|
732
|
+
ip: String,
|
|
733
|
+
referer: String,
|
|
734
|
+
visitor_uid: String
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
type category = :sip | :forms | :chats | :mail
|
|
738
|
+
|
|
739
|
+
module Category
|
|
740
|
+
extend Amocrm::Internal::Type::Enum
|
|
741
|
+
|
|
742
|
+
SIP: :sip
|
|
743
|
+
FORMS: :forms
|
|
744
|
+
CHATS: :chats
|
|
745
|
+
MAIL: :mail
|
|
746
|
+
|
|
747
|
+
def self?.values: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::category]
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
type form_id = String | Integer
|
|
751
|
+
|
|
752
|
+
module FormID
|
|
753
|
+
extend Amocrm::Internal::Type::Union
|
|
754
|
+
|
|
755
|
+
def self?.variants: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Metadata::form_id]
|
|
756
|
+
end
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
type source =
|
|
760
|
+
{
|
|
761
|
+
external_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id,
|
|
762
|
+
type: String
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
class Source < Amocrm::Internal::Type::BaseModel
|
|
766
|
+
attr_reader external_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id?
|
|
767
|
+
|
|
768
|
+
def external_id=: (
|
|
769
|
+
Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id
|
|
770
|
+
) -> Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id
|
|
771
|
+
|
|
772
|
+
attr_reader type: String?
|
|
773
|
+
|
|
774
|
+
def type=: (String) -> String
|
|
775
|
+
|
|
776
|
+
def initialize: (
|
|
777
|
+
?external_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id,
|
|
778
|
+
?type: String
|
|
779
|
+
) -> void
|
|
780
|
+
|
|
781
|
+
def to_hash: -> {
|
|
782
|
+
external_id: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id,
|
|
783
|
+
type: String
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
type external_id = String | Integer | bool
|
|
787
|
+
|
|
788
|
+
module ExternalID
|
|
789
|
+
extend Amocrm::Internal::Type::Union
|
|
790
|
+
|
|
791
|
+
def self?.variants: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::Embedded::Source::external_id]
|
|
792
|
+
end
|
|
793
|
+
end
|
|
794
|
+
|
|
795
|
+
type tag = { id: Integer, color: String, name: String }
|
|
796
|
+
|
|
797
|
+
class Tag < Amocrm::Internal::Type::BaseModel
|
|
798
|
+
attr_reader id: Integer?
|
|
799
|
+
|
|
800
|
+
def id=: (Integer) -> Integer
|
|
801
|
+
|
|
802
|
+
attr_reader color: String?
|
|
803
|
+
|
|
804
|
+
def color=: (String) -> String
|
|
805
|
+
|
|
806
|
+
attr_reader name: String?
|
|
807
|
+
|
|
808
|
+
def name=: (String) -> String
|
|
809
|
+
|
|
810
|
+
def initialize: (
|
|
811
|
+
?id: Integer,
|
|
812
|
+
?color: String,
|
|
813
|
+
?name: String
|
|
814
|
+
) -> void
|
|
815
|
+
|
|
816
|
+
def to_hash: -> { id: Integer, color: String, name: String }
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
type custom_fields_value =
|
|
821
|
+
{
|
|
822
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value],
|
|
823
|
+
field_code: String,
|
|
824
|
+
field_id: Integer
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
class CustomFieldsValue < Amocrm::Internal::Type::BaseModel
|
|
828
|
+
attr_accessor values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value]
|
|
829
|
+
|
|
830
|
+
attr_reader field_code: String?
|
|
831
|
+
|
|
832
|
+
def field_code=: (String) -> String
|
|
833
|
+
|
|
834
|
+
attr_reader field_id: Integer?
|
|
835
|
+
|
|
836
|
+
def field_id=: (Integer) -> Integer
|
|
837
|
+
|
|
838
|
+
def initialize: (
|
|
839
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value],
|
|
840
|
+
?field_code: String,
|
|
841
|
+
?field_id: Integer
|
|
842
|
+
) -> void
|
|
843
|
+
|
|
844
|
+
def to_hash: -> {
|
|
845
|
+
values: ::Array[Amocrm::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value],
|
|
846
|
+
field_code: String,
|
|
847
|
+
field_id: Integer
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
type value =
|
|
851
|
+
{
|
|
852
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value::value,
|
|
853
|
+
enum_code: String,
|
|
854
|
+
enum_id: Integer
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
class Value < Amocrm::Internal::Type::BaseModel
|
|
858
|
+
attr_accessor value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value::value
|
|
859
|
+
|
|
860
|
+
attr_reader enum_code: String?
|
|
861
|
+
|
|
862
|
+
def enum_code=: (String) -> String
|
|
863
|
+
|
|
864
|
+
attr_reader enum_id: Integer?
|
|
865
|
+
|
|
866
|
+
def enum_id=: (Integer) -> Integer
|
|
867
|
+
|
|
868
|
+
def initialize: (
|
|
869
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value::value,
|
|
870
|
+
?enum_code: String,
|
|
871
|
+
?enum_id: Integer
|
|
872
|
+
) -> void
|
|
873
|
+
|
|
874
|
+
def to_hash: -> {
|
|
875
|
+
value: Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value::value,
|
|
876
|
+
enum_code: String,
|
|
877
|
+
enum_id: Integer
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
type value = String | Integer | bool
|
|
881
|
+
|
|
882
|
+
module Value
|
|
883
|
+
extend Amocrm::Internal::Type::Union
|
|
884
|
+
|
|
885
|
+
def self?.variants: -> ::Array[Amocrm::Models::V4::Leads::UnsortedCreateFormsParams::Body::Embedded::Lead::CustomFieldsValue::Value::value]
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
type tags_to_add = { id: Integer, color: String, name: String }
|
|
891
|
+
|
|
892
|
+
class TagsToAdd < Amocrm::Internal::Type::BaseModel
|
|
893
|
+
attr_reader id: Integer?
|
|
894
|
+
|
|
895
|
+
def id=: (Integer) -> Integer
|
|
896
|
+
|
|
897
|
+
attr_reader color: String?
|
|
898
|
+
|
|
899
|
+
def color=: (String) -> String
|
|
900
|
+
|
|
901
|
+
attr_reader name: String?
|
|
902
|
+
|
|
903
|
+
def name=: (String) -> String
|
|
904
|
+
|
|
905
|
+
def initialize: (
|
|
906
|
+
?id: Integer,
|
|
907
|
+
?color: String,
|
|
908
|
+
?name: String
|
|
909
|
+
) -> void
|
|
910
|
+
|
|
911
|
+
def to_hash: -> { id: Integer, color: String, name: String }
|
|
912
|
+
end
|
|
913
|
+
end
|
|
914
|
+
end
|
|
915
|
+
end
|
|
916
|
+
end
|
|
917
|
+
end
|
|
918
|
+
end
|
|
919
|
+
end
|
|
920
|
+
end
|