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