@leadping/sdk 1.0.20 → 1.0.21

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.
@@ -354,6 +354,24 @@ export function createBusinessActivationState_tenDlcDraftFromDiscriminatorValue(
354
354
  export function createBusinessActivationStateFromDiscriminatorValue(parseNode) {
355
355
  return deserializeIntoBusinessActivationState;
356
356
  }
357
+ /**
358
+ * Creates a new instance of the appropriate class based on discriminator value
359
+ * @param parseNode The parse node to use to read the discriminator value and create the object
360
+ * @returns {BusinessBillingState_dunning}
361
+ */
362
+ // @ts-ignore
363
+ export function createBusinessBillingState_dunningFromDiscriminatorValue(parseNode) {
364
+ return deserializeIntoBusinessBillingState_dunning;
365
+ }
366
+ /**
367
+ * Creates a new instance of the appropriate class based on discriminator value
368
+ * @param parseNode The parse node to use to read the discriminator value and create the object
369
+ * @returns {BusinessBillingState}
370
+ */
371
+ // @ts-ignore
372
+ export function createBusinessBillingStateFromDiscriminatorValue(parseNode) {
373
+ return deserializeIntoBusinessBillingState;
374
+ }
357
375
  /**
358
376
  * Creates a new instance of the appropriate class based on discriminator value
359
377
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -363,6 +381,15 @@ export function createBusinessActivationStateFromDiscriminatorValue(parseNode) {
363
381
  export function createBusinessCompliancePolicyFromDiscriminatorValue(parseNode) {
364
382
  return deserializeIntoBusinessCompliancePolicy;
365
383
  }
384
+ /**
385
+ * Creates a new instance of the appropriate class based on discriminator value
386
+ * @param parseNode The parse node to use to read the discriminator value and create the object
387
+ * @returns {BusinessDunningInfo}
388
+ */
389
+ // @ts-ignore
390
+ export function createBusinessDunningInfoFromDiscriminatorValue(parseNode) {
391
+ return deserializeIntoBusinessDunningInfo;
392
+ }
366
393
  /**
367
394
  * Creates a new instance of the appropriate class based on discriminator value
368
395
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -462,6 +489,15 @@ export function createBusinessResponse_addressFromDiscriminatorValue(parseNode)
462
489
  export function createBusinessResponse_billingAddressFromDiscriminatorValue(parseNode) {
463
490
  return deserializeIntoBusinessResponse_billingAddress;
464
491
  }
492
+ /**
493
+ * Creates a new instance of the appropriate class based on discriminator value
494
+ * @param parseNode The parse node to use to read the discriminator value and create the object
495
+ * @returns {BusinessResponse_billingState}
496
+ */
497
+ // @ts-ignore
498
+ export function createBusinessResponse_billingStateFromDiscriminatorValue(parseNode) {
499
+ return deserializeIntoBusinessResponse_billingState;
500
+ }
465
501
  /**
466
502
  * Creates a new instance of the appropriate class based on discriminator value
467
503
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2010,6 +2046,15 @@ export function createUserRequest_notificationPreferencesFromDiscriminatorValue(
2010
2046
  export function createUserRequestFromDiscriminatorValue(parseNode) {
2011
2047
  return deserializeIntoUserRequest;
2012
2048
  }
2049
+ /**
2050
+ * Creates a new instance of the appropriate class based on discriminator value
2051
+ * @param parseNode The parse node to use to read the discriminator value and create the object
2052
+ * @returns {UserResponse_billingState}
2053
+ */
2054
+ // @ts-ignore
2055
+ export function createUserResponse_billingStateFromDiscriminatorValue(parseNode) {
2056
+ return deserializeIntoUserResponse_billingState;
2057
+ }
2013
2058
  /**
2014
2059
  * Creates a new instance of the appropriate class based on discriminator value
2015
2060
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2702,6 +2747,36 @@ export function deserializeIntoBusinessActivationState_tenDlcDraft(businessActiv
2702
2747
  ...deserializeIntoTenDlcApplicationDraft(businessActivationState_tenDlcDraft),
2703
2748
  };
2704
2749
  }
2750
+ /**
2751
+ * The deserialization information for the current model
2752
+ * @param BusinessBillingState The instance to deserialize into.
2753
+ * @returns {Record<string, (node: ParseNode) => void>}
2754
+ */
2755
+ // @ts-ignore
2756
+ export function deserializeIntoBusinessBillingState(businessBillingState = {}) {
2757
+ return {
2758
+ "businessUserAssignedQuantity": n => { businessBillingState.businessUserAssignedQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2759
+ "businessUserQuantity": n => { businessBillingState.businessUserQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2760
+ "cancelAt": n => { businessBillingState.cancelAt = n.getDateValue(); },
2761
+ "dunning": n => { businessBillingState.dunning = n.getObjectValue(createBusinessBillingState_dunningFromDiscriminatorValue); },
2762
+ "hasPaymentMethod": n => { businessBillingState.hasPaymentMethod = n.getBooleanValue(); },
2763
+ "hasStripeCustomer": n => { businessBillingState.hasStripeCustomer = n.getBooleanValue(); },
2764
+ "lastPaymentMethodEventAt": n => { businessBillingState.lastPaymentMethodEventAt = n.getDateValue(); },
2765
+ "lastSubscriptionEventAt": n => { businessBillingState.lastSubscriptionEventAt = n.getDateValue(); },
2766
+ "phoneNumberQuantity": n => { businessBillingState.phoneNumberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2767
+ };
2768
+ }
2769
+ /**
2770
+ * The deserialization information for the current model
2771
+ * @param BusinessBillingState_dunning The instance to deserialize into.
2772
+ * @returns {Record<string, (node: ParseNode) => void>}
2773
+ */
2774
+ // @ts-ignore
2775
+ export function deserializeIntoBusinessBillingState_dunning(businessBillingState_dunning = {}) {
2776
+ return {
2777
+ ...deserializeIntoBusinessDunningInfo(businessBillingState_dunning),
2778
+ };
2779
+ }
2705
2780
  /**
2706
2781
  * The deserialization information for the current model
2707
2782
  * @param BusinessCompliancePolicy The instance to deserialize into.
@@ -2720,6 +2795,26 @@ export function deserializeIntoBusinessCompliancePolicy(businessCompliancePolicy
2720
2795
  "requireTrustedFormForAutomations": n => { businessCompliancePolicy.requireTrustedFormForAutomations = n.getBooleanValue(); },
2721
2796
  };
2722
2797
  }
2798
+ /**
2799
+ * The deserialization information for the current model
2800
+ * @param BusinessDunningInfo The instance to deserialize into.
2801
+ * @returns {Record<string, (node: ParseNode) => void>}
2802
+ */
2803
+ // @ts-ignore
2804
+ export function deserializeIntoBusinessDunningInfo(businessDunningInfo = {}) {
2805
+ return {
2806
+ "finalCancellationAt": n => { businessDunningInfo.finalCancellationAt = n.getDateValue(); },
2807
+ "gracePeriodEndsAt": n => { businessDunningInfo.gracePeriodEndsAt = n.getDateValue(); },
2808
+ "lastFailedInvoiceStatus": n => { businessDunningInfo.lastFailedInvoiceStatus = n.getStringValue(); },
2809
+ "lastUpdatedAt": n => { businessDunningInfo.lastUpdatedAt = n.getDateValue(); },
2810
+ "nextRetryAt": n => { businessDunningInfo.nextRetryAt = n.getDateValue(); },
2811
+ "outboundRestrictedAt": n => { businessDunningInfo.outboundRestrictedAt = n.getDateValue(); },
2812
+ "outboundSuspendedAt": n => { businessDunningInfo.outboundSuspendedAt = n.getDateValue(); },
2813
+ "paymentFailedAt": n => { businessDunningInfo.paymentFailedAt = n.getDateValue(); },
2814
+ "retryAttemptCount": n => { businessDunningInfo.retryAttemptCount = n.getNumberValue(); },
2815
+ "stage": n => { businessDunningInfo.stage = n.getStringValue(); },
2816
+ };
2817
+ }
2723
2818
  /**
2724
2819
  * The deserialization information for the current model
2725
2820
  * @param BusinessInvitationRequest The instance to deserialize into.
@@ -2878,6 +2973,7 @@ export function deserializeIntoBusinessResponse(businessResponse = {}) {
2878
2973
  "billingAddress": n => { businessResponse.billingAddress = n.getObjectValue(createBusinessResponse_billingAddressFromDiscriminatorValue); },
2879
2974
  "billingName": n => { businessResponse.billingName = n.getStringValue(); },
2880
2975
  "billingPlan": n => { businessResponse.billingPlan = n.getEnumValue(BusinessResponse_billingPlanObject); },
2976
+ "billingState": n => { businessResponse.billingState = n.getObjectValue(createBusinessResponse_billingStateFromDiscriminatorValue); },
2881
2977
  "compliancePolicy": n => { businessResponse.compliancePolicy = n.getObjectValue(createBusinessResponse_compliancePolicyFromDiscriminatorValue); },
2882
2978
  "createdAt": n => { businessResponse.createdAt = n.getDateValue(); },
2883
2979
  "description": n => { businessResponse.description = n.getStringValue(); },
@@ -2933,6 +3029,17 @@ export function deserializeIntoBusinessResponse_billingAddress(businessResponse_
2933
3029
  ...deserializeIntoStreetAddress(businessResponse_billingAddress),
2934
3030
  };
2935
3031
  }
3032
+ /**
3033
+ * The deserialization information for the current model
3034
+ * @param BusinessResponse_billingState The instance to deserialize into.
3035
+ * @returns {Record<string, (node: ParseNode) => void>}
3036
+ */
3037
+ // @ts-ignore
3038
+ export function deserializeIntoBusinessResponse_billingState(businessResponse_billingState = {}) {
3039
+ return {
3040
+ ...deserializeIntoBusinessBillingState(businessResponse_billingState),
3041
+ };
3042
+ }
2936
3043
  /**
2937
3044
  * The deserialization information for the current model
2938
3045
  * @param BusinessResponse_compliancePolicy The instance to deserialize into.
@@ -5865,6 +5972,7 @@ export function deserializeIntoUserRequest_notificationPreferences(userRequest_n
5865
5972
  export function deserializeIntoUserResponse(userResponse = {}) {
5866
5973
  return {
5867
5974
  "billingPlan": n => { userResponse.billingPlan = n.getEnumValue(UserResponse_billingPlanObject); },
5975
+ "billingState": n => { userResponse.billingState = n.getObjectValue(createUserResponse_billingStateFromDiscriminatorValue); },
5868
5976
  "compliance": n => { userResponse.compliance = n.getObjectValue(createUserResponse_complianceFromDiscriminatorValue); },
5869
5977
  "createdAt": n => { userResponse.createdAt = n.getDateValue(); },
5870
5978
  "currentBusiness": n => { userResponse.currentBusiness = n.getObjectValue(createUserResponse_currentBusinessFromDiscriminatorValue); },
@@ -5887,6 +5995,17 @@ export function deserializeIntoUserResponse(userResponse = {}) {
5887
5995
  "subscriptionStatus": n => { userResponse.subscriptionStatus = n.getEnumValue(UserResponse_subscriptionStatusObject); },
5888
5996
  };
5889
5997
  }
5998
+ /**
5999
+ * The deserialization information for the current model
6000
+ * @param UserResponse_billingState The instance to deserialize into.
6001
+ * @returns {Record<string, (node: ParseNode) => void>}
6002
+ */
6003
+ // @ts-ignore
6004
+ export function deserializeIntoUserResponse_billingState(userResponse_billingState = {}) {
6005
+ return {
6006
+ ...deserializeIntoBusinessBillingState(userResponse_billingState),
6007
+ };
6008
+ }
5890
6009
  /**
5891
6010
  * The deserialization information for the current model
5892
6011
  * @param UserResponse_compliance The instance to deserialize into.
@@ -6708,6 +6827,41 @@ export function serializeBusinessActivationState_tenDlcDraft(writer, businessAct
6708
6827
  }
6709
6828
  serializeTenDlcApplicationDraft(writer, businessActivationState_tenDlcDraft, isSerializingDerivedType);
6710
6829
  }
6830
+ /**
6831
+ * Serializes information the current object
6832
+ * @param BusinessBillingState The instance to serialize from.
6833
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6834
+ * @param writer Serialization writer to use to serialize this model
6835
+ */
6836
+ // @ts-ignore
6837
+ export function serializeBusinessBillingState(writer, businessBillingState = {}, isSerializingDerivedType = false) {
6838
+ if (!businessBillingState || isSerializingDerivedType) {
6839
+ return;
6840
+ }
6841
+ writer.writeObjectValue("businessUserAssignedQuantity", businessBillingState.businessUserAssignedQuantity);
6842
+ writer.writeObjectValue("businessUserQuantity", businessBillingState.businessUserQuantity);
6843
+ writer.writeDateValue("cancelAt", businessBillingState.cancelAt);
6844
+ writer.writeObjectValue("dunning", businessBillingState.dunning, serializeBusinessBillingState_dunning);
6845
+ writer.writeBooleanValue("hasPaymentMethod", businessBillingState.hasPaymentMethod);
6846
+ writer.writeBooleanValue("hasStripeCustomer", businessBillingState.hasStripeCustomer);
6847
+ writer.writeDateValue("lastPaymentMethodEventAt", businessBillingState.lastPaymentMethodEventAt);
6848
+ writer.writeDateValue("lastSubscriptionEventAt", businessBillingState.lastSubscriptionEventAt);
6849
+ writer.writeObjectValue("phoneNumberQuantity", businessBillingState.phoneNumberQuantity);
6850
+ writer.writeAdditionalData(businessBillingState.additionalData);
6851
+ }
6852
+ /**
6853
+ * Serializes information the current object
6854
+ * @param BusinessBillingState_dunning The instance to serialize from.
6855
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6856
+ * @param writer Serialization writer to use to serialize this model
6857
+ */
6858
+ // @ts-ignore
6859
+ export function serializeBusinessBillingState_dunning(writer, businessBillingState_dunning = {}, isSerializingDerivedType = false) {
6860
+ if (!businessBillingState_dunning || isSerializingDerivedType) {
6861
+ return;
6862
+ }
6863
+ serializeBusinessDunningInfo(writer, businessBillingState_dunning, isSerializingDerivedType);
6864
+ }
6711
6865
  /**
6712
6866
  * Serializes information the current object
6713
6867
  * @param BusinessCompliancePolicy The instance to serialize from.
@@ -6729,6 +6883,29 @@ export function serializeBusinessCompliancePolicy(writer, businessCompliancePoli
6729
6883
  writer.writeBooleanValue("requireTrustedFormForAutomations", businessCompliancePolicy.requireTrustedFormForAutomations);
6730
6884
  writer.writeAdditionalData(businessCompliancePolicy.additionalData);
6731
6885
  }
6886
+ /**
6887
+ * Serializes information the current object
6888
+ * @param BusinessDunningInfo The instance to serialize from.
6889
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
6890
+ * @param writer Serialization writer to use to serialize this model
6891
+ */
6892
+ // @ts-ignore
6893
+ export function serializeBusinessDunningInfo(writer, businessDunningInfo = {}, isSerializingDerivedType = false) {
6894
+ if (!businessDunningInfo || isSerializingDerivedType) {
6895
+ return;
6896
+ }
6897
+ writer.writeDateValue("finalCancellationAt", businessDunningInfo.finalCancellationAt);
6898
+ writer.writeDateValue("gracePeriodEndsAt", businessDunningInfo.gracePeriodEndsAt);
6899
+ writer.writeStringValue("lastFailedInvoiceStatus", businessDunningInfo.lastFailedInvoiceStatus);
6900
+ writer.writeDateValue("lastUpdatedAt", businessDunningInfo.lastUpdatedAt);
6901
+ writer.writeDateValue("nextRetryAt", businessDunningInfo.nextRetryAt);
6902
+ writer.writeDateValue("outboundRestrictedAt", businessDunningInfo.outboundRestrictedAt);
6903
+ writer.writeDateValue("outboundSuspendedAt", businessDunningInfo.outboundSuspendedAt);
6904
+ writer.writeDateValue("paymentFailedAt", businessDunningInfo.paymentFailedAt);
6905
+ writer.writeNumberValue("retryAttemptCount", businessDunningInfo.retryAttemptCount);
6906
+ writer.writeStringValue("stage", businessDunningInfo.stage);
6907
+ writer.writeAdditionalData(businessDunningInfo.additionalData);
6908
+ }
6732
6909
  /**
6733
6910
  * Serializes information the current object
6734
6911
  * @param BusinessInvitationRequest The instance to serialize from.
@@ -6910,6 +7087,7 @@ export function serializeBusinessResponse(writer, businessResponse = {}, isSeria
6910
7087
  writer.writeObjectValue("billingAddress", businessResponse.billingAddress, serializeBusinessResponse_billingAddress);
6911
7088
  writer.writeStringValue("billingName", businessResponse.billingName);
6912
7089
  writer.writeEnumValue("billingPlan", businessResponse.billingPlan);
7090
+ writer.writeObjectValue("billingState", businessResponse.billingState, serializeBusinessResponse_billingState);
6913
7091
  writer.writeObjectValue("compliancePolicy", businessResponse.compliancePolicy, serializeBusinessResponse_compliancePolicy);
6914
7092
  writer.writeDateValue("createdAt", businessResponse.createdAt);
6915
7093
  writer.writeStringValue("description", businessResponse.description);
@@ -6971,6 +7149,19 @@ export function serializeBusinessResponse_billingAddress(writer, businessRespons
6971
7149
  }
6972
7150
  serializeStreetAddress(writer, businessResponse_billingAddress, isSerializingDerivedType);
6973
7151
  }
7152
+ /**
7153
+ * Serializes information the current object
7154
+ * @param BusinessResponse_billingState The instance to serialize from.
7155
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
7156
+ * @param writer Serialization writer to use to serialize this model
7157
+ */
7158
+ // @ts-ignore
7159
+ export function serializeBusinessResponse_billingState(writer, businessResponse_billingState = {}, isSerializingDerivedType = false) {
7160
+ if (!businessResponse_billingState || isSerializingDerivedType) {
7161
+ return;
7162
+ }
7163
+ serializeBusinessBillingState(writer, businessResponse_billingState, isSerializingDerivedType);
7164
+ }
6974
7165
  /**
6975
7166
  * Serializes information the current object
6976
7167
  * @param BusinessResponse_compliancePolicy The instance to serialize from.
@@ -10379,6 +10570,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
10379
10570
  return;
10380
10571
  }
10381
10572
  writer.writeEnumValue("billingPlan", userResponse.billingPlan);
10573
+ writer.writeObjectValue("billingState", userResponse.billingState, serializeUserResponse_billingState);
10382
10574
  writer.writeObjectValue("compliance", userResponse.compliance, serializeUserResponse_compliance);
10383
10575
  writer.writeDateValue("createdAt", userResponse.createdAt);
10384
10576
  writer.writeObjectValue("currentBusiness", userResponse.currentBusiness, serializeUserResponse_currentBusiness);
@@ -10401,6 +10593,19 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
10401
10593
  writer.writeEnumValue("subscriptionStatus", userResponse.subscriptionStatus);
10402
10594
  writer.writeAdditionalData(userResponse.additionalData);
10403
10595
  }
10596
+ /**
10597
+ * Serializes information the current object
10598
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10599
+ * @param UserResponse_billingState The instance to serialize from.
10600
+ * @param writer Serialization writer to use to serialize this model
10601
+ */
10602
+ // @ts-ignore
10603
+ export function serializeUserResponse_billingState(writer, userResponse_billingState = {}, isSerializingDerivedType = false) {
10604
+ if (!userResponse_billingState || isSerializingDerivedType) {
10605
+ return;
10606
+ }
10607
+ serializeBusinessBillingState(writer, userResponse_billingState, isSerializingDerivedType);
10608
+ }
10404
10609
  /**
10405
10610
  * Serializes information the current object
10406
10611
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.