@leadping/sdk 1.0.15 → 1.0.17
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.
- package/dist/businesses/apiKeys/my/index.d.ts +2 -2
- package/dist/leadpingOpenApiClient.d.ts.map +1 -1
- package/dist/leadpingOpenApiClient.js +2 -1
- package/dist/leadpingOpenApiClient.js.map +1 -1
- package/dist/models/index.d.ts +229 -346
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +164 -324
- package/dist/models/index.js.map +1 -1
- package/dist/paymentMethods/index.d.ts +19 -1
- package/dist/paymentMethods/index.d.ts.map +1 -1
- package/dist/paymentMethods/index.js +18 -1
- package/dist/paymentMethods/index.js.map +1 -1
- package/dist/paymentMethods/item/defaultEscaped/index.d.ts +30 -0
- package/dist/paymentMethods/item/defaultEscaped/index.d.ts.map +1 -0
- package/dist/paymentMethods/item/defaultEscaped/index.js +27 -0
- package/dist/paymentMethods/item/defaultEscaped/index.js.map +1 -0
- package/dist/paymentMethods/item/index.d.ts +10 -1
- package/dist/paymentMethods/item/index.d.ts.map +1 -1
- package/dist/paymentMethods/item/index.js +10 -0
- package/dist/paymentMethods/item/index.js.map +1 -1
- package/dist/phoneCall/initiate/index.d.ts +2 -2
- package/dist/phoneCall/item/hangup/index.d.ts +2 -2
- package/dist/phoneCall/item/status/index.d.ts +2 -2
- package/dist/phoneCall/item/transfer/index.d.ts +3 -3
- package/dist/suppressions/check/index.d.ts +2 -2
- package/dist/suppressions/index.d.ts +2 -2
- package/dist/suppressions/release/index.d.ts +2 -2
- package/dist/telephony/login/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -381,6 +381,15 @@ export function createBusinessActivationStateFromDiscriminatorValue(parseNode) {
|
|
|
381
381
|
export function createBusinessCompliancePolicyFromDiscriminatorValue(parseNode) {
|
|
382
382
|
return deserializeIntoBusinessCompliancePolicy;
|
|
383
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
|
+
}
|
|
384
393
|
/**
|
|
385
394
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
386
395
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -597,6 +606,15 @@ export function createBusinessStripeInfo_dunningFromDiscriminatorValue(parseNode
|
|
|
597
606
|
export function createBusinessStripeInfoFromDiscriminatorValue(parseNode) {
|
|
598
607
|
return deserializeIntoBusinessStripeInfo;
|
|
599
608
|
}
|
|
609
|
+
/**
|
|
610
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
611
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
612
|
+
* @returns {BusinessSubscriptionCancellationInfo}
|
|
613
|
+
*/
|
|
614
|
+
// @ts-ignore
|
|
615
|
+
export function createBusinessSubscriptionCancellationInfoFromDiscriminatorValue(parseNode) {
|
|
616
|
+
return deserializeIntoBusinessSubscriptionCancellationInfo;
|
|
617
|
+
}
|
|
600
618
|
/**
|
|
601
619
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
602
620
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2199,15 +2217,6 @@ export function createUserDataExportFileFromDiscriminatorValue(parseNode) {
|
|
|
2199
2217
|
export function createUserDataExportResponseFromDiscriminatorValue(parseNode) {
|
|
2200
2218
|
return deserializeIntoUserDataExportResponse;
|
|
2201
2219
|
}
|
|
2202
|
-
/**
|
|
2203
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2204
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2205
|
-
* @returns {UserDunningInfo}
|
|
2206
|
-
*/
|
|
2207
|
-
// @ts-ignore
|
|
2208
|
-
export function createUserDunningInfoFromDiscriminatorValue(parseNode) {
|
|
2209
|
-
return deserializeIntoUserDunningInfo;
|
|
2210
|
-
}
|
|
2211
2220
|
/**
|
|
2212
2221
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2213
2222
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2226,15 +2235,6 @@ export function createUserIdentityFromDiscriminatorValue(parseNode) {
|
|
|
2226
2235
|
export function createUserNotificationPreferencesFromDiscriminatorValue(parseNode) {
|
|
2227
2236
|
return deserializeIntoUserNotificationPreferences;
|
|
2228
2237
|
}
|
|
2229
|
-
/**
|
|
2230
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2231
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2232
|
-
* @returns {UserRequest_business}
|
|
2233
|
-
*/
|
|
2234
|
-
// @ts-ignore
|
|
2235
|
-
export function createUserRequest_businessFromDiscriminatorValue(parseNode) {
|
|
2236
|
-
return deserializeIntoUserRequest_business;
|
|
2237
|
-
}
|
|
2238
2238
|
/**
|
|
2239
2239
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2240
2240
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2271,15 +2271,6 @@ export function createUserRequest_notificationPreferencesFromDiscriminatorValue(
|
|
|
2271
2271
|
export function createUserRequestFromDiscriminatorValue(parseNode) {
|
|
2272
2272
|
return deserializeIntoUserRequest;
|
|
2273
2273
|
}
|
|
2274
|
-
/**
|
|
2275
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2276
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2277
|
-
* @returns {UserResponse_business}
|
|
2278
|
-
*/
|
|
2279
|
-
// @ts-ignore
|
|
2280
|
-
export function createUserResponse_businessFromDiscriminatorValue(parseNode) {
|
|
2281
|
-
return deserializeIntoUserResponse_business;
|
|
2282
|
-
}
|
|
2283
2274
|
/**
|
|
2284
2275
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2285
2276
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2325,42 +2316,6 @@ export function createUserResponse_stripeInfoFromDiscriminatorValue(parseNode) {
|
|
|
2325
2316
|
export function createUserResponseFromDiscriminatorValue(parseNode) {
|
|
2326
2317
|
return deserializeIntoUserResponse;
|
|
2327
2318
|
}
|
|
2328
|
-
/**
|
|
2329
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2330
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2331
|
-
* @returns {UserStripeInfo_cancellation}
|
|
2332
|
-
*/
|
|
2333
|
-
// @ts-ignore
|
|
2334
|
-
export function createUserStripeInfo_cancellationFromDiscriminatorValue(parseNode) {
|
|
2335
|
-
return deserializeIntoUserStripeInfo_cancellation;
|
|
2336
|
-
}
|
|
2337
|
-
/**
|
|
2338
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2339
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2340
|
-
* @returns {UserStripeInfo_dunning}
|
|
2341
|
-
*/
|
|
2342
|
-
// @ts-ignore
|
|
2343
|
-
export function createUserStripeInfo_dunningFromDiscriminatorValue(parseNode) {
|
|
2344
|
-
return deserializeIntoUserStripeInfo_dunning;
|
|
2345
|
-
}
|
|
2346
|
-
/**
|
|
2347
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2348
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2349
|
-
* @returns {UserStripeInfo}
|
|
2350
|
-
*/
|
|
2351
|
-
// @ts-ignore
|
|
2352
|
-
export function createUserStripeInfoFromDiscriminatorValue(parseNode) {
|
|
2353
|
-
return deserializeIntoUserStripeInfo;
|
|
2354
|
-
}
|
|
2355
|
-
/**
|
|
2356
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
2357
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2358
|
-
* @returns {UserSubscriptionCancellationInfo}
|
|
2359
|
-
*/
|
|
2360
|
-
// @ts-ignore
|
|
2361
|
-
export function createUserSubscriptionCancellationInfoFromDiscriminatorValue(parseNode) {
|
|
2362
|
-
return deserializeIntoUserSubscriptionCancellationInfo;
|
|
2363
|
-
}
|
|
2364
2319
|
/**
|
|
2365
2320
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
2366
2321
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -3083,6 +3038,27 @@ export function deserializeIntoBusinessCompliancePolicy(businessCompliancePolicy
|
|
|
3083
3038
|
"requireTrustedFormForAutomations": n => { businessCompliancePolicy.requireTrustedFormForAutomations = n.getBooleanValue(); },
|
|
3084
3039
|
};
|
|
3085
3040
|
}
|
|
3041
|
+
/**
|
|
3042
|
+
* The deserialization information for the current model
|
|
3043
|
+
* @param BusinessDunningInfo The instance to deserialize into.
|
|
3044
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3045
|
+
*/
|
|
3046
|
+
// @ts-ignore
|
|
3047
|
+
export function deserializeIntoBusinessDunningInfo(businessDunningInfo = {}) {
|
|
3048
|
+
return {
|
|
3049
|
+
"finalCancellationAt": n => { businessDunningInfo.finalCancellationAt = n.getDateValue(); },
|
|
3050
|
+
"gracePeriodEndsAt": n => { businessDunningInfo.gracePeriodEndsAt = n.getDateValue(); },
|
|
3051
|
+
"lastFailedInvoiceId": n => { businessDunningInfo.lastFailedInvoiceId = n.getStringValue(); },
|
|
3052
|
+
"lastFailedInvoiceStatus": n => { businessDunningInfo.lastFailedInvoiceStatus = n.getStringValue(); },
|
|
3053
|
+
"lastUpdatedAt": n => { businessDunningInfo.lastUpdatedAt = n.getDateValue(); },
|
|
3054
|
+
"nextRetryAt": n => { businessDunningInfo.nextRetryAt = n.getDateValue(); },
|
|
3055
|
+
"outboundRestrictedAt": n => { businessDunningInfo.outboundRestrictedAt = n.getDateValue(); },
|
|
3056
|
+
"outboundSuspendedAt": n => { businessDunningInfo.outboundSuspendedAt = n.getDateValue(); },
|
|
3057
|
+
"paymentFailedAt": n => { businessDunningInfo.paymentFailedAt = n.getDateValue(); },
|
|
3058
|
+
"retryAttemptCount": n => { businessDunningInfo.retryAttemptCount = n.getNumberValue(); },
|
|
3059
|
+
"stage": n => { businessDunningInfo.stage = n.getStringValue(); },
|
|
3060
|
+
};
|
|
3061
|
+
}
|
|
3086
3062
|
/**
|
|
3087
3063
|
* The deserialization information for the current model
|
|
3088
3064
|
* @param BusinessInvitationRequest The instance to deserialize into.
|
|
@@ -3413,6 +3389,7 @@ export function deserializeIntoBusinessResponse_user(businessResponse_user = {})
|
|
|
3413
3389
|
// @ts-ignore
|
|
3414
3390
|
export function deserializeIntoBusinessStripeInfo(businessStripeInfo = {}) {
|
|
3415
3391
|
return {
|
|
3392
|
+
"businessUserAssignedQuantity": n => { businessStripeInfo.businessUserAssignedQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3416
3393
|
"businessUserQuantity": n => { businessStripeInfo.businessUserQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
3417
3394
|
"businessUserSubscriptionItemId": n => { businessStripeInfo.businessUserSubscriptionItemId = n.getStringValue(); },
|
|
3418
3395
|
"cancelAt": n => { businessStripeInfo.cancelAt = n.getDateValue(); },
|
|
@@ -3438,7 +3415,7 @@ export function deserializeIntoBusinessStripeInfo(businessStripeInfo = {}) {
|
|
|
3438
3415
|
// @ts-ignore
|
|
3439
3416
|
export function deserializeIntoBusinessStripeInfo_cancellation(businessStripeInfo_cancellation = {}) {
|
|
3440
3417
|
return {
|
|
3441
|
-
...
|
|
3418
|
+
...deserializeIntoBusinessSubscriptionCancellationInfo(businessStripeInfo_cancellation),
|
|
3442
3419
|
};
|
|
3443
3420
|
}
|
|
3444
3421
|
/**
|
|
@@ -3449,7 +3426,26 @@ export function deserializeIntoBusinessStripeInfo_cancellation(businessStripeInf
|
|
|
3449
3426
|
// @ts-ignore
|
|
3450
3427
|
export function deserializeIntoBusinessStripeInfo_dunning(businessStripeInfo_dunning = {}) {
|
|
3451
3428
|
return {
|
|
3452
|
-
...
|
|
3429
|
+
...deserializeIntoBusinessDunningInfo(businessStripeInfo_dunning),
|
|
3430
|
+
};
|
|
3431
|
+
}
|
|
3432
|
+
/**
|
|
3433
|
+
* The deserialization information for the current model
|
|
3434
|
+
* @param BusinessSubscriptionCancellationInfo The instance to deserialize into.
|
|
3435
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3436
|
+
*/
|
|
3437
|
+
// @ts-ignore
|
|
3438
|
+
export function deserializeIntoBusinessSubscriptionCancellationInfo(businessSubscriptionCancellationInfo = {}) {
|
|
3439
|
+
return {
|
|
3440
|
+
"cancelAtPeriodEnd": n => { businessSubscriptionCancellationInfo.cancelAtPeriodEnd = n.getBooleanValue(); },
|
|
3441
|
+
"competitor": n => { businessSubscriptionCancellationInfo.competitor = n.getStringValue(); },
|
|
3442
|
+
"missingFeature": n => { businessSubscriptionCancellationInfo.missingFeature = n.getStringValue(); },
|
|
3443
|
+
"notes": n => { businessSubscriptionCancellationInfo.notes = n.getStringValue(); },
|
|
3444
|
+
"reason": n => { businessSubscriptionCancellationInfo.reason = n.getStringValue(); },
|
|
3445
|
+
"reasonCode": n => { businessSubscriptionCancellationInfo.reasonCode = n.getStringValue(); },
|
|
3446
|
+
"requestedAt": n => { businessSubscriptionCancellationInfo.requestedAt = n.getDateValue(); },
|
|
3447
|
+
"requestedByUserId": n => { businessSubscriptionCancellationInfo.requestedByUserId = n.getStringValue(); },
|
|
3448
|
+
"technicalIssues": n => { businessSubscriptionCancellationInfo.technicalIssues = n.getStringValue(); },
|
|
3453
3449
|
};
|
|
3454
3450
|
}
|
|
3455
3451
|
/**
|
|
@@ -3463,6 +3459,7 @@ export function deserializeIntoBusinessSwitchOption(businessSwitchOption = {}) {
|
|
|
3463
3459
|
"activationStatus": n => { businessSwitchOption.activationStatus = n.getEnumValue(BusinessSwitchOption_activationStatusObject); },
|
|
3464
3460
|
"activationSummary": n => { businessSwitchOption.activationSummary = n.getStringValue(); },
|
|
3465
3461
|
"businessStatus": n => { businessSwitchOption.businessStatus = n.getEnumValue(BusinessSwitchOption_businessStatusObject); },
|
|
3462
|
+
"hasPaymentMethod": n => { businessSwitchOption.hasPaymentMethod = n.getBooleanValue(); },
|
|
3466
3463
|
"id": n => { businessSwitchOption.id = n.getStringValue(); },
|
|
3467
3464
|
"isCurrent": n => { businessSwitchOption.isCurrent = n.getBooleanValue(); },
|
|
3468
3465
|
"lastUsedAt": n => { businessSwitchOption.lastUsedAt = n.getDateValue(); },
|
|
@@ -3500,17 +3497,22 @@ export function deserializeIntoBusinessTableRow(businessTableRow = {}) {
|
|
|
3500
3497
|
"apiKeyLastUsedAt": n => { businessTableRow.apiKeyLastUsedAt = n.getDateValue(); },
|
|
3501
3498
|
"apiKeyPreview": n => { businessTableRow.apiKeyPreview = n.getStringValue(); },
|
|
3502
3499
|
"apiKeyTotalUses": n => { businessTableRow.apiKeyTotalUses = n.getNumberValue(); },
|
|
3500
|
+
"billingPlan": n => { businessTableRow.billingPlan = n.getEnumValue(BusinessTableRow_billingPlanObject); },
|
|
3503
3501
|
"businessId": n => { businessTableRow.businessId = n.getStringValue(); },
|
|
3504
3502
|
"businessName": n => { businessTableRow.businessName = n.getStringValue(); },
|
|
3505
3503
|
"enabled": n => { businessTableRow.enabled = n.getBooleanValue(); },
|
|
3506
3504
|
"id": n => { businessTableRow.id = n.getStringValue(); },
|
|
3507
3505
|
"industry": n => { businessTableRow.industry = n.getStringValue(); },
|
|
3506
|
+
"lastSubscriptionEventAt": n => { businessTableRow.lastSubscriptionEventAt = n.getDateValue(); },
|
|
3508
3507
|
"modifiedAt": n => { businessTableRow.modifiedAt = n.getDateValue(); },
|
|
3509
3508
|
"name": n => { businessTableRow.name = n.getStringValue(); },
|
|
3510
3509
|
"needsAdminReview": n => { businessTableRow.needsAdminReview = n.getBooleanValue(); },
|
|
3510
|
+
"paymentFailedAt": n => { businessTableRow.paymentFailedAt = n.getDateValue(); },
|
|
3511
3511
|
"phone": n => { businessTableRow.phone = n.getStringValue(); },
|
|
3512
3512
|
"setupStep": n => { businessTableRow.setupStep = n.getEnumValue(BusinessTableRow_setupStepObject); },
|
|
3513
3513
|
"status": n => { businessTableRow.status = n.getEnumValue(BusinessTableRow_statusObject); },
|
|
3514
|
+
"subscriptionCancelAt": n => { businessTableRow.subscriptionCancelAt = n.getDateValue(); },
|
|
3515
|
+
"subscriptionStatus": n => { businessTableRow.subscriptionStatus = n.getEnumValue(BusinessTableRow_subscriptionStatusObject); },
|
|
3514
3516
|
"tenDlcStatus": n => { businessTableRow.tenDlcStatus = n.getEnumValue(BusinessTableRow_tenDlcStatusObject); },
|
|
3515
3517
|
"userCount": n => { businessTableRow.userCount = n.getNumberValue(); },
|
|
3516
3518
|
"userId": n => { businessTableRow.userId = n.getStringValue(); },
|
|
@@ -5070,6 +5072,7 @@ export function deserializeIntoPhone(phone = {}) {
|
|
|
5070
5072
|
return {
|
|
5071
5073
|
"lookup": n => { phone.lookup = n.getObjectValue(createPhone_lookupFromDiscriminatorValue); },
|
|
5072
5074
|
"number": n => { phone.number = n.getStringValue(); },
|
|
5075
|
+
"phoneIdentityId": n => { phone.phoneIdentityId = n.getStringValue(); },
|
|
5073
5076
|
"type": n => { phone.type = n.getStringValue(); },
|
|
5074
5077
|
};
|
|
5075
5078
|
}
|
|
@@ -6648,8 +6651,6 @@ export function deserializeIntoUserCompliance(userCompliance = {}) {
|
|
|
6648
6651
|
"acceptedSms": n => { userCompliance.acceptedSms = n.getBooleanValue(); },
|
|
6649
6652
|
"acceptedTerms": n => { userCompliance.acceptedTerms = n.getBooleanValue(); },
|
|
6650
6653
|
"acceptedToSubscription": n => { userCompliance.acceptedToSubscription = n.getBooleanValue(); },
|
|
6651
|
-
"licensedProducts": n => { userCompliance.licensedProducts = n.getCollectionOfPrimitiveValues("string"); },
|
|
6652
|
-
"licensedStates": n => { userCompliance.licensedStates = n.getCollectionOfPrimitiveValues("string"); },
|
|
6653
6654
|
"trustedFormCertificates": n => { userCompliance.trustedFormCertificates = n.getCollectionOfObjectValues(createTrustedFormCertificateFromDiscriminatorValue); },
|
|
6654
6655
|
};
|
|
6655
6656
|
}
|
|
@@ -6692,27 +6693,6 @@ export function deserializeIntoUserDataExportResponse(userDataExportResponse = {
|
|
|
6692
6693
|
"status": n => { userDataExportResponse.status = n.getEnumValue(UserDataExportStatusesObject); },
|
|
6693
6694
|
};
|
|
6694
6695
|
}
|
|
6695
|
-
/**
|
|
6696
|
-
* The deserialization information for the current model
|
|
6697
|
-
* @param UserDunningInfo The instance to deserialize into.
|
|
6698
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6699
|
-
*/
|
|
6700
|
-
// @ts-ignore
|
|
6701
|
-
export function deserializeIntoUserDunningInfo(userDunningInfo = {}) {
|
|
6702
|
-
return {
|
|
6703
|
-
"finalCancellationAt": n => { userDunningInfo.finalCancellationAt = n.getDateValue(); },
|
|
6704
|
-
"gracePeriodEndsAt": n => { userDunningInfo.gracePeriodEndsAt = n.getDateValue(); },
|
|
6705
|
-
"lastFailedInvoiceId": n => { userDunningInfo.lastFailedInvoiceId = n.getStringValue(); },
|
|
6706
|
-
"lastFailedInvoiceStatus": n => { userDunningInfo.lastFailedInvoiceStatus = n.getStringValue(); },
|
|
6707
|
-
"lastUpdatedAt": n => { userDunningInfo.lastUpdatedAt = n.getDateValue(); },
|
|
6708
|
-
"nextRetryAt": n => { userDunningInfo.nextRetryAt = n.getDateValue(); },
|
|
6709
|
-
"outboundRestrictedAt": n => { userDunningInfo.outboundRestrictedAt = n.getDateValue(); },
|
|
6710
|
-
"outboundSuspendedAt": n => { userDunningInfo.outboundSuspendedAt = n.getDateValue(); },
|
|
6711
|
-
"paymentFailedAt": n => { userDunningInfo.paymentFailedAt = n.getDateValue(); },
|
|
6712
|
-
"retryAttemptCount": n => { userDunningInfo.retryAttemptCount = n.getNumberValue(); },
|
|
6713
|
-
"stage": n => { userDunningInfo.stage = n.getStringValue(); },
|
|
6714
|
-
};
|
|
6715
|
-
}
|
|
6716
6696
|
/**
|
|
6717
6697
|
* The deserialization information for the current model
|
|
6718
6698
|
* @param UserIdentity The instance to deserialize into.
|
|
@@ -6734,18 +6714,29 @@ export function deserializeIntoUserIdentity(userIdentity = {}) {
|
|
|
6734
6714
|
// @ts-ignore
|
|
6735
6715
|
export function deserializeIntoUserNotificationPreferences(userNotificationPreferences = {}) {
|
|
6736
6716
|
return {
|
|
6717
|
+
"automationFailedEmailEnabled": n => { userNotificationPreferences.automationFailedEmailEnabled = n.getBooleanValue(); },
|
|
6737
6718
|
"automationFailedEnabled": n => { userNotificationPreferences.automationFailedEnabled = n.getBooleanValue(); },
|
|
6719
|
+
"automationFailedSmsEnabled": n => { userNotificationPreferences.automationFailedSmsEnabled = n.getBooleanValue(); },
|
|
6738
6720
|
"billingEmailEnabled": n => { userNotificationPreferences.billingEmailEnabled = n.getBooleanValue(); },
|
|
6739
6721
|
"billingSmsEnabled": n => { userNotificationPreferences.billingSmsEnabled = n.getBooleanValue(); },
|
|
6722
|
+
"lowWalletBalanceEmailEnabled": n => { userNotificationPreferences.lowWalletBalanceEmailEnabled = n.getBooleanValue(); },
|
|
6740
6723
|
"lowWalletBalanceEnabled": n => { userNotificationPreferences.lowWalletBalanceEnabled = n.getBooleanValue(); },
|
|
6724
|
+
"lowWalletBalanceSmsEnabled": n => { userNotificationPreferences.lowWalletBalanceSmsEnabled = n.getBooleanValue(); },
|
|
6725
|
+
"missedCallEmailEnabled": n => { userNotificationPreferences.missedCallEmailEnabled = n.getBooleanValue(); },
|
|
6741
6726
|
"missedCallEnabled": n => { userNotificationPreferences.missedCallEnabled = n.getBooleanValue(); },
|
|
6727
|
+
"missedCallSmsEnabled": n => { userNotificationPreferences.missedCallSmsEnabled = n.getBooleanValue(); },
|
|
6742
6728
|
"newLeadEmailEnabled": n => { userNotificationPreferences.newLeadEmailEnabled = n.getBooleanValue(); },
|
|
6743
6729
|
"newLeadEnabled": n => { userNotificationPreferences.newLeadEnabled = n.getBooleanValue(); },
|
|
6744
6730
|
"newLeadSmsEnabled": n => { userNotificationPreferences.newLeadSmsEnabled = n.getBooleanValue(); },
|
|
6745
6731
|
"paymentFailedEnabled": n => { userNotificationPreferences.paymentFailedEnabled = n.getBooleanValue(); },
|
|
6732
|
+
"paymentFailedSmsEnabled": n => { userNotificationPreferences.paymentFailedSmsEnabled = n.getBooleanValue(); },
|
|
6733
|
+
"subscriptionRenewingEmailEnabled": n => { userNotificationPreferences.subscriptionRenewingEmailEnabled = n.getBooleanValue(); },
|
|
6746
6734
|
"subscriptionRenewingEnabled": n => { userNotificationPreferences.subscriptionRenewingEnabled = n.getBooleanValue(); },
|
|
6735
|
+
"subscriptionRenewingSmsEnabled": n => { userNotificationPreferences.subscriptionRenewingSmsEnabled = n.getBooleanValue(); },
|
|
6747
6736
|
"tenDlcStatusEnabled": n => { userNotificationPreferences.tenDlcStatusEnabled = n.getBooleanValue(); },
|
|
6737
|
+
"unreadSmsEmailEnabled": n => { userNotificationPreferences.unreadSmsEmailEnabled = n.getBooleanValue(); },
|
|
6748
6738
|
"unreadSmsEnabled": n => { userNotificationPreferences.unreadSmsEnabled = n.getBooleanValue(); },
|
|
6739
|
+
"unreadSmsSmsEnabled": n => { userNotificationPreferences.unreadSmsSmsEnabled = n.getBooleanValue(); },
|
|
6749
6740
|
"usageLimitHitEnabled": n => { userNotificationPreferences.usageLimitHitEnabled = n.getBooleanValue(); },
|
|
6750
6741
|
};
|
|
6751
6742
|
}
|
|
@@ -6758,7 +6749,6 @@ export function deserializeIntoUserNotificationPreferences(userNotificationPrefe
|
|
|
6758
6749
|
export function deserializeIntoUserRequest(userRequest = {}) {
|
|
6759
6750
|
return {
|
|
6760
6751
|
"billingPlan": n => { userRequest.billingPlan = n.getEnumValue(UserRequest_billingPlanObject); },
|
|
6761
|
-
"business": n => { userRequest.business = n.getObjectValue(createUserRequest_businessFromDiscriminatorValue); },
|
|
6762
6752
|
"compliance": n => { userRequest.compliance = n.getObjectValue(createUserRequest_complianceFromDiscriminatorValue); },
|
|
6763
6753
|
"currentBusiness": n => { userRequest.currentBusiness = n.getObjectValue(createUserRequest_currentBusinessFromDiscriminatorValue); },
|
|
6764
6754
|
"email": n => { userRequest.email = n.getStringValue(); },
|
|
@@ -6769,18 +6759,6 @@ export function deserializeIntoUserRequest(userRequest = {}) {
|
|
|
6769
6759
|
"name": n => { userRequest.name = n.getStringValue(); },
|
|
6770
6760
|
"notificationPreferences": n => { userRequest.notificationPreferences = n.getObjectValue(createUserRequest_notificationPreferencesFromDiscriminatorValue); },
|
|
6771
6761
|
"phone": n => { userRequest.phone = n.getStringValue(); },
|
|
6772
|
-
"subscriptionStatus": n => { userRequest.subscriptionStatus = n.getEnumValue(UserRequest_subscriptionStatusObject); },
|
|
6773
|
-
};
|
|
6774
|
-
}
|
|
6775
|
-
/**
|
|
6776
|
-
* The deserialization information for the current model
|
|
6777
|
-
* @param UserRequest_business The instance to deserialize into.
|
|
6778
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6779
|
-
*/
|
|
6780
|
-
// @ts-ignore
|
|
6781
|
-
export function deserializeIntoUserRequest_business(userRequest_business = {}) {
|
|
6782
|
-
return {
|
|
6783
|
-
...deserializeIntoIdNamePair(userRequest_business),
|
|
6784
6762
|
};
|
|
6785
6763
|
}
|
|
6786
6764
|
/**
|
|
@@ -6825,7 +6803,6 @@ export function deserializeIntoUserRequest_notificationPreferences(userRequest_n
|
|
|
6825
6803
|
export function deserializeIntoUserResponse(userResponse = {}) {
|
|
6826
6804
|
return {
|
|
6827
6805
|
"billingPlan": n => { userResponse.billingPlan = n.getEnumValue(UserResponse_billingPlanObject); },
|
|
6828
|
-
"business": n => { userResponse.business = n.getObjectValue(createUserResponse_businessFromDiscriminatorValue); },
|
|
6829
6806
|
"compliance": n => { userResponse.compliance = n.getObjectValue(createUserResponse_complianceFromDiscriminatorValue); },
|
|
6830
6807
|
"createdAt": n => { userResponse.createdAt = n.getDateValue(); },
|
|
6831
6808
|
"currentBusiness": n => { userResponse.currentBusiness = n.getObjectValue(createUserResponse_currentBusinessFromDiscriminatorValue); },
|
|
@@ -6849,17 +6826,6 @@ export function deserializeIntoUserResponse(userResponse = {}) {
|
|
|
6849
6826
|
"subscriptionStatus": n => { userResponse.subscriptionStatus = n.getEnumValue(UserResponse_subscriptionStatusObject); },
|
|
6850
6827
|
};
|
|
6851
6828
|
}
|
|
6852
|
-
/**
|
|
6853
|
-
* The deserialization information for the current model
|
|
6854
|
-
* @param UserResponse_business The instance to deserialize into.
|
|
6855
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6856
|
-
*/
|
|
6857
|
-
// @ts-ignore
|
|
6858
|
-
export function deserializeIntoUserResponse_business(userResponse_business = {}) {
|
|
6859
|
-
return {
|
|
6860
|
-
...deserializeIntoIdNamePair(userResponse_business),
|
|
6861
|
-
};
|
|
6862
|
-
}
|
|
6863
6829
|
/**
|
|
6864
6830
|
* The deserialization information for the current model
|
|
6865
6831
|
* @param UserResponse_compliance The instance to deserialize into.
|
|
@@ -6901,73 +6867,7 @@ export function deserializeIntoUserResponse_notificationPreferences(userResponse
|
|
|
6901
6867
|
// @ts-ignore
|
|
6902
6868
|
export function deserializeIntoUserResponse_stripeInfo(userResponse_stripeInfo = {}) {
|
|
6903
6869
|
return {
|
|
6904
|
-
...
|
|
6905
|
-
};
|
|
6906
|
-
}
|
|
6907
|
-
/**
|
|
6908
|
-
* The deserialization information for the current model
|
|
6909
|
-
* @param UserStripeInfo The instance to deserialize into.
|
|
6910
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6911
|
-
*/
|
|
6912
|
-
// @ts-ignore
|
|
6913
|
-
export function deserializeIntoUserStripeInfo(userStripeInfo = {}) {
|
|
6914
|
-
return {
|
|
6915
|
-
"businessUserQuantity": n => { userStripeInfo.businessUserQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
6916
|
-
"businessUserSubscriptionItemId": n => { userStripeInfo.businessUserSubscriptionItemId = n.getStringValue(); },
|
|
6917
|
-
"cancelAt": n => { userStripeInfo.cancelAt = n.getDateValue(); },
|
|
6918
|
-
"cancellation": n => { userStripeInfo.cancellation = n.getObjectValue(createUserStripeInfo_cancellationFromDiscriminatorValue); },
|
|
6919
|
-
"customerId": n => { userStripeInfo.customerId = n.getStringValue(); },
|
|
6920
|
-
"defaultPaymentMethodId": n => { userStripeInfo.defaultPaymentMethodId = n.getStringValue(); },
|
|
6921
|
-
"dunning": n => { userStripeInfo.dunning = n.getObjectValue(createUserStripeInfo_dunningFromDiscriminatorValue); },
|
|
6922
|
-
"lastPaymentMethodEventAt": n => { userStripeInfo.lastPaymentMethodEventAt = n.getDateValue(); },
|
|
6923
|
-
"lastSubscriptionEventAt": n => { userStripeInfo.lastSubscriptionEventAt = n.getDateValue(); },
|
|
6924
|
-
"phoneNumberQuantity": n => { userStripeInfo.phoneNumberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
6925
|
-
"phoneSubscriptionId": n => { userStripeInfo.phoneSubscriptionId = n.getStringValue(); },
|
|
6926
|
-
"phoneSubscriptionItemId": n => { userStripeInfo.phoneSubscriptionItemId = n.getStringValue(); },
|
|
6927
|
-
"planSubscriptionId": n => { userStripeInfo.planSubscriptionId = n.getStringValue(); },
|
|
6928
|
-
"planSubscriptionItemId": n => { userStripeInfo.planSubscriptionItemId = n.getStringValue(); },
|
|
6929
|
-
"subscriptionIds": n => { userStripeInfo.subscriptionIds = n.getCollectionOfPrimitiveValues("string"); },
|
|
6930
|
-
};
|
|
6931
|
-
}
|
|
6932
|
-
/**
|
|
6933
|
-
* The deserialization information for the current model
|
|
6934
|
-
* @param UserStripeInfo_cancellation The instance to deserialize into.
|
|
6935
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6936
|
-
*/
|
|
6937
|
-
// @ts-ignore
|
|
6938
|
-
export function deserializeIntoUserStripeInfo_cancellation(userStripeInfo_cancellation = {}) {
|
|
6939
|
-
return {
|
|
6940
|
-
...deserializeIntoUserSubscriptionCancellationInfo(userStripeInfo_cancellation),
|
|
6941
|
-
};
|
|
6942
|
-
}
|
|
6943
|
-
/**
|
|
6944
|
-
* The deserialization information for the current model
|
|
6945
|
-
* @param UserStripeInfo_dunning The instance to deserialize into.
|
|
6946
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6947
|
-
*/
|
|
6948
|
-
// @ts-ignore
|
|
6949
|
-
export function deserializeIntoUserStripeInfo_dunning(userStripeInfo_dunning = {}) {
|
|
6950
|
-
return {
|
|
6951
|
-
...deserializeIntoUserDunningInfo(userStripeInfo_dunning),
|
|
6952
|
-
};
|
|
6953
|
-
}
|
|
6954
|
-
/**
|
|
6955
|
-
* The deserialization information for the current model
|
|
6956
|
-
* @param UserSubscriptionCancellationInfo The instance to deserialize into.
|
|
6957
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6958
|
-
*/
|
|
6959
|
-
// @ts-ignore
|
|
6960
|
-
export function deserializeIntoUserSubscriptionCancellationInfo(userSubscriptionCancellationInfo = {}) {
|
|
6961
|
-
return {
|
|
6962
|
-
"cancelAtPeriodEnd": n => { userSubscriptionCancellationInfo.cancelAtPeriodEnd = n.getBooleanValue(); },
|
|
6963
|
-
"competitor": n => { userSubscriptionCancellationInfo.competitor = n.getStringValue(); },
|
|
6964
|
-
"missingFeature": n => { userSubscriptionCancellationInfo.missingFeature = n.getStringValue(); },
|
|
6965
|
-
"notes": n => { userSubscriptionCancellationInfo.notes = n.getStringValue(); },
|
|
6966
|
-
"reason": n => { userSubscriptionCancellationInfo.reason = n.getStringValue(); },
|
|
6967
|
-
"reasonCode": n => { userSubscriptionCancellationInfo.reasonCode = n.getStringValue(); },
|
|
6968
|
-
"requestedAt": n => { userSubscriptionCancellationInfo.requestedAt = n.getDateValue(); },
|
|
6969
|
-
"requestedByUserId": n => { userSubscriptionCancellationInfo.requestedByUserId = n.getStringValue(); },
|
|
6970
|
-
"technicalIssues": n => { userSubscriptionCancellationInfo.technicalIssues = n.getStringValue(); },
|
|
6870
|
+
...deserializeIntoBusinessStripeInfo(userResponse_stripeInfo),
|
|
6971
6871
|
};
|
|
6972
6872
|
}
|
|
6973
6873
|
/**
|
|
@@ -7837,6 +7737,30 @@ export function serializeBusinessCompliancePolicy(writer, businessCompliancePoli
|
|
|
7837
7737
|
writer.writeBooleanValue("requireTrustedFormForAutomations", businessCompliancePolicy.requireTrustedFormForAutomations);
|
|
7838
7738
|
writer.writeAdditionalData(businessCompliancePolicy.additionalData);
|
|
7839
7739
|
}
|
|
7740
|
+
/**
|
|
7741
|
+
* Serializes information the current object
|
|
7742
|
+
* @param BusinessDunningInfo The instance to serialize from.
|
|
7743
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7744
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7745
|
+
*/
|
|
7746
|
+
// @ts-ignore
|
|
7747
|
+
export function serializeBusinessDunningInfo(writer, businessDunningInfo = {}, isSerializingDerivedType = false) {
|
|
7748
|
+
if (!businessDunningInfo || isSerializingDerivedType) {
|
|
7749
|
+
return;
|
|
7750
|
+
}
|
|
7751
|
+
writer.writeDateValue("finalCancellationAt", businessDunningInfo.finalCancellationAt);
|
|
7752
|
+
writer.writeDateValue("gracePeriodEndsAt", businessDunningInfo.gracePeriodEndsAt);
|
|
7753
|
+
writer.writeStringValue("lastFailedInvoiceId", businessDunningInfo.lastFailedInvoiceId);
|
|
7754
|
+
writer.writeStringValue("lastFailedInvoiceStatus", businessDunningInfo.lastFailedInvoiceStatus);
|
|
7755
|
+
writer.writeDateValue("lastUpdatedAt", businessDunningInfo.lastUpdatedAt);
|
|
7756
|
+
writer.writeDateValue("nextRetryAt", businessDunningInfo.nextRetryAt);
|
|
7757
|
+
writer.writeDateValue("outboundRestrictedAt", businessDunningInfo.outboundRestrictedAt);
|
|
7758
|
+
writer.writeDateValue("outboundSuspendedAt", businessDunningInfo.outboundSuspendedAt);
|
|
7759
|
+
writer.writeDateValue("paymentFailedAt", businessDunningInfo.paymentFailedAt);
|
|
7760
|
+
writer.writeNumberValue("retryAttemptCount", businessDunningInfo.retryAttemptCount);
|
|
7761
|
+
writer.writeStringValue("stage", businessDunningInfo.stage);
|
|
7762
|
+
writer.writeAdditionalData(businessDunningInfo.additionalData);
|
|
7763
|
+
}
|
|
7840
7764
|
/**
|
|
7841
7765
|
* Serializes information the current object
|
|
7842
7766
|
* @param BusinessInvitationRequest The instance to serialize from.
|
|
@@ -8217,6 +8141,7 @@ export function serializeBusinessStripeInfo(writer, businessStripeInfo = {}, isS
|
|
|
8217
8141
|
if (!businessStripeInfo || isSerializingDerivedType) {
|
|
8218
8142
|
return;
|
|
8219
8143
|
}
|
|
8144
|
+
writer.writeObjectValue("businessUserAssignedQuantity", businessStripeInfo.businessUserAssignedQuantity);
|
|
8220
8145
|
writer.writeObjectValue("businessUserQuantity", businessStripeInfo.businessUserQuantity);
|
|
8221
8146
|
writer.writeStringValue("businessUserSubscriptionItemId", businessStripeInfo.businessUserSubscriptionItemId);
|
|
8222
8147
|
writer.writeDateValue("cancelAt", businessStripeInfo.cancelAt);
|
|
@@ -8245,7 +8170,7 @@ export function serializeBusinessStripeInfo_cancellation(writer, businessStripeI
|
|
|
8245
8170
|
if (!businessStripeInfo_cancellation || isSerializingDerivedType) {
|
|
8246
8171
|
return;
|
|
8247
8172
|
}
|
|
8248
|
-
|
|
8173
|
+
serializeBusinessSubscriptionCancellationInfo(writer, businessStripeInfo_cancellation, isSerializingDerivedType);
|
|
8249
8174
|
}
|
|
8250
8175
|
/**
|
|
8251
8176
|
* Serializes information the current object
|
|
@@ -8258,7 +8183,29 @@ export function serializeBusinessStripeInfo_dunning(writer, businessStripeInfo_d
|
|
|
8258
8183
|
if (!businessStripeInfo_dunning || isSerializingDerivedType) {
|
|
8259
8184
|
return;
|
|
8260
8185
|
}
|
|
8261
|
-
|
|
8186
|
+
serializeBusinessDunningInfo(writer, businessStripeInfo_dunning, isSerializingDerivedType);
|
|
8187
|
+
}
|
|
8188
|
+
/**
|
|
8189
|
+
* Serializes information the current object
|
|
8190
|
+
* @param BusinessSubscriptionCancellationInfo The instance to serialize from.
|
|
8191
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8192
|
+
* @param writer Serialization writer to use to serialize this model
|
|
8193
|
+
*/
|
|
8194
|
+
// @ts-ignore
|
|
8195
|
+
export function serializeBusinessSubscriptionCancellationInfo(writer, businessSubscriptionCancellationInfo = {}, isSerializingDerivedType = false) {
|
|
8196
|
+
if (!businessSubscriptionCancellationInfo || isSerializingDerivedType) {
|
|
8197
|
+
return;
|
|
8198
|
+
}
|
|
8199
|
+
writer.writeBooleanValue("cancelAtPeriodEnd", businessSubscriptionCancellationInfo.cancelAtPeriodEnd);
|
|
8200
|
+
writer.writeStringValue("competitor", businessSubscriptionCancellationInfo.competitor);
|
|
8201
|
+
writer.writeStringValue("missingFeature", businessSubscriptionCancellationInfo.missingFeature);
|
|
8202
|
+
writer.writeStringValue("notes", businessSubscriptionCancellationInfo.notes);
|
|
8203
|
+
writer.writeStringValue("reason", businessSubscriptionCancellationInfo.reason);
|
|
8204
|
+
writer.writeStringValue("reasonCode", businessSubscriptionCancellationInfo.reasonCode);
|
|
8205
|
+
writer.writeDateValue("requestedAt", businessSubscriptionCancellationInfo.requestedAt);
|
|
8206
|
+
writer.writeStringValue("requestedByUserId", businessSubscriptionCancellationInfo.requestedByUserId);
|
|
8207
|
+
writer.writeStringValue("technicalIssues", businessSubscriptionCancellationInfo.technicalIssues);
|
|
8208
|
+
writer.writeAdditionalData(businessSubscriptionCancellationInfo.additionalData);
|
|
8262
8209
|
}
|
|
8263
8210
|
/**
|
|
8264
8211
|
* Serializes information the current object
|
|
@@ -8274,6 +8221,7 @@ export function serializeBusinessSwitchOption(writer, businessSwitchOption = {},
|
|
|
8274
8221
|
writer.writeEnumValue("activationStatus", businessSwitchOption.activationStatus);
|
|
8275
8222
|
writer.writeStringValue("activationSummary", businessSwitchOption.activationSummary);
|
|
8276
8223
|
writer.writeEnumValue("businessStatus", businessSwitchOption.businessStatus);
|
|
8224
|
+
writer.writeBooleanValue("hasPaymentMethod", businessSwitchOption.hasPaymentMethod);
|
|
8277
8225
|
writer.writeStringValue("id", businessSwitchOption.id);
|
|
8278
8226
|
writer.writeBooleanValue("isCurrent", businessSwitchOption.isCurrent);
|
|
8279
8227
|
writer.writeDateValue("lastUsedAt", businessSwitchOption.lastUsedAt);
|
|
@@ -8317,17 +8265,22 @@ export function serializeBusinessTableRow(writer, businessTableRow = {}, isSeria
|
|
|
8317
8265
|
writer.writeDateValue("apiKeyLastUsedAt", businessTableRow.apiKeyLastUsedAt);
|
|
8318
8266
|
writer.writeStringValue("apiKeyPreview", businessTableRow.apiKeyPreview);
|
|
8319
8267
|
writer.writeNumberValue("apiKeyTotalUses", businessTableRow.apiKeyTotalUses);
|
|
8268
|
+
writer.writeEnumValue("billingPlan", businessTableRow.billingPlan);
|
|
8320
8269
|
writer.writeStringValue("businessId", businessTableRow.businessId);
|
|
8321
8270
|
writer.writeStringValue("businessName", businessTableRow.businessName);
|
|
8322
8271
|
writer.writeBooleanValue("enabled", businessTableRow.enabled);
|
|
8323
8272
|
writer.writeStringValue("id", businessTableRow.id);
|
|
8324
8273
|
writer.writeStringValue("industry", businessTableRow.industry);
|
|
8274
|
+
writer.writeDateValue("lastSubscriptionEventAt", businessTableRow.lastSubscriptionEventAt);
|
|
8325
8275
|
writer.writeDateValue("modifiedAt", businessTableRow.modifiedAt);
|
|
8326
8276
|
writer.writeStringValue("name", businessTableRow.name);
|
|
8327
8277
|
writer.writeBooleanValue("needsAdminReview", businessTableRow.needsAdminReview);
|
|
8278
|
+
writer.writeDateValue("paymentFailedAt", businessTableRow.paymentFailedAt);
|
|
8328
8279
|
writer.writeStringValue("phone", businessTableRow.phone);
|
|
8329
8280
|
writer.writeEnumValue("setupStep", businessTableRow.setupStep);
|
|
8330
8281
|
writer.writeEnumValue("status", businessTableRow.status);
|
|
8282
|
+
writer.writeDateValue("subscriptionCancelAt", businessTableRow.subscriptionCancelAt);
|
|
8283
|
+
writer.writeEnumValue("subscriptionStatus", businessTableRow.subscriptionStatus);
|
|
8331
8284
|
writer.writeEnumValue("tenDlcStatus", businessTableRow.tenDlcStatus);
|
|
8332
8285
|
writer.writeNumberValue("userCount", businessTableRow.userCount);
|
|
8333
8286
|
writer.writeStringValue("userId", businessTableRow.userId);
|
|
@@ -10137,6 +10090,7 @@ export function serializePhone(writer, phone = {}, isSerializingDerivedType = fa
|
|
|
10137
10090
|
}
|
|
10138
10091
|
writer.writeObjectValue("lookup", phone.lookup, serializePhone_lookup);
|
|
10139
10092
|
writer.writeStringValue("number", phone.number);
|
|
10093
|
+
writer.writeStringValue("phoneIdentityId", phone.phoneIdentityId);
|
|
10140
10094
|
writer.writeStringValue("type", phone.type);
|
|
10141
10095
|
writer.writeAdditionalData(phone.additionalData);
|
|
10142
10096
|
}
|
|
@@ -11951,8 +11905,6 @@ export function serializeUserCompliance(writer, userCompliance = {}, isSerializi
|
|
|
11951
11905
|
writer.writeBooleanValue("acceptedSms", userCompliance.acceptedSms);
|
|
11952
11906
|
writer.writeBooleanValue("acceptedTerms", userCompliance.acceptedTerms);
|
|
11953
11907
|
writer.writeBooleanValue("acceptedToSubscription", userCompliance.acceptedToSubscription);
|
|
11954
|
-
writer.writeCollectionOfPrimitiveValues("licensedProducts", userCompliance.licensedProducts);
|
|
11955
|
-
writer.writeCollectionOfPrimitiveValues("licensedStates", userCompliance.licensedStates);
|
|
11956
11908
|
writer.writeCollectionOfObjectValues("trustedFormCertificates", userCompliance.trustedFormCertificates, serializeTrustedFormCertificate);
|
|
11957
11909
|
writer.writeAdditionalData(userCompliance.additionalData);
|
|
11958
11910
|
}
|
|
@@ -12001,30 +11953,6 @@ export function serializeUserDataExportResponse(writer, userDataExportResponse =
|
|
|
12001
11953
|
writer.writeEnumValue("status", userDataExportResponse.status);
|
|
12002
11954
|
writer.writeAdditionalData(userDataExportResponse.additionalData);
|
|
12003
11955
|
}
|
|
12004
|
-
/**
|
|
12005
|
-
* Serializes information the current object
|
|
12006
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12007
|
-
* @param UserDunningInfo The instance to serialize from.
|
|
12008
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12009
|
-
*/
|
|
12010
|
-
// @ts-ignore
|
|
12011
|
-
export function serializeUserDunningInfo(writer, userDunningInfo = {}, isSerializingDerivedType = false) {
|
|
12012
|
-
if (!userDunningInfo || isSerializingDerivedType) {
|
|
12013
|
-
return;
|
|
12014
|
-
}
|
|
12015
|
-
writer.writeDateValue("finalCancellationAt", userDunningInfo.finalCancellationAt);
|
|
12016
|
-
writer.writeDateValue("gracePeriodEndsAt", userDunningInfo.gracePeriodEndsAt);
|
|
12017
|
-
writer.writeStringValue("lastFailedInvoiceId", userDunningInfo.lastFailedInvoiceId);
|
|
12018
|
-
writer.writeStringValue("lastFailedInvoiceStatus", userDunningInfo.lastFailedInvoiceStatus);
|
|
12019
|
-
writer.writeDateValue("lastUpdatedAt", userDunningInfo.lastUpdatedAt);
|
|
12020
|
-
writer.writeDateValue("nextRetryAt", userDunningInfo.nextRetryAt);
|
|
12021
|
-
writer.writeDateValue("outboundRestrictedAt", userDunningInfo.outboundRestrictedAt);
|
|
12022
|
-
writer.writeDateValue("outboundSuspendedAt", userDunningInfo.outboundSuspendedAt);
|
|
12023
|
-
writer.writeDateValue("paymentFailedAt", userDunningInfo.paymentFailedAt);
|
|
12024
|
-
writer.writeNumberValue("retryAttemptCount", userDunningInfo.retryAttemptCount);
|
|
12025
|
-
writer.writeStringValue("stage", userDunningInfo.stage);
|
|
12026
|
-
writer.writeAdditionalData(userDunningInfo.additionalData);
|
|
12027
|
-
}
|
|
12028
11956
|
/**
|
|
12029
11957
|
* Serializes information the current object
|
|
12030
11958
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12052,18 +11980,29 @@ export function serializeUserNotificationPreferences(writer, userNotificationPre
|
|
|
12052
11980
|
if (!userNotificationPreferences || isSerializingDerivedType) {
|
|
12053
11981
|
return;
|
|
12054
11982
|
}
|
|
11983
|
+
writer.writeBooleanValue("automationFailedEmailEnabled", userNotificationPreferences.automationFailedEmailEnabled);
|
|
12055
11984
|
writer.writeBooleanValue("automationFailedEnabled", userNotificationPreferences.automationFailedEnabled);
|
|
11985
|
+
writer.writeBooleanValue("automationFailedSmsEnabled", userNotificationPreferences.automationFailedSmsEnabled);
|
|
12056
11986
|
writer.writeBooleanValue("billingEmailEnabled", userNotificationPreferences.billingEmailEnabled);
|
|
12057
11987
|
writer.writeBooleanValue("billingSmsEnabled", userNotificationPreferences.billingSmsEnabled);
|
|
11988
|
+
writer.writeBooleanValue("lowWalletBalanceEmailEnabled", userNotificationPreferences.lowWalletBalanceEmailEnabled);
|
|
12058
11989
|
writer.writeBooleanValue("lowWalletBalanceEnabled", userNotificationPreferences.lowWalletBalanceEnabled);
|
|
11990
|
+
writer.writeBooleanValue("lowWalletBalanceSmsEnabled", userNotificationPreferences.lowWalletBalanceSmsEnabled);
|
|
11991
|
+
writer.writeBooleanValue("missedCallEmailEnabled", userNotificationPreferences.missedCallEmailEnabled);
|
|
12059
11992
|
writer.writeBooleanValue("missedCallEnabled", userNotificationPreferences.missedCallEnabled);
|
|
11993
|
+
writer.writeBooleanValue("missedCallSmsEnabled", userNotificationPreferences.missedCallSmsEnabled);
|
|
12060
11994
|
writer.writeBooleanValue("newLeadEmailEnabled", userNotificationPreferences.newLeadEmailEnabled);
|
|
12061
11995
|
writer.writeBooleanValue("newLeadEnabled", userNotificationPreferences.newLeadEnabled);
|
|
12062
11996
|
writer.writeBooleanValue("newLeadSmsEnabled", userNotificationPreferences.newLeadSmsEnabled);
|
|
12063
11997
|
writer.writeBooleanValue("paymentFailedEnabled", userNotificationPreferences.paymentFailedEnabled);
|
|
11998
|
+
writer.writeBooleanValue("paymentFailedSmsEnabled", userNotificationPreferences.paymentFailedSmsEnabled);
|
|
11999
|
+
writer.writeBooleanValue("subscriptionRenewingEmailEnabled", userNotificationPreferences.subscriptionRenewingEmailEnabled);
|
|
12064
12000
|
writer.writeBooleanValue("subscriptionRenewingEnabled", userNotificationPreferences.subscriptionRenewingEnabled);
|
|
12001
|
+
writer.writeBooleanValue("subscriptionRenewingSmsEnabled", userNotificationPreferences.subscriptionRenewingSmsEnabled);
|
|
12065
12002
|
writer.writeBooleanValue("tenDlcStatusEnabled", userNotificationPreferences.tenDlcStatusEnabled);
|
|
12003
|
+
writer.writeBooleanValue("unreadSmsEmailEnabled", userNotificationPreferences.unreadSmsEmailEnabled);
|
|
12066
12004
|
writer.writeBooleanValue("unreadSmsEnabled", userNotificationPreferences.unreadSmsEnabled);
|
|
12005
|
+
writer.writeBooleanValue("unreadSmsSmsEnabled", userNotificationPreferences.unreadSmsSmsEnabled);
|
|
12067
12006
|
writer.writeBooleanValue("usageLimitHitEnabled", userNotificationPreferences.usageLimitHitEnabled);
|
|
12068
12007
|
writer.writeAdditionalData(userNotificationPreferences.additionalData);
|
|
12069
12008
|
}
|
|
@@ -12079,7 +12018,6 @@ export function serializeUserRequest(writer, userRequest = {}, isSerializingDeri
|
|
|
12079
12018
|
return;
|
|
12080
12019
|
}
|
|
12081
12020
|
writer.writeEnumValue("billingPlan", userRequest.billingPlan);
|
|
12082
|
-
writer.writeObjectValue("business", userRequest.business, serializeUserRequest_business);
|
|
12083
12021
|
writer.writeObjectValue("compliance", userRequest.compliance, serializeUserRequest_compliance);
|
|
12084
12022
|
writer.writeObjectValue("currentBusiness", userRequest.currentBusiness, serializeUserRequest_currentBusiness);
|
|
12085
12023
|
writer.writeStringValue("email", userRequest.email);
|
|
@@ -12090,22 +12028,8 @@ export function serializeUserRequest(writer, userRequest = {}, isSerializingDeri
|
|
|
12090
12028
|
writer.writeStringValue("name", userRequest.name);
|
|
12091
12029
|
writer.writeObjectValue("notificationPreferences", userRequest.notificationPreferences, serializeUserRequest_notificationPreferences);
|
|
12092
12030
|
writer.writeStringValue("phone", userRequest.phone);
|
|
12093
|
-
writer.writeEnumValue("subscriptionStatus", userRequest.subscriptionStatus);
|
|
12094
12031
|
writer.writeAdditionalData(userRequest.additionalData);
|
|
12095
12032
|
}
|
|
12096
|
-
/**
|
|
12097
|
-
* Serializes information the current object
|
|
12098
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12099
|
-
* @param UserRequest_business The instance to serialize from.
|
|
12100
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12101
|
-
*/
|
|
12102
|
-
// @ts-ignore
|
|
12103
|
-
export function serializeUserRequest_business(writer, userRequest_business = {}, isSerializingDerivedType = false) {
|
|
12104
|
-
if (!userRequest_business || isSerializingDerivedType) {
|
|
12105
|
-
return;
|
|
12106
|
-
}
|
|
12107
|
-
serializeIdNamePair(writer, userRequest_business, isSerializingDerivedType);
|
|
12108
|
-
}
|
|
12109
12033
|
/**
|
|
12110
12034
|
* Serializes information the current object
|
|
12111
12035
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12157,7 +12081,6 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
12157
12081
|
return;
|
|
12158
12082
|
}
|
|
12159
12083
|
writer.writeEnumValue("billingPlan", userResponse.billingPlan);
|
|
12160
|
-
writer.writeObjectValue("business", userResponse.business, serializeUserResponse_business);
|
|
12161
12084
|
writer.writeObjectValue("compliance", userResponse.compliance, serializeUserResponse_compliance);
|
|
12162
12085
|
writer.writeDateValue("createdAt", userResponse.createdAt);
|
|
12163
12086
|
writer.writeObjectValue("currentBusiness", userResponse.currentBusiness, serializeUserResponse_currentBusiness);
|
|
@@ -12181,19 +12104,6 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
12181
12104
|
writer.writeEnumValue("subscriptionStatus", userResponse.subscriptionStatus);
|
|
12182
12105
|
writer.writeAdditionalData(userResponse.additionalData);
|
|
12183
12106
|
}
|
|
12184
|
-
/**
|
|
12185
|
-
* Serializes information the current object
|
|
12186
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12187
|
-
* @param UserResponse_business The instance to serialize from.
|
|
12188
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12189
|
-
*/
|
|
12190
|
-
// @ts-ignore
|
|
12191
|
-
export function serializeUserResponse_business(writer, userResponse_business = {}, isSerializingDerivedType = false) {
|
|
12192
|
-
if (!userResponse_business || isSerializingDerivedType) {
|
|
12193
|
-
return;
|
|
12194
|
-
}
|
|
12195
|
-
serializeIdNamePair(writer, userResponse_business, isSerializingDerivedType);
|
|
12196
|
-
}
|
|
12197
12107
|
/**
|
|
12198
12108
|
* Serializes information the current object
|
|
12199
12109
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -12244,83 +12154,7 @@ export function serializeUserResponse_stripeInfo(writer, userResponse_stripeInfo
|
|
|
12244
12154
|
if (!userResponse_stripeInfo || isSerializingDerivedType) {
|
|
12245
12155
|
return;
|
|
12246
12156
|
}
|
|
12247
|
-
|
|
12248
|
-
}
|
|
12249
|
-
/**
|
|
12250
|
-
* Serializes information the current object
|
|
12251
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12252
|
-
* @param UserStripeInfo The instance to serialize from.
|
|
12253
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12254
|
-
*/
|
|
12255
|
-
// @ts-ignore
|
|
12256
|
-
export function serializeUserStripeInfo(writer, userStripeInfo = {}, isSerializingDerivedType = false) {
|
|
12257
|
-
if (!userStripeInfo || isSerializingDerivedType) {
|
|
12258
|
-
return;
|
|
12259
|
-
}
|
|
12260
|
-
writer.writeObjectValue("businessUserQuantity", userStripeInfo.businessUserQuantity);
|
|
12261
|
-
writer.writeStringValue("businessUserSubscriptionItemId", userStripeInfo.businessUserSubscriptionItemId);
|
|
12262
|
-
writer.writeDateValue("cancelAt", userStripeInfo.cancelAt);
|
|
12263
|
-
writer.writeObjectValue("cancellation", userStripeInfo.cancellation, serializeUserStripeInfo_cancellation);
|
|
12264
|
-
writer.writeStringValue("customerId", userStripeInfo.customerId);
|
|
12265
|
-
writer.writeStringValue("defaultPaymentMethodId", userStripeInfo.defaultPaymentMethodId);
|
|
12266
|
-
writer.writeObjectValue("dunning", userStripeInfo.dunning, serializeUserStripeInfo_dunning);
|
|
12267
|
-
writer.writeDateValue("lastPaymentMethodEventAt", userStripeInfo.lastPaymentMethodEventAt);
|
|
12268
|
-
writer.writeDateValue("lastSubscriptionEventAt", userStripeInfo.lastSubscriptionEventAt);
|
|
12269
|
-
writer.writeObjectValue("phoneNumberQuantity", userStripeInfo.phoneNumberQuantity);
|
|
12270
|
-
writer.writeStringValue("phoneSubscriptionId", userStripeInfo.phoneSubscriptionId);
|
|
12271
|
-
writer.writeStringValue("phoneSubscriptionItemId", userStripeInfo.phoneSubscriptionItemId);
|
|
12272
|
-
writer.writeStringValue("planSubscriptionId", userStripeInfo.planSubscriptionId);
|
|
12273
|
-
writer.writeStringValue("planSubscriptionItemId", userStripeInfo.planSubscriptionItemId);
|
|
12274
|
-
writer.writeCollectionOfPrimitiveValues("subscriptionIds", userStripeInfo.subscriptionIds);
|
|
12275
|
-
writer.writeAdditionalData(userStripeInfo.additionalData);
|
|
12276
|
-
}
|
|
12277
|
-
/**
|
|
12278
|
-
* Serializes information the current object
|
|
12279
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12280
|
-
* @param UserStripeInfo_cancellation The instance to serialize from.
|
|
12281
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12282
|
-
*/
|
|
12283
|
-
// @ts-ignore
|
|
12284
|
-
export function serializeUserStripeInfo_cancellation(writer, userStripeInfo_cancellation = {}, isSerializingDerivedType = false) {
|
|
12285
|
-
if (!userStripeInfo_cancellation || isSerializingDerivedType) {
|
|
12286
|
-
return;
|
|
12287
|
-
}
|
|
12288
|
-
serializeUserSubscriptionCancellationInfo(writer, userStripeInfo_cancellation, isSerializingDerivedType);
|
|
12289
|
-
}
|
|
12290
|
-
/**
|
|
12291
|
-
* Serializes information the current object
|
|
12292
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12293
|
-
* @param UserStripeInfo_dunning The instance to serialize from.
|
|
12294
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12295
|
-
*/
|
|
12296
|
-
// @ts-ignore
|
|
12297
|
-
export function serializeUserStripeInfo_dunning(writer, userStripeInfo_dunning = {}, isSerializingDerivedType = false) {
|
|
12298
|
-
if (!userStripeInfo_dunning || isSerializingDerivedType) {
|
|
12299
|
-
return;
|
|
12300
|
-
}
|
|
12301
|
-
serializeUserDunningInfo(writer, userStripeInfo_dunning, isSerializingDerivedType);
|
|
12302
|
-
}
|
|
12303
|
-
/**
|
|
12304
|
-
* Serializes information the current object
|
|
12305
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
12306
|
-
* @param UserSubscriptionCancellationInfo The instance to serialize from.
|
|
12307
|
-
* @param writer Serialization writer to use to serialize this model
|
|
12308
|
-
*/
|
|
12309
|
-
// @ts-ignore
|
|
12310
|
-
export function serializeUserSubscriptionCancellationInfo(writer, userSubscriptionCancellationInfo = {}, isSerializingDerivedType = false) {
|
|
12311
|
-
if (!userSubscriptionCancellationInfo || isSerializingDerivedType) {
|
|
12312
|
-
return;
|
|
12313
|
-
}
|
|
12314
|
-
writer.writeBooleanValue("cancelAtPeriodEnd", userSubscriptionCancellationInfo.cancelAtPeriodEnd);
|
|
12315
|
-
writer.writeStringValue("competitor", userSubscriptionCancellationInfo.competitor);
|
|
12316
|
-
writer.writeStringValue("missingFeature", userSubscriptionCancellationInfo.missingFeature);
|
|
12317
|
-
writer.writeStringValue("notes", userSubscriptionCancellationInfo.notes);
|
|
12318
|
-
writer.writeStringValue("reason", userSubscriptionCancellationInfo.reason);
|
|
12319
|
-
writer.writeStringValue("reasonCode", userSubscriptionCancellationInfo.reasonCode);
|
|
12320
|
-
writer.writeDateValue("requestedAt", userSubscriptionCancellationInfo.requestedAt);
|
|
12321
|
-
writer.writeStringValue("requestedByUserId", userSubscriptionCancellationInfo.requestedByUserId);
|
|
12322
|
-
writer.writeStringValue("technicalIssues", userSubscriptionCancellationInfo.technicalIssues);
|
|
12323
|
-
writer.writeAdditionalData(userSubscriptionCancellationInfo.additionalData);
|
|
12157
|
+
serializeBusinessStripeInfo(writer, userResponse_stripeInfo, isSerializingDerivedType);
|
|
12324
12158
|
}
|
|
12325
12159
|
/**
|
|
12326
12160
|
* Serializes information the current object
|
|
@@ -12575,6 +12409,13 @@ export const BusinessTableRow_activationStatusObject = {
|
|
|
12575
12409
|
BlockedRequiresOperatorAction: "BlockedRequiresOperatorAction",
|
|
12576
12410
|
ManuallyBypassed: "ManuallyBypassed",
|
|
12577
12411
|
};
|
|
12412
|
+
/**
|
|
12413
|
+
* Defines the supported Billing Plan values.
|
|
12414
|
+
*/
|
|
12415
|
+
export const BusinessTableRow_billingPlanObject = {
|
|
12416
|
+
Annual: "Annual",
|
|
12417
|
+
Monthly: "Monthly",
|
|
12418
|
+
};
|
|
12578
12419
|
/**
|
|
12579
12420
|
* Defines the supported Business Setup Step values.
|
|
12580
12421
|
*/
|
|
@@ -12599,6 +12440,15 @@ export const BusinessTableRow_statusObject = {
|
|
|
12599
12440
|
SetupCompleted: "SetupCompleted",
|
|
12600
12441
|
Active: "Active",
|
|
12601
12442
|
};
|
|
12443
|
+
/**
|
|
12444
|
+
* Defines the supported Subscription Status values.
|
|
12445
|
+
*/
|
|
12446
|
+
export const BusinessTableRow_subscriptionStatusObject = {
|
|
12447
|
+
Pending: "Pending",
|
|
12448
|
+
Active: "Active",
|
|
12449
|
+
Overdue: "Overdue",
|
|
12450
|
+
Canceled: "Canceled",
|
|
12451
|
+
};
|
|
12602
12452
|
/**
|
|
12603
12453
|
* Defines the supported 10DLC Application Status values.
|
|
12604
12454
|
*/
|
|
@@ -13669,15 +13519,6 @@ export const UserRequest_billingPlanObject = {
|
|
|
13669
13519
|
Annual: "Annual",
|
|
13670
13520
|
Monthly: "Monthly",
|
|
13671
13521
|
};
|
|
13672
|
-
/**
|
|
13673
|
-
* Defines the supported Subscription Status values.
|
|
13674
|
-
*/
|
|
13675
|
-
export const UserRequest_subscriptionStatusObject = {
|
|
13676
|
-
Pending: "Pending",
|
|
13677
|
-
Active: "Active",
|
|
13678
|
-
Overdue: "Overdue",
|
|
13679
|
-
Canceled: "Canceled",
|
|
13680
|
-
};
|
|
13681
13522
|
/**
|
|
13682
13523
|
* Defines the supported Billing Plan values.
|
|
13683
13524
|
*/
|
|
@@ -13713,7 +13554,6 @@ export const WalletResponse_sourceTypeObject = {
|
|
|
13713
13554
|
Promo: "promo",
|
|
13714
13555
|
Admin_adjustment: "admin_adjustment",
|
|
13715
13556
|
Refund_adjustment: "refund_adjustment",
|
|
13716
|
-
Migration: "migration",
|
|
13717
13557
|
Chargeback_reversal: "chargeback_reversal",
|
|
13718
13558
|
Compromise_restoration: "compromise_restoration",
|
|
13719
13559
|
};
|