@leadping/sdk 1.0.21 → 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
  */
@@ -1707,6 +1728,10 @@ export interface BusinessResponse extends AdditionalDataHolder, Parsable {
1707
1728
  * Alternate business name or DBA shown in Leadping.
1708
1729
  */
1709
1730
  secondaryName?: string | null;
1731
+ /**
1732
+ * Defines the supported User Setup Status values.
1733
+ */
1734
+ setupStatus?: BusinessResponse_setupStatus | null;
1710
1735
  /**
1711
1736
  * Defines the supported Business Setup Step values.
1712
1737
  */
@@ -1767,6 +1792,7 @@ export interface BusinessResponse_compliancePolicy extends BusinessCompliancePol
1767
1792
  */
1768
1793
  export interface BusinessResponse_einDocument extends IdNameValue, Parsable {
1769
1794
  }
1795
+ export type BusinessResponse_setupStatus = (typeof BusinessResponse_setupStatusObject)[keyof typeof BusinessResponse_setupStatusObject];
1770
1796
  export type BusinessResponse_setupStep = (typeof BusinessResponse_setupStepObject)[keyof typeof BusinessResponse_setupStepObject];
1771
1797
  /**
1772
1798
  * Leadping website record connected to this business.
@@ -3051,6 +3077,18 @@ export declare function createLeadResponse_currentDispositionFromDiscriminatorVa
3051
3077
  * @returns {LeadResponse}
3052
3078
  */
3053
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>);
3054
3092
  /**
3055
3093
  * Creates a new instance of the appropriate class based on discriminator value
3056
3094
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3492,6 +3530,12 @@ export declare function createSourceTableRowFromDiscriminatorValue(parseNode: Pa
3492
3530
  * @returns {StreetAddress}
3493
3531
  */
3494
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>);
3495
3539
  /**
3496
3540
  * Creates a new instance of the appropriate class based on discriminator value
3497
3541
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -3678,6 +3722,12 @@ export declare function createUserDataExportResponseFromDiscriminatorValue(parse
3678
3722
  * @returns {UserIdentity}
3679
3723
  */
3680
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>);
3681
3731
  /**
3682
3732
  * Creates a new instance of the appropriate class based on discriminator value
3683
3733
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -4891,6 +4941,18 @@ export declare function deserializeIntoLeadResponse(leadResponse?: Partial<LeadR
4891
4941
  * @returns {Record<string, (node: ParseNode) => void>}
4892
4942
  */
4893
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>;
4894
4956
  /**
4895
4957
  * The deserialization information for the current model
4896
4958
  * @param LeadTableRow The instance to deserialize into.
@@ -5323,6 +5385,12 @@ export declare function deserializeIntoSourceTableRow_user(sourceTableRow_user?:
5323
5385
  * @returns {Record<string, (node: ParseNode) => void>}
5324
5386
  */
5325
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>;
5326
5394
  /**
5327
5395
  * The deserialization information for the current model
5328
5396
  * @param StripePaymentMethodResponse The instance to deserialize into.
@@ -5515,6 +5583,12 @@ export declare function deserializeIntoUserIdentity(userIdentity?: Partial<UserI
5515
5583
  * @returns {Record<string, (node: ParseNode) => void>}
5516
5584
  */
5517
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>;
5518
5592
  /**
5519
5593
  * The deserialization information for the current model
5520
5594
  * @param UserRequest The instance to deserialize into.
@@ -5575,6 +5649,7 @@ export declare function deserializeIntoUserResponse_notificationPreferences(user
5575
5649
  * @returns {Record<string, (node: ParseNode) => void>}
5576
5650
  */
5577
5651
  export declare function deserializeIntoWalletResponse(walletResponse?: Partial<WalletResponse> | undefined): Record<string, (node: ParseNode) => void>;
5652
+ export type DispositionCategory = (typeof DispositionCategoryObject)[keyof typeof DispositionCategoryObject];
5578
5653
  /**
5579
5654
  * API response containing disposition export data returned to callers.
5580
5655
  */
@@ -6961,6 +7036,59 @@ export interface LeadResponse extends AdditionalDataHolder, Parsable {
6961
7036
  */
6962
7037
  export interface LeadResponse_currentDisposition extends CurrentDispositionSummary, Parsable {
6963
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
+ }
6964
7092
  /**
6965
7093
  * List item schema for Leadping API lead table row results shown in searchable tables.
6966
7094
  */
@@ -9242,6 +9370,20 @@ export declare function serializeLeadResponse(writer: SerializationWriter, leadR
9242
9370
  * @param writer Serialization writer to use to serialize this model
9243
9371
  */
9244
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;
9245
9387
  /**
9246
9388
  * Serializes information the current object
9247
9389
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9746,6 +9888,13 @@ export declare function serializeSourceTableRow_user(writer: SerializationWriter
9746
9888
  * @param writer Serialization writer to use to serialize this model
9747
9889
  */
9748
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;
9749
9898
  /**
9750
9899
  * Serializes information the current object
9751
9900
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -9970,6 +10119,13 @@ export declare function serializeUserIdentity(writer: SerializationWriter, userI
9970
10119
  * @param writer Serialization writer to use to serialize this model
9971
10120
  */
9972
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;
9973
10129
  /**
9974
10130
  * Serializes information the current object
9975
10131
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -10736,6 +10892,35 @@ export interface StreetAddress extends AdditionalDataHolder, Parsable {
10736
10892
  */
10737
10893
  state?: string | null;
10738
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
+ }
10739
10924
  /**
10740
10925
  * API DTO containing stripe payment method data used by Leadping API contracts.
10741
10926
  */
@@ -11697,6 +11882,18 @@ export interface UserNotificationPreferences extends AdditionalDataHolder, Parsa
11697
11882
  * Indicates whether payment failed SMS functionality is enabled for this Leadping user notification preferences.
11698
11883
  */
11699
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;
11700
11897
  /**
11701
11898
  * Indicates whether subscription renewing email functionality is enabled for this Leadping user notification preferences.
11702
11899
  */
@@ -11730,6 +11927,11 @@ export interface UserNotificationPreferences extends AdditionalDataHolder, Parsa
11730
11927
  */
11731
11928
  usageLimitHitEnabled?: boolean | null;
11732
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
+ }
11733
11935
  /**
11734
11936
  * Request schema for the Leadping API user profile request, including the fields clients can send.
11735
11937
  */
@@ -12060,6 +12262,13 @@ export declare const BillingPlanObject: {
12060
12262
  readonly Annual: "Annual";
12061
12263
  readonly Monthly: "Monthly";
12062
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
+ };
12063
12272
  /**
12064
12273
  * Defines the supported Business Invitation Status values.
12065
12274
  */
@@ -12086,6 +12295,20 @@ export declare const BusinessResponse_billingPlanObject: {
12086
12295
  readonly Annual: "Annual";
12087
12296
  readonly Monthly: "Monthly";
12088
12297
  };
12298
+ /**
12299
+ * Defines the supported User Setup Status values.
12300
+ */
12301
+ export declare const BusinessResponse_setupStatusObject: {
12302
+ readonly Personal: "Personal";
12303
+ readonly Business: "Business";
12304
+ readonly Details: "Details";
12305
+ readonly Compliance: "Compliance";
12306
+ readonly Phone: "Phone";
12307
+ readonly Plan: "Plan";
12308
+ readonly Billing: "Billing";
12309
+ readonly Review: "Review";
12310
+ readonly Complete: "Complete";
12311
+ };
12089
12312
  /**
12090
12313
  * Defines the supported Business Setup Step values.
12091
12314
  */
@@ -12338,6 +12561,17 @@ export declare const CustomerActivationStatusObject: {
12338
12561
  readonly BlockedRequiresOperatorAction: "BlockedRequiresOperatorAction";
12339
12562
  readonly ManuallyBypassed: "ManuallyBypassed";
12340
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
+ };
12341
12575
  /**
12342
12576
  * Controlled disposition categories used for reporting, automation, and analytics.
12343
12577
  */
@@ -12574,6 +12808,17 @@ export declare const LeadProfile_maritalStatusObject: {
12574
12808
  readonly Separated: "Separated";
12575
12809
  readonly Divorced: "Divorced";
12576
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
+ };
12577
12822
  /**
12578
12823
  * Defines the supported Notification Priority values.
12579
12824
  */