@hypelabs-llc/ts-sdk 0.1.5 → 0.2.1
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.
- package/README.md +18 -14
- package/dist/apiKeyAuthenticationProvider.d.ts +1 -1
- package/dist/apiKeyAuthenticationProvider.js +1 -1
- package/dist/{partnerClient.d.ts → connectClient.d.ts} +4 -4
- package/dist/{partnerClient.js → connectClient.js} +6 -6
- package/dist/generated/catalog/capabilities/index.d.ts +44 -0
- package/dist/generated/catalog/capabilities/index.js +22 -0
- package/dist/generated/catalog/datacenters/index.d.ts +45 -0
- package/dist/generated/catalog/datacenters/index.js +25 -0
- package/dist/generated/catalog/index.d.ts +39 -0
- package/dist/generated/catalog/index.js +39 -0
- package/dist/generated/{isps → catalog/isps}/index.d.ts +17 -6
- package/dist/generated/{isps → catalog/isps}/index.js +6 -3
- package/dist/generated/{locations → catalog/locations}/index.d.ts +14 -6
- package/dist/generated/{locations → catalog/locations}/index.js +6 -3
- package/dist/generated/{products → catalog/products}/index.d.ts +13 -7
- package/dist/generated/{products → catalog/products}/index.js +2 -2
- package/dist/generated/connectApiClient.d.ts +54 -0
- package/dist/generated/{partnerApiClient.js → connectApiClient.js} +10 -41
- package/dist/generated/customers/authenticate/index.d.ts +23 -8
- package/dist/generated/customers/authenticate/index.js +21 -3
- package/dist/generated/customers/authenticate/oauth/index.d.ts +30 -0
- package/dist/generated/customers/authenticate/oauth/index.js +28 -0
- package/dist/generated/customers/authenticate/telegram/index.d.ts +31 -0
- package/dist/generated/customers/authenticate/telegram/index.js +29 -0
- package/dist/generated/customers/index.d.ts +24 -6
- package/dist/generated/customers/index.js +8 -4
- package/dist/generated/customers/item/billing/index.d.ts +31 -0
- package/dist/generated/customers/item/billing/index.js +29 -0
- package/dist/generated/customers/item/defaults/index.d.ts +30 -0
- package/dist/generated/customers/item/defaults/index.js +28 -0
- package/dist/generated/customers/item/index.d.ts +53 -5
- package/dist/generated/customers/item/index.js +57 -5
- package/dist/generated/customers/item/kyc/index.d.ts +3 -2
- package/dist/generated/customers/item/kyc/index.js +5 -2
- package/dist/generated/customers/item/metadata/index.d.ts +30 -0
- package/dist/generated/customers/item/metadata/index.js +28 -0
- package/dist/generated/customers/item/password/index.d.ts +30 -0
- package/dist/generated/customers/item/password/index.js +28 -0
- package/dist/generated/customers/item/resetPassword/index.d.ts +28 -0
- package/dist/generated/customers/item/resetPassword/index.js +25 -0
- package/dist/generated/customers/item/sendVerification/index.d.ts +31 -0
- package/dist/generated/customers/item/sendVerification/index.js +29 -0
- package/dist/generated/incidents/index.d.ts +20 -6
- package/dist/generated/incidents/index.js +8 -4
- package/dist/generated/{organizations/item/members/item → incidents/item/dismiss}/index.d.ts +10 -8
- package/dist/generated/incidents/item/dismiss/index.js +25 -0
- package/dist/generated/incidents/item/index.d.ts +19 -11
- package/dist/generated/incidents/item/index.js +25 -8
- package/dist/generated/incidents/item/metadata/index.d.ts +30 -0
- package/dist/generated/incidents/item/metadata/index.js +28 -0
- package/dist/generated/incidents/item/resolve/index.d.ts +30 -0
- package/dist/generated/incidents/item/resolve/index.js +28 -0
- package/dist/generated/models/index.d.ts +1509 -983
- package/dist/generated/models/index.js +1341 -951
- package/dist/generated/orders/index.d.ts +28 -8
- package/dist/generated/orders/index.js +10 -4
- package/dist/generated/orders/item/extend/index.d.ts +8 -5
- package/dist/generated/orders/item/extend/index.js +8 -3
- package/dist/generated/orders/item/index.d.ts +39 -1
- package/dist/generated/orders/item/index.js +33 -0
- package/dist/generated/{activities → orders/item/proxies}/index.d.ts +10 -7
- package/dist/generated/orders/item/proxies/index.js +25 -0
- package/dist/generated/orders/preview/index.d.ts +7 -5
- package/dist/generated/orders/preview/index.js +7 -3
- package/dist/generated/orders/trial/index.d.ts +9 -6
- package/dist/generated/orders/trial/index.js +9 -4
- package/dist/generated/proxies/index.d.ts +5 -5
- package/dist/generated/proxies/item/annotations/index.d.ts +29 -0
- package/dist/generated/{organizations/item/pricing → proxies/item/annotations}/index.js +6 -6
- package/dist/generated/proxies/item/credentials/index.d.ts +10 -10
- package/dist/generated/proxies/item/credentials/index.js +4 -5
- package/dist/generated/proxies/item/index.d.ts +17 -2
- package/dist/generated/proxies/item/index.js +15 -0
- package/dist/generated/proxies/item/ipInfo/index.d.ts +29 -0
- package/dist/generated/proxies/item/ipInfo/index.js +26 -0
- package/dist/generated/proxies/item/ipRotation/index.d.ts +11 -6
- package/dist/generated/proxies/item/ipRotation/index.js +5 -0
- package/dist/generated/{systemAlert → proxies/item/ipRotation/link}/index.d.ts +9 -9
- package/dist/generated/proxies/item/ipRotation/link/index.js +22 -0
- package/dist/generated/proxies/item/ipRotation/trigger/index.d.ts +2 -2
- package/dist/generated/proxies/item/options/index.d.ts +42 -0
- package/dist/generated/proxies/item/options/index.js +34 -0
- package/dist/generated/proxies/item/ping/index.d.ts +4 -2
- package/dist/generated/proxies/item/ping/index.js +6 -2
- package/dist/generated/reviews/index.d.ts +4 -3
- package/dist/generated/reviews/index.js +5 -2
- package/dist/generated/reviews/item/approve/index.d.ts +1 -0
- package/dist/generated/reviews/item/approve/index.js +5 -2
- package/dist/generated/reviews/item/index.d.ts +7 -2
- package/dist/generated/reviews/item/index.js +12 -2
- package/dist/generated/reviews/item/metadata/index.d.ts +30 -0
- package/dist/generated/reviews/item/metadata/index.js +28 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/generated/activities/index.js +0 -22
- package/dist/generated/organizations/index.d.ts +0 -52
- package/dist/generated/organizations/index.js +0 -43
- package/dist/generated/organizations/item/balance/deposit/index.d.ts +0 -29
- package/dist/generated/organizations/item/balance/deposit/index.js +0 -25
- package/dist/generated/organizations/item/balance/index.d.ts +0 -36
- package/dist/generated/organizations/item/balance/index.js +0 -32
- package/dist/generated/organizations/item/billing/index.d.ts +0 -41
- package/dist/generated/organizations/item/billing/index.js +0 -31
- package/dist/generated/organizations/item/branding/index.d.ts +0 -29
- package/dist/generated/organizations/item/branding/index.js +0 -25
- package/dist/generated/organizations/item/email/index.d.ts +0 -41
- package/dist/generated/organizations/item/email/index.js +0 -31
- package/dist/generated/organizations/item/index.d.ts +0 -92
- package/dist/generated/organizations/item/index.js +0 -79
- package/dist/generated/organizations/item/infrastructure/dnsCheck/index.d.ts +0 -33
- package/dist/generated/organizations/item/infrastructure/dnsCheck/index.js +0 -22
- package/dist/generated/organizations/item/infrastructure/index.d.ts +0 -50
- package/dist/generated/organizations/item/infrastructure/index.js +0 -41
- package/dist/generated/organizations/item/members/index.d.ts +0 -38
- package/dist/generated/organizations/item/members/index.js +0 -33
- package/dist/generated/organizations/item/members/item/index.js +0 -16
- package/dist/generated/organizations/item/pricing/index.d.ts +0 -29
- package/dist/generated/partnerApiClient.d.ts +0 -84
- package/dist/generated/paymentProcessors/index.d.ts +0 -65
- package/dist/generated/paymentProcessors/index.js +0 -36
- package/dist/generated/systemAlert/index.js +0 -22
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createUntypedNodeFromDiscriminatorValue } from '@microsoft/kiota-abstractions';
|
|
1
6
|
/**
|
|
2
7
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
3
8
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
4
|
-
* @returns {
|
|
9
|
+
* @returns {Announcement_metadata}
|
|
5
10
|
*/
|
|
6
11
|
// @ts-ignore
|
|
7
|
-
export function
|
|
8
|
-
return
|
|
12
|
+
export function createAnnouncement_metadataFromDiscriminatorValue(parseNode) {
|
|
13
|
+
return deserializeIntoAnnouncement_metadata;
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
16
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -19,56 +24,74 @@ export function createAnnouncementFromDiscriminatorValue(parseNode) {
|
|
|
19
24
|
/**
|
|
20
25
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
21
26
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
22
|
-
* @returns {
|
|
27
|
+
* @returns {ApiError}
|
|
23
28
|
*/
|
|
24
29
|
// @ts-ignore
|
|
25
|
-
export function
|
|
26
|
-
return
|
|
30
|
+
export function createApiErrorFromDiscriminatorValue(parseNode) {
|
|
31
|
+
return deserializeIntoApiError;
|
|
27
32
|
}
|
|
28
33
|
/**
|
|
29
34
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
30
35
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
31
|
-
* @returns {
|
|
36
|
+
* @returns {ApiResponse}
|
|
32
37
|
*/
|
|
33
38
|
// @ts-ignore
|
|
34
|
-
export function
|
|
35
|
-
return
|
|
39
|
+
export function createApiResponseFromDiscriminatorValue(parseNode) {
|
|
40
|
+
return deserializeIntoApiResponse;
|
|
36
41
|
}
|
|
37
42
|
/**
|
|
38
43
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
39
44
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
40
|
-
* @returns {
|
|
45
|
+
* @returns {AuthenticateCustomerOAuthRequest}
|
|
41
46
|
*/
|
|
42
47
|
// @ts-ignore
|
|
43
|
-
export function
|
|
44
|
-
return
|
|
48
|
+
export function createAuthenticateCustomerOAuthRequestFromDiscriminatorValue(parseNode) {
|
|
49
|
+
return deserializeIntoAuthenticateCustomerOAuthRequest;
|
|
45
50
|
}
|
|
46
51
|
/**
|
|
47
52
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
48
53
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
49
|
-
* @returns {
|
|
54
|
+
* @returns {AuthenticateCustomerRequest}
|
|
50
55
|
*/
|
|
51
56
|
// @ts-ignore
|
|
52
|
-
export function
|
|
53
|
-
return
|
|
57
|
+
export function createAuthenticateCustomerRequestFromDiscriminatorValue(parseNode) {
|
|
58
|
+
return deserializeIntoAuthenticateCustomerRequest;
|
|
54
59
|
}
|
|
55
60
|
/**
|
|
56
61
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
57
62
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
58
|
-
* @returns {
|
|
63
|
+
* @returns {AuthenticateCustomerTelegramRequest}
|
|
59
64
|
*/
|
|
60
65
|
// @ts-ignore
|
|
61
|
-
export function
|
|
62
|
-
return
|
|
66
|
+
export function createAuthenticateCustomerTelegramRequestFromDiscriminatorValue(parseNode) {
|
|
67
|
+
return deserializeIntoAuthenticateCustomerTelegramRequest;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
71
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
72
|
+
* @returns {CancelOrderRequest}
|
|
73
|
+
*/
|
|
74
|
+
// @ts-ignore
|
|
75
|
+
export function createCancelOrderRequestFromDiscriminatorValue(parseNode) {
|
|
76
|
+
return deserializeIntoCancelOrderRequest;
|
|
63
77
|
}
|
|
64
78
|
/**
|
|
65
79
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
66
80
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
67
|
-
* @returns {
|
|
81
|
+
* @returns {Capability}
|
|
68
82
|
*/
|
|
69
83
|
// @ts-ignore
|
|
70
|
-
export function
|
|
71
|
-
return
|
|
84
|
+
export function createCapabilityFromDiscriminatorValue(parseNode) {
|
|
85
|
+
return deserializeIntoCapability;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
89
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
90
|
+
* @returns {CreateCustomerRequest}
|
|
91
|
+
*/
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
export function createCreateCustomerRequestFromDiscriminatorValue(parseNode) {
|
|
94
|
+
return deserializeIntoCreateCustomerRequest;
|
|
72
95
|
}
|
|
73
96
|
/**
|
|
74
97
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -100,47 +123,56 @@ export function createCreateOrderResponseFromDiscriminatorValue(parseNode) {
|
|
|
100
123
|
/**
|
|
101
124
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
102
125
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
103
|
-
* @returns {
|
|
126
|
+
* @returns {CreateReviewRequest}
|
|
104
127
|
*/
|
|
105
128
|
// @ts-ignore
|
|
106
|
-
export function
|
|
107
|
-
return
|
|
129
|
+
export function createCreateReviewRequestFromDiscriminatorValue(parseNode) {
|
|
130
|
+
return deserializeIntoCreateReviewRequest;
|
|
108
131
|
}
|
|
109
132
|
/**
|
|
110
133
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
111
134
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
112
|
-
* @returns {
|
|
135
|
+
* @returns {CreateTrialResponse}
|
|
113
136
|
*/
|
|
114
137
|
// @ts-ignore
|
|
115
|
-
export function
|
|
116
|
-
return
|
|
138
|
+
export function createCreateTrialResponseFromDiscriminatorValue(parseNode) {
|
|
139
|
+
return deserializeIntoCreateTrialResponse;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
143
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
144
|
+
* @returns {Customer_externalLogins}
|
|
145
|
+
*/
|
|
146
|
+
// @ts-ignore
|
|
147
|
+
export function createCustomer_externalLoginsFromDiscriminatorValue(parseNode) {
|
|
148
|
+
return deserializeIntoCustomer_externalLogins;
|
|
117
149
|
}
|
|
118
150
|
/**
|
|
119
151
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
120
152
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
121
|
-
* @returns {
|
|
153
|
+
* @returns {Customer_metadata}
|
|
122
154
|
*/
|
|
123
155
|
// @ts-ignore
|
|
124
|
-
export function
|
|
125
|
-
return
|
|
156
|
+
export function createCustomer_metadataFromDiscriminatorValue(parseNode) {
|
|
157
|
+
return deserializeIntoCustomer_metadata;
|
|
126
158
|
}
|
|
127
159
|
/**
|
|
128
160
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
129
161
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
130
|
-
* @returns {
|
|
162
|
+
* @returns {CustomerAuthResponse}
|
|
131
163
|
*/
|
|
132
164
|
// @ts-ignore
|
|
133
|
-
export function
|
|
134
|
-
return
|
|
165
|
+
export function createCustomerAuthResponseFromDiscriminatorValue(parseNode) {
|
|
166
|
+
return deserializeIntoCustomerAuthResponse;
|
|
135
167
|
}
|
|
136
168
|
/**
|
|
137
169
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
138
170
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
139
|
-
* @returns {
|
|
171
|
+
* @returns {CustomerBilling}
|
|
140
172
|
*/
|
|
141
173
|
// @ts-ignore
|
|
142
|
-
export function
|
|
143
|
-
return
|
|
174
|
+
export function createCustomerBillingFromDiscriminatorValue(parseNode) {
|
|
175
|
+
return deserializeIntoCustomerBilling;
|
|
144
176
|
}
|
|
145
177
|
/**
|
|
146
178
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -163,20 +195,11 @@ export function createCustomerKycFromDiscriminatorValue(parseNode) {
|
|
|
163
195
|
/**
|
|
164
196
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
165
197
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
166
|
-
* @returns {
|
|
167
|
-
*/
|
|
168
|
-
// @ts-ignore
|
|
169
|
-
export function createDepositResponseFromDiscriminatorValue(parseNode) {
|
|
170
|
-
return deserializeIntoDepositResponse;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
174
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
175
|
-
* @returns {DnsCheckResponse}
|
|
198
|
+
* @returns {Datacenter}
|
|
176
199
|
*/
|
|
177
200
|
// @ts-ignore
|
|
178
|
-
export function
|
|
179
|
-
return
|
|
201
|
+
export function createDatacenterFromDiscriminatorValue(parseNode) {
|
|
202
|
+
return deserializeIntoDatacenter;
|
|
180
203
|
}
|
|
181
204
|
/**
|
|
182
205
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -190,173 +213,173 @@ export function createExtendOrderRequestFromDiscriminatorValue(parseNode) {
|
|
|
190
213
|
/**
|
|
191
214
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
192
215
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
193
|
-
* @returns {
|
|
216
|
+
* @returns {ExtendOrderResponse}
|
|
194
217
|
*/
|
|
195
218
|
// @ts-ignore
|
|
196
|
-
export function
|
|
197
|
-
return
|
|
219
|
+
export function createExtendOrderResponseFromDiscriminatorValue(parseNode) {
|
|
220
|
+
return deserializeIntoExtendOrderResponse;
|
|
198
221
|
}
|
|
199
222
|
/**
|
|
200
223
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
201
224
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
202
|
-
* @returns {
|
|
225
|
+
* @returns {Incident_metadata}
|
|
203
226
|
*/
|
|
204
227
|
// @ts-ignore
|
|
205
|
-
export function
|
|
206
|
-
return
|
|
228
|
+
export function createIncident_metadataFromDiscriminatorValue(parseNode) {
|
|
229
|
+
return deserializeIntoIncident_metadata;
|
|
207
230
|
}
|
|
208
231
|
/**
|
|
209
232
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
210
233
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
211
|
-
* @returns {
|
|
234
|
+
* @returns {Incident}
|
|
212
235
|
*/
|
|
213
236
|
// @ts-ignore
|
|
214
|
-
export function
|
|
215
|
-
return
|
|
237
|
+
export function createIncidentFromDiscriminatorValue(parseNode) {
|
|
238
|
+
return deserializeIntoIncident;
|
|
216
239
|
}
|
|
217
240
|
/**
|
|
218
241
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
219
242
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
220
|
-
* @returns {
|
|
243
|
+
* @returns {IpInformation}
|
|
221
244
|
*/
|
|
222
245
|
// @ts-ignore
|
|
223
|
-
export function
|
|
224
|
-
return
|
|
246
|
+
export function createIpInformationFromDiscriminatorValue(parseNode) {
|
|
247
|
+
return deserializeIntoIpInformation;
|
|
225
248
|
}
|
|
226
249
|
/**
|
|
227
250
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
228
251
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
229
|
-
* @returns {
|
|
252
|
+
* @returns {IpRotationLinkResponse}
|
|
230
253
|
*/
|
|
231
254
|
// @ts-ignore
|
|
232
|
-
export function
|
|
233
|
-
return
|
|
255
|
+
export function createIpRotationLinkResponseFromDiscriminatorValue(parseNode) {
|
|
256
|
+
return deserializeIntoIpRotationLinkResponse;
|
|
234
257
|
}
|
|
235
258
|
/**
|
|
236
259
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
237
260
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
238
|
-
* @returns {
|
|
261
|
+
* @returns {Isp}
|
|
239
262
|
*/
|
|
240
263
|
// @ts-ignore
|
|
241
|
-
export function
|
|
242
|
-
return
|
|
264
|
+
export function createIspFromDiscriminatorValue(parseNode) {
|
|
265
|
+
return deserializeIntoIsp;
|
|
243
266
|
}
|
|
244
267
|
/**
|
|
245
268
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
246
269
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
247
|
-
* @returns {
|
|
270
|
+
* @returns {Location}
|
|
248
271
|
*/
|
|
249
272
|
// @ts-ignore
|
|
250
|
-
export function
|
|
251
|
-
return
|
|
273
|
+
export function createLocationFromDiscriminatorValue(parseNode) {
|
|
274
|
+
return deserializeIntoLocation;
|
|
252
275
|
}
|
|
253
276
|
/**
|
|
254
277
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
255
278
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
256
|
-
* @returns {
|
|
279
|
+
* @returns {Order_metadata}
|
|
257
280
|
*/
|
|
258
281
|
// @ts-ignore
|
|
259
|
-
export function
|
|
260
|
-
return
|
|
282
|
+
export function createOrder_metadataFromDiscriminatorValue(parseNode) {
|
|
283
|
+
return deserializeIntoOrder_metadata;
|
|
261
284
|
}
|
|
262
285
|
/**
|
|
263
286
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
264
287
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
265
|
-
* @returns {
|
|
288
|
+
* @returns {OrderCriteria}
|
|
266
289
|
*/
|
|
267
290
|
// @ts-ignore
|
|
268
|
-
export function
|
|
269
|
-
return
|
|
291
|
+
export function createOrderCriteriaFromDiscriminatorValue(parseNode) {
|
|
292
|
+
return deserializeIntoOrderCriteria;
|
|
270
293
|
}
|
|
271
294
|
/**
|
|
272
295
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
273
296
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
274
|
-
* @returns {
|
|
297
|
+
* @returns {Order}
|
|
275
298
|
*/
|
|
276
299
|
// @ts-ignore
|
|
277
|
-
export function
|
|
278
|
-
return
|
|
300
|
+
export function createOrderFromDiscriminatorValue(parseNode) {
|
|
301
|
+
return deserializeIntoOrder;
|
|
279
302
|
}
|
|
280
303
|
/**
|
|
281
304
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
282
305
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
283
|
-
* @returns {
|
|
306
|
+
* @returns {OrderItem_metadata}
|
|
284
307
|
*/
|
|
285
308
|
// @ts-ignore
|
|
286
|
-
export function
|
|
287
|
-
return
|
|
309
|
+
export function createOrderItem_metadataFromDiscriminatorValue(parseNode) {
|
|
310
|
+
return deserializeIntoOrderItem_metadata;
|
|
288
311
|
}
|
|
289
312
|
/**
|
|
290
313
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
291
314
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
292
|
-
* @returns {
|
|
315
|
+
* @returns {OrderItem}
|
|
293
316
|
*/
|
|
294
317
|
// @ts-ignore
|
|
295
|
-
export function
|
|
296
|
-
return
|
|
318
|
+
export function createOrderItemFromDiscriminatorValue(parseNode) {
|
|
319
|
+
return deserializeIntoOrderItem;
|
|
297
320
|
}
|
|
298
321
|
/**
|
|
299
322
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
300
323
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
301
|
-
* @returns {
|
|
324
|
+
* @returns {PatchCustomerBillingRequest}
|
|
302
325
|
*/
|
|
303
326
|
// @ts-ignore
|
|
304
|
-
export function
|
|
305
|
-
return
|
|
327
|
+
export function createPatchCustomerBillingRequestFromDiscriminatorValue(parseNode) {
|
|
328
|
+
return deserializeIntoPatchCustomerBillingRequest;
|
|
306
329
|
}
|
|
307
330
|
/**
|
|
308
331
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
309
332
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
310
|
-
* @returns {
|
|
333
|
+
* @returns {PatchCustomerDefaultsRequest}
|
|
311
334
|
*/
|
|
312
335
|
// @ts-ignore
|
|
313
|
-
export function
|
|
314
|
-
return
|
|
336
|
+
export function createPatchCustomerDefaultsRequestFromDiscriminatorValue(parseNode) {
|
|
337
|
+
return deserializeIntoPatchCustomerDefaultsRequest;
|
|
315
338
|
}
|
|
316
339
|
/**
|
|
317
340
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
318
341
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
319
|
-
* @returns {
|
|
342
|
+
* @returns {PatchCustomerRequest}
|
|
320
343
|
*/
|
|
321
344
|
// @ts-ignore
|
|
322
|
-
export function
|
|
323
|
-
return
|
|
345
|
+
export function createPatchCustomerRequestFromDiscriminatorValue(parseNode) {
|
|
346
|
+
return deserializeIntoPatchCustomerRequest;
|
|
324
347
|
}
|
|
325
348
|
/**
|
|
326
349
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
327
350
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
328
|
-
* @returns {
|
|
351
|
+
* @returns {PatchMetadataRequest_metadata}
|
|
329
352
|
*/
|
|
330
353
|
// @ts-ignore
|
|
331
|
-
export function
|
|
332
|
-
return
|
|
354
|
+
export function createPatchMetadataRequest_metadataFromDiscriminatorValue(parseNode) {
|
|
355
|
+
return deserializeIntoPatchMetadataRequest_metadata;
|
|
333
356
|
}
|
|
334
357
|
/**
|
|
335
358
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
336
359
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
337
|
-
* @returns {
|
|
360
|
+
* @returns {PatchMetadataRequest}
|
|
338
361
|
*/
|
|
339
362
|
// @ts-ignore
|
|
340
|
-
export function
|
|
341
|
-
return
|
|
363
|
+
export function createPatchMetadataRequestFromDiscriminatorValue(parseNode) {
|
|
364
|
+
return deserializeIntoPatchMetadataRequest;
|
|
342
365
|
}
|
|
343
366
|
/**
|
|
344
367
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
345
368
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
346
|
-
* @returns {
|
|
369
|
+
* @returns {PatchPasswordRequest}
|
|
347
370
|
*/
|
|
348
371
|
// @ts-ignore
|
|
349
|
-
export function
|
|
350
|
-
return
|
|
372
|
+
export function createPatchPasswordRequestFromDiscriminatorValue(parseNode) {
|
|
373
|
+
return deserializeIntoPatchPasswordRequest;
|
|
351
374
|
}
|
|
352
375
|
/**
|
|
353
376
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
354
377
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
355
|
-
* @returns {
|
|
378
|
+
* @returns {PatchProxyAnnotationRequest}
|
|
356
379
|
*/
|
|
357
380
|
// @ts-ignore
|
|
358
|
-
export function
|
|
359
|
-
return
|
|
381
|
+
export function createPatchProxyAnnotationRequestFromDiscriminatorValue(parseNode) {
|
|
382
|
+
return deserializeIntoPatchProxyAnnotationRequest;
|
|
360
383
|
}
|
|
361
384
|
/**
|
|
362
385
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -370,11 +393,11 @@ export function createPreviewOrderRequestFromDiscriminatorValue(parseNode) {
|
|
|
370
393
|
/**
|
|
371
394
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
372
395
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
373
|
-
* @returns {
|
|
396
|
+
* @returns {PreviewOrderResponse}
|
|
374
397
|
*/
|
|
375
398
|
// @ts-ignore
|
|
376
|
-
export function
|
|
377
|
-
return
|
|
399
|
+
export function createPreviewOrderResponseFromDiscriminatorValue(parseNode) {
|
|
400
|
+
return deserializeIntoPreviewOrderResponse;
|
|
378
401
|
}
|
|
379
402
|
/**
|
|
380
403
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -394,6 +417,24 @@ export function createProductFromDiscriminatorValue(parseNode) {
|
|
|
394
417
|
export function createProxyCredentialResponseFromDiscriminatorValue(parseNode) {
|
|
395
418
|
return deserializeIntoProxyCredentialResponse;
|
|
396
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
422
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
423
|
+
* @returns {ProxyDatacenter}
|
|
424
|
+
*/
|
|
425
|
+
// @ts-ignore
|
|
426
|
+
export function createProxyDatacenterFromDiscriminatorValue(parseNode) {
|
|
427
|
+
return deserializeIntoProxyDatacenter;
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
431
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
432
|
+
* @returns {ProxyFeatures}
|
|
433
|
+
*/
|
|
434
|
+
// @ts-ignore
|
|
435
|
+
export function createProxyFeaturesFromDiscriminatorValue(parseNode) {
|
|
436
|
+
return deserializeIntoProxyFeatures;
|
|
437
|
+
}
|
|
397
438
|
/**
|
|
398
439
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
399
440
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -403,6 +444,15 @@ export function createProxyCredentialResponseFromDiscriminatorValue(parseNode) {
|
|
|
403
444
|
export function createProxyFromDiscriminatorValue(parseNode) {
|
|
404
445
|
return deserializeIntoProxy;
|
|
405
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
449
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
450
|
+
* @returns {ProxyIpRotationFeature}
|
|
451
|
+
*/
|
|
452
|
+
// @ts-ignore
|
|
453
|
+
export function createProxyIpRotationFeatureFromDiscriminatorValue(parseNode) {
|
|
454
|
+
return deserializeIntoProxyIpRotationFeature;
|
|
455
|
+
}
|
|
406
456
|
/**
|
|
407
457
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
408
458
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -415,128 +465,155 @@ export function createProxyIpRotationResponseFromDiscriminatorValue(parseNode) {
|
|
|
415
465
|
/**
|
|
416
466
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
417
467
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
418
|
-
* @returns {
|
|
468
|
+
* @returns {ProxyIsp}
|
|
419
469
|
*/
|
|
420
470
|
// @ts-ignore
|
|
421
|
-
export function
|
|
422
|
-
return
|
|
471
|
+
export function createProxyIspFromDiscriminatorValue(parseNode) {
|
|
472
|
+
return deserializeIntoProxyIsp;
|
|
423
473
|
}
|
|
424
474
|
/**
|
|
425
475
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
426
476
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
427
|
-
* @returns {
|
|
477
|
+
* @returns {ProxyLocation}
|
|
428
478
|
*/
|
|
429
479
|
// @ts-ignore
|
|
430
|
-
export function
|
|
431
|
-
return
|
|
480
|
+
export function createProxyLocationFromDiscriminatorValue(parseNode) {
|
|
481
|
+
return deserializeIntoProxyLocation;
|
|
432
482
|
}
|
|
433
483
|
/**
|
|
434
484
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
435
485
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
436
|
-
* @returns {
|
|
486
|
+
* @returns {ProxyOptions_metadata}
|
|
437
487
|
*/
|
|
438
488
|
// @ts-ignore
|
|
439
|
-
export function
|
|
440
|
-
return
|
|
489
|
+
export function createProxyOptions_metadataFromDiscriminatorValue(parseNode) {
|
|
490
|
+
return deserializeIntoProxyOptions_metadata;
|
|
441
491
|
}
|
|
442
492
|
/**
|
|
443
493
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
444
494
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
445
|
-
* @returns {
|
|
495
|
+
* @returns {ProxyOptions}
|
|
446
496
|
*/
|
|
447
497
|
// @ts-ignore
|
|
448
|
-
export function
|
|
449
|
-
return
|
|
498
|
+
export function createProxyOptionsFromDiscriminatorValue(parseNode) {
|
|
499
|
+
return deserializeIntoProxyOptions;
|
|
450
500
|
}
|
|
451
501
|
/**
|
|
452
502
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
453
503
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
454
|
-
* @returns {
|
|
504
|
+
* @returns {ProxyPingResponse}
|
|
455
505
|
*/
|
|
456
506
|
// @ts-ignore
|
|
457
|
-
export function
|
|
458
|
-
return
|
|
507
|
+
export function createProxyPingResponseFromDiscriminatorValue(parseNode) {
|
|
508
|
+
return deserializeIntoProxyPingResponse;
|
|
459
509
|
}
|
|
460
510
|
/**
|
|
461
511
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
462
512
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
463
|
-
* @returns {
|
|
513
|
+
* @returns {ProxyProduct}
|
|
464
514
|
*/
|
|
465
515
|
// @ts-ignore
|
|
466
|
-
export function
|
|
467
|
-
return
|
|
516
|
+
export function createProxyProductFromDiscriminatorValue(parseNode) {
|
|
517
|
+
return deserializeIntoProxyProduct;
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
521
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
522
|
+
* @returns {RequestDetails}
|
|
523
|
+
*/
|
|
524
|
+
// @ts-ignore
|
|
525
|
+
export function createRequestDetailsFromDiscriminatorValue(parseNode) {
|
|
526
|
+
return deserializeIntoRequestDetails;
|
|
468
527
|
}
|
|
469
528
|
/**
|
|
470
529
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
471
530
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
472
|
-
* @returns {
|
|
531
|
+
* @returns {ResetPasswordResponse}
|
|
473
532
|
*/
|
|
474
533
|
// @ts-ignore
|
|
475
|
-
export function
|
|
476
|
-
return
|
|
534
|
+
export function createResetPasswordResponseFromDiscriminatorValue(parseNode) {
|
|
535
|
+
return deserializeIntoResetPasswordResponse;
|
|
477
536
|
}
|
|
478
537
|
/**
|
|
479
538
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
480
539
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
481
|
-
* @returns {
|
|
540
|
+
* @returns {ResolveIncidentRequest}
|
|
482
541
|
*/
|
|
483
542
|
// @ts-ignore
|
|
484
|
-
export function
|
|
485
|
-
return
|
|
543
|
+
export function createResolveIncidentRequestFromDiscriminatorValue(parseNode) {
|
|
544
|
+
return deserializeIntoResolveIncidentRequest;
|
|
486
545
|
}
|
|
487
546
|
/**
|
|
488
547
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
489
548
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
490
|
-
* @returns {
|
|
549
|
+
* @returns {Review_metadata}
|
|
550
|
+
*/
|
|
551
|
+
// @ts-ignore
|
|
552
|
+
export function createReview_metadataFromDiscriminatorValue(parseNode) {
|
|
553
|
+
return deserializeIntoReview_metadata;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
557
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
558
|
+
* @returns {Review}
|
|
559
|
+
*/
|
|
560
|
+
// @ts-ignore
|
|
561
|
+
export function createReviewFromDiscriminatorValue(parseNode) {
|
|
562
|
+
return deserializeIntoReview;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
566
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
567
|
+
* @returns {ReviewKycRequest}
|
|
491
568
|
*/
|
|
492
569
|
// @ts-ignore
|
|
493
|
-
export function
|
|
494
|
-
return
|
|
570
|
+
export function createReviewKycRequestFromDiscriminatorValue(parseNode) {
|
|
571
|
+
return deserializeIntoReviewKycRequest;
|
|
495
572
|
}
|
|
496
573
|
/**
|
|
497
574
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
498
575
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
499
|
-
* @returns {
|
|
576
|
+
* @returns {SendVerificationRequest}
|
|
500
577
|
*/
|
|
501
578
|
// @ts-ignore
|
|
502
|
-
export function
|
|
503
|
-
return
|
|
579
|
+
export function createSendVerificationRequestFromDiscriminatorValue(parseNode) {
|
|
580
|
+
return deserializeIntoSendVerificationRequest;
|
|
504
581
|
}
|
|
505
582
|
/**
|
|
506
583
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
507
584
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
508
|
-
* @returns {
|
|
585
|
+
* @returns {TrialOrderRequest}
|
|
509
586
|
*/
|
|
510
587
|
// @ts-ignore
|
|
511
|
-
export function
|
|
512
|
-
return
|
|
588
|
+
export function createTrialOrderRequestFromDiscriminatorValue(parseNode) {
|
|
589
|
+
return deserializeIntoTrialOrderRequest;
|
|
513
590
|
}
|
|
514
591
|
/**
|
|
515
592
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
516
593
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
517
|
-
* @returns {
|
|
594
|
+
* @returns {UpdateCustomerRequest_externalLogins}
|
|
518
595
|
*/
|
|
519
596
|
// @ts-ignore
|
|
520
|
-
export function
|
|
521
|
-
return
|
|
597
|
+
export function createUpdateCustomerRequest_externalLoginsFromDiscriminatorValue(parseNode) {
|
|
598
|
+
return deserializeIntoUpdateCustomerRequest_externalLogins;
|
|
522
599
|
}
|
|
523
600
|
/**
|
|
524
601
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
525
602
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
526
|
-
* @returns {
|
|
603
|
+
* @returns {UpdateCustomerRequest}
|
|
527
604
|
*/
|
|
528
605
|
// @ts-ignore
|
|
529
|
-
export function
|
|
530
|
-
return
|
|
606
|
+
export function createUpdateCustomerRequestFromDiscriminatorValue(parseNode) {
|
|
607
|
+
return deserializeIntoUpdateCustomerRequest;
|
|
531
608
|
}
|
|
532
609
|
/**
|
|
533
610
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
534
611
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
535
|
-
* @returns {
|
|
612
|
+
* @returns {UpdateProxyCredentialsRequest}
|
|
536
613
|
*/
|
|
537
614
|
// @ts-ignore
|
|
538
|
-
export function
|
|
539
|
-
return
|
|
615
|
+
export function createUpdateProxyCredentialsRequestFromDiscriminatorValue(parseNode) {
|
|
616
|
+
return deserializeIntoUpdateProxyCredentialsRequest;
|
|
540
617
|
}
|
|
541
618
|
/**
|
|
542
619
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
@@ -548,21 +625,13 @@ export function createUpdateProxyIpRotationRequestFromDiscriminatorValue(parseNo
|
|
|
548
625
|
return deserializeIntoUpdateProxyIpRotationRequest;
|
|
549
626
|
}
|
|
550
627
|
/**
|
|
551
|
-
*
|
|
552
|
-
* @param
|
|
553
|
-
* @returns {
|
|
628
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
629
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
630
|
+
* @returns {UpdateProxyOptionsRequest}
|
|
554
631
|
*/
|
|
555
632
|
// @ts-ignore
|
|
556
|
-
export function
|
|
557
|
-
return
|
|
558
|
-
"apiKeyId": n => { activity.apiKeyId = n.getGuidValue(); },
|
|
559
|
-
"endpoint": n => { activity.endpoint = n.getStringValue(); },
|
|
560
|
-
"id": n => { activity.id = n.getGuidValue(); },
|
|
561
|
-
"method": n => { activity.method = n.getStringValue(); },
|
|
562
|
-
"organizationId": n => { activity.organizationId = n.getGuidValue(); },
|
|
563
|
-
"requestBody": n => { activity.requestBody = n.getStringValue(); },
|
|
564
|
-
"statusCode": n => { activity.statusCode = n.getNumberValue(); },
|
|
565
|
-
};
|
|
633
|
+
export function createUpdateProxyOptionsRequestFromDiscriminatorValue(parseNode) {
|
|
634
|
+
return deserializeIntoUpdateProxyOptionsRequest;
|
|
566
635
|
}
|
|
567
636
|
/**
|
|
568
637
|
* The deserialization information for the current model
|
|
@@ -578,84 +647,134 @@ export function deserializeIntoAnnouncement(announcement = {}) {
|
|
|
578
647
|
"isLive": n => { announcement.isLive = n.getBooleanValue(); },
|
|
579
648
|
"linkLabel": n => { announcement.linkLabel = n.getStringValue(); },
|
|
580
649
|
"linkUrl": n => { announcement.linkUrl = n.getStringValue(); },
|
|
650
|
+
"metadata": n => { announcement.metadata = n.getObjectValue(createAnnouncement_metadataFromDiscriminatorValue); },
|
|
581
651
|
"status": n => { announcement.status = n.getEnumValue(AnnouncementStatusesObject); },
|
|
582
652
|
"title": n => { announcement.title = n.getStringValue(); },
|
|
583
653
|
};
|
|
584
654
|
}
|
|
585
655
|
/**
|
|
586
656
|
* The deserialization information for the current model
|
|
587
|
-
* @param
|
|
657
|
+
* @param Announcement_metadata The instance to deserialize into.
|
|
588
658
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
589
659
|
*/
|
|
590
660
|
// @ts-ignore
|
|
591
|
-
export function
|
|
661
|
+
export function deserializeIntoAnnouncement_metadata(announcement_metadata = {}) {
|
|
662
|
+
return {};
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* The deserialization information for the current model
|
|
666
|
+
* @param ApiError The instance to deserialize into.
|
|
667
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
668
|
+
*/
|
|
669
|
+
// @ts-ignore
|
|
670
|
+
export function deserializeIntoApiError(apiError = {}) {
|
|
592
671
|
return {
|
|
593
|
-
"
|
|
594
|
-
"
|
|
595
|
-
"password": n => { authenticateCustomerRequest.password = n.getStringValue(); },
|
|
672
|
+
"code": n => { apiError.code = n.getStringValue(); },
|
|
673
|
+
"description": n => { apiError.description = n.getStringValue(); },
|
|
596
674
|
};
|
|
597
675
|
}
|
|
598
676
|
/**
|
|
599
677
|
* The deserialization information for the current model
|
|
600
|
-
* @param
|
|
678
|
+
* @param ApiResponse The instance to deserialize into.
|
|
601
679
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
602
680
|
*/
|
|
603
681
|
// @ts-ignore
|
|
604
|
-
export function
|
|
682
|
+
export function deserializeIntoApiResponse(apiResponse = {}) {
|
|
605
683
|
return {
|
|
606
|
-
"
|
|
607
|
-
"
|
|
608
|
-
"
|
|
684
|
+
"data": n => { apiResponse.data = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
685
|
+
"errors": n => { apiResponse.errors = n.getCollectionOfObjectValues(createApiErrorFromDiscriminatorValue); },
|
|
686
|
+
"message": n => { apiResponse.messageEscaped = n.getStringValue(); },
|
|
687
|
+
"requestDetails": n => { apiResponse.requestDetails = n.getObjectValue(createRequestDetailsFromDiscriminatorValue); },
|
|
688
|
+
"statusCode": n => { apiResponse.statusCode = n.getNumberValue(); },
|
|
609
689
|
};
|
|
610
690
|
}
|
|
611
691
|
/**
|
|
612
692
|
* The deserialization information for the current model
|
|
613
|
-
* @param
|
|
693
|
+
* @param AuthenticateCustomerOAuthRequest The instance to deserialize into.
|
|
614
694
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
615
695
|
*/
|
|
616
696
|
// @ts-ignore
|
|
617
|
-
export function
|
|
697
|
+
export function deserializeIntoAuthenticateCustomerOAuthRequest(authenticateCustomerOAuthRequest = {}) {
|
|
618
698
|
return {
|
|
619
|
-
"
|
|
620
|
-
"
|
|
621
|
-
"
|
|
699
|
+
"displayName": n => { authenticateCustomerOAuthRequest.displayName = n.getStringValue(); },
|
|
700
|
+
"email": n => { authenticateCustomerOAuthRequest.email = n.getStringValue(); },
|
|
701
|
+
"locale": n => { authenticateCustomerOAuthRequest.locale = n.getStringValue(); },
|
|
702
|
+
"provider": n => { authenticateCustomerOAuthRequest.provider = n.getStringValue(); },
|
|
703
|
+
"providerId": n => { authenticateCustomerOAuthRequest.providerId = n.getStringValue(); },
|
|
704
|
+
"pushNotificationsToken": n => { authenticateCustomerOAuthRequest.pushNotificationsToken = n.getStringValue(); },
|
|
622
705
|
};
|
|
623
706
|
}
|
|
624
707
|
/**
|
|
625
708
|
* The deserialization information for the current model
|
|
626
|
-
* @param
|
|
709
|
+
* @param AuthenticateCustomerRequest The instance to deserialize into.
|
|
627
710
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
628
711
|
*/
|
|
629
712
|
// @ts-ignore
|
|
630
|
-
export function
|
|
713
|
+
export function deserializeIntoAuthenticateCustomerRequest(authenticateCustomerRequest = {}) {
|
|
631
714
|
return {
|
|
632
|
-
"
|
|
633
|
-
"
|
|
634
|
-
"
|
|
635
|
-
"externalId": n => { createCustomerRequest.externalId = n.getStringValue(); },
|
|
636
|
-
"locale": n => { createCustomerRequest.locale = n.getStringValue(); },
|
|
637
|
-
"password": n => { createCustomerRequest.password = n.getStringValue(); },
|
|
638
|
-
"phoneNumber": n => { createCustomerRequest.phoneNumber = n.getStringValue(); },
|
|
715
|
+
"email": n => { authenticateCustomerRequest.email = n.getStringValue(); },
|
|
716
|
+
"otp": n => { authenticateCustomerRequest.otp = n.getStringValue(); },
|
|
717
|
+
"password": n => { authenticateCustomerRequest.password = n.getStringValue(); },
|
|
639
718
|
};
|
|
640
719
|
}
|
|
641
720
|
/**
|
|
642
721
|
* The deserialization information for the current model
|
|
643
|
-
* @param
|
|
722
|
+
* @param AuthenticateCustomerTelegramRequest The instance to deserialize into.
|
|
644
723
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
645
724
|
*/
|
|
646
725
|
// @ts-ignore
|
|
647
|
-
export function
|
|
648
|
-
return {
|
|
726
|
+
export function deserializeIntoAuthenticateCustomerTelegramRequest(authenticateCustomerTelegramRequest = {}) {
|
|
727
|
+
return {
|
|
728
|
+
"telegramUserId": n => { authenticateCustomerTelegramRequest.telegramUserId = n.getStringValue(); },
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* The deserialization information for the current model
|
|
733
|
+
* @param CancelOrderRequest The instance to deserialize into.
|
|
734
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
735
|
+
*/
|
|
736
|
+
// @ts-ignore
|
|
737
|
+
export function deserializeIntoCancelOrderRequest(cancelOrderRequest = {}) {
|
|
738
|
+
return {
|
|
739
|
+
"askRefund": n => { cancelOrderRequest.askRefund = n.getBooleanValue(); },
|
|
740
|
+
"immediateCancellation": n => { cancelOrderRequest.immediateCancellation = n.getBooleanValue(); },
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* The deserialization information for the current model
|
|
745
|
+
* @param Capability The instance to deserialize into.
|
|
746
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
747
|
+
*/
|
|
748
|
+
// @ts-ignore
|
|
749
|
+
export function deserializeIntoCapability(capability = {}) {
|
|
750
|
+
return {
|
|
751
|
+
"availableProxies": n => { capability.availableProxies = n.getNumberValue(); },
|
|
752
|
+
"basePrice": n => { capability.basePrice = n.getNumberValue(); },
|
|
753
|
+
"description": n => { capability.description = n.getStringValue(); },
|
|
754
|
+
"id": n => { capability.id = n.getGuidValue(); },
|
|
755
|
+
"isDisabled": n => { capability.isDisabled = n.getBooleanValue(); },
|
|
756
|
+
"name": n => { capability.name = n.getStringValue(); },
|
|
757
|
+
"price": n => { capability.price = n.getNumberValue(); },
|
|
758
|
+
"retailPrice": n => { capability.retailPrice = n.getNumberValue(); },
|
|
759
|
+
"type": n => { capability.type = n.getEnumValue(CapabilityTypesObject); },
|
|
760
|
+
};
|
|
649
761
|
}
|
|
650
762
|
/**
|
|
651
763
|
* The deserialization information for the current model
|
|
652
|
-
* @param
|
|
764
|
+
* @param CreateCustomerRequest The instance to deserialize into.
|
|
653
765
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
654
766
|
*/
|
|
655
767
|
// @ts-ignore
|
|
656
|
-
export function
|
|
768
|
+
export function deserializeIntoCreateCustomerRequest(createCustomerRequest = {}) {
|
|
657
769
|
return {
|
|
658
|
-
"
|
|
770
|
+
"billing": n => { createCustomerRequest.billing = n.getObjectValue(createCustomerBillingFromDiscriminatorValue); },
|
|
771
|
+
"displayName": n => { createCustomerRequest.displayName = n.getStringValue(); },
|
|
772
|
+
"email": n => { createCustomerRequest.email = n.getStringValue(); },
|
|
773
|
+
"externalId": n => { createCustomerRequest.externalId = n.getStringValue(); },
|
|
774
|
+
"locale": n => { createCustomerRequest.locale = n.getStringValue(); },
|
|
775
|
+
"password": n => { createCustomerRequest.password = n.getStringValue(); },
|
|
776
|
+
"phoneNumber": n => { createCustomerRequest.phoneNumber = n.getStringValue(); },
|
|
777
|
+
"verificationUrl": n => { createCustomerRequest.verificationUrl = n.getStringValue(); },
|
|
659
778
|
};
|
|
660
779
|
}
|
|
661
780
|
/**
|
|
@@ -680,12 +799,11 @@ export function deserializeIntoCreateIncidentRequest(createIncidentRequest = {})
|
|
|
680
799
|
// @ts-ignore
|
|
681
800
|
export function deserializeIntoCreateOrderRequest(createOrderRequest = {}) {
|
|
682
801
|
return {
|
|
683
|
-
"
|
|
684
|
-
"
|
|
685
|
-
"
|
|
686
|
-
"
|
|
687
|
-
"
|
|
688
|
-
"productId": n => { createOrderRequest.productId = n.getGuidValue(); },
|
|
802
|
+
"criteria": n => { createOrderRequest.criteria = n.getObjectValue(createOrderCriteriaFromDiscriminatorValue); },
|
|
803
|
+
"customerId": n => { createOrderRequest.customerId = n.getGuidValue(); },
|
|
804
|
+
"externalReference": n => { createOrderRequest.externalReference = n.getStringValue(); },
|
|
805
|
+
"intent": n => { createOrderRequest.intent = n.getEnumValue(OrderIntentsObject); },
|
|
806
|
+
"isAutoRenew": n => { createOrderRequest.isAutoRenew = n.getBooleanValue(); },
|
|
689
807
|
"quantity": n => { createOrderRequest.quantity = n.getNumberValue(); },
|
|
690
808
|
};
|
|
691
809
|
}
|
|
@@ -697,25 +815,8 @@ export function deserializeIntoCreateOrderRequest(createOrderRequest = {}) {
|
|
|
697
815
|
// @ts-ignore
|
|
698
816
|
export function deserializeIntoCreateOrderResponse(createOrderResponse = {}) {
|
|
699
817
|
return {
|
|
700
|
-
"currency": n => { createOrderResponse.currency = n.getStringValue(); },
|
|
701
|
-
"isTrial": n => { createOrderResponse.isTrial = n.getBooleanValue(); },
|
|
702
818
|
"orderId": n => { createOrderResponse.orderId = n.getGuidValue(); },
|
|
703
|
-
"quantity": n => { createOrderResponse.quantity = n.getNumberValue(); },
|
|
704
819
|
"returnUrl": n => { createOrderResponse.returnUrl = n.getStringValue(); },
|
|
705
|
-
"total": n => { createOrderResponse.total = n.getNumberValue(); },
|
|
706
|
-
"unitPrice": n => { createOrderResponse.unitPrice = n.getNumberValue(); },
|
|
707
|
-
};
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* The deserialization information for the current model
|
|
711
|
-
* @param CreateOrganizationRequest The instance to deserialize into.
|
|
712
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
713
|
-
*/
|
|
714
|
-
// @ts-ignore
|
|
715
|
-
export function deserializeIntoCreateOrganizationRequest(createOrganizationRequest = {}) {
|
|
716
|
-
return {
|
|
717
|
-
"companyName": n => { createOrganizationRequest.companyName = n.getStringValue(); },
|
|
718
|
-
"name": n => { createOrganizationRequest.name = n.getStringValue(); },
|
|
719
820
|
};
|
|
720
821
|
}
|
|
721
822
|
/**
|
|
@@ -735,15 +836,15 @@ export function deserializeIntoCreateReviewRequest(createReviewRequest = {}) {
|
|
|
735
836
|
}
|
|
736
837
|
/**
|
|
737
838
|
* The deserialization information for the current model
|
|
738
|
-
* @param
|
|
839
|
+
* @param CreateTrialResponse The instance to deserialize into.
|
|
739
840
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
740
841
|
*/
|
|
741
842
|
// @ts-ignore
|
|
742
|
-
export function
|
|
843
|
+
export function deserializeIntoCreateTrialResponse(createTrialResponse = {}) {
|
|
743
844
|
return {
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
"
|
|
845
|
+
"expiresAt": n => { createTrialResponse.expiresAt = n.getDateValue(); },
|
|
846
|
+
"orderId": n => { createTrialResponse.orderId = n.getGuidValue(); },
|
|
847
|
+
"quantity": n => { createTrialResponse.quantity = n.getNumberValue(); },
|
|
747
848
|
};
|
|
748
849
|
}
|
|
749
850
|
/**
|
|
@@ -754,20 +855,26 @@ export function deserializeIntoCurrencyAmount(currencyAmount = {}) {
|
|
|
754
855
|
// @ts-ignore
|
|
755
856
|
export function deserializeIntoCustomer(customer = {}) {
|
|
756
857
|
return {
|
|
858
|
+
"allowedDomains": n => { customer.allowedDomains = n.getCollectionOfPrimitiveValues("string"); },
|
|
859
|
+
"allowedIps": n => { customer.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
|
|
757
860
|
"avatarUrl": n => { customer.avatarUrl = n.getStringValue(); },
|
|
758
861
|
"bannedAt": n => { customer.bannedAt = n.getDateValue(); },
|
|
759
|
-
"
|
|
862
|
+
"billing": n => { customer.billing = n.getObjectValue(createCustomerBillingFromDiscriminatorValue); },
|
|
863
|
+
"countryCode": n => { customer.countryCode = n.getStringValue(); },
|
|
760
864
|
"displayName": n => { customer.displayName = n.getStringValue(); },
|
|
761
865
|
"email": n => { customer.email = n.getStringValue(); },
|
|
762
866
|
"emailVerified": n => { customer.emailVerified = n.getBooleanValue(); },
|
|
763
867
|
"externalId": n => { customer.externalId = n.getStringValue(); },
|
|
764
868
|
"externalLogins": n => { customer.externalLogins = n.getObjectValue(createCustomer_externalLoginsFromDiscriminatorValue); },
|
|
869
|
+
"gracePeriodPolicy": n => { customer.gracePeriodPolicy = n.getEnumValue(GracePeriodPoliciesObject); },
|
|
765
870
|
"id": n => { customer.id = n.getGuidValue(); },
|
|
766
871
|
"isActive": n => { customer.isActive = n.getBooleanValue(); },
|
|
872
|
+
"isCompany": n => { customer.isCompany = n.getBooleanValue(); },
|
|
767
873
|
"kyc": n => { customer.kyc = n.getObjectValue(createCustomerKycFromDiscriminatorValue); },
|
|
768
874
|
"lastLoginAt": n => { customer.lastLoginAt = n.getDateValue(); },
|
|
769
875
|
"locale": n => { customer.locale = n.getStringValue(); },
|
|
770
|
-
"
|
|
876
|
+
"metadata": n => { customer.metadata = n.getObjectValue(createCustomer_metadataFromDiscriminatorValue); },
|
|
877
|
+
"passwordHashScheme": n => { customer.passwordHashScheme = n.getEnumValue(PasswordHashSchemesObject); },
|
|
771
878
|
"paymentCustomerId": n => { customer.paymentCustomerId = n.getStringValue(); },
|
|
772
879
|
"phoneNumber": n => { customer.phoneNumber = n.getStringValue(); },
|
|
773
880
|
"pushNotificationsToken": n => { customer.pushNotificationsToken = n.getStringValue(); },
|
|
@@ -775,22 +882,58 @@ export function deserializeIntoCustomer(customer = {}) {
|
|
|
775
882
|
}
|
|
776
883
|
/**
|
|
777
884
|
* The deserialization information for the current model
|
|
778
|
-
* @param
|
|
885
|
+
* @param Customer_externalLogins The instance to deserialize into.
|
|
779
886
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
780
887
|
*/
|
|
781
888
|
// @ts-ignore
|
|
782
|
-
export function
|
|
889
|
+
export function deserializeIntoCustomer_externalLogins(customer_externalLogins = {}) {
|
|
783
890
|
return {};
|
|
784
891
|
}
|
|
785
892
|
/**
|
|
786
893
|
* The deserialization information for the current model
|
|
787
|
-
* @param
|
|
894
|
+
* @param Customer_metadata The instance to deserialize into.
|
|
788
895
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
789
896
|
*/
|
|
790
897
|
// @ts-ignore
|
|
791
|
-
export function
|
|
898
|
+
export function deserializeIntoCustomer_metadata(customer_metadata = {}) {
|
|
792
899
|
return {};
|
|
793
900
|
}
|
|
901
|
+
/**
|
|
902
|
+
* The deserialization information for the current model
|
|
903
|
+
* @param CustomerAuthResponse The instance to deserialize into.
|
|
904
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
905
|
+
*/
|
|
906
|
+
// @ts-ignore
|
|
907
|
+
export function deserializeIntoCustomerAuthResponse(customerAuthResponse = {}) {
|
|
908
|
+
return {
|
|
909
|
+
"accessToken": n => { customerAuthResponse.accessToken = n.getStringValue(); },
|
|
910
|
+
"avatar": n => { customerAuthResponse.avatar = n.getStringValue(); },
|
|
911
|
+
"email": n => { customerAuthResponse.email = n.getStringValue(); },
|
|
912
|
+
"expiresAt": n => { customerAuthResponse.expiresAt = n.getDateValue(); },
|
|
913
|
+
"isBanned": n => { customerAuthResponse.isBanned = n.getBooleanValue(); },
|
|
914
|
+
"locale": n => { customerAuthResponse.locale = n.getStringValue(); },
|
|
915
|
+
"name": n => { customerAuthResponse.name = n.getStringValue(); },
|
|
916
|
+
"userId": n => { customerAuthResponse.userId = n.getGuidValue(); },
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* The deserialization information for the current model
|
|
921
|
+
* @param CustomerBilling The instance to deserialize into.
|
|
922
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
923
|
+
*/
|
|
924
|
+
// @ts-ignore
|
|
925
|
+
export function deserializeIntoCustomerBilling(customerBilling = {}) {
|
|
926
|
+
return {
|
|
927
|
+
"addressLine": n => { customerBilling.addressLine = n.getStringValue(); },
|
|
928
|
+
"city": n => { customerBilling.city = n.getStringValue(); },
|
|
929
|
+
"companyName": n => { customerBilling.companyName = n.getStringValue(); },
|
|
930
|
+
"country": n => { customerBilling.country = n.getStringValue(); },
|
|
931
|
+
"isCompany": n => { customerBilling.isCompany = n.getBooleanValue(); },
|
|
932
|
+
"postalCode": n => { customerBilling.postalCode = n.getStringValue(); },
|
|
933
|
+
"registrationNumber": n => { customerBilling.registrationNumber = n.getStringValue(); },
|
|
934
|
+
"taxId": n => { customerBilling.taxId = n.getStringValue(); },
|
|
935
|
+
};
|
|
936
|
+
}
|
|
794
937
|
/**
|
|
795
938
|
* The deserialization information for the current model
|
|
796
939
|
* @param CustomerKyc The instance to deserialize into.
|
|
@@ -808,38 +951,45 @@ export function deserializeIntoCustomerKyc(customerKyc = {}) {
|
|
|
808
951
|
}
|
|
809
952
|
/**
|
|
810
953
|
* The deserialization information for the current model
|
|
811
|
-
* @param
|
|
954
|
+
* @param Datacenter The instance to deserialize into.
|
|
812
955
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
813
956
|
*/
|
|
814
957
|
// @ts-ignore
|
|
815
|
-
export function
|
|
958
|
+
export function deserializeIntoDatacenter(datacenter = {}) {
|
|
816
959
|
return {
|
|
817
|
-
"
|
|
818
|
-
"
|
|
819
|
-
"
|
|
960
|
+
"availableProxies": n => { datacenter.availableProxies = n.getNumberValue(); },
|
|
961
|
+
"basePrice": n => { datacenter.basePrice = n.getNumberValue(); },
|
|
962
|
+
"countryCode": n => { datacenter.countryCode = n.getStringValue(); },
|
|
963
|
+
"id": n => { datacenter.id = n.getGuidValue(); },
|
|
964
|
+
"isDisabled": n => { datacenter.isDisabled = n.getBooleanValue(); },
|
|
965
|
+
"location": n => { datacenter.location = n.getStringValue(); },
|
|
966
|
+
"name": n => { datacenter.name = n.getStringValue(); },
|
|
967
|
+
"price": n => { datacenter.price = n.getNumberValue(); },
|
|
968
|
+
"retailPrice": n => { datacenter.retailPrice = n.getNumberValue(); },
|
|
820
969
|
};
|
|
821
970
|
}
|
|
822
971
|
/**
|
|
823
972
|
* The deserialization information for the current model
|
|
824
|
-
* @param
|
|
973
|
+
* @param ExtendOrderRequest The instance to deserialize into.
|
|
825
974
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
826
975
|
*/
|
|
827
976
|
// @ts-ignore
|
|
828
|
-
export function
|
|
977
|
+
export function deserializeIntoExtendOrderRequest(extendOrderRequest = {}) {
|
|
829
978
|
return {
|
|
830
|
-
"
|
|
979
|
+
"billingCycle": n => { extendOrderRequest.billingCycle = n.getEnumValue(BillingCyclesObject); },
|
|
980
|
+
"paymentMethod": n => { extendOrderRequest.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
|
|
831
981
|
};
|
|
832
982
|
}
|
|
833
983
|
/**
|
|
834
984
|
* The deserialization information for the current model
|
|
835
|
-
* @param
|
|
985
|
+
* @param ExtendOrderResponse The instance to deserialize into.
|
|
836
986
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
837
987
|
*/
|
|
838
988
|
// @ts-ignore
|
|
839
|
-
export function
|
|
989
|
+
export function deserializeIntoExtendOrderResponse(extendOrderResponse = {}) {
|
|
840
990
|
return {
|
|
841
|
-
"
|
|
842
|
-
"
|
|
991
|
+
"orderId": n => { extendOrderResponse.orderId = n.getGuidValue(); },
|
|
992
|
+
"returnUrl": n => { extendOrderResponse.returnUrl = n.getStringValue(); },
|
|
843
993
|
};
|
|
844
994
|
}
|
|
845
995
|
/**
|
|
@@ -852,8 +1002,9 @@ export function deserializeIntoIncident(incident = {}) {
|
|
|
852
1002
|
return {
|
|
853
1003
|
"description": n => { incident.description = n.getStringValue(); },
|
|
854
1004
|
"id": n => { incident.id = n.getGuidValue(); },
|
|
855
|
-
"
|
|
856
|
-
"
|
|
1005
|
+
"isOverdue": n => { incident.isOverdue = n.getBooleanValue(); },
|
|
1006
|
+
"metadata": n => { incident.metadata = n.getObjectValue(createIncident_metadataFromDiscriminatorValue); },
|
|
1007
|
+
"reason": n => { incident.reason = n.getStringValue(); },
|
|
857
1008
|
"reporterEmail": n => { incident.reporterEmail = n.getStringValue(); },
|
|
858
1009
|
"resolutionNote": n => { incident.resolutionNote = n.getStringValue(); },
|
|
859
1010
|
"resolvedAt": n => { incident.resolvedAt = n.getDateValue(); },
|
|
@@ -862,6 +1013,51 @@ export function deserializeIntoIncident(incident = {}) {
|
|
|
862
1013
|
"target": n => { incident.target = n.getStringValue(); },
|
|
863
1014
|
};
|
|
864
1015
|
}
|
|
1016
|
+
/**
|
|
1017
|
+
* The deserialization information for the current model
|
|
1018
|
+
* @param Incident_metadata The instance to deserialize into.
|
|
1019
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1020
|
+
*/
|
|
1021
|
+
// @ts-ignore
|
|
1022
|
+
export function deserializeIntoIncident_metadata(incident_metadata = {}) {
|
|
1023
|
+
return {};
|
|
1024
|
+
}
|
|
1025
|
+
/**
|
|
1026
|
+
* The deserialization information for the current model
|
|
1027
|
+
* @param IpInformation The instance to deserialize into.
|
|
1028
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1029
|
+
*/
|
|
1030
|
+
// @ts-ignore
|
|
1031
|
+
export function deserializeIntoIpInformation(ipInformation = {}) {
|
|
1032
|
+
return {
|
|
1033
|
+
"asn": n => { ipInformation.asn = n.getStringValue(); },
|
|
1034
|
+
"asnDomain": n => { ipInformation.asnDomain = n.getStringValue(); },
|
|
1035
|
+
"asnLogo": n => { ipInformation.asnLogo = n.getStringValue(); },
|
|
1036
|
+
"continent": n => { ipInformation.continent = n.getStringValue(); },
|
|
1037
|
+
"continentCode": n => { ipInformation.continentCode = n.getStringValue(); },
|
|
1038
|
+
"country": n => { ipInformation.country = n.getStringValue(); },
|
|
1039
|
+
"countryCode": n => { ipInformation.countryCode = n.getStringValue(); },
|
|
1040
|
+
"countryFlag": n => { ipInformation.countryFlag = n.getStringValue(); },
|
|
1041
|
+
"countryFlagUrl": n => { ipInformation.countryFlagUrl = n.getStringValue(); },
|
|
1042
|
+
"currencyCode": n => { ipInformation.currencyCode = n.getStringValue(); },
|
|
1043
|
+
"currencySymbol": n => { ipInformation.currencySymbol = n.getStringValue(); },
|
|
1044
|
+
"ipAddress": n => { ipInformation.ipAddress = n.getStringValue(); },
|
|
1045
|
+
"isAnycast": n => { ipInformation.isAnycast = n.getBooleanValue(); },
|
|
1046
|
+
"isp": n => { ipInformation.isp = n.getStringValue(); },
|
|
1047
|
+
};
|
|
1048
|
+
}
|
|
1049
|
+
/**
|
|
1050
|
+
* The deserialization information for the current model
|
|
1051
|
+
* @param IpRotationLinkResponse The instance to deserialize into.
|
|
1052
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1053
|
+
*/
|
|
1054
|
+
// @ts-ignore
|
|
1055
|
+
export function deserializeIntoIpRotationLinkResponse(ipRotationLinkResponse = {}) {
|
|
1056
|
+
return {
|
|
1057
|
+
"link": n => { ipRotationLinkResponse.link = n.getStringValue(); },
|
|
1058
|
+
"token": n => { ipRotationLinkResponse.token = n.getStringValue(); },
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
865
1061
|
/**
|
|
866
1062
|
* The deserialization information for the current model
|
|
867
1063
|
* @param Isp The instance to deserialize into.
|
|
@@ -871,12 +1067,13 @@ export function deserializeIntoIncident(incident = {}) {
|
|
|
871
1067
|
export function deserializeIntoIsp(isp = {}) {
|
|
872
1068
|
return {
|
|
873
1069
|
"availableProxies": n => { isp.availableProxies = n.getNumberValue(); },
|
|
874
|
-
"
|
|
1070
|
+
"basePrice": n => { isp.basePrice = n.getNumberValue(); },
|
|
1071
|
+
"id": n => { isp.id = n.getGuidValue(); },
|
|
875
1072
|
"isDisabled": n => { isp.isDisabled = n.getBooleanValue(); },
|
|
876
1073
|
"logoUrl": n => { isp.logoUrl = n.getStringValue(); },
|
|
877
1074
|
"name": n => { isp.name = n.getStringValue(); },
|
|
878
1075
|
"price": n => { isp.price = n.getNumberValue(); },
|
|
879
|
-
"
|
|
1076
|
+
"retailPrice": n => { isp.retailPrice = n.getNumberValue(); },
|
|
880
1077
|
};
|
|
881
1078
|
}
|
|
882
1079
|
/**
|
|
@@ -889,542 +1086,536 @@ export function deserializeIntoLocation(location = {}) {
|
|
|
889
1086
|
return {
|
|
890
1087
|
"availableIsps": n => { location.availableIsps = n.getNumberValue(); },
|
|
891
1088
|
"availableProxies": n => { location.availableProxies = n.getNumberValue(); },
|
|
1089
|
+
"basePrice": n => { location.basePrice = n.getNumberValue(); },
|
|
892
1090
|
"city": n => { location.city = n.getStringValue(); },
|
|
893
1091
|
"countryCode": n => { location.countryCode = n.getStringValue(); },
|
|
894
|
-
"id": n => { location.id = n.
|
|
1092
|
+
"id": n => { location.id = n.getGuidValue(); },
|
|
895
1093
|
"isDisabled": n => { location.isDisabled = n.getBooleanValue(); },
|
|
1094
|
+
"name": n => { location.name = n.getStringValue(); },
|
|
896
1095
|
"price": n => { location.price = n.getNumberValue(); },
|
|
897
|
-
"
|
|
1096
|
+
"retailPrice": n => { location.retailPrice = n.getNumberValue(); },
|
|
898
1097
|
};
|
|
899
1098
|
}
|
|
900
1099
|
/**
|
|
901
1100
|
* The deserialization information for the current model
|
|
902
|
-
* @param
|
|
1101
|
+
* @param Order The instance to deserialize into.
|
|
903
1102
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
904
1103
|
*/
|
|
905
1104
|
// @ts-ignore
|
|
906
|
-
export function
|
|
1105
|
+
export function deserializeIntoOrder(order = {}) {
|
|
907
1106
|
return {
|
|
908
|
-
"
|
|
909
|
-
"
|
|
910
|
-
"
|
|
911
|
-
"
|
|
912
|
-
"
|
|
1107
|
+
"billingCycle": n => { order.billingCycle = n.getEnumValue(BillingCyclesObject); },
|
|
1108
|
+
"customerId": n => { order.customerId = n.getGuidValue(); },
|
|
1109
|
+
"expiresAt": n => { order.expiresAt = n.getDateValue(); },
|
|
1110
|
+
"externalReference": n => { order.externalReference = n.getStringValue(); },
|
|
1111
|
+
"id": n => { order.id = n.getGuidValue(); },
|
|
1112
|
+
"intent": n => { order.intent = n.getEnumValue(OrderIntentsObject); },
|
|
1113
|
+
"isActive": n => { order.isActive = n.getBooleanValue(); },
|
|
1114
|
+
"isAutoRenew": n => { order.isAutoRenew = n.getBooleanValue(); },
|
|
1115
|
+
"isExpiringSoon": n => { order.isExpiringSoon = n.getBooleanValue(); },
|
|
1116
|
+
"isInactive": n => { order.isInactive = n.getBooleanValue(); },
|
|
1117
|
+
"isTrial": n => { order.isTrial = n.getBooleanValue(); },
|
|
1118
|
+
"items": n => { order.items = n.getCollectionOfObjectValues(createOrderItemFromDiscriminatorValue); },
|
|
1119
|
+
"lastSettlementReference": n => { order.lastSettlementReference = n.getStringValue(); },
|
|
1120
|
+
"lastTransactionId": n => { order.lastTransactionId = n.getGuidValue(); },
|
|
1121
|
+
"metadata": n => { order.metadata = n.getObjectValue(createOrder_metadataFromDiscriminatorValue); },
|
|
1122
|
+
"paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
|
|
1123
|
+
"paymentProcessor": n => { order.paymentProcessor = n.getEnumValue(PaymentProcessorsObject); },
|
|
1124
|
+
"processorReference": n => { order.processorReference = n.getStringValue(); },
|
|
1125
|
+
"quantity": n => { order.quantity = n.getNumberValue(); },
|
|
1126
|
+
"status": n => { order.status = n.getEnumValue(OrderStatusesObject); },
|
|
913
1127
|
};
|
|
914
1128
|
}
|
|
915
1129
|
/**
|
|
916
1130
|
* The deserialization information for the current model
|
|
917
|
-
* @param
|
|
1131
|
+
* @param Order_metadata The instance to deserialize into.
|
|
918
1132
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
919
1133
|
*/
|
|
920
1134
|
// @ts-ignore
|
|
921
|
-
export function
|
|
922
|
-
return {
|
|
923
|
-
"members": n => { membersResponse.members = n.getCollectionOfObjectValues(createMemberFromDiscriminatorValue); },
|
|
924
|
-
};
|
|
1135
|
+
export function deserializeIntoOrder_metadata(order_metadata = {}) {
|
|
1136
|
+
return {};
|
|
925
1137
|
}
|
|
926
1138
|
/**
|
|
927
1139
|
* The deserialization information for the current model
|
|
928
|
-
* @param
|
|
1140
|
+
* @param OrderCriteria The instance to deserialize into.
|
|
929
1141
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
930
1142
|
*/
|
|
931
1143
|
// @ts-ignore
|
|
932
|
-
export function
|
|
1144
|
+
export function deserializeIntoOrderCriteria(orderCriteria = {}) {
|
|
933
1145
|
return {
|
|
934
|
-
"
|
|
935
|
-
"
|
|
936
|
-
"
|
|
937
|
-
"
|
|
938
|
-
"
|
|
939
|
-
"
|
|
940
|
-
"
|
|
941
|
-
"
|
|
942
|
-
"isTrial": n => { order.isTrial = n.getBooleanValue(); },
|
|
943
|
-
"paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
|
|
944
|
-
"productId": n => { order.productId = n.getGuidValue(); },
|
|
945
|
-
"quantity": n => { order.quantity = n.getNumberValue(); },
|
|
946
|
-
"status": n => { order.status = n.getEnumValue(OrderStatusesObject); },
|
|
947
|
-
"total": n => { order.total = n.getNumberValue(); },
|
|
948
|
-
"unitPrice": n => { order.unitPrice = n.getNumberValue(); },
|
|
1146
|
+
"billingCycle": n => { orderCriteria.billingCycle = n.getEnumValue(BillingCyclesObject); },
|
|
1147
|
+
"capabilities": n => { orderCriteria.capabilities = n.getCollectionOfEnumValues(CapabilityTypesObject); },
|
|
1148
|
+
"countryCode": n => { orderCriteria.countryCode = n.getStringValue(); },
|
|
1149
|
+
"datacenterId": n => { orderCriteria.datacenterId = n.getGuidValue(); },
|
|
1150
|
+
"ispId": n => { orderCriteria.ispId = n.getGuidValue(); },
|
|
1151
|
+
"locationId": n => { orderCriteria.locationId = n.getGuidValue(); },
|
|
1152
|
+
"paymentMethod": n => { orderCriteria.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
|
|
1153
|
+
"productId": n => { orderCriteria.productId = n.getGuidValue(); },
|
|
949
1154
|
};
|
|
950
1155
|
}
|
|
951
1156
|
/**
|
|
952
1157
|
* The deserialization information for the current model
|
|
953
|
-
* @param
|
|
1158
|
+
* @param OrderItem The instance to deserialize into.
|
|
954
1159
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
955
1160
|
*/
|
|
956
1161
|
// @ts-ignore
|
|
957
|
-
export function
|
|
1162
|
+
export function deserializeIntoOrderItem(orderItem = {}) {
|
|
958
1163
|
return {
|
|
959
|
-
"
|
|
960
|
-
"
|
|
961
|
-
"
|
|
962
|
-
"
|
|
963
|
-
"
|
|
964
|
-
"total": n => { orderPreviewResponse.total = n.getNumberValue(); },
|
|
965
|
-
"unitPrice": n => { orderPreviewResponse.unitPrice = n.getNumberValue(); },
|
|
1164
|
+
"id": n => { orderItem.id = n.getGuidValue(); },
|
|
1165
|
+
"kind": n => { orderItem.kind = n.getEnumValue(ProductKindsObject); },
|
|
1166
|
+
"metadata": n => { orderItem.metadata = n.getObjectValue(createOrderItem_metadataFromDiscriminatorValue); },
|
|
1167
|
+
"productId": n => { orderItem.productId = n.getGuidValue(); },
|
|
1168
|
+
"resourceIds": n => { orderItem.resourceIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
966
1169
|
};
|
|
967
1170
|
}
|
|
968
1171
|
/**
|
|
969
1172
|
* The deserialization information for the current model
|
|
970
|
-
* @param
|
|
1173
|
+
* @param OrderItem_metadata The instance to deserialize into.
|
|
971
1174
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
972
1175
|
*/
|
|
973
1176
|
// @ts-ignore
|
|
974
|
-
export function
|
|
975
|
-
return {
|
|
976
|
-
"billing": n => { orderRequirements.billing = n.getBooleanValue(); },
|
|
977
|
-
"canOrder": n => { orderRequirements.canOrder = n.getBooleanValue(); },
|
|
978
|
-
};
|
|
1177
|
+
export function deserializeIntoOrderItem_metadata(orderItem_metadata = {}) {
|
|
1178
|
+
return {};
|
|
979
1179
|
}
|
|
980
1180
|
/**
|
|
981
1181
|
* The deserialization information for the current model
|
|
982
|
-
* @param
|
|
1182
|
+
* @param PatchCustomerBillingRequest The instance to deserialize into.
|
|
983
1183
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
984
1184
|
*/
|
|
985
1185
|
// @ts-ignore
|
|
986
|
-
export function
|
|
1186
|
+
export function deserializeIntoPatchCustomerBillingRequest(patchCustomerBillingRequest = {}) {
|
|
987
1187
|
return {
|
|
988
|
-
"
|
|
989
|
-
"
|
|
990
|
-
"companyName": n => {
|
|
991
|
-
"
|
|
992
|
-
"
|
|
993
|
-
"
|
|
994
|
-
"
|
|
995
|
-
"
|
|
996
|
-
"memberCount": n => { organization.memberCount = n.getNumberValue(); },
|
|
997
|
-
"name": n => { organization.name = n.getStringValue(); },
|
|
998
|
-
"orderCount": n => { organization.orderCount = n.getNumberValue(); },
|
|
999
|
-
"requirements": n => { organization.requirements = n.getObjectValue(createOrderRequirementsFromDiscriminatorValue); },
|
|
1000
|
-
"tenantId": n => { organization.tenantId = n.getGuidValue(); },
|
|
1001
|
-
"terms": n => { organization.terms = n.getObjectValue(createOrganizationTermsFromDiscriminatorValue); },
|
|
1002
|
-
"type": n => { organization.type = n.getEnumValue(OrganizationTypesObject); },
|
|
1188
|
+
"addressLine": n => { patchCustomerBillingRequest.addressLine = n.getStringValue(); },
|
|
1189
|
+
"city": n => { patchCustomerBillingRequest.city = n.getStringValue(); },
|
|
1190
|
+
"companyName": n => { patchCustomerBillingRequest.companyName = n.getStringValue(); },
|
|
1191
|
+
"country": n => { patchCustomerBillingRequest.country = n.getStringValue(); },
|
|
1192
|
+
"isCompany": n => { patchCustomerBillingRequest.isCompany = n.getBooleanValue(); },
|
|
1193
|
+
"postalCode": n => { patchCustomerBillingRequest.postalCode = n.getStringValue(); },
|
|
1194
|
+
"registrationNumber": n => { patchCustomerBillingRequest.registrationNumber = n.getStringValue(); },
|
|
1195
|
+
"taxId": n => { patchCustomerBillingRequest.taxId = n.getStringValue(); },
|
|
1003
1196
|
};
|
|
1004
1197
|
}
|
|
1005
1198
|
/**
|
|
1006
1199
|
* The deserialization information for the current model
|
|
1007
|
-
* @param
|
|
1200
|
+
* @param PatchCustomerDefaultsRequest The instance to deserialize into.
|
|
1008
1201
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1009
1202
|
*/
|
|
1010
1203
|
// @ts-ignore
|
|
1011
|
-
export function
|
|
1204
|
+
export function deserializeIntoPatchCustomerDefaultsRequest(patchCustomerDefaultsRequest = {}) {
|
|
1012
1205
|
return {
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1015
|
-
"country": n => { organizationBilling.country = n.getStringValue(); },
|
|
1016
|
-
"email": n => { organizationBilling.email = n.getStringValue(); },
|
|
1017
|
-
"postalCode": n => { organizationBilling.postalCode = n.getStringValue(); },
|
|
1018
|
-
"taxId": n => { organizationBilling.taxId = n.getStringValue(); },
|
|
1206
|
+
"allowedDomains": n => { patchCustomerDefaultsRequest.allowedDomains = n.getCollectionOfPrimitiveValues("string"); },
|
|
1207
|
+
"allowedIps": n => { patchCustomerDefaultsRequest.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
|
|
1019
1208
|
};
|
|
1020
1209
|
}
|
|
1021
1210
|
/**
|
|
1022
1211
|
* The deserialization information for the current model
|
|
1023
|
-
* @param
|
|
1212
|
+
* @param PatchCustomerRequest The instance to deserialize into.
|
|
1024
1213
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1025
1214
|
*/
|
|
1026
1215
|
// @ts-ignore
|
|
1027
|
-
export function
|
|
1216
|
+
export function deserializeIntoPatchCustomerRequest(patchCustomerRequest = {}) {
|
|
1028
1217
|
return {
|
|
1029
|
-
"
|
|
1030
|
-
"city": n => { organizationBilling2.city = n.getStringValue(); },
|
|
1031
|
-
"country": n => { organizationBilling2.country = n.getStringValue(); },
|
|
1032
|
-
"email": n => { organizationBilling2.email = n.getStringValue(); },
|
|
1033
|
-
"postalCode": n => { organizationBilling2.postalCode = n.getStringValue(); },
|
|
1034
|
-
"taxId": n => { organizationBilling2.taxId = n.getStringValue(); },
|
|
1218
|
+
"isActive": n => { patchCustomerRequest.isActive = n.getBooleanValue(); },
|
|
1035
1219
|
};
|
|
1036
1220
|
}
|
|
1037
1221
|
/**
|
|
1038
1222
|
* The deserialization information for the current model
|
|
1039
|
-
* @param
|
|
1223
|
+
* @param PatchMetadataRequest The instance to deserialize into.
|
|
1040
1224
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1041
1225
|
*/
|
|
1042
1226
|
// @ts-ignore
|
|
1043
|
-
export function
|
|
1227
|
+
export function deserializeIntoPatchMetadataRequest(patchMetadataRequest = {}) {
|
|
1044
1228
|
return {
|
|
1045
|
-
"
|
|
1046
|
-
"iconUrl": n => { organizationBranding.iconUrl = n.getStringValue(); },
|
|
1047
|
-
"logo": n => { organizationBranding.logo = n.getStringValue(); },
|
|
1048
|
-
"logoDarkUrl": n => { organizationBranding.logoDarkUrl = n.getStringValue(); },
|
|
1049
|
-
"logoLightUrl": n => { organizationBranding.logoLightUrl = n.getStringValue(); },
|
|
1229
|
+
"metadata": n => { patchMetadataRequest.metadata = n.getObjectValue(createPatchMetadataRequest_metadataFromDiscriminatorValue); },
|
|
1050
1230
|
};
|
|
1051
1231
|
}
|
|
1052
1232
|
/**
|
|
1053
1233
|
* The deserialization information for the current model
|
|
1054
|
-
* @param
|
|
1234
|
+
* @param PatchMetadataRequest_metadata The instance to deserialize into.
|
|
1055
1235
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1056
1236
|
*/
|
|
1057
1237
|
// @ts-ignore
|
|
1058
|
-
export function
|
|
1059
|
-
return {
|
|
1060
|
-
"fromAddress": n => { organizationEmail.fromAddress = n.getStringValue(); },
|
|
1061
|
-
"isConfigured": n => { organizationEmail.isConfigured = n.getBooleanValue(); },
|
|
1062
|
-
"region": n => { organizationEmail.region = n.getEnumValue(MailgunRegionsObject); },
|
|
1063
|
-
"replyTo": n => { organizationEmail.replyTo = n.getStringValue(); },
|
|
1064
|
-
"sendingDomain": n => { organizationEmail.sendingDomain = n.getStringValue(); },
|
|
1065
|
-
};
|
|
1238
|
+
export function deserializeIntoPatchMetadataRequest_metadata(patchMetadataRequest_metadata = {}) {
|
|
1239
|
+
return {};
|
|
1066
1240
|
}
|
|
1067
1241
|
/**
|
|
1068
1242
|
* The deserialization information for the current model
|
|
1069
|
-
* @param
|
|
1243
|
+
* @param PatchPasswordRequest The instance to deserialize into.
|
|
1070
1244
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1071
1245
|
*/
|
|
1072
1246
|
// @ts-ignore
|
|
1073
|
-
export function
|
|
1247
|
+
export function deserializeIntoPatchPasswordRequest(patchPasswordRequest = {}) {
|
|
1074
1248
|
return {
|
|
1075
|
-
"
|
|
1076
|
-
"isConfigured": n => { organizationEmail2.isConfigured = n.getBooleanValue(); },
|
|
1077
|
-
"region": n => { organizationEmail2.region = n.getEnumValue(MailgunRegionsObject); },
|
|
1078
|
-
"replyTo": n => { organizationEmail2.replyTo = n.getStringValue(); },
|
|
1079
|
-
"sendingDomain": n => { organizationEmail2.sendingDomain = n.getStringValue(); },
|
|
1249
|
+
"password": n => { patchPasswordRequest.password = n.getStringValue(); },
|
|
1080
1250
|
};
|
|
1081
1251
|
}
|
|
1082
1252
|
/**
|
|
1083
1253
|
* The deserialization information for the current model
|
|
1084
|
-
* @param
|
|
1254
|
+
* @param PatchProxyAnnotationRequest The instance to deserialize into.
|
|
1085
1255
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1086
1256
|
*/
|
|
1087
1257
|
// @ts-ignore
|
|
1088
|
-
export function
|
|
1258
|
+
export function deserializeIntoPatchProxyAnnotationRequest(patchProxyAnnotationRequest = {}) {
|
|
1089
1259
|
return {
|
|
1090
|
-
"
|
|
1260
|
+
"note": n => { patchProxyAnnotationRequest.note = n.getStringValue(); },
|
|
1261
|
+
"tags": n => { patchProxyAnnotationRequest.tags = n.getCollectionOfPrimitiveValues("string"); },
|
|
1091
1262
|
};
|
|
1092
1263
|
}
|
|
1093
1264
|
/**
|
|
1094
1265
|
* The deserialization information for the current model
|
|
1095
|
-
* @param
|
|
1266
|
+
* @param PreviewOrderRequest The instance to deserialize into.
|
|
1096
1267
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1097
1268
|
*/
|
|
1098
1269
|
// @ts-ignore
|
|
1099
|
-
export function
|
|
1270
|
+
export function deserializeIntoPreviewOrderRequest(previewOrderRequest = {}) {
|
|
1100
1271
|
return {
|
|
1101
|
-
"
|
|
1272
|
+
"criteria": n => { previewOrderRequest.criteria = n.getObjectValue(createOrderCriteriaFromDiscriminatorValue); },
|
|
1273
|
+
"customerId": n => { previewOrderRequest.customerId = n.getGuidValue(); },
|
|
1274
|
+
"intent": n => { previewOrderRequest.intent = n.getEnumValue(OrderIntentsObject); },
|
|
1275
|
+
"quantity": n => { previewOrderRequest.quantity = n.getNumberValue(); },
|
|
1102
1276
|
};
|
|
1103
1277
|
}
|
|
1104
1278
|
/**
|
|
1105
1279
|
* The deserialization information for the current model
|
|
1106
|
-
* @param
|
|
1280
|
+
* @param PreviewOrderResponse The instance to deserialize into.
|
|
1107
1281
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1108
1282
|
*/
|
|
1109
1283
|
// @ts-ignore
|
|
1110
|
-
export function
|
|
1284
|
+
export function deserializeIntoPreviewOrderResponse(previewOrderResponse = {}) {
|
|
1111
1285
|
return {
|
|
1112
|
-
"
|
|
1113
|
-
"
|
|
1114
|
-
"
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1286
|
+
"availableProxies": n => { previewOrderResponse.availableProxies = n.getNumberValue(); },
|
|
1287
|
+
"currency": n => { previewOrderResponse.currency = n.getStringValue(); },
|
|
1288
|
+
"discount": n => { previewOrderResponse.discount = n.getNumberValue(); },
|
|
1289
|
+
"discountPercent": n => { previewOrderResponse.discountPercent = n.getNumberValue(); },
|
|
1290
|
+
"quantity": n => { previewOrderResponse.quantity = n.getNumberValue(); },
|
|
1291
|
+
"subtotal": n => { previewOrderResponse.subtotal = n.getNumberValue(); },
|
|
1292
|
+
"total": n => { previewOrderResponse.total = n.getNumberValue(); },
|
|
1293
|
+
"unitPrice": n => { previewOrderResponse.unitPrice = n.getNumberValue(); },
|
|
1117
1294
|
};
|
|
1118
1295
|
}
|
|
1119
1296
|
/**
|
|
1120
1297
|
* The deserialization information for the current model
|
|
1121
|
-
* @param
|
|
1298
|
+
* @param Product The instance to deserialize into.
|
|
1122
1299
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1123
1300
|
*/
|
|
1124
1301
|
// @ts-ignore
|
|
1125
|
-
export function
|
|
1302
|
+
export function deserializeIntoProduct(product = {}) {
|
|
1126
1303
|
return {
|
|
1127
|
-
"
|
|
1128
|
-
"
|
|
1129
|
-
"
|
|
1130
|
-
"
|
|
1131
|
-
"
|
|
1132
|
-
"
|
|
1133
|
-
"
|
|
1304
|
+
"availableProxies": n => { product.availableProxies = n.getNumberValue(); },
|
|
1305
|
+
"basePrice": n => { product.basePrice = n.getNumberValue(); },
|
|
1306
|
+
"description": n => { product.description = n.getStringValue(); },
|
|
1307
|
+
"id": n => { product.id = n.getGuidValue(); },
|
|
1308
|
+
"isDisabled": n => { product.isDisabled = n.getBooleanValue(); },
|
|
1309
|
+
"kind": n => { product.kind = n.getEnumValue(ProductKindsObject); },
|
|
1310
|
+
"name": n => { product.name = n.getStringValue(); },
|
|
1311
|
+
"price": n => { product.price = n.getNumberValue(); },
|
|
1312
|
+
"pricingType": n => { product.pricingType = n.getEnumValue(PricingTypesObject); },
|
|
1313
|
+
"retailPrice": n => { product.retailPrice = n.getNumberValue(); },
|
|
1134
1314
|
};
|
|
1135
1315
|
}
|
|
1136
1316
|
/**
|
|
1137
1317
|
* The deserialization information for the current model
|
|
1138
|
-
* @param
|
|
1318
|
+
* @param Proxy The instance to deserialize into.
|
|
1139
1319
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1140
1320
|
*/
|
|
1141
1321
|
// @ts-ignore
|
|
1142
|
-
export function
|
|
1143
|
-
return {
|
|
1322
|
+
export function deserializeIntoProxy(proxy = {}) {
|
|
1323
|
+
return {
|
|
1324
|
+
"capabilities": n => { proxy.capabilities = n.getCollectionOfEnumValues(CapabilityTypesObject); },
|
|
1325
|
+
"datacenter": n => { proxy.datacenter = n.getObjectValue(createProxyDatacenterFromDiscriminatorValue); },
|
|
1326
|
+
"features": n => { proxy.features = n.getObjectValue(createProxyFeaturesFromDiscriminatorValue); },
|
|
1327
|
+
"host": n => { proxy.host = n.getStringValue(); },
|
|
1328
|
+
"id": n => { proxy.id = n.getGuidValue(); },
|
|
1329
|
+
"ip": n => { proxy.ip = n.getStringValue(); },
|
|
1330
|
+
"isp": n => { proxy.isp = n.getObjectValue(createProxyIspFromDiscriminatorValue); },
|
|
1331
|
+
"location": n => { proxy.location = n.getObjectValue(createProxyLocationFromDiscriminatorValue); },
|
|
1332
|
+
"note": n => { proxy.note = n.getStringValue(); },
|
|
1333
|
+
"port": n => { proxy.port = n.getNumberValue(); },
|
|
1334
|
+
"product": n => { proxy.product = n.getObjectValue(createProxyProductFromDiscriminatorValue); },
|
|
1335
|
+
"tags": n => { proxy.tags = n.getCollectionOfPrimitiveValues("string"); },
|
|
1336
|
+
};
|
|
1144
1337
|
}
|
|
1145
1338
|
/**
|
|
1146
1339
|
* The deserialization information for the current model
|
|
1147
|
-
* @param
|
|
1340
|
+
* @param ProxyCredentialResponse The instance to deserialize into.
|
|
1148
1341
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1149
1342
|
*/
|
|
1150
1343
|
// @ts-ignore
|
|
1151
|
-
export function
|
|
1344
|
+
export function deserializeIntoProxyCredentialResponse(proxyCredentialResponse = {}) {
|
|
1152
1345
|
return {
|
|
1153
|
-
"
|
|
1154
|
-
"
|
|
1155
|
-
"
|
|
1156
|
-
"
|
|
1157
|
-
"
|
|
1158
|
-
"quantity": n => { previewOrderRequest.quantity = n.getNumberValue(); },
|
|
1346
|
+
"allowedDomains": n => { proxyCredentialResponse.allowedDomains = n.getCollectionOfPrimitiveValues("string"); },
|
|
1347
|
+
"allowedIps": n => { proxyCredentialResponse.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
|
|
1348
|
+
"appliedAt": n => { proxyCredentialResponse.appliedAt = n.getDateValue(); },
|
|
1349
|
+
"password": n => { proxyCredentialResponse.password = n.getStringValue(); },
|
|
1350
|
+
"username": n => { proxyCredentialResponse.username = n.getStringValue(); },
|
|
1159
1351
|
};
|
|
1160
1352
|
}
|
|
1161
1353
|
/**
|
|
1162
1354
|
* The deserialization information for the current model
|
|
1163
|
-
* @param
|
|
1355
|
+
* @param ProxyDatacenter The instance to deserialize into.
|
|
1164
1356
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1165
1357
|
*/
|
|
1166
1358
|
// @ts-ignore
|
|
1167
|
-
export function
|
|
1359
|
+
export function deserializeIntoProxyDatacenter(proxyDatacenter = {}) {
|
|
1168
1360
|
return {
|
|
1169
|
-
"
|
|
1170
|
-
"
|
|
1171
|
-
"label": n => { processorFieldSchema.label = n.getStringValue(); },
|
|
1172
|
-
"name": n => { processorFieldSchema.name = n.getStringValue(); },
|
|
1173
|
-
"placeholder": n => { processorFieldSchema.placeholder = n.getStringValue(); },
|
|
1174
|
-
"secret": n => { processorFieldSchema.secret = n.getBooleanValue(); },
|
|
1361
|
+
"id": n => { proxyDatacenter.id = n.getGuidValue(); },
|
|
1362
|
+
"name": n => { proxyDatacenter.name = n.getStringValue(); },
|
|
1175
1363
|
};
|
|
1176
1364
|
}
|
|
1177
1365
|
/**
|
|
1178
1366
|
* The deserialization information for the current model
|
|
1179
|
-
* @param
|
|
1367
|
+
* @param ProxyFeatures The instance to deserialize into.
|
|
1180
1368
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1181
1369
|
*/
|
|
1182
1370
|
// @ts-ignore
|
|
1183
|
-
export function
|
|
1371
|
+
export function deserializeIntoProxyFeatures(proxyFeatures = {}) {
|
|
1184
1372
|
return {
|
|
1185
|
-
"
|
|
1186
|
-
"currency": n => { product.currency = n.getStringValue(); },
|
|
1187
|
-
"description": n => { product.description = n.getStringValue(); },
|
|
1188
|
-
"icon": n => { product.icon = n.getStringValue(); },
|
|
1189
|
-
"id": n => { product.id = n.getGuidValue(); },
|
|
1190
|
-
"isDisabled": n => { product.isDisabled = n.getBooleanValue(); },
|
|
1191
|
-
"isEnabled": n => { product.isEnabled = n.getBooleanValue(); },
|
|
1192
|
-
"name": n => { product.name = n.getStringValue(); },
|
|
1193
|
-
"pricingType": n => { product.pricingType = n.getEnumValue(PricingTypesObject); },
|
|
1373
|
+
"ipRotation": n => { proxyFeatures.ipRotation = n.getObjectValue(createProxyIpRotationFeatureFromDiscriminatorValue); },
|
|
1194
1374
|
};
|
|
1195
1375
|
}
|
|
1196
1376
|
/**
|
|
1197
1377
|
* The deserialization information for the current model
|
|
1198
|
-
* @param
|
|
1378
|
+
* @param ProxyIpRotationFeature The instance to deserialize into.
|
|
1199
1379
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1200
1380
|
*/
|
|
1201
1381
|
// @ts-ignore
|
|
1202
|
-
export function
|
|
1382
|
+
export function deserializeIntoProxyIpRotationFeature(proxyIpRotationFeature = {}) {
|
|
1203
1383
|
return {
|
|
1204
|
-
"
|
|
1205
|
-
"
|
|
1206
|
-
"host": n => { proxy.host = n.getStringValue(); },
|
|
1207
|
-
"id": n => { proxy.id = n.getStringValue(); },
|
|
1208
|
-
"ip": n => { proxy.ip = n.getStringValue(); },
|
|
1209
|
-
"ispLogoUrl": n => { proxy.ispLogoUrl = n.getStringValue(); },
|
|
1210
|
-
"ispName": n => { proxy.ispName = n.getStringValue(); },
|
|
1211
|
-
"operatingMode": n => { proxy.operatingMode = n.getStringValue(); },
|
|
1212
|
-
"password": n => { proxy.password = n.getStringValue(); },
|
|
1213
|
-
"port": n => { proxy.port = n.getNumberValue(); },
|
|
1214
|
-
"protocol": n => { proxy.protocol = n.getStringValue(); },
|
|
1215
|
-
"username": n => { proxy.username = n.getStringValue(); },
|
|
1384
|
+
"intervalMinutes": n => { proxyIpRotationFeature.intervalMinutes = n.getNumberValue(); },
|
|
1385
|
+
"intervalSeconds": n => { proxyIpRotationFeature.intervalSeconds = n.getNumberValue(); },
|
|
1216
1386
|
};
|
|
1217
1387
|
}
|
|
1218
1388
|
/**
|
|
1219
1389
|
* The deserialization information for the current model
|
|
1220
|
-
* @param
|
|
1390
|
+
* @param ProxyIpRotationResponse The instance to deserialize into.
|
|
1221
1391
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1222
1392
|
*/
|
|
1223
1393
|
// @ts-ignore
|
|
1224
|
-
export function
|
|
1394
|
+
export function deserializeIntoProxyIpRotationResponse(proxyIpRotationResponse = {}) {
|
|
1225
1395
|
return {
|
|
1226
|
-
"
|
|
1227
|
-
"
|
|
1228
|
-
"appliedAt": n => { proxyCredentialResponse.appliedAt = n.getDateValue(); },
|
|
1229
|
-
"password": n => { proxyCredentialResponse.password = n.getStringValue(); },
|
|
1230
|
-
"username": n => { proxyCredentialResponse.username = n.getStringValue(); },
|
|
1396
|
+
"intervalMinutes": n => { proxyIpRotationResponse.intervalMinutes = n.getNumberValue(); },
|
|
1397
|
+
"intervalSeconds": n => { proxyIpRotationResponse.intervalSeconds = n.getNumberValue(); },
|
|
1231
1398
|
};
|
|
1232
1399
|
}
|
|
1233
1400
|
/**
|
|
1234
1401
|
* The deserialization information for the current model
|
|
1235
|
-
* @param
|
|
1402
|
+
* @param ProxyIsp The instance to deserialize into.
|
|
1236
1403
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1237
1404
|
*/
|
|
1238
1405
|
// @ts-ignore
|
|
1239
|
-
export function
|
|
1406
|
+
export function deserializeIntoProxyIsp(proxyIsp = {}) {
|
|
1240
1407
|
return {
|
|
1241
|
-
"
|
|
1242
|
-
"
|
|
1408
|
+
"id": n => { proxyIsp.id = n.getGuidValue(); },
|
|
1409
|
+
"logoUrl": n => { proxyIsp.logoUrl = n.getStringValue(); },
|
|
1410
|
+
"name": n => { proxyIsp.name = n.getStringValue(); },
|
|
1243
1411
|
};
|
|
1244
1412
|
}
|
|
1245
1413
|
/**
|
|
1246
1414
|
* The deserialization information for the current model
|
|
1247
|
-
* @param
|
|
1415
|
+
* @param ProxyLocation The instance to deserialize into.
|
|
1248
1416
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1249
1417
|
*/
|
|
1250
1418
|
// @ts-ignore
|
|
1251
|
-
export function
|
|
1419
|
+
export function deserializeIntoProxyLocation(proxyLocation = {}) {
|
|
1252
1420
|
return {
|
|
1253
|
-
"
|
|
1254
|
-
"
|
|
1255
|
-
"
|
|
1256
|
-
"statusCode": n => { proxyPingResponse.statusCode = n.getNumberValue(); },
|
|
1421
|
+
"city": n => { proxyLocation.city = n.getStringValue(); },
|
|
1422
|
+
"countryCode": n => { proxyLocation.countryCode = n.getStringValue(); },
|
|
1423
|
+
"id": n => { proxyLocation.id = n.getGuidValue(); },
|
|
1257
1424
|
};
|
|
1258
1425
|
}
|
|
1259
1426
|
/**
|
|
1260
1427
|
* The deserialization information for the current model
|
|
1261
|
-
* @param
|
|
1428
|
+
* @param ProxyOptions The instance to deserialize into.
|
|
1262
1429
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1263
1430
|
*/
|
|
1264
1431
|
// @ts-ignore
|
|
1265
|
-
export function
|
|
1432
|
+
export function deserializeIntoProxyOptions(proxyOptions = {}) {
|
|
1266
1433
|
return {
|
|
1267
|
-
"
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1270
|
-
"
|
|
1271
|
-
"id": n => { review.id = n.getGuidValue(); },
|
|
1272
|
-
"isFeatured": n => { review.isFeatured = n.getBooleanValue(); },
|
|
1273
|
-
"isPending": n => { review.isPending = n.getBooleanValue(); },
|
|
1274
|
-
"organizationId": n => { review.organizationId = n.getGuidValue(); },
|
|
1275
|
-
"rating": n => { review.rating = n.getNumberValue(); },
|
|
1434
|
+
"id": n => { proxyOptions.id = n.getGuidValue(); },
|
|
1435
|
+
"metadata": n => { proxyOptions.metadata = n.getObjectValue(createProxyOptions_metadataFromDiscriminatorValue); },
|
|
1436
|
+
"proxyId": n => { proxyOptions.proxyId = n.getGuidValue(); },
|
|
1437
|
+
"resolutionMode": n => { proxyOptions.resolutionMode = n.getEnumValue(ResolutionModesObject); },
|
|
1276
1438
|
};
|
|
1277
1439
|
}
|
|
1278
1440
|
/**
|
|
1279
1441
|
* The deserialization information for the current model
|
|
1280
|
-
* @param
|
|
1442
|
+
* @param ProxyOptions_metadata The instance to deserialize into.
|
|
1281
1443
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1282
1444
|
*/
|
|
1283
1445
|
// @ts-ignore
|
|
1284
|
-
export function
|
|
1285
|
-
return {
|
|
1286
|
-
"approved": n => { reviewKycRequest.approved = n.getBooleanValue(); },
|
|
1287
|
-
};
|
|
1446
|
+
export function deserializeIntoProxyOptions_metadata(proxyOptions_metadata = {}) {
|
|
1447
|
+
return {};
|
|
1288
1448
|
}
|
|
1289
1449
|
/**
|
|
1290
1450
|
* The deserialization information for the current model
|
|
1291
|
-
* @param
|
|
1451
|
+
* @param ProxyPingResponse The instance to deserialize into.
|
|
1292
1452
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1293
1453
|
*/
|
|
1294
1454
|
// @ts-ignore
|
|
1295
|
-
export function
|
|
1455
|
+
export function deserializeIntoProxyPingResponse(proxyPingResponse = {}) {
|
|
1296
1456
|
return {
|
|
1297
|
-
"
|
|
1298
|
-
"
|
|
1299
|
-
"
|
|
1457
|
+
"exitIp": n => { proxyPingResponse.exitIp = n.getStringValue(); },
|
|
1458
|
+
"latencyMilliseconds": n => { proxyPingResponse.latencyMilliseconds = n.getNumberValue(); },
|
|
1459
|
+
"reachable": n => { proxyPingResponse.reachable = n.getBooleanValue(); },
|
|
1460
|
+
"statusCode": n => { proxyPingResponse.statusCode = n.getNumberValue(); },
|
|
1300
1461
|
};
|
|
1301
1462
|
}
|
|
1302
1463
|
/**
|
|
1303
1464
|
* The deserialization information for the current model
|
|
1304
|
-
* @param
|
|
1465
|
+
* @param ProxyProduct The instance to deserialize into.
|
|
1305
1466
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1306
1467
|
*/
|
|
1307
1468
|
// @ts-ignore
|
|
1308
|
-
export function
|
|
1469
|
+
export function deserializeIntoProxyProduct(proxyProduct = {}) {
|
|
1309
1470
|
return {
|
|
1310
|
-
"
|
|
1311
|
-
"
|
|
1312
|
-
"
|
|
1313
|
-
"externalId": n => { updateCustomerRequest.externalId = n.getStringValue(); },
|
|
1471
|
+
"id": n => { proxyProduct.id = n.getGuidValue(); },
|
|
1472
|
+
"kind": n => { proxyProduct.kind = n.getEnumValue(ProductKindsObject); },
|
|
1473
|
+
"name": n => { proxyProduct.name = n.getStringValue(); },
|
|
1314
1474
|
};
|
|
1315
1475
|
}
|
|
1316
1476
|
/**
|
|
1317
1477
|
* The deserialization information for the current model
|
|
1318
|
-
* @param
|
|
1478
|
+
* @param RequestDetails The instance to deserialize into.
|
|
1319
1479
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1320
1480
|
*/
|
|
1321
1481
|
// @ts-ignore
|
|
1322
|
-
export function
|
|
1323
|
-
return {
|
|
1482
|
+
export function deserializeIntoRequestDetails(requestDetails = {}) {
|
|
1483
|
+
return {
|
|
1484
|
+
"clientIp": n => { requestDetails.clientIp = n.getStringValue(); },
|
|
1485
|
+
"correlationId": n => { requestDetails.correlationId = n.getStringValue(); },
|
|
1486
|
+
"date": n => { requestDetails.date = n.getDateValue(); },
|
|
1487
|
+
"endpoint": n => { requestDetails.endpoint = n.getStringValue(); },
|
|
1488
|
+
"timestamp": n => { requestDetails.timestamp = n.getNumberValue(); },
|
|
1489
|
+
"userAgent": n => { requestDetails.userAgent = n.getStringValue(); },
|
|
1490
|
+
};
|
|
1324
1491
|
}
|
|
1325
1492
|
/**
|
|
1326
1493
|
* The deserialization information for the current model
|
|
1327
|
-
* @param
|
|
1494
|
+
* @param ResetPasswordResponse The instance to deserialize into.
|
|
1328
1495
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1329
1496
|
*/
|
|
1330
1497
|
// @ts-ignore
|
|
1331
|
-
export function
|
|
1498
|
+
export function deserializeIntoResetPasswordResponse(resetPasswordResponse = {}) {
|
|
1332
1499
|
return {
|
|
1333
|
-
"
|
|
1334
|
-
"city": n => { updateOrganizationBillingRequest.city = n.getStringValue(); },
|
|
1335
|
-
"country": n => { updateOrganizationBillingRequest.country = n.getStringValue(); },
|
|
1336
|
-
"email": n => { updateOrganizationBillingRequest.email = n.getStringValue(); },
|
|
1337
|
-
"postalCode": n => { updateOrganizationBillingRequest.postalCode = n.getStringValue(); },
|
|
1338
|
-
"taxId": n => { updateOrganizationBillingRequest.taxId = n.getStringValue(); },
|
|
1500
|
+
"temporaryPassword": n => { resetPasswordResponse.temporaryPassword = n.getStringValue(); },
|
|
1339
1501
|
};
|
|
1340
1502
|
}
|
|
1341
1503
|
/**
|
|
1342
1504
|
* The deserialization information for the current model
|
|
1343
|
-
* @param
|
|
1505
|
+
* @param ResolveIncidentRequest The instance to deserialize into.
|
|
1344
1506
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1345
1507
|
*/
|
|
1346
1508
|
// @ts-ignore
|
|
1347
|
-
export function
|
|
1509
|
+
export function deserializeIntoResolveIncidentRequest(resolveIncidentRequest = {}) {
|
|
1348
1510
|
return {
|
|
1349
|
-
"
|
|
1350
|
-
"
|
|
1351
|
-
"logoDarkUrl": n => { updateOrganizationBrandingRequest.logoDarkUrl = n.getStringValue(); },
|
|
1352
|
-
"logoLightUrl": n => { updateOrganizationBrandingRequest.logoLightUrl = n.getStringValue(); },
|
|
1511
|
+
"reason": n => { resolveIncidentRequest.reason = n.getStringValue(); },
|
|
1512
|
+
"resolutionNote": n => { resolveIncidentRequest.resolutionNote = n.getStringValue(); },
|
|
1353
1513
|
};
|
|
1354
1514
|
}
|
|
1355
1515
|
/**
|
|
1356
1516
|
* The deserialization information for the current model
|
|
1357
|
-
* @param
|
|
1517
|
+
* @param Review The instance to deserialize into.
|
|
1358
1518
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1359
1519
|
*/
|
|
1360
1520
|
// @ts-ignore
|
|
1361
|
-
export function
|
|
1521
|
+
export function deserializeIntoReview(review = {}) {
|
|
1362
1522
|
return {
|
|
1363
|
-
"
|
|
1364
|
-
"
|
|
1365
|
-
"
|
|
1366
|
-
"
|
|
1367
|
-
"
|
|
1523
|
+
"authorName": n => { review.authorName = n.getStringValue(); },
|
|
1524
|
+
"content": n => { review.content = n.getStringValue(); },
|
|
1525
|
+
"customAuthorName": n => { review.customAuthorName = n.getStringValue(); },
|
|
1526
|
+
"customerId": n => { review.customerId = n.getGuidValue(); },
|
|
1527
|
+
"id": n => { review.id = n.getGuidValue(); },
|
|
1528
|
+
"isFeatured": n => { review.isFeatured = n.getBooleanValue(); },
|
|
1529
|
+
"isPending": n => { review.isPending = n.getBooleanValue(); },
|
|
1530
|
+
"metadata": n => { review.metadata = n.getObjectValue(createReview_metadataFromDiscriminatorValue); },
|
|
1531
|
+
"rating": n => { review.rating = n.getNumberValue(); },
|
|
1368
1532
|
};
|
|
1369
1533
|
}
|
|
1370
1534
|
/**
|
|
1371
1535
|
* The deserialization information for the current model
|
|
1372
|
-
* @param
|
|
1536
|
+
* @param Review_metadata The instance to deserialize into.
|
|
1373
1537
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1374
1538
|
*/
|
|
1375
1539
|
// @ts-ignore
|
|
1376
|
-
export function
|
|
1540
|
+
export function deserializeIntoReview_metadata(review_metadata = {}) {
|
|
1541
|
+
return {};
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* The deserialization information for the current model
|
|
1545
|
+
* @param ReviewKycRequest The instance to deserialize into.
|
|
1546
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1547
|
+
*/
|
|
1548
|
+
// @ts-ignore
|
|
1549
|
+
export function deserializeIntoReviewKycRequest(reviewKycRequest = {}) {
|
|
1377
1550
|
return {
|
|
1378
|
-
"
|
|
1551
|
+
"approved": n => { reviewKycRequest.approved = n.getBooleanValue(); },
|
|
1379
1552
|
};
|
|
1380
1553
|
}
|
|
1381
1554
|
/**
|
|
1382
1555
|
* The deserialization information for the current model
|
|
1383
|
-
* @param
|
|
1556
|
+
* @param SendVerificationRequest The instance to deserialize into.
|
|
1384
1557
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1385
1558
|
*/
|
|
1386
1559
|
// @ts-ignore
|
|
1387
|
-
export function
|
|
1560
|
+
export function deserializeIntoSendVerificationRequest(sendVerificationRequest = {}) {
|
|
1388
1561
|
return {
|
|
1389
|
-
"
|
|
1390
|
-
"disabled": n => { updateOrganizationPricingRequest.disabled = n.getBooleanValue(); },
|
|
1391
|
-
"ispId": n => { updateOrganizationPricingRequest.ispId = n.getGuidValue(); },
|
|
1392
|
-
"locationId": n => { updateOrganizationPricingRequest.locationId = n.getGuidValue(); },
|
|
1393
|
-
"productId": n => { updateOrganizationPricingRequest.productId = n.getGuidValue(); },
|
|
1562
|
+
"verificationUrl": n => { sendVerificationRequest.verificationUrl = n.getStringValue(); },
|
|
1394
1563
|
};
|
|
1395
1564
|
}
|
|
1396
1565
|
/**
|
|
1397
1566
|
* The deserialization information for the current model
|
|
1398
|
-
* @param
|
|
1567
|
+
* @param TrialOrderRequest The instance to deserialize into.
|
|
1399
1568
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1400
1569
|
*/
|
|
1401
1570
|
// @ts-ignore
|
|
1402
|
-
export function
|
|
1571
|
+
export function deserializeIntoTrialOrderRequest(trialOrderRequest = {}) {
|
|
1403
1572
|
return {
|
|
1404
|
-
"
|
|
1405
|
-
"
|
|
1573
|
+
"criteria": n => { trialOrderRequest.criteria = n.getObjectValue(createOrderCriteriaFromDiscriminatorValue); },
|
|
1574
|
+
"customerId": n => { trialOrderRequest.customerId = n.getGuidValue(); },
|
|
1575
|
+
"intent": n => { trialOrderRequest.intent = n.getEnumValue(OrderIntentsObject); },
|
|
1576
|
+
"quantity": n => { trialOrderRequest.quantity = n.getNumberValue(); },
|
|
1406
1577
|
};
|
|
1407
1578
|
}
|
|
1408
1579
|
/**
|
|
1409
1580
|
* The deserialization information for the current model
|
|
1410
|
-
* @param
|
|
1581
|
+
* @param UpdateCustomerRequest The instance to deserialize into.
|
|
1411
1582
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1412
1583
|
*/
|
|
1413
1584
|
// @ts-ignore
|
|
1414
|
-
export function
|
|
1585
|
+
export function deserializeIntoUpdateCustomerRequest(updateCustomerRequest = {}) {
|
|
1415
1586
|
return {
|
|
1416
|
-
"
|
|
1587
|
+
"billing": n => { updateCustomerRequest.billing = n.getObjectValue(createCustomerBillingFromDiscriminatorValue); },
|
|
1588
|
+
"displayName": n => { updateCustomerRequest.displayName = n.getStringValue(); },
|
|
1589
|
+
"email": n => { updateCustomerRequest.email = n.getStringValue(); },
|
|
1590
|
+
"externalId": n => { updateCustomerRequest.externalId = n.getStringValue(); },
|
|
1591
|
+
"externalLogins": n => { updateCustomerRequest.externalLogins = n.getObjectValue(createUpdateCustomerRequest_externalLoginsFromDiscriminatorValue); },
|
|
1592
|
+
"locale": n => { updateCustomerRequest.locale = n.getStringValue(); },
|
|
1593
|
+
"phoneNumber": n => { updateCustomerRequest.phoneNumber = n.getStringValue(); },
|
|
1594
|
+
"pushNotificationsToken": n => { updateCustomerRequest.pushNotificationsToken = n.getStringValue(); },
|
|
1417
1595
|
};
|
|
1418
1596
|
}
|
|
1419
1597
|
/**
|
|
1420
1598
|
* The deserialization information for the current model
|
|
1421
|
-
* @param
|
|
1599
|
+
* @param UpdateCustomerRequest_externalLogins The instance to deserialize into.
|
|
1422
1600
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1423
1601
|
*/
|
|
1424
1602
|
// @ts-ignore
|
|
1425
|
-
export function
|
|
1603
|
+
export function deserializeIntoUpdateCustomerRequest_externalLogins(updateCustomerRequest_externalLogins = {}) {
|
|
1426
1604
|
return {};
|
|
1427
1605
|
}
|
|
1606
|
+
/**
|
|
1607
|
+
* The deserialization information for the current model
|
|
1608
|
+
* @param UpdateProxyCredentialsRequest The instance to deserialize into.
|
|
1609
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1610
|
+
*/
|
|
1611
|
+
// @ts-ignore
|
|
1612
|
+
export function deserializeIntoUpdateProxyCredentialsRequest(updateProxyCredentialsRequest = {}) {
|
|
1613
|
+
return {
|
|
1614
|
+
"allowedIps": n => { updateProxyCredentialsRequest.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
|
|
1615
|
+
"password": n => { updateProxyCredentialsRequest.password = n.getStringValue(); },
|
|
1616
|
+
"username": n => { updateProxyCredentialsRequest.username = n.getStringValue(); },
|
|
1617
|
+
};
|
|
1618
|
+
}
|
|
1428
1619
|
/**
|
|
1429
1620
|
* The deserialization information for the current model
|
|
1430
1621
|
* @param UpdateProxyIpRotationRequest The instance to deserialize into.
|
|
@@ -1433,28 +1624,19 @@ export function deserializeIntoUpdatePaymentProcessorRequest_values(updatePaymen
|
|
|
1433
1624
|
// @ts-ignore
|
|
1434
1625
|
export function deserializeIntoUpdateProxyIpRotationRequest(updateProxyIpRotationRequest = {}) {
|
|
1435
1626
|
return {
|
|
1436
|
-
"
|
|
1627
|
+
"intervalSeconds": n => { updateProxyIpRotationRequest.intervalSeconds = n.getNumberValue(); },
|
|
1437
1628
|
};
|
|
1438
1629
|
}
|
|
1439
1630
|
/**
|
|
1440
|
-
*
|
|
1441
|
-
* @param
|
|
1442
|
-
* @
|
|
1443
|
-
* @param writer Serialization writer to use to serialize this model
|
|
1631
|
+
* The deserialization information for the current model
|
|
1632
|
+
* @param UpdateProxyOptionsRequest The instance to deserialize into.
|
|
1633
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
1444
1634
|
*/
|
|
1445
1635
|
// @ts-ignore
|
|
1446
|
-
export function
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
}
|
|
1450
|
-
writer.writeGuidValue("apiKeyId", activity.apiKeyId);
|
|
1451
|
-
writer.writeStringValue("endpoint", activity.endpoint);
|
|
1452
|
-
writer.writeGuidValue("id", activity.id);
|
|
1453
|
-
writer.writeStringValue("method", activity.method);
|
|
1454
|
-
writer.writeGuidValue("organizationId", activity.organizationId);
|
|
1455
|
-
writer.writeStringValue("requestBody", activity.requestBody);
|
|
1456
|
-
writer.writeNumberValue("statusCode", activity.statusCode);
|
|
1457
|
-
writer.writeAdditionalData(activity.additionalData);
|
|
1636
|
+
export function deserializeIntoUpdateProxyOptionsRequest(updateProxyOptionsRequest = {}) {
|
|
1637
|
+
return {
|
|
1638
|
+
"resolutionMode": n => { updateProxyOptionsRequest.resolutionMode = n.getEnumValue(ResolutionModesObject); },
|
|
1639
|
+
};
|
|
1458
1640
|
}
|
|
1459
1641
|
/**
|
|
1460
1642
|
* Serializes information the current object
|
|
@@ -1473,104 +1655,163 @@ export function serializeAnnouncement(writer, announcement = {}, isSerializingDe
|
|
|
1473
1655
|
writer.writeBooleanValue("isLive", announcement.isLive);
|
|
1474
1656
|
writer.writeStringValue("linkLabel", announcement.linkLabel);
|
|
1475
1657
|
writer.writeStringValue("linkUrl", announcement.linkUrl);
|
|
1658
|
+
writer.writeObjectValue("metadata", announcement.metadata, serializeAnnouncement_metadata);
|
|
1476
1659
|
writer.writeEnumValue("status", announcement.status);
|
|
1477
1660
|
writer.writeStringValue("title", announcement.title);
|
|
1478
1661
|
writer.writeAdditionalData(announcement.additionalData);
|
|
1479
1662
|
}
|
|
1480
1663
|
/**
|
|
1481
1664
|
* Serializes information the current object
|
|
1482
|
-
* @param
|
|
1665
|
+
* @param Announcement_metadata The instance to serialize from.
|
|
1483
1666
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1484
1667
|
* @param writer Serialization writer to use to serialize this model
|
|
1485
1668
|
*/
|
|
1486
1669
|
// @ts-ignore
|
|
1487
|
-
export function
|
|
1488
|
-
if (!
|
|
1670
|
+
export function serializeAnnouncement_metadata(writer, announcement_metadata = {}, isSerializingDerivedType = false) {
|
|
1671
|
+
if (!announcement_metadata || isSerializingDerivedType) {
|
|
1489
1672
|
return;
|
|
1490
1673
|
}
|
|
1491
|
-
writer.
|
|
1492
|
-
writer.writeStringValue("otp", authenticateCustomerRequest.otp);
|
|
1493
|
-
writer.writeStringValue("password", authenticateCustomerRequest.password);
|
|
1494
|
-
writer.writeAdditionalData(authenticateCustomerRequest.additionalData);
|
|
1674
|
+
writer.writeAdditionalData(announcement_metadata.additionalData);
|
|
1495
1675
|
}
|
|
1496
1676
|
/**
|
|
1497
1677
|
* Serializes information the current object
|
|
1498
|
-
* @param
|
|
1678
|
+
* @param ApiError The instance to serialize from.
|
|
1499
1679
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1500
1680
|
* @param writer Serialization writer to use to serialize this model
|
|
1501
1681
|
*/
|
|
1502
1682
|
// @ts-ignore
|
|
1503
|
-
export function
|
|
1504
|
-
if (!
|
|
1683
|
+
export function serializeApiError(writer, apiError = {}, isSerializingDerivedType = false) {
|
|
1684
|
+
if (!apiError || isSerializingDerivedType) {
|
|
1505
1685
|
return;
|
|
1506
1686
|
}
|
|
1507
|
-
writer.
|
|
1508
|
-
writer.
|
|
1509
|
-
writer.
|
|
1510
|
-
writer.writeAdditionalData(balanceResponse.additionalData);
|
|
1687
|
+
writer.writeStringValue("code", apiError.code);
|
|
1688
|
+
writer.writeStringValue("description", apiError.description);
|
|
1689
|
+
writer.writeAdditionalData(apiError.additionalData);
|
|
1511
1690
|
}
|
|
1512
1691
|
/**
|
|
1513
1692
|
* Serializes information the current object
|
|
1514
|
-
* @param
|
|
1693
|
+
* @param ApiResponse The instance to serialize from.
|
|
1515
1694
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1516
1695
|
* @param writer Serialization writer to use to serialize this model
|
|
1517
1696
|
*/
|
|
1518
1697
|
// @ts-ignore
|
|
1519
|
-
export function
|
|
1520
|
-
if (!
|
|
1698
|
+
export function serializeApiResponse(writer, apiResponse = {}, isSerializingDerivedType = false) {
|
|
1699
|
+
if (!apiResponse || isSerializingDerivedType) {
|
|
1521
1700
|
return;
|
|
1522
1701
|
}
|
|
1523
|
-
writer.
|
|
1524
|
-
writer.
|
|
1525
|
-
writer.writeStringValue("
|
|
1526
|
-
writer.
|
|
1702
|
+
writer.writeObjectValue("data", apiResponse.data);
|
|
1703
|
+
writer.writeCollectionOfObjectValues("errors", apiResponse.errors, serializeApiError);
|
|
1704
|
+
writer.writeStringValue("message", apiResponse.messageEscaped);
|
|
1705
|
+
writer.writeObjectValue("requestDetails", apiResponse.requestDetails, serializeRequestDetails);
|
|
1706
|
+
writer.writeNumberValue("statusCode", apiResponse.statusCode);
|
|
1707
|
+
writer.writeAdditionalData(apiResponse.additionalData);
|
|
1527
1708
|
}
|
|
1528
1709
|
/**
|
|
1529
1710
|
* Serializes information the current object
|
|
1530
|
-
* @param
|
|
1711
|
+
* @param AuthenticateCustomerOAuthRequest The instance to serialize from.
|
|
1531
1712
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1532
1713
|
* @param writer Serialization writer to use to serialize this model
|
|
1533
1714
|
*/
|
|
1534
1715
|
// @ts-ignore
|
|
1535
|
-
export function
|
|
1536
|
-
if (!
|
|
1716
|
+
export function serializeAuthenticateCustomerOAuthRequest(writer, authenticateCustomerOAuthRequest = {}, isSerializingDerivedType = false) {
|
|
1717
|
+
if (!authenticateCustomerOAuthRequest || isSerializingDerivedType) {
|
|
1537
1718
|
return;
|
|
1538
1719
|
}
|
|
1539
|
-
writer.
|
|
1540
|
-
writer.writeStringValue("
|
|
1541
|
-
writer.writeStringValue("
|
|
1542
|
-
writer.writeStringValue("
|
|
1543
|
-
writer.writeStringValue("
|
|
1544
|
-
writer.writeStringValue("
|
|
1545
|
-
writer.
|
|
1546
|
-
|
|
1720
|
+
writer.writeStringValue("displayName", authenticateCustomerOAuthRequest.displayName);
|
|
1721
|
+
writer.writeStringValue("email", authenticateCustomerOAuthRequest.email);
|
|
1722
|
+
writer.writeStringValue("locale", authenticateCustomerOAuthRequest.locale);
|
|
1723
|
+
writer.writeStringValue("provider", authenticateCustomerOAuthRequest.provider);
|
|
1724
|
+
writer.writeStringValue("providerId", authenticateCustomerOAuthRequest.providerId);
|
|
1725
|
+
writer.writeStringValue("pushNotificationsToken", authenticateCustomerOAuthRequest.pushNotificationsToken);
|
|
1726
|
+
writer.writeAdditionalData(authenticateCustomerOAuthRequest.additionalData);
|
|
1727
|
+
}
|
|
1728
|
+
/**
|
|
1729
|
+
* Serializes information the current object
|
|
1730
|
+
* @param AuthenticateCustomerRequest The instance to serialize from.
|
|
1731
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1732
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1733
|
+
*/
|
|
1734
|
+
// @ts-ignore
|
|
1735
|
+
export function serializeAuthenticateCustomerRequest(writer, authenticateCustomerRequest = {}, isSerializingDerivedType = false) {
|
|
1736
|
+
if (!authenticateCustomerRequest || isSerializingDerivedType) {
|
|
1737
|
+
return;
|
|
1738
|
+
}
|
|
1739
|
+
writer.writeStringValue("email", authenticateCustomerRequest.email);
|
|
1740
|
+
writer.writeStringValue("otp", authenticateCustomerRequest.otp);
|
|
1741
|
+
writer.writeStringValue("password", authenticateCustomerRequest.password);
|
|
1742
|
+
writer.writeAdditionalData(authenticateCustomerRequest.additionalData);
|
|
1547
1743
|
}
|
|
1548
1744
|
/**
|
|
1549
1745
|
* Serializes information the current object
|
|
1550
|
-
* @param
|
|
1746
|
+
* @param AuthenticateCustomerTelegramRequest The instance to serialize from.
|
|
1551
1747
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1552
1748
|
* @param writer Serialization writer to use to serialize this model
|
|
1553
1749
|
*/
|
|
1554
1750
|
// @ts-ignore
|
|
1555
|
-
export function
|
|
1556
|
-
if (!
|
|
1751
|
+
export function serializeAuthenticateCustomerTelegramRequest(writer, authenticateCustomerTelegramRequest = {}, isSerializingDerivedType = false) {
|
|
1752
|
+
if (!authenticateCustomerTelegramRequest || isSerializingDerivedType) {
|
|
1557
1753
|
return;
|
|
1558
1754
|
}
|
|
1559
|
-
writer.
|
|
1755
|
+
writer.writeStringValue("telegramUserId", authenticateCustomerTelegramRequest.telegramUserId);
|
|
1756
|
+
writer.writeAdditionalData(authenticateCustomerTelegramRequest.additionalData);
|
|
1560
1757
|
}
|
|
1561
1758
|
/**
|
|
1562
1759
|
* Serializes information the current object
|
|
1563
|
-
* @param
|
|
1760
|
+
* @param CancelOrderRequest The instance to serialize from.
|
|
1564
1761
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1565
1762
|
* @param writer Serialization writer to use to serialize this model
|
|
1566
1763
|
*/
|
|
1567
1764
|
// @ts-ignore
|
|
1568
|
-
export function
|
|
1569
|
-
if (!
|
|
1765
|
+
export function serializeCancelOrderRequest(writer, cancelOrderRequest = {}, isSerializingDerivedType = false) {
|
|
1766
|
+
if (!cancelOrderRequest || isSerializingDerivedType) {
|
|
1570
1767
|
return;
|
|
1571
1768
|
}
|
|
1572
|
-
writer.
|
|
1573
|
-
writer.
|
|
1769
|
+
writer.writeBooleanValue("askRefund", cancelOrderRequest.askRefund);
|
|
1770
|
+
writer.writeBooleanValue("immediateCancellation", cancelOrderRequest.immediateCancellation);
|
|
1771
|
+
writer.writeAdditionalData(cancelOrderRequest.additionalData);
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* Serializes information the current object
|
|
1775
|
+
* @param Capability The instance to serialize from.
|
|
1776
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1777
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1778
|
+
*/
|
|
1779
|
+
// @ts-ignore
|
|
1780
|
+
export function serializeCapability(writer, capability = {}, isSerializingDerivedType = false) {
|
|
1781
|
+
if (!capability || isSerializingDerivedType) {
|
|
1782
|
+
return;
|
|
1783
|
+
}
|
|
1784
|
+
writer.writeNumberValue("availableProxies", capability.availableProxies);
|
|
1785
|
+
writer.writeNumberValue("basePrice", capability.basePrice);
|
|
1786
|
+
writer.writeStringValue("description", capability.description);
|
|
1787
|
+
writer.writeGuidValue("id", capability.id);
|
|
1788
|
+
writer.writeBooleanValue("isDisabled", capability.isDisabled);
|
|
1789
|
+
writer.writeStringValue("name", capability.name);
|
|
1790
|
+
writer.writeNumberValue("price", capability.price);
|
|
1791
|
+
writer.writeNumberValue("retailPrice", capability.retailPrice);
|
|
1792
|
+
writer.writeEnumValue("type", capability.type);
|
|
1793
|
+
writer.writeAdditionalData(capability.additionalData);
|
|
1794
|
+
}
|
|
1795
|
+
/**
|
|
1796
|
+
* Serializes information the current object
|
|
1797
|
+
* @param CreateCustomerRequest The instance to serialize from.
|
|
1798
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1799
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1800
|
+
*/
|
|
1801
|
+
// @ts-ignore
|
|
1802
|
+
export function serializeCreateCustomerRequest(writer, createCustomerRequest = {}, isSerializingDerivedType = false) {
|
|
1803
|
+
if (!createCustomerRequest || isSerializingDerivedType) {
|
|
1804
|
+
return;
|
|
1805
|
+
}
|
|
1806
|
+
writer.writeObjectValue("billing", createCustomerRequest.billing, serializeCustomerBilling);
|
|
1807
|
+
writer.writeStringValue("displayName", createCustomerRequest.displayName);
|
|
1808
|
+
writer.writeStringValue("email", createCustomerRequest.email);
|
|
1809
|
+
writer.writeStringValue("externalId", createCustomerRequest.externalId);
|
|
1810
|
+
writer.writeStringValue("locale", createCustomerRequest.locale);
|
|
1811
|
+
writer.writeStringValue("password", createCustomerRequest.password);
|
|
1812
|
+
writer.writeStringValue("phoneNumber", createCustomerRequest.phoneNumber);
|
|
1813
|
+
writer.writeStringValue("verificationUrl", createCustomerRequest.verificationUrl);
|
|
1814
|
+
writer.writeAdditionalData(createCustomerRequest.additionalData);
|
|
1574
1815
|
}
|
|
1575
1816
|
/**
|
|
1576
1817
|
* Serializes information the current object
|
|
@@ -1600,12 +1841,11 @@ export function serializeCreateOrderRequest(writer, createOrderRequest = {}, isS
|
|
|
1600
1841
|
if (!createOrderRequest || isSerializingDerivedType) {
|
|
1601
1842
|
return;
|
|
1602
1843
|
}
|
|
1603
|
-
writer.
|
|
1604
|
-
writer.
|
|
1605
|
-
writer.
|
|
1606
|
-
writer.
|
|
1607
|
-
writer.
|
|
1608
|
-
writer.writeGuidValue("productId", createOrderRequest.productId);
|
|
1844
|
+
writer.writeObjectValue("criteria", createOrderRequest.criteria, serializeOrderCriteria);
|
|
1845
|
+
writer.writeGuidValue("customerId", createOrderRequest.customerId);
|
|
1846
|
+
writer.writeStringValue("externalReference", createOrderRequest.externalReference);
|
|
1847
|
+
writer.writeEnumValue("intent", createOrderRequest.intent);
|
|
1848
|
+
writer.writeBooleanValue("isAutoRenew", createOrderRequest.isAutoRenew);
|
|
1609
1849
|
writer.writeNumberValue("quantity", createOrderRequest.quantity);
|
|
1610
1850
|
writer.writeAdditionalData(createOrderRequest.additionalData);
|
|
1611
1851
|
}
|
|
@@ -1620,30 +1860,10 @@ export function serializeCreateOrderResponse(writer, createOrderResponse = {}, i
|
|
|
1620
1860
|
if (!createOrderResponse || isSerializingDerivedType) {
|
|
1621
1861
|
return;
|
|
1622
1862
|
}
|
|
1623
|
-
writer.writeStringValue("currency", createOrderResponse.currency);
|
|
1624
|
-
writer.writeBooleanValue("isTrial", createOrderResponse.isTrial);
|
|
1625
1863
|
writer.writeGuidValue("orderId", createOrderResponse.orderId);
|
|
1626
|
-
writer.writeNumberValue("quantity", createOrderResponse.quantity);
|
|
1627
1864
|
writer.writeStringValue("returnUrl", createOrderResponse.returnUrl);
|
|
1628
|
-
writer.writeNumberValue("total", createOrderResponse.total);
|
|
1629
|
-
writer.writeNumberValue("unitPrice", createOrderResponse.unitPrice);
|
|
1630
1865
|
writer.writeAdditionalData(createOrderResponse.additionalData);
|
|
1631
1866
|
}
|
|
1632
|
-
/**
|
|
1633
|
-
* Serializes information the current object
|
|
1634
|
-
* @param CreateOrganizationRequest The instance to serialize from.
|
|
1635
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1636
|
-
* @param writer Serialization writer to use to serialize this model
|
|
1637
|
-
*/
|
|
1638
|
-
// @ts-ignore
|
|
1639
|
-
export function serializeCreateOrganizationRequest(writer, createOrganizationRequest = {}, isSerializingDerivedType = false) {
|
|
1640
|
-
if (!createOrganizationRequest || isSerializingDerivedType) {
|
|
1641
|
-
return;
|
|
1642
|
-
}
|
|
1643
|
-
writer.writeStringValue("companyName", createOrganizationRequest.companyName);
|
|
1644
|
-
writer.writeStringValue("name", createOrganizationRequest.name);
|
|
1645
|
-
writer.writeAdditionalData(createOrganizationRequest.additionalData);
|
|
1646
|
-
}
|
|
1647
1867
|
/**
|
|
1648
1868
|
* Serializes information the current object
|
|
1649
1869
|
* @param CreateReviewRequest The instance to serialize from.
|
|
@@ -1664,19 +1884,19 @@ export function serializeCreateReviewRequest(writer, createReviewRequest = {}, i
|
|
|
1664
1884
|
}
|
|
1665
1885
|
/**
|
|
1666
1886
|
* Serializes information the current object
|
|
1667
|
-
* @param
|
|
1887
|
+
* @param CreateTrialResponse The instance to serialize from.
|
|
1668
1888
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1669
1889
|
* @param writer Serialization writer to use to serialize this model
|
|
1670
1890
|
*/
|
|
1671
1891
|
// @ts-ignore
|
|
1672
|
-
export function
|
|
1673
|
-
if (!
|
|
1892
|
+
export function serializeCreateTrialResponse(writer, createTrialResponse = {}, isSerializingDerivedType = false) {
|
|
1893
|
+
if (!createTrialResponse || isSerializingDerivedType) {
|
|
1674
1894
|
return;
|
|
1675
1895
|
}
|
|
1676
|
-
writer.
|
|
1677
|
-
writer.
|
|
1678
|
-
writer.writeNumberValue("
|
|
1679
|
-
writer.writeAdditionalData(
|
|
1896
|
+
writer.writeDateValue("expiresAt", createTrialResponse.expiresAt);
|
|
1897
|
+
writer.writeGuidValue("orderId", createTrialResponse.orderId);
|
|
1898
|
+
writer.writeNumberValue("quantity", createTrialResponse.quantity);
|
|
1899
|
+
writer.writeAdditionalData(createTrialResponse.additionalData);
|
|
1680
1900
|
}
|
|
1681
1901
|
/**
|
|
1682
1902
|
* Serializes information the current object
|
|
@@ -1689,20 +1909,26 @@ export function serializeCustomer(writer, customer = {}, isSerializingDerivedTyp
|
|
|
1689
1909
|
if (!customer || isSerializingDerivedType) {
|
|
1690
1910
|
return;
|
|
1691
1911
|
}
|
|
1912
|
+
writer.writeCollectionOfPrimitiveValues("allowedDomains", customer.allowedDomains);
|
|
1913
|
+
writer.writeCollectionOfPrimitiveValues("allowedIps", customer.allowedIps);
|
|
1692
1914
|
writer.writeStringValue("avatarUrl", customer.avatarUrl);
|
|
1693
1915
|
writer.writeDateValue("bannedAt", customer.bannedAt);
|
|
1694
|
-
writer.writeObjectValue("
|
|
1916
|
+
writer.writeObjectValue("billing", customer.billing, serializeCustomerBilling);
|
|
1917
|
+
writer.writeStringValue("countryCode", customer.countryCode);
|
|
1695
1918
|
writer.writeStringValue("displayName", customer.displayName);
|
|
1696
1919
|
writer.writeStringValue("email", customer.email);
|
|
1697
1920
|
writer.writeBooleanValue("emailVerified", customer.emailVerified);
|
|
1698
1921
|
writer.writeStringValue("externalId", customer.externalId);
|
|
1699
1922
|
writer.writeObjectValue("externalLogins", customer.externalLogins, serializeCustomer_externalLogins);
|
|
1923
|
+
writer.writeEnumValue("gracePeriodPolicy", customer.gracePeriodPolicy);
|
|
1700
1924
|
writer.writeGuidValue("id", customer.id);
|
|
1701
1925
|
writer.writeBooleanValue("isActive", customer.isActive);
|
|
1926
|
+
writer.writeBooleanValue("isCompany", customer.isCompany);
|
|
1702
1927
|
writer.writeObjectValue("kyc", customer.kyc, serializeCustomerKyc);
|
|
1703
1928
|
writer.writeDateValue("lastLoginAt", customer.lastLoginAt);
|
|
1704
1929
|
writer.writeStringValue("locale", customer.locale);
|
|
1705
|
-
writer.
|
|
1930
|
+
writer.writeObjectValue("metadata", customer.metadata, serializeCustomer_metadata);
|
|
1931
|
+
writer.writeEnumValue("passwordHashScheme", customer.passwordHashScheme);
|
|
1706
1932
|
writer.writeStringValue("paymentCustomerId", customer.paymentCustomerId);
|
|
1707
1933
|
writer.writeStringValue("phoneNumber", customer.phoneNumber);
|
|
1708
1934
|
writer.writeStringValue("pushNotificationsToken", customer.pushNotificationsToken);
|
|
@@ -1710,29 +1936,71 @@ export function serializeCustomer(writer, customer = {}, isSerializingDerivedTyp
|
|
|
1710
1936
|
}
|
|
1711
1937
|
/**
|
|
1712
1938
|
* Serializes information the current object
|
|
1713
|
-
* @param
|
|
1939
|
+
* @param Customer_externalLogins The instance to serialize from.
|
|
1714
1940
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1715
1941
|
* @param writer Serialization writer to use to serialize this model
|
|
1716
1942
|
*/
|
|
1717
1943
|
// @ts-ignore
|
|
1718
|
-
export function
|
|
1719
|
-
if (!
|
|
1944
|
+
export function serializeCustomer_externalLogins(writer, customer_externalLogins = {}, isSerializingDerivedType = false) {
|
|
1945
|
+
if (!customer_externalLogins || isSerializingDerivedType) {
|
|
1720
1946
|
return;
|
|
1721
1947
|
}
|
|
1722
|
-
writer.writeAdditionalData(
|
|
1948
|
+
writer.writeAdditionalData(customer_externalLogins.additionalData);
|
|
1723
1949
|
}
|
|
1724
1950
|
/**
|
|
1725
1951
|
* Serializes information the current object
|
|
1726
|
-
* @param
|
|
1952
|
+
* @param Customer_metadata The instance to serialize from.
|
|
1727
1953
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1728
1954
|
* @param writer Serialization writer to use to serialize this model
|
|
1729
1955
|
*/
|
|
1730
1956
|
// @ts-ignore
|
|
1731
|
-
export function
|
|
1732
|
-
if (!
|
|
1957
|
+
export function serializeCustomer_metadata(writer, customer_metadata = {}, isSerializingDerivedType = false) {
|
|
1958
|
+
if (!customer_metadata || isSerializingDerivedType) {
|
|
1733
1959
|
return;
|
|
1734
1960
|
}
|
|
1735
|
-
writer.writeAdditionalData(
|
|
1961
|
+
writer.writeAdditionalData(customer_metadata.additionalData);
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Serializes information the current object
|
|
1965
|
+
* @param CustomerAuthResponse The instance to serialize from.
|
|
1966
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1967
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1968
|
+
*/
|
|
1969
|
+
// @ts-ignore
|
|
1970
|
+
export function serializeCustomerAuthResponse(writer, customerAuthResponse = {}, isSerializingDerivedType = false) {
|
|
1971
|
+
if (!customerAuthResponse || isSerializingDerivedType) {
|
|
1972
|
+
return;
|
|
1973
|
+
}
|
|
1974
|
+
writer.writeStringValue("accessToken", customerAuthResponse.accessToken);
|
|
1975
|
+
writer.writeStringValue("avatar", customerAuthResponse.avatar);
|
|
1976
|
+
writer.writeStringValue("email", customerAuthResponse.email);
|
|
1977
|
+
writer.writeDateValue("expiresAt", customerAuthResponse.expiresAt);
|
|
1978
|
+
writer.writeBooleanValue("isBanned", customerAuthResponse.isBanned);
|
|
1979
|
+
writer.writeStringValue("locale", customerAuthResponse.locale);
|
|
1980
|
+
writer.writeStringValue("name", customerAuthResponse.name);
|
|
1981
|
+
writer.writeGuidValue("userId", customerAuthResponse.userId);
|
|
1982
|
+
writer.writeAdditionalData(customerAuthResponse.additionalData);
|
|
1983
|
+
}
|
|
1984
|
+
/**
|
|
1985
|
+
* Serializes information the current object
|
|
1986
|
+
* @param CustomerBilling The instance to serialize from.
|
|
1987
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1988
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1989
|
+
*/
|
|
1990
|
+
// @ts-ignore
|
|
1991
|
+
export function serializeCustomerBilling(writer, customerBilling = {}, isSerializingDerivedType = false) {
|
|
1992
|
+
if (!customerBilling || isSerializingDerivedType) {
|
|
1993
|
+
return;
|
|
1994
|
+
}
|
|
1995
|
+
writer.writeStringValue("addressLine", customerBilling.addressLine);
|
|
1996
|
+
writer.writeStringValue("city", customerBilling.city);
|
|
1997
|
+
writer.writeStringValue("companyName", customerBilling.companyName);
|
|
1998
|
+
writer.writeStringValue("country", customerBilling.country);
|
|
1999
|
+
writer.writeBooleanValue("isCompany", customerBilling.isCompany);
|
|
2000
|
+
writer.writeStringValue("postalCode", customerBilling.postalCode);
|
|
2001
|
+
writer.writeStringValue("registrationNumber", customerBilling.registrationNumber);
|
|
2002
|
+
writer.writeStringValue("taxId", customerBilling.taxId);
|
|
2003
|
+
writer.writeAdditionalData(customerBilling.additionalData);
|
|
1736
2004
|
}
|
|
1737
2005
|
/**
|
|
1738
2006
|
* Serializes information the current object
|
|
@@ -1754,48 +2022,55 @@ export function serializeCustomerKyc(writer, customerKyc = {}, isSerializingDeri
|
|
|
1754
2022
|
}
|
|
1755
2023
|
/**
|
|
1756
2024
|
* Serializes information the current object
|
|
1757
|
-
* @param
|
|
2025
|
+
* @param Datacenter The instance to serialize from.
|
|
1758
2026
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1759
2027
|
* @param writer Serialization writer to use to serialize this model
|
|
1760
2028
|
*/
|
|
1761
2029
|
// @ts-ignore
|
|
1762
|
-
export function
|
|
1763
|
-
if (!
|
|
2030
|
+
export function serializeDatacenter(writer, datacenter = {}, isSerializingDerivedType = false) {
|
|
2031
|
+
if (!datacenter || isSerializingDerivedType) {
|
|
1764
2032
|
return;
|
|
1765
2033
|
}
|
|
1766
|
-
writer.
|
|
1767
|
-
writer.
|
|
1768
|
-
writer.writeStringValue("
|
|
1769
|
-
writer.
|
|
2034
|
+
writer.writeNumberValue("availableProxies", datacenter.availableProxies);
|
|
2035
|
+
writer.writeNumberValue("basePrice", datacenter.basePrice);
|
|
2036
|
+
writer.writeStringValue("countryCode", datacenter.countryCode);
|
|
2037
|
+
writer.writeGuidValue("id", datacenter.id);
|
|
2038
|
+
writer.writeBooleanValue("isDisabled", datacenter.isDisabled);
|
|
2039
|
+
writer.writeStringValue("location", datacenter.location);
|
|
2040
|
+
writer.writeStringValue("name", datacenter.name);
|
|
2041
|
+
writer.writeNumberValue("price", datacenter.price);
|
|
2042
|
+
writer.writeNumberValue("retailPrice", datacenter.retailPrice);
|
|
2043
|
+
writer.writeAdditionalData(datacenter.additionalData);
|
|
1770
2044
|
}
|
|
1771
2045
|
/**
|
|
1772
2046
|
* Serializes information the current object
|
|
1773
|
-
* @param
|
|
2047
|
+
* @param ExtendOrderRequest The instance to serialize from.
|
|
1774
2048
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1775
2049
|
* @param writer Serialization writer to use to serialize this model
|
|
1776
2050
|
*/
|
|
1777
2051
|
// @ts-ignore
|
|
1778
|
-
export function
|
|
1779
|
-
if (!
|
|
2052
|
+
export function serializeExtendOrderRequest(writer, extendOrderRequest = {}, isSerializingDerivedType = false) {
|
|
2053
|
+
if (!extendOrderRequest || isSerializingDerivedType) {
|
|
1780
2054
|
return;
|
|
1781
2055
|
}
|
|
1782
|
-
writer.
|
|
1783
|
-
writer.
|
|
2056
|
+
writer.writeEnumValue("billingCycle", extendOrderRequest.billingCycle);
|
|
2057
|
+
writer.writeEnumValue("paymentMethod", extendOrderRequest.paymentMethod);
|
|
2058
|
+
writer.writeAdditionalData(extendOrderRequest.additionalData);
|
|
1784
2059
|
}
|
|
1785
2060
|
/**
|
|
1786
2061
|
* Serializes information the current object
|
|
1787
|
-
* @param
|
|
2062
|
+
* @param ExtendOrderResponse The instance to serialize from.
|
|
1788
2063
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1789
2064
|
* @param writer Serialization writer to use to serialize this model
|
|
1790
2065
|
*/
|
|
1791
2066
|
// @ts-ignore
|
|
1792
|
-
export function
|
|
1793
|
-
if (!
|
|
2067
|
+
export function serializeExtendOrderResponse(writer, extendOrderResponse = {}, isSerializingDerivedType = false) {
|
|
2068
|
+
if (!extendOrderResponse || isSerializingDerivedType) {
|
|
1794
2069
|
return;
|
|
1795
2070
|
}
|
|
1796
|
-
writer.
|
|
1797
|
-
writer.
|
|
1798
|
-
writer.writeAdditionalData(
|
|
2071
|
+
writer.writeGuidValue("orderId", extendOrderResponse.orderId);
|
|
2072
|
+
writer.writeStringValue("returnUrl", extendOrderResponse.returnUrl);
|
|
2073
|
+
writer.writeAdditionalData(extendOrderResponse.additionalData);
|
|
1799
2074
|
}
|
|
1800
2075
|
/**
|
|
1801
2076
|
* Serializes information the current object
|
|
@@ -1810,8 +2085,9 @@ export function serializeIncident(writer, incident = {}, isSerializingDerivedTyp
|
|
|
1810
2085
|
}
|
|
1811
2086
|
writer.writeStringValue("description", incident.description);
|
|
1812
2087
|
writer.writeGuidValue("id", incident.id);
|
|
1813
|
-
writer.
|
|
1814
|
-
writer.
|
|
2088
|
+
writer.writeBooleanValue("isOverdue", incident.isOverdue);
|
|
2089
|
+
writer.writeObjectValue("metadata", incident.metadata, serializeIncident_metadata);
|
|
2090
|
+
writer.writeStringValue("reason", incident.reason);
|
|
1815
2091
|
writer.writeStringValue("reporterEmail", incident.reporterEmail);
|
|
1816
2092
|
writer.writeStringValue("resolutionNote", incident.resolutionNote);
|
|
1817
2093
|
writer.writeDateValue("resolvedAt", incident.resolvedAt);
|
|
@@ -1820,6 +2096,61 @@ export function serializeIncident(writer, incident = {}, isSerializingDerivedTyp
|
|
|
1820
2096
|
writer.writeStringValue("target", incident.target);
|
|
1821
2097
|
writer.writeAdditionalData(incident.additionalData);
|
|
1822
2098
|
}
|
|
2099
|
+
/**
|
|
2100
|
+
* Serializes information the current object
|
|
2101
|
+
* @param Incident_metadata The instance to serialize from.
|
|
2102
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2103
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2104
|
+
*/
|
|
2105
|
+
// @ts-ignore
|
|
2106
|
+
export function serializeIncident_metadata(writer, incident_metadata = {}, isSerializingDerivedType = false) {
|
|
2107
|
+
if (!incident_metadata || isSerializingDerivedType) {
|
|
2108
|
+
return;
|
|
2109
|
+
}
|
|
2110
|
+
writer.writeAdditionalData(incident_metadata.additionalData);
|
|
2111
|
+
}
|
|
2112
|
+
/**
|
|
2113
|
+
* Serializes information the current object
|
|
2114
|
+
* @param IpInformation The instance to serialize from.
|
|
2115
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2116
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2117
|
+
*/
|
|
2118
|
+
// @ts-ignore
|
|
2119
|
+
export function serializeIpInformation(writer, ipInformation = {}, isSerializingDerivedType = false) {
|
|
2120
|
+
if (!ipInformation || isSerializingDerivedType) {
|
|
2121
|
+
return;
|
|
2122
|
+
}
|
|
2123
|
+
writer.writeStringValue("asn", ipInformation.asn);
|
|
2124
|
+
writer.writeStringValue("asnDomain", ipInformation.asnDomain);
|
|
2125
|
+
writer.writeStringValue("asnLogo", ipInformation.asnLogo);
|
|
2126
|
+
writer.writeStringValue("continent", ipInformation.continent);
|
|
2127
|
+
writer.writeStringValue("continentCode", ipInformation.continentCode);
|
|
2128
|
+
writer.writeStringValue("country", ipInformation.country);
|
|
2129
|
+
writer.writeStringValue("countryCode", ipInformation.countryCode);
|
|
2130
|
+
writer.writeStringValue("countryFlag", ipInformation.countryFlag);
|
|
2131
|
+
writer.writeStringValue("countryFlagUrl", ipInformation.countryFlagUrl);
|
|
2132
|
+
writer.writeStringValue("currencyCode", ipInformation.currencyCode);
|
|
2133
|
+
writer.writeStringValue("currencySymbol", ipInformation.currencySymbol);
|
|
2134
|
+
writer.writeStringValue("ipAddress", ipInformation.ipAddress);
|
|
2135
|
+
writer.writeBooleanValue("isAnycast", ipInformation.isAnycast);
|
|
2136
|
+
writer.writeStringValue("isp", ipInformation.isp);
|
|
2137
|
+
writer.writeAdditionalData(ipInformation.additionalData);
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Serializes information the current object
|
|
2141
|
+
* @param IpRotationLinkResponse The instance to serialize from.
|
|
2142
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2143
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2144
|
+
*/
|
|
2145
|
+
// @ts-ignore
|
|
2146
|
+
export function serializeIpRotationLinkResponse(writer, ipRotationLinkResponse = {}, isSerializingDerivedType = false) {
|
|
2147
|
+
if (!ipRotationLinkResponse || isSerializingDerivedType) {
|
|
2148
|
+
return;
|
|
2149
|
+
}
|
|
2150
|
+
writer.writeStringValue("link", ipRotationLinkResponse.link);
|
|
2151
|
+
writer.writeStringValue("token", ipRotationLinkResponse.token);
|
|
2152
|
+
writer.writeAdditionalData(ipRotationLinkResponse.additionalData);
|
|
2153
|
+
}
|
|
1823
2154
|
/**
|
|
1824
2155
|
* Serializes information the current object
|
|
1825
2156
|
* @param Isp The instance to serialize from.
|
|
@@ -1832,12 +2163,13 @@ export function serializeIsp(writer, isp = {}, isSerializingDerivedType = false)
|
|
|
1832
2163
|
return;
|
|
1833
2164
|
}
|
|
1834
2165
|
writer.writeNumberValue("availableProxies", isp.availableProxies);
|
|
1835
|
-
writer.
|
|
2166
|
+
writer.writeNumberValue("basePrice", isp.basePrice);
|
|
2167
|
+
writer.writeGuidValue("id", isp.id);
|
|
1836
2168
|
writer.writeBooleanValue("isDisabled", isp.isDisabled);
|
|
1837
2169
|
writer.writeStringValue("logoUrl", isp.logoUrl);
|
|
1838
2170
|
writer.writeStringValue("name", isp.name);
|
|
1839
2171
|
writer.writeNumberValue("price", isp.price);
|
|
1840
|
-
writer.writeNumberValue("
|
|
2172
|
+
writer.writeNumberValue("retailPrice", isp.retailPrice);
|
|
1841
2173
|
writer.writeAdditionalData(isp.additionalData);
|
|
1842
2174
|
}
|
|
1843
2175
|
/**
|
|
@@ -1853,46 +2185,16 @@ export function serializeLocation(writer, location = {}, isSerializingDerivedTyp
|
|
|
1853
2185
|
}
|
|
1854
2186
|
writer.writeNumberValue("availableIsps", location.availableIsps);
|
|
1855
2187
|
writer.writeNumberValue("availableProxies", location.availableProxies);
|
|
2188
|
+
writer.writeNumberValue("basePrice", location.basePrice);
|
|
1856
2189
|
writer.writeStringValue("city", location.city);
|
|
1857
2190
|
writer.writeStringValue("countryCode", location.countryCode);
|
|
1858
|
-
writer.
|
|
2191
|
+
writer.writeGuidValue("id", location.id);
|
|
1859
2192
|
writer.writeBooleanValue("isDisabled", location.isDisabled);
|
|
2193
|
+
writer.writeStringValue("name", location.name);
|
|
1860
2194
|
writer.writeNumberValue("price", location.price);
|
|
1861
|
-
writer.writeNumberValue("
|
|
2195
|
+
writer.writeNumberValue("retailPrice", location.retailPrice);
|
|
1862
2196
|
writer.writeAdditionalData(location.additionalData);
|
|
1863
2197
|
}
|
|
1864
|
-
/**
|
|
1865
|
-
* Serializes information the current object
|
|
1866
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1867
|
-
* @param Member The instance to serialize from.
|
|
1868
|
-
* @param writer Serialization writer to use to serialize this model
|
|
1869
|
-
*/
|
|
1870
|
-
// @ts-ignore
|
|
1871
|
-
export function serializeMember(writer, member = {}, isSerializingDerivedType = false) {
|
|
1872
|
-
if (!member || isSerializingDerivedType) {
|
|
1873
|
-
return;
|
|
1874
|
-
}
|
|
1875
|
-
writer.writeStringValue("avatarUrl", member.avatarUrl);
|
|
1876
|
-
writer.writeStringValue("displayName", member.displayName);
|
|
1877
|
-
writer.writeStringValue("email", member.email);
|
|
1878
|
-
writer.writeStringValue("id", member.id);
|
|
1879
|
-
writer.writeBooleanValue("isOwner", member.isOwner);
|
|
1880
|
-
writer.writeAdditionalData(member.additionalData);
|
|
1881
|
-
}
|
|
1882
|
-
/**
|
|
1883
|
-
* Serializes information the current object
|
|
1884
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1885
|
-
* @param MembersResponse The instance to serialize from.
|
|
1886
|
-
* @param writer Serialization writer to use to serialize this model
|
|
1887
|
-
*/
|
|
1888
|
-
// @ts-ignore
|
|
1889
|
-
export function serializeMembersResponse(writer, membersResponse = {}, isSerializingDerivedType = false) {
|
|
1890
|
-
if (!membersResponse || isSerializingDerivedType) {
|
|
1891
|
-
return;
|
|
1892
|
-
}
|
|
1893
|
-
writer.writeCollectionOfObjectValues("members", membersResponse.members, serializeMember);
|
|
1894
|
-
writer.writeAdditionalData(membersResponse.additionalData);
|
|
1895
|
-
}
|
|
1896
2198
|
/**
|
|
1897
2199
|
* Serializes information the current object
|
|
1898
2200
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -1904,256 +2206,199 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
|
|
|
1904
2206
|
if (!order || isSerializingDerivedType) {
|
|
1905
2207
|
return;
|
|
1906
2208
|
}
|
|
1907
|
-
writer.writeGuidValue("allocationId", order.allocationId);
|
|
1908
2209
|
writer.writeEnumValue("billingCycle", order.billingCycle);
|
|
1909
|
-
writer.writeStringValue("completePaymentUrl", order.completePaymentUrl);
|
|
1910
|
-
writer.writeStringValue("currency", order.currency);
|
|
1911
2210
|
writer.writeGuidValue("customerId", order.customerId);
|
|
1912
2211
|
writer.writeDateValue("expiresAt", order.expiresAt);
|
|
2212
|
+
writer.writeStringValue("externalReference", order.externalReference);
|
|
1913
2213
|
writer.writeGuidValue("id", order.id);
|
|
1914
|
-
writer.
|
|
2214
|
+
writer.writeEnumValue("intent", order.intent);
|
|
2215
|
+
writer.writeBooleanValue("isActive", order.isActive);
|
|
2216
|
+
writer.writeBooleanValue("isAutoRenew", order.isAutoRenew);
|
|
2217
|
+
writer.writeBooleanValue("isExpiringSoon", order.isExpiringSoon);
|
|
2218
|
+
writer.writeBooleanValue("isInactive", order.isInactive);
|
|
1915
2219
|
writer.writeBooleanValue("isTrial", order.isTrial);
|
|
2220
|
+
writer.writeCollectionOfObjectValues("items", order.items, serializeOrderItem);
|
|
2221
|
+
writer.writeStringValue("lastSettlementReference", order.lastSettlementReference);
|
|
2222
|
+
writer.writeGuidValue("lastTransactionId", order.lastTransactionId);
|
|
2223
|
+
writer.writeObjectValue("metadata", order.metadata, serializeOrder_metadata);
|
|
1916
2224
|
writer.writeEnumValue("paymentMethod", order.paymentMethod);
|
|
1917
|
-
writer.
|
|
2225
|
+
writer.writeEnumValue("paymentProcessor", order.paymentProcessor);
|
|
2226
|
+
writer.writeStringValue("processorReference", order.processorReference);
|
|
1918
2227
|
writer.writeNumberValue("quantity", order.quantity);
|
|
1919
2228
|
writer.writeEnumValue("status", order.status);
|
|
1920
|
-
writer.writeNumberValue("total", order.total);
|
|
1921
|
-
writer.writeNumberValue("unitPrice", order.unitPrice);
|
|
1922
2229
|
writer.writeAdditionalData(order.additionalData);
|
|
1923
2230
|
}
|
|
1924
2231
|
/**
|
|
1925
2232
|
* Serializes information the current object
|
|
1926
2233
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1927
|
-
* @param
|
|
2234
|
+
* @param Order_metadata The instance to serialize from.
|
|
1928
2235
|
* @param writer Serialization writer to use to serialize this model
|
|
1929
2236
|
*/
|
|
1930
2237
|
// @ts-ignore
|
|
1931
|
-
export function
|
|
1932
|
-
if (!
|
|
2238
|
+
export function serializeOrder_metadata(writer, order_metadata = {}, isSerializingDerivedType = false) {
|
|
2239
|
+
if (!order_metadata || isSerializingDerivedType) {
|
|
1933
2240
|
return;
|
|
1934
2241
|
}
|
|
1935
|
-
writer.
|
|
1936
|
-
writer.writeNumberValue("discount", orderPreviewResponse.discount);
|
|
1937
|
-
writer.writeNumberValue("discountPercent", orderPreviewResponse.discountPercent);
|
|
1938
|
-
writer.writeNumberValue("quantity", orderPreviewResponse.quantity);
|
|
1939
|
-
writer.writeNumberValue("subtotal", orderPreviewResponse.subtotal);
|
|
1940
|
-
writer.writeNumberValue("total", orderPreviewResponse.total);
|
|
1941
|
-
writer.writeNumberValue("unitPrice", orderPreviewResponse.unitPrice);
|
|
1942
|
-
writer.writeAdditionalData(orderPreviewResponse.additionalData);
|
|
2242
|
+
writer.writeAdditionalData(order_metadata.additionalData);
|
|
1943
2243
|
}
|
|
1944
2244
|
/**
|
|
1945
2245
|
* Serializes information the current object
|
|
1946
2246
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1947
|
-
* @param
|
|
2247
|
+
* @param OrderCriteria The instance to serialize from.
|
|
1948
2248
|
* @param writer Serialization writer to use to serialize this model
|
|
1949
2249
|
*/
|
|
1950
2250
|
// @ts-ignore
|
|
1951
|
-
export function
|
|
1952
|
-
if (!
|
|
2251
|
+
export function serializeOrderCriteria(writer, orderCriteria = {}, isSerializingDerivedType = false) {
|
|
2252
|
+
if (!orderCriteria || isSerializingDerivedType) {
|
|
1953
2253
|
return;
|
|
1954
2254
|
}
|
|
1955
|
-
writer.
|
|
1956
|
-
|
|
1957
|
-
|
|
2255
|
+
writer.writeEnumValue("billingCycle", orderCriteria.billingCycle);
|
|
2256
|
+
if (orderCriteria.capabilities)
|
|
2257
|
+
writer.writeCollectionOfEnumValues("capabilities", orderCriteria.capabilities);
|
|
2258
|
+
writer.writeStringValue("countryCode", orderCriteria.countryCode);
|
|
2259
|
+
writer.writeGuidValue("datacenterId", orderCriteria.datacenterId);
|
|
2260
|
+
writer.writeGuidValue("ispId", orderCriteria.ispId);
|
|
2261
|
+
writer.writeGuidValue("locationId", orderCriteria.locationId);
|
|
2262
|
+
writer.writeEnumValue("paymentMethod", orderCriteria.paymentMethod);
|
|
2263
|
+
writer.writeGuidValue("productId", orderCriteria.productId);
|
|
2264
|
+
writer.writeAdditionalData(orderCriteria.additionalData);
|
|
1958
2265
|
}
|
|
1959
2266
|
/**
|
|
1960
2267
|
* Serializes information the current object
|
|
1961
2268
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1962
|
-
* @param
|
|
2269
|
+
* @param OrderItem The instance to serialize from.
|
|
1963
2270
|
* @param writer Serialization writer to use to serialize this model
|
|
1964
2271
|
*/
|
|
1965
2272
|
// @ts-ignore
|
|
1966
|
-
export function
|
|
1967
|
-
if (!
|
|
2273
|
+
export function serializeOrderItem(writer, orderItem = {}, isSerializingDerivedType = false) {
|
|
2274
|
+
if (!orderItem || isSerializingDerivedType) {
|
|
1968
2275
|
return;
|
|
1969
2276
|
}
|
|
1970
|
-
writer.
|
|
1971
|
-
writer.
|
|
1972
|
-
writer.
|
|
1973
|
-
writer.
|
|
1974
|
-
writer.
|
|
1975
|
-
writer.
|
|
1976
|
-
writer.writeBooleanValue("isActive", organization.isActive);
|
|
1977
|
-
writer.writeBooleanValue("isCurrentUserOwner", organization.isCurrentUserOwner);
|
|
1978
|
-
writer.writeNumberValue("memberCount", organization.memberCount);
|
|
1979
|
-
writer.writeStringValue("name", organization.name);
|
|
1980
|
-
writer.writeNumberValue("orderCount", organization.orderCount);
|
|
1981
|
-
writer.writeObjectValue("requirements", organization.requirements, serializeOrderRequirements);
|
|
1982
|
-
writer.writeGuidValue("tenantId", organization.tenantId);
|
|
1983
|
-
writer.writeObjectValue("terms", organization.terms, serializeOrganizationTerms);
|
|
1984
|
-
writer.writeEnumValue("type", organization.type);
|
|
1985
|
-
writer.writeAdditionalData(organization.additionalData);
|
|
2277
|
+
writer.writeGuidValue("id", orderItem.id);
|
|
2278
|
+
writer.writeEnumValue("kind", orderItem.kind);
|
|
2279
|
+
writer.writeObjectValue("metadata", orderItem.metadata, serializeOrderItem_metadata);
|
|
2280
|
+
writer.writeGuidValue("productId", orderItem.productId);
|
|
2281
|
+
writer.writeCollectionOfPrimitiveValues("resourceIds", orderItem.resourceIds);
|
|
2282
|
+
writer.writeAdditionalData(orderItem.additionalData);
|
|
1986
2283
|
}
|
|
1987
2284
|
/**
|
|
1988
2285
|
* Serializes information the current object
|
|
1989
2286
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1990
|
-
* @param
|
|
2287
|
+
* @param OrderItem_metadata The instance to serialize from.
|
|
1991
2288
|
* @param writer Serialization writer to use to serialize this model
|
|
1992
2289
|
*/
|
|
1993
2290
|
// @ts-ignore
|
|
1994
|
-
export function
|
|
1995
|
-
if (!
|
|
2291
|
+
export function serializeOrderItem_metadata(writer, orderItem_metadata = {}, isSerializingDerivedType = false) {
|
|
2292
|
+
if (!orderItem_metadata || isSerializingDerivedType) {
|
|
1996
2293
|
return;
|
|
1997
2294
|
}
|
|
1998
|
-
writer.
|
|
1999
|
-
writer.writeStringValue("city", organizationBilling.city);
|
|
2000
|
-
writer.writeStringValue("country", organizationBilling.country);
|
|
2001
|
-
writer.writeStringValue("email", organizationBilling.email);
|
|
2002
|
-
writer.writeStringValue("postalCode", organizationBilling.postalCode);
|
|
2003
|
-
writer.writeStringValue("taxId", organizationBilling.taxId);
|
|
2004
|
-
writer.writeAdditionalData(organizationBilling.additionalData);
|
|
2295
|
+
writer.writeAdditionalData(orderItem_metadata.additionalData);
|
|
2005
2296
|
}
|
|
2006
2297
|
/**
|
|
2007
2298
|
* Serializes information the current object
|
|
2008
2299
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2009
|
-
* @param
|
|
2300
|
+
* @param PatchCustomerBillingRequest The instance to serialize from.
|
|
2010
2301
|
* @param writer Serialization writer to use to serialize this model
|
|
2011
2302
|
*/
|
|
2012
2303
|
// @ts-ignore
|
|
2013
|
-
export function
|
|
2014
|
-
if (!
|
|
2304
|
+
export function serializePatchCustomerBillingRequest(writer, patchCustomerBillingRequest = {}, isSerializingDerivedType = false) {
|
|
2305
|
+
if (!patchCustomerBillingRequest || isSerializingDerivedType) {
|
|
2015
2306
|
return;
|
|
2016
2307
|
}
|
|
2017
|
-
writer.writeStringValue("addressLine",
|
|
2018
|
-
writer.writeStringValue("city",
|
|
2019
|
-
writer.writeStringValue("
|
|
2020
|
-
writer.writeStringValue("
|
|
2021
|
-
writer.
|
|
2022
|
-
writer.writeStringValue("
|
|
2023
|
-
writer.
|
|
2308
|
+
writer.writeStringValue("addressLine", patchCustomerBillingRequest.addressLine);
|
|
2309
|
+
writer.writeStringValue("city", patchCustomerBillingRequest.city);
|
|
2310
|
+
writer.writeStringValue("companyName", patchCustomerBillingRequest.companyName);
|
|
2311
|
+
writer.writeStringValue("country", patchCustomerBillingRequest.country);
|
|
2312
|
+
writer.writeBooleanValue("isCompany", patchCustomerBillingRequest.isCompany);
|
|
2313
|
+
writer.writeStringValue("postalCode", patchCustomerBillingRequest.postalCode);
|
|
2314
|
+
writer.writeStringValue("registrationNumber", patchCustomerBillingRequest.registrationNumber);
|
|
2315
|
+
writer.writeStringValue("taxId", patchCustomerBillingRequest.taxId);
|
|
2316
|
+
writer.writeAdditionalData(patchCustomerBillingRequest.additionalData);
|
|
2024
2317
|
}
|
|
2025
2318
|
/**
|
|
2026
2319
|
* Serializes information the current object
|
|
2027
2320
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2028
|
-
* @param
|
|
2321
|
+
* @param PatchCustomerDefaultsRequest The instance to serialize from.
|
|
2029
2322
|
* @param writer Serialization writer to use to serialize this model
|
|
2030
2323
|
*/
|
|
2031
2324
|
// @ts-ignore
|
|
2032
|
-
export function
|
|
2033
|
-
if (!
|
|
2325
|
+
export function serializePatchCustomerDefaultsRequest(writer, patchCustomerDefaultsRequest = {}, isSerializingDerivedType = false) {
|
|
2326
|
+
if (!patchCustomerDefaultsRequest || isSerializingDerivedType) {
|
|
2034
2327
|
return;
|
|
2035
2328
|
}
|
|
2036
|
-
writer.
|
|
2037
|
-
writer.
|
|
2038
|
-
writer.
|
|
2039
|
-
writer.writeStringValue("logoDarkUrl", organizationBranding.logoDarkUrl);
|
|
2040
|
-
writer.writeStringValue("logoLightUrl", organizationBranding.logoLightUrl);
|
|
2041
|
-
writer.writeAdditionalData(organizationBranding.additionalData);
|
|
2329
|
+
writer.writeCollectionOfPrimitiveValues("allowedDomains", patchCustomerDefaultsRequest.allowedDomains);
|
|
2330
|
+
writer.writeCollectionOfPrimitiveValues("allowedIps", patchCustomerDefaultsRequest.allowedIps);
|
|
2331
|
+
writer.writeAdditionalData(patchCustomerDefaultsRequest.additionalData);
|
|
2042
2332
|
}
|
|
2043
2333
|
/**
|
|
2044
2334
|
* Serializes information the current object
|
|
2045
2335
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2046
|
-
* @param
|
|
2336
|
+
* @param PatchCustomerRequest The instance to serialize from.
|
|
2047
2337
|
* @param writer Serialization writer to use to serialize this model
|
|
2048
2338
|
*/
|
|
2049
2339
|
// @ts-ignore
|
|
2050
|
-
export function
|
|
2051
|
-
if (!
|
|
2340
|
+
export function serializePatchCustomerRequest(writer, patchCustomerRequest = {}, isSerializingDerivedType = false) {
|
|
2341
|
+
if (!patchCustomerRequest || isSerializingDerivedType) {
|
|
2052
2342
|
return;
|
|
2053
2343
|
}
|
|
2054
|
-
writer.
|
|
2055
|
-
writer.
|
|
2056
|
-
writer.writeEnumValue("region", organizationEmail.region);
|
|
2057
|
-
writer.writeStringValue("replyTo", organizationEmail.replyTo);
|
|
2058
|
-
writer.writeStringValue("sendingDomain", organizationEmail.sendingDomain);
|
|
2059
|
-
writer.writeAdditionalData(organizationEmail.additionalData);
|
|
2344
|
+
writer.writeBooleanValue("isActive", patchCustomerRequest.isActive);
|
|
2345
|
+
writer.writeAdditionalData(patchCustomerRequest.additionalData);
|
|
2060
2346
|
}
|
|
2061
2347
|
/**
|
|
2062
2348
|
* Serializes information the current object
|
|
2063
2349
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2064
|
-
* @param
|
|
2350
|
+
* @param PatchMetadataRequest The instance to serialize from.
|
|
2065
2351
|
* @param writer Serialization writer to use to serialize this model
|
|
2066
2352
|
*/
|
|
2067
2353
|
// @ts-ignore
|
|
2068
|
-
export function
|
|
2069
|
-
if (!
|
|
2354
|
+
export function serializePatchMetadataRequest(writer, patchMetadataRequest = {}, isSerializingDerivedType = false) {
|
|
2355
|
+
if (!patchMetadataRequest || isSerializingDerivedType) {
|
|
2070
2356
|
return;
|
|
2071
2357
|
}
|
|
2072
|
-
writer.
|
|
2073
|
-
writer.
|
|
2074
|
-
writer.writeEnumValue("region", organizationEmail2.region);
|
|
2075
|
-
writer.writeStringValue("replyTo", organizationEmail2.replyTo);
|
|
2076
|
-
writer.writeStringValue("sendingDomain", organizationEmail2.sendingDomain);
|
|
2077
|
-
writer.writeAdditionalData(organizationEmail2.additionalData);
|
|
2358
|
+
writer.writeObjectValue("metadata", patchMetadataRequest.metadata, serializePatchMetadataRequest_metadata);
|
|
2359
|
+
writer.writeAdditionalData(patchMetadataRequest.additionalData);
|
|
2078
2360
|
}
|
|
2079
2361
|
/**
|
|
2080
2362
|
* Serializes information the current object
|
|
2081
2363
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2082
|
-
* @param
|
|
2364
|
+
* @param PatchMetadataRequest_metadata The instance to serialize from.
|
|
2083
2365
|
* @param writer Serialization writer to use to serialize this model
|
|
2084
2366
|
*/
|
|
2085
2367
|
// @ts-ignore
|
|
2086
|
-
export function
|
|
2087
|
-
if (!
|
|
2368
|
+
export function serializePatchMetadataRequest_metadata(writer, patchMetadataRequest_metadata = {}, isSerializingDerivedType = false) {
|
|
2369
|
+
if (!patchMetadataRequest_metadata || isSerializingDerivedType) {
|
|
2088
2370
|
return;
|
|
2089
2371
|
}
|
|
2090
|
-
writer.
|
|
2091
|
-
writer.writeAdditionalData(organizationInfrastructure.additionalData);
|
|
2372
|
+
writer.writeAdditionalData(patchMetadataRequest_metadata.additionalData);
|
|
2092
2373
|
}
|
|
2093
2374
|
/**
|
|
2094
2375
|
* Serializes information the current object
|
|
2095
2376
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2096
|
-
* @param
|
|
2377
|
+
* @param PatchPasswordRequest The instance to serialize from.
|
|
2097
2378
|
* @param writer Serialization writer to use to serialize this model
|
|
2098
2379
|
*/
|
|
2099
2380
|
// @ts-ignore
|
|
2100
|
-
export function
|
|
2101
|
-
if (!
|
|
2381
|
+
export function serializePatchPasswordRequest(writer, patchPasswordRequest = {}, isSerializingDerivedType = false) {
|
|
2382
|
+
if (!patchPasswordRequest || isSerializingDerivedType) {
|
|
2102
2383
|
return;
|
|
2103
2384
|
}
|
|
2104
|
-
writer.writeStringValue("
|
|
2105
|
-
writer.writeAdditionalData(
|
|
2385
|
+
writer.writeStringValue("password", patchPasswordRequest.password);
|
|
2386
|
+
writer.writeAdditionalData(patchPasswordRequest.additionalData);
|
|
2106
2387
|
}
|
|
2107
2388
|
/**
|
|
2108
2389
|
* Serializes information the current object
|
|
2109
2390
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2110
|
-
* @param
|
|
2391
|
+
* @param PatchProxyAnnotationRequest The instance to serialize from.
|
|
2111
2392
|
* @param writer Serialization writer to use to serialize this model
|
|
2112
2393
|
*/
|
|
2113
2394
|
// @ts-ignore
|
|
2114
|
-
export function
|
|
2115
|
-
if (!
|
|
2395
|
+
export function serializePatchProxyAnnotationRequest(writer, patchProxyAnnotationRequest = {}, isSerializingDerivedType = false) {
|
|
2396
|
+
if (!patchProxyAnnotationRequest || isSerializingDerivedType) {
|
|
2116
2397
|
return;
|
|
2117
2398
|
}
|
|
2118
|
-
writer.
|
|
2119
|
-
writer.
|
|
2120
|
-
writer.
|
|
2121
|
-
writer.writeBooleanValue("trialAllowed", organizationTerms.trialAllowed);
|
|
2122
|
-
writer.writeStringValue("trialDuration", organizationTerms.trialDuration);
|
|
2123
|
-
writer.writeAdditionalData(organizationTerms.additionalData);
|
|
2124
|
-
}
|
|
2125
|
-
/**
|
|
2126
|
-
* Serializes information the current object
|
|
2127
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2128
|
-
* @param PaymentProcessor The instance to serialize from.
|
|
2129
|
-
* @param writer Serialization writer to use to serialize this model
|
|
2130
|
-
*/
|
|
2131
|
-
// @ts-ignore
|
|
2132
|
-
export function serializePaymentProcessor(writer, paymentProcessor = {}, isSerializingDerivedType = false) {
|
|
2133
|
-
if (!paymentProcessor || isSerializingDerivedType) {
|
|
2134
|
-
return;
|
|
2135
|
-
}
|
|
2136
|
-
writer.writeBooleanValue("configured", paymentProcessor.configured);
|
|
2137
|
-
writer.writeCollectionOfObjectValues("fields", paymentProcessor.fields, serializeProcessorFieldSchema);
|
|
2138
|
-
writer.writeGuidValue("id", paymentProcessor.id);
|
|
2139
|
-
writer.writeGuidValue("organizationId", paymentProcessor.organizationId);
|
|
2140
|
-
writer.writeEnumValue("paymentMethod", paymentProcessor.paymentMethod);
|
|
2141
|
-
writer.writeEnumValue("processor", paymentProcessor.processor);
|
|
2142
|
-
writer.writeObjectValue("values", paymentProcessor.values, serializePaymentProcessor_values);
|
|
2143
|
-
writer.writeAdditionalData(paymentProcessor.additionalData);
|
|
2144
|
-
}
|
|
2145
|
-
/**
|
|
2146
|
-
* Serializes information the current object
|
|
2147
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2148
|
-
* @param PaymentProcessor_values The instance to serialize from.
|
|
2149
|
-
* @param writer Serialization writer to use to serialize this model
|
|
2150
|
-
*/
|
|
2151
|
-
// @ts-ignore
|
|
2152
|
-
export function serializePaymentProcessor_values(writer, paymentProcessor_values = {}, isSerializingDerivedType = false) {
|
|
2153
|
-
if (!paymentProcessor_values || isSerializingDerivedType) {
|
|
2154
|
-
return;
|
|
2155
|
-
}
|
|
2156
|
-
writer.writeAdditionalData(paymentProcessor_values.additionalData);
|
|
2399
|
+
writer.writeStringValue("note", patchProxyAnnotationRequest.note);
|
|
2400
|
+
writer.writeCollectionOfPrimitiveValues("tags", patchProxyAnnotationRequest.tags);
|
|
2401
|
+
writer.writeAdditionalData(patchProxyAnnotationRequest.additionalData);
|
|
2157
2402
|
}
|
|
2158
2403
|
/**
|
|
2159
2404
|
* Serializes information the current object
|
|
@@ -2166,32 +2411,32 @@ export function serializePreviewOrderRequest(writer, previewOrderRequest = {}, i
|
|
|
2166
2411
|
if (!previewOrderRequest || isSerializingDerivedType) {
|
|
2167
2412
|
return;
|
|
2168
2413
|
}
|
|
2169
|
-
writer.
|
|
2170
|
-
writer.writeGuidValue("
|
|
2171
|
-
writer.
|
|
2172
|
-
writer.writeEnumValue("paymentMethod", previewOrderRequest.paymentMethod);
|
|
2173
|
-
writer.writeGuidValue("productId", previewOrderRequest.productId);
|
|
2414
|
+
writer.writeObjectValue("criteria", previewOrderRequest.criteria, serializeOrderCriteria);
|
|
2415
|
+
writer.writeGuidValue("customerId", previewOrderRequest.customerId);
|
|
2416
|
+
writer.writeEnumValue("intent", previewOrderRequest.intent);
|
|
2174
2417
|
writer.writeNumberValue("quantity", previewOrderRequest.quantity);
|
|
2175
2418
|
writer.writeAdditionalData(previewOrderRequest.additionalData);
|
|
2176
2419
|
}
|
|
2177
2420
|
/**
|
|
2178
2421
|
* Serializes information the current object
|
|
2179
2422
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2180
|
-
* @param
|
|
2423
|
+
* @param PreviewOrderResponse The instance to serialize from.
|
|
2181
2424
|
* @param writer Serialization writer to use to serialize this model
|
|
2182
2425
|
*/
|
|
2183
2426
|
// @ts-ignore
|
|
2184
|
-
export function
|
|
2185
|
-
if (!
|
|
2427
|
+
export function serializePreviewOrderResponse(writer, previewOrderResponse = {}, isSerializingDerivedType = false) {
|
|
2428
|
+
if (!previewOrderResponse || isSerializingDerivedType) {
|
|
2186
2429
|
return;
|
|
2187
2430
|
}
|
|
2188
|
-
writer.
|
|
2189
|
-
writer.writeStringValue("
|
|
2190
|
-
writer.
|
|
2191
|
-
writer.
|
|
2192
|
-
writer.
|
|
2193
|
-
writer.
|
|
2194
|
-
writer.
|
|
2431
|
+
writer.writeNumberValue("availableProxies", previewOrderResponse.availableProxies);
|
|
2432
|
+
writer.writeStringValue("currency", previewOrderResponse.currency);
|
|
2433
|
+
writer.writeNumberValue("discount", previewOrderResponse.discount);
|
|
2434
|
+
writer.writeNumberValue("discountPercent", previewOrderResponse.discountPercent);
|
|
2435
|
+
writer.writeNumberValue("quantity", previewOrderResponse.quantity);
|
|
2436
|
+
writer.writeNumberValue("subtotal", previewOrderResponse.subtotal);
|
|
2437
|
+
writer.writeNumberValue("total", previewOrderResponse.total);
|
|
2438
|
+
writer.writeNumberValue("unitPrice", previewOrderResponse.unitPrice);
|
|
2439
|
+
writer.writeAdditionalData(previewOrderResponse.additionalData);
|
|
2195
2440
|
}
|
|
2196
2441
|
/**
|
|
2197
2442
|
* Serializes information the current object
|
|
@@ -2204,15 +2449,16 @@ export function serializeProduct(writer, product = {}, isSerializingDerivedType
|
|
|
2204
2449
|
if (!product || isSerializingDerivedType) {
|
|
2205
2450
|
return;
|
|
2206
2451
|
}
|
|
2452
|
+
writer.writeNumberValue("availableProxies", product.availableProxies);
|
|
2207
2453
|
writer.writeNumberValue("basePrice", product.basePrice);
|
|
2208
|
-
writer.writeStringValue("currency", product.currency);
|
|
2209
2454
|
writer.writeStringValue("description", product.description);
|
|
2210
|
-
writer.writeStringValue("icon", product.icon);
|
|
2211
2455
|
writer.writeGuidValue("id", product.id);
|
|
2212
2456
|
writer.writeBooleanValue("isDisabled", product.isDisabled);
|
|
2213
|
-
writer.
|
|
2457
|
+
writer.writeEnumValue("kind", product.kind);
|
|
2214
2458
|
writer.writeStringValue("name", product.name);
|
|
2459
|
+
writer.writeNumberValue("price", product.price);
|
|
2215
2460
|
writer.writeEnumValue("pricingType", product.pricingType);
|
|
2461
|
+
writer.writeNumberValue("retailPrice", product.retailPrice);
|
|
2216
2462
|
writer.writeAdditionalData(product.additionalData);
|
|
2217
2463
|
}
|
|
2218
2464
|
/**
|
|
@@ -2226,18 +2472,19 @@ export function serializeProxy(writer, proxy = {}, isSerializingDerivedType = fa
|
|
|
2226
2472
|
if (!proxy || isSerializingDerivedType) {
|
|
2227
2473
|
return;
|
|
2228
2474
|
}
|
|
2229
|
-
|
|
2230
|
-
|
|
2475
|
+
if (proxy.capabilities)
|
|
2476
|
+
writer.writeCollectionOfEnumValues("capabilities", proxy.capabilities);
|
|
2477
|
+
writer.writeObjectValue("datacenter", proxy.datacenter, serializeProxyDatacenter);
|
|
2478
|
+
writer.writeObjectValue("features", proxy.features, serializeProxyFeatures);
|
|
2231
2479
|
writer.writeStringValue("host", proxy.host);
|
|
2232
|
-
writer.
|
|
2480
|
+
writer.writeGuidValue("id", proxy.id);
|
|
2233
2481
|
writer.writeStringValue("ip", proxy.ip);
|
|
2234
|
-
writer.
|
|
2235
|
-
writer.
|
|
2236
|
-
writer.writeStringValue("
|
|
2237
|
-
writer.writeStringValue("password", proxy.password);
|
|
2482
|
+
writer.writeObjectValue("isp", proxy.isp, serializeProxyIsp);
|
|
2483
|
+
writer.writeObjectValue("location", proxy.location, serializeProxyLocation);
|
|
2484
|
+
writer.writeStringValue("note", proxy.note);
|
|
2238
2485
|
writer.writeNumberValue("port", proxy.port);
|
|
2239
|
-
writer.
|
|
2240
|
-
writer.
|
|
2486
|
+
writer.writeObjectValue("product", proxy.product, serializeProxyProduct);
|
|
2487
|
+
writer.writeCollectionOfPrimitiveValues("tags", proxy.tags);
|
|
2241
2488
|
writer.writeAdditionalData(proxy.additionalData);
|
|
2242
2489
|
}
|
|
2243
2490
|
/**
|
|
@@ -2258,6 +2505,50 @@ export function serializeProxyCredentialResponse(writer, proxyCredentialResponse
|
|
|
2258
2505
|
writer.writeStringValue("username", proxyCredentialResponse.username);
|
|
2259
2506
|
writer.writeAdditionalData(proxyCredentialResponse.additionalData);
|
|
2260
2507
|
}
|
|
2508
|
+
/**
|
|
2509
|
+
* Serializes information the current object
|
|
2510
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2511
|
+
* @param ProxyDatacenter The instance to serialize from.
|
|
2512
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2513
|
+
*/
|
|
2514
|
+
// @ts-ignore
|
|
2515
|
+
export function serializeProxyDatacenter(writer, proxyDatacenter = {}, isSerializingDerivedType = false) {
|
|
2516
|
+
if (!proxyDatacenter || isSerializingDerivedType) {
|
|
2517
|
+
return;
|
|
2518
|
+
}
|
|
2519
|
+
writer.writeGuidValue("id", proxyDatacenter.id);
|
|
2520
|
+
writer.writeStringValue("name", proxyDatacenter.name);
|
|
2521
|
+
writer.writeAdditionalData(proxyDatacenter.additionalData);
|
|
2522
|
+
}
|
|
2523
|
+
/**
|
|
2524
|
+
* Serializes information the current object
|
|
2525
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2526
|
+
* @param ProxyFeatures The instance to serialize from.
|
|
2527
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2528
|
+
*/
|
|
2529
|
+
// @ts-ignore
|
|
2530
|
+
export function serializeProxyFeatures(writer, proxyFeatures = {}, isSerializingDerivedType = false) {
|
|
2531
|
+
if (!proxyFeatures || isSerializingDerivedType) {
|
|
2532
|
+
return;
|
|
2533
|
+
}
|
|
2534
|
+
writer.writeObjectValue("ipRotation", proxyFeatures.ipRotation, serializeProxyIpRotationFeature);
|
|
2535
|
+
writer.writeAdditionalData(proxyFeatures.additionalData);
|
|
2536
|
+
}
|
|
2537
|
+
/**
|
|
2538
|
+
* Serializes information the current object
|
|
2539
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2540
|
+
* @param ProxyIpRotationFeature The instance to serialize from.
|
|
2541
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2542
|
+
*/
|
|
2543
|
+
// @ts-ignore
|
|
2544
|
+
export function serializeProxyIpRotationFeature(writer, proxyIpRotationFeature = {}, isSerializingDerivedType = false) {
|
|
2545
|
+
if (!proxyIpRotationFeature || isSerializingDerivedType) {
|
|
2546
|
+
return;
|
|
2547
|
+
}
|
|
2548
|
+
writer.writeNumberValue("intervalMinutes", proxyIpRotationFeature.intervalMinutes);
|
|
2549
|
+
writer.writeNumberValue("intervalSeconds", proxyIpRotationFeature.intervalSeconds);
|
|
2550
|
+
writer.writeAdditionalData(proxyIpRotationFeature.additionalData);
|
|
2551
|
+
}
|
|
2261
2552
|
/**
|
|
2262
2553
|
* Serializes information the current object
|
|
2263
2554
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -2269,10 +2560,72 @@ export function serializeProxyIpRotationResponse(writer, proxyIpRotationResponse
|
|
|
2269
2560
|
if (!proxyIpRotationResponse || isSerializingDerivedType) {
|
|
2270
2561
|
return;
|
|
2271
2562
|
}
|
|
2272
|
-
writer.writeNumberValue("
|
|
2273
|
-
writer.writeNumberValue("
|
|
2563
|
+
writer.writeNumberValue("intervalMinutes", proxyIpRotationResponse.intervalMinutes);
|
|
2564
|
+
writer.writeNumberValue("intervalSeconds", proxyIpRotationResponse.intervalSeconds);
|
|
2274
2565
|
writer.writeAdditionalData(proxyIpRotationResponse.additionalData);
|
|
2275
2566
|
}
|
|
2567
|
+
/**
|
|
2568
|
+
* Serializes information the current object
|
|
2569
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2570
|
+
* @param ProxyIsp The instance to serialize from.
|
|
2571
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2572
|
+
*/
|
|
2573
|
+
// @ts-ignore
|
|
2574
|
+
export function serializeProxyIsp(writer, proxyIsp = {}, isSerializingDerivedType = false) {
|
|
2575
|
+
if (!proxyIsp || isSerializingDerivedType) {
|
|
2576
|
+
return;
|
|
2577
|
+
}
|
|
2578
|
+
writer.writeGuidValue("id", proxyIsp.id);
|
|
2579
|
+
writer.writeStringValue("logoUrl", proxyIsp.logoUrl);
|
|
2580
|
+
writer.writeStringValue("name", proxyIsp.name);
|
|
2581
|
+
writer.writeAdditionalData(proxyIsp.additionalData);
|
|
2582
|
+
}
|
|
2583
|
+
/**
|
|
2584
|
+
* Serializes information the current object
|
|
2585
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2586
|
+
* @param ProxyLocation The instance to serialize from.
|
|
2587
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2588
|
+
*/
|
|
2589
|
+
// @ts-ignore
|
|
2590
|
+
export function serializeProxyLocation(writer, proxyLocation = {}, isSerializingDerivedType = false) {
|
|
2591
|
+
if (!proxyLocation || isSerializingDerivedType) {
|
|
2592
|
+
return;
|
|
2593
|
+
}
|
|
2594
|
+
writer.writeStringValue("city", proxyLocation.city);
|
|
2595
|
+
writer.writeStringValue("countryCode", proxyLocation.countryCode);
|
|
2596
|
+
writer.writeGuidValue("id", proxyLocation.id);
|
|
2597
|
+
writer.writeAdditionalData(proxyLocation.additionalData);
|
|
2598
|
+
}
|
|
2599
|
+
/**
|
|
2600
|
+
* Serializes information the current object
|
|
2601
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2602
|
+
* @param ProxyOptions The instance to serialize from.
|
|
2603
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2604
|
+
*/
|
|
2605
|
+
// @ts-ignore
|
|
2606
|
+
export function serializeProxyOptions(writer, proxyOptions = {}, isSerializingDerivedType = false) {
|
|
2607
|
+
if (!proxyOptions || isSerializingDerivedType) {
|
|
2608
|
+
return;
|
|
2609
|
+
}
|
|
2610
|
+
writer.writeGuidValue("id", proxyOptions.id);
|
|
2611
|
+
writer.writeObjectValue("metadata", proxyOptions.metadata, serializeProxyOptions_metadata);
|
|
2612
|
+
writer.writeGuidValue("proxyId", proxyOptions.proxyId);
|
|
2613
|
+
writer.writeEnumValue("resolutionMode", proxyOptions.resolutionMode);
|
|
2614
|
+
writer.writeAdditionalData(proxyOptions.additionalData);
|
|
2615
|
+
}
|
|
2616
|
+
/**
|
|
2617
|
+
* Serializes information the current object
|
|
2618
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2619
|
+
* @param ProxyOptions_metadata The instance to serialize from.
|
|
2620
|
+
* @param writer Serialization writer to use to serialize this model
|
|
2621
|
+
*/
|
|
2622
|
+
// @ts-ignore
|
|
2623
|
+
export function serializeProxyOptions_metadata(writer, proxyOptions_metadata = {}, isSerializingDerivedType = false) {
|
|
2624
|
+
if (!proxyOptions_metadata || isSerializingDerivedType) {
|
|
2625
|
+
return;
|
|
2626
|
+
}
|
|
2627
|
+
writer.writeAdditionalData(proxyOptions_metadata.additionalData);
|
|
2628
|
+
}
|
|
2276
2629
|
/**
|
|
2277
2630
|
* Serializes information the current object
|
|
2278
2631
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -2285,7 +2638,7 @@ export function serializeProxyPingResponse(writer, proxyPingResponse = {}, isSer
|
|
|
2285
2638
|
return;
|
|
2286
2639
|
}
|
|
2287
2640
|
writer.writeStringValue("exitIp", proxyPingResponse.exitIp);
|
|
2288
|
-
writer.writeNumberValue("
|
|
2641
|
+
writer.writeNumberValue("latencyMilliseconds", proxyPingResponse.latencyMilliseconds);
|
|
2289
2642
|
writer.writeBooleanValue("reachable", proxyPingResponse.reachable);
|
|
2290
2643
|
writer.writeNumberValue("statusCode", proxyPingResponse.statusCode);
|
|
2291
2644
|
writer.writeAdditionalData(proxyPingResponse.additionalData);
|
|
@@ -2293,293 +2646,330 @@ export function serializeProxyPingResponse(writer, proxyPingResponse = {}, isSer
|
|
|
2293
2646
|
/**
|
|
2294
2647
|
* Serializes information the current object
|
|
2295
2648
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2296
|
-
* @param
|
|
2649
|
+
* @param ProxyProduct The instance to serialize from.
|
|
2297
2650
|
* @param writer Serialization writer to use to serialize this model
|
|
2298
2651
|
*/
|
|
2299
2652
|
// @ts-ignore
|
|
2300
|
-
export function
|
|
2301
|
-
if (!
|
|
2653
|
+
export function serializeProxyProduct(writer, proxyProduct = {}, isSerializingDerivedType = false) {
|
|
2654
|
+
if (!proxyProduct || isSerializingDerivedType) {
|
|
2302
2655
|
return;
|
|
2303
2656
|
}
|
|
2304
|
-
writer.
|
|
2305
|
-
writer.
|
|
2306
|
-
writer.writeStringValue("
|
|
2307
|
-
writer.
|
|
2308
|
-
writer.writeGuidValue("id", review.id);
|
|
2309
|
-
writer.writeBooleanValue("isFeatured", review.isFeatured);
|
|
2310
|
-
writer.writeBooleanValue("isPending", review.isPending);
|
|
2311
|
-
writer.writeGuidValue("organizationId", review.organizationId);
|
|
2312
|
-
writer.writeNumberValue("rating", review.rating);
|
|
2313
|
-
writer.writeAdditionalData(review.additionalData);
|
|
2657
|
+
writer.writeGuidValue("id", proxyProduct.id);
|
|
2658
|
+
writer.writeEnumValue("kind", proxyProduct.kind);
|
|
2659
|
+
writer.writeStringValue("name", proxyProduct.name);
|
|
2660
|
+
writer.writeAdditionalData(proxyProduct.additionalData);
|
|
2314
2661
|
}
|
|
2315
2662
|
/**
|
|
2316
2663
|
* Serializes information the current object
|
|
2317
2664
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2318
|
-
* @param
|
|
2665
|
+
* @param RequestDetails The instance to serialize from.
|
|
2319
2666
|
* @param writer Serialization writer to use to serialize this model
|
|
2320
2667
|
*/
|
|
2321
2668
|
// @ts-ignore
|
|
2322
|
-
export function
|
|
2323
|
-
if (!
|
|
2669
|
+
export function serializeRequestDetails(writer, requestDetails = {}, isSerializingDerivedType = false) {
|
|
2670
|
+
if (!requestDetails || isSerializingDerivedType) {
|
|
2324
2671
|
return;
|
|
2325
2672
|
}
|
|
2326
|
-
writer.
|
|
2327
|
-
writer.
|
|
2673
|
+
writer.writeStringValue("clientIp", requestDetails.clientIp);
|
|
2674
|
+
writer.writeStringValue("correlationId", requestDetails.correlationId);
|
|
2675
|
+
writer.writeDateValue("date", requestDetails.date);
|
|
2676
|
+
writer.writeStringValue("endpoint", requestDetails.endpoint);
|
|
2677
|
+
writer.writeNumberValue("timestamp", requestDetails.timestamp);
|
|
2678
|
+
writer.writeStringValue("userAgent", requestDetails.userAgent);
|
|
2679
|
+
writer.writeAdditionalData(requestDetails.additionalData);
|
|
2328
2680
|
}
|
|
2329
2681
|
/**
|
|
2330
2682
|
* Serializes information the current object
|
|
2331
2683
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2332
|
-
* @param
|
|
2684
|
+
* @param ResetPasswordResponse The instance to serialize from.
|
|
2333
2685
|
* @param writer Serialization writer to use to serialize this model
|
|
2334
2686
|
*/
|
|
2335
2687
|
// @ts-ignore
|
|
2336
|
-
export function
|
|
2337
|
-
if (!
|
|
2688
|
+
export function serializeResetPasswordResponse(writer, resetPasswordResponse = {}, isSerializingDerivedType = false) {
|
|
2689
|
+
if (!resetPasswordResponse || isSerializingDerivedType) {
|
|
2338
2690
|
return;
|
|
2339
2691
|
}
|
|
2340
|
-
writer.writeStringValue("
|
|
2341
|
-
writer.
|
|
2342
|
-
writer.writeStringValue("message", systemAlert.message);
|
|
2343
|
-
writer.writeAdditionalData(systemAlert.additionalData);
|
|
2692
|
+
writer.writeStringValue("temporaryPassword", resetPasswordResponse.temporaryPassword);
|
|
2693
|
+
writer.writeAdditionalData(resetPasswordResponse.additionalData);
|
|
2344
2694
|
}
|
|
2345
2695
|
/**
|
|
2346
2696
|
* Serializes information the current object
|
|
2347
2697
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2348
|
-
* @param
|
|
2698
|
+
* @param ResolveIncidentRequest The instance to serialize from.
|
|
2349
2699
|
* @param writer Serialization writer to use to serialize this model
|
|
2350
2700
|
*/
|
|
2351
2701
|
// @ts-ignore
|
|
2352
|
-
export function
|
|
2353
|
-
if (!
|
|
2702
|
+
export function serializeResolveIncidentRequest(writer, resolveIncidentRequest = {}, isSerializingDerivedType = false) {
|
|
2703
|
+
if (!resolveIncidentRequest || isSerializingDerivedType) {
|
|
2354
2704
|
return;
|
|
2355
2705
|
}
|
|
2356
|
-
writer.
|
|
2357
|
-
writer.writeStringValue("
|
|
2358
|
-
writer.
|
|
2359
|
-
writer.writeStringValue("externalId", updateCustomerRequest.externalId);
|
|
2360
|
-
writer.writeAdditionalData(updateCustomerRequest.additionalData);
|
|
2706
|
+
writer.writeStringValue("reason", resolveIncidentRequest.reason);
|
|
2707
|
+
writer.writeStringValue("resolutionNote", resolveIncidentRequest.resolutionNote);
|
|
2708
|
+
writer.writeAdditionalData(resolveIncidentRequest.additionalData);
|
|
2361
2709
|
}
|
|
2362
2710
|
/**
|
|
2363
2711
|
* Serializes information the current object
|
|
2364
2712
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2365
|
-
* @param
|
|
2713
|
+
* @param Review The instance to serialize from.
|
|
2366
2714
|
* @param writer Serialization writer to use to serialize this model
|
|
2367
2715
|
*/
|
|
2368
2716
|
// @ts-ignore
|
|
2369
|
-
export function
|
|
2370
|
-
if (!
|
|
2717
|
+
export function serializeReview(writer, review = {}, isSerializingDerivedType = false) {
|
|
2718
|
+
if (!review || isSerializingDerivedType) {
|
|
2371
2719
|
return;
|
|
2372
2720
|
}
|
|
2373
|
-
writer.
|
|
2721
|
+
writer.writeStringValue("authorName", review.authorName);
|
|
2722
|
+
writer.writeStringValue("content", review.content);
|
|
2723
|
+
writer.writeStringValue("customAuthorName", review.customAuthorName);
|
|
2724
|
+
writer.writeGuidValue("customerId", review.customerId);
|
|
2725
|
+
writer.writeGuidValue("id", review.id);
|
|
2726
|
+
writer.writeBooleanValue("isFeatured", review.isFeatured);
|
|
2727
|
+
writer.writeBooleanValue("isPending", review.isPending);
|
|
2728
|
+
writer.writeObjectValue("metadata", review.metadata, serializeReview_metadata);
|
|
2729
|
+
writer.writeNumberValue("rating", review.rating);
|
|
2730
|
+
writer.writeAdditionalData(review.additionalData);
|
|
2374
2731
|
}
|
|
2375
2732
|
/**
|
|
2376
2733
|
* Serializes information the current object
|
|
2377
2734
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2378
|
-
* @param
|
|
2735
|
+
* @param Review_metadata The instance to serialize from.
|
|
2379
2736
|
* @param writer Serialization writer to use to serialize this model
|
|
2380
2737
|
*/
|
|
2381
2738
|
// @ts-ignore
|
|
2382
|
-
export function
|
|
2383
|
-
if (!
|
|
2739
|
+
export function serializeReview_metadata(writer, review_metadata = {}, isSerializingDerivedType = false) {
|
|
2740
|
+
if (!review_metadata || isSerializingDerivedType) {
|
|
2384
2741
|
return;
|
|
2385
2742
|
}
|
|
2386
|
-
writer.
|
|
2387
|
-
writer.writeStringValue("city", updateOrganizationBillingRequest.city);
|
|
2388
|
-
writer.writeStringValue("country", updateOrganizationBillingRequest.country);
|
|
2389
|
-
writer.writeStringValue("email", updateOrganizationBillingRequest.email);
|
|
2390
|
-
writer.writeStringValue("postalCode", updateOrganizationBillingRequest.postalCode);
|
|
2391
|
-
writer.writeStringValue("taxId", updateOrganizationBillingRequest.taxId);
|
|
2392
|
-
writer.writeAdditionalData(updateOrganizationBillingRequest.additionalData);
|
|
2743
|
+
writer.writeAdditionalData(review_metadata.additionalData);
|
|
2393
2744
|
}
|
|
2394
2745
|
/**
|
|
2395
2746
|
* Serializes information the current object
|
|
2396
2747
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2397
|
-
* @param
|
|
2748
|
+
* @param ReviewKycRequest The instance to serialize from.
|
|
2398
2749
|
* @param writer Serialization writer to use to serialize this model
|
|
2399
2750
|
*/
|
|
2400
2751
|
// @ts-ignore
|
|
2401
|
-
export function
|
|
2402
|
-
if (!
|
|
2752
|
+
export function serializeReviewKycRequest(writer, reviewKycRequest = {}, isSerializingDerivedType = false) {
|
|
2753
|
+
if (!reviewKycRequest || isSerializingDerivedType) {
|
|
2403
2754
|
return;
|
|
2404
2755
|
}
|
|
2405
|
-
writer.
|
|
2406
|
-
writer.
|
|
2407
|
-
writer.writeStringValue("logoDarkUrl", updateOrganizationBrandingRequest.logoDarkUrl);
|
|
2408
|
-
writer.writeStringValue("logoLightUrl", updateOrganizationBrandingRequest.logoLightUrl);
|
|
2409
|
-
writer.writeAdditionalData(updateOrganizationBrandingRequest.additionalData);
|
|
2756
|
+
writer.writeBooleanValue("approved", reviewKycRequest.approved);
|
|
2757
|
+
writer.writeAdditionalData(reviewKycRequest.additionalData);
|
|
2410
2758
|
}
|
|
2411
2759
|
/**
|
|
2412
2760
|
* Serializes information the current object
|
|
2413
2761
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2414
|
-
* @param
|
|
2762
|
+
* @param SendVerificationRequest The instance to serialize from.
|
|
2415
2763
|
* @param writer Serialization writer to use to serialize this model
|
|
2416
2764
|
*/
|
|
2417
2765
|
// @ts-ignore
|
|
2418
|
-
export function
|
|
2419
|
-
if (!
|
|
2766
|
+
export function serializeSendVerificationRequest(writer, sendVerificationRequest = {}, isSerializingDerivedType = false) {
|
|
2767
|
+
if (!sendVerificationRequest || isSerializingDerivedType) {
|
|
2420
2768
|
return;
|
|
2421
2769
|
}
|
|
2422
|
-
writer.writeStringValue("
|
|
2423
|
-
writer.
|
|
2424
|
-
writer.writeEnumValue("region", updateOrganizationEmailRequest.region);
|
|
2425
|
-
writer.writeStringValue("replyTo", updateOrganizationEmailRequest.replyTo);
|
|
2426
|
-
writer.writeStringValue("sendingDomain", updateOrganizationEmailRequest.sendingDomain);
|
|
2427
|
-
writer.writeAdditionalData(updateOrganizationEmailRequest.additionalData);
|
|
2770
|
+
writer.writeStringValue("verificationUrl", sendVerificationRequest.verificationUrl);
|
|
2771
|
+
writer.writeAdditionalData(sendVerificationRequest.additionalData);
|
|
2428
2772
|
}
|
|
2429
2773
|
/**
|
|
2430
2774
|
* Serializes information the current object
|
|
2431
2775
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2432
|
-
* @param
|
|
2776
|
+
* @param TrialOrderRequest The instance to serialize from.
|
|
2433
2777
|
* @param writer Serialization writer to use to serialize this model
|
|
2434
2778
|
*/
|
|
2435
2779
|
// @ts-ignore
|
|
2436
|
-
export function
|
|
2437
|
-
if (!
|
|
2780
|
+
export function serializeTrialOrderRequest(writer, trialOrderRequest = {}, isSerializingDerivedType = false) {
|
|
2781
|
+
if (!trialOrderRequest || isSerializingDerivedType) {
|
|
2438
2782
|
return;
|
|
2439
2783
|
}
|
|
2440
|
-
writer.
|
|
2441
|
-
writer.
|
|
2784
|
+
writer.writeObjectValue("criteria", trialOrderRequest.criteria, serializeOrderCriteria);
|
|
2785
|
+
writer.writeGuidValue("customerId", trialOrderRequest.customerId);
|
|
2786
|
+
writer.writeEnumValue("intent", trialOrderRequest.intent);
|
|
2787
|
+
writer.writeNumberValue("quantity", trialOrderRequest.quantity);
|
|
2788
|
+
writer.writeAdditionalData(trialOrderRequest.additionalData);
|
|
2442
2789
|
}
|
|
2443
2790
|
/**
|
|
2444
2791
|
* Serializes information the current object
|
|
2445
2792
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2446
|
-
* @param
|
|
2793
|
+
* @param UpdateCustomerRequest The instance to serialize from.
|
|
2447
2794
|
* @param writer Serialization writer to use to serialize this model
|
|
2448
2795
|
*/
|
|
2449
2796
|
// @ts-ignore
|
|
2450
|
-
export function
|
|
2451
|
-
if (!
|
|
2797
|
+
export function serializeUpdateCustomerRequest(writer, updateCustomerRequest = {}, isSerializingDerivedType = false) {
|
|
2798
|
+
if (!updateCustomerRequest || isSerializingDerivedType) {
|
|
2452
2799
|
return;
|
|
2453
2800
|
}
|
|
2454
|
-
writer.
|
|
2455
|
-
writer.
|
|
2456
|
-
writer.
|
|
2457
|
-
writer.
|
|
2458
|
-
writer.
|
|
2459
|
-
writer.
|
|
2801
|
+
writer.writeObjectValue("billing", updateCustomerRequest.billing, serializeCustomerBilling);
|
|
2802
|
+
writer.writeStringValue("displayName", updateCustomerRequest.displayName);
|
|
2803
|
+
writer.writeStringValue("email", updateCustomerRequest.email);
|
|
2804
|
+
writer.writeStringValue("externalId", updateCustomerRequest.externalId);
|
|
2805
|
+
writer.writeObjectValue("externalLogins", updateCustomerRequest.externalLogins, serializeUpdateCustomerRequest_externalLogins);
|
|
2806
|
+
writer.writeStringValue("locale", updateCustomerRequest.locale);
|
|
2807
|
+
writer.writeStringValue("phoneNumber", updateCustomerRequest.phoneNumber);
|
|
2808
|
+
writer.writeStringValue("pushNotificationsToken", updateCustomerRequest.pushNotificationsToken);
|
|
2809
|
+
writer.writeAdditionalData(updateCustomerRequest.additionalData);
|
|
2460
2810
|
}
|
|
2461
2811
|
/**
|
|
2462
2812
|
* Serializes information the current object
|
|
2463
2813
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2464
|
-
* @param
|
|
2814
|
+
* @param UpdateCustomerRequest_externalLogins The instance to serialize from.
|
|
2465
2815
|
* @param writer Serialization writer to use to serialize this model
|
|
2466
2816
|
*/
|
|
2467
2817
|
// @ts-ignore
|
|
2468
|
-
export function
|
|
2469
|
-
if (!
|
|
2818
|
+
export function serializeUpdateCustomerRequest_externalLogins(writer, updateCustomerRequest_externalLogins = {}, isSerializingDerivedType = false) {
|
|
2819
|
+
if (!updateCustomerRequest_externalLogins || isSerializingDerivedType) {
|
|
2470
2820
|
return;
|
|
2471
2821
|
}
|
|
2472
|
-
writer.
|
|
2473
|
-
writer.writeStringValue("name", updateOrganizationRequest.name);
|
|
2474
|
-
writer.writeAdditionalData(updateOrganizationRequest.additionalData);
|
|
2822
|
+
writer.writeAdditionalData(updateCustomerRequest_externalLogins.additionalData);
|
|
2475
2823
|
}
|
|
2476
2824
|
/**
|
|
2477
2825
|
* Serializes information the current object
|
|
2478
2826
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2479
|
-
* @param
|
|
2827
|
+
* @param UpdateProxyCredentialsRequest The instance to serialize from.
|
|
2480
2828
|
* @param writer Serialization writer to use to serialize this model
|
|
2481
2829
|
*/
|
|
2482
2830
|
// @ts-ignore
|
|
2483
|
-
export function
|
|
2484
|
-
if (!
|
|
2831
|
+
export function serializeUpdateProxyCredentialsRequest(writer, updateProxyCredentialsRequest = {}, isSerializingDerivedType = false) {
|
|
2832
|
+
if (!updateProxyCredentialsRequest || isSerializingDerivedType) {
|
|
2485
2833
|
return;
|
|
2486
2834
|
}
|
|
2487
|
-
writer.
|
|
2488
|
-
writer.
|
|
2835
|
+
writer.writeCollectionOfPrimitiveValues("allowedIps", updateProxyCredentialsRequest.allowedIps);
|
|
2836
|
+
writer.writeStringValue("password", updateProxyCredentialsRequest.password);
|
|
2837
|
+
writer.writeStringValue("username", updateProxyCredentialsRequest.username);
|
|
2838
|
+
writer.writeAdditionalData(updateProxyCredentialsRequest.additionalData);
|
|
2489
2839
|
}
|
|
2490
2840
|
/**
|
|
2491
2841
|
* Serializes information the current object
|
|
2492
2842
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2493
|
-
* @param
|
|
2843
|
+
* @param UpdateProxyIpRotationRequest The instance to serialize from.
|
|
2494
2844
|
* @param writer Serialization writer to use to serialize this model
|
|
2495
2845
|
*/
|
|
2496
2846
|
// @ts-ignore
|
|
2497
|
-
export function
|
|
2498
|
-
if (!
|
|
2847
|
+
export function serializeUpdateProxyIpRotationRequest(writer, updateProxyIpRotationRequest = {}, isSerializingDerivedType = false) {
|
|
2848
|
+
if (!updateProxyIpRotationRequest || isSerializingDerivedType) {
|
|
2499
2849
|
return;
|
|
2500
2850
|
}
|
|
2501
|
-
writer.
|
|
2851
|
+
writer.writeNumberValue("intervalSeconds", updateProxyIpRotationRequest.intervalSeconds);
|
|
2852
|
+
writer.writeAdditionalData(updateProxyIpRotationRequest.additionalData);
|
|
2502
2853
|
}
|
|
2503
2854
|
/**
|
|
2504
2855
|
* Serializes information the current object
|
|
2505
2856
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
2506
|
-
* @param
|
|
2857
|
+
* @param UpdateProxyOptionsRequest The instance to serialize from.
|
|
2507
2858
|
* @param writer Serialization writer to use to serialize this model
|
|
2508
2859
|
*/
|
|
2509
2860
|
// @ts-ignore
|
|
2510
|
-
export function
|
|
2511
|
-
if (!
|
|
2861
|
+
export function serializeUpdateProxyOptionsRequest(writer, updateProxyOptionsRequest = {}, isSerializingDerivedType = false) {
|
|
2862
|
+
if (!updateProxyOptionsRequest || isSerializingDerivedType) {
|
|
2512
2863
|
return;
|
|
2513
2864
|
}
|
|
2514
|
-
writer.
|
|
2515
|
-
writer.writeAdditionalData(
|
|
2865
|
+
writer.writeEnumValue("resolutionMode", updateProxyOptionsRequest.resolutionMode);
|
|
2866
|
+
writer.writeAdditionalData(updateProxyOptionsRequest.additionalData);
|
|
2516
2867
|
}
|
|
2868
|
+
/**
|
|
2869
|
+
* Publication state of the announcement: only Published ones are shown.
|
|
2870
|
+
*/
|
|
2517
2871
|
export const AnnouncementStatusesObject = {
|
|
2518
2872
|
Draft: "Draft",
|
|
2519
2873
|
Published: "Published",
|
|
2520
2874
|
Archived: "Archived",
|
|
2521
2875
|
};
|
|
2876
|
+
/**
|
|
2877
|
+
* Billing period of the selected price.
|
|
2878
|
+
*/
|
|
2522
2879
|
export const BillingCyclesObject = {
|
|
2523
2880
|
Daily: "Daily",
|
|
2524
2881
|
Weekly: "Weekly",
|
|
2525
2882
|
Monthly: "Monthly",
|
|
2526
2883
|
Quarterly: "Quarterly",
|
|
2527
2884
|
Yearly: "Yearly",
|
|
2885
|
+
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2886
|
+
};
|
|
2887
|
+
export const CapabilityTypesObject = {
|
|
2888
|
+
IpScore: "IpScore",
|
|
2889
|
+
Ipv6: "Ipv6",
|
|
2528
2890
|
};
|
|
2891
|
+
/**
|
|
2892
|
+
* Overrides the organization's grace-period policy for this customer's orders. Null (the default) inherits the org's `OrganizationTerms.GracePeriodPolicy`; set it to give one customer its own policy (e.g. GracePeriodPolicies.KeepAlive) without changing the whole organization.
|
|
2893
|
+
*/
|
|
2894
|
+
export const GracePeriodPoliciesObject = {
|
|
2895
|
+
DefaultEscaped: "Default",
|
|
2896
|
+
None: "None",
|
|
2897
|
+
KeepAlive: "KeepAlive",
|
|
2898
|
+
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2899
|
+
};
|
|
2900
|
+
/**
|
|
2901
|
+
* Lifecycle state of the incident (open, resolved, etc.).
|
|
2902
|
+
*/
|
|
2529
2903
|
export const IncidentStatusesObject = {
|
|
2530
2904
|
Open: "Open",
|
|
2531
|
-
Investigating: "Investigating",
|
|
2532
2905
|
Resolved: "Resolved",
|
|
2533
2906
|
Dismissed: "Dismissed",
|
|
2534
2907
|
};
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
Weekly: "Weekly",
|
|
2542
|
-
Monthly: "Monthly",
|
|
2543
|
-
Quarterly: "Quarterly",
|
|
2544
|
-
Yearly: "Yearly",
|
|
2545
|
-
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2546
|
-
};
|
|
2547
|
-
export const NullableOfPaymentMethodsObject = {
|
|
2548
|
-
Balance: "Balance",
|
|
2549
|
-
CreditCard: "CreditCard",
|
|
2550
|
-
Cryptocurrency: "Cryptocurrency",
|
|
2551
|
-
Debug: "Debug",
|
|
2908
|
+
/**
|
|
2909
|
+
* Reason the order is placed, which decides how it is priced and paid. Null defaults to the caller's channel: OrderIntents.Wholesale from the console, OrderIntents.Retail from the API.
|
|
2910
|
+
*/
|
|
2911
|
+
export const OrderIntentsObject = {
|
|
2912
|
+
Wholesale: "Wholesale",
|
|
2913
|
+
Retail: "Retail",
|
|
2552
2914
|
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2553
2915
|
};
|
|
2916
|
+
/**
|
|
2917
|
+
* Commercial state of the order. Stored as the source of truth for states that aren't derivable from the dates (`Provisioning`, `Expired` once a worker confirms it, and later cancellations or holds). The transient `GracePeriod` is layered on at read time by `ResolveStatus` from DateTimeOffset? Order.ExpiresAt and the organization's grace policy. Defaults to `Pending` (nothing paid or set up yet); each flow sets the real state through the transition helpers.
|
|
2918
|
+
*/
|
|
2554
2919
|
export const OrderStatusesObject = {
|
|
2555
2920
|
Pending: "Pending",
|
|
2556
2921
|
Provisioning: "Provisioning",
|
|
2557
2922
|
Active: "Active",
|
|
2923
|
+
GracePeriod: "GracePeriod",
|
|
2558
2924
|
Expired: "Expired",
|
|
2925
|
+
Deleted: "Deleted",
|
|
2559
2926
|
};
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2927
|
+
/**
|
|
2928
|
+
* Scheme that produced string? Customer.PasswordHash, defaulting to BCrypt. A Legacy hash is an import from a previous system, verified as-is and upgraded to BCrypt on the next successful login. The scheme is exposed to clients (the admin surface shows it) even though the hash itself never is.
|
|
2929
|
+
*/
|
|
2930
|
+
export const PasswordHashSchemesObject = {
|
|
2931
|
+
Bcrypt: "Bcrypt",
|
|
2932
|
+
Legacy: "Legacy",
|
|
2563
2933
|
};
|
|
2934
|
+
/**
|
|
2935
|
+
* Payment method for the order.
|
|
2936
|
+
*/
|
|
2564
2937
|
export const PaymentMethodsObject = {
|
|
2565
2938
|
Balance: "Balance",
|
|
2566
2939
|
CreditCard: "CreditCard",
|
|
2567
2940
|
Cryptocurrency: "Cryptocurrency",
|
|
2568
2941
|
Debug: "Debug",
|
|
2942
|
+
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2569
2943
|
};
|
|
2944
|
+
/**
|
|
2945
|
+
* Processor that settles the order (Stripe, Heleket). Selects the webhook and reconciliation path that keeps it alive. Null for a trial (nothing to settle).
|
|
2946
|
+
*/
|
|
2570
2947
|
export const PaymentProcessorsObject = {
|
|
2948
|
+
None: "None",
|
|
2571
2949
|
Heleket: "Heleket",
|
|
2572
2950
|
Stripe: "Stripe",
|
|
2951
|
+
OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
|
|
2573
2952
|
};
|
|
2953
|
+
/**
|
|
2954
|
+
* How the product is billed.
|
|
2955
|
+
*/
|
|
2574
2956
|
export const PricingTypesObject = {
|
|
2575
2957
|
PerUnit: "PerUnit",
|
|
2576
2958
|
PerBandwidth: "PerBandwidth",
|
|
2577
2959
|
};
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2960
|
+
/**
|
|
2961
|
+
* Kind of resource this product delivers (proxy, host).
|
|
2962
|
+
*/
|
|
2963
|
+
export const ProductKindsObject = {
|
|
2964
|
+
Proxy: "Proxy",
|
|
2965
|
+
Host: "Host",
|
|
2966
|
+
};
|
|
2967
|
+
/**
|
|
2968
|
+
* How the proxy resolves addresses. The non-default modes need the proxy's IPv6 capability.
|
|
2969
|
+
*/
|
|
2970
|
+
export const ResolutionModesObject = {
|
|
2971
|
+
DefaultEscaped: "Default",
|
|
2972
|
+
Ipv6: "Ipv6",
|
|
2583
2973
|
};
|
|
2584
2974
|
/* tslint:enable */
|
|
2585
2975
|
/* eslint-enable */
|