@hypelabs-llc/ts-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +69 -0
  2. package/dist/apiKeyAuthenticationProvider.d.ts +10 -0
  3. package/dist/apiKeyAuthenticationProvider.js +14 -0
  4. package/dist/generated/activities/index.d.ts +25 -0
  5. package/dist/generated/activities/index.js +22 -0
  6. package/dist/generated/customers/index.d.ts +52 -0
  7. package/dist/generated/customers/index.js +43 -0
  8. package/dist/generated/customers/item/index.d.ts +62 -0
  9. package/dist/generated/customers/item/index.js +46 -0
  10. package/dist/generated/customers/item/kyc/index.d.ts +29 -0
  11. package/dist/generated/customers/item/kyc/index.js +25 -0
  12. package/dist/generated/incidents/index.d.ts +52 -0
  13. package/dist/generated/incidents/index.js +42 -0
  14. package/dist/generated/incidents/item/index.d.ts +39 -0
  15. package/dist/generated/incidents/item/index.js +28 -0
  16. package/dist/generated/isps/index.d.ts +34 -0
  17. package/dist/generated/isps/index.js +22 -0
  18. package/dist/generated/locations/index.d.ts +33 -0
  19. package/dist/generated/locations/index.js +22 -0
  20. package/dist/generated/models/index.d.ts +2340 -0
  21. package/dist/generated/models/index.js +2425 -0
  22. package/dist/generated/orders/index.d.ts +62 -0
  23. package/dist/generated/orders/index.js +52 -0
  24. package/dist/generated/orders/item/extend/index.d.ts +29 -0
  25. package/dist/generated/orders/item/extend/index.js +25 -0
  26. package/dist/generated/orders/item/index.d.ts +19 -0
  27. package/dist/generated/orders/item/index.js +19 -0
  28. package/dist/generated/orders/preview/index.d.ts +29 -0
  29. package/dist/generated/orders/preview/index.js +25 -0
  30. package/dist/generated/orders/trial/index.d.ts +29 -0
  31. package/dist/generated/orders/trial/index.js +25 -0
  32. package/dist/generated/organizations/index.d.ts +52 -0
  33. package/dist/generated/organizations/index.js +43 -0
  34. package/dist/generated/organizations/item/balance/deposit/index.d.ts +29 -0
  35. package/dist/generated/organizations/item/balance/deposit/index.js +25 -0
  36. package/dist/generated/organizations/item/balance/index.d.ts +36 -0
  37. package/dist/generated/organizations/item/balance/index.js +32 -0
  38. package/dist/generated/organizations/item/billing/index.d.ts +41 -0
  39. package/dist/generated/organizations/item/billing/index.js +31 -0
  40. package/dist/generated/organizations/item/branding/index.d.ts +29 -0
  41. package/dist/generated/organizations/item/branding/index.js +25 -0
  42. package/dist/generated/organizations/item/index.d.ts +82 -0
  43. package/dist/generated/organizations/item/index.js +68 -0
  44. package/dist/generated/organizations/item/infrastructure/index.d.ts +41 -0
  45. package/dist/generated/organizations/item/infrastructure/index.js +31 -0
  46. package/dist/generated/organizations/item/members/index.d.ts +38 -0
  47. package/dist/generated/organizations/item/members/index.js +33 -0
  48. package/dist/generated/organizations/item/members/item/index.d.ts +26 -0
  49. package/dist/generated/organizations/item/members/item/index.js +16 -0
  50. package/dist/generated/partnerApiClient.d.ts +69 -0
  51. package/dist/generated/partnerApiClient.js +110 -0
  52. package/dist/generated/paymentProcessors/index.d.ts +65 -0
  53. package/dist/generated/paymentProcessors/index.js +36 -0
  54. package/dist/generated/products/index.d.ts +27 -0
  55. package/dist/generated/products/index.js +22 -0
  56. package/dist/generated/proxies/index.d.ts +38 -0
  57. package/dist/generated/proxies/index.js +34 -0
  58. package/dist/generated/proxies/item/credentials/index.d.ts +41 -0
  59. package/dist/generated/proxies/item/credentials/index.js +31 -0
  60. package/dist/generated/proxies/item/index.d.ts +46 -0
  61. package/dist/generated/proxies/item/index.js +43 -0
  62. package/dist/generated/proxies/item/ipRotation/index.d.ts +50 -0
  63. package/dist/generated/proxies/item/ipRotation/index.js +40 -0
  64. package/dist/generated/proxies/item/ipRotation/trigger/index.d.ts +26 -0
  65. package/dist/generated/proxies/item/ipRotation/trigger/index.js +16 -0
  66. package/dist/generated/proxies/item/ping/index.d.ts +27 -0
  67. package/dist/generated/proxies/item/ping/index.js +22 -0
  68. package/dist/index.d.ts +3 -0
  69. package/dist/index.js +4 -0
  70. package/dist/partnerClient.d.ts +15 -0
  71. package/dist/partnerClient.js +24 -0
  72. package/package.json +37 -0
@@ -0,0 +1,2425 @@
1
+ /**
2
+ * Creates a new instance of the appropriate class based on discriminator value
3
+ * @param parseNode The parse node to use to read the discriminator value and create the object
4
+ * @returns {Activity_metadata}
5
+ */
6
+ // @ts-ignore
7
+ export function createActivity_metadataFromDiscriminatorValue(parseNode) {
8
+ return deserializeIntoActivity_metadata;
9
+ }
10
+ /**
11
+ * Creates a new instance of the appropriate class based on discriminator value
12
+ * @param parseNode The parse node to use to read the discriminator value and create the object
13
+ * @returns {Activity}
14
+ */
15
+ // @ts-ignore
16
+ export function createActivityFromDiscriminatorValue(parseNode) {
17
+ return deserializeIntoActivity;
18
+ }
19
+ /**
20
+ * Creates a new instance of the appropriate class based on discriminator value
21
+ * @param parseNode The parse node to use to read the discriminator value and create the object
22
+ * @returns {BalanceResponse}
23
+ */
24
+ // @ts-ignore
25
+ export function createBalanceResponseFromDiscriminatorValue(parseNode) {
26
+ return deserializeIntoBalanceResponse;
27
+ }
28
+ /**
29
+ * Creates a new instance of the appropriate class based on discriminator value
30
+ * @param parseNode The parse node to use to read the discriminator value and create the object
31
+ * @returns {ChangeProxyCredentialsRequest}
32
+ */
33
+ // @ts-ignore
34
+ export function createChangeProxyCredentialsRequestFromDiscriminatorValue(parseNode) {
35
+ return deserializeIntoChangeProxyCredentialsRequest;
36
+ }
37
+ /**
38
+ * Creates a new instance of the appropriate class based on discriminator value
39
+ * @param parseNode The parse node to use to read the discriminator value and create the object
40
+ * @returns {CreateCustomerRequest_billingDetails}
41
+ */
42
+ // @ts-ignore
43
+ export function createCreateCustomerRequest_billingDetailsFromDiscriminatorValue(parseNode) {
44
+ return deserializeIntoCreateCustomerRequest_billingDetails;
45
+ }
46
+ /**
47
+ * Creates a new instance of the appropriate class based on discriminator value
48
+ * @param parseNode The parse node to use to read the discriminator value and create the object
49
+ * @returns {CreateCustomerRequest}
50
+ */
51
+ // @ts-ignore
52
+ export function createCreateCustomerRequestFromDiscriminatorValue(parseNode) {
53
+ return deserializeIntoCreateCustomerRequest;
54
+ }
55
+ /**
56
+ * Creates a new instance of the appropriate class based on discriminator value
57
+ * @param parseNode The parse node to use to read the discriminator value and create the object
58
+ * @returns {CreateDepositRequest}
59
+ */
60
+ // @ts-ignore
61
+ export function createCreateDepositRequestFromDiscriminatorValue(parseNode) {
62
+ return deserializeIntoCreateDepositRequest;
63
+ }
64
+ /**
65
+ * Creates a new instance of the appropriate class based on discriminator value
66
+ * @param parseNode The parse node to use to read the discriminator value and create the object
67
+ * @returns {CreateIncidentRequest}
68
+ */
69
+ // @ts-ignore
70
+ export function createCreateIncidentRequestFromDiscriminatorValue(parseNode) {
71
+ return deserializeIntoCreateIncidentRequest;
72
+ }
73
+ /**
74
+ * Creates a new instance of the appropriate class based on discriminator value
75
+ * @param parseNode The parse node to use to read the discriminator value and create the object
76
+ * @returns {CreateOrderRequest}
77
+ */
78
+ // @ts-ignore
79
+ export function createCreateOrderRequestFromDiscriminatorValue(parseNode) {
80
+ return deserializeIntoCreateOrderRequest;
81
+ }
82
+ /**
83
+ * Creates a new instance of the appropriate class based on discriminator value
84
+ * @param parseNode The parse node to use to read the discriminator value and create the object
85
+ * @returns {CreateOrderResponse}
86
+ */
87
+ // @ts-ignore
88
+ export function createCreateOrderResponseFromDiscriminatorValue(parseNode) {
89
+ return deserializeIntoCreateOrderResponse;
90
+ }
91
+ /**
92
+ * Creates a new instance of the appropriate class based on discriminator value
93
+ * @param parseNode The parse node to use to read the discriminator value and create the object
94
+ * @returns {CreateOrganizationRequest}
95
+ */
96
+ // @ts-ignore
97
+ export function createCreateOrganizationRequestFromDiscriminatorValue(parseNode) {
98
+ return deserializeIntoCreateOrganizationRequest;
99
+ }
100
+ /**
101
+ * Creates a new instance of the appropriate class based on discriminator value
102
+ * @param parseNode The parse node to use to read the discriminator value and create the object
103
+ * @returns {CurrencyAmount}
104
+ */
105
+ // @ts-ignore
106
+ export function createCurrencyAmountFromDiscriminatorValue(parseNode) {
107
+ return deserializeIntoCurrencyAmount;
108
+ }
109
+ /**
110
+ * Creates a new instance of the appropriate class based on discriminator value
111
+ * @param parseNode The parse node to use to read the discriminator value and create the object
112
+ * @returns {Customer_billingDetails}
113
+ */
114
+ // @ts-ignore
115
+ export function createCustomer_billingDetailsFromDiscriminatorValue(parseNode) {
116
+ return deserializeIntoCustomer_billingDetails;
117
+ }
118
+ /**
119
+ * Creates a new instance of the appropriate class based on discriminator value
120
+ * @param parseNode The parse node to use to read the discriminator value and create the object
121
+ * @returns {Customer_externalLogins}
122
+ */
123
+ // @ts-ignore
124
+ export function createCustomer_externalLoginsFromDiscriminatorValue(parseNode) {
125
+ return deserializeIntoCustomer_externalLogins;
126
+ }
127
+ /**
128
+ * Creates a new instance of the appropriate class based on discriminator value
129
+ * @param parseNode The parse node to use to read the discriminator value and create the object
130
+ * @returns {Customer_metadata}
131
+ */
132
+ // @ts-ignore
133
+ export function createCustomer_metadataFromDiscriminatorValue(parseNode) {
134
+ return deserializeIntoCustomer_metadata;
135
+ }
136
+ /**
137
+ * Creates a new instance of the appropriate class based on discriminator value
138
+ * @param parseNode The parse node to use to read the discriminator value and create the object
139
+ * @returns {Customer}
140
+ */
141
+ // @ts-ignore
142
+ export function createCustomerFromDiscriminatorValue(parseNode) {
143
+ return deserializeIntoCustomer;
144
+ }
145
+ /**
146
+ * Creates a new instance of the appropriate class based on discriminator value
147
+ * @param parseNode The parse node to use to read the discriminator value and create the object
148
+ * @returns {CustomerKyc}
149
+ */
150
+ // @ts-ignore
151
+ export function createCustomerKycFromDiscriminatorValue(parseNode) {
152
+ return deserializeIntoCustomerKyc;
153
+ }
154
+ /**
155
+ * Creates a new instance of the appropriate class based on discriminator value
156
+ * @param parseNode The parse node to use to read the discriminator value and create the object
157
+ * @returns {DepositResponse}
158
+ */
159
+ // @ts-ignore
160
+ export function createDepositResponseFromDiscriminatorValue(parseNode) {
161
+ return deserializeIntoDepositResponse;
162
+ }
163
+ /**
164
+ * Creates a new instance of the appropriate class based on discriminator value
165
+ * @param parseNode The parse node to use to read the discriminator value and create the object
166
+ * @returns {ExtendOrderRequest}
167
+ */
168
+ // @ts-ignore
169
+ export function createExtendOrderRequestFromDiscriminatorValue(parseNode) {
170
+ return deserializeIntoExtendOrderRequest;
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 {Incident_metadata}
176
+ */
177
+ // @ts-ignore
178
+ export function createIncident_metadataFromDiscriminatorValue(parseNode) {
179
+ return deserializeIntoIncident_metadata;
180
+ }
181
+ /**
182
+ * Creates a new instance of the appropriate class based on discriminator value
183
+ * @param parseNode The parse node to use to read the discriminator value and create the object
184
+ * @returns {Incident}
185
+ */
186
+ // @ts-ignore
187
+ export function createIncidentFromDiscriminatorValue(parseNode) {
188
+ return deserializeIntoIncident;
189
+ }
190
+ /**
191
+ * Creates a new instance of the appropriate class based on discriminator value
192
+ * @param parseNode The parse node to use to read the discriminator value and create the object
193
+ * @returns {Isp}
194
+ */
195
+ // @ts-ignore
196
+ export function createIspFromDiscriminatorValue(parseNode) {
197
+ return deserializeIntoIsp;
198
+ }
199
+ /**
200
+ * Creates a new instance of the appropriate class based on discriminator value
201
+ * @param parseNode The parse node to use to read the discriminator value and create the object
202
+ * @returns {Location}
203
+ */
204
+ // @ts-ignore
205
+ export function createLocationFromDiscriminatorValue(parseNode) {
206
+ return deserializeIntoLocation;
207
+ }
208
+ /**
209
+ * Creates a new instance of the appropriate class based on discriminator value
210
+ * @param parseNode The parse node to use to read the discriminator value and create the object
211
+ * @returns {Member}
212
+ */
213
+ // @ts-ignore
214
+ export function createMemberFromDiscriminatorValue(parseNode) {
215
+ return deserializeIntoMember;
216
+ }
217
+ /**
218
+ * Creates a new instance of the appropriate class based on discriminator value
219
+ * @param parseNode The parse node to use to read the discriminator value and create the object
220
+ * @returns {MembersResponse}
221
+ */
222
+ // @ts-ignore
223
+ export function createMembersResponseFromDiscriminatorValue(parseNode) {
224
+ return deserializeIntoMembersResponse;
225
+ }
226
+ /**
227
+ * Creates a new instance of the appropriate class based on discriminator value
228
+ * @param parseNode The parse node to use to read the discriminator value and create the object
229
+ * @returns {Order_metadata}
230
+ */
231
+ // @ts-ignore
232
+ export function createOrder_metadataFromDiscriminatorValue(parseNode) {
233
+ return deserializeIntoOrder_metadata;
234
+ }
235
+ /**
236
+ * Creates a new instance of the appropriate class based on discriminator value
237
+ * @param parseNode The parse node to use to read the discriminator value and create the object
238
+ * @returns {Order}
239
+ */
240
+ // @ts-ignore
241
+ export function createOrderFromDiscriminatorValue(parseNode) {
242
+ return deserializeIntoOrder;
243
+ }
244
+ /**
245
+ * Creates a new instance of the appropriate class based on discriminator value
246
+ * @param parseNode The parse node to use to read the discriminator value and create the object
247
+ * @returns {OrderPreviewResponse}
248
+ */
249
+ // @ts-ignore
250
+ export function createOrderPreviewResponseFromDiscriminatorValue(parseNode) {
251
+ return deserializeIntoOrderPreviewResponse;
252
+ }
253
+ /**
254
+ * Creates a new instance of the appropriate class based on discriminator value
255
+ * @param parseNode The parse node to use to read the discriminator value and create the object
256
+ * @returns {OrderRequirements}
257
+ */
258
+ // @ts-ignore
259
+ export function createOrderRequirementsFromDiscriminatorValue(parseNode) {
260
+ return deserializeIntoOrderRequirements;
261
+ }
262
+ /**
263
+ * Creates a new instance of the appropriate class based on discriminator value
264
+ * @param parseNode The parse node to use to read the discriminator value and create the object
265
+ * @returns {Organization_metadata}
266
+ */
267
+ // @ts-ignore
268
+ export function createOrganization_metadataFromDiscriminatorValue(parseNode) {
269
+ return deserializeIntoOrganization_metadata;
270
+ }
271
+ /**
272
+ * Creates a new instance of the appropriate class based on discriminator value
273
+ * @param parseNode The parse node to use to read the discriminator value and create the object
274
+ * @returns {OrganizationBilling2}
275
+ */
276
+ // @ts-ignore
277
+ export function createOrganizationBilling2FromDiscriminatorValue(parseNode) {
278
+ return deserializeIntoOrganizationBilling2;
279
+ }
280
+ /**
281
+ * Creates a new instance of the appropriate class based on discriminator value
282
+ * @param parseNode The parse node to use to read the discriminator value and create the object
283
+ * @returns {OrganizationBilling}
284
+ */
285
+ // @ts-ignore
286
+ export function createOrganizationBillingFromDiscriminatorValue(parseNode) {
287
+ return deserializeIntoOrganizationBilling;
288
+ }
289
+ /**
290
+ * Creates a new instance of the appropriate class based on discriminator value
291
+ * @param parseNode The parse node to use to read the discriminator value and create the object
292
+ * @returns {OrganizationBranding}
293
+ */
294
+ // @ts-ignore
295
+ export function createOrganizationBrandingFromDiscriminatorValue(parseNode) {
296
+ return deserializeIntoOrganizationBranding;
297
+ }
298
+ /**
299
+ * Creates a new instance of the appropriate class based on discriminator value
300
+ * @param parseNode The parse node to use to read the discriminator value and create the object
301
+ * @returns {Organization}
302
+ */
303
+ // @ts-ignore
304
+ export function createOrganizationFromDiscriminatorValue(parseNode) {
305
+ return deserializeIntoOrganization;
306
+ }
307
+ /**
308
+ * Creates a new instance of the appropriate class based on discriminator value
309
+ * @param parseNode The parse node to use to read the discriminator value and create the object
310
+ * @returns {OrganizationInfrastructure2}
311
+ */
312
+ // @ts-ignore
313
+ export function createOrganizationInfrastructure2FromDiscriminatorValue(parseNode) {
314
+ return deserializeIntoOrganizationInfrastructure2;
315
+ }
316
+ /**
317
+ * Creates a new instance of the appropriate class based on discriminator value
318
+ * @param parseNode The parse node to use to read the discriminator value and create the object
319
+ * @returns {OrganizationInfrastructure}
320
+ */
321
+ // @ts-ignore
322
+ export function createOrganizationInfrastructureFromDiscriminatorValue(parseNode) {
323
+ return deserializeIntoOrganizationInfrastructure;
324
+ }
325
+ /**
326
+ * Creates a new instance of the appropriate class based on discriminator value
327
+ * @param parseNode The parse node to use to read the discriminator value and create the object
328
+ * @returns {OrganizationTerms}
329
+ */
330
+ // @ts-ignore
331
+ export function createOrganizationTermsFromDiscriminatorValue(parseNode) {
332
+ return deserializeIntoOrganizationTerms;
333
+ }
334
+ /**
335
+ * Creates a new instance of the appropriate class based on discriminator value
336
+ * @param parseNode The parse node to use to read the discriminator value and create the object
337
+ * @returns {PaymentProcessor_metadata}
338
+ */
339
+ // @ts-ignore
340
+ export function createPaymentProcessor_metadataFromDiscriminatorValue(parseNode) {
341
+ return deserializeIntoPaymentProcessor_metadata;
342
+ }
343
+ /**
344
+ * Creates a new instance of the appropriate class based on discriminator value
345
+ * @param parseNode The parse node to use to read the discriminator value and create the object
346
+ * @returns {PaymentProcessor_values}
347
+ */
348
+ // @ts-ignore
349
+ export function createPaymentProcessor_valuesFromDiscriminatorValue(parseNode) {
350
+ return deserializeIntoPaymentProcessor_values;
351
+ }
352
+ /**
353
+ * Creates a new instance of the appropriate class based on discriminator value
354
+ * @param parseNode The parse node to use to read the discriminator value and create the object
355
+ * @returns {PaymentProcessor}
356
+ */
357
+ // @ts-ignore
358
+ export function createPaymentProcessorFromDiscriminatorValue(parseNode) {
359
+ return deserializeIntoPaymentProcessor;
360
+ }
361
+ /**
362
+ * Creates a new instance of the appropriate class based on discriminator value
363
+ * @param parseNode The parse node to use to read the discriminator value and create the object
364
+ * @returns {PreviewOrderRequest}
365
+ */
366
+ // @ts-ignore
367
+ export function createPreviewOrderRequestFromDiscriminatorValue(parseNode) {
368
+ return deserializeIntoPreviewOrderRequest;
369
+ }
370
+ /**
371
+ * Creates a new instance of the appropriate class based on discriminator value
372
+ * @param parseNode The parse node to use to read the discriminator value and create the object
373
+ * @returns {ProcessorFieldSchema}
374
+ */
375
+ // @ts-ignore
376
+ export function createProcessorFieldSchemaFromDiscriminatorValue(parseNode) {
377
+ return deserializeIntoProcessorFieldSchema;
378
+ }
379
+ /**
380
+ * Creates a new instance of the appropriate class based on discriminator value
381
+ * @param parseNode The parse node to use to read the discriminator value and create the object
382
+ * @returns {Product_metadata}
383
+ */
384
+ // @ts-ignore
385
+ export function createProduct_metadataFromDiscriminatorValue(parseNode) {
386
+ return deserializeIntoProduct_metadata;
387
+ }
388
+ /**
389
+ * Creates a new instance of the appropriate class based on discriminator value
390
+ * @param parseNode The parse node to use to read the discriminator value and create the object
391
+ * @returns {Product}
392
+ */
393
+ // @ts-ignore
394
+ export function createProductFromDiscriminatorValue(parseNode) {
395
+ return deserializeIntoProduct;
396
+ }
397
+ /**
398
+ * Creates a new instance of the appropriate class based on discriminator value
399
+ * @param parseNode The parse node to use to read the discriminator value and create the object
400
+ * @returns {ProxyCredentialResponse}
401
+ */
402
+ // @ts-ignore
403
+ export function createProxyCredentialResponseFromDiscriminatorValue(parseNode) {
404
+ return deserializeIntoProxyCredentialResponse;
405
+ }
406
+ /**
407
+ * Creates a new instance of the appropriate class based on discriminator value
408
+ * @param parseNode The parse node to use to read the discriminator value and create the object
409
+ * @returns {Proxy}
410
+ */
411
+ // @ts-ignore
412
+ export function createProxyFromDiscriminatorValue(parseNode) {
413
+ return deserializeIntoProxy;
414
+ }
415
+ /**
416
+ * Creates a new instance of the appropriate class based on discriminator value
417
+ * @param parseNode The parse node to use to read the discriminator value and create the object
418
+ * @returns {ProxyIpRotationResponse}
419
+ */
420
+ // @ts-ignore
421
+ export function createProxyIpRotationResponseFromDiscriminatorValue(parseNode) {
422
+ return deserializeIntoProxyIpRotationResponse;
423
+ }
424
+ /**
425
+ * Creates a new instance of the appropriate class based on discriminator value
426
+ * @param parseNode The parse node to use to read the discriminator value and create the object
427
+ * @returns {ProxyPingResponse}
428
+ */
429
+ // @ts-ignore
430
+ export function createProxyPingResponseFromDiscriminatorValue(parseNode) {
431
+ return deserializeIntoProxyPingResponse;
432
+ }
433
+ /**
434
+ * Creates a new instance of the appropriate class based on discriminator value
435
+ * @param parseNode The parse node to use to read the discriminator value and create the object
436
+ * @returns {ReviewKycRequest}
437
+ */
438
+ // @ts-ignore
439
+ export function createReviewKycRequestFromDiscriminatorValue(parseNode) {
440
+ return deserializeIntoReviewKycRequest;
441
+ }
442
+ /**
443
+ * Creates a new instance of the appropriate class based on discriminator value
444
+ * @param parseNode The parse node to use to read the discriminator value and create the object
445
+ * @returns {UpdateCustomerRequest_billingDetails}
446
+ */
447
+ // @ts-ignore
448
+ export function createUpdateCustomerRequest_billingDetailsFromDiscriminatorValue(parseNode) {
449
+ return deserializeIntoUpdateCustomerRequest_billingDetails;
450
+ }
451
+ /**
452
+ * Creates a new instance of the appropriate class based on discriminator value
453
+ * @param parseNode The parse node to use to read the discriminator value and create the object
454
+ * @returns {UpdateCustomerRequest}
455
+ */
456
+ // @ts-ignore
457
+ export function createUpdateCustomerRequestFromDiscriminatorValue(parseNode) {
458
+ return deserializeIntoUpdateCustomerRequest;
459
+ }
460
+ /**
461
+ * Creates a new instance of the appropriate class based on discriminator value
462
+ * @param parseNode The parse node to use to read the discriminator value and create the object
463
+ * @returns {UpdateOrganizationBillingRequest}
464
+ */
465
+ // @ts-ignore
466
+ export function createUpdateOrganizationBillingRequestFromDiscriminatorValue(parseNode) {
467
+ return deserializeIntoUpdateOrganizationBillingRequest;
468
+ }
469
+ /**
470
+ * Creates a new instance of the appropriate class based on discriminator value
471
+ * @param parseNode The parse node to use to read the discriminator value and create the object
472
+ * @returns {UpdateOrganizationBrandingRequest}
473
+ */
474
+ // @ts-ignore
475
+ export function createUpdateOrganizationBrandingRequestFromDiscriminatorValue(parseNode) {
476
+ return deserializeIntoUpdateOrganizationBrandingRequest;
477
+ }
478
+ /**
479
+ * Creates a new instance of the appropriate class based on discriminator value
480
+ * @param parseNode The parse node to use to read the discriminator value and create the object
481
+ * @returns {UpdateOrganizationInfrastructureRequest}
482
+ */
483
+ // @ts-ignore
484
+ export function createUpdateOrganizationInfrastructureRequestFromDiscriminatorValue(parseNode) {
485
+ return deserializeIntoUpdateOrganizationInfrastructureRequest;
486
+ }
487
+ /**
488
+ * Creates a new instance of the appropriate class based on discriminator value
489
+ * @param parseNode The parse node to use to read the discriminator value and create the object
490
+ * @returns {UpdateOrganizationRequest}
491
+ */
492
+ // @ts-ignore
493
+ export function createUpdateOrganizationRequestFromDiscriminatorValue(parseNode) {
494
+ return deserializeIntoUpdateOrganizationRequest;
495
+ }
496
+ /**
497
+ * Creates a new instance of the appropriate class based on discriminator value
498
+ * @param parseNode The parse node to use to read the discriminator value and create the object
499
+ * @returns {UpdatePaymentProcessorRequest_values}
500
+ */
501
+ // @ts-ignore
502
+ export function createUpdatePaymentProcessorRequest_valuesFromDiscriminatorValue(parseNode) {
503
+ return deserializeIntoUpdatePaymentProcessorRequest_values;
504
+ }
505
+ /**
506
+ * Creates a new instance of the appropriate class based on discriminator value
507
+ * @param parseNode The parse node to use to read the discriminator value and create the object
508
+ * @returns {UpdatePaymentProcessorRequest}
509
+ */
510
+ // @ts-ignore
511
+ export function createUpdatePaymentProcessorRequestFromDiscriminatorValue(parseNode) {
512
+ return deserializeIntoUpdatePaymentProcessorRequest;
513
+ }
514
+ /**
515
+ * Creates a new instance of the appropriate class based on discriminator value
516
+ * @param parseNode The parse node to use to read the discriminator value and create the object
517
+ * @returns {UpdateProxyIpRotationRequest}
518
+ */
519
+ // @ts-ignore
520
+ export function createUpdateProxyIpRotationRequestFromDiscriminatorValue(parseNode) {
521
+ return deserializeIntoUpdateProxyIpRotationRequest;
522
+ }
523
+ /**
524
+ * The deserialization information for the current model
525
+ * @param Activity The instance to deserialize into.
526
+ * @returns {Record<string, (node: ParseNode) => void>}
527
+ */
528
+ // @ts-ignore
529
+ export function deserializeIntoActivity(activity = {}) {
530
+ return {
531
+ "apiKeyId": n => { activity.apiKeyId = n.getGuidValue(); },
532
+ "createdAt": n => { activity.createdAt = n.getDateValue(); },
533
+ "endpoint": n => { activity.endpoint = n.getStringValue(); },
534
+ "id": n => { activity.id = n.getGuidValue(); },
535
+ "metadata": n => { activity.metadata = n.getObjectValue(createActivity_metadataFromDiscriminatorValue); },
536
+ "method": n => { activity.method = n.getStringValue(); },
537
+ "organizationId": n => { activity.organizationId = n.getGuidValue(); },
538
+ "requestBody": n => { activity.requestBody = n.getStringValue(); },
539
+ "statusCode": n => { activity.statusCode = n.getNumberValue(); },
540
+ "tags": n => { activity.tags = n.getCollectionOfPrimitiveValues("string"); },
541
+ "updatedAt": n => { activity.updatedAt = n.getDateValue(); },
542
+ "weight": n => { activity.weight = n.getNumberValue(); },
543
+ };
544
+ }
545
+ /**
546
+ * The deserialization information for the current model
547
+ * @param Activity_metadata The instance to deserialize into.
548
+ * @returns {Record<string, (node: ParseNode) => void>}
549
+ */
550
+ // @ts-ignore
551
+ export function deserializeIntoActivity_metadata(activity_metadata = {}) {
552
+ return {};
553
+ }
554
+ /**
555
+ * The deserialization information for the current model
556
+ * @param BalanceResponse The instance to deserialize into.
557
+ * @returns {Record<string, (node: ParseNode) => void>}
558
+ */
559
+ // @ts-ignore
560
+ export function deserializeIntoBalanceResponse(balanceResponse = {}) {
561
+ return {
562
+ "currencies": n => { balanceResponse.currencies = n.getCollectionOfObjectValues(createCurrencyAmountFromDiscriminatorValue); },
563
+ "pending": n => { balanceResponse.pending = n.getNumberValue(); },
564
+ "total": n => { balanceResponse.total = n.getNumberValue(); },
565
+ };
566
+ }
567
+ /**
568
+ * The deserialization information for the current model
569
+ * @param ChangeProxyCredentialsRequest The instance to deserialize into.
570
+ * @returns {Record<string, (node: ParseNode) => void>}
571
+ */
572
+ // @ts-ignore
573
+ export function deserializeIntoChangeProxyCredentialsRequest(changeProxyCredentialsRequest = {}) {
574
+ return {
575
+ "allowedIps": n => { changeProxyCredentialsRequest.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
576
+ "password": n => { changeProxyCredentialsRequest.password = n.getStringValue(); },
577
+ "username": n => { changeProxyCredentialsRequest.username = n.getStringValue(); },
578
+ };
579
+ }
580
+ /**
581
+ * The deserialization information for the current model
582
+ * @param CreateCustomerRequest The instance to deserialize into.
583
+ * @returns {Record<string, (node: ParseNode) => void>}
584
+ */
585
+ // @ts-ignore
586
+ export function deserializeIntoCreateCustomerRequest(createCustomerRequest = {}) {
587
+ return {
588
+ "billingDetails": n => { createCustomerRequest.billingDetails = n.getObjectValue(createCreateCustomerRequest_billingDetailsFromDiscriminatorValue); },
589
+ "displayName": n => { createCustomerRequest.displayName = n.getStringValue(); },
590
+ "email": n => { createCustomerRequest.email = n.getStringValue(); },
591
+ "externalId": n => { createCustomerRequest.externalId = n.getStringValue(); },
592
+ "locale": n => { createCustomerRequest.locale = n.getStringValue(); },
593
+ "password": n => { createCustomerRequest.password = n.getStringValue(); },
594
+ "phoneNumber": n => { createCustomerRequest.phoneNumber = n.getStringValue(); },
595
+ };
596
+ }
597
+ /**
598
+ * The deserialization information for the current model
599
+ * @param CreateCustomerRequest_billingDetails The instance to deserialize into.
600
+ * @returns {Record<string, (node: ParseNode) => void>}
601
+ */
602
+ // @ts-ignore
603
+ export function deserializeIntoCreateCustomerRequest_billingDetails(createCustomerRequest_billingDetails = {}) {
604
+ return {};
605
+ }
606
+ /**
607
+ * The deserialization information for the current model
608
+ * @param CreateDepositRequest The instance to deserialize into.
609
+ * @returns {Record<string, (node: ParseNode) => void>}
610
+ */
611
+ // @ts-ignore
612
+ export function deserializeIntoCreateDepositRequest(createDepositRequest = {}) {
613
+ return {
614
+ "currency": n => { createDepositRequest.currency = n.getStringValue(); },
615
+ };
616
+ }
617
+ /**
618
+ * The deserialization information for the current model
619
+ * @param CreateIncidentRequest The instance to deserialize into.
620
+ * @returns {Record<string, (node: ParseNode) => void>}
621
+ */
622
+ // @ts-ignore
623
+ export function deserializeIntoCreateIncidentRequest(createIncidentRequest = {}) {
624
+ return {
625
+ "description": n => { createIncidentRequest.description = n.getStringValue(); },
626
+ "reporterEmail": n => { createIncidentRequest.reporterEmail = n.getStringValue(); },
627
+ "subject": n => { createIncidentRequest.subject = n.getStringValue(); },
628
+ "target": n => { createIncidentRequest.target = n.getStringValue(); },
629
+ };
630
+ }
631
+ /**
632
+ * The deserialization information for the current model
633
+ * @param CreateOrderRequest The instance to deserialize into.
634
+ * @returns {Record<string, (node: ParseNode) => void>}
635
+ */
636
+ // @ts-ignore
637
+ export function deserializeIntoCreateOrderRequest(createOrderRequest = {}) {
638
+ return {
639
+ "billingCycle": n => { createOrderRequest.billingCycle = n.getEnumValue(NullableOfBillingCyclesObject); },
640
+ "consumerRef": n => { createOrderRequest.consumerRef = n.getStringValue(); },
641
+ "ispId": n => { createOrderRequest.ispId = n.getGuidValue(); },
642
+ "locationId": n => { createOrderRequest.locationId = n.getGuidValue(); },
643
+ "paymentMethod": n => { createOrderRequest.paymentMethod = n.getEnumValue(NullableOfPaymentMethodsObject); },
644
+ "productId": n => { createOrderRequest.productId = n.getGuidValue(); },
645
+ "quantity": n => { createOrderRequest.quantity = n.getNumberValue(); },
646
+ };
647
+ }
648
+ /**
649
+ * The deserialization information for the current model
650
+ * @param CreateOrderResponse The instance to deserialize into.
651
+ * @returns {Record<string, (node: ParseNode) => void>}
652
+ */
653
+ // @ts-ignore
654
+ export function deserializeIntoCreateOrderResponse(createOrderResponse = {}) {
655
+ return {
656
+ "currency": n => { createOrderResponse.currency = n.getStringValue(); },
657
+ "isTrial": n => { createOrderResponse.isTrial = n.getBooleanValue(); },
658
+ "orderId": n => { createOrderResponse.orderId = n.getGuidValue(); },
659
+ "quantity": n => { createOrderResponse.quantity = n.getNumberValue(); },
660
+ "returnUrl": n => { createOrderResponse.returnUrl = n.getStringValue(); },
661
+ "total": n => { createOrderResponse.total = n.getNumberValue(); },
662
+ "unitPrice": n => { createOrderResponse.unitPrice = n.getNumberValue(); },
663
+ };
664
+ }
665
+ /**
666
+ * The deserialization information for the current model
667
+ * @param CreateOrganizationRequest The instance to deserialize into.
668
+ * @returns {Record<string, (node: ParseNode) => void>}
669
+ */
670
+ // @ts-ignore
671
+ export function deserializeIntoCreateOrganizationRequest(createOrganizationRequest = {}) {
672
+ return {
673
+ "companyName": n => { createOrganizationRequest.companyName = n.getStringValue(); },
674
+ "name": n => { createOrganizationRequest.name = n.getStringValue(); },
675
+ };
676
+ }
677
+ /**
678
+ * The deserialization information for the current model
679
+ * @param CurrencyAmount The instance to deserialize into.
680
+ * @returns {Record<string, (node: ParseNode) => void>}
681
+ */
682
+ // @ts-ignore
683
+ export function deserializeIntoCurrencyAmount(currencyAmount = {}) {
684
+ return {
685
+ "amount": n => { currencyAmount.amount = n.getNumberValue(); },
686
+ "currency": n => { currencyAmount.currency = n.getStringValue(); },
687
+ "pending": n => { currencyAmount.pending = n.getNumberValue(); },
688
+ };
689
+ }
690
+ /**
691
+ * The deserialization information for the current model
692
+ * @param Customer The instance to deserialize into.
693
+ * @returns {Record<string, (node: ParseNode) => void>}
694
+ */
695
+ // @ts-ignore
696
+ export function deserializeIntoCustomer(customer = {}) {
697
+ return {
698
+ "avatarUrl": n => { customer.avatarUrl = n.getStringValue(); },
699
+ "bannedAt": n => { customer.bannedAt = n.getDateValue(); },
700
+ "billingDetails": n => { customer.billingDetails = n.getObjectValue(createCustomer_billingDetailsFromDiscriminatorValue); },
701
+ "createdAt": n => { customer.createdAt = n.getDateValue(); },
702
+ "displayName": n => { customer.displayName = n.getStringValue(); },
703
+ "email": n => { customer.email = n.getStringValue(); },
704
+ "emailVerified": n => { customer.emailVerified = n.getBooleanValue(); },
705
+ "externalId": n => { customer.externalId = n.getStringValue(); },
706
+ "externalLogins": n => { customer.externalLogins = n.getObjectValue(createCustomer_externalLoginsFromDiscriminatorValue); },
707
+ "id": n => { customer.id = n.getGuidValue(); },
708
+ "isActive": n => { customer.isActive = n.getBooleanValue(); },
709
+ "kyc": n => { customer.kyc = n.getObjectValue(createCustomerKycFromDiscriminatorValue); },
710
+ "lastLoginAt": n => { customer.lastLoginAt = n.getDateValue(); },
711
+ "locale": n => { customer.locale = n.getStringValue(); },
712
+ "metadata": n => { customer.metadata = n.getObjectValue(createCustomer_metadataFromDiscriminatorValue); },
713
+ "organizationId": n => { customer.organizationId = n.getGuidValue(); },
714
+ "paymentCustomerId": n => { customer.paymentCustomerId = n.getStringValue(); },
715
+ "phoneNumber": n => { customer.phoneNumber = n.getStringValue(); },
716
+ "pushNotificationsToken": n => { customer.pushNotificationsToken = n.getStringValue(); },
717
+ "tags": n => { customer.tags = n.getCollectionOfPrimitiveValues("string"); },
718
+ "updatedAt": n => { customer.updatedAt = n.getDateValue(); },
719
+ "weight": n => { customer.weight = n.getNumberValue(); },
720
+ };
721
+ }
722
+ /**
723
+ * The deserialization information for the current model
724
+ * @param Customer_billingDetails The instance to deserialize into.
725
+ * @returns {Record<string, (node: ParseNode) => void>}
726
+ */
727
+ // @ts-ignore
728
+ export function deserializeIntoCustomer_billingDetails(customer_billingDetails = {}) {
729
+ return {};
730
+ }
731
+ /**
732
+ * The deserialization information for the current model
733
+ * @param Customer_externalLogins The instance to deserialize into.
734
+ * @returns {Record<string, (node: ParseNode) => void>}
735
+ */
736
+ // @ts-ignore
737
+ export function deserializeIntoCustomer_externalLogins(customer_externalLogins = {}) {
738
+ return {};
739
+ }
740
+ /**
741
+ * The deserialization information for the current model
742
+ * @param Customer_metadata The instance to deserialize into.
743
+ * @returns {Record<string, (node: ParseNode) => void>}
744
+ */
745
+ // @ts-ignore
746
+ export function deserializeIntoCustomer_metadata(customer_metadata = {}) {
747
+ return {};
748
+ }
749
+ /**
750
+ * The deserialization information for the current model
751
+ * @param CustomerKyc The instance to deserialize into.
752
+ * @returns {Record<string, (node: ParseNode) => void>}
753
+ */
754
+ // @ts-ignore
755
+ export function deserializeIntoCustomerKyc(customerKyc = {}) {
756
+ return {
757
+ "approved": n => { customerKyc.approved = n.getBooleanValue(); },
758
+ "description": n => { customerKyc.description = n.getStringValue(); },
759
+ "policyAcknowledged": n => { customerKyc.policyAcknowledged = n.getBooleanValue(); },
760
+ "scopeOfUse": n => { customerKyc.scopeOfUse = n.getStringValue(); },
761
+ "submitted": n => { customerKyc.submitted = n.getBooleanValue(); },
762
+ };
763
+ }
764
+ /**
765
+ * The deserialization information for the current model
766
+ * @param DepositResponse The instance to deserialize into.
767
+ * @returns {Record<string, (node: ParseNode) => void>}
768
+ */
769
+ // @ts-ignore
770
+ export function deserializeIntoDepositResponse(depositResponse = {}) {
771
+ return {
772
+ "address": n => { depositResponse.address = n.getStringValue(); },
773
+ "currency": n => { depositResponse.currency = n.getStringValue(); },
774
+ "paymentId": n => { depositResponse.paymentId = n.getStringValue(); },
775
+ };
776
+ }
777
+ /**
778
+ * The deserialization information for the current model
779
+ * @param ExtendOrderRequest The instance to deserialize into.
780
+ * @returns {Record<string, (node: ParseNode) => void>}
781
+ */
782
+ // @ts-ignore
783
+ export function deserializeIntoExtendOrderRequest(extendOrderRequest = {}) {
784
+ return {
785
+ "billingCycle": n => { extendOrderRequest.billingCycle = n.getEnumValue(NullableOfBillingCyclesObject); },
786
+ "paymentMethod": n => { extendOrderRequest.paymentMethod = n.getEnumValue(NullableOfPaymentMethodsObject); },
787
+ };
788
+ }
789
+ /**
790
+ * The deserialization information for the current model
791
+ * @param Incident The instance to deserialize into.
792
+ * @returns {Record<string, (node: ParseNode) => void>}
793
+ */
794
+ // @ts-ignore
795
+ export function deserializeIntoIncident(incident = {}) {
796
+ return {
797
+ "createdAt": n => { incident.createdAt = n.getDateValue(); },
798
+ "description": n => { incident.description = n.getStringValue(); },
799
+ "id": n => { incident.id = n.getGuidValue(); },
800
+ "managerIncidentId": n => { incident.managerIncidentId = n.getGuidValue(); },
801
+ "metadata": n => { incident.metadata = n.getObjectValue(createIncident_metadataFromDiscriminatorValue); },
802
+ "organizationId": n => { incident.organizationId = n.getGuidValue(); },
803
+ "reporterEmail": n => { incident.reporterEmail = n.getStringValue(); },
804
+ "resolutionNote": n => { incident.resolutionNote = n.getStringValue(); },
805
+ "resolvedAt": n => { incident.resolvedAt = n.getDateValue(); },
806
+ "status": n => { incident.status = n.getEnumValue(IncidentStatusesObject); },
807
+ "subject": n => { incident.subject = n.getStringValue(); },
808
+ "tags": n => { incident.tags = n.getCollectionOfPrimitiveValues("string"); },
809
+ "target": n => { incident.target = n.getStringValue(); },
810
+ "updatedAt": n => { incident.updatedAt = n.getDateValue(); },
811
+ "weight": n => { incident.weight = n.getNumberValue(); },
812
+ };
813
+ }
814
+ /**
815
+ * The deserialization information for the current model
816
+ * @param Incident_metadata The instance to deserialize into.
817
+ * @returns {Record<string, (node: ParseNode) => void>}
818
+ */
819
+ // @ts-ignore
820
+ export function deserializeIntoIncident_metadata(incident_metadata = {}) {
821
+ return {};
822
+ }
823
+ /**
824
+ * The deserialization information for the current model
825
+ * @param Isp The instance to deserialize into.
826
+ * @returns {Record<string, (node: ParseNode) => void>}
827
+ */
828
+ // @ts-ignore
829
+ export function deserializeIntoIsp(isp = {}) {
830
+ return {
831
+ "id": n => { isp.id = n.getStringValue(); },
832
+ "logoUrl": n => { isp.logoUrl = n.getStringValue(); },
833
+ "name": n => { isp.name = n.getStringValue(); },
834
+ "price": n => { isp.price = n.getNumberValue(); },
835
+ "proxies": n => { isp.proxies = n.getNumberValue(); },
836
+ };
837
+ }
838
+ /**
839
+ * The deserialization information for the current model
840
+ * @param Location The instance to deserialize into.
841
+ * @returns {Record<string, (node: ParseNode) => void>}
842
+ */
843
+ // @ts-ignore
844
+ export function deserializeIntoLocation(location = {}) {
845
+ return {
846
+ "city": n => { location.city = n.getStringValue(); },
847
+ "countryCode": n => { location.countryCode = n.getStringValue(); },
848
+ "id": n => { location.id = n.getStringValue(); },
849
+ "ispCount": n => { location.ispCount = n.getNumberValue(); },
850
+ "price": n => { location.price = n.getNumberValue(); },
851
+ "proxies": n => { location.proxies = n.getNumberValue(); },
852
+ };
853
+ }
854
+ /**
855
+ * The deserialization information for the current model
856
+ * @param Member The instance to deserialize into.
857
+ * @returns {Record<string, (node: ParseNode) => void>}
858
+ */
859
+ // @ts-ignore
860
+ export function deserializeIntoMember(member = {}) {
861
+ return {
862
+ "avatarUrl": n => { member.avatarUrl = n.getStringValue(); },
863
+ "createdAt": n => { member.createdAt = n.getDateValue(); },
864
+ "displayName": n => { member.displayName = n.getStringValue(); },
865
+ "email": n => { member.email = n.getStringValue(); },
866
+ "id": n => { member.id = n.getStringValue(); },
867
+ "isOwner": n => { member.isOwner = n.getBooleanValue(); },
868
+ };
869
+ }
870
+ /**
871
+ * The deserialization information for the current model
872
+ * @param MembersResponse The instance to deserialize into.
873
+ * @returns {Record<string, (node: ParseNode) => void>}
874
+ */
875
+ // @ts-ignore
876
+ export function deserializeIntoMembersResponse(membersResponse = {}) {
877
+ return {
878
+ "members": n => { membersResponse.members = n.getCollectionOfObjectValues(createMemberFromDiscriminatorValue); },
879
+ };
880
+ }
881
+ /**
882
+ * The deserialization information for the current model
883
+ * @param Order The instance to deserialize into.
884
+ * @returns {Record<string, (node: ParseNode) => void>}
885
+ */
886
+ // @ts-ignore
887
+ export function deserializeIntoOrder(order = {}) {
888
+ return {
889
+ "allocationId": n => { order.allocationId = n.getGuidValue(); },
890
+ "billingCycle": n => { order.billingCycle = n.getEnumValue(BillingCyclesObject); },
891
+ "completePaymentUrl": n => { order.completePaymentUrl = n.getStringValue(); },
892
+ "consumerRef": n => { order.consumerRef = n.getStringValue(); },
893
+ "createdAt": n => { order.createdAt = n.getDateValue(); },
894
+ "currency": n => { order.currency = n.getStringValue(); },
895
+ "customerId": n => { order.customerId = n.getGuidValue(); },
896
+ "expiresAt": n => { order.expiresAt = n.getDateValue(); },
897
+ "id": n => { order.id = n.getGuidValue(); },
898
+ "isInGracePeriod": n => { order.isInGracePeriod = n.getBooleanValue(); },
899
+ "ispId": n => { order.ispId = n.getGuidValue(); },
900
+ "isTrial": n => { order.isTrial = n.getBooleanValue(); },
901
+ "locationId": n => { order.locationId = n.getGuidValue(); },
902
+ "metadata": n => { order.metadata = n.getObjectValue(createOrder_metadataFromDiscriminatorValue); },
903
+ "paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
904
+ "productId": n => { order.productId = n.getGuidValue(); },
905
+ "quantity": n => { order.quantity = n.getNumberValue(); },
906
+ "status": n => { order.status = n.getEnumValue(OrderStatusesObject); },
907
+ "tags": n => { order.tags = n.getCollectionOfPrimitiveValues("string"); },
908
+ "total": n => { order.total = n.getNumberValue(); },
909
+ "unitPrice": n => { order.unitPrice = n.getNumberValue(); },
910
+ "updatedAt": n => { order.updatedAt = n.getDateValue(); },
911
+ "weight": n => { order.weight = n.getNumberValue(); },
912
+ };
913
+ }
914
+ /**
915
+ * The deserialization information for the current model
916
+ * @param Order_metadata The instance to deserialize into.
917
+ * @returns {Record<string, (node: ParseNode) => void>}
918
+ */
919
+ // @ts-ignore
920
+ export function deserializeIntoOrder_metadata(order_metadata = {}) {
921
+ return {};
922
+ }
923
+ /**
924
+ * The deserialization information for the current model
925
+ * @param OrderPreviewResponse The instance to deserialize into.
926
+ * @returns {Record<string, (node: ParseNode) => void>}
927
+ */
928
+ // @ts-ignore
929
+ export function deserializeIntoOrderPreviewResponse(orderPreviewResponse = {}) {
930
+ return {
931
+ "currency": n => { orderPreviewResponse.currency = n.getStringValue(); },
932
+ "discount": n => { orderPreviewResponse.discount = n.getNumberValue(); },
933
+ "discountPercent": n => { orderPreviewResponse.discountPercent = n.getNumberValue(); },
934
+ "quantity": n => { orderPreviewResponse.quantity = n.getNumberValue(); },
935
+ "subtotal": n => { orderPreviewResponse.subtotal = n.getNumberValue(); },
936
+ "total": n => { orderPreviewResponse.total = n.getNumberValue(); },
937
+ "unitPrice": n => { orderPreviewResponse.unitPrice = n.getNumberValue(); },
938
+ };
939
+ }
940
+ /**
941
+ * The deserialization information for the current model
942
+ * @param OrderRequirements The instance to deserialize into.
943
+ * @returns {Record<string, (node: ParseNode) => void>}
944
+ */
945
+ // @ts-ignore
946
+ export function deserializeIntoOrderRequirements(orderRequirements = {}) {
947
+ return {
948
+ "billing": n => { orderRequirements.billing = n.getBooleanValue(); },
949
+ "canOrder": n => { orderRequirements.canOrder = n.getBooleanValue(); },
950
+ };
951
+ }
952
+ /**
953
+ * The deserialization information for the current model
954
+ * @param Organization The instance to deserialize into.
955
+ * @returns {Record<string, (node: ParseNode) => void>}
956
+ */
957
+ // @ts-ignore
958
+ export function deserializeIntoOrganization(organization = {}) {
959
+ return {
960
+ "billing": n => { organization.billing = n.getObjectValue(createOrganizationBilling2FromDiscriminatorValue); },
961
+ "branding": n => { organization.branding = n.getObjectValue(createOrganizationBrandingFromDiscriminatorValue); },
962
+ "companyName": n => { organization.companyName = n.getStringValue(); },
963
+ "createdAt": n => { organization.createdAt = n.getDateValue(); },
964
+ "id": n => { organization.id = n.getGuidValue(); },
965
+ "infrastructure": n => { organization.infrastructure = n.getObjectValue(createOrganizationInfrastructureFromDiscriminatorValue); },
966
+ "isActive": n => { organization.isActive = n.getBooleanValue(); },
967
+ "isCurrentUserOwner": n => { organization.isCurrentUserOwner = n.getBooleanValue(); },
968
+ "memberCount": n => { organization.memberCount = n.getNumberValue(); },
969
+ "metadata": n => { organization.metadata = n.getObjectValue(createOrganization_metadataFromDiscriminatorValue); },
970
+ "name": n => { organization.name = n.getStringValue(); },
971
+ "orderCount": n => { organization.orderCount = n.getNumberValue(); },
972
+ "requirements": n => { organization.requirements = n.getObjectValue(createOrderRequirementsFromDiscriminatorValue); },
973
+ "tags": n => { organization.tags = n.getCollectionOfPrimitiveValues("string"); },
974
+ "tenantId": n => { organization.tenantId = n.getGuidValue(); },
975
+ "terms": n => { organization.terms = n.getObjectValue(createOrganizationTermsFromDiscriminatorValue); },
976
+ "type": n => { organization.type = n.getEnumValue(OrganizationTypesObject); },
977
+ "updatedAt": n => { organization.updatedAt = n.getDateValue(); },
978
+ "weight": n => { organization.weight = n.getNumberValue(); },
979
+ };
980
+ }
981
+ /**
982
+ * The deserialization information for the current model
983
+ * @param Organization_metadata The instance to deserialize into.
984
+ * @returns {Record<string, (node: ParseNode) => void>}
985
+ */
986
+ // @ts-ignore
987
+ export function deserializeIntoOrganization_metadata(organization_metadata = {}) {
988
+ return {};
989
+ }
990
+ /**
991
+ * The deserialization information for the current model
992
+ * @param OrganizationBilling The instance to deserialize into.
993
+ * @returns {Record<string, (node: ParseNode) => void>}
994
+ */
995
+ // @ts-ignore
996
+ export function deserializeIntoOrganizationBilling(organizationBilling = {}) {
997
+ return {
998
+ "addressLine": n => { organizationBilling.addressLine = n.getStringValue(); },
999
+ "city": n => { organizationBilling.city = n.getStringValue(); },
1000
+ "country": n => { organizationBilling.country = n.getStringValue(); },
1001
+ "email": n => { organizationBilling.email = n.getStringValue(); },
1002
+ "postalCode": n => { organizationBilling.postalCode = n.getStringValue(); },
1003
+ "taxId": n => { organizationBilling.taxId = n.getStringValue(); },
1004
+ };
1005
+ }
1006
+ /**
1007
+ * The deserialization information for the current model
1008
+ * @param OrganizationBilling2 The instance to deserialize into.
1009
+ * @returns {Record<string, (node: ParseNode) => void>}
1010
+ */
1011
+ // @ts-ignore
1012
+ export function deserializeIntoOrganizationBilling2(organizationBilling2 = {}) {
1013
+ return {
1014
+ "addressLine": n => { organizationBilling2.addressLine = n.getStringValue(); },
1015
+ "city": n => { organizationBilling2.city = n.getStringValue(); },
1016
+ "country": n => { organizationBilling2.country = n.getStringValue(); },
1017
+ "email": n => { organizationBilling2.email = n.getStringValue(); },
1018
+ "postalCode": n => { organizationBilling2.postalCode = n.getStringValue(); },
1019
+ "taxId": n => { organizationBilling2.taxId = n.getStringValue(); },
1020
+ };
1021
+ }
1022
+ /**
1023
+ * The deserialization information for the current model
1024
+ * @param OrganizationBranding The instance to deserialize into.
1025
+ * @returns {Record<string, (node: ParseNode) => void>}
1026
+ */
1027
+ // @ts-ignore
1028
+ export function deserializeIntoOrganizationBranding(organizationBranding = {}) {
1029
+ return {
1030
+ "accentColor": n => { organizationBranding.accentColor = n.getStringValue(); },
1031
+ "iconUrl": n => { organizationBranding.iconUrl = n.getStringValue(); },
1032
+ "logo": n => { organizationBranding.logo = n.getStringValue(); },
1033
+ "logoDarkUrl": n => { organizationBranding.logoDarkUrl = n.getStringValue(); },
1034
+ "logoLightUrl": n => { organizationBranding.logoLightUrl = n.getStringValue(); },
1035
+ };
1036
+ }
1037
+ /**
1038
+ * The deserialization information for the current model
1039
+ * @param OrganizationInfrastructure The instance to deserialize into.
1040
+ * @returns {Record<string, (node: ParseNode) => void>}
1041
+ */
1042
+ // @ts-ignore
1043
+ export function deserializeIntoOrganizationInfrastructure(organizationInfrastructure = {}) {
1044
+ return {
1045
+ "proxyDomain": n => { organizationInfrastructure.proxyDomain = n.getStringValue(); },
1046
+ };
1047
+ }
1048
+ /**
1049
+ * The deserialization information for the current model
1050
+ * @param OrganizationInfrastructure2 The instance to deserialize into.
1051
+ * @returns {Record<string, (node: ParseNode) => void>}
1052
+ */
1053
+ // @ts-ignore
1054
+ export function deserializeIntoOrganizationInfrastructure2(organizationInfrastructure2 = {}) {
1055
+ return {
1056
+ "proxyDomain": n => { organizationInfrastructure2.proxyDomain = n.getStringValue(); },
1057
+ };
1058
+ }
1059
+ /**
1060
+ * The deserialization information for the current model
1061
+ * @param OrganizationTerms The instance to deserialize into.
1062
+ * @returns {Record<string, (node: ParseNode) => void>}
1063
+ */
1064
+ // @ts-ignore
1065
+ export function deserializeIntoOrganizationTerms(organizationTerms = {}) {
1066
+ return {
1067
+ "concurrentTrialLimit": n => { organizationTerms.concurrentTrialLimit = n.getNumberValue(); },
1068
+ "discountPercentage": n => { organizationTerms.discountPercentage = n.getNumberValue(); },
1069
+ "margin": n => { organizationTerms.margin = n.getNumberValue(); },
1070
+ "trialAllowed": n => { organizationTerms.trialAllowed = n.getBooleanValue(); },
1071
+ "trialDuration": n => { organizationTerms.trialDuration = n.getStringValue(); },
1072
+ };
1073
+ }
1074
+ /**
1075
+ * The deserialization information for the current model
1076
+ * @param PaymentProcessor The instance to deserialize into.
1077
+ * @returns {Record<string, (node: ParseNode) => void>}
1078
+ */
1079
+ // @ts-ignore
1080
+ export function deserializeIntoPaymentProcessor(paymentProcessor = {}) {
1081
+ return {
1082
+ "configured": n => { paymentProcessor.configured = n.getBooleanValue(); },
1083
+ "createdAt": n => { paymentProcessor.createdAt = n.getDateValue(); },
1084
+ "fields": n => { paymentProcessor.fields = n.getCollectionOfObjectValues(createProcessorFieldSchemaFromDiscriminatorValue); },
1085
+ "id": n => { paymentProcessor.id = n.getGuidValue(); },
1086
+ "metadata": n => { paymentProcessor.metadata = n.getObjectValue(createPaymentProcessor_metadataFromDiscriminatorValue); },
1087
+ "organizationId": n => { paymentProcessor.organizationId = n.getGuidValue(); },
1088
+ "processor": n => { paymentProcessor.processor = n.getEnumValue(PaymentProcessorsObject); },
1089
+ "tags": n => { paymentProcessor.tags = n.getCollectionOfPrimitiveValues("string"); },
1090
+ "updatedAt": n => { paymentProcessor.updatedAt = n.getDateValue(); },
1091
+ "values": n => { paymentProcessor.values = n.getObjectValue(createPaymentProcessor_valuesFromDiscriminatorValue); },
1092
+ "weight": n => { paymentProcessor.weight = n.getNumberValue(); },
1093
+ };
1094
+ }
1095
+ /**
1096
+ * The deserialization information for the current model
1097
+ * @param PaymentProcessor_metadata The instance to deserialize into.
1098
+ * @returns {Record<string, (node: ParseNode) => void>}
1099
+ */
1100
+ // @ts-ignore
1101
+ export function deserializeIntoPaymentProcessor_metadata(paymentProcessor_metadata = {}) {
1102
+ return {};
1103
+ }
1104
+ /**
1105
+ * The deserialization information for the current model
1106
+ * @param PaymentProcessor_values The instance to deserialize into.
1107
+ * @returns {Record<string, (node: ParseNode) => void>}
1108
+ */
1109
+ // @ts-ignore
1110
+ export function deserializeIntoPaymentProcessor_values(paymentProcessor_values = {}) {
1111
+ return {};
1112
+ }
1113
+ /**
1114
+ * The deserialization information for the current model
1115
+ * @param PreviewOrderRequest The instance to deserialize into.
1116
+ * @returns {Record<string, (node: ParseNode) => void>}
1117
+ */
1118
+ // @ts-ignore
1119
+ export function deserializeIntoPreviewOrderRequest(previewOrderRequest = {}) {
1120
+ return {
1121
+ "billingCycle": n => { previewOrderRequest.billingCycle = n.getEnumValue(NullableOfBillingCyclesObject); },
1122
+ "ispId": n => { previewOrderRequest.ispId = n.getGuidValue(); },
1123
+ "locationId": n => { previewOrderRequest.locationId = n.getGuidValue(); },
1124
+ "paymentMethod": n => { previewOrderRequest.paymentMethod = n.getEnumValue(NullableOfPaymentMethodsObject); },
1125
+ "productId": n => { previewOrderRequest.productId = n.getGuidValue(); },
1126
+ "quantity": n => { previewOrderRequest.quantity = n.getNumberValue(); },
1127
+ };
1128
+ }
1129
+ /**
1130
+ * The deserialization information for the current model
1131
+ * @param ProcessorFieldSchema The instance to deserialize into.
1132
+ * @returns {Record<string, (node: ParseNode) => void>}
1133
+ */
1134
+ // @ts-ignore
1135
+ export function deserializeIntoProcessorFieldSchema(processorFieldSchema = {}) {
1136
+ return {
1137
+ "hint": n => { processorFieldSchema.hint = n.getStringValue(); },
1138
+ "icon": n => { processorFieldSchema.icon = n.getStringValue(); },
1139
+ "label": n => { processorFieldSchema.label = n.getStringValue(); },
1140
+ "name": n => { processorFieldSchema.name = n.getStringValue(); },
1141
+ "placeholder": n => { processorFieldSchema.placeholder = n.getStringValue(); },
1142
+ "secret": n => { processorFieldSchema.secret = n.getBooleanValue(); },
1143
+ };
1144
+ }
1145
+ /**
1146
+ * The deserialization information for the current model
1147
+ * @param Product The instance to deserialize into.
1148
+ * @returns {Record<string, (node: ParseNode) => void>}
1149
+ */
1150
+ // @ts-ignore
1151
+ export function deserializeIntoProduct(product = {}) {
1152
+ return {
1153
+ "basePrice": n => { product.basePrice = n.getNumberValue(); },
1154
+ "createdAt": n => { product.createdAt = n.getDateValue(); },
1155
+ "currency": n => { product.currency = n.getStringValue(); },
1156
+ "description": n => { product.description = n.getStringValue(); },
1157
+ "icon": n => { product.icon = n.getStringValue(); },
1158
+ "id": n => { product.id = n.getGuidValue(); },
1159
+ "isEnabled": n => { product.isEnabled = n.getBooleanValue(); },
1160
+ "metadata": n => { product.metadata = n.getObjectValue(createProduct_metadataFromDiscriminatorValue); },
1161
+ "name": n => { product.name = n.getStringValue(); },
1162
+ "pricingType": n => { product.pricingType = n.getEnumValue(PricingTypesObject); },
1163
+ "tags": n => { product.tags = n.getCollectionOfPrimitiveValues("string"); },
1164
+ "updatedAt": n => { product.updatedAt = n.getDateValue(); },
1165
+ "weight": n => { product.weight = n.getNumberValue(); },
1166
+ };
1167
+ }
1168
+ /**
1169
+ * The deserialization information for the current model
1170
+ * @param Product_metadata The instance to deserialize into.
1171
+ * @returns {Record<string, (node: ParseNode) => void>}
1172
+ */
1173
+ // @ts-ignore
1174
+ export function deserializeIntoProduct_metadata(product_metadata = {}) {
1175
+ return {};
1176
+ }
1177
+ /**
1178
+ * The deserialization information for the current model
1179
+ * @param Proxy The instance to deserialize into.
1180
+ * @returns {Record<string, (node: ParseNode) => void>}
1181
+ */
1182
+ // @ts-ignore
1183
+ export function deserializeIntoProxy(proxy = {}) {
1184
+ return {
1185
+ "city": n => { proxy.city = n.getStringValue(); },
1186
+ "countryCode": n => { proxy.countryCode = n.getStringValue(); },
1187
+ "host": n => { proxy.host = n.getStringValue(); },
1188
+ "id": n => { proxy.id = n.getStringValue(); },
1189
+ "ip": n => { proxy.ip = n.getStringValue(); },
1190
+ "ispLogoUrl": n => { proxy.ispLogoUrl = n.getStringValue(); },
1191
+ "ispName": n => { proxy.ispName = n.getStringValue(); },
1192
+ "operatingMode": n => { proxy.operatingMode = n.getStringValue(); },
1193
+ "password": n => { proxy.password = n.getStringValue(); },
1194
+ "port": n => { proxy.port = n.getNumberValue(); },
1195
+ "protocol": n => { proxy.protocol = n.getStringValue(); },
1196
+ "username": n => { proxy.username = n.getStringValue(); },
1197
+ };
1198
+ }
1199
+ /**
1200
+ * The deserialization information for the current model
1201
+ * @param ProxyCredentialResponse The instance to deserialize into.
1202
+ * @returns {Record<string, (node: ParseNode) => void>}
1203
+ */
1204
+ // @ts-ignore
1205
+ export function deserializeIntoProxyCredentialResponse(proxyCredentialResponse = {}) {
1206
+ return {
1207
+ "allowedDomains": n => { proxyCredentialResponse.allowedDomains = n.getCollectionOfPrimitiveValues("string"); },
1208
+ "allowedIps": n => { proxyCredentialResponse.allowedIps = n.getCollectionOfPrimitiveValues("string"); },
1209
+ "appliedAt": n => { proxyCredentialResponse.appliedAt = n.getDateValue(); },
1210
+ "password": n => { proxyCredentialResponse.password = n.getStringValue(); },
1211
+ "username": n => { proxyCredentialResponse.username = n.getStringValue(); },
1212
+ };
1213
+ }
1214
+ /**
1215
+ * The deserialization information for the current model
1216
+ * @param ProxyIpRotationResponse The instance to deserialize into.
1217
+ * @returns {Record<string, (node: ParseNode) => void>}
1218
+ */
1219
+ // @ts-ignore
1220
+ export function deserializeIntoProxyIpRotationResponse(proxyIpRotationResponse = {}) {
1221
+ return {
1222
+ "delayMinutes": n => { proxyIpRotationResponse.delayMinutes = n.getNumberValue(); },
1223
+ "delaySeconds": n => { proxyIpRotationResponse.delaySeconds = n.getNumberValue(); },
1224
+ };
1225
+ }
1226
+ /**
1227
+ * The deserialization information for the current model
1228
+ * @param ProxyPingResponse The instance to deserialize into.
1229
+ * @returns {Record<string, (node: ParseNode) => void>}
1230
+ */
1231
+ // @ts-ignore
1232
+ export function deserializeIntoProxyPingResponse(proxyPingResponse = {}) {
1233
+ return {
1234
+ "latencyMs": n => { proxyPingResponse.latencyMs = n.getNumberValue(); },
1235
+ "reachable": n => { proxyPingResponse.reachable = n.getBooleanValue(); },
1236
+ };
1237
+ }
1238
+ /**
1239
+ * The deserialization information for the current model
1240
+ * @param ReviewKycRequest The instance to deserialize into.
1241
+ * @returns {Record<string, (node: ParseNode) => void>}
1242
+ */
1243
+ // @ts-ignore
1244
+ export function deserializeIntoReviewKycRequest(reviewKycRequest = {}) {
1245
+ return {
1246
+ "approved": n => { reviewKycRequest.approved = n.getBooleanValue(); },
1247
+ };
1248
+ }
1249
+ /**
1250
+ * The deserialization information for the current model
1251
+ * @param UpdateCustomerRequest The instance to deserialize into.
1252
+ * @returns {Record<string, (node: ParseNode) => void>}
1253
+ */
1254
+ // @ts-ignore
1255
+ export function deserializeIntoUpdateCustomerRequest(updateCustomerRequest = {}) {
1256
+ return {
1257
+ "billingDetails": n => { updateCustomerRequest.billingDetails = n.getObjectValue(createUpdateCustomerRequest_billingDetailsFromDiscriminatorValue); },
1258
+ "displayName": n => { updateCustomerRequest.displayName = n.getStringValue(); },
1259
+ "email": n => { updateCustomerRequest.email = n.getStringValue(); },
1260
+ "externalId": n => { updateCustomerRequest.externalId = n.getStringValue(); },
1261
+ };
1262
+ }
1263
+ /**
1264
+ * The deserialization information for the current model
1265
+ * @param UpdateCustomerRequest_billingDetails The instance to deserialize into.
1266
+ * @returns {Record<string, (node: ParseNode) => void>}
1267
+ */
1268
+ // @ts-ignore
1269
+ export function deserializeIntoUpdateCustomerRequest_billingDetails(updateCustomerRequest_billingDetails = {}) {
1270
+ return {};
1271
+ }
1272
+ /**
1273
+ * The deserialization information for the current model
1274
+ * @param UpdateOrganizationBillingRequest The instance to deserialize into.
1275
+ * @returns {Record<string, (node: ParseNode) => void>}
1276
+ */
1277
+ // @ts-ignore
1278
+ export function deserializeIntoUpdateOrganizationBillingRequest(updateOrganizationBillingRequest = {}) {
1279
+ return {
1280
+ "addressLine": n => { updateOrganizationBillingRequest.addressLine = n.getStringValue(); },
1281
+ "city": n => { updateOrganizationBillingRequest.city = n.getStringValue(); },
1282
+ "country": n => { updateOrganizationBillingRequest.country = n.getStringValue(); },
1283
+ "email": n => { updateOrganizationBillingRequest.email = n.getStringValue(); },
1284
+ "postalCode": n => { updateOrganizationBillingRequest.postalCode = n.getStringValue(); },
1285
+ "taxId": n => { updateOrganizationBillingRequest.taxId = n.getStringValue(); },
1286
+ };
1287
+ }
1288
+ /**
1289
+ * The deserialization information for the current model
1290
+ * @param UpdateOrganizationBrandingRequest The instance to deserialize into.
1291
+ * @returns {Record<string, (node: ParseNode) => void>}
1292
+ */
1293
+ // @ts-ignore
1294
+ export function deserializeIntoUpdateOrganizationBrandingRequest(updateOrganizationBrandingRequest = {}) {
1295
+ return {
1296
+ "accentColor": n => { updateOrganizationBrandingRequest.accentColor = n.getStringValue(); },
1297
+ "iconUrl": n => { updateOrganizationBrandingRequest.iconUrl = n.getStringValue(); },
1298
+ "logoDarkUrl": n => { updateOrganizationBrandingRequest.logoDarkUrl = n.getStringValue(); },
1299
+ "logoLightUrl": n => { updateOrganizationBrandingRequest.logoLightUrl = n.getStringValue(); },
1300
+ };
1301
+ }
1302
+ /**
1303
+ * The deserialization information for the current model
1304
+ * @param UpdateOrganizationInfrastructureRequest The instance to deserialize into.
1305
+ * @returns {Record<string, (node: ParseNode) => void>}
1306
+ */
1307
+ // @ts-ignore
1308
+ export function deserializeIntoUpdateOrganizationInfrastructureRequest(updateOrganizationInfrastructureRequest = {}) {
1309
+ return {
1310
+ "proxyDomain": n => { updateOrganizationInfrastructureRequest.proxyDomain = n.getStringValue(); },
1311
+ };
1312
+ }
1313
+ /**
1314
+ * The deserialization information for the current model
1315
+ * @param UpdateOrganizationRequest The instance to deserialize into.
1316
+ * @returns {Record<string, (node: ParseNode) => void>}
1317
+ */
1318
+ // @ts-ignore
1319
+ export function deserializeIntoUpdateOrganizationRequest(updateOrganizationRequest = {}) {
1320
+ return {
1321
+ "companyName": n => { updateOrganizationRequest.companyName = n.getStringValue(); },
1322
+ "name": n => { updateOrganizationRequest.name = n.getStringValue(); },
1323
+ };
1324
+ }
1325
+ /**
1326
+ * The deserialization information for the current model
1327
+ * @param UpdatePaymentProcessorRequest The instance to deserialize into.
1328
+ * @returns {Record<string, (node: ParseNode) => void>}
1329
+ */
1330
+ // @ts-ignore
1331
+ export function deserializeIntoUpdatePaymentProcessorRequest(updatePaymentProcessorRequest = {}) {
1332
+ return {
1333
+ "values": n => { updatePaymentProcessorRequest.values = n.getObjectValue(createUpdatePaymentProcessorRequest_valuesFromDiscriminatorValue); },
1334
+ };
1335
+ }
1336
+ /**
1337
+ * The deserialization information for the current model
1338
+ * @param UpdatePaymentProcessorRequest_values The instance to deserialize into.
1339
+ * @returns {Record<string, (node: ParseNode) => void>}
1340
+ */
1341
+ // @ts-ignore
1342
+ export function deserializeIntoUpdatePaymentProcessorRequest_values(updatePaymentProcessorRequest_values = {}) {
1343
+ return {};
1344
+ }
1345
+ /**
1346
+ * The deserialization information for the current model
1347
+ * @param UpdateProxyIpRotationRequest The instance to deserialize into.
1348
+ * @returns {Record<string, (node: ParseNode) => void>}
1349
+ */
1350
+ // @ts-ignore
1351
+ export function deserializeIntoUpdateProxyIpRotationRequest(updateProxyIpRotationRequest = {}) {
1352
+ return {
1353
+ "delaySeconds": n => { updateProxyIpRotationRequest.delaySeconds = n.getNumberValue(); },
1354
+ };
1355
+ }
1356
+ /**
1357
+ * Serializes information the current object
1358
+ * @param Activity The instance to serialize from.
1359
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1360
+ * @param writer Serialization writer to use to serialize this model
1361
+ */
1362
+ // @ts-ignore
1363
+ export function serializeActivity(writer, activity = {}, isSerializingDerivedType = false) {
1364
+ if (!activity || isSerializingDerivedType) {
1365
+ return;
1366
+ }
1367
+ writer.writeGuidValue("apiKeyId", activity.apiKeyId);
1368
+ writer.writeDateValue("createdAt", activity.createdAt);
1369
+ writer.writeStringValue("endpoint", activity.endpoint);
1370
+ writer.writeGuidValue("id", activity.id);
1371
+ writer.writeObjectValue("metadata", activity.metadata, serializeActivity_metadata);
1372
+ writer.writeStringValue("method", activity.method);
1373
+ writer.writeGuidValue("organizationId", activity.organizationId);
1374
+ writer.writeStringValue("requestBody", activity.requestBody);
1375
+ writer.writeNumberValue("statusCode", activity.statusCode);
1376
+ writer.writeCollectionOfPrimitiveValues("tags", activity.tags);
1377
+ writer.writeDateValue("updatedAt", activity.updatedAt);
1378
+ writer.writeNumberValue("weight", activity.weight);
1379
+ writer.writeAdditionalData(activity.additionalData);
1380
+ }
1381
+ /**
1382
+ * Serializes information the current object
1383
+ * @param Activity_metadata The instance to serialize from.
1384
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1385
+ * @param writer Serialization writer to use to serialize this model
1386
+ */
1387
+ // @ts-ignore
1388
+ export function serializeActivity_metadata(writer, activity_metadata = {}, isSerializingDerivedType = false) {
1389
+ if (!activity_metadata || isSerializingDerivedType) {
1390
+ return;
1391
+ }
1392
+ writer.writeAdditionalData(activity_metadata.additionalData);
1393
+ }
1394
+ /**
1395
+ * Serializes information the current object
1396
+ * @param BalanceResponse The instance to serialize from.
1397
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1398
+ * @param writer Serialization writer to use to serialize this model
1399
+ */
1400
+ // @ts-ignore
1401
+ export function serializeBalanceResponse(writer, balanceResponse = {}, isSerializingDerivedType = false) {
1402
+ if (!balanceResponse || isSerializingDerivedType) {
1403
+ return;
1404
+ }
1405
+ writer.writeCollectionOfObjectValues("currencies", balanceResponse.currencies, serializeCurrencyAmount);
1406
+ writer.writeNumberValue("pending", balanceResponse.pending);
1407
+ writer.writeNumberValue("total", balanceResponse.total);
1408
+ writer.writeAdditionalData(balanceResponse.additionalData);
1409
+ }
1410
+ /**
1411
+ * Serializes information the current object
1412
+ * @param ChangeProxyCredentialsRequest The instance to serialize from.
1413
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1414
+ * @param writer Serialization writer to use to serialize this model
1415
+ */
1416
+ // @ts-ignore
1417
+ export function serializeChangeProxyCredentialsRequest(writer, changeProxyCredentialsRequest = {}, isSerializingDerivedType = false) {
1418
+ if (!changeProxyCredentialsRequest || isSerializingDerivedType) {
1419
+ return;
1420
+ }
1421
+ writer.writeCollectionOfPrimitiveValues("allowedIps", changeProxyCredentialsRequest.allowedIps);
1422
+ writer.writeStringValue("password", changeProxyCredentialsRequest.password);
1423
+ writer.writeStringValue("username", changeProxyCredentialsRequest.username);
1424
+ writer.writeAdditionalData(changeProxyCredentialsRequest.additionalData);
1425
+ }
1426
+ /**
1427
+ * Serializes information the current object
1428
+ * @param CreateCustomerRequest The instance to serialize from.
1429
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1430
+ * @param writer Serialization writer to use to serialize this model
1431
+ */
1432
+ // @ts-ignore
1433
+ export function serializeCreateCustomerRequest(writer, createCustomerRequest = {}, isSerializingDerivedType = false) {
1434
+ if (!createCustomerRequest || isSerializingDerivedType) {
1435
+ return;
1436
+ }
1437
+ writer.writeObjectValue("billingDetails", createCustomerRequest.billingDetails, serializeCreateCustomerRequest_billingDetails);
1438
+ writer.writeStringValue("displayName", createCustomerRequest.displayName);
1439
+ writer.writeStringValue("email", createCustomerRequest.email);
1440
+ writer.writeStringValue("externalId", createCustomerRequest.externalId);
1441
+ writer.writeStringValue("locale", createCustomerRequest.locale);
1442
+ writer.writeStringValue("password", createCustomerRequest.password);
1443
+ writer.writeStringValue("phoneNumber", createCustomerRequest.phoneNumber);
1444
+ writer.writeAdditionalData(createCustomerRequest.additionalData);
1445
+ }
1446
+ /**
1447
+ * Serializes information the current object
1448
+ * @param CreateCustomerRequest_billingDetails The instance to serialize from.
1449
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1450
+ * @param writer Serialization writer to use to serialize this model
1451
+ */
1452
+ // @ts-ignore
1453
+ export function serializeCreateCustomerRequest_billingDetails(writer, createCustomerRequest_billingDetails = {}, isSerializingDerivedType = false) {
1454
+ if (!createCustomerRequest_billingDetails || isSerializingDerivedType) {
1455
+ return;
1456
+ }
1457
+ writer.writeAdditionalData(createCustomerRequest_billingDetails.additionalData);
1458
+ }
1459
+ /**
1460
+ * Serializes information the current object
1461
+ * @param CreateDepositRequest The instance to serialize from.
1462
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1463
+ * @param writer Serialization writer to use to serialize this model
1464
+ */
1465
+ // @ts-ignore
1466
+ export function serializeCreateDepositRequest(writer, createDepositRequest = {}, isSerializingDerivedType = false) {
1467
+ if (!createDepositRequest || isSerializingDerivedType) {
1468
+ return;
1469
+ }
1470
+ writer.writeStringValue("currency", createDepositRequest.currency);
1471
+ writer.writeAdditionalData(createDepositRequest.additionalData);
1472
+ }
1473
+ /**
1474
+ * Serializes information the current object
1475
+ * @param CreateIncidentRequest The instance to serialize from.
1476
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1477
+ * @param writer Serialization writer to use to serialize this model
1478
+ */
1479
+ // @ts-ignore
1480
+ export function serializeCreateIncidentRequest(writer, createIncidentRequest = {}, isSerializingDerivedType = false) {
1481
+ if (!createIncidentRequest || isSerializingDerivedType) {
1482
+ return;
1483
+ }
1484
+ writer.writeStringValue("description", createIncidentRequest.description);
1485
+ writer.writeStringValue("reporterEmail", createIncidentRequest.reporterEmail);
1486
+ writer.writeStringValue("subject", createIncidentRequest.subject);
1487
+ writer.writeStringValue("target", createIncidentRequest.target);
1488
+ writer.writeAdditionalData(createIncidentRequest.additionalData);
1489
+ }
1490
+ /**
1491
+ * Serializes information the current object
1492
+ * @param CreateOrderRequest The instance to serialize from.
1493
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1494
+ * @param writer Serialization writer to use to serialize this model
1495
+ */
1496
+ // @ts-ignore
1497
+ export function serializeCreateOrderRequest(writer, createOrderRequest = {}, isSerializingDerivedType = false) {
1498
+ if (!createOrderRequest || isSerializingDerivedType) {
1499
+ return;
1500
+ }
1501
+ writer.writeEnumValue("billingCycle", createOrderRequest.billingCycle);
1502
+ writer.writeStringValue("consumerRef", createOrderRequest.consumerRef);
1503
+ writer.writeGuidValue("ispId", createOrderRequest.ispId);
1504
+ writer.writeGuidValue("locationId", createOrderRequest.locationId);
1505
+ writer.writeEnumValue("paymentMethod", createOrderRequest.paymentMethod);
1506
+ writer.writeGuidValue("productId", createOrderRequest.productId);
1507
+ writer.writeNumberValue("quantity", createOrderRequest.quantity);
1508
+ writer.writeAdditionalData(createOrderRequest.additionalData);
1509
+ }
1510
+ /**
1511
+ * Serializes information the current object
1512
+ * @param CreateOrderResponse The instance to serialize from.
1513
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1514
+ * @param writer Serialization writer to use to serialize this model
1515
+ */
1516
+ // @ts-ignore
1517
+ export function serializeCreateOrderResponse(writer, createOrderResponse = {}, isSerializingDerivedType = false) {
1518
+ if (!createOrderResponse || isSerializingDerivedType) {
1519
+ return;
1520
+ }
1521
+ writer.writeStringValue("currency", createOrderResponse.currency);
1522
+ writer.writeBooleanValue("isTrial", createOrderResponse.isTrial);
1523
+ writer.writeGuidValue("orderId", createOrderResponse.orderId);
1524
+ writer.writeNumberValue("quantity", createOrderResponse.quantity);
1525
+ writer.writeStringValue("returnUrl", createOrderResponse.returnUrl);
1526
+ writer.writeNumberValue("total", createOrderResponse.total);
1527
+ writer.writeNumberValue("unitPrice", createOrderResponse.unitPrice);
1528
+ writer.writeAdditionalData(createOrderResponse.additionalData);
1529
+ }
1530
+ /**
1531
+ * Serializes information the current object
1532
+ * @param CreateOrganizationRequest The instance to serialize from.
1533
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1534
+ * @param writer Serialization writer to use to serialize this model
1535
+ */
1536
+ // @ts-ignore
1537
+ export function serializeCreateOrganizationRequest(writer, createOrganizationRequest = {}, isSerializingDerivedType = false) {
1538
+ if (!createOrganizationRequest || isSerializingDerivedType) {
1539
+ return;
1540
+ }
1541
+ writer.writeStringValue("companyName", createOrganizationRequest.companyName);
1542
+ writer.writeStringValue("name", createOrganizationRequest.name);
1543
+ writer.writeAdditionalData(createOrganizationRequest.additionalData);
1544
+ }
1545
+ /**
1546
+ * Serializes information the current object
1547
+ * @param CurrencyAmount The instance to serialize from.
1548
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1549
+ * @param writer Serialization writer to use to serialize this model
1550
+ */
1551
+ // @ts-ignore
1552
+ export function serializeCurrencyAmount(writer, currencyAmount = {}, isSerializingDerivedType = false) {
1553
+ if (!currencyAmount || isSerializingDerivedType) {
1554
+ return;
1555
+ }
1556
+ writer.writeNumberValue("amount", currencyAmount.amount);
1557
+ writer.writeStringValue("currency", currencyAmount.currency);
1558
+ writer.writeNumberValue("pending", currencyAmount.pending);
1559
+ writer.writeAdditionalData(currencyAmount.additionalData);
1560
+ }
1561
+ /**
1562
+ * Serializes information the current object
1563
+ * @param Customer The instance to serialize from.
1564
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1565
+ * @param writer Serialization writer to use to serialize this model
1566
+ */
1567
+ // @ts-ignore
1568
+ export function serializeCustomer(writer, customer = {}, isSerializingDerivedType = false) {
1569
+ if (!customer || isSerializingDerivedType) {
1570
+ return;
1571
+ }
1572
+ writer.writeStringValue("avatarUrl", customer.avatarUrl);
1573
+ writer.writeDateValue("bannedAt", customer.bannedAt);
1574
+ writer.writeObjectValue("billingDetails", customer.billingDetails, serializeCustomer_billingDetails);
1575
+ writer.writeDateValue("createdAt", customer.createdAt);
1576
+ writer.writeStringValue("displayName", customer.displayName);
1577
+ writer.writeStringValue("email", customer.email);
1578
+ writer.writeBooleanValue("emailVerified", customer.emailVerified);
1579
+ writer.writeStringValue("externalId", customer.externalId);
1580
+ writer.writeObjectValue("externalLogins", customer.externalLogins, serializeCustomer_externalLogins);
1581
+ writer.writeGuidValue("id", customer.id);
1582
+ writer.writeBooleanValue("isActive", customer.isActive);
1583
+ writer.writeObjectValue("kyc", customer.kyc, serializeCustomerKyc);
1584
+ writer.writeDateValue("lastLoginAt", customer.lastLoginAt);
1585
+ writer.writeStringValue("locale", customer.locale);
1586
+ writer.writeObjectValue("metadata", customer.metadata, serializeCustomer_metadata);
1587
+ writer.writeGuidValue("organizationId", customer.organizationId);
1588
+ writer.writeStringValue("paymentCustomerId", customer.paymentCustomerId);
1589
+ writer.writeStringValue("phoneNumber", customer.phoneNumber);
1590
+ writer.writeStringValue("pushNotificationsToken", customer.pushNotificationsToken);
1591
+ writer.writeCollectionOfPrimitiveValues("tags", customer.tags);
1592
+ writer.writeDateValue("updatedAt", customer.updatedAt);
1593
+ writer.writeNumberValue("weight", customer.weight);
1594
+ writer.writeAdditionalData(customer.additionalData);
1595
+ }
1596
+ /**
1597
+ * Serializes information the current object
1598
+ * @param Customer_billingDetails The instance to serialize from.
1599
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1600
+ * @param writer Serialization writer to use to serialize this model
1601
+ */
1602
+ // @ts-ignore
1603
+ export function serializeCustomer_billingDetails(writer, customer_billingDetails = {}, isSerializingDerivedType = false) {
1604
+ if (!customer_billingDetails || isSerializingDerivedType) {
1605
+ return;
1606
+ }
1607
+ writer.writeAdditionalData(customer_billingDetails.additionalData);
1608
+ }
1609
+ /**
1610
+ * Serializes information the current object
1611
+ * @param Customer_externalLogins The instance to serialize from.
1612
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1613
+ * @param writer Serialization writer to use to serialize this model
1614
+ */
1615
+ // @ts-ignore
1616
+ export function serializeCustomer_externalLogins(writer, customer_externalLogins = {}, isSerializingDerivedType = false) {
1617
+ if (!customer_externalLogins || isSerializingDerivedType) {
1618
+ return;
1619
+ }
1620
+ writer.writeAdditionalData(customer_externalLogins.additionalData);
1621
+ }
1622
+ /**
1623
+ * Serializes information the current object
1624
+ * @param Customer_metadata The instance to serialize from.
1625
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1626
+ * @param writer Serialization writer to use to serialize this model
1627
+ */
1628
+ // @ts-ignore
1629
+ export function serializeCustomer_metadata(writer, customer_metadata = {}, isSerializingDerivedType = false) {
1630
+ if (!customer_metadata || isSerializingDerivedType) {
1631
+ return;
1632
+ }
1633
+ writer.writeAdditionalData(customer_metadata.additionalData);
1634
+ }
1635
+ /**
1636
+ * Serializes information the current object
1637
+ * @param CustomerKyc The instance to serialize from.
1638
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1639
+ * @param writer Serialization writer to use to serialize this model
1640
+ */
1641
+ // @ts-ignore
1642
+ export function serializeCustomerKyc(writer, customerKyc = {}, isSerializingDerivedType = false) {
1643
+ if (!customerKyc || isSerializingDerivedType) {
1644
+ return;
1645
+ }
1646
+ writer.writeBooleanValue("approved", customerKyc.approved);
1647
+ writer.writeStringValue("description", customerKyc.description);
1648
+ writer.writeBooleanValue("policyAcknowledged", customerKyc.policyAcknowledged);
1649
+ writer.writeStringValue("scopeOfUse", customerKyc.scopeOfUse);
1650
+ writer.writeBooleanValue("submitted", customerKyc.submitted);
1651
+ writer.writeAdditionalData(customerKyc.additionalData);
1652
+ }
1653
+ /**
1654
+ * Serializes information the current object
1655
+ * @param DepositResponse The instance to serialize from.
1656
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1657
+ * @param writer Serialization writer to use to serialize this model
1658
+ */
1659
+ // @ts-ignore
1660
+ export function serializeDepositResponse(writer, depositResponse = {}, isSerializingDerivedType = false) {
1661
+ if (!depositResponse || isSerializingDerivedType) {
1662
+ return;
1663
+ }
1664
+ writer.writeStringValue("address", depositResponse.address);
1665
+ writer.writeStringValue("currency", depositResponse.currency);
1666
+ writer.writeStringValue("paymentId", depositResponse.paymentId);
1667
+ writer.writeAdditionalData(depositResponse.additionalData);
1668
+ }
1669
+ /**
1670
+ * Serializes information the current object
1671
+ * @param ExtendOrderRequest The instance to serialize from.
1672
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1673
+ * @param writer Serialization writer to use to serialize this model
1674
+ */
1675
+ // @ts-ignore
1676
+ export function serializeExtendOrderRequest(writer, extendOrderRequest = {}, isSerializingDerivedType = false) {
1677
+ if (!extendOrderRequest || isSerializingDerivedType) {
1678
+ return;
1679
+ }
1680
+ writer.writeEnumValue("billingCycle", extendOrderRequest.billingCycle);
1681
+ writer.writeEnumValue("paymentMethod", extendOrderRequest.paymentMethod);
1682
+ writer.writeAdditionalData(extendOrderRequest.additionalData);
1683
+ }
1684
+ /**
1685
+ * Serializes information the current object
1686
+ * @param Incident The instance to serialize from.
1687
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1688
+ * @param writer Serialization writer to use to serialize this model
1689
+ */
1690
+ // @ts-ignore
1691
+ export function serializeIncident(writer, incident = {}, isSerializingDerivedType = false) {
1692
+ if (!incident || isSerializingDerivedType) {
1693
+ return;
1694
+ }
1695
+ writer.writeDateValue("createdAt", incident.createdAt);
1696
+ writer.writeStringValue("description", incident.description);
1697
+ writer.writeGuidValue("id", incident.id);
1698
+ writer.writeGuidValue("managerIncidentId", incident.managerIncidentId);
1699
+ writer.writeObjectValue("metadata", incident.metadata, serializeIncident_metadata);
1700
+ writer.writeGuidValue("organizationId", incident.organizationId);
1701
+ writer.writeStringValue("reporterEmail", incident.reporterEmail);
1702
+ writer.writeStringValue("resolutionNote", incident.resolutionNote);
1703
+ writer.writeDateValue("resolvedAt", incident.resolvedAt);
1704
+ writer.writeEnumValue("status", incident.status);
1705
+ writer.writeStringValue("subject", incident.subject);
1706
+ writer.writeCollectionOfPrimitiveValues("tags", incident.tags);
1707
+ writer.writeStringValue("target", incident.target);
1708
+ writer.writeDateValue("updatedAt", incident.updatedAt);
1709
+ writer.writeNumberValue("weight", incident.weight);
1710
+ writer.writeAdditionalData(incident.additionalData);
1711
+ }
1712
+ /**
1713
+ * Serializes information the current object
1714
+ * @param Incident_metadata The instance to serialize from.
1715
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1716
+ * @param writer Serialization writer to use to serialize this model
1717
+ */
1718
+ // @ts-ignore
1719
+ export function serializeIncident_metadata(writer, incident_metadata = {}, isSerializingDerivedType = false) {
1720
+ if (!incident_metadata || isSerializingDerivedType) {
1721
+ return;
1722
+ }
1723
+ writer.writeAdditionalData(incident_metadata.additionalData);
1724
+ }
1725
+ /**
1726
+ * Serializes information the current object
1727
+ * @param Isp The instance to serialize from.
1728
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1729
+ * @param writer Serialization writer to use to serialize this model
1730
+ */
1731
+ // @ts-ignore
1732
+ export function serializeIsp(writer, isp = {}, isSerializingDerivedType = false) {
1733
+ if (!isp || isSerializingDerivedType) {
1734
+ return;
1735
+ }
1736
+ writer.writeStringValue("id", isp.id);
1737
+ writer.writeStringValue("logoUrl", isp.logoUrl);
1738
+ writer.writeStringValue("name", isp.name);
1739
+ writer.writeNumberValue("price", isp.price);
1740
+ writer.writeNumberValue("proxies", isp.proxies);
1741
+ writer.writeAdditionalData(isp.additionalData);
1742
+ }
1743
+ /**
1744
+ * Serializes information the current object
1745
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1746
+ * @param Location The instance to serialize from.
1747
+ * @param writer Serialization writer to use to serialize this model
1748
+ */
1749
+ // @ts-ignore
1750
+ export function serializeLocation(writer, location = {}, isSerializingDerivedType = false) {
1751
+ if (!location || isSerializingDerivedType) {
1752
+ return;
1753
+ }
1754
+ writer.writeStringValue("city", location.city);
1755
+ writer.writeStringValue("countryCode", location.countryCode);
1756
+ writer.writeStringValue("id", location.id);
1757
+ writer.writeNumberValue("ispCount", location.ispCount);
1758
+ writer.writeNumberValue("price", location.price);
1759
+ writer.writeNumberValue("proxies", location.proxies);
1760
+ writer.writeAdditionalData(location.additionalData);
1761
+ }
1762
+ /**
1763
+ * Serializes information the current object
1764
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1765
+ * @param Member The instance to serialize from.
1766
+ * @param writer Serialization writer to use to serialize this model
1767
+ */
1768
+ // @ts-ignore
1769
+ export function serializeMember(writer, member = {}, isSerializingDerivedType = false) {
1770
+ if (!member || isSerializingDerivedType) {
1771
+ return;
1772
+ }
1773
+ writer.writeStringValue("avatarUrl", member.avatarUrl);
1774
+ writer.writeDateValue("createdAt", member.createdAt);
1775
+ writer.writeStringValue("displayName", member.displayName);
1776
+ writer.writeStringValue("email", member.email);
1777
+ writer.writeStringValue("id", member.id);
1778
+ writer.writeBooleanValue("isOwner", member.isOwner);
1779
+ writer.writeAdditionalData(member.additionalData);
1780
+ }
1781
+ /**
1782
+ * Serializes information the current object
1783
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1784
+ * @param MembersResponse The instance to serialize from.
1785
+ * @param writer Serialization writer to use to serialize this model
1786
+ */
1787
+ // @ts-ignore
1788
+ export function serializeMembersResponse(writer, membersResponse = {}, isSerializingDerivedType = false) {
1789
+ if (!membersResponse || isSerializingDerivedType) {
1790
+ return;
1791
+ }
1792
+ writer.writeCollectionOfObjectValues("members", membersResponse.members, serializeMember);
1793
+ writer.writeAdditionalData(membersResponse.additionalData);
1794
+ }
1795
+ /**
1796
+ * Serializes information the current object
1797
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1798
+ * @param Order The instance to serialize from.
1799
+ * @param writer Serialization writer to use to serialize this model
1800
+ */
1801
+ // @ts-ignore
1802
+ export function serializeOrder(writer, order = {}, isSerializingDerivedType = false) {
1803
+ if (!order || isSerializingDerivedType) {
1804
+ return;
1805
+ }
1806
+ writer.writeGuidValue("allocationId", order.allocationId);
1807
+ writer.writeEnumValue("billingCycle", order.billingCycle);
1808
+ writer.writeStringValue("completePaymentUrl", order.completePaymentUrl);
1809
+ writer.writeStringValue("consumerRef", order.consumerRef);
1810
+ writer.writeDateValue("createdAt", order.createdAt);
1811
+ writer.writeStringValue("currency", order.currency);
1812
+ writer.writeGuidValue("customerId", order.customerId);
1813
+ writer.writeDateValue("expiresAt", order.expiresAt);
1814
+ writer.writeGuidValue("id", order.id);
1815
+ writer.writeBooleanValue("isInGracePeriod", order.isInGracePeriod);
1816
+ writer.writeGuidValue("ispId", order.ispId);
1817
+ writer.writeBooleanValue("isTrial", order.isTrial);
1818
+ writer.writeGuidValue("locationId", order.locationId);
1819
+ writer.writeObjectValue("metadata", order.metadata, serializeOrder_metadata);
1820
+ writer.writeEnumValue("paymentMethod", order.paymentMethod);
1821
+ writer.writeGuidValue("productId", order.productId);
1822
+ writer.writeNumberValue("quantity", order.quantity);
1823
+ writer.writeEnumValue("status", order.status);
1824
+ writer.writeCollectionOfPrimitiveValues("tags", order.tags);
1825
+ writer.writeNumberValue("total", order.total);
1826
+ writer.writeNumberValue("unitPrice", order.unitPrice);
1827
+ writer.writeDateValue("updatedAt", order.updatedAt);
1828
+ writer.writeNumberValue("weight", order.weight);
1829
+ writer.writeAdditionalData(order.additionalData);
1830
+ }
1831
+ /**
1832
+ * Serializes information the current object
1833
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1834
+ * @param Order_metadata The instance to serialize from.
1835
+ * @param writer Serialization writer to use to serialize this model
1836
+ */
1837
+ // @ts-ignore
1838
+ export function serializeOrder_metadata(writer, order_metadata = {}, isSerializingDerivedType = false) {
1839
+ if (!order_metadata || isSerializingDerivedType) {
1840
+ return;
1841
+ }
1842
+ writer.writeAdditionalData(order_metadata.additionalData);
1843
+ }
1844
+ /**
1845
+ * Serializes information the current object
1846
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1847
+ * @param OrderPreviewResponse The instance to serialize from.
1848
+ * @param writer Serialization writer to use to serialize this model
1849
+ */
1850
+ // @ts-ignore
1851
+ export function serializeOrderPreviewResponse(writer, orderPreviewResponse = {}, isSerializingDerivedType = false) {
1852
+ if (!orderPreviewResponse || isSerializingDerivedType) {
1853
+ return;
1854
+ }
1855
+ writer.writeStringValue("currency", orderPreviewResponse.currency);
1856
+ writer.writeNumberValue("discount", orderPreviewResponse.discount);
1857
+ writer.writeNumberValue("discountPercent", orderPreviewResponse.discountPercent);
1858
+ writer.writeNumberValue("quantity", orderPreviewResponse.quantity);
1859
+ writer.writeNumberValue("subtotal", orderPreviewResponse.subtotal);
1860
+ writer.writeNumberValue("total", orderPreviewResponse.total);
1861
+ writer.writeNumberValue("unitPrice", orderPreviewResponse.unitPrice);
1862
+ writer.writeAdditionalData(orderPreviewResponse.additionalData);
1863
+ }
1864
+ /**
1865
+ * Serializes information the current object
1866
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1867
+ * @param OrderRequirements The instance to serialize from.
1868
+ * @param writer Serialization writer to use to serialize this model
1869
+ */
1870
+ // @ts-ignore
1871
+ export function serializeOrderRequirements(writer, orderRequirements = {}, isSerializingDerivedType = false) {
1872
+ if (!orderRequirements || isSerializingDerivedType) {
1873
+ return;
1874
+ }
1875
+ writer.writeBooleanValue("billing", orderRequirements.billing);
1876
+ writer.writeBooleanValue("canOrder", orderRequirements.canOrder);
1877
+ writer.writeAdditionalData(orderRequirements.additionalData);
1878
+ }
1879
+ /**
1880
+ * Serializes information the current object
1881
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1882
+ * @param Organization The instance to serialize from.
1883
+ * @param writer Serialization writer to use to serialize this model
1884
+ */
1885
+ // @ts-ignore
1886
+ export function serializeOrganization(writer, organization = {}, isSerializingDerivedType = false) {
1887
+ if (!organization || isSerializingDerivedType) {
1888
+ return;
1889
+ }
1890
+ writer.writeObjectValue("billing", organization.billing, serializeOrganizationBilling2);
1891
+ writer.writeObjectValue("branding", organization.branding, serializeOrganizationBranding);
1892
+ writer.writeStringValue("companyName", organization.companyName);
1893
+ writer.writeDateValue("createdAt", organization.createdAt);
1894
+ writer.writeGuidValue("id", organization.id);
1895
+ writer.writeObjectValue("infrastructure", organization.infrastructure, serializeOrganizationInfrastructure);
1896
+ writer.writeBooleanValue("isActive", organization.isActive);
1897
+ writer.writeBooleanValue("isCurrentUserOwner", organization.isCurrentUserOwner);
1898
+ writer.writeNumberValue("memberCount", organization.memberCount);
1899
+ writer.writeObjectValue("metadata", organization.metadata, serializeOrganization_metadata);
1900
+ writer.writeStringValue("name", organization.name);
1901
+ writer.writeNumberValue("orderCount", organization.orderCount);
1902
+ writer.writeObjectValue("requirements", organization.requirements, serializeOrderRequirements);
1903
+ writer.writeCollectionOfPrimitiveValues("tags", organization.tags);
1904
+ writer.writeGuidValue("tenantId", organization.tenantId);
1905
+ writer.writeObjectValue("terms", organization.terms, serializeOrganizationTerms);
1906
+ writer.writeEnumValue("type", organization.type);
1907
+ writer.writeDateValue("updatedAt", organization.updatedAt);
1908
+ writer.writeNumberValue("weight", organization.weight);
1909
+ writer.writeAdditionalData(organization.additionalData);
1910
+ }
1911
+ /**
1912
+ * Serializes information the current object
1913
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1914
+ * @param Organization_metadata The instance to serialize from.
1915
+ * @param writer Serialization writer to use to serialize this model
1916
+ */
1917
+ // @ts-ignore
1918
+ export function serializeOrganization_metadata(writer, organization_metadata = {}, isSerializingDerivedType = false) {
1919
+ if (!organization_metadata || isSerializingDerivedType) {
1920
+ return;
1921
+ }
1922
+ writer.writeAdditionalData(organization_metadata.additionalData);
1923
+ }
1924
+ /**
1925
+ * Serializes information the current object
1926
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1927
+ * @param OrganizationBilling The instance to serialize from.
1928
+ * @param writer Serialization writer to use to serialize this model
1929
+ */
1930
+ // @ts-ignore
1931
+ export function serializeOrganizationBilling(writer, organizationBilling = {}, isSerializingDerivedType = false) {
1932
+ if (!organizationBilling || isSerializingDerivedType) {
1933
+ return;
1934
+ }
1935
+ writer.writeStringValue("addressLine", organizationBilling.addressLine);
1936
+ writer.writeStringValue("city", organizationBilling.city);
1937
+ writer.writeStringValue("country", organizationBilling.country);
1938
+ writer.writeStringValue("email", organizationBilling.email);
1939
+ writer.writeStringValue("postalCode", organizationBilling.postalCode);
1940
+ writer.writeStringValue("taxId", organizationBilling.taxId);
1941
+ writer.writeAdditionalData(organizationBilling.additionalData);
1942
+ }
1943
+ /**
1944
+ * Serializes information the current object
1945
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1946
+ * @param OrganizationBilling2 The instance to serialize from.
1947
+ * @param writer Serialization writer to use to serialize this model
1948
+ */
1949
+ // @ts-ignore
1950
+ export function serializeOrganizationBilling2(writer, organizationBilling2 = {}, isSerializingDerivedType = false) {
1951
+ if (!organizationBilling2 || isSerializingDerivedType) {
1952
+ return;
1953
+ }
1954
+ writer.writeStringValue("addressLine", organizationBilling2.addressLine);
1955
+ writer.writeStringValue("city", organizationBilling2.city);
1956
+ writer.writeStringValue("country", organizationBilling2.country);
1957
+ writer.writeStringValue("email", organizationBilling2.email);
1958
+ writer.writeStringValue("postalCode", organizationBilling2.postalCode);
1959
+ writer.writeStringValue("taxId", organizationBilling2.taxId);
1960
+ writer.writeAdditionalData(organizationBilling2.additionalData);
1961
+ }
1962
+ /**
1963
+ * Serializes information the current object
1964
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1965
+ * @param OrganizationBranding The instance to serialize from.
1966
+ * @param writer Serialization writer to use to serialize this model
1967
+ */
1968
+ // @ts-ignore
1969
+ export function serializeOrganizationBranding(writer, organizationBranding = {}, isSerializingDerivedType = false) {
1970
+ if (!organizationBranding || isSerializingDerivedType) {
1971
+ return;
1972
+ }
1973
+ writer.writeStringValue("accentColor", organizationBranding.accentColor);
1974
+ writer.writeStringValue("iconUrl", organizationBranding.iconUrl);
1975
+ writer.writeStringValue("logo", organizationBranding.logo);
1976
+ writer.writeStringValue("logoDarkUrl", organizationBranding.logoDarkUrl);
1977
+ writer.writeStringValue("logoLightUrl", organizationBranding.logoLightUrl);
1978
+ writer.writeAdditionalData(organizationBranding.additionalData);
1979
+ }
1980
+ /**
1981
+ * Serializes information the current object
1982
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1983
+ * @param OrganizationInfrastructure The instance to serialize from.
1984
+ * @param writer Serialization writer to use to serialize this model
1985
+ */
1986
+ // @ts-ignore
1987
+ export function serializeOrganizationInfrastructure(writer, organizationInfrastructure = {}, isSerializingDerivedType = false) {
1988
+ if (!organizationInfrastructure || isSerializingDerivedType) {
1989
+ return;
1990
+ }
1991
+ writer.writeStringValue("proxyDomain", organizationInfrastructure.proxyDomain);
1992
+ writer.writeAdditionalData(organizationInfrastructure.additionalData);
1993
+ }
1994
+ /**
1995
+ * Serializes information the current object
1996
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1997
+ * @param OrganizationInfrastructure2 The instance to serialize from.
1998
+ * @param writer Serialization writer to use to serialize this model
1999
+ */
2000
+ // @ts-ignore
2001
+ export function serializeOrganizationInfrastructure2(writer, organizationInfrastructure2 = {}, isSerializingDerivedType = false) {
2002
+ if (!organizationInfrastructure2 || isSerializingDerivedType) {
2003
+ return;
2004
+ }
2005
+ writer.writeStringValue("proxyDomain", organizationInfrastructure2.proxyDomain);
2006
+ writer.writeAdditionalData(organizationInfrastructure2.additionalData);
2007
+ }
2008
+ /**
2009
+ * Serializes information the current object
2010
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2011
+ * @param OrganizationTerms The instance to serialize from.
2012
+ * @param writer Serialization writer to use to serialize this model
2013
+ */
2014
+ // @ts-ignore
2015
+ export function serializeOrganizationTerms(writer, organizationTerms = {}, isSerializingDerivedType = false) {
2016
+ if (!organizationTerms || isSerializingDerivedType) {
2017
+ return;
2018
+ }
2019
+ writer.writeNumberValue("concurrentTrialLimit", organizationTerms.concurrentTrialLimit);
2020
+ writer.writeNumberValue("discountPercentage", organizationTerms.discountPercentage);
2021
+ writer.writeNumberValue("margin", organizationTerms.margin);
2022
+ writer.writeBooleanValue("trialAllowed", organizationTerms.trialAllowed);
2023
+ writer.writeStringValue("trialDuration", organizationTerms.trialDuration);
2024
+ writer.writeAdditionalData(organizationTerms.additionalData);
2025
+ }
2026
+ /**
2027
+ * Serializes information the current object
2028
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2029
+ * @param PaymentProcessor The instance to serialize from.
2030
+ * @param writer Serialization writer to use to serialize this model
2031
+ */
2032
+ // @ts-ignore
2033
+ export function serializePaymentProcessor(writer, paymentProcessor = {}, isSerializingDerivedType = false) {
2034
+ if (!paymentProcessor || isSerializingDerivedType) {
2035
+ return;
2036
+ }
2037
+ writer.writeBooleanValue("configured", paymentProcessor.configured);
2038
+ writer.writeDateValue("createdAt", paymentProcessor.createdAt);
2039
+ writer.writeCollectionOfObjectValues("fields", paymentProcessor.fields, serializeProcessorFieldSchema);
2040
+ writer.writeGuidValue("id", paymentProcessor.id);
2041
+ writer.writeObjectValue("metadata", paymentProcessor.metadata, serializePaymentProcessor_metadata);
2042
+ writer.writeGuidValue("organizationId", paymentProcessor.organizationId);
2043
+ writer.writeEnumValue("processor", paymentProcessor.processor);
2044
+ writer.writeCollectionOfPrimitiveValues("tags", paymentProcessor.tags);
2045
+ writer.writeDateValue("updatedAt", paymentProcessor.updatedAt);
2046
+ writer.writeObjectValue("values", paymentProcessor.values, serializePaymentProcessor_values);
2047
+ writer.writeNumberValue("weight", paymentProcessor.weight);
2048
+ writer.writeAdditionalData(paymentProcessor.additionalData);
2049
+ }
2050
+ /**
2051
+ * Serializes information the current object
2052
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2053
+ * @param PaymentProcessor_metadata The instance to serialize from.
2054
+ * @param writer Serialization writer to use to serialize this model
2055
+ */
2056
+ // @ts-ignore
2057
+ export function serializePaymentProcessor_metadata(writer, paymentProcessor_metadata = {}, isSerializingDerivedType = false) {
2058
+ if (!paymentProcessor_metadata || isSerializingDerivedType) {
2059
+ return;
2060
+ }
2061
+ writer.writeAdditionalData(paymentProcessor_metadata.additionalData);
2062
+ }
2063
+ /**
2064
+ * Serializes information the current object
2065
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2066
+ * @param PaymentProcessor_values The instance to serialize from.
2067
+ * @param writer Serialization writer to use to serialize this model
2068
+ */
2069
+ // @ts-ignore
2070
+ export function serializePaymentProcessor_values(writer, paymentProcessor_values = {}, isSerializingDerivedType = false) {
2071
+ if (!paymentProcessor_values || isSerializingDerivedType) {
2072
+ return;
2073
+ }
2074
+ writer.writeAdditionalData(paymentProcessor_values.additionalData);
2075
+ }
2076
+ /**
2077
+ * Serializes information the current object
2078
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2079
+ * @param PreviewOrderRequest The instance to serialize from.
2080
+ * @param writer Serialization writer to use to serialize this model
2081
+ */
2082
+ // @ts-ignore
2083
+ export function serializePreviewOrderRequest(writer, previewOrderRequest = {}, isSerializingDerivedType = false) {
2084
+ if (!previewOrderRequest || isSerializingDerivedType) {
2085
+ return;
2086
+ }
2087
+ writer.writeEnumValue("billingCycle", previewOrderRequest.billingCycle);
2088
+ writer.writeGuidValue("ispId", previewOrderRequest.ispId);
2089
+ writer.writeGuidValue("locationId", previewOrderRequest.locationId);
2090
+ writer.writeEnumValue("paymentMethod", previewOrderRequest.paymentMethod);
2091
+ writer.writeGuidValue("productId", previewOrderRequest.productId);
2092
+ writer.writeNumberValue("quantity", previewOrderRequest.quantity);
2093
+ writer.writeAdditionalData(previewOrderRequest.additionalData);
2094
+ }
2095
+ /**
2096
+ * Serializes information the current object
2097
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2098
+ * @param ProcessorFieldSchema The instance to serialize from.
2099
+ * @param writer Serialization writer to use to serialize this model
2100
+ */
2101
+ // @ts-ignore
2102
+ export function serializeProcessorFieldSchema(writer, processorFieldSchema = {}, isSerializingDerivedType = false) {
2103
+ if (!processorFieldSchema || isSerializingDerivedType) {
2104
+ return;
2105
+ }
2106
+ writer.writeStringValue("hint", processorFieldSchema.hint);
2107
+ writer.writeStringValue("icon", processorFieldSchema.icon);
2108
+ writer.writeStringValue("label", processorFieldSchema.label);
2109
+ writer.writeStringValue("name", processorFieldSchema.name);
2110
+ writer.writeStringValue("placeholder", processorFieldSchema.placeholder);
2111
+ writer.writeBooleanValue("secret", processorFieldSchema.secret);
2112
+ writer.writeAdditionalData(processorFieldSchema.additionalData);
2113
+ }
2114
+ /**
2115
+ * Serializes information the current object
2116
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2117
+ * @param Product The instance to serialize from.
2118
+ * @param writer Serialization writer to use to serialize this model
2119
+ */
2120
+ // @ts-ignore
2121
+ export function serializeProduct(writer, product = {}, isSerializingDerivedType = false) {
2122
+ if (!product || isSerializingDerivedType) {
2123
+ return;
2124
+ }
2125
+ writer.writeNumberValue("basePrice", product.basePrice);
2126
+ writer.writeDateValue("createdAt", product.createdAt);
2127
+ writer.writeStringValue("currency", product.currency);
2128
+ writer.writeStringValue("description", product.description);
2129
+ writer.writeStringValue("icon", product.icon);
2130
+ writer.writeGuidValue("id", product.id);
2131
+ writer.writeBooleanValue("isEnabled", product.isEnabled);
2132
+ writer.writeObjectValue("metadata", product.metadata, serializeProduct_metadata);
2133
+ writer.writeStringValue("name", product.name);
2134
+ writer.writeEnumValue("pricingType", product.pricingType);
2135
+ writer.writeCollectionOfPrimitiveValues("tags", product.tags);
2136
+ writer.writeDateValue("updatedAt", product.updatedAt);
2137
+ writer.writeNumberValue("weight", product.weight);
2138
+ writer.writeAdditionalData(product.additionalData);
2139
+ }
2140
+ /**
2141
+ * Serializes information the current object
2142
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2143
+ * @param Product_metadata The instance to serialize from.
2144
+ * @param writer Serialization writer to use to serialize this model
2145
+ */
2146
+ // @ts-ignore
2147
+ export function serializeProduct_metadata(writer, product_metadata = {}, isSerializingDerivedType = false) {
2148
+ if (!product_metadata || isSerializingDerivedType) {
2149
+ return;
2150
+ }
2151
+ writer.writeAdditionalData(product_metadata.additionalData);
2152
+ }
2153
+ /**
2154
+ * Serializes information the current object
2155
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2156
+ * @param Proxy The instance to serialize from.
2157
+ * @param writer Serialization writer to use to serialize this model
2158
+ */
2159
+ // @ts-ignore
2160
+ export function serializeProxy(writer, proxy = {}, isSerializingDerivedType = false) {
2161
+ if (!proxy || isSerializingDerivedType) {
2162
+ return;
2163
+ }
2164
+ writer.writeStringValue("city", proxy.city);
2165
+ writer.writeStringValue("countryCode", proxy.countryCode);
2166
+ writer.writeStringValue("host", proxy.host);
2167
+ writer.writeStringValue("id", proxy.id);
2168
+ writer.writeStringValue("ip", proxy.ip);
2169
+ writer.writeStringValue("ispLogoUrl", proxy.ispLogoUrl);
2170
+ writer.writeStringValue("ispName", proxy.ispName);
2171
+ writer.writeStringValue("operatingMode", proxy.operatingMode);
2172
+ writer.writeStringValue("password", proxy.password);
2173
+ writer.writeNumberValue("port", proxy.port);
2174
+ writer.writeStringValue("protocol", proxy.protocol);
2175
+ writer.writeStringValue("username", proxy.username);
2176
+ writer.writeAdditionalData(proxy.additionalData);
2177
+ }
2178
+ /**
2179
+ * Serializes information the current object
2180
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2181
+ * @param ProxyCredentialResponse The instance to serialize from.
2182
+ * @param writer Serialization writer to use to serialize this model
2183
+ */
2184
+ // @ts-ignore
2185
+ export function serializeProxyCredentialResponse(writer, proxyCredentialResponse = {}, isSerializingDerivedType = false) {
2186
+ if (!proxyCredentialResponse || isSerializingDerivedType) {
2187
+ return;
2188
+ }
2189
+ writer.writeCollectionOfPrimitiveValues("allowedDomains", proxyCredentialResponse.allowedDomains);
2190
+ writer.writeCollectionOfPrimitiveValues("allowedIps", proxyCredentialResponse.allowedIps);
2191
+ writer.writeDateValue("appliedAt", proxyCredentialResponse.appliedAt);
2192
+ writer.writeStringValue("password", proxyCredentialResponse.password);
2193
+ writer.writeStringValue("username", proxyCredentialResponse.username);
2194
+ writer.writeAdditionalData(proxyCredentialResponse.additionalData);
2195
+ }
2196
+ /**
2197
+ * Serializes information the current object
2198
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2199
+ * @param ProxyIpRotationResponse The instance to serialize from.
2200
+ * @param writer Serialization writer to use to serialize this model
2201
+ */
2202
+ // @ts-ignore
2203
+ export function serializeProxyIpRotationResponse(writer, proxyIpRotationResponse = {}, isSerializingDerivedType = false) {
2204
+ if (!proxyIpRotationResponse || isSerializingDerivedType) {
2205
+ return;
2206
+ }
2207
+ writer.writeNumberValue("delayMinutes", proxyIpRotationResponse.delayMinutes);
2208
+ writer.writeNumberValue("delaySeconds", proxyIpRotationResponse.delaySeconds);
2209
+ writer.writeAdditionalData(proxyIpRotationResponse.additionalData);
2210
+ }
2211
+ /**
2212
+ * Serializes information the current object
2213
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2214
+ * @param ProxyPingResponse The instance to serialize from.
2215
+ * @param writer Serialization writer to use to serialize this model
2216
+ */
2217
+ // @ts-ignore
2218
+ export function serializeProxyPingResponse(writer, proxyPingResponse = {}, isSerializingDerivedType = false) {
2219
+ if (!proxyPingResponse || isSerializingDerivedType) {
2220
+ return;
2221
+ }
2222
+ writer.writeNumberValue("latencyMs", proxyPingResponse.latencyMs);
2223
+ writer.writeBooleanValue("reachable", proxyPingResponse.reachable);
2224
+ writer.writeAdditionalData(proxyPingResponse.additionalData);
2225
+ }
2226
+ /**
2227
+ * Serializes information the current object
2228
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2229
+ * @param ReviewKycRequest The instance to serialize from.
2230
+ * @param writer Serialization writer to use to serialize this model
2231
+ */
2232
+ // @ts-ignore
2233
+ export function serializeReviewKycRequest(writer, reviewKycRequest = {}, isSerializingDerivedType = false) {
2234
+ if (!reviewKycRequest || isSerializingDerivedType) {
2235
+ return;
2236
+ }
2237
+ writer.writeBooleanValue("approved", reviewKycRequest.approved);
2238
+ writer.writeAdditionalData(reviewKycRequest.additionalData);
2239
+ }
2240
+ /**
2241
+ * Serializes information the current object
2242
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2243
+ * @param UpdateCustomerRequest The instance to serialize from.
2244
+ * @param writer Serialization writer to use to serialize this model
2245
+ */
2246
+ // @ts-ignore
2247
+ export function serializeUpdateCustomerRequest(writer, updateCustomerRequest = {}, isSerializingDerivedType = false) {
2248
+ if (!updateCustomerRequest || isSerializingDerivedType) {
2249
+ return;
2250
+ }
2251
+ writer.writeObjectValue("billingDetails", updateCustomerRequest.billingDetails, serializeUpdateCustomerRequest_billingDetails);
2252
+ writer.writeStringValue("displayName", updateCustomerRequest.displayName);
2253
+ writer.writeStringValue("email", updateCustomerRequest.email);
2254
+ writer.writeStringValue("externalId", updateCustomerRequest.externalId);
2255
+ writer.writeAdditionalData(updateCustomerRequest.additionalData);
2256
+ }
2257
+ /**
2258
+ * Serializes information the current object
2259
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2260
+ * @param UpdateCustomerRequest_billingDetails The instance to serialize from.
2261
+ * @param writer Serialization writer to use to serialize this model
2262
+ */
2263
+ // @ts-ignore
2264
+ export function serializeUpdateCustomerRequest_billingDetails(writer, updateCustomerRequest_billingDetails = {}, isSerializingDerivedType = false) {
2265
+ if (!updateCustomerRequest_billingDetails || isSerializingDerivedType) {
2266
+ return;
2267
+ }
2268
+ writer.writeAdditionalData(updateCustomerRequest_billingDetails.additionalData);
2269
+ }
2270
+ /**
2271
+ * Serializes information the current object
2272
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2273
+ * @param UpdateOrganizationBillingRequest The instance to serialize from.
2274
+ * @param writer Serialization writer to use to serialize this model
2275
+ */
2276
+ // @ts-ignore
2277
+ export function serializeUpdateOrganizationBillingRequest(writer, updateOrganizationBillingRequest = {}, isSerializingDerivedType = false) {
2278
+ if (!updateOrganizationBillingRequest || isSerializingDerivedType) {
2279
+ return;
2280
+ }
2281
+ writer.writeStringValue("addressLine", updateOrganizationBillingRequest.addressLine);
2282
+ writer.writeStringValue("city", updateOrganizationBillingRequest.city);
2283
+ writer.writeStringValue("country", updateOrganizationBillingRequest.country);
2284
+ writer.writeStringValue("email", updateOrganizationBillingRequest.email);
2285
+ writer.writeStringValue("postalCode", updateOrganizationBillingRequest.postalCode);
2286
+ writer.writeStringValue("taxId", updateOrganizationBillingRequest.taxId);
2287
+ writer.writeAdditionalData(updateOrganizationBillingRequest.additionalData);
2288
+ }
2289
+ /**
2290
+ * Serializes information the current object
2291
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2292
+ * @param UpdateOrganizationBrandingRequest The instance to serialize from.
2293
+ * @param writer Serialization writer to use to serialize this model
2294
+ */
2295
+ // @ts-ignore
2296
+ export function serializeUpdateOrganizationBrandingRequest(writer, updateOrganizationBrandingRequest = {}, isSerializingDerivedType = false) {
2297
+ if (!updateOrganizationBrandingRequest || isSerializingDerivedType) {
2298
+ return;
2299
+ }
2300
+ writer.writeStringValue("accentColor", updateOrganizationBrandingRequest.accentColor);
2301
+ writer.writeStringValue("iconUrl", updateOrganizationBrandingRequest.iconUrl);
2302
+ writer.writeStringValue("logoDarkUrl", updateOrganizationBrandingRequest.logoDarkUrl);
2303
+ writer.writeStringValue("logoLightUrl", updateOrganizationBrandingRequest.logoLightUrl);
2304
+ writer.writeAdditionalData(updateOrganizationBrandingRequest.additionalData);
2305
+ }
2306
+ /**
2307
+ * Serializes information the current object
2308
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2309
+ * @param UpdateOrganizationInfrastructureRequest The instance to serialize from.
2310
+ * @param writer Serialization writer to use to serialize this model
2311
+ */
2312
+ // @ts-ignore
2313
+ export function serializeUpdateOrganizationInfrastructureRequest(writer, updateOrganizationInfrastructureRequest = {}, isSerializingDerivedType = false) {
2314
+ if (!updateOrganizationInfrastructureRequest || isSerializingDerivedType) {
2315
+ return;
2316
+ }
2317
+ writer.writeStringValue("proxyDomain", updateOrganizationInfrastructureRequest.proxyDomain);
2318
+ writer.writeAdditionalData(updateOrganizationInfrastructureRequest.additionalData);
2319
+ }
2320
+ /**
2321
+ * Serializes information the current object
2322
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2323
+ * @param UpdateOrganizationRequest The instance to serialize from.
2324
+ * @param writer Serialization writer to use to serialize this model
2325
+ */
2326
+ // @ts-ignore
2327
+ export function serializeUpdateOrganizationRequest(writer, updateOrganizationRequest = {}, isSerializingDerivedType = false) {
2328
+ if (!updateOrganizationRequest || isSerializingDerivedType) {
2329
+ return;
2330
+ }
2331
+ writer.writeStringValue("companyName", updateOrganizationRequest.companyName);
2332
+ writer.writeStringValue("name", updateOrganizationRequest.name);
2333
+ writer.writeAdditionalData(updateOrganizationRequest.additionalData);
2334
+ }
2335
+ /**
2336
+ * Serializes information the current object
2337
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2338
+ * @param UpdatePaymentProcessorRequest The instance to serialize from.
2339
+ * @param writer Serialization writer to use to serialize this model
2340
+ */
2341
+ // @ts-ignore
2342
+ export function serializeUpdatePaymentProcessorRequest(writer, updatePaymentProcessorRequest = {}, isSerializingDerivedType = false) {
2343
+ if (!updatePaymentProcessorRequest || isSerializingDerivedType) {
2344
+ return;
2345
+ }
2346
+ writer.writeObjectValue("values", updatePaymentProcessorRequest.values, serializeUpdatePaymentProcessorRequest_values);
2347
+ writer.writeAdditionalData(updatePaymentProcessorRequest.additionalData);
2348
+ }
2349
+ /**
2350
+ * Serializes information the current object
2351
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2352
+ * @param UpdatePaymentProcessorRequest_values The instance to serialize from.
2353
+ * @param writer Serialization writer to use to serialize this model
2354
+ */
2355
+ // @ts-ignore
2356
+ export function serializeUpdatePaymentProcessorRequest_values(writer, updatePaymentProcessorRequest_values = {}, isSerializingDerivedType = false) {
2357
+ if (!updatePaymentProcessorRequest_values || isSerializingDerivedType) {
2358
+ return;
2359
+ }
2360
+ writer.writeAdditionalData(updatePaymentProcessorRequest_values.additionalData);
2361
+ }
2362
+ /**
2363
+ * Serializes information the current object
2364
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2365
+ * @param UpdateProxyIpRotationRequest The instance to serialize from.
2366
+ * @param writer Serialization writer to use to serialize this model
2367
+ */
2368
+ // @ts-ignore
2369
+ export function serializeUpdateProxyIpRotationRequest(writer, updateProxyIpRotationRequest = {}, isSerializingDerivedType = false) {
2370
+ if (!updateProxyIpRotationRequest || isSerializingDerivedType) {
2371
+ return;
2372
+ }
2373
+ writer.writeNumberValue("delaySeconds", updateProxyIpRotationRequest.delaySeconds);
2374
+ writer.writeAdditionalData(updateProxyIpRotationRequest.additionalData);
2375
+ }
2376
+ export const BillingCyclesObject = {
2377
+ Daily: "Daily",
2378
+ Weekly: "Weekly",
2379
+ Monthly: "Monthly",
2380
+ Quarterly: "Quarterly",
2381
+ Yearly: "Yearly",
2382
+ };
2383
+ export const IncidentStatusesObject = {
2384
+ Open: "Open",
2385
+ Investigating: "Investigating",
2386
+ Resolved: "Resolved",
2387
+ Dismissed: "Dismissed",
2388
+ };
2389
+ export const NullableOfBillingCyclesObject = {
2390
+ Daily: "Daily",
2391
+ Weekly: "Weekly",
2392
+ Monthly: "Monthly",
2393
+ Quarterly: "Quarterly",
2394
+ Yearly: "Yearly",
2395
+ };
2396
+ export const NullableOfPaymentMethodsObject = {
2397
+ Balance: "Balance",
2398
+ CreditCard: "CreditCard",
2399
+ Cryptocurrency: "Cryptocurrency",
2400
+ };
2401
+ export const OrderStatusesObject = {
2402
+ Pending: "Pending",
2403
+ Provisioning: "Provisioning",
2404
+ Active: "Active",
2405
+ Expired: "Expired",
2406
+ };
2407
+ export const OrganizationTypesObject = {
2408
+ Reseller: "Reseller",
2409
+ ResellerStore: "ResellerStore",
2410
+ };
2411
+ export const PaymentMethodsObject = {
2412
+ Balance: "Balance",
2413
+ CreditCard: "CreditCard",
2414
+ Cryptocurrency: "Cryptocurrency",
2415
+ };
2416
+ export const PaymentProcessorsObject = {
2417
+ Stripe: "Stripe",
2418
+ Heleket: "Heleket",
2419
+ };
2420
+ export const PricingTypesObject = {
2421
+ PerUnit: "PerUnit",
2422
+ PerBandwidth: "PerBandwidth",
2423
+ };
2424
+ /* tslint:enable */
2425
+ /* eslint-enable */