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