@hypelabs-llc/ts-sdk 0.1.2 → 0.1.4

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.
@@ -1,12 +1,3 @@
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
1
  /**
11
2
  * Creates a new instance of the appropriate class based on discriminator value
12
3
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -133,15 +124,6 @@ export function createCustomer_billingDetailsFromDiscriminatorValue(parseNode) {
133
124
  export function createCustomer_externalLoginsFromDiscriminatorValue(parseNode) {
134
125
  return deserializeIntoCustomer_externalLogins;
135
126
  }
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_metadata}
140
- */
141
- // @ts-ignore
142
- export function createCustomer_metadataFromDiscriminatorValue(parseNode) {
143
- return deserializeIntoCustomer_metadata;
144
- }
145
127
  /**
146
128
  * Creates a new instance of the appropriate class based on discriminator value
147
129
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -172,20 +154,20 @@ export function createDepositResponseFromDiscriminatorValue(parseNode) {
172
154
  /**
173
155
  * Creates a new instance of the appropriate class based on discriminator value
174
156
  * @param parseNode The parse node to use to read the discriminator value and create the object
175
- * @returns {ExtendOrderRequest}
157
+ * @returns {DnsCheckResponse}
176
158
  */
177
159
  // @ts-ignore
178
- export function createExtendOrderRequestFromDiscriminatorValue(parseNode) {
179
- return deserializeIntoExtendOrderRequest;
160
+ export function createDnsCheckResponseFromDiscriminatorValue(parseNode) {
161
+ return deserializeIntoDnsCheckResponse;
180
162
  }
181
163
  /**
182
164
  * Creates a new instance of the appropriate class based on discriminator value
183
165
  * @param parseNode The parse node to use to read the discriminator value and create the object
184
- * @returns {Incident_metadata}
166
+ * @returns {ExtendOrderRequest}
185
167
  */
186
168
  // @ts-ignore
187
- export function createIncident_metadataFromDiscriminatorValue(parseNode) {
188
- return deserializeIntoIncident_metadata;
169
+ export function createExtendOrderRequestFromDiscriminatorValue(parseNode) {
170
+ return deserializeIntoExtendOrderRequest;
189
171
  }
190
172
  /**
191
173
  * Creates a new instance of the appropriate class based on discriminator value
@@ -232,15 +214,6 @@ export function createMemberFromDiscriminatorValue(parseNode) {
232
214
  export function createMembersResponseFromDiscriminatorValue(parseNode) {
233
215
  return deserializeIntoMembersResponse;
234
216
  }
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_metadata}
239
- */
240
- // @ts-ignore
241
- export function createOrder_metadataFromDiscriminatorValue(parseNode) {
242
- return deserializeIntoOrder_metadata;
243
- }
244
217
  /**
245
218
  * Creates a new instance of the appropriate class based on discriminator value
246
219
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -268,15 +241,6 @@ export function createOrderPreviewResponseFromDiscriminatorValue(parseNode) {
268
241
  export function createOrderRequirementsFromDiscriminatorValue(parseNode) {
269
242
  return deserializeIntoOrderRequirements;
270
243
  }
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 {Organization_metadata}
275
- */
276
- // @ts-ignore
277
- export function createOrganization_metadataFromDiscriminatorValue(parseNode) {
278
- return deserializeIntoOrganization_metadata;
279
- }
280
244
  /**
281
245
  * Creates a new instance of the appropriate class based on discriminator value
282
246
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -304,6 +268,24 @@ export function createOrganizationBillingFromDiscriminatorValue(parseNode) {
304
268
  export function createOrganizationBrandingFromDiscriminatorValue(parseNode) {
305
269
  return deserializeIntoOrganizationBranding;
306
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 {OrganizationEmail2}
275
+ */
276
+ // @ts-ignore
277
+ export function createOrganizationEmail2FromDiscriminatorValue(parseNode) {
278
+ return deserializeIntoOrganizationEmail2;
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 {OrganizationEmail}
284
+ */
285
+ // @ts-ignore
286
+ export function createOrganizationEmailFromDiscriminatorValue(parseNode) {
287
+ return deserializeIntoOrganizationEmail;
288
+ }
307
289
  /**
308
290
  * Creates a new instance of the appropriate class based on discriminator value
309
291
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -340,15 +322,6 @@ export function createOrganizationInfrastructureFromDiscriminatorValue(parseNode
340
322
  export function createOrganizationTermsFromDiscriminatorValue(parseNode) {
341
323
  return deserializeIntoOrganizationTerms;
342
324
  }
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_metadata}
347
- */
348
- // @ts-ignore
349
- export function createPaymentProcessor_metadataFromDiscriminatorValue(parseNode) {
350
- return deserializeIntoPaymentProcessor_metadata;
351
- }
352
325
  /**
353
326
  * Creates a new instance of the appropriate class based on discriminator value
354
327
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -385,15 +358,6 @@ export function createPreviewOrderRequestFromDiscriminatorValue(parseNode) {
385
358
  export function createProcessorFieldSchemaFromDiscriminatorValue(parseNode) {
386
359
  return deserializeIntoProcessorFieldSchema;
387
360
  }
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_metadata}
392
- */
393
- // @ts-ignore
394
- export function createProduct_metadataFromDiscriminatorValue(parseNode) {
395
- return deserializeIntoProduct_metadata;
396
- }
397
361
  /**
398
362
  * Creates a new instance of the appropriate class based on discriminator value
399
363
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -448,6 +412,15 @@ export function createProxyPingResponseFromDiscriminatorValue(parseNode) {
448
412
  export function createReviewKycRequestFromDiscriminatorValue(parseNode) {
449
413
  return deserializeIntoReviewKycRequest;
450
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 {SystemAlert}
419
+ */
420
+ // @ts-ignore
421
+ export function createSystemAlertFromDiscriminatorValue(parseNode) {
422
+ return deserializeIntoSystemAlert;
423
+ }
451
424
  /**
452
425
  * Creates a new instance of the appropriate class based on discriminator value
453
426
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -484,6 +457,15 @@ export function createUpdateOrganizationBillingRequestFromDiscriminatorValue(par
484
457
  export function createUpdateOrganizationBrandingRequestFromDiscriminatorValue(parseNode) {
485
458
  return deserializeIntoUpdateOrganizationBrandingRequest;
486
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 {UpdateOrganizationEmailRequest}
464
+ */
465
+ // @ts-ignore
466
+ export function createUpdateOrganizationEmailRequestFromDiscriminatorValue(parseNode) {
467
+ return deserializeIntoUpdateOrganizationEmailRequest;
468
+ }
487
469
  /**
488
470
  * Creates a new instance of the appropriate class based on discriminator value
489
471
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -493,6 +475,15 @@ export function createUpdateOrganizationBrandingRequestFromDiscriminatorValue(pa
493
475
  export function createUpdateOrganizationInfrastructureRequestFromDiscriminatorValue(parseNode) {
494
476
  return deserializeIntoUpdateOrganizationInfrastructureRequest;
495
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 {UpdateOrganizationPricingRequest}
482
+ */
483
+ // @ts-ignore
484
+ export function createUpdateOrganizationPricingRequestFromDiscriminatorValue(parseNode) {
485
+ return deserializeIntoUpdateOrganizationPricingRequest;
486
+ }
496
487
  /**
497
488
  * Creates a new instance of the appropriate class based on discriminator value
498
489
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -538,28 +529,14 @@ export function createUpdateProxyIpRotationRequestFromDiscriminatorValue(parseNo
538
529
  export function deserializeIntoActivity(activity = {}) {
539
530
  return {
540
531
  "apiKeyId": n => { activity.apiKeyId = n.getGuidValue(); },
541
- "createdAt": n => { activity.createdAt = n.getDateValue(); },
542
532
  "endpoint": n => { activity.endpoint = n.getStringValue(); },
543
533
  "id": n => { activity.id = n.getGuidValue(); },
544
- "metadata": n => { activity.metadata = n.getObjectValue(createActivity_metadataFromDiscriminatorValue); },
545
534
  "method": n => { activity.method = n.getStringValue(); },
546
535
  "organizationId": n => { activity.organizationId = n.getGuidValue(); },
547
536
  "requestBody": n => { activity.requestBody = n.getStringValue(); },
548
537
  "statusCode": n => { activity.statusCode = n.getNumberValue(); },
549
- "tags": n => { activity.tags = n.getCollectionOfPrimitiveValues("string"); },
550
- "updatedAt": n => { activity.updatedAt = n.getDateValue(); },
551
- "weight": n => { activity.weight = n.getNumberValue(); },
552
538
  };
553
539
  }
554
- /**
555
- * The deserialization information for the current model
556
- * @param Activity_metadata The instance to deserialize into.
557
- * @returns {Record<string, (node: ParseNode) => void>}
558
- */
559
- // @ts-ignore
560
- export function deserializeIntoActivity_metadata(activity_metadata = {}) {
561
- return {};
562
- }
563
540
  /**
564
541
  * The deserialization information for the current model
565
542
  * @param AuthenticateCustomerRequest The instance to deserialize into.
@@ -720,7 +697,6 @@ export function deserializeIntoCustomer(customer = {}) {
720
697
  "avatarUrl": n => { customer.avatarUrl = n.getStringValue(); },
721
698
  "bannedAt": n => { customer.bannedAt = n.getDateValue(); },
722
699
  "billingDetails": n => { customer.billingDetails = n.getObjectValue(createCustomer_billingDetailsFromDiscriminatorValue); },
723
- "createdAt": n => { customer.createdAt = n.getDateValue(); },
724
700
  "displayName": n => { customer.displayName = n.getStringValue(); },
725
701
  "email": n => { customer.email = n.getStringValue(); },
726
702
  "emailVerified": n => { customer.emailVerified = n.getBooleanValue(); },
@@ -731,14 +707,10 @@ export function deserializeIntoCustomer(customer = {}) {
731
707
  "kyc": n => { customer.kyc = n.getObjectValue(createCustomerKycFromDiscriminatorValue); },
732
708
  "lastLoginAt": n => { customer.lastLoginAt = n.getDateValue(); },
733
709
  "locale": n => { customer.locale = n.getStringValue(); },
734
- "metadata": n => { customer.metadata = n.getObjectValue(createCustomer_metadataFromDiscriminatorValue); },
735
710
  "organizationId": n => { customer.organizationId = n.getGuidValue(); },
736
711
  "paymentCustomerId": n => { customer.paymentCustomerId = n.getStringValue(); },
737
712
  "phoneNumber": n => { customer.phoneNumber = n.getStringValue(); },
738
713
  "pushNotificationsToken": n => { customer.pushNotificationsToken = n.getStringValue(); },
739
- "tags": n => { customer.tags = n.getCollectionOfPrimitiveValues("string"); },
740
- "updatedAt": n => { customer.updatedAt = n.getDateValue(); },
741
- "weight": n => { customer.weight = n.getNumberValue(); },
742
714
  };
743
715
  }
744
716
  /**
@@ -759,15 +731,6 @@ export function deserializeIntoCustomer_billingDetails(customer_billingDetails =
759
731
  export function deserializeIntoCustomer_externalLogins(customer_externalLogins = {}) {
760
732
  return {};
761
733
  }
762
- /**
763
- * The deserialization information for the current model
764
- * @param Customer_metadata The instance to deserialize into.
765
- * @returns {Record<string, (node: ParseNode) => void>}
766
- */
767
- // @ts-ignore
768
- export function deserializeIntoCustomer_metadata(customer_metadata = {}) {
769
- return {};
770
- }
771
734
  /**
772
735
  * The deserialization information for the current model
773
736
  * @param CustomerKyc The instance to deserialize into.
@@ -796,6 +759,17 @@ export function deserializeIntoDepositResponse(depositResponse = {}) {
796
759
  "paymentId": n => { depositResponse.paymentId = n.getStringValue(); },
797
760
  };
798
761
  }
762
+ /**
763
+ * The deserialization information for the current model
764
+ * @param DnsCheckResponse The instance to deserialize into.
765
+ * @returns {Record<string, (node: ParseNode) => void>}
766
+ */
767
+ // @ts-ignore
768
+ export function deserializeIntoDnsCheckResponse(dnsCheckResponse = {}) {
769
+ return {
770
+ "delegated": n => { dnsCheckResponse.delegated = n.getBooleanValue(); },
771
+ };
772
+ }
799
773
  /**
800
774
  * The deserialization information for the current model
801
775
  * @param ExtendOrderRequest The instance to deserialize into.
@@ -816,32 +790,18 @@ export function deserializeIntoExtendOrderRequest(extendOrderRequest = {}) {
816
790
  // @ts-ignore
817
791
  export function deserializeIntoIncident(incident = {}) {
818
792
  return {
819
- "createdAt": n => { incident.createdAt = n.getDateValue(); },
820
793
  "description": n => { incident.description = n.getStringValue(); },
821
794
  "id": n => { incident.id = n.getGuidValue(); },
822
795
  "managerIncidentId": n => { incident.managerIncidentId = n.getGuidValue(); },
823
- "metadata": n => { incident.metadata = n.getObjectValue(createIncident_metadataFromDiscriminatorValue); },
824
796
  "organizationId": n => { incident.organizationId = n.getGuidValue(); },
825
797
  "reporterEmail": n => { incident.reporterEmail = n.getStringValue(); },
826
798
  "resolutionNote": n => { incident.resolutionNote = n.getStringValue(); },
827
799
  "resolvedAt": n => { incident.resolvedAt = n.getDateValue(); },
828
800
  "status": n => { incident.status = n.getEnumValue(IncidentStatusesObject); },
829
801
  "subject": n => { incident.subject = n.getStringValue(); },
830
- "tags": n => { incident.tags = n.getCollectionOfPrimitiveValues("string"); },
831
802
  "target": n => { incident.target = n.getStringValue(); },
832
- "updatedAt": n => { incident.updatedAt = n.getDateValue(); },
833
- "weight": n => { incident.weight = n.getNumberValue(); },
834
803
  };
835
804
  }
836
- /**
837
- * The deserialization information for the current model
838
- * @param Incident_metadata The instance to deserialize into.
839
- * @returns {Record<string, (node: ParseNode) => void>}
840
- */
841
- // @ts-ignore
842
- export function deserializeIntoIncident_metadata(incident_metadata = {}) {
843
- return {};
844
- }
845
805
  /**
846
806
  * The deserialization information for the current model
847
807
  * @param Isp The instance to deserialize into.
@@ -850,11 +810,13 @@ export function deserializeIntoIncident_metadata(incident_metadata = {}) {
850
810
  // @ts-ignore
851
811
  export function deserializeIntoIsp(isp = {}) {
852
812
  return {
813
+ "availableProxies": n => { isp.availableProxies = n.getNumberValue(); },
853
814
  "id": n => { isp.id = n.getStringValue(); },
815
+ "isDisabled": n => { isp.isDisabled = n.getBooleanValue(); },
854
816
  "logoUrl": n => { isp.logoUrl = n.getStringValue(); },
855
817
  "name": n => { isp.name = n.getStringValue(); },
856
818
  "price": n => { isp.price = n.getNumberValue(); },
857
- "proxies": n => { isp.proxies = n.getNumberValue(); },
819
+ "totalProxies": n => { isp.totalProxies = n.getNumberValue(); },
858
820
  };
859
821
  }
860
822
  /**
@@ -865,12 +827,14 @@ export function deserializeIntoIsp(isp = {}) {
865
827
  // @ts-ignore
866
828
  export function deserializeIntoLocation(location = {}) {
867
829
  return {
830
+ "availableIsps": n => { location.availableIsps = n.getNumberValue(); },
831
+ "availableProxies": n => { location.availableProxies = n.getNumberValue(); },
868
832
  "city": n => { location.city = n.getStringValue(); },
869
833
  "countryCode": n => { location.countryCode = n.getStringValue(); },
870
834
  "id": n => { location.id = n.getStringValue(); },
871
- "ispCount": n => { location.ispCount = n.getNumberValue(); },
835
+ "isDisabled": n => { location.isDisabled = n.getBooleanValue(); },
872
836
  "price": n => { location.price = n.getNumberValue(); },
873
- "proxies": n => { location.proxies = n.getNumberValue(); },
837
+ "totalProxies": n => { location.totalProxies = n.getNumberValue(); },
874
838
  };
875
839
  }
876
840
  /**
@@ -882,7 +846,6 @@ export function deserializeIntoLocation(location = {}) {
882
846
  export function deserializeIntoMember(member = {}) {
883
847
  return {
884
848
  "avatarUrl": n => { member.avatarUrl = n.getStringValue(); },
885
- "createdAt": n => { member.createdAt = n.getDateValue(); },
886
849
  "displayName": n => { member.displayName = n.getStringValue(); },
887
850
  "email": n => { member.email = n.getStringValue(); },
888
851
  "id": n => { member.id = n.getStringValue(); },
@@ -912,7 +875,6 @@ export function deserializeIntoOrder(order = {}) {
912
875
  "billingCycle": n => { order.billingCycle = n.getEnumValue(BillingCyclesObject); },
913
876
  "completePaymentUrl": n => { order.completePaymentUrl = n.getStringValue(); },
914
877
  "consumerRef": n => { order.consumerRef = n.getStringValue(); },
915
- "createdAt": n => { order.createdAt = n.getDateValue(); },
916
878
  "currency": n => { order.currency = n.getStringValue(); },
917
879
  "customerId": n => { order.customerId = n.getGuidValue(); },
918
880
  "expiresAt": n => { order.expiresAt = n.getDateValue(); },
@@ -921,27 +883,14 @@ export function deserializeIntoOrder(order = {}) {
921
883
  "ispId": n => { order.ispId = n.getGuidValue(); },
922
884
  "isTrial": n => { order.isTrial = n.getBooleanValue(); },
923
885
  "locationId": n => { order.locationId = n.getGuidValue(); },
924
- "metadata": n => { order.metadata = n.getObjectValue(createOrder_metadataFromDiscriminatorValue); },
925
886
  "paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
926
887
  "productId": n => { order.productId = n.getGuidValue(); },
927
888
  "quantity": n => { order.quantity = n.getNumberValue(); },
928
889
  "status": n => { order.status = n.getEnumValue(OrderStatusesObject); },
929
- "tags": n => { order.tags = n.getCollectionOfPrimitiveValues("string"); },
930
890
  "total": n => { order.total = n.getNumberValue(); },
931
891
  "unitPrice": n => { order.unitPrice = n.getNumberValue(); },
932
- "updatedAt": n => { order.updatedAt = n.getDateValue(); },
933
- "weight": n => { order.weight = n.getNumberValue(); },
934
892
  };
935
893
  }
936
- /**
937
- * The deserialization information for the current model
938
- * @param Order_metadata The instance to deserialize into.
939
- * @returns {Record<string, (node: ParseNode) => void>}
940
- */
941
- // @ts-ignore
942
- export function deserializeIntoOrder_metadata(order_metadata = {}) {
943
- return {};
944
- }
945
894
  /**
946
895
  * The deserialization information for the current model
947
896
  * @param OrderPreviewResponse The instance to deserialize into.
@@ -982,33 +931,20 @@ export function deserializeIntoOrganization(organization = {}) {
982
931
  "billing": n => { organization.billing = n.getObjectValue(createOrganizationBilling2FromDiscriminatorValue); },
983
932
  "branding": n => { organization.branding = n.getObjectValue(createOrganizationBrandingFromDiscriminatorValue); },
984
933
  "companyName": n => { organization.companyName = n.getStringValue(); },
985
- "createdAt": n => { organization.createdAt = n.getDateValue(); },
934
+ "email": n => { organization.email = n.getObjectValue(createOrganizationEmailFromDiscriminatorValue); },
986
935
  "id": n => { organization.id = n.getGuidValue(); },
987
936
  "infrastructure": n => { organization.infrastructure = n.getObjectValue(createOrganizationInfrastructureFromDiscriminatorValue); },
988
937
  "isActive": n => { organization.isActive = n.getBooleanValue(); },
989
938
  "isCurrentUserOwner": n => { organization.isCurrentUserOwner = n.getBooleanValue(); },
990
939
  "memberCount": n => { organization.memberCount = n.getNumberValue(); },
991
- "metadata": n => { organization.metadata = n.getObjectValue(createOrganization_metadataFromDiscriminatorValue); },
992
940
  "name": n => { organization.name = n.getStringValue(); },
993
941
  "orderCount": n => { organization.orderCount = n.getNumberValue(); },
994
942
  "requirements": n => { organization.requirements = n.getObjectValue(createOrderRequirementsFromDiscriminatorValue); },
995
- "tags": n => { organization.tags = n.getCollectionOfPrimitiveValues("string"); },
996
943
  "tenantId": n => { organization.tenantId = n.getGuidValue(); },
997
944
  "terms": n => { organization.terms = n.getObjectValue(createOrganizationTermsFromDiscriminatorValue); },
998
945
  "type": n => { organization.type = n.getEnumValue(OrganizationTypesObject); },
999
- "updatedAt": n => { organization.updatedAt = n.getDateValue(); },
1000
- "weight": n => { organization.weight = n.getNumberValue(); },
1001
946
  };
1002
947
  }
1003
- /**
1004
- * The deserialization information for the current model
1005
- * @param Organization_metadata The instance to deserialize into.
1006
- * @returns {Record<string, (node: ParseNode) => void>}
1007
- */
1008
- // @ts-ignore
1009
- export function deserializeIntoOrganization_metadata(organization_metadata = {}) {
1010
- return {};
1011
- }
1012
948
  /**
1013
949
  * The deserialization information for the current model
1014
950
  * @param OrganizationBilling The instance to deserialize into.
@@ -1056,6 +992,36 @@ export function deserializeIntoOrganizationBranding(organizationBranding = {}) {
1056
992
  "logoLightUrl": n => { organizationBranding.logoLightUrl = n.getStringValue(); },
1057
993
  };
1058
994
  }
995
+ /**
996
+ * The deserialization information for the current model
997
+ * @param OrganizationEmail The instance to deserialize into.
998
+ * @returns {Record<string, (node: ParseNode) => void>}
999
+ */
1000
+ // @ts-ignore
1001
+ export function deserializeIntoOrganizationEmail(organizationEmail = {}) {
1002
+ return {
1003
+ "fromAddress": n => { organizationEmail.fromAddress = n.getStringValue(); },
1004
+ "isConfigured": n => { organizationEmail.isConfigured = n.getBooleanValue(); },
1005
+ "region": n => { organizationEmail.region = n.getEnumValue(MailgunRegionsObject); },
1006
+ "replyTo": n => { organizationEmail.replyTo = n.getStringValue(); },
1007
+ "sendingDomain": n => { organizationEmail.sendingDomain = n.getStringValue(); },
1008
+ };
1009
+ }
1010
+ /**
1011
+ * The deserialization information for the current model
1012
+ * @param OrganizationEmail2 The instance to deserialize into.
1013
+ * @returns {Record<string, (node: ParseNode) => void>}
1014
+ */
1015
+ // @ts-ignore
1016
+ export function deserializeIntoOrganizationEmail2(organizationEmail2 = {}) {
1017
+ return {
1018
+ "fromAddress": n => { organizationEmail2.fromAddress = n.getStringValue(); },
1019
+ "isConfigured": n => { organizationEmail2.isConfigured = n.getBooleanValue(); },
1020
+ "region": n => { organizationEmail2.region = n.getEnumValue(MailgunRegionsObject); },
1021
+ "replyTo": n => { organizationEmail2.replyTo = n.getStringValue(); },
1022
+ "sendingDomain": n => { organizationEmail2.sendingDomain = n.getStringValue(); },
1023
+ };
1024
+ }
1059
1025
  /**
1060
1026
  * The deserialization information for the current model
1061
1027
  * @param OrganizationInfrastructure The instance to deserialize into.
@@ -1102,27 +1068,13 @@ export function deserializeIntoOrganizationTerms(organizationTerms = {}) {
1102
1068
  export function deserializeIntoPaymentProcessor(paymentProcessor = {}) {
1103
1069
  return {
1104
1070
  "configured": n => { paymentProcessor.configured = n.getBooleanValue(); },
1105
- "createdAt": n => { paymentProcessor.createdAt = n.getDateValue(); },
1106
1071
  "fields": n => { paymentProcessor.fields = n.getCollectionOfObjectValues(createProcessorFieldSchemaFromDiscriminatorValue); },
1107
1072
  "id": n => { paymentProcessor.id = n.getGuidValue(); },
1108
- "metadata": n => { paymentProcessor.metadata = n.getObjectValue(createPaymentProcessor_metadataFromDiscriminatorValue); },
1109
1073
  "organizationId": n => { paymentProcessor.organizationId = n.getGuidValue(); },
1110
1074
  "processor": n => { paymentProcessor.processor = n.getEnumValue(PaymentProcessorsObject); },
1111
- "tags": n => { paymentProcessor.tags = n.getCollectionOfPrimitiveValues("string"); },
1112
- "updatedAt": n => { paymentProcessor.updatedAt = n.getDateValue(); },
1113
1075
  "values": n => { paymentProcessor.values = n.getObjectValue(createPaymentProcessor_valuesFromDiscriminatorValue); },
1114
- "weight": n => { paymentProcessor.weight = n.getNumberValue(); },
1115
1076
  };
1116
1077
  }
1117
- /**
1118
- * The deserialization information for the current model
1119
- * @param PaymentProcessor_metadata The instance to deserialize into.
1120
- * @returns {Record<string, (node: ParseNode) => void>}
1121
- */
1122
- // @ts-ignore
1123
- export function deserializeIntoPaymentProcessor_metadata(paymentProcessor_metadata = {}) {
1124
- return {};
1125
- }
1126
1078
  /**
1127
1079
  * The deserialization information for the current model
1128
1080
  * @param PaymentProcessor_values The instance to deserialize into.
@@ -1173,29 +1125,16 @@ export function deserializeIntoProcessorFieldSchema(processorFieldSchema = {}) {
1173
1125
  export function deserializeIntoProduct(product = {}) {
1174
1126
  return {
1175
1127
  "basePrice": n => { product.basePrice = n.getNumberValue(); },
1176
- "createdAt": n => { product.createdAt = n.getDateValue(); },
1177
1128
  "currency": n => { product.currency = n.getStringValue(); },
1178
1129
  "description": n => { product.description = n.getStringValue(); },
1179
1130
  "icon": n => { product.icon = n.getStringValue(); },
1180
1131
  "id": n => { product.id = n.getGuidValue(); },
1132
+ "isDisabled": n => { product.isDisabled = n.getBooleanValue(); },
1181
1133
  "isEnabled": n => { product.isEnabled = n.getBooleanValue(); },
1182
- "metadata": n => { product.metadata = n.getObjectValue(createProduct_metadataFromDiscriminatorValue); },
1183
1134
  "name": n => { product.name = n.getStringValue(); },
1184
1135
  "pricingType": n => { product.pricingType = n.getEnumValue(PricingTypesObject); },
1185
- "tags": n => { product.tags = n.getCollectionOfPrimitiveValues("string"); },
1186
- "updatedAt": n => { product.updatedAt = n.getDateValue(); },
1187
- "weight": n => { product.weight = n.getNumberValue(); },
1188
1136
  };
1189
1137
  }
1190
- /**
1191
- * The deserialization information for the current model
1192
- * @param Product_metadata The instance to deserialize into.
1193
- * @returns {Record<string, (node: ParseNode) => void>}
1194
- */
1195
- // @ts-ignore
1196
- export function deserializeIntoProduct_metadata(product_metadata = {}) {
1197
- return {};
1198
- }
1199
1138
  /**
1200
1139
  * The deserialization information for the current model
1201
1140
  * @param Proxy The instance to deserialize into.
@@ -1268,6 +1207,19 @@ export function deserializeIntoReviewKycRequest(reviewKycRequest = {}) {
1268
1207
  "approved": n => { reviewKycRequest.approved = n.getBooleanValue(); },
1269
1208
  };
1270
1209
  }
1210
+ /**
1211
+ * The deserialization information for the current model
1212
+ * @param SystemAlert The instance to deserialize into.
1213
+ * @returns {Record<string, (node: ParseNode) => void>}
1214
+ */
1215
+ // @ts-ignore
1216
+ export function deserializeIntoSystemAlert(systemAlert = {}) {
1217
+ return {
1218
+ "identifier": n => { systemAlert.identifier = n.getStringValue(); },
1219
+ "level": n => { systemAlert.level = n.getEnumValue(SeverityLevelsObject); },
1220
+ "message": n => { systemAlert.message = n.getStringValue(); },
1221
+ };
1222
+ }
1271
1223
  /**
1272
1224
  * The deserialization information for the current model
1273
1225
  * @param UpdateCustomerRequest The instance to deserialize into.
@@ -1321,6 +1273,21 @@ export function deserializeIntoUpdateOrganizationBrandingRequest(updateOrganizat
1321
1273
  "logoLightUrl": n => { updateOrganizationBrandingRequest.logoLightUrl = n.getStringValue(); },
1322
1274
  };
1323
1275
  }
1276
+ /**
1277
+ * The deserialization information for the current model
1278
+ * @param UpdateOrganizationEmailRequest The instance to deserialize into.
1279
+ * @returns {Record<string, (node: ParseNode) => void>}
1280
+ */
1281
+ // @ts-ignore
1282
+ export function deserializeIntoUpdateOrganizationEmailRequest(updateOrganizationEmailRequest = {}) {
1283
+ return {
1284
+ "fromAddress": n => { updateOrganizationEmailRequest.fromAddress = n.getStringValue(); },
1285
+ "mailgunApiKey": n => { updateOrganizationEmailRequest.mailgunApiKey = n.getStringValue(); },
1286
+ "region": n => { updateOrganizationEmailRequest.region = n.getEnumValue(MailgunRegionsObject); },
1287
+ "replyTo": n => { updateOrganizationEmailRequest.replyTo = n.getStringValue(); },
1288
+ "sendingDomain": n => { updateOrganizationEmailRequest.sendingDomain = n.getStringValue(); },
1289
+ };
1290
+ }
1324
1291
  /**
1325
1292
  * The deserialization information for the current model
1326
1293
  * @param UpdateOrganizationInfrastructureRequest The instance to deserialize into.
@@ -1332,6 +1299,21 @@ export function deserializeIntoUpdateOrganizationInfrastructureRequest(updateOrg
1332
1299
  "proxyDomain": n => { updateOrganizationInfrastructureRequest.proxyDomain = n.getStringValue(); },
1333
1300
  };
1334
1301
  }
1302
+ /**
1303
+ * The deserialization information for the current model
1304
+ * @param UpdateOrganizationPricingRequest The instance to deserialize into.
1305
+ * @returns {Record<string, (node: ParseNode) => void>}
1306
+ */
1307
+ // @ts-ignore
1308
+ export function deserializeIntoUpdateOrganizationPricingRequest(updateOrganizationPricingRequest = {}) {
1309
+ return {
1310
+ "amount": n => { updateOrganizationPricingRequest.amount = n.getNumberValue(); },
1311
+ "disabled": n => { updateOrganizationPricingRequest.disabled = n.getBooleanValue(); },
1312
+ "ispId": n => { updateOrganizationPricingRequest.ispId = n.getGuidValue(); },
1313
+ "locationId": n => { updateOrganizationPricingRequest.locationId = n.getGuidValue(); },
1314
+ "productId": n => { updateOrganizationPricingRequest.productId = n.getGuidValue(); },
1315
+ };
1316
+ }
1335
1317
  /**
1336
1318
  * The deserialization information for the current model
1337
1319
  * @param UpdateOrganizationRequest The instance to deserialize into.
@@ -1387,32 +1369,14 @@ export function serializeActivity(writer, activity = {}, isSerializingDerivedTyp
1387
1369
  return;
1388
1370
  }
1389
1371
  writer.writeGuidValue("apiKeyId", activity.apiKeyId);
1390
- writer.writeDateValue("createdAt", activity.createdAt);
1391
1372
  writer.writeStringValue("endpoint", activity.endpoint);
1392
1373
  writer.writeGuidValue("id", activity.id);
1393
- writer.writeObjectValue("metadata", activity.metadata, serializeActivity_metadata);
1394
1374
  writer.writeStringValue("method", activity.method);
1395
1375
  writer.writeGuidValue("organizationId", activity.organizationId);
1396
1376
  writer.writeStringValue("requestBody", activity.requestBody);
1397
1377
  writer.writeNumberValue("statusCode", activity.statusCode);
1398
- writer.writeCollectionOfPrimitiveValues("tags", activity.tags);
1399
- writer.writeDateValue("updatedAt", activity.updatedAt);
1400
- writer.writeNumberValue("weight", activity.weight);
1401
1378
  writer.writeAdditionalData(activity.additionalData);
1402
1379
  }
1403
- /**
1404
- * Serializes information the current object
1405
- * @param Activity_metadata The instance to serialize from.
1406
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1407
- * @param writer Serialization writer to use to serialize this model
1408
- */
1409
- // @ts-ignore
1410
- export function serializeActivity_metadata(writer, activity_metadata = {}, isSerializingDerivedType = false) {
1411
- if (!activity_metadata || isSerializingDerivedType) {
1412
- return;
1413
- }
1414
- writer.writeAdditionalData(activity_metadata.additionalData);
1415
- }
1416
1380
  /**
1417
1381
  * Serializes information the current object
1418
1382
  * @param AuthenticateCustomerRequest The instance to serialize from.
@@ -1610,7 +1574,6 @@ export function serializeCustomer(writer, customer = {}, isSerializingDerivedTyp
1610
1574
  writer.writeStringValue("avatarUrl", customer.avatarUrl);
1611
1575
  writer.writeDateValue("bannedAt", customer.bannedAt);
1612
1576
  writer.writeObjectValue("billingDetails", customer.billingDetails, serializeCustomer_billingDetails);
1613
- writer.writeDateValue("createdAt", customer.createdAt);
1614
1577
  writer.writeStringValue("displayName", customer.displayName);
1615
1578
  writer.writeStringValue("email", customer.email);
1616
1579
  writer.writeBooleanValue("emailVerified", customer.emailVerified);
@@ -1621,14 +1584,10 @@ export function serializeCustomer(writer, customer = {}, isSerializingDerivedTyp
1621
1584
  writer.writeObjectValue("kyc", customer.kyc, serializeCustomerKyc);
1622
1585
  writer.writeDateValue("lastLoginAt", customer.lastLoginAt);
1623
1586
  writer.writeStringValue("locale", customer.locale);
1624
- writer.writeObjectValue("metadata", customer.metadata, serializeCustomer_metadata);
1625
1587
  writer.writeGuidValue("organizationId", customer.organizationId);
1626
1588
  writer.writeStringValue("paymentCustomerId", customer.paymentCustomerId);
1627
1589
  writer.writeStringValue("phoneNumber", customer.phoneNumber);
1628
1590
  writer.writeStringValue("pushNotificationsToken", customer.pushNotificationsToken);
1629
- writer.writeCollectionOfPrimitiveValues("tags", customer.tags);
1630
- writer.writeDateValue("updatedAt", customer.updatedAt);
1631
- writer.writeNumberValue("weight", customer.weight);
1632
1591
  writer.writeAdditionalData(customer.additionalData);
1633
1592
  }
1634
1593
  /**
@@ -1657,19 +1616,6 @@ export function serializeCustomer_externalLogins(writer, customer_externalLogins
1657
1616
  }
1658
1617
  writer.writeAdditionalData(customer_externalLogins.additionalData);
1659
1618
  }
1660
- /**
1661
- * Serializes information the current object
1662
- * @param Customer_metadata The instance to serialize from.
1663
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1664
- * @param writer Serialization writer to use to serialize this model
1665
- */
1666
- // @ts-ignore
1667
- export function serializeCustomer_metadata(writer, customer_metadata = {}, isSerializingDerivedType = false) {
1668
- if (!customer_metadata || isSerializingDerivedType) {
1669
- return;
1670
- }
1671
- writer.writeAdditionalData(customer_metadata.additionalData);
1672
- }
1673
1619
  /**
1674
1620
  * Serializes information the current object
1675
1621
  * @param CustomerKyc The instance to serialize from.
@@ -1704,6 +1650,20 @@ export function serializeDepositResponse(writer, depositResponse = {}, isSeriali
1704
1650
  writer.writeStringValue("paymentId", depositResponse.paymentId);
1705
1651
  writer.writeAdditionalData(depositResponse.additionalData);
1706
1652
  }
1653
+ /**
1654
+ * Serializes information the current object
1655
+ * @param DnsCheckResponse 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 serializeDnsCheckResponse(writer, dnsCheckResponse = {}, isSerializingDerivedType = false) {
1661
+ if (!dnsCheckResponse || isSerializingDerivedType) {
1662
+ return;
1663
+ }
1664
+ writer.writeBooleanValue("delegated", dnsCheckResponse.delegated);
1665
+ writer.writeAdditionalData(dnsCheckResponse.additionalData);
1666
+ }
1707
1667
  /**
1708
1668
  * Serializes information the current object
1709
1669
  * @param ExtendOrderRequest The instance to serialize from.
@@ -1730,36 +1690,18 @@ export function serializeIncident(writer, incident = {}, isSerializingDerivedTyp
1730
1690
  if (!incident || isSerializingDerivedType) {
1731
1691
  return;
1732
1692
  }
1733
- writer.writeDateValue("createdAt", incident.createdAt);
1734
1693
  writer.writeStringValue("description", incident.description);
1735
1694
  writer.writeGuidValue("id", incident.id);
1736
1695
  writer.writeGuidValue("managerIncidentId", incident.managerIncidentId);
1737
- writer.writeObjectValue("metadata", incident.metadata, serializeIncident_metadata);
1738
1696
  writer.writeGuidValue("organizationId", incident.organizationId);
1739
1697
  writer.writeStringValue("reporterEmail", incident.reporterEmail);
1740
1698
  writer.writeStringValue("resolutionNote", incident.resolutionNote);
1741
1699
  writer.writeDateValue("resolvedAt", incident.resolvedAt);
1742
1700
  writer.writeEnumValue("status", incident.status);
1743
1701
  writer.writeStringValue("subject", incident.subject);
1744
- writer.writeCollectionOfPrimitiveValues("tags", incident.tags);
1745
1702
  writer.writeStringValue("target", incident.target);
1746
- writer.writeDateValue("updatedAt", incident.updatedAt);
1747
- writer.writeNumberValue("weight", incident.weight);
1748
1703
  writer.writeAdditionalData(incident.additionalData);
1749
1704
  }
1750
- /**
1751
- * Serializes information the current object
1752
- * @param Incident_metadata The instance to serialize from.
1753
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1754
- * @param writer Serialization writer to use to serialize this model
1755
- */
1756
- // @ts-ignore
1757
- export function serializeIncident_metadata(writer, incident_metadata = {}, isSerializingDerivedType = false) {
1758
- if (!incident_metadata || isSerializingDerivedType) {
1759
- return;
1760
- }
1761
- writer.writeAdditionalData(incident_metadata.additionalData);
1762
- }
1763
1705
  /**
1764
1706
  * Serializes information the current object
1765
1707
  * @param Isp The instance to serialize from.
@@ -1771,11 +1713,13 @@ export function serializeIsp(writer, isp = {}, isSerializingDerivedType = false)
1771
1713
  if (!isp || isSerializingDerivedType) {
1772
1714
  return;
1773
1715
  }
1716
+ writer.writeNumberValue("availableProxies", isp.availableProxies);
1774
1717
  writer.writeStringValue("id", isp.id);
1718
+ writer.writeBooleanValue("isDisabled", isp.isDisabled);
1775
1719
  writer.writeStringValue("logoUrl", isp.logoUrl);
1776
1720
  writer.writeStringValue("name", isp.name);
1777
1721
  writer.writeNumberValue("price", isp.price);
1778
- writer.writeNumberValue("proxies", isp.proxies);
1722
+ writer.writeNumberValue("totalProxies", isp.totalProxies);
1779
1723
  writer.writeAdditionalData(isp.additionalData);
1780
1724
  }
1781
1725
  /**
@@ -1789,12 +1733,14 @@ export function serializeLocation(writer, location = {}, isSerializingDerivedTyp
1789
1733
  if (!location || isSerializingDerivedType) {
1790
1734
  return;
1791
1735
  }
1736
+ writer.writeNumberValue("availableIsps", location.availableIsps);
1737
+ writer.writeNumberValue("availableProxies", location.availableProxies);
1792
1738
  writer.writeStringValue("city", location.city);
1793
1739
  writer.writeStringValue("countryCode", location.countryCode);
1794
1740
  writer.writeStringValue("id", location.id);
1795
- writer.writeNumberValue("ispCount", location.ispCount);
1741
+ writer.writeBooleanValue("isDisabled", location.isDisabled);
1796
1742
  writer.writeNumberValue("price", location.price);
1797
- writer.writeNumberValue("proxies", location.proxies);
1743
+ writer.writeNumberValue("totalProxies", location.totalProxies);
1798
1744
  writer.writeAdditionalData(location.additionalData);
1799
1745
  }
1800
1746
  /**
@@ -1809,7 +1755,6 @@ export function serializeMember(writer, member = {}, isSerializingDerivedType =
1809
1755
  return;
1810
1756
  }
1811
1757
  writer.writeStringValue("avatarUrl", member.avatarUrl);
1812
- writer.writeDateValue("createdAt", member.createdAt);
1813
1758
  writer.writeStringValue("displayName", member.displayName);
1814
1759
  writer.writeStringValue("email", member.email);
1815
1760
  writer.writeStringValue("id", member.id);
@@ -1845,7 +1790,6 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
1845
1790
  writer.writeEnumValue("billingCycle", order.billingCycle);
1846
1791
  writer.writeStringValue("completePaymentUrl", order.completePaymentUrl);
1847
1792
  writer.writeStringValue("consumerRef", order.consumerRef);
1848
- writer.writeDateValue("createdAt", order.createdAt);
1849
1793
  writer.writeStringValue("currency", order.currency);
1850
1794
  writer.writeGuidValue("customerId", order.customerId);
1851
1795
  writer.writeDateValue("expiresAt", order.expiresAt);
@@ -1854,31 +1798,14 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
1854
1798
  writer.writeGuidValue("ispId", order.ispId);
1855
1799
  writer.writeBooleanValue("isTrial", order.isTrial);
1856
1800
  writer.writeGuidValue("locationId", order.locationId);
1857
- writer.writeObjectValue("metadata", order.metadata, serializeOrder_metadata);
1858
1801
  writer.writeEnumValue("paymentMethod", order.paymentMethod);
1859
1802
  writer.writeGuidValue("productId", order.productId);
1860
1803
  writer.writeNumberValue("quantity", order.quantity);
1861
1804
  writer.writeEnumValue("status", order.status);
1862
- writer.writeCollectionOfPrimitiveValues("tags", order.tags);
1863
1805
  writer.writeNumberValue("total", order.total);
1864
1806
  writer.writeNumberValue("unitPrice", order.unitPrice);
1865
- writer.writeDateValue("updatedAt", order.updatedAt);
1866
- writer.writeNumberValue("weight", order.weight);
1867
1807
  writer.writeAdditionalData(order.additionalData);
1868
1808
  }
1869
- /**
1870
- * Serializes information the current object
1871
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1872
- * @param Order_metadata The instance to serialize from.
1873
- * @param writer Serialization writer to use to serialize this model
1874
- */
1875
- // @ts-ignore
1876
- export function serializeOrder_metadata(writer, order_metadata = {}, isSerializingDerivedType = false) {
1877
- if (!order_metadata || isSerializingDerivedType) {
1878
- return;
1879
- }
1880
- writer.writeAdditionalData(order_metadata.additionalData);
1881
- }
1882
1809
  /**
1883
1810
  * Serializes information the current object
1884
1811
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1928,37 +1855,20 @@ export function serializeOrganization(writer, organization = {}, isSerializingDe
1928
1855
  writer.writeObjectValue("billing", organization.billing, serializeOrganizationBilling2);
1929
1856
  writer.writeObjectValue("branding", organization.branding, serializeOrganizationBranding);
1930
1857
  writer.writeStringValue("companyName", organization.companyName);
1931
- writer.writeDateValue("createdAt", organization.createdAt);
1858
+ writer.writeObjectValue("email", organization.email, serializeOrganizationEmail);
1932
1859
  writer.writeGuidValue("id", organization.id);
1933
1860
  writer.writeObjectValue("infrastructure", organization.infrastructure, serializeOrganizationInfrastructure);
1934
1861
  writer.writeBooleanValue("isActive", organization.isActive);
1935
1862
  writer.writeBooleanValue("isCurrentUserOwner", organization.isCurrentUserOwner);
1936
1863
  writer.writeNumberValue("memberCount", organization.memberCount);
1937
- writer.writeObjectValue("metadata", organization.metadata, serializeOrganization_metadata);
1938
1864
  writer.writeStringValue("name", organization.name);
1939
1865
  writer.writeNumberValue("orderCount", organization.orderCount);
1940
1866
  writer.writeObjectValue("requirements", organization.requirements, serializeOrderRequirements);
1941
- writer.writeCollectionOfPrimitiveValues("tags", organization.tags);
1942
1867
  writer.writeGuidValue("tenantId", organization.tenantId);
1943
1868
  writer.writeObjectValue("terms", organization.terms, serializeOrganizationTerms);
1944
1869
  writer.writeEnumValue("type", organization.type);
1945
- writer.writeDateValue("updatedAt", organization.updatedAt);
1946
- writer.writeNumberValue("weight", organization.weight);
1947
1870
  writer.writeAdditionalData(organization.additionalData);
1948
1871
  }
1949
- /**
1950
- * Serializes information the current object
1951
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1952
- * @param Organization_metadata The instance to serialize from.
1953
- * @param writer Serialization writer to use to serialize this model
1954
- */
1955
- // @ts-ignore
1956
- export function serializeOrganization_metadata(writer, organization_metadata = {}, isSerializingDerivedType = false) {
1957
- if (!organization_metadata || isSerializingDerivedType) {
1958
- return;
1959
- }
1960
- writer.writeAdditionalData(organization_metadata.additionalData);
1961
- }
1962
1872
  /**
1963
1873
  * Serializes information the current object
1964
1874
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2015,6 +1925,42 @@ export function serializeOrganizationBranding(writer, organizationBranding = {},
2015
1925
  writer.writeStringValue("logoLightUrl", organizationBranding.logoLightUrl);
2016
1926
  writer.writeAdditionalData(organizationBranding.additionalData);
2017
1927
  }
1928
+ /**
1929
+ * Serializes information the current object
1930
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1931
+ * @param OrganizationEmail The instance to serialize from.
1932
+ * @param writer Serialization writer to use to serialize this model
1933
+ */
1934
+ // @ts-ignore
1935
+ export function serializeOrganizationEmail(writer, organizationEmail = {}, isSerializingDerivedType = false) {
1936
+ if (!organizationEmail || isSerializingDerivedType) {
1937
+ return;
1938
+ }
1939
+ writer.writeStringValue("fromAddress", organizationEmail.fromAddress);
1940
+ writer.writeBooleanValue("isConfigured", organizationEmail.isConfigured);
1941
+ writer.writeEnumValue("region", organizationEmail.region);
1942
+ writer.writeStringValue("replyTo", organizationEmail.replyTo);
1943
+ writer.writeStringValue("sendingDomain", organizationEmail.sendingDomain);
1944
+ writer.writeAdditionalData(organizationEmail.additionalData);
1945
+ }
1946
+ /**
1947
+ * Serializes information the current object
1948
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1949
+ * @param OrganizationEmail2 The instance to serialize from.
1950
+ * @param writer Serialization writer to use to serialize this model
1951
+ */
1952
+ // @ts-ignore
1953
+ export function serializeOrganizationEmail2(writer, organizationEmail2 = {}, isSerializingDerivedType = false) {
1954
+ if (!organizationEmail2 || isSerializingDerivedType) {
1955
+ return;
1956
+ }
1957
+ writer.writeStringValue("fromAddress", organizationEmail2.fromAddress);
1958
+ writer.writeBooleanValue("isConfigured", organizationEmail2.isConfigured);
1959
+ writer.writeEnumValue("region", organizationEmail2.region);
1960
+ writer.writeStringValue("replyTo", organizationEmail2.replyTo);
1961
+ writer.writeStringValue("sendingDomain", organizationEmail2.sendingDomain);
1962
+ writer.writeAdditionalData(organizationEmail2.additionalData);
1963
+ }
2018
1964
  /**
2019
1965
  * Serializes information the current object
2020
1966
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2073,31 +2019,13 @@ export function serializePaymentProcessor(writer, paymentProcessor = {}, isSeria
2073
2019
  return;
2074
2020
  }
2075
2021
  writer.writeBooleanValue("configured", paymentProcessor.configured);
2076
- writer.writeDateValue("createdAt", paymentProcessor.createdAt);
2077
2022
  writer.writeCollectionOfObjectValues("fields", paymentProcessor.fields, serializeProcessorFieldSchema);
2078
2023
  writer.writeGuidValue("id", paymentProcessor.id);
2079
- writer.writeObjectValue("metadata", paymentProcessor.metadata, serializePaymentProcessor_metadata);
2080
2024
  writer.writeGuidValue("organizationId", paymentProcessor.organizationId);
2081
2025
  writer.writeEnumValue("processor", paymentProcessor.processor);
2082
- writer.writeCollectionOfPrimitiveValues("tags", paymentProcessor.tags);
2083
- writer.writeDateValue("updatedAt", paymentProcessor.updatedAt);
2084
2026
  writer.writeObjectValue("values", paymentProcessor.values, serializePaymentProcessor_values);
2085
- writer.writeNumberValue("weight", paymentProcessor.weight);
2086
2027
  writer.writeAdditionalData(paymentProcessor.additionalData);
2087
2028
  }
2088
- /**
2089
- * Serializes information the current object
2090
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2091
- * @param PaymentProcessor_metadata The instance to serialize from.
2092
- * @param writer Serialization writer to use to serialize this model
2093
- */
2094
- // @ts-ignore
2095
- export function serializePaymentProcessor_metadata(writer, paymentProcessor_metadata = {}, isSerializingDerivedType = false) {
2096
- if (!paymentProcessor_metadata || isSerializingDerivedType) {
2097
- return;
2098
- }
2099
- writer.writeAdditionalData(paymentProcessor_metadata.additionalData);
2100
- }
2101
2029
  /**
2102
2030
  * Serializes information the current object
2103
2031
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2161,33 +2089,16 @@ export function serializeProduct(writer, product = {}, isSerializingDerivedType
2161
2089
  return;
2162
2090
  }
2163
2091
  writer.writeNumberValue("basePrice", product.basePrice);
2164
- writer.writeDateValue("createdAt", product.createdAt);
2165
2092
  writer.writeStringValue("currency", product.currency);
2166
2093
  writer.writeStringValue("description", product.description);
2167
2094
  writer.writeStringValue("icon", product.icon);
2168
2095
  writer.writeGuidValue("id", product.id);
2096
+ writer.writeBooleanValue("isDisabled", product.isDisabled);
2169
2097
  writer.writeBooleanValue("isEnabled", product.isEnabled);
2170
- writer.writeObjectValue("metadata", product.metadata, serializeProduct_metadata);
2171
2098
  writer.writeStringValue("name", product.name);
2172
2099
  writer.writeEnumValue("pricingType", product.pricingType);
2173
- writer.writeCollectionOfPrimitiveValues("tags", product.tags);
2174
- writer.writeDateValue("updatedAt", product.updatedAt);
2175
- writer.writeNumberValue("weight", product.weight);
2176
2100
  writer.writeAdditionalData(product.additionalData);
2177
2101
  }
2178
- /**
2179
- * Serializes information the current object
2180
- * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2181
- * @param Product_metadata The instance to serialize from.
2182
- * @param writer Serialization writer to use to serialize this model
2183
- */
2184
- // @ts-ignore
2185
- export function serializeProduct_metadata(writer, product_metadata = {}, isSerializingDerivedType = false) {
2186
- if (!product_metadata || isSerializingDerivedType) {
2187
- return;
2188
- }
2189
- writer.writeAdditionalData(product_metadata.additionalData);
2190
- }
2191
2102
  /**
2192
2103
  * Serializes information the current object
2193
2104
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2275,6 +2186,22 @@ export function serializeReviewKycRequest(writer, reviewKycRequest = {}, isSeria
2275
2186
  writer.writeBooleanValue("approved", reviewKycRequest.approved);
2276
2187
  writer.writeAdditionalData(reviewKycRequest.additionalData);
2277
2188
  }
2189
+ /**
2190
+ * Serializes information the current object
2191
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2192
+ * @param SystemAlert The instance to serialize from.
2193
+ * @param writer Serialization writer to use to serialize this model
2194
+ */
2195
+ // @ts-ignore
2196
+ export function serializeSystemAlert(writer, systemAlert = {}, isSerializingDerivedType = false) {
2197
+ if (!systemAlert || isSerializingDerivedType) {
2198
+ return;
2199
+ }
2200
+ writer.writeStringValue("identifier", systemAlert.identifier);
2201
+ writer.writeEnumValue("level", systemAlert.level);
2202
+ writer.writeStringValue("message", systemAlert.message);
2203
+ writer.writeAdditionalData(systemAlert.additionalData);
2204
+ }
2278
2205
  /**
2279
2206
  * Serializes information the current object
2280
2207
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2341,6 +2268,24 @@ export function serializeUpdateOrganizationBrandingRequest(writer, updateOrganiz
2341
2268
  writer.writeStringValue("logoLightUrl", updateOrganizationBrandingRequest.logoLightUrl);
2342
2269
  writer.writeAdditionalData(updateOrganizationBrandingRequest.additionalData);
2343
2270
  }
2271
+ /**
2272
+ * Serializes information the current object
2273
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2274
+ * @param UpdateOrganizationEmailRequest The instance to serialize from.
2275
+ * @param writer Serialization writer to use to serialize this model
2276
+ */
2277
+ // @ts-ignore
2278
+ export function serializeUpdateOrganizationEmailRequest(writer, updateOrganizationEmailRequest = {}, isSerializingDerivedType = false) {
2279
+ if (!updateOrganizationEmailRequest || isSerializingDerivedType) {
2280
+ return;
2281
+ }
2282
+ writer.writeStringValue("fromAddress", updateOrganizationEmailRequest.fromAddress);
2283
+ writer.writeStringValue("mailgunApiKey", updateOrganizationEmailRequest.mailgunApiKey);
2284
+ writer.writeEnumValue("region", updateOrganizationEmailRequest.region);
2285
+ writer.writeStringValue("replyTo", updateOrganizationEmailRequest.replyTo);
2286
+ writer.writeStringValue("sendingDomain", updateOrganizationEmailRequest.sendingDomain);
2287
+ writer.writeAdditionalData(updateOrganizationEmailRequest.additionalData);
2288
+ }
2344
2289
  /**
2345
2290
  * Serializes information the current object
2346
2291
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2355,6 +2300,24 @@ export function serializeUpdateOrganizationInfrastructureRequest(writer, updateO
2355
2300
  writer.writeStringValue("proxyDomain", updateOrganizationInfrastructureRequest.proxyDomain);
2356
2301
  writer.writeAdditionalData(updateOrganizationInfrastructureRequest.additionalData);
2357
2302
  }
2303
+ /**
2304
+ * Serializes information the current object
2305
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
2306
+ * @param UpdateOrganizationPricingRequest The instance to serialize from.
2307
+ * @param writer Serialization writer to use to serialize this model
2308
+ */
2309
+ // @ts-ignore
2310
+ export function serializeUpdateOrganizationPricingRequest(writer, updateOrganizationPricingRequest = {}, isSerializingDerivedType = false) {
2311
+ if (!updateOrganizationPricingRequest || isSerializingDerivedType) {
2312
+ return;
2313
+ }
2314
+ writer.writeNumberValue("amount", updateOrganizationPricingRequest.amount);
2315
+ writer.writeBooleanValue("disabled", updateOrganizationPricingRequest.disabled);
2316
+ writer.writeGuidValue("ispId", updateOrganizationPricingRequest.ispId);
2317
+ writer.writeGuidValue("locationId", updateOrganizationPricingRequest.locationId);
2318
+ writer.writeGuidValue("productId", updateOrganizationPricingRequest.productId);
2319
+ writer.writeAdditionalData(updateOrganizationPricingRequest.additionalData);
2320
+ }
2358
2321
  /**
2359
2322
  * Serializes information the current object
2360
2323
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2424,6 +2387,10 @@ export const IncidentStatusesObject = {
2424
2387
  Resolved: "Resolved",
2425
2388
  Dismissed: "Dismissed",
2426
2389
  };
2390
+ export const MailgunRegionsObject = {
2391
+ US: "US",
2392
+ EU: "EU",
2393
+ };
2427
2394
  export const NullableOfBillingCyclesObject = {
2428
2395
  Daily: "Daily",
2429
2396
  Weekly: "Weekly",
@@ -2452,12 +2419,18 @@ export const PaymentMethodsObject = {
2452
2419
  Cryptocurrency: "Cryptocurrency",
2453
2420
  };
2454
2421
  export const PaymentProcessorsObject = {
2455
- Stripe: "Stripe",
2456
2422
  Heleket: "Heleket",
2423
+ Stripe: "Stripe",
2457
2424
  };
2458
2425
  export const PricingTypesObject = {
2459
2426
  PerUnit: "PerUnit",
2460
2427
  PerBandwidth: "PerBandwidth",
2461
2428
  };
2429
+ export const SeverityLevelsObject = {
2430
+ Trace: "Trace",
2431
+ Information: "Information",
2432
+ Warning: "Warning",
2433
+ ErrorEscaped: "Error",
2434
+ };
2462
2435
  /* tslint:enable */
2463
2436
  /* eslint-enable */