@leadping/sdk 1.0.22 → 1.0.23

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.
@@ -1217,6 +1217,10 @@ export interface BusinessActivationState_tenDlcDraft extends Parsable, TenDlcApp
1217
1217
  * Customer-safe billing state for a Leadping business.
1218
1218
  */
1219
1219
  export interface BusinessBillingState extends AdditionalDataHolder, Parsable {
1220
+ /**
1221
+ * Date and time when the scheduled billing plan change takes effect.
1222
+ */
1223
+ billingPlanChangeEffectiveAt?: Date | null;
1220
1224
  /**
1221
1225
  * Gets or sets the number of user licenses currently assigned by the business.
1222
1226
  */
@@ -1249,16 +1253,25 @@ export interface BusinessBillingState extends AdditionalDataHolder, Parsable {
1249
1253
  * Gets or sets when Leadping last processed a subscription event for the business.
1250
1254
  */
1251
1255
  lastSubscriptionEventAt?: Date | null;
1256
+ /**
1257
+ * Defines the supported Billing Plan values.
1258
+ */
1259
+ pendingBillingPlan?: BusinessBillingState_pendingBillingPlan | null;
1252
1260
  /**
1253
1261
  * Gets or sets the number of phone numbers included in the business subscription.
1254
1262
  */
1255
1263
  phoneNumberQuantity?: UntypedNode | null;
1264
+ /**
1265
+ * Current plan renewal date.
1266
+ */
1267
+ planRenewalAt?: Date | null;
1256
1268
  }
1257
1269
  /**
1258
1270
  * Gets or sets the customer-safe payment recovery state for the business.
1259
1271
  */
1260
1272
  export interface BusinessBillingState_dunning extends BusinessDunningInfo, Parsable {
1261
1273
  }
1274
+ export type BusinessBillingState_pendingBillingPlan = (typeof BusinessBillingState_pendingBillingPlanObject)[keyof typeof BusinessBillingState_pendingBillingPlanObject];
1262
1275
  /**
1263
1276
  * API DTO containing business compliance policy data used by Leadping API contracts.
1264
1277
  */
@@ -1533,6 +1546,10 @@ export interface BusinessRequest extends AdditionalDataHolder, Parsable {
1533
1546
  * Name used for invoices, receipts, and payment processor billing records.
1534
1547
  */
1535
1548
  billingName?: string | null;
1549
+ /**
1550
+ * Tax identifier printed on billing documents. This may differ from the business verification EIN.
1551
+ */
1552
+ billingTaxId?: string | null;
1536
1553
  /**
1537
1554
  * Compliance policy configuration for the business.
1538
1555
  */
@@ -1655,6 +1672,10 @@ export interface BusinessResponse extends AdditionalDataHolder, Parsable {
1655
1672
  * Customer-safe billing state for this business.
1656
1673
  */
1657
1674
  billingState?: BusinessResponse_billingState | null;
1675
+ /**
1676
+ * Tax identifier printed on billing documents. This may differ from the business verification EIN.
1677
+ */
1678
+ billingTaxId?: string | null;
1658
1679
  /**
1659
1680
  * Compliance policy configuration for the business.
1660
1681
  */
@@ -3056,6 +3077,18 @@ export declare function createLeadResponse_currentDispositionFromDiscriminatorVa
3056
3077
  * @returns {LeadResponse}
3057
3078
  */
3058
3079
  export declare function createLeadResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3080
+ /**
3081
+ * Creates a new instance of the appropriate class based on discriminator value
3082
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3083
+ * @returns {LeadStatusRequest}
3084
+ */
3085
+ export declare function createLeadStatusRequestFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3086
+ /**
3087
+ * Creates a new instance of the appropriate class based on discriminator value
3088
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3089
+ * @returns {LeadStatusResponse}
3090
+ */
3091
+ export declare function createLeadStatusResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3059
3092
  /**
3060
3093
  * Creates a new instance of the appropriate class based on discriminator value
3061
3094
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3497,6 +3530,12 @@ export declare function createSourceTableRowFromDiscriminatorValue(parseNode: Pa
3497
3530
  * @returns {StreetAddress}
3498
3531
  */
3499
3532
  export declare function createStreetAddressFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3533
+ /**
3534
+ * Creates a new instance of the appropriate class based on discriminator value
3535
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3536
+ * @returns {StripeInvoiceResponse}
3537
+ */
3538
+ export declare function createStripeInvoiceResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3500
3539
  /**
3501
3540
  * Creates a new instance of the appropriate class based on discriminator value
3502
3541
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3683,6 +3722,12 @@ export declare function createUserDataExportResponseFromDiscriminatorValue(parse
3683
3722
  * @returns {UserIdentity}
3684
3723
  */
3685
3724
  export declare function createUserIdentityFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3725
+ /**
3726
+ * Creates a new instance of the appropriate class based on discriminator value
3727
+ * @param parseNode The parse node to use to read the discriminator value and create the object
3728
+ * @returns {UserNotificationPreferences_smsConsentTrustedFormCertificate}
3729
+ */
3730
+ export declare function createUserNotificationPreferences_smsConsentTrustedFormCertificateFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
3686
3731
  /**
3687
3732
  * Creates a new instance of the appropriate class based on discriminator value
3688
3733
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4896,6 +4941,18 @@ export declare function deserializeIntoLeadResponse(leadResponse?: Partial<LeadR
4896
4941
  * @returns {Record<string, (node: ParseNode) => void>}
4897
4942
  */
4898
4943
  export declare function deserializeIntoLeadResponse_currentDisposition(leadResponse_currentDisposition?: Partial<LeadResponse_currentDisposition> | undefined): Record<string, (node: ParseNode) => void>;
4944
+ /**
4945
+ * The deserialization information for the current model
4946
+ * @param LeadStatusRequest The instance to deserialize into.
4947
+ * @returns {Record<string, (node: ParseNode) => void>}
4948
+ */
4949
+ export declare function deserializeIntoLeadStatusRequest(leadStatusRequest?: Partial<LeadStatusRequest> | undefined): Record<string, (node: ParseNode) => void>;
4950
+ /**
4951
+ * The deserialization information for the current model
4952
+ * @param LeadStatusResponse The instance to deserialize into.
4953
+ * @returns {Record<string, (node: ParseNode) => void>}
4954
+ */
4955
+ export declare function deserializeIntoLeadStatusResponse(leadStatusResponse?: Partial<LeadStatusResponse> | undefined): Record<string, (node: ParseNode) => void>;
4899
4956
  /**
4900
4957
  * The deserialization information for the current model
4901
4958
  * @param LeadTableRow The instance to deserialize into.
@@ -5328,6 +5385,12 @@ export declare function deserializeIntoSourceTableRow_user(sourceTableRow_user?:
5328
5385
  * @returns {Record<string, (node: ParseNode) => void>}
5329
5386
  */
5330
5387
  export declare function deserializeIntoStreetAddress(streetAddress?: Partial<StreetAddress> | undefined): Record<string, (node: ParseNode) => void>;
5388
+ /**
5389
+ * The deserialization information for the current model
5390
+ * @param StripeInvoiceResponse The instance to deserialize into.
5391
+ * @returns {Record<string, (node: ParseNode) => void>}
5392
+ */
5393
+ export declare function deserializeIntoStripeInvoiceResponse(stripeInvoiceResponse?: Partial<StripeInvoiceResponse> | undefined): Record<string, (node: ParseNode) => void>;
5331
5394
  /**
5332
5395
  * The deserialization information for the current model
5333
5396
  * @param StripePaymentMethodResponse The instance to deserialize into.
@@ -5520,6 +5583,12 @@ export declare function deserializeIntoUserIdentity(userIdentity?: Partial<UserI
5520
5583
  * @returns {Record<string, (node: ParseNode) => void>}
5521
5584
  */
5522
5585
  export declare function deserializeIntoUserNotificationPreferences(userNotificationPreferences?: Partial<UserNotificationPreferences> | undefined): Record<string, (node: ParseNode) => void>;
5586
+ /**
5587
+ * The deserialization information for the current model
5588
+ * @param UserNotificationPreferences_smsConsentTrustedFormCertificate The instance to deserialize into.
5589
+ * @returns {Record<string, (node: ParseNode) => void>}
5590
+ */
5591
+ export declare function deserializeIntoUserNotificationPreferences_smsConsentTrustedFormCertificate(userNotificationPreferences_smsConsentTrustedFormCertificate?: Partial<UserNotificationPreferences_smsConsentTrustedFormCertificate> | undefined): Record<string, (node: ParseNode) => void>;
5523
5592
  /**
5524
5593
  * The deserialization information for the current model
5525
5594
  * @param UserRequest The instance to deserialize into.
@@ -5580,6 +5649,7 @@ export declare function deserializeIntoUserResponse_notificationPreferences(user
5580
5649
  * @returns {Record<string, (node: ParseNode) => void>}
5581
5650
  */
5582
5651
  export declare function deserializeIntoWalletResponse(walletResponse?: Partial<WalletResponse> | undefined): Record<string, (node: ParseNode) => void>;
5652
+ export type DispositionCategory = (typeof DispositionCategoryObject)[keyof typeof DispositionCategoryObject];
5583
5653
  /**
5584
5654
  * API response containing disposition export data returned to callers.
5585
5655
  */
@@ -6966,6 +7036,59 @@ export interface LeadResponse extends AdditionalDataHolder, Parsable {
6966
7036
  */
6967
7037
  export interface LeadResponse_currentDisposition extends CurrentDispositionSummary, Parsable {
6968
7038
  }
7039
+ export interface LeadStatusRequest extends AdditionalDataHolder, Parsable {
7040
+ /**
7041
+ * Controlled disposition categories used for reporting, automation, and analytics.
7042
+ */
7043
+ category?: LeadStatusRequest_category | null;
7044
+ /**
7045
+ * The color property
7046
+ */
7047
+ color?: string | null;
7048
+ /**
7049
+ * The name property
7050
+ */
7051
+ name?: string | null;
7052
+ /**
7053
+ * The sortOrder property
7054
+ */
7055
+ sortOrder?: UntypedNode | null;
7056
+ }
7057
+ export type LeadStatusRequest_category = (typeof LeadStatusRequest_categoryObject)[keyof typeof LeadStatusRequest_categoryObject];
7058
+ export interface LeadStatusResponse extends AdditionalDataHolder, Parsable {
7059
+ /**
7060
+ * The businessId property
7061
+ */
7062
+ businessId?: string | null;
7063
+ /**
7064
+ * Controlled disposition categories used for reporting, automation, and analytics.
7065
+ */
7066
+ category?: DispositionCategory | null;
7067
+ /**
7068
+ * The color property
7069
+ */
7070
+ color?: string | null;
7071
+ /**
7072
+ * The id property
7073
+ */
7074
+ id?: string | null;
7075
+ /**
7076
+ * The isArchived property
7077
+ */
7078
+ isArchived?: boolean | null;
7079
+ /**
7080
+ * The modifiedAt property
7081
+ */
7082
+ modifiedAt?: Date | null;
7083
+ /**
7084
+ * The name property
7085
+ */
7086
+ name?: string | null;
7087
+ /**
7088
+ * The sortOrder property
7089
+ */
7090
+ sortOrder?: number | null;
7091
+ }
6969
7092
  /**
6970
7093
  * List item schema for Leadping API lead table row results shown in searchable tables.
6971
7094
  */
@@ -9247,6 +9370,20 @@ export declare function serializeLeadResponse(writer: SerializationWriter, leadR
9247
9370
  * @param writer Serialization writer to use to serialize this model
9248
9371
  */
9249
9372
  export declare function serializeLeadResponse_currentDisposition(writer: SerializationWriter, leadResponse_currentDisposition?: Partial<LeadResponse_currentDisposition> | undefined | null, isSerializingDerivedType?: boolean): void;
9373
+ /**
9374
+ * Serializes information the current object
9375
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9376
+ * @param LeadStatusRequest The instance to serialize from.
9377
+ * @param writer Serialization writer to use to serialize this model
9378
+ */
9379
+ export declare function serializeLeadStatusRequest(writer: SerializationWriter, leadStatusRequest?: Partial<LeadStatusRequest> | undefined | null, isSerializingDerivedType?: boolean): void;
9380
+ /**
9381
+ * Serializes information the current object
9382
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9383
+ * @param LeadStatusResponse The instance to serialize from.
9384
+ * @param writer Serialization writer to use to serialize this model
9385
+ */
9386
+ export declare function serializeLeadStatusResponse(writer: SerializationWriter, leadStatusResponse?: Partial<LeadStatusResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
9250
9387
  /**
9251
9388
  * Serializes information the current object
9252
9389
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9751,6 +9888,13 @@ export declare function serializeSourceTableRow_user(writer: SerializationWriter
9751
9888
  * @param writer Serialization writer to use to serialize this model
9752
9889
  */
9753
9890
  export declare function serializeStreetAddress(writer: SerializationWriter, streetAddress?: Partial<StreetAddress> | undefined | null, isSerializingDerivedType?: boolean): void;
9891
+ /**
9892
+ * Serializes information the current object
9893
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
9894
+ * @param StripeInvoiceResponse The instance to serialize from.
9895
+ * @param writer Serialization writer to use to serialize this model
9896
+ */
9897
+ export declare function serializeStripeInvoiceResponse(writer: SerializationWriter, stripeInvoiceResponse?: Partial<StripeInvoiceResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
9754
9898
  /**
9755
9899
  * Serializes information the current object
9756
9900
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9975,6 +10119,13 @@ export declare function serializeUserIdentity(writer: SerializationWriter, userI
9975
10119
  * @param writer Serialization writer to use to serialize this model
9976
10120
  */
9977
10121
  export declare function serializeUserNotificationPreferences(writer: SerializationWriter, userNotificationPreferences?: Partial<UserNotificationPreferences> | undefined | null, isSerializingDerivedType?: boolean): void;
10122
+ /**
10123
+ * Serializes information the current object
10124
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
10125
+ * @param UserNotificationPreferences_smsConsentTrustedFormCertificate The instance to serialize from.
10126
+ * @param writer Serialization writer to use to serialize this model
10127
+ */
10128
+ export declare function serializeUserNotificationPreferences_smsConsentTrustedFormCertificate(writer: SerializationWriter, userNotificationPreferences_smsConsentTrustedFormCertificate?: Partial<UserNotificationPreferences_smsConsentTrustedFormCertificate> | undefined | null, isSerializingDerivedType?: boolean): void;
9978
10129
  /**
9979
10130
  * Serializes information the current object
9980
10131
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10741,6 +10892,35 @@ export interface StreetAddress extends AdditionalDataHolder, Parsable {
10741
10892
  */
10742
10893
  state?: string | null;
10743
10894
  }
10895
+ /**
10896
+ * Customer-safe Stripe invoice summary for billing history.
10897
+ */
10898
+ export interface StripeInvoiceResponse extends AdditionalDataHolder, Parsable {
10899
+ /**
10900
+ * The amount property
10901
+ */
10902
+ amount?: number | null;
10903
+ /**
10904
+ * The createdAt property
10905
+ */
10906
+ createdAt?: Date | null;
10907
+ /**
10908
+ * The hostedInvoiceUrl property
10909
+ */
10910
+ hostedInvoiceUrl?: string | null;
10911
+ /**
10912
+ * The id property
10913
+ */
10914
+ id?: string | null;
10915
+ /**
10916
+ * The number property
10917
+ */
10918
+ number?: string | null;
10919
+ /**
10920
+ * The status property
10921
+ */
10922
+ status?: string | null;
10923
+ }
10744
10924
  /**
10745
10925
  * API DTO containing stripe payment method data used by Leadping API contracts.
10746
10926
  */
@@ -11702,6 +11882,18 @@ export interface UserNotificationPreferences extends AdditionalDataHolder, Parsa
11702
11882
  * Indicates whether payment failed SMS functionality is enabled for this Leadping user notification preferences.
11703
11883
  */
11704
11884
  paymentFailedSmsEnabled?: boolean | null;
11885
+ /**
11886
+ * Whether the user has consented to receive Leadping account notification SMS messages.
11887
+ */
11888
+ smsConsentOptedIn?: boolean | null;
11889
+ /**
11890
+ * The TrustedForm certificate captured for the user's most recent SMS opt-in.
11891
+ */
11892
+ smsConsentTrustedFormCertificate?: UserNotificationPreferences_smsConsentTrustedFormCertificate | null;
11893
+ /**
11894
+ * When the user's Leadping notification SMS consent was last changed.
11895
+ */
11896
+ smsConsentUpdatedAt?: Date | null;
11705
11897
  /**
11706
11898
  * Indicates whether subscription renewing email functionality is enabled for this Leadping user notification preferences.
11707
11899
  */
@@ -11735,6 +11927,11 @@ export interface UserNotificationPreferences extends AdditionalDataHolder, Parsa
11735
11927
  */
11736
11928
  usageLimitHitEnabled?: boolean | null;
11737
11929
  }
11930
+ /**
11931
+ * The TrustedForm certificate captured for the user's most recent SMS opt-in.
11932
+ */
11933
+ export interface UserNotificationPreferences_smsConsentTrustedFormCertificate extends Parsable, TrustedFormCertificate {
11934
+ }
11738
11935
  /**
11739
11936
  * Request schema for the Leadping API user profile request, including the fields clients can send.
11740
11937
  */
@@ -12065,6 +12262,13 @@ export declare const BillingPlanObject: {
12065
12262
  readonly Annual: "Annual";
12066
12263
  readonly Monthly: "Monthly";
12067
12264
  };
12265
+ /**
12266
+ * Defines the supported Billing Plan values.
12267
+ */
12268
+ export declare const BusinessBillingState_pendingBillingPlanObject: {
12269
+ readonly Annual: "Annual";
12270
+ readonly Monthly: "Monthly";
12271
+ };
12068
12272
  /**
12069
12273
  * Defines the supported Business Invitation Status values.
12070
12274
  */
@@ -12357,6 +12561,17 @@ export declare const CustomerActivationStatusObject: {
12357
12561
  readonly BlockedRequiresOperatorAction: "BlockedRequiresOperatorAction";
12358
12562
  readonly ManuallyBypassed: "ManuallyBypassed";
12359
12563
  };
12564
+ /**
12565
+ * Controlled disposition categories used for reporting, automation, and analytics.
12566
+ */
12567
+ export declare const DispositionCategoryObject: {
12568
+ readonly Open: "Open";
12569
+ readonly Qualified: "Qualified";
12570
+ readonly Converted: "Converted";
12571
+ readonly Lost: "Lost";
12572
+ readonly Invalid: "Invalid";
12573
+ readonly Duplicate: "Duplicate";
12574
+ };
12360
12575
  /**
12361
12576
  * Controlled disposition categories used for reporting, automation, and analytics.
12362
12577
  */
@@ -12593,6 +12808,17 @@ export declare const LeadProfile_maritalStatusObject: {
12593
12808
  readonly Separated: "Separated";
12594
12809
  readonly Divorced: "Divorced";
12595
12810
  };
12811
+ /**
12812
+ * Controlled disposition categories used for reporting, automation, and analytics.
12813
+ */
12814
+ export declare const LeadStatusRequest_categoryObject: {
12815
+ readonly Open: "Open";
12816
+ readonly Qualified: "Qualified";
12817
+ readonly Converted: "Converted";
12818
+ readonly Lost: "Lost";
12819
+ readonly Invalid: "Invalid";
12820
+ readonly Duplicate: "Duplicate";
12821
+ };
12596
12822
  /**
12597
12823
  * Defines the supported Notification Priority values.
12598
12824
  */