@hypelabs-llc/ts-sdk 0.1.0 → 0.1.3

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,20 +1,20 @@
1
1
  /**
2
2
  * Creates a new instance of the appropriate class based on discriminator value
3
3
  * @param parseNode The parse node to use to read the discriminator value and create the object
4
- * @returns {Activity_metadata}
4
+ * @returns {Activity}
5
5
  */
6
6
  // @ts-ignore
7
- export function createActivity_metadataFromDiscriminatorValue(parseNode) {
8
- return deserializeIntoActivity_metadata;
7
+ export function createActivityFromDiscriminatorValue(parseNode) {
8
+ return deserializeIntoActivity;
9
9
  }
10
10
  /**
11
11
  * Creates a new instance of the appropriate class based on discriminator value
12
12
  * @param parseNode The parse node to use to read the discriminator value and create the object
13
- * @returns {Activity}
13
+ * @returns {AuthenticateCustomerRequest}
14
14
  */
15
15
  // @ts-ignore
16
- export function createActivityFromDiscriminatorValue(parseNode) {
17
- return deserializeIntoActivity;
16
+ export function createAuthenticateCustomerRequestFromDiscriminatorValue(parseNode) {
17
+ return deserializeIntoAuthenticateCustomerRequest;
18
18
  }
19
19
  /**
20
20
  * Creates a new instance of the appropriate class based on discriminator value
@@ -124,15 +124,6 @@ export function createCustomer_billingDetailsFromDiscriminatorValue(parseNode) {
124
124
  export function createCustomer_externalLoginsFromDiscriminatorValue(parseNode) {
125
125
  return deserializeIntoCustomer_externalLogins;
126
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
127
  /**
137
128
  * Creates a new instance of the appropriate class based on discriminator value
138
129
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -163,20 +154,20 @@ export function createDepositResponseFromDiscriminatorValue(parseNode) {
163
154
  /**
164
155
  * Creates a new instance of the appropriate class based on discriminator value
165
156
  * @param parseNode The parse node to use to read the discriminator value and create the object
166
- * @returns {ExtendOrderRequest}
157
+ * @returns {DnsCheckResponse}
167
158
  */
168
159
  // @ts-ignore
169
- export function createExtendOrderRequestFromDiscriminatorValue(parseNode) {
170
- return deserializeIntoExtendOrderRequest;
160
+ export function createDnsCheckResponseFromDiscriminatorValue(parseNode) {
161
+ return deserializeIntoDnsCheckResponse;
171
162
  }
172
163
  /**
173
164
  * Creates a new instance of the appropriate class based on discriminator value
174
165
  * @param parseNode The parse node to use to read the discriminator value and create the object
175
- * @returns {Incident_metadata}
166
+ * @returns {ExtendOrderRequest}
176
167
  */
177
168
  // @ts-ignore
178
- export function createIncident_metadataFromDiscriminatorValue(parseNode) {
179
- return deserializeIntoIncident_metadata;
169
+ export function createExtendOrderRequestFromDiscriminatorValue(parseNode) {
170
+ return deserializeIntoExtendOrderRequest;
180
171
  }
181
172
  /**
182
173
  * Creates a new instance of the appropriate class based on discriminator value
@@ -223,15 +214,6 @@ export function createMemberFromDiscriminatorValue(parseNode) {
223
214
  export function createMembersResponseFromDiscriminatorValue(parseNode) {
224
215
  return deserializeIntoMembersResponse;
225
216
  }
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
217
  /**
236
218
  * Creates a new instance of the appropriate class based on discriminator value
237
219
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -259,15 +241,6 @@ export function createOrderPreviewResponseFromDiscriminatorValue(parseNode) {
259
241
  export function createOrderRequirementsFromDiscriminatorValue(parseNode) {
260
242
  return deserializeIntoOrderRequirements;
261
243
  }
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
244
  /**
272
245
  * Creates a new instance of the appropriate class based on discriminator value
273
246
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -295,6 +268,24 @@ export function createOrganizationBillingFromDiscriminatorValue(parseNode) {
295
268
  export function createOrganizationBrandingFromDiscriminatorValue(parseNode) {
296
269
  return deserializeIntoOrganizationBranding;
297
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
+ }
298
289
  /**
299
290
  * Creates a new instance of the appropriate class based on discriminator value
300
291
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -331,15 +322,6 @@ export function createOrganizationInfrastructureFromDiscriminatorValue(parseNode
331
322
  export function createOrganizationTermsFromDiscriminatorValue(parseNode) {
332
323
  return deserializeIntoOrganizationTerms;
333
324
  }
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
325
  /**
344
326
  * Creates a new instance of the appropriate class based on discriminator value
345
327
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -376,15 +358,6 @@ export function createPreviewOrderRequestFromDiscriminatorValue(parseNode) {
376
358
  export function createProcessorFieldSchemaFromDiscriminatorValue(parseNode) {
377
359
  return deserializeIntoProcessorFieldSchema;
378
360
  }
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
361
  /**
389
362
  * Creates a new instance of the appropriate class based on discriminator value
390
363
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -439,6 +412,15 @@ export function createProxyPingResponseFromDiscriminatorValue(parseNode) {
439
412
  export function createReviewKycRequestFromDiscriminatorValue(parseNode) {
440
413
  return deserializeIntoReviewKycRequest;
441
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
+ }
442
424
  /**
443
425
  * Creates a new instance of the appropriate class based on discriminator value
444
426
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -475,6 +457,15 @@ export function createUpdateOrganizationBillingRequestFromDiscriminatorValue(par
475
457
  export function createUpdateOrganizationBrandingRequestFromDiscriminatorValue(parseNode) {
476
458
  return deserializeIntoUpdateOrganizationBrandingRequest;
477
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
+ }
478
469
  /**
479
470
  * Creates a new instance of the appropriate class based on discriminator value
480
471
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -484,6 +475,15 @@ export function createUpdateOrganizationBrandingRequestFromDiscriminatorValue(pa
484
475
  export function createUpdateOrganizationInfrastructureRequestFromDiscriminatorValue(parseNode) {
485
476
  return deserializeIntoUpdateOrganizationInfrastructureRequest;
486
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
+ }
487
487
  /**
488
488
  * Creates a new instance of the appropriate class based on discriminator value
489
489
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -529,27 +529,26 @@ export function createUpdateProxyIpRotationRequestFromDiscriminatorValue(parseNo
529
529
  export function deserializeIntoActivity(activity = {}) {
530
530
  return {
531
531
  "apiKeyId": n => { activity.apiKeyId = n.getGuidValue(); },
532
- "createdAt": n => { activity.createdAt = n.getDateValue(); },
533
532
  "endpoint": n => { activity.endpoint = n.getStringValue(); },
534
533
  "id": n => { activity.id = n.getGuidValue(); },
535
- "metadata": n => { activity.metadata = n.getObjectValue(createActivity_metadataFromDiscriminatorValue); },
536
534
  "method": n => { activity.method = n.getStringValue(); },
537
535
  "organizationId": n => { activity.organizationId = n.getGuidValue(); },
538
536
  "requestBody": n => { activity.requestBody = n.getStringValue(); },
539
537
  "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
538
  };
544
539
  }
545
540
  /**
546
541
  * The deserialization information for the current model
547
- * @param Activity_metadata The instance to deserialize into.
542
+ * @param AuthenticateCustomerRequest The instance to deserialize into.
548
543
  * @returns {Record<string, (node: ParseNode) => void>}
549
544
  */
550
545
  // @ts-ignore
551
- export function deserializeIntoActivity_metadata(activity_metadata = {}) {
552
- return {};
546
+ export function deserializeIntoAuthenticateCustomerRequest(authenticateCustomerRequest = {}) {
547
+ return {
548
+ "email": n => { authenticateCustomerRequest.email = n.getStringValue(); },
549
+ "otp": n => { authenticateCustomerRequest.otp = n.getStringValue(); },
550
+ "password": n => { authenticateCustomerRequest.password = n.getStringValue(); },
551
+ };
553
552
  }
554
553
  /**
555
554
  * The deserialization information for the current model
@@ -698,7 +697,6 @@ export function deserializeIntoCustomer(customer = {}) {
698
697
  "avatarUrl": n => { customer.avatarUrl = n.getStringValue(); },
699
698
  "bannedAt": n => { customer.bannedAt = n.getDateValue(); },
700
699
  "billingDetails": n => { customer.billingDetails = n.getObjectValue(createCustomer_billingDetailsFromDiscriminatorValue); },
701
- "createdAt": n => { customer.createdAt = n.getDateValue(); },
702
700
  "displayName": n => { customer.displayName = n.getStringValue(); },
703
701
  "email": n => { customer.email = n.getStringValue(); },
704
702
  "emailVerified": n => { customer.emailVerified = n.getBooleanValue(); },
@@ -709,14 +707,10 @@ export function deserializeIntoCustomer(customer = {}) {
709
707
  "kyc": n => { customer.kyc = n.getObjectValue(createCustomerKycFromDiscriminatorValue); },
710
708
  "lastLoginAt": n => { customer.lastLoginAt = n.getDateValue(); },
711
709
  "locale": n => { customer.locale = n.getStringValue(); },
712
- "metadata": n => { customer.metadata = n.getObjectValue(createCustomer_metadataFromDiscriminatorValue); },
713
710
  "organizationId": n => { customer.organizationId = n.getGuidValue(); },
714
711
  "paymentCustomerId": n => { customer.paymentCustomerId = n.getStringValue(); },
715
712
  "phoneNumber": n => { customer.phoneNumber = n.getStringValue(); },
716
713
  "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
714
  };
721
715
  }
722
716
  /**
@@ -737,15 +731,6 @@ export function deserializeIntoCustomer_billingDetails(customer_billingDetails =
737
731
  export function deserializeIntoCustomer_externalLogins(customer_externalLogins = {}) {
738
732
  return {};
739
733
  }
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
734
  /**
750
735
  * The deserialization information for the current model
751
736
  * @param CustomerKyc The instance to deserialize into.
@@ -774,6 +759,17 @@ export function deserializeIntoDepositResponse(depositResponse = {}) {
774
759
  "paymentId": n => { depositResponse.paymentId = n.getStringValue(); },
775
760
  };
776
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
+ }
777
773
  /**
778
774
  * The deserialization information for the current model
779
775
  * @param ExtendOrderRequest The instance to deserialize into.
@@ -794,32 +790,18 @@ export function deserializeIntoExtendOrderRequest(extendOrderRequest = {}) {
794
790
  // @ts-ignore
795
791
  export function deserializeIntoIncident(incident = {}) {
796
792
  return {
797
- "createdAt": n => { incident.createdAt = n.getDateValue(); },
798
793
  "description": n => { incident.description = n.getStringValue(); },
799
794
  "id": n => { incident.id = n.getGuidValue(); },
800
795
  "managerIncidentId": n => { incident.managerIncidentId = n.getGuidValue(); },
801
- "metadata": n => { incident.metadata = n.getObjectValue(createIncident_metadataFromDiscriminatorValue); },
802
796
  "organizationId": n => { incident.organizationId = n.getGuidValue(); },
803
797
  "reporterEmail": n => { incident.reporterEmail = n.getStringValue(); },
804
798
  "resolutionNote": n => { incident.resolutionNote = n.getStringValue(); },
805
799
  "resolvedAt": n => { incident.resolvedAt = n.getDateValue(); },
806
800
  "status": n => { incident.status = n.getEnumValue(IncidentStatusesObject); },
807
801
  "subject": n => { incident.subject = n.getStringValue(); },
808
- "tags": n => { incident.tags = n.getCollectionOfPrimitiveValues("string"); },
809
802
  "target": n => { incident.target = n.getStringValue(); },
810
- "updatedAt": n => { incident.updatedAt = n.getDateValue(); },
811
- "weight": n => { incident.weight = n.getNumberValue(); },
812
803
  };
813
804
  }
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
805
  /**
824
806
  * The deserialization information for the current model
825
807
  * @param Isp The instance to deserialize into.
@@ -828,11 +810,13 @@ export function deserializeIntoIncident_metadata(incident_metadata = {}) {
828
810
  // @ts-ignore
829
811
  export function deserializeIntoIsp(isp = {}) {
830
812
  return {
813
+ "availableProxies": n => { isp.availableProxies = n.getNumberValue(); },
831
814
  "id": n => { isp.id = n.getStringValue(); },
815
+ "isDisabled": n => { isp.isDisabled = n.getBooleanValue(); },
832
816
  "logoUrl": n => { isp.logoUrl = n.getStringValue(); },
833
817
  "name": n => { isp.name = n.getStringValue(); },
834
818
  "price": n => { isp.price = n.getNumberValue(); },
835
- "proxies": n => { isp.proxies = n.getNumberValue(); },
819
+ "totalProxies": n => { isp.totalProxies = n.getNumberValue(); },
836
820
  };
837
821
  }
838
822
  /**
@@ -843,12 +827,14 @@ export function deserializeIntoIsp(isp = {}) {
843
827
  // @ts-ignore
844
828
  export function deserializeIntoLocation(location = {}) {
845
829
  return {
830
+ "availableIsps": n => { location.availableIsps = n.getNumberValue(); },
831
+ "availableProxies": n => { location.availableProxies = n.getNumberValue(); },
846
832
  "city": n => { location.city = n.getStringValue(); },
847
833
  "countryCode": n => { location.countryCode = n.getStringValue(); },
848
834
  "id": n => { location.id = n.getStringValue(); },
849
- "ispCount": n => { location.ispCount = n.getNumberValue(); },
835
+ "isDisabled": n => { location.isDisabled = n.getBooleanValue(); },
850
836
  "price": n => { location.price = n.getNumberValue(); },
851
- "proxies": n => { location.proxies = n.getNumberValue(); },
837
+ "totalProxies": n => { location.totalProxies = n.getNumberValue(); },
852
838
  };
853
839
  }
854
840
  /**
@@ -860,7 +846,6 @@ export function deserializeIntoLocation(location = {}) {
860
846
  export function deserializeIntoMember(member = {}) {
861
847
  return {
862
848
  "avatarUrl": n => { member.avatarUrl = n.getStringValue(); },
863
- "createdAt": n => { member.createdAt = n.getDateValue(); },
864
849
  "displayName": n => { member.displayName = n.getStringValue(); },
865
850
  "email": n => { member.email = n.getStringValue(); },
866
851
  "id": n => { member.id = n.getStringValue(); },
@@ -890,7 +875,6 @@ export function deserializeIntoOrder(order = {}) {
890
875
  "billingCycle": n => { order.billingCycle = n.getEnumValue(BillingCyclesObject); },
891
876
  "completePaymentUrl": n => { order.completePaymentUrl = n.getStringValue(); },
892
877
  "consumerRef": n => { order.consumerRef = n.getStringValue(); },
893
- "createdAt": n => { order.createdAt = n.getDateValue(); },
894
878
  "currency": n => { order.currency = n.getStringValue(); },
895
879
  "customerId": n => { order.customerId = n.getGuidValue(); },
896
880
  "expiresAt": n => { order.expiresAt = n.getDateValue(); },
@@ -899,27 +883,14 @@ export function deserializeIntoOrder(order = {}) {
899
883
  "ispId": n => { order.ispId = n.getGuidValue(); },
900
884
  "isTrial": n => { order.isTrial = n.getBooleanValue(); },
901
885
  "locationId": n => { order.locationId = n.getGuidValue(); },
902
- "metadata": n => { order.metadata = n.getObjectValue(createOrder_metadataFromDiscriminatorValue); },
903
886
  "paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
904
887
  "productId": n => { order.productId = n.getGuidValue(); },
905
888
  "quantity": n => { order.quantity = n.getNumberValue(); },
906
889
  "status": n => { order.status = n.getEnumValue(OrderStatusesObject); },
907
- "tags": n => { order.tags = n.getCollectionOfPrimitiveValues("string"); },
908
890
  "total": n => { order.total = n.getNumberValue(); },
909
891
  "unitPrice": n => { order.unitPrice = n.getNumberValue(); },
910
- "updatedAt": n => { order.updatedAt = n.getDateValue(); },
911
- "weight": n => { order.weight = n.getNumberValue(); },
912
892
  };
913
893
  }
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
894
  /**
924
895
  * The deserialization information for the current model
925
896
  * @param OrderPreviewResponse The instance to deserialize into.
@@ -960,33 +931,20 @@ export function deserializeIntoOrganization(organization = {}) {
960
931
  "billing": n => { organization.billing = n.getObjectValue(createOrganizationBilling2FromDiscriminatorValue); },
961
932
  "branding": n => { organization.branding = n.getObjectValue(createOrganizationBrandingFromDiscriminatorValue); },
962
933
  "companyName": n => { organization.companyName = n.getStringValue(); },
963
- "createdAt": n => { organization.createdAt = n.getDateValue(); },
934
+ "email": n => { organization.email = n.getObjectValue(createOrganizationEmailFromDiscriminatorValue); },
964
935
  "id": n => { organization.id = n.getGuidValue(); },
965
936
  "infrastructure": n => { organization.infrastructure = n.getObjectValue(createOrganizationInfrastructureFromDiscriminatorValue); },
966
937
  "isActive": n => { organization.isActive = n.getBooleanValue(); },
967
938
  "isCurrentUserOwner": n => { organization.isCurrentUserOwner = n.getBooleanValue(); },
968
939
  "memberCount": n => { organization.memberCount = n.getNumberValue(); },
969
- "metadata": n => { organization.metadata = n.getObjectValue(createOrganization_metadataFromDiscriminatorValue); },
970
940
  "name": n => { organization.name = n.getStringValue(); },
971
941
  "orderCount": n => { organization.orderCount = n.getNumberValue(); },
972
942
  "requirements": n => { organization.requirements = n.getObjectValue(createOrderRequirementsFromDiscriminatorValue); },
973
- "tags": n => { organization.tags = n.getCollectionOfPrimitiveValues("string"); },
974
943
  "tenantId": n => { organization.tenantId = n.getGuidValue(); },
975
944
  "terms": n => { organization.terms = n.getObjectValue(createOrganizationTermsFromDiscriminatorValue); },
976
945
  "type": n => { organization.type = n.getEnumValue(OrganizationTypesObject); },
977
- "updatedAt": n => { organization.updatedAt = n.getDateValue(); },
978
- "weight": n => { organization.weight = n.getNumberValue(); },
979
946
  };
980
947
  }
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
948
  /**
991
949
  * The deserialization information for the current model
992
950
  * @param OrganizationBilling The instance to deserialize into.
@@ -1034,6 +992,36 @@ export function deserializeIntoOrganizationBranding(organizationBranding = {}) {
1034
992
  "logoLightUrl": n => { organizationBranding.logoLightUrl = n.getStringValue(); },
1035
993
  };
1036
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
+ }
1037
1025
  /**
1038
1026
  * The deserialization information for the current model
1039
1027
  * @param OrganizationInfrastructure The instance to deserialize into.
@@ -1080,27 +1068,13 @@ export function deserializeIntoOrganizationTerms(organizationTerms = {}) {
1080
1068
  export function deserializeIntoPaymentProcessor(paymentProcessor = {}) {
1081
1069
  return {
1082
1070
  "configured": n => { paymentProcessor.configured = n.getBooleanValue(); },
1083
- "createdAt": n => { paymentProcessor.createdAt = n.getDateValue(); },
1084
1071
  "fields": n => { paymentProcessor.fields = n.getCollectionOfObjectValues(createProcessorFieldSchemaFromDiscriminatorValue); },
1085
1072
  "id": n => { paymentProcessor.id = n.getGuidValue(); },
1086
- "metadata": n => { paymentProcessor.metadata = n.getObjectValue(createPaymentProcessor_metadataFromDiscriminatorValue); },
1087
1073
  "organizationId": n => { paymentProcessor.organizationId = n.getGuidValue(); },
1088
1074
  "processor": n => { paymentProcessor.processor = n.getEnumValue(PaymentProcessorsObject); },
1089
- "tags": n => { paymentProcessor.tags = n.getCollectionOfPrimitiveValues("string"); },
1090
- "updatedAt": n => { paymentProcessor.updatedAt = n.getDateValue(); },
1091
1075
  "values": n => { paymentProcessor.values = n.getObjectValue(createPaymentProcessor_valuesFromDiscriminatorValue); },
1092
- "weight": n => { paymentProcessor.weight = n.getNumberValue(); },
1093
1076
  };
1094
1077
  }
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
1078
  /**
1105
1079
  * The deserialization information for the current model
1106
1080
  * @param PaymentProcessor_values The instance to deserialize into.
@@ -1151,29 +1125,16 @@ export function deserializeIntoProcessorFieldSchema(processorFieldSchema = {}) {
1151
1125
  export function deserializeIntoProduct(product = {}) {
1152
1126
  return {
1153
1127
  "basePrice": n => { product.basePrice = n.getNumberValue(); },
1154
- "createdAt": n => { product.createdAt = n.getDateValue(); },
1155
1128
  "currency": n => { product.currency = n.getStringValue(); },
1156
1129
  "description": n => { product.description = n.getStringValue(); },
1157
1130
  "icon": n => { product.icon = n.getStringValue(); },
1158
1131
  "id": n => { product.id = n.getGuidValue(); },
1132
+ "isDisabled": n => { product.isDisabled = n.getBooleanValue(); },
1159
1133
  "isEnabled": n => { product.isEnabled = n.getBooleanValue(); },
1160
- "metadata": n => { product.metadata = n.getObjectValue(createProduct_metadataFromDiscriminatorValue); },
1161
1134
  "name": n => { product.name = n.getStringValue(); },
1162
1135
  "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
1136
  };
1167
1137
  }
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
1138
  /**
1178
1139
  * The deserialization information for the current model
1179
1140
  * @param Proxy The instance to deserialize into.
@@ -1246,6 +1207,19 @@ export function deserializeIntoReviewKycRequest(reviewKycRequest = {}) {
1246
1207
  "approved": n => { reviewKycRequest.approved = n.getBooleanValue(); },
1247
1208
  };
1248
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
+ }
1249
1223
  /**
1250
1224
  * The deserialization information for the current model
1251
1225
  * @param UpdateCustomerRequest The instance to deserialize into.
@@ -1299,6 +1273,21 @@ export function deserializeIntoUpdateOrganizationBrandingRequest(updateOrganizat
1299
1273
  "logoLightUrl": n => { updateOrganizationBrandingRequest.logoLightUrl = n.getStringValue(); },
1300
1274
  };
1301
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
+ }
1302
1291
  /**
1303
1292
  * The deserialization information for the current model
1304
1293
  * @param UpdateOrganizationInfrastructureRequest The instance to deserialize into.
@@ -1310,6 +1299,21 @@ export function deserializeIntoUpdateOrganizationInfrastructureRequest(updateOrg
1310
1299
  "proxyDomain": n => { updateOrganizationInfrastructureRequest.proxyDomain = n.getStringValue(); },
1311
1300
  };
1312
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
+ }
1313
1317
  /**
1314
1318
  * The deserialization information for the current model
1315
1319
  * @param UpdateOrganizationRequest The instance to deserialize into.
@@ -1365,31 +1369,29 @@ export function serializeActivity(writer, activity = {}, isSerializingDerivedTyp
1365
1369
  return;
1366
1370
  }
1367
1371
  writer.writeGuidValue("apiKeyId", activity.apiKeyId);
1368
- writer.writeDateValue("createdAt", activity.createdAt);
1369
1372
  writer.writeStringValue("endpoint", activity.endpoint);
1370
1373
  writer.writeGuidValue("id", activity.id);
1371
- writer.writeObjectValue("metadata", activity.metadata, serializeActivity_metadata);
1372
1374
  writer.writeStringValue("method", activity.method);
1373
1375
  writer.writeGuidValue("organizationId", activity.organizationId);
1374
1376
  writer.writeStringValue("requestBody", activity.requestBody);
1375
1377
  writer.writeNumberValue("statusCode", activity.statusCode);
1376
- writer.writeCollectionOfPrimitiveValues("tags", activity.tags);
1377
- writer.writeDateValue("updatedAt", activity.updatedAt);
1378
- writer.writeNumberValue("weight", activity.weight);
1379
1378
  writer.writeAdditionalData(activity.additionalData);
1380
1379
  }
1381
1380
  /**
1382
1381
  * Serializes information the current object
1383
- * @param Activity_metadata The instance to serialize from.
1382
+ * @param AuthenticateCustomerRequest The instance to serialize from.
1384
1383
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1385
1384
  * @param writer Serialization writer to use to serialize this model
1386
1385
  */
1387
1386
  // @ts-ignore
1388
- export function serializeActivity_metadata(writer, activity_metadata = {}, isSerializingDerivedType = false) {
1389
- if (!activity_metadata || isSerializingDerivedType) {
1387
+ export function serializeAuthenticateCustomerRequest(writer, authenticateCustomerRequest = {}, isSerializingDerivedType = false) {
1388
+ if (!authenticateCustomerRequest || isSerializingDerivedType) {
1390
1389
  return;
1391
1390
  }
1392
- writer.writeAdditionalData(activity_metadata.additionalData);
1391
+ writer.writeStringValue("email", authenticateCustomerRequest.email);
1392
+ writer.writeStringValue("otp", authenticateCustomerRequest.otp);
1393
+ writer.writeStringValue("password", authenticateCustomerRequest.password);
1394
+ writer.writeAdditionalData(authenticateCustomerRequest.additionalData);
1393
1395
  }
1394
1396
  /**
1395
1397
  * Serializes information the current object
@@ -1572,7 +1574,6 @@ export function serializeCustomer(writer, customer = {}, isSerializingDerivedTyp
1572
1574
  writer.writeStringValue("avatarUrl", customer.avatarUrl);
1573
1575
  writer.writeDateValue("bannedAt", customer.bannedAt);
1574
1576
  writer.writeObjectValue("billingDetails", customer.billingDetails, serializeCustomer_billingDetails);
1575
- writer.writeDateValue("createdAt", customer.createdAt);
1576
1577
  writer.writeStringValue("displayName", customer.displayName);
1577
1578
  writer.writeStringValue("email", customer.email);
1578
1579
  writer.writeBooleanValue("emailVerified", customer.emailVerified);
@@ -1583,14 +1584,10 @@ export function serializeCustomer(writer, customer = {}, isSerializingDerivedTyp
1583
1584
  writer.writeObjectValue("kyc", customer.kyc, serializeCustomerKyc);
1584
1585
  writer.writeDateValue("lastLoginAt", customer.lastLoginAt);
1585
1586
  writer.writeStringValue("locale", customer.locale);
1586
- writer.writeObjectValue("metadata", customer.metadata, serializeCustomer_metadata);
1587
1587
  writer.writeGuidValue("organizationId", customer.organizationId);
1588
1588
  writer.writeStringValue("paymentCustomerId", customer.paymentCustomerId);
1589
1589
  writer.writeStringValue("phoneNumber", customer.phoneNumber);
1590
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
1591
  writer.writeAdditionalData(customer.additionalData);
1595
1592
  }
1596
1593
  /**
@@ -1619,19 +1616,6 @@ export function serializeCustomer_externalLogins(writer, customer_externalLogins
1619
1616
  }
1620
1617
  writer.writeAdditionalData(customer_externalLogins.additionalData);
1621
1618
  }
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
1619
  /**
1636
1620
  * Serializes information the current object
1637
1621
  * @param CustomerKyc The instance to serialize from.
@@ -1666,6 +1650,20 @@ export function serializeDepositResponse(writer, depositResponse = {}, isSeriali
1666
1650
  writer.writeStringValue("paymentId", depositResponse.paymentId);
1667
1651
  writer.writeAdditionalData(depositResponse.additionalData);
1668
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
+ }
1669
1667
  /**
1670
1668
  * Serializes information the current object
1671
1669
  * @param ExtendOrderRequest The instance to serialize from.
@@ -1692,36 +1690,18 @@ export function serializeIncident(writer, incident = {}, isSerializingDerivedTyp
1692
1690
  if (!incident || isSerializingDerivedType) {
1693
1691
  return;
1694
1692
  }
1695
- writer.writeDateValue("createdAt", incident.createdAt);
1696
1693
  writer.writeStringValue("description", incident.description);
1697
1694
  writer.writeGuidValue("id", incident.id);
1698
1695
  writer.writeGuidValue("managerIncidentId", incident.managerIncidentId);
1699
- writer.writeObjectValue("metadata", incident.metadata, serializeIncident_metadata);
1700
1696
  writer.writeGuidValue("organizationId", incident.organizationId);
1701
1697
  writer.writeStringValue("reporterEmail", incident.reporterEmail);
1702
1698
  writer.writeStringValue("resolutionNote", incident.resolutionNote);
1703
1699
  writer.writeDateValue("resolvedAt", incident.resolvedAt);
1704
1700
  writer.writeEnumValue("status", incident.status);
1705
1701
  writer.writeStringValue("subject", incident.subject);
1706
- writer.writeCollectionOfPrimitiveValues("tags", incident.tags);
1707
1702
  writer.writeStringValue("target", incident.target);
1708
- writer.writeDateValue("updatedAt", incident.updatedAt);
1709
- writer.writeNumberValue("weight", incident.weight);
1710
1703
  writer.writeAdditionalData(incident.additionalData);
1711
1704
  }
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
1705
  /**
1726
1706
  * Serializes information the current object
1727
1707
  * @param Isp The instance to serialize from.
@@ -1733,11 +1713,13 @@ export function serializeIsp(writer, isp = {}, isSerializingDerivedType = false)
1733
1713
  if (!isp || isSerializingDerivedType) {
1734
1714
  return;
1735
1715
  }
1716
+ writer.writeNumberValue("availableProxies", isp.availableProxies);
1736
1717
  writer.writeStringValue("id", isp.id);
1718
+ writer.writeBooleanValue("isDisabled", isp.isDisabled);
1737
1719
  writer.writeStringValue("logoUrl", isp.logoUrl);
1738
1720
  writer.writeStringValue("name", isp.name);
1739
1721
  writer.writeNumberValue("price", isp.price);
1740
- writer.writeNumberValue("proxies", isp.proxies);
1722
+ writer.writeNumberValue("totalProxies", isp.totalProxies);
1741
1723
  writer.writeAdditionalData(isp.additionalData);
1742
1724
  }
1743
1725
  /**
@@ -1751,12 +1733,14 @@ export function serializeLocation(writer, location = {}, isSerializingDerivedTyp
1751
1733
  if (!location || isSerializingDerivedType) {
1752
1734
  return;
1753
1735
  }
1736
+ writer.writeNumberValue("availableIsps", location.availableIsps);
1737
+ writer.writeNumberValue("availableProxies", location.availableProxies);
1754
1738
  writer.writeStringValue("city", location.city);
1755
1739
  writer.writeStringValue("countryCode", location.countryCode);
1756
1740
  writer.writeStringValue("id", location.id);
1757
- writer.writeNumberValue("ispCount", location.ispCount);
1741
+ writer.writeBooleanValue("isDisabled", location.isDisabled);
1758
1742
  writer.writeNumberValue("price", location.price);
1759
- writer.writeNumberValue("proxies", location.proxies);
1743
+ writer.writeNumberValue("totalProxies", location.totalProxies);
1760
1744
  writer.writeAdditionalData(location.additionalData);
1761
1745
  }
1762
1746
  /**
@@ -1771,7 +1755,6 @@ export function serializeMember(writer, member = {}, isSerializingDerivedType =
1771
1755
  return;
1772
1756
  }
1773
1757
  writer.writeStringValue("avatarUrl", member.avatarUrl);
1774
- writer.writeDateValue("createdAt", member.createdAt);
1775
1758
  writer.writeStringValue("displayName", member.displayName);
1776
1759
  writer.writeStringValue("email", member.email);
1777
1760
  writer.writeStringValue("id", member.id);
@@ -1807,7 +1790,6 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
1807
1790
  writer.writeEnumValue("billingCycle", order.billingCycle);
1808
1791
  writer.writeStringValue("completePaymentUrl", order.completePaymentUrl);
1809
1792
  writer.writeStringValue("consumerRef", order.consumerRef);
1810
- writer.writeDateValue("createdAt", order.createdAt);
1811
1793
  writer.writeStringValue("currency", order.currency);
1812
1794
  writer.writeGuidValue("customerId", order.customerId);
1813
1795
  writer.writeDateValue("expiresAt", order.expiresAt);
@@ -1816,31 +1798,14 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
1816
1798
  writer.writeGuidValue("ispId", order.ispId);
1817
1799
  writer.writeBooleanValue("isTrial", order.isTrial);
1818
1800
  writer.writeGuidValue("locationId", order.locationId);
1819
- writer.writeObjectValue("metadata", order.metadata, serializeOrder_metadata);
1820
1801
  writer.writeEnumValue("paymentMethod", order.paymentMethod);
1821
1802
  writer.writeGuidValue("productId", order.productId);
1822
1803
  writer.writeNumberValue("quantity", order.quantity);
1823
1804
  writer.writeEnumValue("status", order.status);
1824
- writer.writeCollectionOfPrimitiveValues("tags", order.tags);
1825
1805
  writer.writeNumberValue("total", order.total);
1826
1806
  writer.writeNumberValue("unitPrice", order.unitPrice);
1827
- writer.writeDateValue("updatedAt", order.updatedAt);
1828
- writer.writeNumberValue("weight", order.weight);
1829
1807
  writer.writeAdditionalData(order.additionalData);
1830
1808
  }
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
1809
  /**
1845
1810
  * Serializes information the current object
1846
1811
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1890,37 +1855,20 @@ export function serializeOrganization(writer, organization = {}, isSerializingDe
1890
1855
  writer.writeObjectValue("billing", organization.billing, serializeOrganizationBilling2);
1891
1856
  writer.writeObjectValue("branding", organization.branding, serializeOrganizationBranding);
1892
1857
  writer.writeStringValue("companyName", organization.companyName);
1893
- writer.writeDateValue("createdAt", organization.createdAt);
1858
+ writer.writeObjectValue("email", organization.email, serializeOrganizationEmail);
1894
1859
  writer.writeGuidValue("id", organization.id);
1895
1860
  writer.writeObjectValue("infrastructure", organization.infrastructure, serializeOrganizationInfrastructure);
1896
1861
  writer.writeBooleanValue("isActive", organization.isActive);
1897
1862
  writer.writeBooleanValue("isCurrentUserOwner", organization.isCurrentUserOwner);
1898
1863
  writer.writeNumberValue("memberCount", organization.memberCount);
1899
- writer.writeObjectValue("metadata", organization.metadata, serializeOrganization_metadata);
1900
1864
  writer.writeStringValue("name", organization.name);
1901
1865
  writer.writeNumberValue("orderCount", organization.orderCount);
1902
1866
  writer.writeObjectValue("requirements", organization.requirements, serializeOrderRequirements);
1903
- writer.writeCollectionOfPrimitiveValues("tags", organization.tags);
1904
1867
  writer.writeGuidValue("tenantId", organization.tenantId);
1905
1868
  writer.writeObjectValue("terms", organization.terms, serializeOrganizationTerms);
1906
1869
  writer.writeEnumValue("type", organization.type);
1907
- writer.writeDateValue("updatedAt", organization.updatedAt);
1908
- writer.writeNumberValue("weight", organization.weight);
1909
1870
  writer.writeAdditionalData(organization.additionalData);
1910
1871
  }
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
1872
  /**
1925
1873
  * Serializes information the current object
1926
1874
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1977,6 +1925,42 @@ export function serializeOrganizationBranding(writer, organizationBranding = {},
1977
1925
  writer.writeStringValue("logoLightUrl", organizationBranding.logoLightUrl);
1978
1926
  writer.writeAdditionalData(organizationBranding.additionalData);
1979
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
+ }
1980
1964
  /**
1981
1965
  * Serializes information the current object
1982
1966
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2035,31 +2019,13 @@ export function serializePaymentProcessor(writer, paymentProcessor = {}, isSeria
2035
2019
  return;
2036
2020
  }
2037
2021
  writer.writeBooleanValue("configured", paymentProcessor.configured);
2038
- writer.writeDateValue("createdAt", paymentProcessor.createdAt);
2039
2022
  writer.writeCollectionOfObjectValues("fields", paymentProcessor.fields, serializeProcessorFieldSchema);
2040
2023
  writer.writeGuidValue("id", paymentProcessor.id);
2041
- writer.writeObjectValue("metadata", paymentProcessor.metadata, serializePaymentProcessor_metadata);
2042
2024
  writer.writeGuidValue("organizationId", paymentProcessor.organizationId);
2043
2025
  writer.writeEnumValue("processor", paymentProcessor.processor);
2044
- writer.writeCollectionOfPrimitiveValues("tags", paymentProcessor.tags);
2045
- writer.writeDateValue("updatedAt", paymentProcessor.updatedAt);
2046
2026
  writer.writeObjectValue("values", paymentProcessor.values, serializePaymentProcessor_values);
2047
- writer.writeNumberValue("weight", paymentProcessor.weight);
2048
2027
  writer.writeAdditionalData(paymentProcessor.additionalData);
2049
2028
  }
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
2029
  /**
2064
2030
  * Serializes information the current object
2065
2031
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2123,33 +2089,16 @@ export function serializeProduct(writer, product = {}, isSerializingDerivedType
2123
2089
  return;
2124
2090
  }
2125
2091
  writer.writeNumberValue("basePrice", product.basePrice);
2126
- writer.writeDateValue("createdAt", product.createdAt);
2127
2092
  writer.writeStringValue("currency", product.currency);
2128
2093
  writer.writeStringValue("description", product.description);
2129
2094
  writer.writeStringValue("icon", product.icon);
2130
2095
  writer.writeGuidValue("id", product.id);
2096
+ writer.writeBooleanValue("isDisabled", product.isDisabled);
2131
2097
  writer.writeBooleanValue("isEnabled", product.isEnabled);
2132
- writer.writeObjectValue("metadata", product.metadata, serializeProduct_metadata);
2133
2098
  writer.writeStringValue("name", product.name);
2134
2099
  writer.writeEnumValue("pricingType", product.pricingType);
2135
- writer.writeCollectionOfPrimitiveValues("tags", product.tags);
2136
- writer.writeDateValue("updatedAt", product.updatedAt);
2137
- writer.writeNumberValue("weight", product.weight);
2138
2100
  writer.writeAdditionalData(product.additionalData);
2139
2101
  }
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
2102
  /**
2154
2103
  * Serializes information the current object
2155
2104
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2237,6 +2186,22 @@ export function serializeReviewKycRequest(writer, reviewKycRequest = {}, isSeria
2237
2186
  writer.writeBooleanValue("approved", reviewKycRequest.approved);
2238
2187
  writer.writeAdditionalData(reviewKycRequest.additionalData);
2239
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
+ }
2240
2205
  /**
2241
2206
  * Serializes information the current object
2242
2207
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2303,6 +2268,24 @@ export function serializeUpdateOrganizationBrandingRequest(writer, updateOrganiz
2303
2268
  writer.writeStringValue("logoLightUrl", updateOrganizationBrandingRequest.logoLightUrl);
2304
2269
  writer.writeAdditionalData(updateOrganizationBrandingRequest.additionalData);
2305
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
+ }
2306
2289
  /**
2307
2290
  * Serializes information the current object
2308
2291
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2317,6 +2300,24 @@ export function serializeUpdateOrganizationInfrastructureRequest(writer, updateO
2317
2300
  writer.writeStringValue("proxyDomain", updateOrganizationInfrastructureRequest.proxyDomain);
2318
2301
  writer.writeAdditionalData(updateOrganizationInfrastructureRequest.additionalData);
2319
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
+ }
2320
2321
  /**
2321
2322
  * Serializes information the current object
2322
2323
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -2386,6 +2387,10 @@ export const IncidentStatusesObject = {
2386
2387
  Resolved: "Resolved",
2387
2388
  Dismissed: "Dismissed",
2388
2389
  };
2390
+ export const MailgunRegionsObject = {
2391
+ US: "US",
2392
+ EU: "EU",
2393
+ };
2389
2394
  export const NullableOfBillingCyclesObject = {
2390
2395
  Daily: "Daily",
2391
2396
  Weekly: "Weekly",
@@ -2414,12 +2419,18 @@ export const PaymentMethodsObject = {
2414
2419
  Cryptocurrency: "Cryptocurrency",
2415
2420
  };
2416
2421
  export const PaymentProcessorsObject = {
2417
- Stripe: "Stripe",
2418
2422
  Heleket: "Heleket",
2423
+ Stripe: "Stripe",
2419
2424
  };
2420
2425
  export const PricingTypesObject = {
2421
2426
  PerUnit: "PerUnit",
2422
2427
  PerBandwidth: "PerBandwidth",
2423
2428
  };
2429
+ export const SeverityLevelsObject = {
2430
+ Trace: "Trace",
2431
+ Information: "Information",
2432
+ Warning: "Warning",
2433
+ ErrorEscaped: "Error",
2434
+ };
2424
2435
  /* tslint:enable */
2425
2436
  /* eslint-enable */