@leadping/sdk 1.0.33 → 1.0.34

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.
@@ -2394,7 +2394,7 @@ export function deserializeIntoActivationDomainOption(activationDomainOption = {
2394
2394
  return {
2395
2395
  "availabilityStatus": n => { activationDomainOption.availabilityStatus = n.getStringValue(); },
2396
2396
  "domainName": n => { activationDomainOption.domainName = n.getStringValue(); },
2397
- "estimatedAnnualCost": n => { activationDomainOption.estimatedAnnualCost = n.getNumberValue(); },
2397
+ "estimatedAnnualCost": n => { activationDomainOption.estimatedAnnualCost = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2398
2398
  "industryRelevance": n => { activationDomainOption.industryRelevance = n.getStringValue(); },
2399
2399
  "recommended": n => { activationDomainOption.recommended = n.getBooleanValue(); },
2400
2400
  "trustConcerns": n => { activationDomainOption.trustConcerns = n.getStringValue(); },
@@ -2438,10 +2438,10 @@ export function deserializeIntoActivationTimelineEvent_actor(activationTimelineE
2438
2438
  // @ts-ignore
2439
2439
  export function deserializeIntoAnalyticsComparison(analyticsComparison = {}) {
2440
2440
  return {
2441
- "changePercent": n => { analyticsComparison.changePercent = n.getNumberValue(); },
2442
- "current": n => { analyticsComparison.current = n.getNumberValue(); },
2441
+ "changePercent": n => { analyticsComparison.changePercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2442
+ "current": n => { analyticsComparison.current = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2443
2443
  "direction": n => { analyticsComparison.direction = n.getStringValue(); },
2444
- "previous": n => { analyticsComparison.previous = n.getNumberValue(); },
2444
+ "previous": n => { analyticsComparison.previous = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2445
2445
  };
2446
2446
  }
2447
2447
  /**
@@ -2468,7 +2468,7 @@ export function deserializeIntoAnalyticsTrendPointOfdecimal(analyticsTrendPointO
2468
2468
  "endAt": n => { analyticsTrendPointOfdecimal.endAt = n.getDateValue(); },
2469
2469
  "label": n => { analyticsTrendPointOfdecimal.label = n.getStringValue(); },
2470
2470
  "startAt": n => { analyticsTrendPointOfdecimal.startAt = n.getDateValue(); },
2471
- "value": n => { analyticsTrendPointOfdecimal.value = n.getNumberValue(); },
2471
+ "value": n => { analyticsTrendPointOfdecimal.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2472
2472
  };
2473
2473
  }
2474
2474
  /**
@@ -2482,7 +2482,7 @@ export function deserializeIntoAnalyticsTrendPointOfint(analyticsTrendPointOfint
2482
2482
  "endAt": n => { analyticsTrendPointOfint.endAt = n.getDateValue(); },
2483
2483
  "label": n => { analyticsTrendPointOfint.label = n.getStringValue(); },
2484
2484
  "startAt": n => { analyticsTrendPointOfint.startAt = n.getDateValue(); },
2485
- "value": n => { analyticsTrendPointOfint.value = n.getNumberValue(); },
2485
+ "value": n => { analyticsTrendPointOfint.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2486
2486
  };
2487
2487
  }
2488
2488
  /**
@@ -2495,7 +2495,7 @@ export function deserializeIntoAutomationAction(automationAction = {}) {
2495
2495
  return {
2496
2496
  "id": n => { automationAction.id = n.getStringValue(); },
2497
2497
  "isEnabled": n => { automationAction.isEnabled = n.getBooleanValue(); },
2498
- "order": n => { automationAction.order = n.getNumberValue(); },
2498
+ "order": n => { automationAction.order = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2499
2499
  "settings": n => { automationAction.settings = n.getObjectValue(createAutomationAction_settingsFromDiscriminatorValue); },
2500
2500
  "type": n => { automationAction.type = n.getStringValue(); },
2501
2501
  };
@@ -2525,8 +2525,8 @@ export function deserializeIntoAutomationActionRunRecord(automationActionRunReco
2525
2525
  "failureCode": n => { automationActionRunRecord.failureCode = n.getStringValue(); },
2526
2526
  "id": n => { automationActionRunRecord.id = n.getStringValue(); },
2527
2527
  "nextRetryAt": n => { automationActionRunRecord.nextRetryAt = n.getDateValue(); },
2528
- "order": n => { automationActionRunRecord.order = n.getNumberValue(); },
2529
- "processingAttempts": n => { automationActionRunRecord.processingAttempts = n.getNumberValue(); },
2528
+ "order": n => { automationActionRunRecord.order = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2529
+ "processingAttempts": n => { automationActionRunRecord.processingAttempts = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2530
2530
  "scheduledAt": n => { automationActionRunRecord.scheduledAt = n.getDateValue(); },
2531
2531
  "startedAt": n => { automationActionRunRecord.startedAt = n.getDateValue(); },
2532
2532
  "status": n => { automationActionRunRecord.status = n.getStringValue(); },
@@ -2664,7 +2664,7 @@ export function deserializeIntoAutomationRequest(automationRequest = {}) {
2664
2664
  "name": n => { automationRequest.name = n.getStringValue(); },
2665
2665
  "scope": n => { automationRequest.scope = n.getStringValue(); },
2666
2666
  "triggers": n => { automationRequest.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
2667
- "version": n => { automationRequest.version = n.getNumberValue(); },
2667
+ "version": n => { automationRequest.version = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2668
2668
  "visibility": n => { automationRequest.visibility = n.getStringValue(); },
2669
2669
  };
2670
2670
  }
@@ -2720,7 +2720,7 @@ export function deserializeIntoAutomationResponse(automationResponse = {}) {
2720
2720
  "scope": n => { automationResponse.scope = n.getStringValue(); },
2721
2721
  "triggers": n => { automationResponse.triggers = n.getCollectionOfObjectValues(createAutomationTriggerFromDiscriminatorValue); },
2722
2722
  "user": n => { automationResponse.user = n.getObjectValue(createAutomationResponse_userFromDiscriminatorValue); },
2723
- "version": n => { automationResponse.version = n.getNumberValue(); },
2723
+ "version": n => { automationResponse.version = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2724
2724
  "visibility": n => { automationResponse.visibility = n.getStringValue(); },
2725
2725
  };
2726
2726
  }
@@ -2763,7 +2763,7 @@ export function deserializeIntoAutomationRunRecord(automationRunRecord = {}) {
2763
2763
  "lastAttemptAt": n => { automationRunRecord.lastAttemptAt = n.getDateValue(); },
2764
2764
  "leadId": n => { automationRunRecord.leadId = n.getStringValue(); },
2765
2765
  "organizationId": n => { automationRunRecord.organizationId = n.getStringValue(); },
2766
- "processingAttempts": n => { automationRunRecord.processingAttempts = n.getNumberValue(); },
2766
+ "processingAttempts": n => { automationRunRecord.processingAttempts = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2767
2767
  "skippedReason": n => { automationRunRecord.skippedReason = n.getStringValue(); },
2768
2768
  "startedAt": n => { automationRunRecord.startedAt = n.getDateValue(); },
2769
2769
  "status": n => { automationRunRecord.status = n.getStringValue(); },
@@ -2874,7 +2874,7 @@ export function deserializeIntoAutomationWorkflowActionResponse(automationWorkfl
2874
2874
  "failureCode": n => { automationWorkflowActionResponse.failureCode = n.getStringValue(); },
2875
2875
  "id": n => { automationWorkflowActionResponse.id = n.getStringValue(); },
2876
2876
  "nextRetryAt": n => { automationWorkflowActionResponse.nextRetryAt = n.getDateValue(); },
2877
- "retryCount": n => { automationWorkflowActionResponse.retryCount = n.getNumberValue(); },
2877
+ "retryCount": n => { automationWorkflowActionResponse.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2878
2878
  "safeReason": n => { automationWorkflowActionResponse.safeReason = n.getStringValue(); },
2879
2879
  "scheduledAt": n => { automationWorkflowActionResponse.scheduledAt = n.getDateValue(); },
2880
2880
  "skippedAt": n => { automationWorkflowActionResponse.skippedAt = n.getDateValue(); },
@@ -2883,7 +2883,7 @@ export function deserializeIntoAutomationWorkflowActionResponse(automationWorkfl
2883
2883
  "statusDisplay": n => { automationWorkflowActionResponse.statusDisplay = n.getStringValue(); },
2884
2884
  "stepDisplayName": n => { automationWorkflowActionResponse.stepDisplayName = n.getStringValue(); },
2885
2885
  "stepId": n => { automationWorkflowActionResponse.stepId = n.getStringValue(); },
2886
- "stepOrder": n => { automationWorkflowActionResponse.stepOrder = n.getNumberValue(); },
2886
+ "stepOrder": n => { automationWorkflowActionResponse.stepOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2887
2887
  "userSummary": n => { automationWorkflowActionResponse.userSummary = n.getStringValue(); },
2888
2888
  };
2889
2889
  }
@@ -2919,7 +2919,7 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
2919
2919
  "cancelledAt": n => { automationWorkflowRunResponse.cancelledAt = n.getDateValue(); },
2920
2920
  "completedAt": n => { automationWorkflowRunResponse.completedAt = n.getDateValue(); },
2921
2921
  "currentStep": n => { automationWorkflowRunResponse.currentStep = n.getObjectValue(createAutomationWorkflowRunResponse_currentStepFromDiscriminatorValue); },
2922
- "currentStepOrder": n => { automationWorkflowRunResponse.currentStepOrder = n.getNumberValue(); },
2922
+ "currentStepOrder": n => { automationWorkflowRunResponse.currentStepOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2923
2923
  "events": n => { automationWorkflowRunResponse.events = n.getCollectionOfObjectValues(createAutomationWorkflowEventResponseFromDiscriminatorValue); },
2924
2924
  "failedAt": n => { automationWorkflowRunResponse.failedAt = n.getDateValue(); },
2925
2925
  "id": n => { automationWorkflowRunResponse.id = n.getStringValue(); },
@@ -2928,11 +2928,11 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
2928
2928
  "lastErrorMessage": n => { automationWorkflowRunResponse.lastErrorMessage = n.getStringValue(); },
2929
2929
  "lastExecutionAt": n => { automationWorkflowRunResponse.lastExecutionAt = n.getDateValue(); },
2930
2930
  "leadId": n => { automationWorkflowRunResponse.leadId = n.getStringValue(); },
2931
- "maxRetryCount": n => { automationWorkflowRunResponse.maxRetryCount = n.getNumberValue(); },
2931
+ "maxRetryCount": n => { automationWorkflowRunResponse.maxRetryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2932
2932
  "nextExecutionAt": n => { automationWorkflowRunResponse.nextExecutionAt = n.getDateValue(); },
2933
2933
  "nextRetryAt": n => { automationWorkflowRunResponse.nextRetryAt = n.getDateValue(); },
2934
2934
  "organizationId": n => { automationWorkflowRunResponse.organizationId = n.getStringValue(); },
2935
- "retryCount": n => { automationWorkflowRunResponse.retryCount = n.getNumberValue(); },
2935
+ "retryCount": n => { automationWorkflowRunResponse.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2936
2936
  "skipReasonCode": n => { automationWorkflowRunResponse.skipReasonCode = n.getStringValue(); },
2937
2937
  "skipReasonDisplay": n => { automationWorkflowRunResponse.skipReasonDisplay = n.getStringValue(); },
2938
2938
  "startedAt": n => { automationWorkflowRunResponse.startedAt = n.getDateValue(); },
@@ -2986,14 +2986,14 @@ export function deserializeIntoAutomationWorkflowStatusResponse(automationWorkfl
2986
2986
  export function deserializeIntoCallEventTableRow(callEventTableRow = {}) {
2987
2987
  return {
2988
2988
  "answeredAt": n => { callEventTableRow.answeredAt = n.getDateValue(); },
2989
- "billableAmount": n => { callEventTableRow.billableAmount = n.getNumberValue(); },
2990
- "billableSeconds": n => { callEventTableRow.billableSeconds = n.getNumberValue(); },
2989
+ "billableAmount": n => { callEventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2990
+ "billableSeconds": n => { callEventTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2991
2991
  "billingStatus": n => { callEventTableRow.billingStatus = n.getStringValue(); },
2992
2992
  "callerId": n => { callEventTableRow.callerId = n.getStringValue(); },
2993
2993
  "conversationId": n => { callEventTableRow.conversationId = n.getStringValue(); },
2994
2994
  "createdAt": n => { callEventTableRow.createdAt = n.getDateValue(); },
2995
2995
  "direction": n => { callEventTableRow.direction = n.getStringValue(); },
2996
- "duration": n => { callEventTableRow.duration = n.getNumberValue(); },
2996
+ "duration": n => { callEventTableRow.duration = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
2997
2997
  "endedAt": n => { callEventTableRow.endedAt = n.getDateValue(); },
2998
2998
  "fromPhoneNumber": n => { callEventTableRow.fromPhoneNumber = n.getStringValue(); },
2999
2999
  "fromPhoneNumberId": n => { callEventTableRow.fromPhoneNumberId = n.getStringValue(); },
@@ -3132,8 +3132,8 @@ export function deserializeIntoConversationResponse_phoneNumber(conversationResp
3132
3132
  // @ts-ignore
3133
3133
  export function deserializeIntoCoordinate(coordinate = {}) {
3134
3134
  return {
3135
- "latitude": n => { coordinate.latitude = n.getNumberValue(); },
3136
- "longitude": n => { coordinate.longitude = n.getNumberValue(); },
3135
+ "latitude": n => { coordinate.latitude = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3136
+ "longitude": n => { coordinate.longitude = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3137
3137
  };
3138
3138
  }
3139
3139
  /**
@@ -3220,22 +3220,22 @@ export function deserializeIntoCustomerAnalyticsResponse(customerAnalyticsRespon
3220
3220
  // @ts-ignore
3221
3221
  export function deserializeIntoCustomerAnalyticsSummary(customerAnalyticsSummary = {}) {
3222
3222
  return {
3223
- "averageResponseMinutes": n => { customerAnalyticsSummary.averageResponseMinutes = n.getNumberValue(); },
3223
+ "averageResponseMinutes": n => { customerAnalyticsSummary.averageResponseMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3224
3224
  "billingStatus": n => { customerAnalyticsSummary.billingStatus = n.getStringValue(); },
3225
- "callMinutes": n => { customerAnalyticsSummary.callMinutes = n.getNumberValue(); },
3226
- "callsPlaced": n => { customerAnalyticsSummary.callsPlaced = n.getNumberValue(); },
3227
- "callsReceived": n => { customerAnalyticsSummary.callsReceived = n.getNumberValue(); },
3228
- "leads": n => { customerAnalyticsSummary.leads = n.getNumberValue(); },
3225
+ "callMinutes": n => { customerAnalyticsSummary.callMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3226
+ "callsPlaced": n => { customerAnalyticsSummary.callsPlaced = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3227
+ "callsReceived": n => { customerAnalyticsSummary.callsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3228
+ "leads": n => { customerAnalyticsSummary.leads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3229
3229
  "leadsComparison": n => { customerAnalyticsSummary.leadsComparison = n.getObjectValue(createAnalyticsComparisonFromDiscriminatorValue); },
3230
- "medianResponseMinutes": n => { customerAnalyticsSummary.medianResponseMinutes = n.getNumberValue(); },
3231
- "missedCalls": n => { customerAnalyticsSummary.missedCalls = n.getNumberValue(); },
3232
- "missedLeads": n => { customerAnalyticsSummary.missedLeads = n.getNumberValue(); },
3233
- "respondedWithinFiveMinutesPercent": n => { customerAnalyticsSummary.respondedWithinFiveMinutesPercent = n.getNumberValue(); },
3234
- "smsReceived": n => { customerAnalyticsSummary.smsReceived = n.getNumberValue(); },
3235
- "smsSent": n => { customerAnalyticsSummary.smsSent = n.getNumberValue(); },
3236
- "unreadMessages": n => { customerAnalyticsSummary.unreadMessages = n.getNumberValue(); },
3237
- "usageSpend": n => { customerAnalyticsSummary.usageSpend = n.getNumberValue(); },
3238
- "walletBalance": n => { customerAnalyticsSummary.walletBalance = n.getNumberValue(); },
3230
+ "medianResponseMinutes": n => { customerAnalyticsSummary.medianResponseMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3231
+ "missedCalls": n => { customerAnalyticsSummary.missedCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3232
+ "missedLeads": n => { customerAnalyticsSummary.missedLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3233
+ "respondedWithinFiveMinutesPercent": n => { customerAnalyticsSummary.respondedWithinFiveMinutesPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3234
+ "smsReceived": n => { customerAnalyticsSummary.smsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3235
+ "smsSent": n => { customerAnalyticsSummary.smsSent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3236
+ "unreadMessages": n => { customerAnalyticsSummary.unreadMessages = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3237
+ "usageSpend": n => { customerAnalyticsSummary.usageSpend = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3238
+ "walletBalance": n => { customerAnalyticsSummary.walletBalance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3239
3239
  "walletStatus": n => { customerAnalyticsSummary.walletStatus = n.getStringValue(); },
3240
3240
  };
3241
3241
  }
@@ -3247,13 +3247,13 @@ export function deserializeIntoCustomerAnalyticsSummary(customerAnalyticsSummary
3247
3247
  // @ts-ignore
3248
3248
  export function deserializeIntoCustomerAutomationHealth(customerAutomationHealth = {}) {
3249
3249
  return {
3250
- "automationCount": n => { customerAutomationHealth.automationCount = n.getNumberValue(); },
3251
- "enabledCount": n => { customerAutomationHealth.enabledCount = n.getNumberValue(); },
3252
- "executions": n => { customerAutomationHealth.executions = n.getNumberValue(); },
3250
+ "automationCount": n => { customerAutomationHealth.automationCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3251
+ "enabledCount": n => { customerAutomationHealth.enabledCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3252
+ "executions": n => { customerAutomationHealth.executions = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3253
3253
  "failingAutomations": n => { customerAutomationHealth.failingAutomations = n.getCollectionOfObjectValues(createCustomerFailingAutomationFromDiscriminatorValue); },
3254
- "failureCount": n => { customerAutomationHealth.failureCount = n.getNumberValue(); },
3254
+ "failureCount": n => { customerAutomationHealth.failureCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3255
3255
  "lastFailure": n => { customerAutomationHealth.lastFailure = n.getObjectValue(createCustomerAutomationHealth_lastFailureFromDiscriminatorValue); },
3256
- "successCount": n => { customerAutomationHealth.successCount = n.getNumberValue(); },
3256
+ "successCount": n => { customerAutomationHealth.successCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3257
3257
  };
3258
3258
  }
3259
3259
  /**
@@ -3275,16 +3275,16 @@ export function deserializeIntoCustomerAutomationHealth_lastFailure(customerAuto
3275
3275
  // @ts-ignore
3276
3276
  export function deserializeIntoCustomerCommunicationUsage(customerCommunicationUsage = {}) {
3277
3277
  return {
3278
- "answeredCalls": n => { customerCommunicationUsage.answeredCalls = n.getNumberValue(); },
3279
- "callMinutes": n => { customerCommunicationUsage.callMinutes = n.getNumberValue(); },
3280
- "callsPlaced": n => { customerCommunicationUsage.callsPlaced = n.getNumberValue(); },
3281
- "callsReceived": n => { customerCommunicationUsage.callsReceived = n.getNumberValue(); },
3282
- "failedOrBlockedSms": n => { customerCommunicationUsage.failedOrBlockedSms = n.getNumberValue(); },
3283
- "missedCalls": n => { customerCommunicationUsage.missedCalls = n.getNumberValue(); },
3284
- "smsReceived": n => { customerCommunicationUsage.smsReceived = n.getNumberValue(); },
3285
- "smsSent": n => { customerCommunicationUsage.smsSent = n.getNumberValue(); },
3278
+ "answeredCalls": n => { customerCommunicationUsage.answeredCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3279
+ "callMinutes": n => { customerCommunicationUsage.callMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3280
+ "callsPlaced": n => { customerCommunicationUsage.callsPlaced = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3281
+ "callsReceived": n => { customerCommunicationUsage.callsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3282
+ "failedOrBlockedSms": n => { customerCommunicationUsage.failedOrBlockedSms = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3283
+ "missedCalls": n => { customerCommunicationUsage.missedCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3284
+ "smsReceived": n => { customerCommunicationUsage.smsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3285
+ "smsSent": n => { customerCommunicationUsage.smsSent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3286
3286
  "trend": n => { customerCommunicationUsage.trend = n.getCollectionOfObjectValues(createCustomerCommunicationUsagePointFromDiscriminatorValue); },
3287
- "usageSpend": n => { customerCommunicationUsage.usageSpend = n.getNumberValue(); },
3287
+ "usageSpend": n => { customerCommunicationUsage.usageSpend = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3288
3288
  };
3289
3289
  }
3290
3290
  /**
@@ -3295,13 +3295,13 @@ export function deserializeIntoCustomerCommunicationUsage(customerCommunicationU
3295
3295
  // @ts-ignore
3296
3296
  export function deserializeIntoCustomerCommunicationUsagePoint(customerCommunicationUsagePoint = {}) {
3297
3297
  return {
3298
- "callMinutes": n => { customerCommunicationUsagePoint.callMinutes = n.getNumberValue(); },
3299
- "calls": n => { customerCommunicationUsagePoint.calls = n.getNumberValue(); },
3298
+ "callMinutes": n => { customerCommunicationUsagePoint.callMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3299
+ "calls": n => { customerCommunicationUsagePoint.calls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3300
3300
  "endAt": n => { customerCommunicationUsagePoint.endAt = n.getDateValue(); },
3301
3301
  "label": n => { customerCommunicationUsagePoint.label = n.getStringValue(); },
3302
- "smsReceived": n => { customerCommunicationUsagePoint.smsReceived = n.getNumberValue(); },
3303
- "smsSent": n => { customerCommunicationUsagePoint.smsSent = n.getNumberValue(); },
3304
- "spend": n => { customerCommunicationUsagePoint.spend = n.getNumberValue(); },
3302
+ "smsReceived": n => { customerCommunicationUsagePoint.smsReceived = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3303
+ "smsSent": n => { customerCommunicationUsagePoint.smsSent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3304
+ "spend": n => { customerCommunicationUsagePoint.spend = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3305
3305
  "startAt": n => { customerCommunicationUsagePoint.startAt = n.getDateValue(); },
3306
3306
  };
3307
3307
  }
@@ -3327,8 +3327,8 @@ export function deserializeIntoCustomerFailingAutomation(customerFailingAutomati
3327
3327
  // @ts-ignore
3328
3328
  export function deserializeIntoCustomerLeadSourceBreakdown(customerLeadSourceBreakdown = {}) {
3329
3329
  return {
3330
- "leads": n => { customerLeadSourceBreakdown.leads = n.getNumberValue(); },
3331
- "percent": n => { customerLeadSourceBreakdown.percent = n.getNumberValue(); },
3330
+ "leads": n => { customerLeadSourceBreakdown.leads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3331
+ "percent": n => { customerLeadSourceBreakdown.percent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3332
3332
  "source": n => { customerLeadSourceBreakdown.source = n.getStringValue(); },
3333
3333
  };
3334
3334
  }
@@ -3342,7 +3342,7 @@ export function deserializeIntoCustomerLeadTrend(customerLeadTrend = {}) {
3342
3342
  return {
3343
3343
  "comparison": n => { customerLeadTrend.comparison = n.getObjectValue(createAnalyticsComparisonFromDiscriminatorValue); },
3344
3344
  "points": n => { customerLeadTrend.points = n.getCollectionOfObjectValues(createAnalyticsTrendPointOfintFromDiscriminatorValue); },
3345
- "total": n => { customerLeadTrend.total = n.getNumberValue(); },
3345
+ "total": n => { customerLeadTrend.total = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3346
3346
  };
3347
3347
  }
3348
3348
  /**
@@ -3368,14 +3368,14 @@ export function deserializeIntoCustomerNeedsAttentionItem(customerNeedsAttention
3368
3368
  // @ts-ignore
3369
3369
  export function deserializeIntoCustomerResponseMetrics(customerResponseMetrics = {}) {
3370
3370
  return {
3371
- "averageMinutes": n => { customerResponseMetrics.averageMinutes = n.getNumberValue(); },
3371
+ "averageMinutes": n => { customerResponseMetrics.averageMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3372
3372
  "averageMinutesTrend": n => { customerResponseMetrics.averageMinutesTrend = n.getCollectionOfObjectValues(createAnalyticsTrendPointOfdecimalFromDiscriminatorValue); },
3373
- "medianMinutes": n => { customerResponseMetrics.medianMinutes = n.getNumberValue(); },
3374
- "missedCalls": n => { customerResponseMetrics.missedCalls = n.getNumberValue(); },
3375
- "respondedLeads": n => { customerResponseMetrics.respondedLeads = n.getNumberValue(); },
3376
- "respondedWithinFiveMinutesPercent": n => { customerResponseMetrics.respondedWithinFiveMinutesPercent = n.getNumberValue(); },
3377
- "unreadMessages": n => { customerResponseMetrics.unreadMessages = n.getNumberValue(); },
3378
- "unrespondedLeads": n => { customerResponseMetrics.unrespondedLeads = n.getNumberValue(); },
3373
+ "medianMinutes": n => { customerResponseMetrics.medianMinutes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3374
+ "missedCalls": n => { customerResponseMetrics.missedCalls = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3375
+ "respondedLeads": n => { customerResponseMetrics.respondedLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3376
+ "respondedWithinFiveMinutesPercent": n => { customerResponseMetrics.respondedWithinFiveMinutesPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3377
+ "unreadMessages": n => { customerResponseMetrics.unreadMessages = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3378
+ "unrespondedLeads": n => { customerResponseMetrics.unrespondedLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3379
3379
  };
3380
3380
  }
3381
3381
  /**
@@ -3465,7 +3465,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
3465
3465
  "actorDisplayName": n => { eventTableRow.actorDisplayName = n.getStringValue(); },
3466
3466
  "actorEmail": n => { eventTableRow.actorEmail = n.getStringValue(); },
3467
3467
  "actorUserId": n => { eventTableRow.actorUserId = n.getStringValue(); },
3468
- "billableAmount": n => { eventTableRow.billableAmount = n.getNumberValue(); },
3468
+ "billableAmount": n => { eventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3469
3469
  "billingStatus": n => { eventTableRow.billingStatus = n.getStringValue(); },
3470
3470
  "blockedAt": n => { eventTableRow.blockedAt = n.getDateValue(); },
3471
3471
  "campaignId": n => { eventTableRow.campaignId = n.getStringValue(); },
@@ -3493,7 +3493,7 @@ export function deserializeIntoEventTableRow(eventTableRow = {}) {
3493
3493
  "receivedAt": n => { eventTableRow.receivedAt = n.getDateValue(); },
3494
3494
  "relatedEntityId": n => { eventTableRow.relatedEntityId = n.getStringValue(); },
3495
3495
  "relatedEntityType": n => { eventTableRow.relatedEntityType = n.getStringValue(); },
3496
- "retryCount": n => { eventTableRow.retryCount = n.getNumberValue(); },
3496
+ "retryCount": n => { eventTableRow.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3497
3497
  "scheduledFor": n => { eventTableRow.scheduledFor = n.getDateValue(); },
3498
3498
  "scheduledReason": n => { eventTableRow.scheduledReason = n.getStringValue(); },
3499
3499
  "selectionReason": n => { eventTableRow.selectionReason = n.getEnumValue(EventTableRow_selectionReasonObject); },
@@ -3690,7 +3690,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
3690
3690
  "birthDate": n => { leadIntakeRequest.birthDate = n.getDateOnlyValue(); },
3691
3691
  "city": n => { leadIntakeRequest.city = n.getStringValue(); },
3692
3692
  "dateOfBirth": n => { leadIntakeRequest.dateOfBirth = n.getDateOnlyValue(); },
3693
- "directPostPrice": n => { leadIntakeRequest.directPostPrice = n.getNumberValue(); },
3693
+ "directPostPrice": n => { leadIntakeRequest.directPostPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3694
3694
  "email": n => { leadIntakeRequest.email = n.getStringValue(); },
3695
3695
  "externalId": n => { leadIntakeRequest.externalId = n.getStringValue(); },
3696
3696
  "firstName": n => { leadIntakeRequest.firstName = n.getStringValue(); },
@@ -3700,7 +3700,7 @@ export function deserializeIntoLeadIntakeRequest(leadIntakeRequest = {}) {
3700
3700
  "phone": n => { leadIntakeRequest.phone = n.getStringValue(); },
3701
3701
  "phoneType": n => { leadIntakeRequest.phoneType = n.getStringValue(); },
3702
3702
  "postalCode": n => { leadIntakeRequest.postalCode = n.getStringValue(); },
3703
- "price": n => { leadIntakeRequest.price = n.getNumberValue(); },
3703
+ "price": n => { leadIntakeRequest.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3704
3704
  "product": n => { leadIntakeRequest.product = n.getStringValue(); },
3705
3705
  "referrer": n => { leadIntakeRequest.referrer = n.getStringValue(); },
3706
3706
  "sellerLeadId": n => { leadIntakeRequest.sellerLeadId = n.getStringValue(); },
@@ -3741,7 +3741,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
3741
3741
  "complianceBlockedReason": n => { leadMetadata.complianceBlockedReason = n.getStringValue(); },
3742
3742
  "complianceStatus": n => { leadMetadata.complianceStatus = n.getStringValue(); },
3743
3743
  "createdAt": n => { leadMetadata.createdAt = n.getDateValue(); },
3744
- "directPostPrice": n => { leadMetadata.directPostPrice = n.getNumberValue(); },
3744
+ "directPostPrice": n => { leadMetadata.directPostPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3745
3745
  "externalId": n => { leadMetadata.externalId = n.getStringValue(); },
3746
3746
  "importBatchId": n => { leadMetadata.importBatchId = n.getStringValue(); },
3747
3747
  "ipAddress": n => { leadMetadata.ipAddress = n.getStringValue(); },
@@ -3749,7 +3749,7 @@ export function deserializeIntoLeadMetadata(leadMetadata = {}) {
3749
3749
  "landingPage": n => { leadMetadata.landingPage = n.getStringValue(); },
3750
3750
  "organizationId": n => { leadMetadata.organizationId = n.getStringValue(); },
3751
3751
  "origin": n => { leadMetadata.origin = n.getStringValue(); },
3752
- "price": n => { leadMetadata.price = n.getNumberValue(); },
3752
+ "price": n => { leadMetadata.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3753
3753
  "product": n => { leadMetadata.product = n.getStringValue(); },
3754
3754
  "pubId": n => { leadMetadata.pubId = n.getStringValue(); },
3755
3755
  "referrer": n => { leadMetadata.referrer = n.getStringValue(); },
@@ -3792,18 +3792,18 @@ export function deserializeIntoLeadMetadata_sourceMetadata(leadMetadata_sourceMe
3792
3792
  export function deserializeIntoLeadProfile(leadProfile = {}) {
3793
3793
  return {
3794
3794
  "birthDate": n => { leadProfile.birthDate = n.getDateOnlyValue(); },
3795
- "creditScore": n => { leadProfile.creditScore = n.getNumberValue(); },
3795
+ "creditScore": n => { leadProfile.creditScore = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3796
3796
  "employmentType": n => { leadProfile.employmentType = n.getEnumValue(LeadProfile_employmentTypeObject); },
3797
3797
  "gender": n => { leadProfile.gender = n.getEnumValue(LeadProfile_genderObject); },
3798
3798
  "hasBankruptcy": n => { leadProfile.hasBankruptcy = n.getBooleanValue(); },
3799
3799
  "hasMedicalCondition": n => { leadProfile.hasMedicalCondition = n.getBooleanValue(); },
3800
- "height": n => { leadProfile.height = n.getNumberValue(); },
3801
- "income": n => { leadProfile.income = n.getNumberValue(); },
3800
+ "height": n => { leadProfile.height = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3801
+ "income": n => { leadProfile.income = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3802
3802
  "isHomeowner": n => { leadProfile.isHomeowner = n.getBooleanValue(); },
3803
3803
  "maritalStatus": n => { leadProfile.maritalStatus = n.getEnumValue(LeadProfile_maritalStatusObject); },
3804
- "monthsAtResidence": n => { leadProfile.monthsAtResidence = n.getNumberValue(); },
3805
- "numberOfDependents": n => { leadProfile.numberOfDependents = n.getNumberValue(); },
3806
- "weight": n => { leadProfile.weight = n.getNumberValue(); },
3804
+ "monthsAtResidence": n => { leadProfile.monthsAtResidence = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3805
+ "numberOfDependents": n => { leadProfile.numberOfDependents = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3806
+ "weight": n => { leadProfile.weight = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
3807
3807
  };
3808
3808
  }
3809
3809
  /**
@@ -3998,7 +3998,7 @@ export function deserializeIntoLeadStatusRequest(leadStatusRequest = {}) {
3998
3998
  "category": n => { leadStatusRequest.category = n.getEnumValue(LeadStatusRequest_categoryObject); },
3999
3999
  "color": n => { leadStatusRequest.color = n.getStringValue(); },
4000
4000
  "name": n => { leadStatusRequest.name = n.getStringValue(); },
4001
- "sortOrder": n => { leadStatusRequest.sortOrder = n.getNumberValue(); },
4001
+ "sortOrder": n => { leadStatusRequest.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4002
4002
  };
4003
4003
  }
4004
4004
  /**
@@ -4016,7 +4016,7 @@ export function deserializeIntoLeadStatusResponse(leadStatusResponse = {}) {
4016
4016
  "modifiedAt": n => { leadStatusResponse.modifiedAt = n.getDateValue(); },
4017
4017
  "name": n => { leadStatusResponse.name = n.getStringValue(); },
4018
4018
  "organizationId": n => { leadStatusResponse.organizationId = n.getStringValue(); },
4019
- "sortOrder": n => { leadStatusResponse.sortOrder = n.getNumberValue(); },
4019
+ "sortOrder": n => { leadStatusResponse.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4020
4020
  };
4021
4021
  }
4022
4022
  /**
@@ -4040,7 +4040,7 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
4040
4040
  "lastName": n => { leadTableRow.lastName = n.getStringValue(); },
4041
4041
  "organization": n => { leadTableRow.organization = n.getObjectValue(createLeadTableRow_organizationFromDiscriminatorValue); },
4042
4042
  "phone": n => { leadTableRow.phone = n.getStringValue(); },
4043
- "price": n => { leadTableRow.price = n.getNumberValue(); },
4043
+ "price": n => { leadTableRow.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4044
4044
  "source": n => { leadTableRow.source = n.getObjectValue(createLeadTableRow_sourceFromDiscriminatorValue); },
4045
4045
  "status": n => { leadTableRow.status = n.getStringValue(); },
4046
4046
  "statusTone": n => { leadTableRow.statusTone = n.getStringValue(); },
@@ -4105,7 +4105,7 @@ export function deserializeIntoMessageMediaAttachment(messageMediaAttachment = {
4105
4105
  "contentType": n => { messageMediaAttachment.contentType = n.getStringValue(); },
4106
4106
  "fileName": n => { messageMediaAttachment.fileName = n.getStringValue(); },
4107
4107
  "sha256": n => { messageMediaAttachment.sha256 = n.getStringValue(); },
4108
- "size": n => { messageMediaAttachment.size = n.getNumberValue(); },
4108
+ "size": n => { messageMediaAttachment.size = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4109
4109
  "url": n => { messageMediaAttachment.url = n.getStringValue(); },
4110
4110
  };
4111
4111
  }
@@ -4193,7 +4193,7 @@ export function deserializeIntoOrderByOption(orderByOption = {}) {
4193
4193
  export function deserializeIntoOrganizationActivationState(organizationActivationState = {}) {
4194
4194
  return {
4195
4195
  "activatedAt": n => { organizationActivationState.activatedAt = n.getDateValue(); },
4196
- "availableDomainCount": n => { organizationActivationState.availableDomainCount = n.getNumberValue(); },
4196
+ "availableDomainCount": n => { organizationActivationState.availableDomainCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4197
4197
  "billingSubscriptionStatus": n => { organizationActivationState.billingSubscriptionStatus = n.getEnumValue(ActivationSubscriptionStatusObject); },
4198
4198
  "complianceNotes": n => { organizationActivationState.complianceNotes = n.getStringValue(); },
4199
4199
  "controlledLaunch": n => { organizationActivationState.controlledLaunch = n.getBooleanValue(); },
@@ -4202,7 +4202,7 @@ export function deserializeIntoOrganizationActivationState(organizationActivatio
4202
4202
  "domainApprovedAt": n => { organizationActivationState.domainApprovedAt = n.getDateValue(); },
4203
4203
  "domainOptions": n => { organizationActivationState.domainOptions = n.getCollectionOfObjectValues(createActivationDomainOptionFromDiscriminatorValue); },
4204
4204
  "domainPurchasedAt": n => { organizationActivationState.domainPurchasedAt = n.getDateValue(); },
4205
- "domainSearchAttempt": n => { organizationActivationState.domainSearchAttempt = n.getNumberValue(); },
4205
+ "domainSearchAttempt": n => { organizationActivationState.domainSearchAttempt = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4206
4206
  "domainSearchId": n => { organizationActivationState.domainSearchId = n.getStringValue(); },
4207
4207
  "domainSearchStage": n => { organizationActivationState.domainSearchStage = n.getEnumValue(OrganizationActivationState_domainSearchStageObject); },
4208
4208
  "domainSearchUpdatedAt": n => { organizationActivationState.domainSearchUpdatedAt = n.getDateValue(); },
@@ -4263,10 +4263,10 @@ export function deserializeIntoOrganizationBillingState(organizationBillingState
4263
4263
  "hasStripeCustomer": n => { organizationBillingState.hasStripeCustomer = n.getBooleanValue(); },
4264
4264
  "lastPaymentMethodEventAt": n => { organizationBillingState.lastPaymentMethodEventAt = n.getDateValue(); },
4265
4265
  "lastSubscriptionEventAt": n => { organizationBillingState.lastSubscriptionEventAt = n.getDateValue(); },
4266
- "organizationMemberAssignedQuantity": n => { organizationBillingState.organizationMemberAssignedQuantity = n.getNumberValue(); },
4267
- "organizationMemberQuantity": n => { organizationBillingState.organizationMemberQuantity = n.getNumberValue(); },
4266
+ "organizationMemberAssignedQuantity": n => { organizationBillingState.organizationMemberAssignedQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4267
+ "organizationMemberQuantity": n => { organizationBillingState.organizationMemberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4268
4268
  "pendingBillingPlan": n => { organizationBillingState.pendingBillingPlan = n.getEnumValue(OrganizationBillingState_pendingBillingPlanObject); },
4269
- "phoneNumberQuantity": n => { organizationBillingState.phoneNumberQuantity = n.getNumberValue(); },
4269
+ "phoneNumberQuantity": n => { organizationBillingState.phoneNumberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4270
4270
  "planPeriodStartAt": n => { organizationBillingState.planPeriodStartAt = n.getDateValue(); },
4271
4271
  "planRenewalAt": n => { organizationBillingState.planRenewalAt = n.getDateValue(); },
4272
4272
  };
@@ -4316,7 +4316,7 @@ export function deserializeIntoOrganizationDunningInfo(organizationDunningInfo =
4316
4316
  "outboundRestrictedAt": n => { organizationDunningInfo.outboundRestrictedAt = n.getDateValue(); },
4317
4317
  "outboundSuspendedAt": n => { organizationDunningInfo.outboundSuspendedAt = n.getDateValue(); },
4318
4318
  "paymentFailedAt": n => { organizationDunningInfo.paymentFailedAt = n.getDateValue(); },
4319
- "retryAttemptCount": n => { organizationDunningInfo.retryAttemptCount = n.getNumberValue(); },
4319
+ "retryAttemptCount": n => { organizationDunningInfo.retryAttemptCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4320
4320
  "stage": n => { organizationDunningInfo.stage = n.getStringValue(); },
4321
4321
  };
4322
4322
  }
@@ -4347,7 +4347,7 @@ export function deserializeIntoOrganizationInvitationResponse(organizationInvita
4347
4347
  "id": n => { organizationInvitationResponse.id = n.getStringValue(); },
4348
4348
  "licenseActivatedAt": n => { organizationInvitationResponse.licenseActivatedAt = n.getDateValue(); },
4349
4349
  "licenseBillingStatus": n => { organizationInvitationResponse.licenseBillingStatus = n.getStringValue(); },
4350
- "licenseQuantity": n => { organizationInvitationResponse.licenseQuantity = n.getNumberValue(); },
4350
+ "licenseQuantity": n => { organizationInvitationResponse.licenseQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4351
4351
  "licenseReleasedAt": n => { organizationInvitationResponse.licenseReleasedAt = n.getDateValue(); },
4352
4352
  "licenseRenewalDate": n => { organizationInvitationResponse.licenseRenewalDate = n.getDateValue(); },
4353
4353
  "organization": n => { organizationInvitationResponse.organization = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
@@ -4375,7 +4375,7 @@ export function deserializeIntoOrganizationInvitationTableRow(organizationInvita
4375
4375
  "id": n => { organizationInvitationTableRow.id = n.getStringValue(); },
4376
4376
  "licenseActivatedAt": n => { organizationInvitationTableRow.licenseActivatedAt = n.getDateValue(); },
4377
4377
  "licenseBillingStatus": n => { organizationInvitationTableRow.licenseBillingStatus = n.getStringValue(); },
4378
- "licenseQuantity": n => { organizationInvitationTableRow.licenseQuantity = n.getNumberValue(); },
4378
+ "licenseQuantity": n => { organizationInvitationTableRow.licenseQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4379
4379
  "licenseReleasedAt": n => { organizationInvitationTableRow.licenseReleasedAt = n.getDateValue(); },
4380
4380
  "licenseRenewalDate": n => { organizationInvitationTableRow.licenseRenewalDate = n.getDateValue(); },
4381
4381
  "organization": n => { organizationInvitationTableRow.organization = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
@@ -4413,7 +4413,7 @@ export function deserializeIntoOrganizationMemberResponse(organizationMemberResp
4413
4413
  "id": n => { organizationMemberResponse.id = n.getStringValue(); },
4414
4414
  "lastUsedAt": n => { organizationMemberResponse.lastUsedAt = n.getDateValue(); },
4415
4415
  "licenseBillingStatus": n => { organizationMemberResponse.licenseBillingStatus = n.getStringValue(); },
4416
- "licenseQuantity": n => { organizationMemberResponse.licenseQuantity = n.getNumberValue(); },
4416
+ "licenseQuantity": n => { organizationMemberResponse.licenseQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4417
4417
  "licenseRenewalDate": n => { organizationMemberResponse.licenseRenewalDate = n.getDateValue(); },
4418
4418
  "modifiedAt": n => { organizationMemberResponse.modifiedAt = n.getDateValue(); },
4419
4419
  "name": n => { organizationMemberResponse.name = n.getStringValue(); },
@@ -4451,9 +4451,9 @@ export function deserializeIntoOrganizationMemberTableRow(organizationMemberTabl
4451
4451
  export function deserializeIntoOrganizationRequest(organizationRequest = {}) {
4452
4452
  return {
4453
4453
  "address": n => { organizationRequest.address = n.getObjectValue(createOrganizationRequest_addressFromDiscriminatorValue); },
4454
- "autoRefillAmount": n => { organizationRequest.autoRefillAmount = n.getNumberValue(); },
4454
+ "autoRefillAmount": n => { organizationRequest.autoRefillAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4455
4455
  "autoRefillEnabled": n => { organizationRequest.autoRefillEnabled = n.getBooleanValue(); },
4456
- "autoRefillTrigger": n => { organizationRequest.autoRefillTrigger = n.getNumberValue(); },
4456
+ "autoRefillTrigger": n => { organizationRequest.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4457
4457
  "billingAddress": n => { organizationRequest.billingAddress = n.getObjectValue(createOrganizationRequest_billingAddressFromDiscriminatorValue); },
4458
4458
  "billingName": n => { organizationRequest.billingName = n.getStringValue(); },
4459
4459
  "billingTaxId": n => { organizationRequest.billingTaxId = n.getStringValue(); },
@@ -4525,12 +4525,12 @@ export function deserializeIntoOrganizationRequest_einDocument(organizationReque
4525
4525
  // @ts-ignore
4526
4526
  export function deserializeIntoOrganizationResponse(organizationResponse = {}) {
4527
4527
  return {
4528
- "accountBalance": n => { organizationResponse.accountBalance = n.getNumberValue(); },
4528
+ "accountBalance": n => { organizationResponse.accountBalance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4529
4529
  "activation": n => { organizationResponse.activation = n.getObjectValue(createOrganizationResponse_activationFromDiscriminatorValue); },
4530
4530
  "address": n => { organizationResponse.address = n.getObjectValue(createOrganizationResponse_addressFromDiscriminatorValue); },
4531
- "autoRefillAmount": n => { organizationResponse.autoRefillAmount = n.getNumberValue(); },
4531
+ "autoRefillAmount": n => { organizationResponse.autoRefillAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4532
4532
  "autoRefillEnabled": n => { organizationResponse.autoRefillEnabled = n.getBooleanValue(); },
4533
- "autoRefillTrigger": n => { organizationResponse.autoRefillTrigger = n.getNumberValue(); },
4533
+ "autoRefillTrigger": n => { organizationResponse.autoRefillTrigger = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4534
4534
  "billingAddress": n => { organizationResponse.billingAddress = n.getObjectValue(createOrganizationResponse_billingAddressFromDiscriminatorValue); },
4535
4535
  "billingName": n => { organizationResponse.billingName = n.getStringValue(); },
4536
4536
  "billingPlan": n => { organizationResponse.billingPlan = n.getEnumValue(OrganizationResponse_billingPlanObject); },
@@ -4688,7 +4688,7 @@ export function deserializeIntoOrganizationSwitchRequest(organizationSwitchReque
4688
4688
  // @ts-ignore
4689
4689
  export function deserializeIntoOrganizationTableRow(organizationTableRow = {}) {
4690
4690
  return {
4691
- "accountBalance": n => { organizationTableRow.accountBalance = n.getNumberValue(); },
4691
+ "accountBalance": n => { organizationTableRow.accountBalance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4692
4692
  "activationStatus": n => { organizationTableRow.activationStatus = n.getEnumValue(OrganizationTableRow_activationStatusObject); },
4693
4693
  "apiKeyExpiresAt": n => { organizationTableRow.apiKeyExpiresAt = n.getDateValue(); },
4694
4694
  "apiKeyFirstUsedAt": n => { organizationTableRow.apiKeyFirstUsedAt = n.getDateValue(); },
@@ -4696,7 +4696,7 @@ export function deserializeIntoOrganizationTableRow(organizationTableRow = {}) {
4696
4696
  "apiKeyLastUsedAt": n => { organizationTableRow.apiKeyLastUsedAt = n.getDateValue(); },
4697
4697
  "apiKeyPermissions": n => { organizationTableRow.apiKeyPermissions = n.getCollectionOfPrimitiveValues("string"); },
4698
4698
  "apiKeyPreview": n => { organizationTableRow.apiKeyPreview = n.getStringValue(); },
4699
- "apiKeyTotalUses": n => { organizationTableRow.apiKeyTotalUses = n.getNumberValue(); },
4699
+ "apiKeyTotalUses": n => { organizationTableRow.apiKeyTotalUses = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4700
4700
  "billingPlan": n => { organizationTableRow.billingPlan = n.getEnumValue(OrganizationTableRow_billingPlanObject); },
4701
4701
  "enabled": n => { organizationTableRow.enabled = n.getBooleanValue(); },
4702
4702
  "id": n => { organizationTableRow.id = n.getStringValue(); },
@@ -4713,7 +4713,7 @@ export function deserializeIntoOrganizationTableRow(organizationTableRow = {}) {
4713
4713
  "subscriptionCancelAt": n => { organizationTableRow.subscriptionCancelAt = n.getDateValue(); },
4714
4714
  "subscriptionStatus": n => { organizationTableRow.subscriptionStatus = n.getEnumValue(OrganizationTableRow_subscriptionStatusObject); },
4715
4715
  "tenDlcStatus": n => { organizationTableRow.tenDlcStatus = n.getEnumValue(OrganizationTableRow_tenDlcStatusObject); },
4716
- "userCount": n => { organizationTableRow.userCount = n.getNumberValue(); },
4716
+ "userCount": n => { organizationTableRow.userCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4717
4717
  "website": n => { organizationTableRow.website = n.getStringValue(); },
4718
4718
  "websiteStatus": n => { organizationTableRow.websiteStatus = n.getEnumValue(OrganizationTableRow_websiteStatusObject); },
4719
4719
  };
@@ -4737,16 +4737,16 @@ export function deserializeIntoOrganizationTableRow_organization(organizationTab
4737
4737
  // @ts-ignore
4738
4738
  export function deserializeIntoOutboundCapacityOverview(outboundCapacityOverview = {}) {
4739
4739
  return {
4740
- "blockedCount": n => { outboundCapacityOverview.blockedCount = n.getNumberValue(); },
4741
- "coolingPhoneNumbers": n => { outboundCapacityOverview.coolingPhoneNumbers = n.getNumberValue(); },
4742
- "healthyPhoneNumbers": n => { outboundCapacityOverview.healthyPhoneNumbers = n.getNumberValue(); },
4743
- "limitedPhoneNumbers": n => { outboundCapacityOverview.limitedPhoneNumbers = n.getNumberValue(); },
4740
+ "blockedCount": n => { outboundCapacityOverview.blockedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4741
+ "coolingPhoneNumbers": n => { outboundCapacityOverview.coolingPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4742
+ "healthyPhoneNumbers": n => { outboundCapacityOverview.healthyPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4743
+ "limitedPhoneNumbers": n => { outboundCapacityOverview.limitedPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4744
4744
  "phoneNumbers": n => { outboundCapacityOverview.phoneNumbers = n.getCollectionOfObjectValues(createOutboundPhoneNumberCapacityFromDiscriminatorValue); },
4745
- "rampingPhoneNumbers": n => { outboundCapacityOverview.rampingPhoneNumbers = n.getNumberValue(); },
4745
+ "rampingPhoneNumbers": n => { outboundCapacityOverview.rampingPhoneNumbers = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4746
4746
  "recentDecisions": n => { outboundCapacityOverview.recentDecisions = n.getCollectionOfObjectValues(createOutboundQueueItemFromDiscriminatorValue); },
4747
- "scheduledCount": n => { outboundCapacityOverview.scheduledCount = n.getNumberValue(); },
4748
- "smsCapacityRemainingToday": n => { outboundCapacityOverview.smsCapacityRemainingToday = n.getNumberValue(); },
4749
- "voiceCapacityRemainingToday": n => { outboundCapacityOverview.voiceCapacityRemainingToday = n.getNumberValue(); },
4747
+ "scheduledCount": n => { outboundCapacityOverview.scheduledCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4748
+ "smsCapacityRemainingToday": n => { outboundCapacityOverview.smsCapacityRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4749
+ "voiceCapacityRemainingToday": n => { outboundCapacityOverview.voiceCapacityRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4750
4750
  };
4751
4751
  }
4752
4752
  /**
@@ -4765,30 +4765,30 @@ export function deserializeIntoOutboundPhoneNumberCapacity(outboundPhoneNumberCa
4765
4765
  "smsApproved": n => { outboundPhoneNumberCapacity.smsApproved = n.getBooleanValue(); },
4766
4766
  "smsDailyResetsAt": n => { outboundPhoneNumberCapacity.smsDailyResetsAt = n.getDateValue(); },
4767
4767
  "smsHourlyResetsAt": n => { outboundPhoneNumberCapacity.smsHourlyResetsAt = n.getDateValue(); },
4768
- "smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getNumberValue(); },
4769
- "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getNumberValue(); },
4770
- "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getNumberValue(); },
4768
+ "smsLimitThisHour": n => { outboundPhoneNumberCapacity.smsLimitThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4769
+ "smsLimitThisMinute": n => { outboundPhoneNumberCapacity.smsLimitThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4770
+ "smsLimitToday": n => { outboundPhoneNumberCapacity.smsLimitToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4771
4771
  "smsMinutelyResetsAt": n => { outboundPhoneNumberCapacity.smsMinutelyResetsAt = n.getDateValue(); },
4772
4772
  "smsRamping": n => { outboundPhoneNumberCapacity.smsRamping = n.getBooleanValue(); },
4773
- "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getNumberValue(); },
4774
- "smsRemainingThisMinute": n => { outboundPhoneNumberCapacity.smsRemainingThisMinute = n.getNumberValue(); },
4775
- "smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getNumberValue(); },
4776
- "smsUsedThisHour": n => { outboundPhoneNumberCapacity.smsUsedThisHour = n.getNumberValue(); },
4777
- "smsUsedThisMinute": n => { outboundPhoneNumberCapacity.smsUsedThisMinute = n.getNumberValue(); },
4778
- "smsUsedToday": n => { outboundPhoneNumberCapacity.smsUsedToday = n.getNumberValue(); },
4773
+ "smsRemainingThisHour": n => { outboundPhoneNumberCapacity.smsRemainingThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4774
+ "smsRemainingThisMinute": n => { outboundPhoneNumberCapacity.smsRemainingThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4775
+ "smsRemainingToday": n => { outboundPhoneNumberCapacity.smsRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4776
+ "smsUsedThisHour": n => { outboundPhoneNumberCapacity.smsUsedThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4777
+ "smsUsedThisMinute": n => { outboundPhoneNumberCapacity.smsUsedThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4778
+ "smsUsedToday": n => { outboundPhoneNumberCapacity.smsUsedToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4779
4779
  "voiceDailyResetsAt": n => { outboundPhoneNumberCapacity.voiceDailyResetsAt = n.getDateValue(); },
4780
4780
  "voiceHourlyResetsAt": n => { outboundPhoneNumberCapacity.voiceHourlyResetsAt = n.getDateValue(); },
4781
- "voiceLimitThisHour": n => { outboundPhoneNumberCapacity.voiceLimitThisHour = n.getNumberValue(); },
4782
- "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getNumberValue(); },
4783
- "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getNumberValue(); },
4781
+ "voiceLimitThisHour": n => { outboundPhoneNumberCapacity.voiceLimitThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4782
+ "voiceLimitThisMinute": n => { outboundPhoneNumberCapacity.voiceLimitThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4783
+ "voiceLimitToday": n => { outboundPhoneNumberCapacity.voiceLimitToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4784
4784
  "voiceMinutelyResetsAt": n => { outboundPhoneNumberCapacity.voiceMinutelyResetsAt = n.getDateValue(); },
4785
4785
  "voiceRamping": n => { outboundPhoneNumberCapacity.voiceRamping = n.getBooleanValue(); },
4786
- "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getNumberValue(); },
4787
- "voiceRemainingThisMinute": n => { outboundPhoneNumberCapacity.voiceRemainingThisMinute = n.getNumberValue(); },
4788
- "voiceRemainingToday": n => { outboundPhoneNumberCapacity.voiceRemainingToday = n.getNumberValue(); },
4789
- "voiceUsedThisHour": n => { outboundPhoneNumberCapacity.voiceUsedThisHour = n.getNumberValue(); },
4790
- "voiceUsedThisMinute": n => { outboundPhoneNumberCapacity.voiceUsedThisMinute = n.getNumberValue(); },
4791
- "voiceUsedToday": n => { outboundPhoneNumberCapacity.voiceUsedToday = n.getNumberValue(); },
4786
+ "voiceRemainingThisHour": n => { outboundPhoneNumberCapacity.voiceRemainingThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4787
+ "voiceRemainingThisMinute": n => { outboundPhoneNumberCapacity.voiceRemainingThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4788
+ "voiceRemainingToday": n => { outboundPhoneNumberCapacity.voiceRemainingToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4789
+ "voiceUsedThisHour": n => { outboundPhoneNumberCapacity.voiceUsedThisHour = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4790
+ "voiceUsedThisMinute": n => { outboundPhoneNumberCapacity.voiceUsedThisMinute = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4791
+ "voiceUsedToday": n => { outboundPhoneNumberCapacity.voiceUsedToday = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4792
4792
  };
4793
4793
  }
4794
4794
  /**
@@ -4872,8 +4872,8 @@ export function deserializeIntoPagedResultOfAutomationTableRow(pagedResultOfAuto
4872
4872
  return {
4873
4873
  "continuationToken": n => { pagedResultOfAutomationTableRow.continuationToken = n.getStringValue(); },
4874
4874
  "items": n => { pagedResultOfAutomationTableRow.items = n.getCollectionOfObjectValues(createAutomationTableRowFromDiscriminatorValue); },
4875
- "pageSize": n => { pagedResultOfAutomationTableRow.pageSize = n.getNumberValue(); },
4876
- "totalCount": n => { pagedResultOfAutomationTableRow.totalCount = n.getNumberValue(); },
4875
+ "pageSize": n => { pagedResultOfAutomationTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4876
+ "totalCount": n => { pagedResultOfAutomationTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4877
4877
  };
4878
4878
  }
4879
4879
  /**
@@ -4886,8 +4886,8 @@ export function deserializeIntoPagedResultOfCallEventTableRow(pagedResultOfCallE
4886
4886
  return {
4887
4887
  "continuationToken": n => { pagedResultOfCallEventTableRow.continuationToken = n.getStringValue(); },
4888
4888
  "items": n => { pagedResultOfCallEventTableRow.items = n.getCollectionOfObjectValues(createCallEventTableRowFromDiscriminatorValue); },
4889
- "pageSize": n => { pagedResultOfCallEventTableRow.pageSize = n.getNumberValue(); },
4890
- "totalCount": n => { pagedResultOfCallEventTableRow.totalCount = n.getNumberValue(); },
4889
+ "pageSize": n => { pagedResultOfCallEventTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4890
+ "totalCount": n => { pagedResultOfCallEventTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4891
4891
  };
4892
4892
  }
4893
4893
  /**
@@ -4900,8 +4900,8 @@ export function deserializeIntoPagedResultOfConversationResponse(pagedResultOfCo
4900
4900
  return {
4901
4901
  "continuationToken": n => { pagedResultOfConversationResponse.continuationToken = n.getStringValue(); },
4902
4902
  "items": n => { pagedResultOfConversationResponse.items = n.getCollectionOfObjectValues(createConversationResponseFromDiscriminatorValue); },
4903
- "pageSize": n => { pagedResultOfConversationResponse.pageSize = n.getNumberValue(); },
4904
- "totalCount": n => { pagedResultOfConversationResponse.totalCount = n.getNumberValue(); },
4903
+ "pageSize": n => { pagedResultOfConversationResponse.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4904
+ "totalCount": n => { pagedResultOfConversationResponse.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4905
4905
  };
4906
4906
  }
4907
4907
  /**
@@ -4914,8 +4914,8 @@ export function deserializeIntoPagedResultOfEventTableRow(pagedResultOfEventTabl
4914
4914
  return {
4915
4915
  "continuationToken": n => { pagedResultOfEventTableRow.continuationToken = n.getStringValue(); },
4916
4916
  "items": n => { pagedResultOfEventTableRow.items = n.getCollectionOfObjectValues(createEventTableRowFromDiscriminatorValue); },
4917
- "pageSize": n => { pagedResultOfEventTableRow.pageSize = n.getNumberValue(); },
4918
- "totalCount": n => { pagedResultOfEventTableRow.totalCount = n.getNumberValue(); },
4917
+ "pageSize": n => { pagedResultOfEventTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4918
+ "totalCount": n => { pagedResultOfEventTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4919
4919
  };
4920
4920
  }
4921
4921
  /**
@@ -4928,8 +4928,8 @@ export function deserializeIntoPagedResultOfLeadStatusChangeResponse(pagedResult
4928
4928
  return {
4929
4929
  "continuationToken": n => { pagedResultOfLeadStatusChangeResponse.continuationToken = n.getStringValue(); },
4930
4930
  "items": n => { pagedResultOfLeadStatusChangeResponse.items = n.getCollectionOfObjectValues(createLeadStatusChangeResponseFromDiscriminatorValue); },
4931
- "pageSize": n => { pagedResultOfLeadStatusChangeResponse.pageSize = n.getNumberValue(); },
4932
- "totalCount": n => { pagedResultOfLeadStatusChangeResponse.totalCount = n.getNumberValue(); },
4931
+ "pageSize": n => { pagedResultOfLeadStatusChangeResponse.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4932
+ "totalCount": n => { pagedResultOfLeadStatusChangeResponse.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4933
4933
  };
4934
4934
  }
4935
4935
  /**
@@ -4942,8 +4942,8 @@ export function deserializeIntoPagedResultOfLeadTableRow(pagedResultOfLeadTableR
4942
4942
  return {
4943
4943
  "continuationToken": n => { pagedResultOfLeadTableRow.continuationToken = n.getStringValue(); },
4944
4944
  "items": n => { pagedResultOfLeadTableRow.items = n.getCollectionOfObjectValues(createLeadTableRowFromDiscriminatorValue); },
4945
- "pageSize": n => { pagedResultOfLeadTableRow.pageSize = n.getNumberValue(); },
4946
- "totalCount": n => { pagedResultOfLeadTableRow.totalCount = n.getNumberValue(); },
4945
+ "pageSize": n => { pagedResultOfLeadTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4946
+ "totalCount": n => { pagedResultOfLeadTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4947
4947
  };
4948
4948
  }
4949
4949
  /**
@@ -4956,8 +4956,8 @@ export function deserializeIntoPagedResultOfNotificationTableRow(pagedResultOfNo
4956
4956
  return {
4957
4957
  "continuationToken": n => { pagedResultOfNotificationTableRow.continuationToken = n.getStringValue(); },
4958
4958
  "items": n => { pagedResultOfNotificationTableRow.items = n.getCollectionOfObjectValues(createNotificationTableRowFromDiscriminatorValue); },
4959
- "pageSize": n => { pagedResultOfNotificationTableRow.pageSize = n.getNumberValue(); },
4960
- "totalCount": n => { pagedResultOfNotificationTableRow.totalCount = n.getNumberValue(); },
4959
+ "pageSize": n => { pagedResultOfNotificationTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4960
+ "totalCount": n => { pagedResultOfNotificationTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4961
4961
  };
4962
4962
  }
4963
4963
  /**
@@ -4970,8 +4970,8 @@ export function deserializeIntoPagedResultOfOrganizationTableRow(pagedResultOfOr
4970
4970
  return {
4971
4971
  "continuationToken": n => { pagedResultOfOrganizationTableRow.continuationToken = n.getStringValue(); },
4972
4972
  "items": n => { pagedResultOfOrganizationTableRow.items = n.getCollectionOfObjectValues(createOrganizationTableRowFromDiscriminatorValue); },
4973
- "pageSize": n => { pagedResultOfOrganizationTableRow.pageSize = n.getNumberValue(); },
4974
- "totalCount": n => { pagedResultOfOrganizationTableRow.totalCount = n.getNumberValue(); },
4973
+ "pageSize": n => { pagedResultOfOrganizationTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4974
+ "totalCount": n => { pagedResultOfOrganizationTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4975
4975
  };
4976
4976
  }
4977
4977
  /**
@@ -4984,8 +4984,8 @@ export function deserializeIntoPagedResultOfPhoneNumberTableRow(pagedResultOfPho
4984
4984
  return {
4985
4985
  "continuationToken": n => { pagedResultOfPhoneNumberTableRow.continuationToken = n.getStringValue(); },
4986
4986
  "items": n => { pagedResultOfPhoneNumberTableRow.items = n.getCollectionOfObjectValues(createPhoneNumberTableRowFromDiscriminatorValue); },
4987
- "pageSize": n => { pagedResultOfPhoneNumberTableRow.pageSize = n.getNumberValue(); },
4988
- "totalCount": n => { pagedResultOfPhoneNumberTableRow.totalCount = n.getNumberValue(); },
4987
+ "pageSize": n => { pagedResultOfPhoneNumberTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4988
+ "totalCount": n => { pagedResultOfPhoneNumberTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
4989
4989
  };
4990
4990
  }
4991
4991
  /**
@@ -4998,8 +4998,8 @@ export function deserializeIntoPagedResultOfSmsEventTableRow(pagedResultOfSmsEve
4998
4998
  return {
4999
4999
  "continuationToken": n => { pagedResultOfSmsEventTableRow.continuationToken = n.getStringValue(); },
5000
5000
  "items": n => { pagedResultOfSmsEventTableRow.items = n.getCollectionOfObjectValues(createSmsEventTableRowFromDiscriminatorValue); },
5001
- "pageSize": n => { pagedResultOfSmsEventTableRow.pageSize = n.getNumberValue(); },
5002
- "totalCount": n => { pagedResultOfSmsEventTableRow.totalCount = n.getNumberValue(); },
5001
+ "pageSize": n => { pagedResultOfSmsEventTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5002
+ "totalCount": n => { pagedResultOfSmsEventTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5003
5003
  };
5004
5004
  }
5005
5005
  /**
@@ -5012,8 +5012,8 @@ export function deserializeIntoPagedResultOfSourceTableRow(pagedResultOfSourceTa
5012
5012
  return {
5013
5013
  "continuationToken": n => { pagedResultOfSourceTableRow.continuationToken = n.getStringValue(); },
5014
5014
  "items": n => { pagedResultOfSourceTableRow.items = n.getCollectionOfObjectValues(createSourceTableRowFromDiscriminatorValue); },
5015
- "pageSize": n => { pagedResultOfSourceTableRow.pageSize = n.getNumberValue(); },
5016
- "totalCount": n => { pagedResultOfSourceTableRow.totalCount = n.getNumberValue(); },
5015
+ "pageSize": n => { pagedResultOfSourceTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5016
+ "totalCount": n => { pagedResultOfSourceTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5017
5017
  };
5018
5018
  }
5019
5019
  /**
@@ -5026,8 +5026,8 @@ export function deserializeIntoPagedResultOfSuppressionEntryResponse(pagedResult
5026
5026
  return {
5027
5027
  "continuationToken": n => { pagedResultOfSuppressionEntryResponse.continuationToken = n.getStringValue(); },
5028
5028
  "items": n => { pagedResultOfSuppressionEntryResponse.items = n.getCollectionOfObjectValues(createSuppressionEntryResponseFromDiscriminatorValue); },
5029
- "pageSize": n => { pagedResultOfSuppressionEntryResponse.pageSize = n.getNumberValue(); },
5030
- "totalCount": n => { pagedResultOfSuppressionEntryResponse.totalCount = n.getNumberValue(); },
5029
+ "pageSize": n => { pagedResultOfSuppressionEntryResponse.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5030
+ "totalCount": n => { pagedResultOfSuppressionEntryResponse.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5031
5031
  };
5032
5032
  }
5033
5033
  /**
@@ -5040,8 +5040,8 @@ export function deserializeIntoPagedResultOfTransactionTableRow(pagedResultOfTra
5040
5040
  return {
5041
5041
  "continuationToken": n => { pagedResultOfTransactionTableRow.continuationToken = n.getStringValue(); },
5042
5042
  "items": n => { pagedResultOfTransactionTableRow.items = n.getCollectionOfObjectValues(createTransactionTableRowFromDiscriminatorValue); },
5043
- "pageSize": n => { pagedResultOfTransactionTableRow.pageSize = n.getNumberValue(); },
5044
- "totalCount": n => { pagedResultOfTransactionTableRow.totalCount = n.getNumberValue(); },
5043
+ "pageSize": n => { pagedResultOfTransactionTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5044
+ "totalCount": n => { pagedResultOfTransactionTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5045
5045
  };
5046
5046
  }
5047
5047
  /**
@@ -5054,8 +5054,8 @@ export function deserializeIntoPagedResultOfUsageLedgerTableRow(pagedResultOfUsa
5054
5054
  return {
5055
5055
  "continuationToken": n => { pagedResultOfUsageLedgerTableRow.continuationToken = n.getStringValue(); },
5056
5056
  "items": n => { pagedResultOfUsageLedgerTableRow.items = n.getCollectionOfObjectValues(createUsageLedgerTableRowFromDiscriminatorValue); },
5057
- "pageSize": n => { pagedResultOfUsageLedgerTableRow.pageSize = n.getNumberValue(); },
5058
- "totalCount": n => { pagedResultOfUsageLedgerTableRow.totalCount = n.getNumberValue(); },
5057
+ "pageSize": n => { pagedResultOfUsageLedgerTableRow.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5058
+ "totalCount": n => { pagedResultOfUsageLedgerTableRow.totalCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5059
5059
  };
5060
5060
  }
5061
5061
  /**
@@ -5080,14 +5080,14 @@ export function deserializeIntoPhone(phone = {}) {
5080
5080
  export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
5081
5081
  return {
5082
5082
  "answeredAt": n => { phoneCallResponse.answeredAt = n.getDateValue(); },
5083
- "billableAmount": n => { phoneCallResponse.billableAmount = n.getNumberValue(); },
5083
+ "billableAmount": n => { phoneCallResponse.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5084
5084
  "billingStatus": n => { phoneCallResponse.billingStatus = n.getStringValue(); },
5085
5085
  "callerId": n => { phoneCallResponse.callerId = n.getStringValue(); },
5086
5086
  "campaignId": n => { phoneCallResponse.campaignId = n.getStringValue(); },
5087
5087
  "conversationId": n => { phoneCallResponse.conversationId = n.getStringValue(); },
5088
5088
  "createdAt": n => { phoneCallResponse.createdAt = n.getDateValue(); },
5089
5089
  "direction": n => { phoneCallResponse.direction = n.getStringValue(); },
5090
- "durationSeconds": n => { phoneCallResponse.durationSeconds = n.getNumberValue(); },
5090
+ "durationSeconds": n => { phoneCallResponse.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5091
5091
  "endedAt": n => { phoneCallResponse.endedAt = n.getDateValue(); },
5092
5092
  "fromPhoneNumber": n => { phoneCallResponse.fromPhoneNumber = n.getStringValue(); },
5093
5093
  "fromPhoneNumberId": n => { phoneCallResponse.fromPhoneNumberId = n.getStringValue(); },
@@ -5304,7 +5304,7 @@ export function deserializeIntoPhoneLookupProviderSnapshot(phoneLookupProviderSn
5304
5304
  "provider": n => { phoneLookupProviderSnapshot.provider = n.getStringValue(); },
5305
5305
  "rawRecordJson": n => { phoneLookupProviderSnapshot.rawRecordJson = n.getStringValue(); },
5306
5306
  "retrievedAt": n => { phoneLookupProviderSnapshot.retrievedAt = n.getDateValue(); },
5307
- "schemaVersion": n => { phoneLookupProviderSnapshot.schemaVersion = n.getNumberValue(); },
5307
+ "schemaVersion": n => { phoneLookupProviderSnapshot.schemaVersion = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5308
5308
  };
5309
5309
  }
5310
5310
  /**
@@ -5330,7 +5330,7 @@ export function deserializeIntoPhoneNumberAvailabilityResponse(phoneNumberAvaila
5330
5330
  "isAvailable": n => { phoneNumberAvailabilityResponse.isAvailable = n.getBooleanValue(); },
5331
5331
  "location": n => { phoneNumberAvailabilityResponse.location = n.getObjectValue(createPhoneNumberAvailabilityResponse_locationFromDiscriminatorValue); },
5332
5332
  "phoneNumber": n => { phoneNumberAvailabilityResponse.phoneNumber = n.getStringValue(); },
5333
- "price": n => { phoneNumberAvailabilityResponse.price = n.getNumberValue(); },
5333
+ "price": n => { phoneNumberAvailabilityResponse.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5334
5334
  };
5335
5335
  }
5336
5336
  /**
@@ -5423,10 +5423,10 @@ export function deserializeIntoPhoneNumberMessagingEventResponse(phoneNumberMess
5423
5423
  // @ts-ignore
5424
5424
  export function deserializeIntoPhoneNumberOptOutMetricsResponse(phoneNumberOptOutMetricsResponse = {}) {
5425
5425
  return {
5426
- "distinctContactedCount": n => { phoneNumberOptOutMetricsResponse.distinctContactedCount = n.getNumberValue(); },
5427
- "optOutCount": n => { phoneNumberOptOutMetricsResponse.optOutCount = n.getNumberValue(); },
5428
- "optOutRatePercent": n => { phoneNumberOptOutMetricsResponse.optOutRatePercent = n.getNumberValue(); },
5429
- "windowDays": n => { phoneNumberOptOutMetricsResponse.windowDays = n.getNumberValue(); },
5426
+ "distinctContactedCount": n => { phoneNumberOptOutMetricsResponse.distinctContactedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5427
+ "optOutCount": n => { phoneNumberOptOutMetricsResponse.optOutCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5428
+ "optOutRatePercent": n => { phoneNumberOptOutMetricsResponse.optOutRatePercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5429
+ "windowDays": n => { phoneNumberOptOutMetricsResponse.windowDays = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5430
5430
  "windowStartedAt": n => { phoneNumberOptOutMetricsResponse.windowStartedAt = n.getDateValue(); },
5431
5431
  };
5432
5432
  }
@@ -5440,9 +5440,9 @@ export function deserializeIntoPhoneNumberReadiness(phoneNumberReadiness = {}) {
5440
5440
  return {
5441
5441
  "callStage": n => { phoneNumberReadiness.callStage = n.getEnumValue(PhoneNumberReadiness_callStageObject); },
5442
5442
  "enabled": n => { phoneNumberReadiness.enabled = n.getBooleanValue(); },
5443
- "healthScore": n => { phoneNumberReadiness.healthScore = n.getNumberValue(); },
5443
+ "healthScore": n => { phoneNumberReadiness.healthScore = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5444
5444
  "healthStatus": n => { phoneNumberReadiness.healthStatus = n.getEnumValue(PhoneNumberReadiness_healthStatusObject); },
5445
- "progressPercent": n => { phoneNumberReadiness.progressPercent = n.getNumberValue(); },
5445
+ "progressPercent": n => { phoneNumberReadiness.progressPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5446
5446
  "state": n => { phoneNumberReadiness.state = n.getEnumValue(PhoneNumberReadiness_stateObject); },
5447
5447
  };
5448
5448
  }
@@ -5574,8 +5574,8 @@ export function deserializeIntoPhoneNumberSearchResult_location(phoneNumberSearc
5574
5574
  // @ts-ignore
5575
5575
  export function deserializeIntoPhoneNumberStatusResponse(phoneNumberStatusResponse = {}) {
5576
5576
  return {
5577
- "callsPossible": n => { phoneNumberStatusResponse.callsPossible = n.getNumberValue(); },
5578
- "messagesPossible": n => { phoneNumberStatusResponse.messagesPossible = n.getNumberValue(); },
5577
+ "callsPossible": n => { phoneNumberStatusResponse.callsPossible = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5578
+ "messagesPossible": n => { phoneNumberStatusResponse.messagesPossible = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5579
5579
  "number": n => { phoneNumberStatusResponse.number = n.getStringValue(); },
5580
5580
  "optOutMetrics": n => { phoneNumberStatusResponse.optOutMetrics = n.getObjectValue(createPhoneNumberOptOutMetricsResponseFromDiscriminatorValue); },
5581
5581
  "outboundCapacity": n => { phoneNumberStatusResponse.outboundCapacity = n.getObjectValue(createPhoneNumberStatusResponse_outboundCapacityFromDiscriminatorValue); },
@@ -5637,17 +5637,17 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
5637
5637
  // @ts-ignore
5638
5638
  export function deserializeIntoPhoneNumberTrafficMetricsResponse(phoneNumberTrafficMetricsResponse = {}) {
5639
5639
  return {
5640
- "callConnectedCount": n => { phoneNumberTrafficMetricsResponse.callConnectedCount = n.getNumberValue(); },
5641
- "callFailedCount": n => { phoneNumberTrafficMetricsResponse.callFailedCount = n.getNumberValue(); },
5642
- "callInvalidNumberCount": n => { phoneNumberTrafficMetricsResponse.callInvalidNumberCount = n.getNumberValue(); },
5643
- "callPlacedCount": n => { phoneNumberTrafficMetricsResponse.callPlacedCount = n.getNumberValue(); },
5644
- "callShortCount": n => { phoneNumberTrafficMetricsResponse.callShortCount = n.getNumberValue(); },
5645
- "mmsFailedCount": n => { phoneNumberTrafficMetricsResponse.mmsFailedCount = n.getNumberValue(); },
5646
- "mmsSentCount": n => { phoneNumberTrafficMetricsResponse.mmsSentCount = n.getNumberValue(); },
5647
- "smsFailedCount": n => { phoneNumberTrafficMetricsResponse.smsFailedCount = n.getNumberValue(); },
5648
- "smsSentCount": n => { phoneNumberTrafficMetricsResponse.smsSentCount = n.getNumberValue(); },
5640
+ "callConnectedCount": n => { phoneNumberTrafficMetricsResponse.callConnectedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5641
+ "callFailedCount": n => { phoneNumberTrafficMetricsResponse.callFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5642
+ "callInvalidNumberCount": n => { phoneNumberTrafficMetricsResponse.callInvalidNumberCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5643
+ "callPlacedCount": n => { phoneNumberTrafficMetricsResponse.callPlacedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5644
+ "callShortCount": n => { phoneNumberTrafficMetricsResponse.callShortCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5645
+ "mmsFailedCount": n => { phoneNumberTrafficMetricsResponse.mmsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5646
+ "mmsSentCount": n => { phoneNumberTrafficMetricsResponse.mmsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5647
+ "smsFailedCount": n => { phoneNumberTrafficMetricsResponse.smsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5648
+ "smsSentCount": n => { phoneNumberTrafficMetricsResponse.smsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5649
5649
  "trend": n => { phoneNumberTrafficMetricsResponse.trend = n.getCollectionOfObjectValues(createPhoneNumberTrafficTrendPointFromDiscriminatorValue); },
5650
- "windowDays": n => { phoneNumberTrafficMetricsResponse.windowDays = n.getNumberValue(); },
5650
+ "windowDays": n => { phoneNumberTrafficMetricsResponse.windowDays = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5651
5651
  "windowStartedAt": n => { phoneNumberTrafficMetricsResponse.windowStartedAt = n.getDateValue(); },
5652
5652
  };
5653
5653
  }
@@ -5659,14 +5659,14 @@ export function deserializeIntoPhoneNumberTrafficMetricsResponse(phoneNumberTraf
5659
5659
  // @ts-ignore
5660
5660
  export function deserializeIntoPhoneNumberTrafficTrendPoint(phoneNumberTrafficTrendPoint = {}) {
5661
5661
  return {
5662
- "callFailedCount": n => { phoneNumberTrafficTrendPoint.callFailedCount = n.getNumberValue(); },
5663
- "callPlacedCount": n => { phoneNumberTrafficTrendPoint.callPlacedCount = n.getNumberValue(); },
5662
+ "callFailedCount": n => { phoneNumberTrafficTrendPoint.callFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5663
+ "callPlacedCount": n => { phoneNumberTrafficTrendPoint.callPlacedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5664
5664
  "endAt": n => { phoneNumberTrafficTrendPoint.endAt = n.getDateValue(); },
5665
5665
  "label": n => { phoneNumberTrafficTrendPoint.label = n.getStringValue(); },
5666
- "mmsFailedCount": n => { phoneNumberTrafficTrendPoint.mmsFailedCount = n.getNumberValue(); },
5667
- "mmsSentCount": n => { phoneNumberTrafficTrendPoint.mmsSentCount = n.getNumberValue(); },
5668
- "smsFailedCount": n => { phoneNumberTrafficTrendPoint.smsFailedCount = n.getNumberValue(); },
5669
- "smsSentCount": n => { phoneNumberTrafficTrendPoint.smsSentCount = n.getNumberValue(); },
5666
+ "mmsFailedCount": n => { phoneNumberTrafficTrendPoint.mmsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5667
+ "mmsSentCount": n => { phoneNumberTrafficTrendPoint.mmsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5668
+ "smsFailedCount": n => { phoneNumberTrafficTrendPoint.smsFailedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5669
+ "smsSentCount": n => { phoneNumberTrafficTrendPoint.smsSentCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5670
5670
  "startAt": n => { phoneNumberTrafficTrendPoint.startAt = n.getDateValue(); },
5671
5671
  };
5672
5672
  }
@@ -5680,7 +5680,7 @@ export function deserializeIntoProblemDetails(problemDetails = {}) {
5680
5680
  return {
5681
5681
  "detail": n => { problemDetails.detail = n.getStringValue(); },
5682
5682
  "instance": n => { problemDetails.instance = n.getStringValue(); },
5683
- "status": n => { problemDetails.status = n.getNumberValue(); },
5683
+ "status": n => { problemDetails.status = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5684
5684
  "title": n => { problemDetails.title = n.getStringValue(); },
5685
5685
  "type": n => { problemDetails.type = n.getStringValue(); },
5686
5686
  };
@@ -5742,7 +5742,7 @@ export function deserializeIntoRequestDataOptions(requestDataOptions = {}) {
5742
5742
  "filters": n => { requestDataOptions.filters = n.getCollectionOfObjectValues(createExactMatchFilterFromDiscriminatorValue); },
5743
5743
  "includeCount": n => { requestDataOptions.includeCount = n.getBooleanValue(); },
5744
5744
  "orderBy": n => { requestDataOptions.orderBy = n.getCollectionOfObjectValues(createOrderByOptionFromDiscriminatorValue); },
5745
- "pageSize": n => { requestDataOptions.pageSize = n.getNumberValue(); },
5745
+ "pageSize": n => { requestDataOptions.pageSize = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5746
5746
  "rangeFilters": n => { requestDataOptions.rangeFilters = n.getCollectionOfObjectValues(createRangeFilterFromDiscriminatorValue); },
5747
5747
  "search": n => { requestDataOptions.search = n.getStringValue(); },
5748
5748
  "searchFields": n => { requestDataOptions.searchFields = n.getCollectionOfPrimitiveValues("string"); },
@@ -5778,7 +5778,7 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
5778
5778
  return {
5779
5779
  "actorDisplayName": n => { smsEventTableRow.actorDisplayName = n.getStringValue(); },
5780
5780
  "actorUserId": n => { smsEventTableRow.actorUserId = n.getStringValue(); },
5781
- "billableAmount": n => { smsEventTableRow.billableAmount = n.getNumberValue(); },
5781
+ "billableAmount": n => { smsEventTableRow.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5782
5782
  "billingStatus": n => { smsEventTableRow.billingStatus = n.getStringValue(); },
5783
5783
  "blockedAt": n => { smsEventTableRow.blockedAt = n.getDateValue(); },
5784
5784
  "canceledAt": n => { smsEventTableRow.canceledAt = n.getDateValue(); },
@@ -5826,11 +5826,11 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
5826
5826
  // @ts-ignore
5827
5827
  export function deserializeIntoSmsReadinessStatusResponse(smsReadinessStatusResponse = {}) {
5828
5828
  return {
5829
- "healthScore": n => { smsReadinessStatusResponse.healthScore = n.getNumberValue(); },
5829
+ "healthScore": n => { smsReadinessStatusResponse.healthScore = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5830
5830
  "healthStatus": n => { smsReadinessStatusResponse.healthStatus = n.getEnumValue(SmsReadinessHealthStatusObject); },
5831
5831
  "phoneNumber": n => { smsReadinessStatusResponse.phoneNumber = n.getStringValue(); },
5832
5832
  "phoneNumberId": n => { smsReadinessStatusResponse.phoneNumberId = n.getStringValue(); },
5833
- "progressPercent": n => { smsReadinessStatusResponse.progressPercent = n.getNumberValue(); },
5833
+ "progressPercent": n => { smsReadinessStatusResponse.progressPercent = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5834
5834
  "status": n => { smsReadinessStatusResponse.status = n.getEnumValue(SmsReadinessStateObject); },
5835
5835
  "uiState": n => { smsReadinessStatusResponse.uiState = n.getObjectValue(createSmsReadinessUiStateFromDiscriminatorValue); },
5836
5836
  "warmupEnabled": n => { smsReadinessStatusResponse.warmupEnabled = n.getBooleanValue(); },
@@ -5857,7 +5857,7 @@ export function deserializeIntoSmsReadinessUiState(smsReadinessUiState = {}) {
5857
5857
  // @ts-ignore
5858
5858
  export function deserializeIntoSmsResponse(smsResponse = {}) {
5859
5859
  return {
5860
- "billableAmount": n => { smsResponse.billableAmount = n.getNumberValue(); },
5860
+ "billableAmount": n => { smsResponse.billableAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5861
5861
  "billingStatus": n => { smsResponse.billingStatus = n.getStringValue(); },
5862
5862
  "blockedAt": n => { smsResponse.blockedAt = n.getDateValue(); },
5863
5863
  "campaignId": n => { smsResponse.campaignId = n.getStringValue(); },
@@ -5880,7 +5880,7 @@ export function deserializeIntoSmsResponse(smsResponse = {}) {
5880
5880
  "outboundPhoneNumberId": n => { smsResponse.outboundPhoneNumberId = n.getStringValue(); },
5881
5881
  "queuedAt": n => { smsResponse.queuedAt = n.getDateValue(); },
5882
5882
  "receivedAt": n => { smsResponse.receivedAt = n.getDateValue(); },
5883
- "retryCount": n => { smsResponse.retryCount = n.getNumberValue(); },
5883
+ "retryCount": n => { smsResponse.retryCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5884
5884
  "scheduledFor": n => { smsResponse.scheduledFor = n.getDateValue(); },
5885
5885
  "scheduledReason": n => { smsResponse.scheduledReason = n.getStringValue(); },
5886
5886
  "selectionReason": n => { smsResponse.selectionReason = n.getEnumValue(SmsResponse_selectionReasonObject); },
@@ -5906,7 +5906,7 @@ export function deserializeIntoSourceMetricsResponse(sourceMetricsResponse = {})
5906
5906
  "generatedAt": n => { sourceMetricsResponse.generatedAt = n.getDateValue(); },
5907
5907
  "points": n => { sourceMetricsResponse.points = n.getCollectionOfObjectValues(createAnalyticsTrendPointOfintFromDiscriminatorValue); },
5908
5908
  "range": n => { sourceMetricsResponse.range = n.getObjectValue(createAnalyticsDateRangeFromDiscriminatorValue); },
5909
- "totalLeads": n => { sourceMetricsResponse.totalLeads = n.getNumberValue(); },
5909
+ "totalLeads": n => { sourceMetricsResponse.totalLeads = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5910
5910
  };
5911
5911
  }
5912
5912
  /**
@@ -5920,7 +5920,7 @@ export function deserializeIntoSourceRequest(sourceRequest = {}) {
5920
5920
  "allowedProducts": n => { sourceRequest.allowedProducts = n.getCollectionOfPrimitiveValues("string"); },
5921
5921
  "allowedStates": n => { sourceRequest.allowedStates = n.getCollectionOfPrimitiveValues("string"); },
5922
5922
  "apiKey": n => { sourceRequest.apiKey = n.getStringValue(); },
5923
- "costPerLead": n => { sourceRequest.costPerLead = n.getNumberValue(); },
5923
+ "costPerLead": n => { sourceRequest.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5924
5924
  "defaultTagIds": n => { sourceRequest.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
5925
5925
  "defaultTagNames": n => { sourceRequest.defaultTagNames = n.getCollectionOfPrimitiveValues("string"); },
5926
5926
  "description": n => { sourceRequest.description = n.getStringValue(); },
@@ -5944,7 +5944,7 @@ export function deserializeIntoSourceResponse(sourceResponse = {}) {
5944
5944
  "apiKey": n => { sourceResponse.apiKey = n.getStringValue(); },
5945
5945
  "apiKeyPreview": n => { sourceResponse.apiKeyPreview = n.getStringValue(); },
5946
5946
  "complianceApproved": n => { sourceResponse.complianceApproved = n.getBooleanValue(); },
5947
- "costPerLead": n => { sourceResponse.costPerLead = n.getNumberValue(); },
5947
+ "costPerLead": n => { sourceResponse.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
5948
5948
  "createdAt": n => { sourceResponse.createdAt = n.getDateValue(); },
5949
5949
  "createdByUser": n => { sourceResponse.createdByUser = n.getObjectValue(createSourceResponse_createdByUserFromDiscriminatorValue); },
5950
5950
  "defaultTagIds": n => { sourceResponse.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
@@ -6019,9 +6019,9 @@ export function deserializeIntoSourceTableRow(sourceTableRow = {}) {
6019
6019
  "apiKey": n => { sourceTableRow.apiKey = n.getStringValue(); },
6020
6020
  "apiKeyLastUsedAt": n => { sourceTableRow.apiKeyLastUsedAt = n.getDateValue(); },
6021
6021
  "apiKeyPreview": n => { sourceTableRow.apiKeyPreview = n.getStringValue(); },
6022
- "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getNumberValue(); },
6022
+ "apiKeyTotalUses": n => { sourceTableRow.apiKeyTotalUses = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6023
6023
  "complianceApproved": n => { sourceTableRow.complianceApproved = n.getBooleanValue(); },
6024
- "costPerLead": n => { sourceTableRow.costPerLead = n.getNumberValue(); },
6024
+ "costPerLead": n => { sourceTableRow.costPerLead = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6025
6025
  "createdAt": n => { sourceTableRow.createdAt = n.getDateValue(); },
6026
6026
  "createdByUser": n => { sourceTableRow.createdByUser = n.getObjectValue(createSourceTableRow_createdByUserFromDiscriminatorValue); },
6027
6027
  "defaultTagIds": n => { sourceTableRow.defaultTagIds = n.getCollectionOfPrimitiveValues("string"); },
@@ -6111,7 +6111,7 @@ export function deserializeIntoStreetAddress(streetAddress = {}) {
6111
6111
  // @ts-ignore
6112
6112
  export function deserializeIntoStripeInvoiceResponse(stripeInvoiceResponse = {}) {
6113
6113
  return {
6114
- "amount": n => { stripeInvoiceResponse.amount = n.getNumberValue(); },
6114
+ "amount": n => { stripeInvoiceResponse.amount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6115
6115
  "createdAt": n => { stripeInvoiceResponse.createdAt = n.getDateValue(); },
6116
6116
  "hasPdf": n => { stripeInvoiceResponse.hasPdf = n.getBooleanValue(); },
6117
6117
  "id": n => { stripeInvoiceResponse.id = n.getStringValue(); },
@@ -6129,8 +6129,8 @@ export function deserializeIntoStripePaymentMethodResponse(stripePaymentMethodRe
6129
6129
  return {
6130
6130
  "brand": n => { stripePaymentMethodResponse.brand = n.getStringValue(); },
6131
6131
  "createdAt": n => { stripePaymentMethodResponse.createdAt = n.getDateValue(); },
6132
- "expMonth": n => { stripePaymentMethodResponse.expMonth = n.getNumberValue(); },
6133
- "expYear": n => { stripePaymentMethodResponse.expYear = n.getNumberValue(); },
6132
+ "expMonth": n => { stripePaymentMethodResponse.expMonth = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6133
+ "expYear": n => { stripePaymentMethodResponse.expYear = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6134
6134
  "id": n => { stripePaymentMethodResponse.id = n.getStringValue(); },
6135
6135
  "isDefault": n => { stripePaymentMethodResponse.isDefault = n.getBooleanValue(); },
6136
6136
  "last4": n => { stripePaymentMethodResponse.last4 = n.getStringValue(); },
@@ -6321,7 +6321,7 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
6321
6321
  "contactName": n => { tenDlcApplicationDraft.contactName = n.getStringValue(); },
6322
6322
  "contactPhone": n => { tenDlcApplicationDraft.contactPhone = n.getStringValue(); },
6323
6323
  "ein": n => { tenDlcApplicationDraft.ein = n.getStringValue(); },
6324
- "expectedMonthlyVolume": n => { tenDlcApplicationDraft.expectedMonthlyVolume = n.getNumberValue(); },
6324
+ "expectedMonthlyVolume": n => { tenDlcApplicationDraft.expectedMonthlyVolume = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6325
6325
  "industry": n => { tenDlcApplicationDraft.industry = n.getStringValue(); },
6326
6326
  "lastSubmittedAt": n => { tenDlcApplicationDraft.lastSubmittedAt = n.getDateValue(); },
6327
6327
  "messageExamples": n => { tenDlcApplicationDraft.messageExamples = n.getCollectionOfPrimitiveValues("string"); },
@@ -6334,7 +6334,7 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
6334
6334
  "updatedAt": n => { tenDlcApplicationDraft.updatedAt = n.getDateValue(); },
6335
6335
  "useCase": n => { tenDlcApplicationDraft.useCase = n.getStringValue(); },
6336
6336
  "useCaseDescription": n => { tenDlcApplicationDraft.useCaseDescription = n.getStringValue(); },
6337
- "version": n => { tenDlcApplicationDraft.version = n.getNumberValue(); },
6337
+ "version": n => { tenDlcApplicationDraft.version = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6338
6338
  "websiteUrl": n => { tenDlcApplicationDraft.websiteUrl = n.getStringValue(); },
6339
6339
  };
6340
6340
  }
@@ -6357,22 +6357,22 @@ export function deserializeIntoTenDlcNotesRequest(tenDlcNotesRequest = {}) {
6357
6357
  // @ts-ignore
6358
6358
  export function deserializeIntoTransactionResponse(transactionResponse = {}) {
6359
6359
  return {
6360
- "amount": n => { transactionResponse.amount = n.getNumberValue(); },
6360
+ "amount": n => { transactionResponse.amount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6361
6361
  "billableUnit": n => { transactionResponse.billableUnit = n.getEnumValue(TransactionResponse_billableUnitObject); },
6362
- "billedAmount": n => { transactionResponse.billedAmount = n.getNumberValue(); },
6362
+ "billedAmount": n => { transactionResponse.billedAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6363
6363
  "billingChannel": n => { transactionResponse.billingChannel = n.getEnumValue(TransactionResponse_billingChannelObject); },
6364
6364
  "createdAt": n => { transactionResponse.createdAt = n.getDateValue(); },
6365
6365
  "description": n => { transactionResponse.description = n.getStringValue(); },
6366
- "gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getNumberValue(); },
6366
+ "gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6367
6367
  "gatewayStatus": n => { transactionResponse.gatewayStatus = n.getStringValue(); },
6368
6368
  "id": n => { transactionResponse.id = n.getStringValue(); },
6369
6369
  "lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
6370
6370
  "modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
6371
- "netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
6371
+ "netAmount": n => { transactionResponse.netAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6372
6372
  "notes": n => { transactionResponse.notes = n.getStringValue(); },
6373
6373
  "organization": n => { transactionResponse.organization = n.getObjectValue(createTransactionResponse_organizationFromDiscriminatorValue); },
6374
6374
  "paymentMethodDisplay": n => { transactionResponse.paymentMethodDisplay = n.getStringValue(); },
6375
- "platformFeeAmount": n => { transactionResponse.platformFeeAmount = n.getNumberValue(); },
6375
+ "platformFeeAmount": n => { transactionResponse.platformFeeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6376
6376
  "transactionStatus": n => { transactionResponse.transactionStatus = n.getEnumValue(TransactionStatusObject); },
6377
6377
  "transactionType": n => { transactionResponse.transactionType = n.getEnumValue(TransactionTypeObject); },
6378
6378
  };
@@ -6407,24 +6407,24 @@ export function deserializeIntoTransactionResponse_organization(transactionRespo
6407
6407
  // @ts-ignore
6408
6408
  export function deserializeIntoTransactionTableRow(transactionTableRow = {}) {
6409
6409
  return {
6410
- "amount": n => { transactionTableRow.amount = n.getNumberValue(); },
6410
+ "amount": n => { transactionTableRow.amount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6411
6411
  "billableUnit": n => { transactionTableRow.billableUnit = n.getEnumValue(TransactionTableRow_billableUnitObject); },
6412
- "billedAmount": n => { transactionTableRow.billedAmount = n.getNumberValue(); },
6412
+ "billedAmount": n => { transactionTableRow.billedAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6413
6413
  "billingChannel": n => { transactionTableRow.billingChannel = n.getEnumValue(TransactionTableRow_billingChannelObject); },
6414
6414
  "createdAt": n => { transactionTableRow.createdAt = n.getDateValue(); },
6415
6415
  "description": n => { transactionTableRow.description = n.getStringValue(); },
6416
6416
  "id": n => { transactionTableRow.id = n.getStringValue(); },
6417
6417
  "lead": n => { transactionTableRow.lead = n.getObjectValue(createTransactionTableRow_leadFromDiscriminatorValue); },
6418
- "netAmount": n => { transactionTableRow.netAmount = n.getNumberValue(); },
6418
+ "netAmount": n => { transactionTableRow.netAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6419
6419
  "organization": n => { transactionTableRow.organization = n.getObjectValue(createTransactionTableRow_organizationFromDiscriminatorValue); },
6420
6420
  "paymentMethodDisplay": n => { transactionTableRow.paymentMethodDisplay = n.getStringValue(); },
6421
6421
  "pricingVersion": n => { transactionTableRow.pricingVersion = n.getStringValue(); },
6422
- "quantity": n => { transactionTableRow.quantity = n.getNumberValue(); },
6422
+ "quantity": n => { transactionTableRow.quantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6423
6423
  "sourceEventId": n => { transactionTableRow.sourceEventId = n.getStringValue(); },
6424
6424
  "sourceEventType": n => { transactionTableRow.sourceEventType = n.getStringValue(); },
6425
6425
  "transactionStatus": n => { transactionTableRow.transactionStatus = n.getEnumValue(TransactionStatusObject); },
6426
6426
  "transactionType": n => { transactionTableRow.transactionType = n.getEnumValue(TransactionTypeObject); },
6427
- "unitPrice": n => { transactionTableRow.unitPrice = n.getNumberValue(); },
6427
+ "unitPrice": n => { transactionTableRow.unitPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6428
6428
  };
6429
6429
  }
6430
6430
  /**
@@ -6473,9 +6473,9 @@ export function deserializeIntoUsageCounterLine(usageCounterLine = {}) {
6473
6473
  return {
6474
6474
  "key": n => { usageCounterLine.key = n.getStringValue(); },
6475
6475
  "label": n => { usageCounterLine.label = n.getStringValue(); },
6476
- "sortOrder": n => { usageCounterLine.sortOrder = n.getNumberValue(); },
6476
+ "sortOrder": n => { usageCounterLine.sortOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6477
6477
  "unit": n => { usageCounterLine.unit = n.getStringValue(); },
6478
- "value": n => { usageCounterLine.value = n.getNumberValue(); },
6478
+ "value": n => { usageCounterLine.value = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6479
6479
  };
6480
6480
  }
6481
6481
  /**
@@ -6486,23 +6486,23 @@ export function deserializeIntoUsageCounterLine(usageCounterLine = {}) {
6486
6486
  // @ts-ignore
6487
6487
  export function deserializeIntoUsageLedgerTableRow(usageLedgerTableRow = {}) {
6488
6488
  return {
6489
- "billableSeconds": n => { usageLedgerTableRow.billableSeconds = n.getNumberValue(); },
6489
+ "billableSeconds": n => { usageLedgerTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6490
6490
  "billableUnit": n => { usageLedgerTableRow.billableUnit = n.getEnumValue(BillableUnitObject); },
6491
6491
  "channel": n => { usageLedgerTableRow.channel = n.getEnumValue(UsageChannelObject); },
6492
6492
  "createdAt": n => { usageLedgerTableRow.createdAt = n.getDateValue(); },
6493
- "customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getNumberValue(); },
6493
+ "customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6494
6494
  "description": n => { usageLedgerTableRow.description = n.getStringValue(); },
6495
- "durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getNumberValue(); },
6495
+ "durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6496
6496
  "id": n => { usageLedgerTableRow.id = n.getStringValue(); },
6497
6497
  "isBillable": n => { usageLedgerTableRow.isBillable = n.getBooleanValue(); },
6498
6498
  "lead": n => { usageLedgerTableRow.lead = n.getObjectValue(createUsageLedgerTableRow_leadFromDiscriminatorValue); },
6499
6499
  "organization": n => { usageLedgerTableRow.organization = n.getObjectValue(createUsageLedgerTableRow_organizationFromDiscriminatorValue); },
6500
6500
  "phoneNumber": n => { usageLedgerTableRow.phoneNumber = n.getStringValue(); },
6501
6501
  "phoneNumberId": n => { usageLedgerTableRow.phoneNumberId = n.getStringValue(); },
6502
- "quantity": n => { usageLedgerTableRow.quantity = n.getNumberValue(); },
6503
- "smsSegments": n => { usageLedgerTableRow.smsSegments = n.getNumberValue(); },
6502
+ "quantity": n => { usageLedgerTableRow.quantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6503
+ "smsSegments": n => { usageLedgerTableRow.smsSegments = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6504
6504
  "status": n => { usageLedgerTableRow.status = n.getEnumValue(UsageStatusObject); },
6505
- "unitPrice": n => { usageLedgerTableRow.unitPrice = n.getNumberValue(); },
6505
+ "unitPrice": n => { usageLedgerTableRow.unitPrice = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6506
6506
  "user": n => { usageLedgerTableRow.user = n.getObjectValue(createUsageLedgerTableRow_userFromDiscriminatorValue); },
6507
6507
  };
6508
6508
  }
@@ -6549,9 +6549,9 @@ export function deserializeIntoUsageSummaryLine(usageSummaryLine = {}) {
6549
6549
  return {
6550
6550
  "billableUnit": n => { usageSummaryLine.billableUnit = n.getEnumValue(BillableUnitObject); },
6551
6551
  "channel": n => { usageSummaryLine.channel = n.getEnumValue(UsageChannelObject); },
6552
- "customerChargeAmount": n => { usageSummaryLine.customerChargeAmount = n.getNumberValue(); },
6553
- "quantity": n => { usageSummaryLine.quantity = n.getNumberValue(); },
6554
- "recordCount": n => { usageSummaryLine.recordCount = n.getNumberValue(); },
6552
+ "customerChargeAmount": n => { usageSummaryLine.customerChargeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6553
+ "quantity": n => { usageSummaryLine.quantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6554
+ "recordCount": n => { usageSummaryLine.recordCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6555
6555
  "status": n => { usageSummaryLine.status = n.getEnumValue(UsageStatusObject); },
6556
6556
  };
6557
6557
  }
@@ -6563,15 +6563,15 @@ export function deserializeIntoUsageSummaryLine(usageSummaryLine = {}) {
6563
6563
  // @ts-ignore
6564
6564
  export function deserializeIntoUsageSummaryResponse(usageSummaryResponse = {}) {
6565
6565
  return {
6566
- "billableQuantityTotal": n => { usageSummaryResponse.billableQuantityTotal = n.getNumberValue(); },
6566
+ "billableQuantityTotal": n => { usageSummaryResponse.billableQuantityTotal = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6567
6567
  "counters": n => { usageSummaryResponse.counters = n.getCollectionOfObjectValues(createUsageCounterLineFromDiscriminatorValue); },
6568
- "customerChargeTotal": n => { usageSummaryResponse.customerChargeTotal = n.getNumberValue(); },
6569
- "failedCount": n => { usageSummaryResponse.failedCount = n.getNumberValue(); },
6568
+ "customerChargeTotal": n => { usageSummaryResponse.customerChargeTotal = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6569
+ "failedCount": n => { usageSummaryResponse.failedCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6570
6570
  "lines": n => { usageSummaryResponse.lines = n.getCollectionOfObjectValues(createUsageSummaryLineFromDiscriminatorValue); },
6571
- "pendingInvoiceCount": n => { usageSummaryResponse.pendingInvoiceCount = n.getNumberValue(); },
6571
+ "pendingInvoiceCount": n => { usageSummaryResponse.pendingInvoiceCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6572
6572
  "periodEnd": n => { usageSummaryResponse.periodEnd = n.getDateValue(); },
6573
6573
  "periodStart": n => { usageSummaryResponse.periodStart = n.getDateValue(); },
6574
- "transactionCount": n => { usageSummaryResponse.transactionCount = n.getNumberValue(); },
6574
+ "transactionCount": n => { usageSummaryResponse.transactionCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6575
6575
  };
6576
6576
  }
6577
6577
  /**
@@ -6601,7 +6601,7 @@ export function deserializeIntoUserDataExportFile(userDataExportFile = {}) {
6601
6601
  "category": n => { userDataExportFile.category = n.getStringValue(); },
6602
6602
  "contentType": n => { userDataExportFile.contentType = n.getStringValue(); },
6603
6603
  "fileName": n => { userDataExportFile.fileName = n.getStringValue(); },
6604
- "rowCount": n => { userDataExportFile.rowCount = n.getNumberValue(); },
6604
+ "rowCount": n => { userDataExportFile.rowCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6605
6605
  };
6606
6606
  }
6607
6607
  /**
@@ -6614,17 +6614,17 @@ export function deserializeIntoUserDataExportResponse(userDataExportResponse = {
6614
6614
  return {
6615
6615
  "completedAt": n => { userDataExportResponse.completedAt = n.getDateValue(); },
6616
6616
  "contentType": n => { userDataExportResponse.contentType = n.getStringValue(); },
6617
- "downloadCount": n => { userDataExportResponse.downloadCount = n.getNumberValue(); },
6617
+ "downloadCount": n => { userDataExportResponse.downloadCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6618
6618
  "downloadUrl": n => { userDataExportResponse.downloadUrl = n.getStringValue(); },
6619
6619
  "expiresAt": n => { userDataExportResponse.expiresAt = n.getDateValue(); },
6620
6620
  "failedAt": n => { userDataExportResponse.failedAt = n.getDateValue(); },
6621
6621
  "fileName": n => { userDataExportResponse.fileName = n.getStringValue(); },
6622
6622
  "files": n => { userDataExportResponse.files = n.getCollectionOfObjectValues(createUserDataExportFileFromDiscriminatorValue); },
6623
6623
  "id": n => { userDataExportResponse.id = n.getStringValue(); },
6624
- "maxDownloadCount": n => { userDataExportResponse.maxDownloadCount = n.getNumberValue(); },
6624
+ "maxDownloadCount": n => { userDataExportResponse.maxDownloadCount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6625
6625
  "message": n => { userDataExportResponse.message = n.getStringValue(); },
6626
6626
  "requestedAt": n => { userDataExportResponse.requestedAt = n.getDateValue(); },
6627
- "sizeBytes": n => { userDataExportResponse.sizeBytes = n.getNumberValue(); },
6627
+ "sizeBytes": n => { userDataExportResponse.sizeBytes = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6628
6628
  "startedAt": n => { userDataExportResponse.startedAt = n.getDateValue(); },
6629
6629
  "status": n => { userDataExportResponse.status = n.getEnumValue(UserDataExportStatusesObject); },
6630
6630
  };
@@ -6830,20 +6830,20 @@ export function deserializeIntoUserResponse_notificationPreferences(userResponse
6830
6830
  // @ts-ignore
6831
6831
  export function deserializeIntoWalletResponse(walletResponse = {}) {
6832
6832
  return {
6833
- "amountPurchased": n => { walletResponse.amountPurchased = n.getNumberValue(); },
6834
- "amountRemaining": n => { walletResponse.amountRemaining = n.getNumberValue(); },
6835
- "balance": n => { walletResponse.balance = n.getNumberValue(); },
6833
+ "amountPurchased": n => { walletResponse.amountPurchased = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6834
+ "amountRemaining": n => { walletResponse.amountRemaining = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6835
+ "balance": n => { walletResponse.balance = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6836
6836
  "balanceCalculatedAt": n => { walletResponse.balanceCalculatedAt = n.getDateValue(); },
6837
6837
  "createdAt": n => { walletResponse.createdAt = n.getDateValue(); },
6838
6838
  "creditStatus": n => { walletResponse.creditStatus = n.getEnumValue(WalletResponse_creditStatusObject); },
6839
6839
  "currency": n => { walletResponse.currency = n.getStringValue(); },
6840
- "expiredCreditAmount": n => { walletResponse.expiredCreditAmount = n.getNumberValue(); },
6840
+ "expiredCreditAmount": n => { walletResponse.expiredCreditAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6841
6841
  "expiresAt": n => { walletResponse.expiresAt = n.getDateValue(); },
6842
6842
  "id": n => { walletResponse.id = n.getStringValue(); },
6843
6843
  "modifiedAt": n => { walletResponse.modifiedAt = n.getDateValue(); },
6844
6844
  "name": n => { walletResponse.name = n.getStringValue(); },
6845
6845
  "nextCreditExpirationAt": n => { walletResponse.nextCreditExpirationAt = n.getDateValue(); },
6846
- "nextExpiringCreditAmount": n => { walletResponse.nextExpiringCreditAmount = n.getNumberValue(); },
6846
+ "nextExpiringCreditAmount": n => { walletResponse.nextExpiringCreditAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
6847
6847
  "organizationId": n => { walletResponse.organizationId = n.getStringValue(); },
6848
6848
  "originalTransactionId": n => { walletResponse.originalTransactionId = n.getStringValue(); },
6849
6849
  "purchasedAt": n => { walletResponse.purchasedAt = n.getDateValue(); },
@@ -6880,7 +6880,7 @@ export function serializeActivationDomainOption(writer, activationDomainOption =
6880
6880
  }
6881
6881
  writer.writeStringValue("availabilityStatus", activationDomainOption.availabilityStatus);
6882
6882
  writer.writeStringValue("domainName", activationDomainOption.domainName);
6883
- writer.writeNumberValue("estimatedAnnualCost", activationDomainOption.estimatedAnnualCost);
6883
+ writer.writeObjectValue("estimatedAnnualCost", activationDomainOption.estimatedAnnualCost);
6884
6884
  writer.writeStringValue("industryRelevance", activationDomainOption.industryRelevance);
6885
6885
  writer.writeBooleanValue("recommended", activationDomainOption.recommended);
6886
6886
  writer.writeStringValue("trustConcerns", activationDomainOption.trustConcerns);
@@ -6932,10 +6932,10 @@ export function serializeAnalyticsComparison(writer, analyticsComparison = {}, i
6932
6932
  if (!analyticsComparison || isSerializingDerivedType) {
6933
6933
  return;
6934
6934
  }
6935
- writer.writeNumberValue("changePercent", analyticsComparison.changePercent);
6936
- writer.writeNumberValue("current", analyticsComparison.current);
6935
+ writer.writeObjectValue("changePercent", analyticsComparison.changePercent);
6936
+ writer.writeObjectValue("current", analyticsComparison.current);
6937
6937
  writer.writeStringValue("direction", analyticsComparison.direction);
6938
- writer.writeNumberValue("previous", analyticsComparison.previous);
6938
+ writer.writeObjectValue("previous", analyticsComparison.previous);
6939
6939
  writer.writeAdditionalData(analyticsComparison.additionalData);
6940
6940
  }
6941
6941
  /**
@@ -6968,7 +6968,7 @@ export function serializeAnalyticsTrendPointOfdecimal(writer, analyticsTrendPoin
6968
6968
  writer.writeDateValue("endAt", analyticsTrendPointOfdecimal.endAt);
6969
6969
  writer.writeStringValue("label", analyticsTrendPointOfdecimal.label);
6970
6970
  writer.writeDateValue("startAt", analyticsTrendPointOfdecimal.startAt);
6971
- writer.writeNumberValue("value", analyticsTrendPointOfdecimal.value);
6971
+ writer.writeObjectValue("value", analyticsTrendPointOfdecimal.value);
6972
6972
  writer.writeAdditionalData(analyticsTrendPointOfdecimal.additionalData);
6973
6973
  }
6974
6974
  /**
@@ -6985,7 +6985,7 @@ export function serializeAnalyticsTrendPointOfint(writer, analyticsTrendPointOfi
6985
6985
  writer.writeDateValue("endAt", analyticsTrendPointOfint.endAt);
6986
6986
  writer.writeStringValue("label", analyticsTrendPointOfint.label);
6987
6987
  writer.writeDateValue("startAt", analyticsTrendPointOfint.startAt);
6988
- writer.writeNumberValue("value", analyticsTrendPointOfint.value);
6988
+ writer.writeObjectValue("value", analyticsTrendPointOfint.value);
6989
6989
  writer.writeAdditionalData(analyticsTrendPointOfint.additionalData);
6990
6990
  }
6991
6991
  /**
@@ -7001,7 +7001,7 @@ export function serializeAutomationAction(writer, automationAction = {}, isSeria
7001
7001
  }
7002
7002
  writer.writeStringValue("id", automationAction.id);
7003
7003
  writer.writeBooleanValue("isEnabled", automationAction.isEnabled);
7004
- writer.writeNumberValue("order", automationAction.order);
7004
+ writer.writeObjectValue("order", automationAction.order);
7005
7005
  writer.writeObjectValue("settings", automationAction.settings, serializeAutomationAction_settings);
7006
7006
  writer.writeStringValue("type", automationAction.type);
7007
7007
  writer.writeAdditionalData(automationAction.additionalData);
@@ -7038,8 +7038,8 @@ export function serializeAutomationActionRunRecord(writer, automationActionRunRe
7038
7038
  writer.writeStringValue("failureCode", automationActionRunRecord.failureCode);
7039
7039
  writer.writeStringValue("id", automationActionRunRecord.id);
7040
7040
  writer.writeDateValue("nextRetryAt", automationActionRunRecord.nextRetryAt);
7041
- writer.writeNumberValue("order", automationActionRunRecord.order);
7042
- writer.writeNumberValue("processingAttempts", automationActionRunRecord.processingAttempts);
7041
+ writer.writeObjectValue("order", automationActionRunRecord.order);
7042
+ writer.writeObjectValue("processingAttempts", automationActionRunRecord.processingAttempts);
7043
7043
  writer.writeDateValue("scheduledAt", automationActionRunRecord.scheduledAt);
7044
7044
  writer.writeDateValue("startedAt", automationActionRunRecord.startedAt);
7045
7045
  writer.writeStringValue("status", automationActionRunRecord.status);
@@ -7209,7 +7209,7 @@ export function serializeAutomationRequest(writer, automationRequest = {}, isSer
7209
7209
  writer.writeStringValue("name", automationRequest.name);
7210
7210
  writer.writeStringValue("scope", automationRequest.scope);
7211
7211
  writer.writeCollectionOfObjectValues("triggers", automationRequest.triggers, serializeAutomationTrigger);
7212
- writer.writeNumberValue("version", automationRequest.version);
7212
+ writer.writeObjectValue("version", automationRequest.version);
7213
7213
  writer.writeStringValue("visibility", automationRequest.visibility);
7214
7214
  writer.writeAdditionalData(automationRequest.additionalData);
7215
7215
  }
@@ -7271,7 +7271,7 @@ export function serializeAutomationResponse(writer, automationResponse = {}, isS
7271
7271
  writer.writeStringValue("scope", automationResponse.scope);
7272
7272
  writer.writeCollectionOfObjectValues("triggers", automationResponse.triggers, serializeAutomationTrigger);
7273
7273
  writer.writeObjectValue("user", automationResponse.user, serializeAutomationResponse_user);
7274
- writer.writeNumberValue("version", automationResponse.version);
7274
+ writer.writeObjectValue("version", automationResponse.version);
7275
7275
  writer.writeStringValue("visibility", automationResponse.visibility);
7276
7276
  writer.writeAdditionalData(automationResponse.additionalData);
7277
7277
  }
@@ -7321,7 +7321,7 @@ export function serializeAutomationRunRecord(writer, automationRunRecord = {}, i
7321
7321
  writer.writeDateValue("lastAttemptAt", automationRunRecord.lastAttemptAt);
7322
7322
  writer.writeStringValue("leadId", automationRunRecord.leadId);
7323
7323
  writer.writeStringValue("organizationId", automationRunRecord.organizationId);
7324
- writer.writeNumberValue("processingAttempts", automationRunRecord.processingAttempts);
7324
+ writer.writeObjectValue("processingAttempts", automationRunRecord.processingAttempts);
7325
7325
  writer.writeStringValue("skippedReason", automationRunRecord.skippedReason);
7326
7326
  writer.writeDateValue("startedAt", automationRunRecord.startedAt);
7327
7327
  writer.writeStringValue("status", automationRunRecord.status);
@@ -7452,7 +7452,7 @@ export function serializeAutomationWorkflowActionResponse(writer, automationWork
7452
7452
  writer.writeStringValue("failureCode", automationWorkflowActionResponse.failureCode);
7453
7453
  writer.writeStringValue("id", automationWorkflowActionResponse.id);
7454
7454
  writer.writeDateValue("nextRetryAt", automationWorkflowActionResponse.nextRetryAt);
7455
- writer.writeNumberValue("retryCount", automationWorkflowActionResponse.retryCount);
7455
+ writer.writeObjectValue("retryCount", automationWorkflowActionResponse.retryCount);
7456
7456
  writer.writeStringValue("safeReason", automationWorkflowActionResponse.safeReason);
7457
7457
  writer.writeDateValue("scheduledAt", automationWorkflowActionResponse.scheduledAt);
7458
7458
  writer.writeDateValue("skippedAt", automationWorkflowActionResponse.skippedAt);
@@ -7461,7 +7461,7 @@ export function serializeAutomationWorkflowActionResponse(writer, automationWork
7461
7461
  writer.writeStringValue("statusDisplay", automationWorkflowActionResponse.statusDisplay);
7462
7462
  writer.writeStringValue("stepDisplayName", automationWorkflowActionResponse.stepDisplayName);
7463
7463
  writer.writeStringValue("stepId", automationWorkflowActionResponse.stepId);
7464
- writer.writeNumberValue("stepOrder", automationWorkflowActionResponse.stepOrder);
7464
+ writer.writeObjectValue("stepOrder", automationWorkflowActionResponse.stepOrder);
7465
7465
  writer.writeStringValue("userSummary", automationWorkflowActionResponse.userSummary);
7466
7466
  writer.writeAdditionalData(automationWorkflowActionResponse.additionalData);
7467
7467
  }
@@ -7503,7 +7503,7 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
7503
7503
  writer.writeDateValue("cancelledAt", automationWorkflowRunResponse.cancelledAt);
7504
7504
  writer.writeDateValue("completedAt", automationWorkflowRunResponse.completedAt);
7505
7505
  writer.writeObjectValue("currentStep", automationWorkflowRunResponse.currentStep, serializeAutomationWorkflowRunResponse_currentStep);
7506
- writer.writeNumberValue("currentStepOrder", automationWorkflowRunResponse.currentStepOrder);
7506
+ writer.writeObjectValue("currentStepOrder", automationWorkflowRunResponse.currentStepOrder);
7507
7507
  writer.writeCollectionOfObjectValues("events", automationWorkflowRunResponse.events, serializeAutomationWorkflowEventResponse);
7508
7508
  writer.writeDateValue("failedAt", automationWorkflowRunResponse.failedAt);
7509
7509
  writer.writeStringValue("id", automationWorkflowRunResponse.id);
@@ -7512,11 +7512,11 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
7512
7512
  writer.writeStringValue("lastErrorMessage", automationWorkflowRunResponse.lastErrorMessage);
7513
7513
  writer.writeDateValue("lastExecutionAt", automationWorkflowRunResponse.lastExecutionAt);
7514
7514
  writer.writeStringValue("leadId", automationWorkflowRunResponse.leadId);
7515
- writer.writeNumberValue("maxRetryCount", automationWorkflowRunResponse.maxRetryCount);
7515
+ writer.writeObjectValue("maxRetryCount", automationWorkflowRunResponse.maxRetryCount);
7516
7516
  writer.writeDateValue("nextExecutionAt", automationWorkflowRunResponse.nextExecutionAt);
7517
7517
  writer.writeDateValue("nextRetryAt", automationWorkflowRunResponse.nextRetryAt);
7518
7518
  writer.writeStringValue("organizationId", automationWorkflowRunResponse.organizationId);
7519
- writer.writeNumberValue("retryCount", automationWorkflowRunResponse.retryCount);
7519
+ writer.writeObjectValue("retryCount", automationWorkflowRunResponse.retryCount);
7520
7520
  writer.writeStringValue("skipReasonCode", automationWorkflowRunResponse.skipReasonCode);
7521
7521
  writer.writeStringValue("skipReasonDisplay", automationWorkflowRunResponse.skipReasonDisplay);
7522
7522
  writer.writeDateValue("startedAt", automationWorkflowRunResponse.startedAt);
@@ -7580,14 +7580,14 @@ export function serializeCallEventTableRow(writer, callEventTableRow = {}, isSer
7580
7580
  return;
7581
7581
  }
7582
7582
  writer.writeDateValue("answeredAt", callEventTableRow.answeredAt);
7583
- writer.writeNumberValue("billableAmount", callEventTableRow.billableAmount);
7584
- writer.writeNumberValue("billableSeconds", callEventTableRow.billableSeconds);
7583
+ writer.writeObjectValue("billableAmount", callEventTableRow.billableAmount);
7584
+ writer.writeObjectValue("billableSeconds", callEventTableRow.billableSeconds);
7585
7585
  writer.writeStringValue("billingStatus", callEventTableRow.billingStatus);
7586
7586
  writer.writeStringValue("callerId", callEventTableRow.callerId);
7587
7587
  writer.writeStringValue("conversationId", callEventTableRow.conversationId);
7588
7588
  writer.writeDateValue("createdAt", callEventTableRow.createdAt);
7589
7589
  writer.writeStringValue("direction", callEventTableRow.direction);
7590
- writer.writeNumberValue("duration", callEventTableRow.duration);
7590
+ writer.writeObjectValue("duration", callEventTableRow.duration);
7591
7591
  writer.writeDateValue("endedAt", callEventTableRow.endedAt);
7592
7592
  writer.writeStringValue("fromPhoneNumber", callEventTableRow.fromPhoneNumber);
7593
7593
  writer.writeStringValue("fromPhoneNumberId", callEventTableRow.fromPhoneNumberId);
@@ -7750,8 +7750,8 @@ export function serializeCoordinate(writer, coordinate = {}, isSerializingDerive
7750
7750
  if (!coordinate || isSerializingDerivedType) {
7751
7751
  return;
7752
7752
  }
7753
- writer.writeNumberValue("latitude", coordinate.latitude);
7754
- writer.writeNumberValue("longitude", coordinate.longitude);
7753
+ writer.writeObjectValue("latitude", coordinate.latitude);
7754
+ writer.writeObjectValue("longitude", coordinate.longitude);
7755
7755
  writer.writeAdditionalData(coordinate.additionalData);
7756
7756
  }
7757
7757
  /**
@@ -7856,22 +7856,22 @@ export function serializeCustomerAnalyticsSummary(writer, customerAnalyticsSumma
7856
7856
  if (!customerAnalyticsSummary || isSerializingDerivedType) {
7857
7857
  return;
7858
7858
  }
7859
- writer.writeNumberValue("averageResponseMinutes", customerAnalyticsSummary.averageResponseMinutes);
7859
+ writer.writeObjectValue("averageResponseMinutes", customerAnalyticsSummary.averageResponseMinutes);
7860
7860
  writer.writeStringValue("billingStatus", customerAnalyticsSummary.billingStatus);
7861
- writer.writeNumberValue("callMinutes", customerAnalyticsSummary.callMinutes);
7862
- writer.writeNumberValue("callsPlaced", customerAnalyticsSummary.callsPlaced);
7863
- writer.writeNumberValue("callsReceived", customerAnalyticsSummary.callsReceived);
7864
- writer.writeNumberValue("leads", customerAnalyticsSummary.leads);
7861
+ writer.writeObjectValue("callMinutes", customerAnalyticsSummary.callMinutes);
7862
+ writer.writeObjectValue("callsPlaced", customerAnalyticsSummary.callsPlaced);
7863
+ writer.writeObjectValue("callsReceived", customerAnalyticsSummary.callsReceived);
7864
+ writer.writeObjectValue("leads", customerAnalyticsSummary.leads);
7865
7865
  writer.writeObjectValue("leadsComparison", customerAnalyticsSummary.leadsComparison, serializeAnalyticsComparison);
7866
- writer.writeNumberValue("medianResponseMinutes", customerAnalyticsSummary.medianResponseMinutes);
7867
- writer.writeNumberValue("missedCalls", customerAnalyticsSummary.missedCalls);
7868
- writer.writeNumberValue("missedLeads", customerAnalyticsSummary.missedLeads);
7869
- writer.writeNumberValue("respondedWithinFiveMinutesPercent", customerAnalyticsSummary.respondedWithinFiveMinutesPercent);
7870
- writer.writeNumberValue("smsReceived", customerAnalyticsSummary.smsReceived);
7871
- writer.writeNumberValue("smsSent", customerAnalyticsSummary.smsSent);
7872
- writer.writeNumberValue("unreadMessages", customerAnalyticsSummary.unreadMessages);
7873
- writer.writeNumberValue("usageSpend", customerAnalyticsSummary.usageSpend);
7874
- writer.writeNumberValue("walletBalance", customerAnalyticsSummary.walletBalance);
7866
+ writer.writeObjectValue("medianResponseMinutes", customerAnalyticsSummary.medianResponseMinutes);
7867
+ writer.writeObjectValue("missedCalls", customerAnalyticsSummary.missedCalls);
7868
+ writer.writeObjectValue("missedLeads", customerAnalyticsSummary.missedLeads);
7869
+ writer.writeObjectValue("respondedWithinFiveMinutesPercent", customerAnalyticsSummary.respondedWithinFiveMinutesPercent);
7870
+ writer.writeObjectValue("smsReceived", customerAnalyticsSummary.smsReceived);
7871
+ writer.writeObjectValue("smsSent", customerAnalyticsSummary.smsSent);
7872
+ writer.writeObjectValue("unreadMessages", customerAnalyticsSummary.unreadMessages);
7873
+ writer.writeObjectValue("usageSpend", customerAnalyticsSummary.usageSpend);
7874
+ writer.writeObjectValue("walletBalance", customerAnalyticsSummary.walletBalance);
7875
7875
  writer.writeStringValue("walletStatus", customerAnalyticsSummary.walletStatus);
7876
7876
  writer.writeAdditionalData(customerAnalyticsSummary.additionalData);
7877
7877
  }
@@ -7886,13 +7886,13 @@ export function serializeCustomerAutomationHealth(writer, customerAutomationHeal
7886
7886
  if (!customerAutomationHealth || isSerializingDerivedType) {
7887
7887
  return;
7888
7888
  }
7889
- writer.writeNumberValue("automationCount", customerAutomationHealth.automationCount);
7890
- writer.writeNumberValue("enabledCount", customerAutomationHealth.enabledCount);
7891
- writer.writeNumberValue("executions", customerAutomationHealth.executions);
7889
+ writer.writeObjectValue("automationCount", customerAutomationHealth.automationCount);
7890
+ writer.writeObjectValue("enabledCount", customerAutomationHealth.enabledCount);
7891
+ writer.writeObjectValue("executions", customerAutomationHealth.executions);
7892
7892
  writer.writeCollectionOfObjectValues("failingAutomations", customerAutomationHealth.failingAutomations, serializeCustomerFailingAutomation);
7893
- writer.writeNumberValue("failureCount", customerAutomationHealth.failureCount);
7893
+ writer.writeObjectValue("failureCount", customerAutomationHealth.failureCount);
7894
7894
  writer.writeObjectValue("lastFailure", customerAutomationHealth.lastFailure, serializeCustomerAutomationHealth_lastFailure);
7895
- writer.writeNumberValue("successCount", customerAutomationHealth.successCount);
7895
+ writer.writeObjectValue("successCount", customerAutomationHealth.successCount);
7896
7896
  writer.writeAdditionalData(customerAutomationHealth.additionalData);
7897
7897
  }
7898
7898
  /**
@@ -7919,16 +7919,16 @@ export function serializeCustomerCommunicationUsage(writer, customerCommunicatio
7919
7919
  if (!customerCommunicationUsage || isSerializingDerivedType) {
7920
7920
  return;
7921
7921
  }
7922
- writer.writeNumberValue("answeredCalls", customerCommunicationUsage.answeredCalls);
7923
- writer.writeNumberValue("callMinutes", customerCommunicationUsage.callMinutes);
7924
- writer.writeNumberValue("callsPlaced", customerCommunicationUsage.callsPlaced);
7925
- writer.writeNumberValue("callsReceived", customerCommunicationUsage.callsReceived);
7926
- writer.writeNumberValue("failedOrBlockedSms", customerCommunicationUsage.failedOrBlockedSms);
7927
- writer.writeNumberValue("missedCalls", customerCommunicationUsage.missedCalls);
7928
- writer.writeNumberValue("smsReceived", customerCommunicationUsage.smsReceived);
7929
- writer.writeNumberValue("smsSent", customerCommunicationUsage.smsSent);
7922
+ writer.writeObjectValue("answeredCalls", customerCommunicationUsage.answeredCalls);
7923
+ writer.writeObjectValue("callMinutes", customerCommunicationUsage.callMinutes);
7924
+ writer.writeObjectValue("callsPlaced", customerCommunicationUsage.callsPlaced);
7925
+ writer.writeObjectValue("callsReceived", customerCommunicationUsage.callsReceived);
7926
+ writer.writeObjectValue("failedOrBlockedSms", customerCommunicationUsage.failedOrBlockedSms);
7927
+ writer.writeObjectValue("missedCalls", customerCommunicationUsage.missedCalls);
7928
+ writer.writeObjectValue("smsReceived", customerCommunicationUsage.smsReceived);
7929
+ writer.writeObjectValue("smsSent", customerCommunicationUsage.smsSent);
7930
7930
  writer.writeCollectionOfObjectValues("trend", customerCommunicationUsage.trend, serializeCustomerCommunicationUsagePoint);
7931
- writer.writeNumberValue("usageSpend", customerCommunicationUsage.usageSpend);
7931
+ writer.writeObjectValue("usageSpend", customerCommunicationUsage.usageSpend);
7932
7932
  writer.writeAdditionalData(customerCommunicationUsage.additionalData);
7933
7933
  }
7934
7934
  /**
@@ -7942,13 +7942,13 @@ export function serializeCustomerCommunicationUsagePoint(writer, customerCommuni
7942
7942
  if (!customerCommunicationUsagePoint || isSerializingDerivedType) {
7943
7943
  return;
7944
7944
  }
7945
- writer.writeNumberValue("callMinutes", customerCommunicationUsagePoint.callMinutes);
7946
- writer.writeNumberValue("calls", customerCommunicationUsagePoint.calls);
7945
+ writer.writeObjectValue("callMinutes", customerCommunicationUsagePoint.callMinutes);
7946
+ writer.writeObjectValue("calls", customerCommunicationUsagePoint.calls);
7947
7947
  writer.writeDateValue("endAt", customerCommunicationUsagePoint.endAt);
7948
7948
  writer.writeStringValue("label", customerCommunicationUsagePoint.label);
7949
- writer.writeNumberValue("smsReceived", customerCommunicationUsagePoint.smsReceived);
7950
- writer.writeNumberValue("smsSent", customerCommunicationUsagePoint.smsSent);
7951
- writer.writeNumberValue("spend", customerCommunicationUsagePoint.spend);
7949
+ writer.writeObjectValue("smsReceived", customerCommunicationUsagePoint.smsReceived);
7950
+ writer.writeObjectValue("smsSent", customerCommunicationUsagePoint.smsSent);
7951
+ writer.writeObjectValue("spend", customerCommunicationUsagePoint.spend);
7952
7952
  writer.writeDateValue("startAt", customerCommunicationUsagePoint.startAt);
7953
7953
  writer.writeAdditionalData(customerCommunicationUsagePoint.additionalData);
7954
7954
  }
@@ -7980,8 +7980,8 @@ export function serializeCustomerLeadSourceBreakdown(writer, customerLeadSourceB
7980
7980
  if (!customerLeadSourceBreakdown || isSerializingDerivedType) {
7981
7981
  return;
7982
7982
  }
7983
- writer.writeNumberValue("leads", customerLeadSourceBreakdown.leads);
7984
- writer.writeNumberValue("percent", customerLeadSourceBreakdown.percent);
7983
+ writer.writeObjectValue("leads", customerLeadSourceBreakdown.leads);
7984
+ writer.writeObjectValue("percent", customerLeadSourceBreakdown.percent);
7985
7985
  writer.writeStringValue("source", customerLeadSourceBreakdown.source);
7986
7986
  writer.writeAdditionalData(customerLeadSourceBreakdown.additionalData);
7987
7987
  }
@@ -7998,7 +7998,7 @@ export function serializeCustomerLeadTrend(writer, customerLeadTrend = {}, isSer
7998
7998
  }
7999
7999
  writer.writeObjectValue("comparison", customerLeadTrend.comparison, serializeAnalyticsComparison);
8000
8000
  writer.writeCollectionOfObjectValues("points", customerLeadTrend.points, serializeAnalyticsTrendPointOfint);
8001
- writer.writeNumberValue("total", customerLeadTrend.total);
8001
+ writer.writeObjectValue("total", customerLeadTrend.total);
8002
8002
  writer.writeAdditionalData(customerLeadTrend.additionalData);
8003
8003
  }
8004
8004
  /**
@@ -8030,14 +8030,14 @@ export function serializeCustomerResponseMetrics(writer, customerResponseMetrics
8030
8030
  if (!customerResponseMetrics || isSerializingDerivedType) {
8031
8031
  return;
8032
8032
  }
8033
- writer.writeNumberValue("averageMinutes", customerResponseMetrics.averageMinutes);
8033
+ writer.writeObjectValue("averageMinutes", customerResponseMetrics.averageMinutes);
8034
8034
  writer.writeCollectionOfObjectValues("averageMinutesTrend", customerResponseMetrics.averageMinutesTrend, serializeAnalyticsTrendPointOfdecimal);
8035
- writer.writeNumberValue("medianMinutes", customerResponseMetrics.medianMinutes);
8036
- writer.writeNumberValue("missedCalls", customerResponseMetrics.missedCalls);
8037
- writer.writeNumberValue("respondedLeads", customerResponseMetrics.respondedLeads);
8038
- writer.writeNumberValue("respondedWithinFiveMinutesPercent", customerResponseMetrics.respondedWithinFiveMinutesPercent);
8039
- writer.writeNumberValue("unreadMessages", customerResponseMetrics.unreadMessages);
8040
- writer.writeNumberValue("unrespondedLeads", customerResponseMetrics.unrespondedLeads);
8035
+ writer.writeObjectValue("medianMinutes", customerResponseMetrics.medianMinutes);
8036
+ writer.writeObjectValue("missedCalls", customerResponseMetrics.missedCalls);
8037
+ writer.writeObjectValue("respondedLeads", customerResponseMetrics.respondedLeads);
8038
+ writer.writeObjectValue("respondedWithinFiveMinutesPercent", customerResponseMetrics.respondedWithinFiveMinutesPercent);
8039
+ writer.writeObjectValue("unreadMessages", customerResponseMetrics.unreadMessages);
8040
+ writer.writeObjectValue("unrespondedLeads", customerResponseMetrics.unrespondedLeads);
8041
8041
  writer.writeAdditionalData(customerResponseMetrics.additionalData);
8042
8042
  }
8043
8043
  /**
@@ -8138,7 +8138,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8138
8138
  writer.writeStringValue("actorDisplayName", eventTableRow.actorDisplayName);
8139
8139
  writer.writeStringValue("actorEmail", eventTableRow.actorEmail);
8140
8140
  writer.writeStringValue("actorUserId", eventTableRow.actorUserId);
8141
- writer.writeNumberValue("billableAmount", eventTableRow.billableAmount);
8141
+ writer.writeObjectValue("billableAmount", eventTableRow.billableAmount);
8142
8142
  writer.writeStringValue("billingStatus", eventTableRow.billingStatus);
8143
8143
  writer.writeDateValue("blockedAt", eventTableRow.blockedAt);
8144
8144
  writer.writeStringValue("campaignId", eventTableRow.campaignId);
@@ -8166,7 +8166,7 @@ export function serializeEventTableRow(writer, eventTableRow = {}, isSerializing
8166
8166
  writer.writeDateValue("receivedAt", eventTableRow.receivedAt);
8167
8167
  writer.writeStringValue("relatedEntityId", eventTableRow.relatedEntityId);
8168
8168
  writer.writeStringValue("relatedEntityType", eventTableRow.relatedEntityType);
8169
- writer.writeNumberValue("retryCount", eventTableRow.retryCount);
8169
+ writer.writeObjectValue("retryCount", eventTableRow.retryCount);
8170
8170
  writer.writeDateValue("scheduledFor", eventTableRow.scheduledFor);
8171
8171
  writer.writeStringValue("scheduledReason", eventTableRow.scheduledReason);
8172
8172
  writer.writeEnumValue("selectionReason", eventTableRow.selectionReason);
@@ -8399,7 +8399,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
8399
8399
  writer.writeDateOnlyValue("birthDate", leadIntakeRequest.birthDate);
8400
8400
  writer.writeStringValue("city", leadIntakeRequest.city);
8401
8401
  writer.writeDateOnlyValue("dateOfBirth", leadIntakeRequest.dateOfBirth);
8402
- writer.writeNumberValue("directPostPrice", leadIntakeRequest.directPostPrice);
8402
+ writer.writeObjectValue("directPostPrice", leadIntakeRequest.directPostPrice);
8403
8403
  writer.writeStringValue("email", leadIntakeRequest.email);
8404
8404
  writer.writeStringValue("externalId", leadIntakeRequest.externalId);
8405
8405
  writer.writeStringValue("firstName", leadIntakeRequest.firstName);
@@ -8409,7 +8409,7 @@ export function serializeLeadIntakeRequest(writer, leadIntakeRequest = {}, isSer
8409
8409
  writer.writeStringValue("phone", leadIntakeRequest.phone);
8410
8410
  writer.writeStringValue("phoneType", leadIntakeRequest.phoneType);
8411
8411
  writer.writeStringValue("postalCode", leadIntakeRequest.postalCode);
8412
- writer.writeNumberValue("price", leadIntakeRequest.price);
8412
+ writer.writeObjectValue("price", leadIntakeRequest.price);
8413
8413
  writer.writeStringValue("product", leadIntakeRequest.product);
8414
8414
  writer.writeStringValue("referrer", leadIntakeRequest.referrer);
8415
8415
  writer.writeStringValue("sellerLeadId", leadIntakeRequest.sellerLeadId);
@@ -8457,7 +8457,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
8457
8457
  writer.writeStringValue("complianceBlockedReason", leadMetadata.complianceBlockedReason);
8458
8458
  writer.writeStringValue("complianceStatus", leadMetadata.complianceStatus);
8459
8459
  writer.writeDateValue("createdAt", leadMetadata.createdAt);
8460
- writer.writeNumberValue("directPostPrice", leadMetadata.directPostPrice);
8460
+ writer.writeObjectValue("directPostPrice", leadMetadata.directPostPrice);
8461
8461
  writer.writeStringValue("externalId", leadMetadata.externalId);
8462
8462
  writer.writeStringValue("importBatchId", leadMetadata.importBatchId);
8463
8463
  writer.writeStringValue("ipAddress", leadMetadata.ipAddress);
@@ -8465,7 +8465,7 @@ export function serializeLeadMetadata(writer, leadMetadata = {}, isSerializingDe
8465
8465
  writer.writeStringValue("landingPage", leadMetadata.landingPage);
8466
8466
  writer.writeStringValue("organizationId", leadMetadata.organizationId);
8467
8467
  writer.writeStringValue("origin", leadMetadata.origin);
8468
- writer.writeNumberValue("price", leadMetadata.price);
8468
+ writer.writeObjectValue("price", leadMetadata.price);
8469
8469
  writer.writeStringValue("product", leadMetadata.product);
8470
8470
  writer.writeStringValue("pubId", leadMetadata.pubId);
8471
8471
  writer.writeStringValue("referrer", leadMetadata.referrer);
@@ -8515,18 +8515,18 @@ export function serializeLeadProfile(writer, leadProfile = {}, isSerializingDeri
8515
8515
  return;
8516
8516
  }
8517
8517
  writer.writeDateOnlyValue("birthDate", leadProfile.birthDate);
8518
- writer.writeNumberValue("creditScore", leadProfile.creditScore);
8518
+ writer.writeObjectValue("creditScore", leadProfile.creditScore);
8519
8519
  writer.writeEnumValue("employmentType", leadProfile.employmentType);
8520
8520
  writer.writeEnumValue("gender", leadProfile.gender);
8521
8521
  writer.writeBooleanValue("hasBankruptcy", leadProfile.hasBankruptcy);
8522
8522
  writer.writeBooleanValue("hasMedicalCondition", leadProfile.hasMedicalCondition);
8523
- writer.writeNumberValue("height", leadProfile.height);
8524
- writer.writeNumberValue("income", leadProfile.income);
8523
+ writer.writeObjectValue("height", leadProfile.height);
8524
+ writer.writeObjectValue("income", leadProfile.income);
8525
8525
  writer.writeBooleanValue("isHomeowner", leadProfile.isHomeowner);
8526
8526
  writer.writeEnumValue("maritalStatus", leadProfile.maritalStatus);
8527
- writer.writeNumberValue("monthsAtResidence", leadProfile.monthsAtResidence);
8528
- writer.writeNumberValue("numberOfDependents", leadProfile.numberOfDependents);
8529
- writer.writeNumberValue("weight", leadProfile.weight);
8527
+ writer.writeObjectValue("monthsAtResidence", leadProfile.monthsAtResidence);
8528
+ writer.writeObjectValue("numberOfDependents", leadProfile.numberOfDependents);
8529
+ writer.writeObjectValue("weight", leadProfile.weight);
8530
8530
  writer.writeAdditionalData(leadProfile.additionalData);
8531
8531
  }
8532
8532
  /**
@@ -8746,7 +8746,7 @@ export function serializeLeadStatusRequest(writer, leadStatusRequest = {}, isSer
8746
8746
  writer.writeEnumValue("category", leadStatusRequest.category);
8747
8747
  writer.writeStringValue("color", leadStatusRequest.color);
8748
8748
  writer.writeStringValue("name", leadStatusRequest.name);
8749
- writer.writeNumberValue("sortOrder", leadStatusRequest.sortOrder);
8749
+ writer.writeObjectValue("sortOrder", leadStatusRequest.sortOrder);
8750
8750
  writer.writeAdditionalData(leadStatusRequest.additionalData);
8751
8751
  }
8752
8752
  /**
@@ -8767,7 +8767,7 @@ export function serializeLeadStatusResponse(writer, leadStatusResponse = {}, isS
8767
8767
  writer.writeDateValue("modifiedAt", leadStatusResponse.modifiedAt);
8768
8768
  writer.writeStringValue("name", leadStatusResponse.name);
8769
8769
  writer.writeStringValue("organizationId", leadStatusResponse.organizationId);
8770
- writer.writeNumberValue("sortOrder", leadStatusResponse.sortOrder);
8770
+ writer.writeObjectValue("sortOrder", leadStatusResponse.sortOrder);
8771
8771
  writer.writeAdditionalData(leadStatusResponse.additionalData);
8772
8772
  }
8773
8773
  /**
@@ -8794,7 +8794,7 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
8794
8794
  writer.writeStringValue("lastName", leadTableRow.lastName);
8795
8795
  writer.writeObjectValue("organization", leadTableRow.organization, serializeLeadTableRow_organization);
8796
8796
  writer.writeStringValue("phone", leadTableRow.phone);
8797
- writer.writeNumberValue("price", leadTableRow.price);
8797
+ writer.writeObjectValue("price", leadTableRow.price);
8798
8798
  writer.writeObjectValue("source", leadTableRow.source, serializeLeadTableRow_source);
8799
8799
  writer.writeStringValue("status", leadTableRow.status);
8800
8800
  writer.writeStringValue("statusTone", leadTableRow.statusTone);
@@ -8871,7 +8871,7 @@ export function serializeMessageMediaAttachment(writer, messageMediaAttachment =
8871
8871
  writer.writeStringValue("contentType", messageMediaAttachment.contentType);
8872
8872
  writer.writeStringValue("fileName", messageMediaAttachment.fileName);
8873
8873
  writer.writeStringValue("sha256", messageMediaAttachment.sha256);
8874
- writer.writeNumberValue("size", messageMediaAttachment.size);
8874
+ writer.writeObjectValue("size", messageMediaAttachment.size);
8875
8875
  writer.writeStringValue("url", messageMediaAttachment.url);
8876
8876
  writer.writeAdditionalData(messageMediaAttachment.additionalData);
8877
8877
  }
@@ -8974,7 +8974,7 @@ export function serializeOrganizationActivationState(writer, organizationActivat
8974
8974
  return;
8975
8975
  }
8976
8976
  writer.writeDateValue("activatedAt", organizationActivationState.activatedAt);
8977
- writer.writeNumberValue("availableDomainCount", organizationActivationState.availableDomainCount);
8977
+ writer.writeObjectValue("availableDomainCount", organizationActivationState.availableDomainCount);
8978
8978
  writer.writeEnumValue("billingSubscriptionStatus", organizationActivationState.billingSubscriptionStatus);
8979
8979
  writer.writeStringValue("complianceNotes", organizationActivationState.complianceNotes);
8980
8980
  writer.writeBooleanValue("controlledLaunch", organizationActivationState.controlledLaunch);
@@ -8983,7 +8983,7 @@ export function serializeOrganizationActivationState(writer, organizationActivat
8983
8983
  writer.writeDateValue("domainApprovedAt", organizationActivationState.domainApprovedAt);
8984
8984
  writer.writeCollectionOfObjectValues("domainOptions", organizationActivationState.domainOptions, serializeActivationDomainOption);
8985
8985
  writer.writeDateValue("domainPurchasedAt", organizationActivationState.domainPurchasedAt);
8986
- writer.writeNumberValue("domainSearchAttempt", organizationActivationState.domainSearchAttempt);
8986
+ writer.writeObjectValue("domainSearchAttempt", organizationActivationState.domainSearchAttempt);
8987
8987
  writer.writeStringValue("domainSearchId", organizationActivationState.domainSearchId);
8988
8988
  writer.writeEnumValue("domainSearchStage", organizationActivationState.domainSearchStage);
8989
8989
  writer.writeDateValue("domainSearchUpdatedAt", organizationActivationState.domainSearchUpdatedAt);
@@ -9049,10 +9049,10 @@ export function serializeOrganizationBillingState(writer, organizationBillingSta
9049
9049
  writer.writeBooleanValue("hasStripeCustomer", organizationBillingState.hasStripeCustomer);
9050
9050
  writer.writeDateValue("lastPaymentMethodEventAt", organizationBillingState.lastPaymentMethodEventAt);
9051
9051
  writer.writeDateValue("lastSubscriptionEventAt", organizationBillingState.lastSubscriptionEventAt);
9052
- writer.writeNumberValue("organizationMemberAssignedQuantity", organizationBillingState.organizationMemberAssignedQuantity);
9053
- writer.writeNumberValue("organizationMemberQuantity", organizationBillingState.organizationMemberQuantity);
9052
+ writer.writeObjectValue("organizationMemberAssignedQuantity", organizationBillingState.organizationMemberAssignedQuantity);
9053
+ writer.writeObjectValue("organizationMemberQuantity", organizationBillingState.organizationMemberQuantity);
9054
9054
  writer.writeEnumValue("pendingBillingPlan", organizationBillingState.pendingBillingPlan);
9055
- writer.writeNumberValue("phoneNumberQuantity", organizationBillingState.phoneNumberQuantity);
9055
+ writer.writeObjectValue("phoneNumberQuantity", organizationBillingState.phoneNumberQuantity);
9056
9056
  writer.writeDateValue("planPeriodStartAt", organizationBillingState.planPeriodStartAt);
9057
9057
  writer.writeDateValue("planRenewalAt", organizationBillingState.planRenewalAt);
9058
9058
  writer.writeAdditionalData(organizationBillingState.additionalData);
@@ -9110,7 +9110,7 @@ export function serializeOrganizationDunningInfo(writer, organizationDunningInfo
9110
9110
  writer.writeDateValue("outboundRestrictedAt", organizationDunningInfo.outboundRestrictedAt);
9111
9111
  writer.writeDateValue("outboundSuspendedAt", organizationDunningInfo.outboundSuspendedAt);
9112
9112
  writer.writeDateValue("paymentFailedAt", organizationDunningInfo.paymentFailedAt);
9113
- writer.writeNumberValue("retryAttemptCount", organizationDunningInfo.retryAttemptCount);
9113
+ writer.writeObjectValue("retryAttemptCount", organizationDunningInfo.retryAttemptCount);
9114
9114
  writer.writeStringValue("stage", organizationDunningInfo.stage);
9115
9115
  writer.writeAdditionalData(organizationDunningInfo.additionalData);
9116
9116
  }
@@ -9147,7 +9147,7 @@ export function serializeOrganizationInvitationResponse(writer, organizationInvi
9147
9147
  writer.writeStringValue("id", organizationInvitationResponse.id);
9148
9148
  writer.writeDateValue("licenseActivatedAt", organizationInvitationResponse.licenseActivatedAt);
9149
9149
  writer.writeStringValue("licenseBillingStatus", organizationInvitationResponse.licenseBillingStatus);
9150
- writer.writeNumberValue("licenseQuantity", organizationInvitationResponse.licenseQuantity);
9150
+ writer.writeObjectValue("licenseQuantity", organizationInvitationResponse.licenseQuantity);
9151
9151
  writer.writeDateValue("licenseReleasedAt", organizationInvitationResponse.licenseReleasedAt);
9152
9152
  writer.writeDateValue("licenseRenewalDate", organizationInvitationResponse.licenseRenewalDate);
9153
9153
  writer.writeObjectValue("organization", organizationInvitationResponse.organization, serializeIdNamePair);
@@ -9178,7 +9178,7 @@ export function serializeOrganizationInvitationTableRow(writer, organizationInvi
9178
9178
  writer.writeStringValue("id", organizationInvitationTableRow.id);
9179
9179
  writer.writeDateValue("licenseActivatedAt", organizationInvitationTableRow.licenseActivatedAt);
9180
9180
  writer.writeStringValue("licenseBillingStatus", organizationInvitationTableRow.licenseBillingStatus);
9181
- writer.writeNumberValue("licenseQuantity", organizationInvitationTableRow.licenseQuantity);
9181
+ writer.writeObjectValue("licenseQuantity", organizationInvitationTableRow.licenseQuantity);
9182
9182
  writer.writeDateValue("licenseReleasedAt", organizationInvitationTableRow.licenseReleasedAt);
9183
9183
  writer.writeDateValue("licenseRenewalDate", organizationInvitationTableRow.licenseRenewalDate);
9184
9184
  writer.writeObjectValue("organization", organizationInvitationTableRow.organization, serializeIdNamePair);
@@ -9222,7 +9222,7 @@ export function serializeOrganizationMemberResponse(writer, organizationMemberRe
9222
9222
  writer.writeStringValue("id", organizationMemberResponse.id);
9223
9223
  writer.writeDateValue("lastUsedAt", organizationMemberResponse.lastUsedAt);
9224
9224
  writer.writeStringValue("licenseBillingStatus", organizationMemberResponse.licenseBillingStatus);
9225
- writer.writeNumberValue("licenseQuantity", organizationMemberResponse.licenseQuantity);
9225
+ writer.writeObjectValue("licenseQuantity", organizationMemberResponse.licenseQuantity);
9226
9226
  writer.writeDateValue("licenseRenewalDate", organizationMemberResponse.licenseRenewalDate);
9227
9227
  writer.writeDateValue("modifiedAt", organizationMemberResponse.modifiedAt);
9228
9228
  writer.writeStringValue("name", organizationMemberResponse.name);
@@ -9266,9 +9266,9 @@ export function serializeOrganizationRequest(writer, organizationRequest = {}, i
9266
9266
  return;
9267
9267
  }
9268
9268
  writer.writeObjectValue("address", organizationRequest.address, serializeOrganizationRequest_address);
9269
- writer.writeNumberValue("autoRefillAmount", organizationRequest.autoRefillAmount);
9269
+ writer.writeObjectValue("autoRefillAmount", organizationRequest.autoRefillAmount);
9270
9270
  writer.writeBooleanValue("autoRefillEnabled", organizationRequest.autoRefillEnabled);
9271
- writer.writeNumberValue("autoRefillTrigger", organizationRequest.autoRefillTrigger);
9271
+ writer.writeObjectValue("autoRefillTrigger", organizationRequest.autoRefillTrigger);
9272
9272
  writer.writeObjectValue("billingAddress", organizationRequest.billingAddress, serializeOrganizationRequest_billingAddress);
9273
9273
  writer.writeStringValue("billingName", organizationRequest.billingName);
9274
9274
  writer.writeStringValue("billingTaxId", organizationRequest.billingTaxId);
@@ -9351,12 +9351,12 @@ export function serializeOrganizationResponse(writer, organizationResponse = {},
9351
9351
  if (!organizationResponse || isSerializingDerivedType) {
9352
9352
  return;
9353
9353
  }
9354
- writer.writeNumberValue("accountBalance", organizationResponse.accountBalance);
9354
+ writer.writeObjectValue("accountBalance", organizationResponse.accountBalance);
9355
9355
  writer.writeObjectValue("activation", organizationResponse.activation, serializeOrganizationResponse_activation);
9356
9356
  writer.writeObjectValue("address", organizationResponse.address, serializeOrganizationResponse_address);
9357
- writer.writeNumberValue("autoRefillAmount", organizationResponse.autoRefillAmount);
9357
+ writer.writeObjectValue("autoRefillAmount", organizationResponse.autoRefillAmount);
9358
9358
  writer.writeBooleanValue("autoRefillEnabled", organizationResponse.autoRefillEnabled);
9359
- writer.writeNumberValue("autoRefillTrigger", organizationResponse.autoRefillTrigger);
9359
+ writer.writeObjectValue("autoRefillTrigger", organizationResponse.autoRefillTrigger);
9360
9360
  writer.writeObjectValue("billingAddress", organizationResponse.billingAddress, serializeOrganizationResponse_billingAddress);
9361
9361
  writer.writeStringValue("billingName", organizationResponse.billingName);
9362
9362
  writer.writeEnumValue("billingPlan", organizationResponse.billingPlan);
@@ -9539,7 +9539,7 @@ export function serializeOrganizationTableRow(writer, organizationTableRow = {},
9539
9539
  if (!organizationTableRow || isSerializingDerivedType) {
9540
9540
  return;
9541
9541
  }
9542
- writer.writeNumberValue("accountBalance", organizationTableRow.accountBalance);
9542
+ writer.writeObjectValue("accountBalance", organizationTableRow.accountBalance);
9543
9543
  writer.writeEnumValue("activationStatus", organizationTableRow.activationStatus);
9544
9544
  writer.writeDateValue("apiKeyExpiresAt", organizationTableRow.apiKeyExpiresAt);
9545
9545
  writer.writeDateValue("apiKeyFirstUsedAt", organizationTableRow.apiKeyFirstUsedAt);
@@ -9547,7 +9547,7 @@ export function serializeOrganizationTableRow(writer, organizationTableRow = {},
9547
9547
  writer.writeDateValue("apiKeyLastUsedAt", organizationTableRow.apiKeyLastUsedAt);
9548
9548
  writer.writeCollectionOfPrimitiveValues("apiKeyPermissions", organizationTableRow.apiKeyPermissions);
9549
9549
  writer.writeStringValue("apiKeyPreview", organizationTableRow.apiKeyPreview);
9550
- writer.writeNumberValue("apiKeyTotalUses", organizationTableRow.apiKeyTotalUses);
9550
+ writer.writeObjectValue("apiKeyTotalUses", organizationTableRow.apiKeyTotalUses);
9551
9551
  writer.writeEnumValue("billingPlan", organizationTableRow.billingPlan);
9552
9552
  writer.writeBooleanValue("enabled", organizationTableRow.enabled);
9553
9553
  writer.writeStringValue("id", organizationTableRow.id);
@@ -9564,7 +9564,7 @@ export function serializeOrganizationTableRow(writer, organizationTableRow = {},
9564
9564
  writer.writeDateValue("subscriptionCancelAt", organizationTableRow.subscriptionCancelAt);
9565
9565
  writer.writeEnumValue("subscriptionStatus", organizationTableRow.subscriptionStatus);
9566
9566
  writer.writeEnumValue("tenDlcStatus", organizationTableRow.tenDlcStatus);
9567
- writer.writeNumberValue("userCount", organizationTableRow.userCount);
9567
+ writer.writeObjectValue("userCount", organizationTableRow.userCount);
9568
9568
  writer.writeStringValue("website", organizationTableRow.website);
9569
9569
  writer.writeEnumValue("websiteStatus", organizationTableRow.websiteStatus);
9570
9570
  writer.writeAdditionalData(organizationTableRow.additionalData);
@@ -9593,16 +9593,16 @@ export function serializeOutboundCapacityOverview(writer, outboundCapacityOvervi
9593
9593
  if (!outboundCapacityOverview || isSerializingDerivedType) {
9594
9594
  return;
9595
9595
  }
9596
- writer.writeNumberValue("blockedCount", outboundCapacityOverview.blockedCount);
9597
- writer.writeNumberValue("coolingPhoneNumbers", outboundCapacityOverview.coolingPhoneNumbers);
9598
- writer.writeNumberValue("healthyPhoneNumbers", outboundCapacityOverview.healthyPhoneNumbers);
9599
- writer.writeNumberValue("limitedPhoneNumbers", outboundCapacityOverview.limitedPhoneNumbers);
9596
+ writer.writeObjectValue("blockedCount", outboundCapacityOverview.blockedCount);
9597
+ writer.writeObjectValue("coolingPhoneNumbers", outboundCapacityOverview.coolingPhoneNumbers);
9598
+ writer.writeObjectValue("healthyPhoneNumbers", outboundCapacityOverview.healthyPhoneNumbers);
9599
+ writer.writeObjectValue("limitedPhoneNumbers", outboundCapacityOverview.limitedPhoneNumbers);
9600
9600
  writer.writeCollectionOfObjectValues("phoneNumbers", outboundCapacityOverview.phoneNumbers, serializeOutboundPhoneNumberCapacity);
9601
- writer.writeNumberValue("rampingPhoneNumbers", outboundCapacityOverview.rampingPhoneNumbers);
9601
+ writer.writeObjectValue("rampingPhoneNumbers", outboundCapacityOverview.rampingPhoneNumbers);
9602
9602
  writer.writeCollectionOfObjectValues("recentDecisions", outboundCapacityOverview.recentDecisions, serializeOutboundQueueItem);
9603
- writer.writeNumberValue("scheduledCount", outboundCapacityOverview.scheduledCount);
9604
- writer.writeNumberValue("smsCapacityRemainingToday", outboundCapacityOverview.smsCapacityRemainingToday);
9605
- writer.writeNumberValue("voiceCapacityRemainingToday", outboundCapacityOverview.voiceCapacityRemainingToday);
9603
+ writer.writeObjectValue("scheduledCount", outboundCapacityOverview.scheduledCount);
9604
+ writer.writeObjectValue("smsCapacityRemainingToday", outboundCapacityOverview.smsCapacityRemainingToday);
9605
+ writer.writeObjectValue("voiceCapacityRemainingToday", outboundCapacityOverview.voiceCapacityRemainingToday);
9606
9606
  writer.writeAdditionalData(outboundCapacityOverview.additionalData);
9607
9607
  }
9608
9608
  /**
@@ -9624,30 +9624,30 @@ export function serializeOutboundPhoneNumberCapacity(writer, outboundPhoneNumber
9624
9624
  writer.writeBooleanValue("smsApproved", outboundPhoneNumberCapacity.smsApproved);
9625
9625
  writer.writeDateValue("smsDailyResetsAt", outboundPhoneNumberCapacity.smsDailyResetsAt);
9626
9626
  writer.writeDateValue("smsHourlyResetsAt", outboundPhoneNumberCapacity.smsHourlyResetsAt);
9627
- writer.writeNumberValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
9628
- writer.writeNumberValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
9629
- writer.writeNumberValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
9627
+ writer.writeObjectValue("smsLimitThisHour", outboundPhoneNumberCapacity.smsLimitThisHour);
9628
+ writer.writeObjectValue("smsLimitThisMinute", outboundPhoneNumberCapacity.smsLimitThisMinute);
9629
+ writer.writeObjectValue("smsLimitToday", outboundPhoneNumberCapacity.smsLimitToday);
9630
9630
  writer.writeDateValue("smsMinutelyResetsAt", outboundPhoneNumberCapacity.smsMinutelyResetsAt);
9631
9631
  writer.writeBooleanValue("smsRamping", outboundPhoneNumberCapacity.smsRamping);
9632
- writer.writeNumberValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
9633
- writer.writeNumberValue("smsRemainingThisMinute", outboundPhoneNumberCapacity.smsRemainingThisMinute);
9634
- writer.writeNumberValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
9635
- writer.writeNumberValue("smsUsedThisHour", outboundPhoneNumberCapacity.smsUsedThisHour);
9636
- writer.writeNumberValue("smsUsedThisMinute", outboundPhoneNumberCapacity.smsUsedThisMinute);
9637
- writer.writeNumberValue("smsUsedToday", outboundPhoneNumberCapacity.smsUsedToday);
9632
+ writer.writeObjectValue("smsRemainingThisHour", outboundPhoneNumberCapacity.smsRemainingThisHour);
9633
+ writer.writeObjectValue("smsRemainingThisMinute", outboundPhoneNumberCapacity.smsRemainingThisMinute);
9634
+ writer.writeObjectValue("smsRemainingToday", outboundPhoneNumberCapacity.smsRemainingToday);
9635
+ writer.writeObjectValue("smsUsedThisHour", outboundPhoneNumberCapacity.smsUsedThisHour);
9636
+ writer.writeObjectValue("smsUsedThisMinute", outboundPhoneNumberCapacity.smsUsedThisMinute);
9637
+ writer.writeObjectValue("smsUsedToday", outboundPhoneNumberCapacity.smsUsedToday);
9638
9638
  writer.writeDateValue("voiceDailyResetsAt", outboundPhoneNumberCapacity.voiceDailyResetsAt);
9639
9639
  writer.writeDateValue("voiceHourlyResetsAt", outboundPhoneNumberCapacity.voiceHourlyResetsAt);
9640
- writer.writeNumberValue("voiceLimitThisHour", outboundPhoneNumberCapacity.voiceLimitThisHour);
9641
- writer.writeNumberValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
9642
- writer.writeNumberValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
9640
+ writer.writeObjectValue("voiceLimitThisHour", outboundPhoneNumberCapacity.voiceLimitThisHour);
9641
+ writer.writeObjectValue("voiceLimitThisMinute", outboundPhoneNumberCapacity.voiceLimitThisMinute);
9642
+ writer.writeObjectValue("voiceLimitToday", outboundPhoneNumberCapacity.voiceLimitToday);
9643
9643
  writer.writeDateValue("voiceMinutelyResetsAt", outboundPhoneNumberCapacity.voiceMinutelyResetsAt);
9644
9644
  writer.writeBooleanValue("voiceRamping", outboundPhoneNumberCapacity.voiceRamping);
9645
- writer.writeNumberValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
9646
- writer.writeNumberValue("voiceRemainingThisMinute", outboundPhoneNumberCapacity.voiceRemainingThisMinute);
9647
- writer.writeNumberValue("voiceRemainingToday", outboundPhoneNumberCapacity.voiceRemainingToday);
9648
- writer.writeNumberValue("voiceUsedThisHour", outboundPhoneNumberCapacity.voiceUsedThisHour);
9649
- writer.writeNumberValue("voiceUsedThisMinute", outboundPhoneNumberCapacity.voiceUsedThisMinute);
9650
- writer.writeNumberValue("voiceUsedToday", outboundPhoneNumberCapacity.voiceUsedToday);
9645
+ writer.writeObjectValue("voiceRemainingThisHour", outboundPhoneNumberCapacity.voiceRemainingThisHour);
9646
+ writer.writeObjectValue("voiceRemainingThisMinute", outboundPhoneNumberCapacity.voiceRemainingThisMinute);
9647
+ writer.writeObjectValue("voiceRemainingToday", outboundPhoneNumberCapacity.voiceRemainingToday);
9648
+ writer.writeObjectValue("voiceUsedThisHour", outboundPhoneNumberCapacity.voiceUsedThisHour);
9649
+ writer.writeObjectValue("voiceUsedThisMinute", outboundPhoneNumberCapacity.voiceUsedThisMinute);
9650
+ writer.writeObjectValue("voiceUsedToday", outboundPhoneNumberCapacity.voiceUsedToday);
9651
9651
  writer.writeAdditionalData(outboundPhoneNumberCapacity.additionalData);
9652
9652
  }
9653
9653
  /**
@@ -9746,8 +9746,8 @@ export function serializePagedResultOfAutomationTableRow(writer, pagedResultOfAu
9746
9746
  }
9747
9747
  writer.writeStringValue("continuationToken", pagedResultOfAutomationTableRow.continuationToken);
9748
9748
  writer.writeCollectionOfObjectValues("items", pagedResultOfAutomationTableRow.items, serializeAutomationTableRow);
9749
- writer.writeNumberValue("pageSize", pagedResultOfAutomationTableRow.pageSize);
9750
- writer.writeNumberValue("totalCount", pagedResultOfAutomationTableRow.totalCount);
9749
+ writer.writeObjectValue("pageSize", pagedResultOfAutomationTableRow.pageSize);
9750
+ writer.writeObjectValue("totalCount", pagedResultOfAutomationTableRow.totalCount);
9751
9751
  writer.writeAdditionalData(pagedResultOfAutomationTableRow.additionalData);
9752
9752
  }
9753
9753
  /**
@@ -9763,8 +9763,8 @@ export function serializePagedResultOfCallEventTableRow(writer, pagedResultOfCal
9763
9763
  }
9764
9764
  writer.writeStringValue("continuationToken", pagedResultOfCallEventTableRow.continuationToken);
9765
9765
  writer.writeCollectionOfObjectValues("items", pagedResultOfCallEventTableRow.items, serializeCallEventTableRow);
9766
- writer.writeNumberValue("pageSize", pagedResultOfCallEventTableRow.pageSize);
9767
- writer.writeNumberValue("totalCount", pagedResultOfCallEventTableRow.totalCount);
9766
+ writer.writeObjectValue("pageSize", pagedResultOfCallEventTableRow.pageSize);
9767
+ writer.writeObjectValue("totalCount", pagedResultOfCallEventTableRow.totalCount);
9768
9768
  writer.writeAdditionalData(pagedResultOfCallEventTableRow.additionalData);
9769
9769
  }
9770
9770
  /**
@@ -9780,8 +9780,8 @@ export function serializePagedResultOfConversationResponse(writer, pagedResultOf
9780
9780
  }
9781
9781
  writer.writeStringValue("continuationToken", pagedResultOfConversationResponse.continuationToken);
9782
9782
  writer.writeCollectionOfObjectValues("items", pagedResultOfConversationResponse.items, serializeConversationResponse);
9783
- writer.writeNumberValue("pageSize", pagedResultOfConversationResponse.pageSize);
9784
- writer.writeNumberValue("totalCount", pagedResultOfConversationResponse.totalCount);
9783
+ writer.writeObjectValue("pageSize", pagedResultOfConversationResponse.pageSize);
9784
+ writer.writeObjectValue("totalCount", pagedResultOfConversationResponse.totalCount);
9785
9785
  writer.writeAdditionalData(pagedResultOfConversationResponse.additionalData);
9786
9786
  }
9787
9787
  /**
@@ -9797,8 +9797,8 @@ export function serializePagedResultOfEventTableRow(writer, pagedResultOfEventTa
9797
9797
  }
9798
9798
  writer.writeStringValue("continuationToken", pagedResultOfEventTableRow.continuationToken);
9799
9799
  writer.writeCollectionOfObjectValues("items", pagedResultOfEventTableRow.items, serializeEventTableRow);
9800
- writer.writeNumberValue("pageSize", pagedResultOfEventTableRow.pageSize);
9801
- writer.writeNumberValue("totalCount", pagedResultOfEventTableRow.totalCount);
9800
+ writer.writeObjectValue("pageSize", pagedResultOfEventTableRow.pageSize);
9801
+ writer.writeObjectValue("totalCount", pagedResultOfEventTableRow.totalCount);
9802
9802
  writer.writeAdditionalData(pagedResultOfEventTableRow.additionalData);
9803
9803
  }
9804
9804
  /**
@@ -9814,8 +9814,8 @@ export function serializePagedResultOfLeadStatusChangeResponse(writer, pagedResu
9814
9814
  }
9815
9815
  writer.writeStringValue("continuationToken", pagedResultOfLeadStatusChangeResponse.continuationToken);
9816
9816
  writer.writeCollectionOfObjectValues("items", pagedResultOfLeadStatusChangeResponse.items, serializeLeadStatusChangeResponse);
9817
- writer.writeNumberValue("pageSize", pagedResultOfLeadStatusChangeResponse.pageSize);
9818
- writer.writeNumberValue("totalCount", pagedResultOfLeadStatusChangeResponse.totalCount);
9817
+ writer.writeObjectValue("pageSize", pagedResultOfLeadStatusChangeResponse.pageSize);
9818
+ writer.writeObjectValue("totalCount", pagedResultOfLeadStatusChangeResponse.totalCount);
9819
9819
  writer.writeAdditionalData(pagedResultOfLeadStatusChangeResponse.additionalData);
9820
9820
  }
9821
9821
  /**
@@ -9831,8 +9831,8 @@ export function serializePagedResultOfLeadTableRow(writer, pagedResultOfLeadTabl
9831
9831
  }
9832
9832
  writer.writeStringValue("continuationToken", pagedResultOfLeadTableRow.continuationToken);
9833
9833
  writer.writeCollectionOfObjectValues("items", pagedResultOfLeadTableRow.items, serializeLeadTableRow);
9834
- writer.writeNumberValue("pageSize", pagedResultOfLeadTableRow.pageSize);
9835
- writer.writeNumberValue("totalCount", pagedResultOfLeadTableRow.totalCount);
9834
+ writer.writeObjectValue("pageSize", pagedResultOfLeadTableRow.pageSize);
9835
+ writer.writeObjectValue("totalCount", pagedResultOfLeadTableRow.totalCount);
9836
9836
  writer.writeAdditionalData(pagedResultOfLeadTableRow.additionalData);
9837
9837
  }
9838
9838
  /**
@@ -9848,8 +9848,8 @@ export function serializePagedResultOfNotificationTableRow(writer, pagedResultOf
9848
9848
  }
9849
9849
  writer.writeStringValue("continuationToken", pagedResultOfNotificationTableRow.continuationToken);
9850
9850
  writer.writeCollectionOfObjectValues("items", pagedResultOfNotificationTableRow.items, serializeNotificationTableRow);
9851
- writer.writeNumberValue("pageSize", pagedResultOfNotificationTableRow.pageSize);
9852
- writer.writeNumberValue("totalCount", pagedResultOfNotificationTableRow.totalCount);
9851
+ writer.writeObjectValue("pageSize", pagedResultOfNotificationTableRow.pageSize);
9852
+ writer.writeObjectValue("totalCount", pagedResultOfNotificationTableRow.totalCount);
9853
9853
  writer.writeAdditionalData(pagedResultOfNotificationTableRow.additionalData);
9854
9854
  }
9855
9855
  /**
@@ -9865,8 +9865,8 @@ export function serializePagedResultOfOrganizationTableRow(writer, pagedResultOf
9865
9865
  }
9866
9866
  writer.writeStringValue("continuationToken", pagedResultOfOrganizationTableRow.continuationToken);
9867
9867
  writer.writeCollectionOfObjectValues("items", pagedResultOfOrganizationTableRow.items, serializeOrganizationTableRow);
9868
- writer.writeNumberValue("pageSize", pagedResultOfOrganizationTableRow.pageSize);
9869
- writer.writeNumberValue("totalCount", pagedResultOfOrganizationTableRow.totalCount);
9868
+ writer.writeObjectValue("pageSize", pagedResultOfOrganizationTableRow.pageSize);
9869
+ writer.writeObjectValue("totalCount", pagedResultOfOrganizationTableRow.totalCount);
9870
9870
  writer.writeAdditionalData(pagedResultOfOrganizationTableRow.additionalData);
9871
9871
  }
9872
9872
  /**
@@ -9882,8 +9882,8 @@ export function serializePagedResultOfPhoneNumberTableRow(writer, pagedResultOfP
9882
9882
  }
9883
9883
  writer.writeStringValue("continuationToken", pagedResultOfPhoneNumberTableRow.continuationToken);
9884
9884
  writer.writeCollectionOfObjectValues("items", pagedResultOfPhoneNumberTableRow.items, serializePhoneNumberTableRow);
9885
- writer.writeNumberValue("pageSize", pagedResultOfPhoneNumberTableRow.pageSize);
9886
- writer.writeNumberValue("totalCount", pagedResultOfPhoneNumberTableRow.totalCount);
9885
+ writer.writeObjectValue("pageSize", pagedResultOfPhoneNumberTableRow.pageSize);
9886
+ writer.writeObjectValue("totalCount", pagedResultOfPhoneNumberTableRow.totalCount);
9887
9887
  writer.writeAdditionalData(pagedResultOfPhoneNumberTableRow.additionalData);
9888
9888
  }
9889
9889
  /**
@@ -9899,8 +9899,8 @@ export function serializePagedResultOfSmsEventTableRow(writer, pagedResultOfSmsE
9899
9899
  }
9900
9900
  writer.writeStringValue("continuationToken", pagedResultOfSmsEventTableRow.continuationToken);
9901
9901
  writer.writeCollectionOfObjectValues("items", pagedResultOfSmsEventTableRow.items, serializeSmsEventTableRow);
9902
- writer.writeNumberValue("pageSize", pagedResultOfSmsEventTableRow.pageSize);
9903
- writer.writeNumberValue("totalCount", pagedResultOfSmsEventTableRow.totalCount);
9902
+ writer.writeObjectValue("pageSize", pagedResultOfSmsEventTableRow.pageSize);
9903
+ writer.writeObjectValue("totalCount", pagedResultOfSmsEventTableRow.totalCount);
9904
9904
  writer.writeAdditionalData(pagedResultOfSmsEventTableRow.additionalData);
9905
9905
  }
9906
9906
  /**
@@ -9916,8 +9916,8 @@ export function serializePagedResultOfSourceTableRow(writer, pagedResultOfSource
9916
9916
  }
9917
9917
  writer.writeStringValue("continuationToken", pagedResultOfSourceTableRow.continuationToken);
9918
9918
  writer.writeCollectionOfObjectValues("items", pagedResultOfSourceTableRow.items, serializeSourceTableRow);
9919
- writer.writeNumberValue("pageSize", pagedResultOfSourceTableRow.pageSize);
9920
- writer.writeNumberValue("totalCount", pagedResultOfSourceTableRow.totalCount);
9919
+ writer.writeObjectValue("pageSize", pagedResultOfSourceTableRow.pageSize);
9920
+ writer.writeObjectValue("totalCount", pagedResultOfSourceTableRow.totalCount);
9921
9921
  writer.writeAdditionalData(pagedResultOfSourceTableRow.additionalData);
9922
9922
  }
9923
9923
  /**
@@ -9933,8 +9933,8 @@ export function serializePagedResultOfSuppressionEntryResponse(writer, pagedResu
9933
9933
  }
9934
9934
  writer.writeStringValue("continuationToken", pagedResultOfSuppressionEntryResponse.continuationToken);
9935
9935
  writer.writeCollectionOfObjectValues("items", pagedResultOfSuppressionEntryResponse.items, serializeSuppressionEntryResponse);
9936
- writer.writeNumberValue("pageSize", pagedResultOfSuppressionEntryResponse.pageSize);
9937
- writer.writeNumberValue("totalCount", pagedResultOfSuppressionEntryResponse.totalCount);
9936
+ writer.writeObjectValue("pageSize", pagedResultOfSuppressionEntryResponse.pageSize);
9937
+ writer.writeObjectValue("totalCount", pagedResultOfSuppressionEntryResponse.totalCount);
9938
9938
  writer.writeAdditionalData(pagedResultOfSuppressionEntryResponse.additionalData);
9939
9939
  }
9940
9940
  /**
@@ -9950,8 +9950,8 @@ export function serializePagedResultOfTransactionTableRow(writer, pagedResultOfT
9950
9950
  }
9951
9951
  writer.writeStringValue("continuationToken", pagedResultOfTransactionTableRow.continuationToken);
9952
9952
  writer.writeCollectionOfObjectValues("items", pagedResultOfTransactionTableRow.items, serializeTransactionTableRow);
9953
- writer.writeNumberValue("pageSize", pagedResultOfTransactionTableRow.pageSize);
9954
- writer.writeNumberValue("totalCount", pagedResultOfTransactionTableRow.totalCount);
9953
+ writer.writeObjectValue("pageSize", pagedResultOfTransactionTableRow.pageSize);
9954
+ writer.writeObjectValue("totalCount", pagedResultOfTransactionTableRow.totalCount);
9955
9955
  writer.writeAdditionalData(pagedResultOfTransactionTableRow.additionalData);
9956
9956
  }
9957
9957
  /**
@@ -9967,8 +9967,8 @@ export function serializePagedResultOfUsageLedgerTableRow(writer, pagedResultOfU
9967
9967
  }
9968
9968
  writer.writeStringValue("continuationToken", pagedResultOfUsageLedgerTableRow.continuationToken);
9969
9969
  writer.writeCollectionOfObjectValues("items", pagedResultOfUsageLedgerTableRow.items, serializeUsageLedgerTableRow);
9970
- writer.writeNumberValue("pageSize", pagedResultOfUsageLedgerTableRow.pageSize);
9971
- writer.writeNumberValue("totalCount", pagedResultOfUsageLedgerTableRow.totalCount);
9970
+ writer.writeObjectValue("pageSize", pagedResultOfUsageLedgerTableRow.pageSize);
9971
+ writer.writeObjectValue("totalCount", pagedResultOfUsageLedgerTableRow.totalCount);
9972
9972
  writer.writeAdditionalData(pagedResultOfUsageLedgerTableRow.additionalData);
9973
9973
  }
9974
9974
  /**
@@ -9999,14 +9999,14 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
9999
9999
  return;
10000
10000
  }
10001
10001
  writer.writeDateValue("answeredAt", phoneCallResponse.answeredAt);
10002
- writer.writeNumberValue("billableAmount", phoneCallResponse.billableAmount);
10002
+ writer.writeObjectValue("billableAmount", phoneCallResponse.billableAmount);
10003
10003
  writer.writeStringValue("billingStatus", phoneCallResponse.billingStatus);
10004
10004
  writer.writeStringValue("callerId", phoneCallResponse.callerId);
10005
10005
  writer.writeStringValue("campaignId", phoneCallResponse.campaignId);
10006
10006
  writer.writeStringValue("conversationId", phoneCallResponse.conversationId);
10007
10007
  writer.writeDateValue("createdAt", phoneCallResponse.createdAt);
10008
10008
  writer.writeStringValue("direction", phoneCallResponse.direction);
10009
- writer.writeNumberValue("durationSeconds", phoneCallResponse.durationSeconds);
10009
+ writer.writeObjectValue("durationSeconds", phoneCallResponse.durationSeconds);
10010
10010
  writer.writeDateValue("endedAt", phoneCallResponse.endedAt);
10011
10011
  writer.writeStringValue("fromPhoneNumber", phoneCallResponse.fromPhoneNumber);
10012
10012
  writer.writeStringValue("fromPhoneNumberId", phoneCallResponse.fromPhoneNumberId);
@@ -10259,7 +10259,7 @@ export function serializePhoneLookupProviderSnapshot(writer, phoneLookupProvider
10259
10259
  writer.writeStringValue("provider", phoneLookupProviderSnapshot.provider);
10260
10260
  writer.writeStringValue("rawRecordJson", phoneLookupProviderSnapshot.rawRecordJson);
10261
10261
  writer.writeDateValue("retrievedAt", phoneLookupProviderSnapshot.retrievedAt);
10262
- writer.writeNumberValue("schemaVersion", phoneLookupProviderSnapshot.schemaVersion);
10262
+ writer.writeObjectValue("schemaVersion", phoneLookupProviderSnapshot.schemaVersion);
10263
10263
  writer.writeAdditionalData(phoneLookupProviderSnapshot.additionalData);
10264
10264
  }
10265
10265
  /**
@@ -10291,7 +10291,7 @@ export function serializePhoneNumberAvailabilityResponse(writer, phoneNumberAvai
10291
10291
  writer.writeBooleanValue("isAvailable", phoneNumberAvailabilityResponse.isAvailable);
10292
10292
  writer.writeObjectValue("location", phoneNumberAvailabilityResponse.location, serializePhoneNumberAvailabilityResponse_location);
10293
10293
  writer.writeStringValue("phoneNumber", phoneNumberAvailabilityResponse.phoneNumber);
10294
- writer.writeNumberValue("price", phoneNumberAvailabilityResponse.price);
10294
+ writer.writeObjectValue("price", phoneNumberAvailabilityResponse.price);
10295
10295
  writer.writeAdditionalData(phoneNumberAvailabilityResponse.additionalData);
10296
10296
  }
10297
10297
  /**
@@ -10401,10 +10401,10 @@ export function serializePhoneNumberOptOutMetricsResponse(writer, phoneNumberOpt
10401
10401
  if (!phoneNumberOptOutMetricsResponse || isSerializingDerivedType) {
10402
10402
  return;
10403
10403
  }
10404
- writer.writeNumberValue("distinctContactedCount", phoneNumberOptOutMetricsResponse.distinctContactedCount);
10405
- writer.writeNumberValue("optOutCount", phoneNumberOptOutMetricsResponse.optOutCount);
10406
- writer.writeNumberValue("optOutRatePercent", phoneNumberOptOutMetricsResponse.optOutRatePercent);
10407
- writer.writeNumberValue("windowDays", phoneNumberOptOutMetricsResponse.windowDays);
10404
+ writer.writeObjectValue("distinctContactedCount", phoneNumberOptOutMetricsResponse.distinctContactedCount);
10405
+ writer.writeObjectValue("optOutCount", phoneNumberOptOutMetricsResponse.optOutCount);
10406
+ writer.writeObjectValue("optOutRatePercent", phoneNumberOptOutMetricsResponse.optOutRatePercent);
10407
+ writer.writeObjectValue("windowDays", phoneNumberOptOutMetricsResponse.windowDays);
10408
10408
  writer.writeDateValue("windowStartedAt", phoneNumberOptOutMetricsResponse.windowStartedAt);
10409
10409
  writer.writeAdditionalData(phoneNumberOptOutMetricsResponse.additionalData);
10410
10410
  }
@@ -10421,9 +10421,9 @@ export function serializePhoneNumberReadiness(writer, phoneNumberReadiness = {},
10421
10421
  }
10422
10422
  writer.writeEnumValue("callStage", phoneNumberReadiness.callStage);
10423
10423
  writer.writeBooleanValue("enabled", phoneNumberReadiness.enabled);
10424
- writer.writeNumberValue("healthScore", phoneNumberReadiness.healthScore);
10424
+ writer.writeObjectValue("healthScore", phoneNumberReadiness.healthScore);
10425
10425
  writer.writeEnumValue("healthStatus", phoneNumberReadiness.healthStatus);
10426
- writer.writeNumberValue("progressPercent", phoneNumberReadiness.progressPercent);
10426
+ writer.writeObjectValue("progressPercent", phoneNumberReadiness.progressPercent);
10427
10427
  writer.writeEnumValue("state", phoneNumberReadiness.state);
10428
10428
  writer.writeAdditionalData(phoneNumberReadiness.additionalData);
10429
10429
  }
@@ -10582,8 +10582,8 @@ export function serializePhoneNumberStatusResponse(writer, phoneNumberStatusResp
10582
10582
  if (!phoneNumberStatusResponse || isSerializingDerivedType) {
10583
10583
  return;
10584
10584
  }
10585
- writer.writeNumberValue("callsPossible", phoneNumberStatusResponse.callsPossible);
10586
- writer.writeNumberValue("messagesPossible", phoneNumberStatusResponse.messagesPossible);
10585
+ writer.writeObjectValue("callsPossible", phoneNumberStatusResponse.callsPossible);
10586
+ writer.writeObjectValue("messagesPossible", phoneNumberStatusResponse.messagesPossible);
10587
10587
  writer.writeStringValue("number", phoneNumberStatusResponse.number);
10588
10588
  writer.writeObjectValue("optOutMetrics", phoneNumberStatusResponse.optOutMetrics, serializePhoneNumberOptOutMetricsResponse);
10589
10589
  writer.writeObjectValue("outboundCapacity", phoneNumberStatusResponse.outboundCapacity, serializePhoneNumberStatusResponse_outboundCapacity);
@@ -10655,17 +10655,17 @@ export function serializePhoneNumberTrafficMetricsResponse(writer, phoneNumberTr
10655
10655
  if (!phoneNumberTrafficMetricsResponse || isSerializingDerivedType) {
10656
10656
  return;
10657
10657
  }
10658
- writer.writeNumberValue("callConnectedCount", phoneNumberTrafficMetricsResponse.callConnectedCount);
10659
- writer.writeNumberValue("callFailedCount", phoneNumberTrafficMetricsResponse.callFailedCount);
10660
- writer.writeNumberValue("callInvalidNumberCount", phoneNumberTrafficMetricsResponse.callInvalidNumberCount);
10661
- writer.writeNumberValue("callPlacedCount", phoneNumberTrafficMetricsResponse.callPlacedCount);
10662
- writer.writeNumberValue("callShortCount", phoneNumberTrafficMetricsResponse.callShortCount);
10663
- writer.writeNumberValue("mmsFailedCount", phoneNumberTrafficMetricsResponse.mmsFailedCount);
10664
- writer.writeNumberValue("mmsSentCount", phoneNumberTrafficMetricsResponse.mmsSentCount);
10665
- writer.writeNumberValue("smsFailedCount", phoneNumberTrafficMetricsResponse.smsFailedCount);
10666
- writer.writeNumberValue("smsSentCount", phoneNumberTrafficMetricsResponse.smsSentCount);
10658
+ writer.writeObjectValue("callConnectedCount", phoneNumberTrafficMetricsResponse.callConnectedCount);
10659
+ writer.writeObjectValue("callFailedCount", phoneNumberTrafficMetricsResponse.callFailedCount);
10660
+ writer.writeObjectValue("callInvalidNumberCount", phoneNumberTrafficMetricsResponse.callInvalidNumberCount);
10661
+ writer.writeObjectValue("callPlacedCount", phoneNumberTrafficMetricsResponse.callPlacedCount);
10662
+ writer.writeObjectValue("callShortCount", phoneNumberTrafficMetricsResponse.callShortCount);
10663
+ writer.writeObjectValue("mmsFailedCount", phoneNumberTrafficMetricsResponse.mmsFailedCount);
10664
+ writer.writeObjectValue("mmsSentCount", phoneNumberTrafficMetricsResponse.mmsSentCount);
10665
+ writer.writeObjectValue("smsFailedCount", phoneNumberTrafficMetricsResponse.smsFailedCount);
10666
+ writer.writeObjectValue("smsSentCount", phoneNumberTrafficMetricsResponse.smsSentCount);
10667
10667
  writer.writeCollectionOfObjectValues("trend", phoneNumberTrafficMetricsResponse.trend, serializePhoneNumberTrafficTrendPoint);
10668
- writer.writeNumberValue("windowDays", phoneNumberTrafficMetricsResponse.windowDays);
10668
+ writer.writeObjectValue("windowDays", phoneNumberTrafficMetricsResponse.windowDays);
10669
10669
  writer.writeDateValue("windowStartedAt", phoneNumberTrafficMetricsResponse.windowStartedAt);
10670
10670
  writer.writeAdditionalData(phoneNumberTrafficMetricsResponse.additionalData);
10671
10671
  }
@@ -10680,14 +10680,14 @@ export function serializePhoneNumberTrafficTrendPoint(writer, phoneNumberTraffic
10680
10680
  if (!phoneNumberTrafficTrendPoint || isSerializingDerivedType) {
10681
10681
  return;
10682
10682
  }
10683
- writer.writeNumberValue("callFailedCount", phoneNumberTrafficTrendPoint.callFailedCount);
10684
- writer.writeNumberValue("callPlacedCount", phoneNumberTrafficTrendPoint.callPlacedCount);
10683
+ writer.writeObjectValue("callFailedCount", phoneNumberTrafficTrendPoint.callFailedCount);
10684
+ writer.writeObjectValue("callPlacedCount", phoneNumberTrafficTrendPoint.callPlacedCount);
10685
10685
  writer.writeDateValue("endAt", phoneNumberTrafficTrendPoint.endAt);
10686
10686
  writer.writeStringValue("label", phoneNumberTrafficTrendPoint.label);
10687
- writer.writeNumberValue("mmsFailedCount", phoneNumberTrafficTrendPoint.mmsFailedCount);
10688
- writer.writeNumberValue("mmsSentCount", phoneNumberTrafficTrendPoint.mmsSentCount);
10689
- writer.writeNumberValue("smsFailedCount", phoneNumberTrafficTrendPoint.smsFailedCount);
10690
- writer.writeNumberValue("smsSentCount", phoneNumberTrafficTrendPoint.smsSentCount);
10687
+ writer.writeObjectValue("mmsFailedCount", phoneNumberTrafficTrendPoint.mmsFailedCount);
10688
+ writer.writeObjectValue("mmsSentCount", phoneNumberTrafficTrendPoint.mmsSentCount);
10689
+ writer.writeObjectValue("smsFailedCount", phoneNumberTrafficTrendPoint.smsFailedCount);
10690
+ writer.writeObjectValue("smsSentCount", phoneNumberTrafficTrendPoint.smsSentCount);
10691
10691
  writer.writeDateValue("startAt", phoneNumberTrafficTrendPoint.startAt);
10692
10692
  writer.writeAdditionalData(phoneNumberTrafficTrendPoint.additionalData);
10693
10693
  }
@@ -10704,7 +10704,7 @@ export function serializeProblemDetails(writer, problemDetails = {}, isSerializi
10704
10704
  }
10705
10705
  writer.writeStringValue("detail", problemDetails.detail);
10706
10706
  writer.writeStringValue("instance", problemDetails.instance);
10707
- writer.writeNumberValue("status", problemDetails.status);
10707
+ writer.writeObjectValue("status", problemDetails.status);
10708
10708
  writer.writeStringValue("title", problemDetails.title);
10709
10709
  writer.writeStringValue("type", problemDetails.type);
10710
10710
  writer.writeAdditionalData(problemDetails.additionalData);
@@ -10779,7 +10779,7 @@ export function serializeRequestDataOptions(writer, requestDataOptions = {}, isS
10779
10779
  writer.writeCollectionOfObjectValues("filters", requestDataOptions.filters, serializeExactMatchFilter);
10780
10780
  writer.writeBooleanValue("includeCount", requestDataOptions.includeCount);
10781
10781
  writer.writeCollectionOfObjectValues("orderBy", requestDataOptions.orderBy, serializeOrderByOption);
10782
- writer.writeNumberValue("pageSize", requestDataOptions.pageSize);
10782
+ writer.writeObjectValue("pageSize", requestDataOptions.pageSize);
10783
10783
  writer.writeCollectionOfObjectValues("rangeFilters", requestDataOptions.rangeFilters, serializeRangeFilter);
10784
10784
  writer.writeStringValue("search", requestDataOptions.search);
10785
10785
  writer.writeCollectionOfPrimitiveValues("searchFields", requestDataOptions.searchFields);
@@ -10821,7 +10821,7 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
10821
10821
  }
10822
10822
  writer.writeStringValue("actorDisplayName", smsEventTableRow.actorDisplayName);
10823
10823
  writer.writeStringValue("actorUserId", smsEventTableRow.actorUserId);
10824
- writer.writeNumberValue("billableAmount", smsEventTableRow.billableAmount);
10824
+ writer.writeObjectValue("billableAmount", smsEventTableRow.billableAmount);
10825
10825
  writer.writeStringValue("billingStatus", smsEventTableRow.billingStatus);
10826
10826
  writer.writeDateValue("blockedAt", smsEventTableRow.blockedAt);
10827
10827
  writer.writeDateValue("canceledAt", smsEventTableRow.canceledAt);
@@ -10872,11 +10872,11 @@ export function serializeSmsReadinessStatusResponse(writer, smsReadinessStatusRe
10872
10872
  if (!smsReadinessStatusResponse || isSerializingDerivedType) {
10873
10873
  return;
10874
10874
  }
10875
- writer.writeNumberValue("healthScore", smsReadinessStatusResponse.healthScore);
10875
+ writer.writeObjectValue("healthScore", smsReadinessStatusResponse.healthScore);
10876
10876
  writer.writeEnumValue("healthStatus", smsReadinessStatusResponse.healthStatus);
10877
10877
  writer.writeStringValue("phoneNumber", smsReadinessStatusResponse.phoneNumber);
10878
10878
  writer.writeStringValue("phoneNumberId", smsReadinessStatusResponse.phoneNumberId);
10879
- writer.writeNumberValue("progressPercent", smsReadinessStatusResponse.progressPercent);
10879
+ writer.writeObjectValue("progressPercent", smsReadinessStatusResponse.progressPercent);
10880
10880
  writer.writeEnumValue("status", smsReadinessStatusResponse.status);
10881
10881
  writer.writeObjectValue("uiState", smsReadinessStatusResponse.uiState, serializeSmsReadinessUiState);
10882
10882
  writer.writeBooleanValue("warmupEnabled", smsReadinessStatusResponse.warmupEnabled);
@@ -10909,7 +10909,7 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
10909
10909
  if (!smsResponse || isSerializingDerivedType) {
10910
10910
  return;
10911
10911
  }
10912
- writer.writeNumberValue("billableAmount", smsResponse.billableAmount);
10912
+ writer.writeObjectValue("billableAmount", smsResponse.billableAmount);
10913
10913
  writer.writeStringValue("billingStatus", smsResponse.billingStatus);
10914
10914
  writer.writeDateValue("blockedAt", smsResponse.blockedAt);
10915
10915
  writer.writeStringValue("campaignId", smsResponse.campaignId);
@@ -10932,7 +10932,7 @@ export function serializeSmsResponse(writer, smsResponse = {}, isSerializingDeri
10932
10932
  writer.writeStringValue("outboundPhoneNumberId", smsResponse.outboundPhoneNumberId);
10933
10933
  writer.writeDateValue("queuedAt", smsResponse.queuedAt);
10934
10934
  writer.writeDateValue("receivedAt", smsResponse.receivedAt);
10935
- writer.writeNumberValue("retryCount", smsResponse.retryCount);
10935
+ writer.writeObjectValue("retryCount", smsResponse.retryCount);
10936
10936
  writer.writeDateValue("scheduledFor", smsResponse.scheduledFor);
10937
10937
  writer.writeStringValue("scheduledReason", smsResponse.scheduledReason);
10938
10938
  writer.writeEnumValue("selectionReason", smsResponse.selectionReason);
@@ -10961,7 +10961,7 @@ export function serializeSourceMetricsResponse(writer, sourceMetricsResponse = {
10961
10961
  writer.writeDateValue("generatedAt", sourceMetricsResponse.generatedAt);
10962
10962
  writer.writeCollectionOfObjectValues("points", sourceMetricsResponse.points, serializeAnalyticsTrendPointOfint);
10963
10963
  writer.writeObjectValue("range", sourceMetricsResponse.range, serializeAnalyticsDateRange);
10964
- writer.writeNumberValue("totalLeads", sourceMetricsResponse.totalLeads);
10964
+ writer.writeObjectValue("totalLeads", sourceMetricsResponse.totalLeads);
10965
10965
  writer.writeAdditionalData(sourceMetricsResponse.additionalData);
10966
10966
  }
10967
10967
  /**
@@ -10978,7 +10978,7 @@ export function serializeSourceRequest(writer, sourceRequest = {}, isSerializing
10978
10978
  writer.writeCollectionOfPrimitiveValues("allowedProducts", sourceRequest.allowedProducts);
10979
10979
  writer.writeCollectionOfPrimitiveValues("allowedStates", sourceRequest.allowedStates);
10980
10980
  writer.writeStringValue("apiKey", sourceRequest.apiKey);
10981
- writer.writeNumberValue("costPerLead", sourceRequest.costPerLead);
10981
+ writer.writeObjectValue("costPerLead", sourceRequest.costPerLead);
10982
10982
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceRequest.defaultTagIds);
10983
10983
  writer.writeCollectionOfPrimitiveValues("defaultTagNames", sourceRequest.defaultTagNames);
10984
10984
  writer.writeStringValue("description", sourceRequest.description);
@@ -11005,7 +11005,7 @@ export function serializeSourceResponse(writer, sourceResponse = {}, isSerializi
11005
11005
  writer.writeStringValue("apiKey", sourceResponse.apiKey);
11006
11006
  writer.writeStringValue("apiKeyPreview", sourceResponse.apiKeyPreview);
11007
11007
  writer.writeBooleanValue("complianceApproved", sourceResponse.complianceApproved);
11008
- writer.writeNumberValue("costPerLead", sourceResponse.costPerLead);
11008
+ writer.writeObjectValue("costPerLead", sourceResponse.costPerLead);
11009
11009
  writer.writeDateValue("createdAt", sourceResponse.createdAt);
11010
11010
  writer.writeObjectValue("createdByUser", sourceResponse.createdByUser, serializeSourceResponse_createdByUser);
11011
11011
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceResponse.defaultTagIds);
@@ -11091,9 +11091,9 @@ export function serializeSourceTableRow(writer, sourceTableRow = {}, isSerializi
11091
11091
  writer.writeStringValue("apiKey", sourceTableRow.apiKey);
11092
11092
  writer.writeDateValue("apiKeyLastUsedAt", sourceTableRow.apiKeyLastUsedAt);
11093
11093
  writer.writeStringValue("apiKeyPreview", sourceTableRow.apiKeyPreview);
11094
- writer.writeNumberValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
11094
+ writer.writeObjectValue("apiKeyTotalUses", sourceTableRow.apiKeyTotalUses);
11095
11095
  writer.writeBooleanValue("complianceApproved", sourceTableRow.complianceApproved);
11096
- writer.writeNumberValue("costPerLead", sourceTableRow.costPerLead);
11096
+ writer.writeObjectValue("costPerLead", sourceTableRow.costPerLead);
11097
11097
  writer.writeDateValue("createdAt", sourceTableRow.createdAt);
11098
11098
  writer.writeObjectValue("createdByUser", sourceTableRow.createdByUser, serializeSourceTableRow_createdByUser);
11099
11099
  writer.writeCollectionOfPrimitiveValues("defaultTagIds", sourceTableRow.defaultTagIds);
@@ -11197,7 +11197,7 @@ export function serializeStripeInvoiceResponse(writer, stripeInvoiceResponse = {
11197
11197
  if (!stripeInvoiceResponse || isSerializingDerivedType) {
11198
11198
  return;
11199
11199
  }
11200
- writer.writeNumberValue("amount", stripeInvoiceResponse.amount);
11200
+ writer.writeObjectValue("amount", stripeInvoiceResponse.amount);
11201
11201
  writer.writeDateValue("createdAt", stripeInvoiceResponse.createdAt);
11202
11202
  writer.writeBooleanValue("hasPdf", stripeInvoiceResponse.hasPdf);
11203
11203
  writer.writeStringValue("id", stripeInvoiceResponse.id);
@@ -11218,8 +11218,8 @@ export function serializeStripePaymentMethodResponse(writer, stripePaymentMethod
11218
11218
  }
11219
11219
  writer.writeStringValue("brand", stripePaymentMethodResponse.brand);
11220
11220
  writer.writeDateValue("createdAt", stripePaymentMethodResponse.createdAt);
11221
- writer.writeNumberValue("expMonth", stripePaymentMethodResponse.expMonth);
11222
- writer.writeNumberValue("expYear", stripePaymentMethodResponse.expYear);
11221
+ writer.writeObjectValue("expMonth", stripePaymentMethodResponse.expMonth);
11222
+ writer.writeObjectValue("expYear", stripePaymentMethodResponse.expYear);
11223
11223
  writer.writeStringValue("id", stripePaymentMethodResponse.id);
11224
11224
  writer.writeBooleanValue("isDefault", stripePaymentMethodResponse.isDefault);
11225
11225
  writer.writeStringValue("last4", stripePaymentMethodResponse.last4);
@@ -11446,7 +11446,7 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
11446
11446
  writer.writeStringValue("contactName", tenDlcApplicationDraft.contactName);
11447
11447
  writer.writeStringValue("contactPhone", tenDlcApplicationDraft.contactPhone);
11448
11448
  writer.writeStringValue("ein", tenDlcApplicationDraft.ein);
11449
- writer.writeNumberValue("expectedMonthlyVolume", tenDlcApplicationDraft.expectedMonthlyVolume);
11449
+ writer.writeObjectValue("expectedMonthlyVolume", tenDlcApplicationDraft.expectedMonthlyVolume);
11450
11450
  writer.writeStringValue("industry", tenDlcApplicationDraft.industry);
11451
11451
  writer.writeDateValue("lastSubmittedAt", tenDlcApplicationDraft.lastSubmittedAt);
11452
11452
  writer.writeCollectionOfPrimitiveValues("messageExamples", tenDlcApplicationDraft.messageExamples);
@@ -11459,7 +11459,7 @@ export function serializeTenDlcApplicationDraft(writer, tenDlcApplicationDraft =
11459
11459
  writer.writeDateValue("updatedAt", tenDlcApplicationDraft.updatedAt);
11460
11460
  writer.writeStringValue("useCase", tenDlcApplicationDraft.useCase);
11461
11461
  writer.writeStringValue("useCaseDescription", tenDlcApplicationDraft.useCaseDescription);
11462
- writer.writeNumberValue("version", tenDlcApplicationDraft.version);
11462
+ writer.writeObjectValue("version", tenDlcApplicationDraft.version);
11463
11463
  writer.writeStringValue("websiteUrl", tenDlcApplicationDraft.websiteUrl);
11464
11464
  writer.writeAdditionalData(tenDlcApplicationDraft.additionalData);
11465
11465
  }
@@ -11488,22 +11488,22 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
11488
11488
  if (!transactionResponse || isSerializingDerivedType) {
11489
11489
  return;
11490
11490
  }
11491
- writer.writeNumberValue("amount", transactionResponse.amount);
11491
+ writer.writeObjectValue("amount", transactionResponse.amount);
11492
11492
  writer.writeEnumValue("billableUnit", transactionResponse.billableUnit);
11493
- writer.writeNumberValue("billedAmount", transactionResponse.billedAmount);
11493
+ writer.writeObjectValue("billedAmount", transactionResponse.billedAmount);
11494
11494
  writer.writeEnumValue("billingChannel", transactionResponse.billingChannel);
11495
11495
  writer.writeDateValue("createdAt", transactionResponse.createdAt);
11496
11496
  writer.writeStringValue("description", transactionResponse.description);
11497
- writer.writeNumberValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
11497
+ writer.writeObjectValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
11498
11498
  writer.writeStringValue("gatewayStatus", transactionResponse.gatewayStatus);
11499
11499
  writer.writeStringValue("id", transactionResponse.id);
11500
11500
  writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
11501
11501
  writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
11502
- writer.writeNumberValue("netAmount", transactionResponse.netAmount);
11502
+ writer.writeObjectValue("netAmount", transactionResponse.netAmount);
11503
11503
  writer.writeStringValue("notes", transactionResponse.notes);
11504
11504
  writer.writeObjectValue("organization", transactionResponse.organization, serializeTransactionResponse_organization);
11505
11505
  writer.writeStringValue("paymentMethodDisplay", transactionResponse.paymentMethodDisplay);
11506
- writer.writeNumberValue("platformFeeAmount", transactionResponse.platformFeeAmount);
11506
+ writer.writeObjectValue("platformFeeAmount", transactionResponse.platformFeeAmount);
11507
11507
  writer.writeEnumValue("transactionStatus", transactionResponse.transactionStatus);
11508
11508
  writer.writeEnumValue("transactionType", transactionResponse.transactionType);
11509
11509
  writer.writeAdditionalData(transactionResponse.additionalData);
@@ -11545,24 +11545,24 @@ export function serializeTransactionTableRow(writer, transactionTableRow = {}, i
11545
11545
  if (!transactionTableRow || isSerializingDerivedType) {
11546
11546
  return;
11547
11547
  }
11548
- writer.writeNumberValue("amount", transactionTableRow.amount);
11548
+ writer.writeObjectValue("amount", transactionTableRow.amount);
11549
11549
  writer.writeEnumValue("billableUnit", transactionTableRow.billableUnit);
11550
- writer.writeNumberValue("billedAmount", transactionTableRow.billedAmount);
11550
+ writer.writeObjectValue("billedAmount", transactionTableRow.billedAmount);
11551
11551
  writer.writeEnumValue("billingChannel", transactionTableRow.billingChannel);
11552
11552
  writer.writeDateValue("createdAt", transactionTableRow.createdAt);
11553
11553
  writer.writeStringValue("description", transactionTableRow.description);
11554
11554
  writer.writeStringValue("id", transactionTableRow.id);
11555
11555
  writer.writeObjectValue("lead", transactionTableRow.lead, serializeTransactionTableRow_lead);
11556
- writer.writeNumberValue("netAmount", transactionTableRow.netAmount);
11556
+ writer.writeObjectValue("netAmount", transactionTableRow.netAmount);
11557
11557
  writer.writeObjectValue("organization", transactionTableRow.organization, serializeTransactionTableRow_organization);
11558
11558
  writer.writeStringValue("paymentMethodDisplay", transactionTableRow.paymentMethodDisplay);
11559
11559
  writer.writeStringValue("pricingVersion", transactionTableRow.pricingVersion);
11560
- writer.writeNumberValue("quantity", transactionTableRow.quantity);
11560
+ writer.writeObjectValue("quantity", transactionTableRow.quantity);
11561
11561
  writer.writeStringValue("sourceEventId", transactionTableRow.sourceEventId);
11562
11562
  writer.writeStringValue("sourceEventType", transactionTableRow.sourceEventType);
11563
11563
  writer.writeEnumValue("transactionStatus", transactionTableRow.transactionStatus);
11564
11564
  writer.writeEnumValue("transactionType", transactionTableRow.transactionType);
11565
- writer.writeNumberValue("unitPrice", transactionTableRow.unitPrice);
11565
+ writer.writeObjectValue("unitPrice", transactionTableRow.unitPrice);
11566
11566
  writer.writeAdditionalData(transactionTableRow.additionalData);
11567
11567
  }
11568
11568
  /**
@@ -11621,9 +11621,9 @@ export function serializeUsageCounterLine(writer, usageCounterLine = {}, isSeria
11621
11621
  }
11622
11622
  writer.writeStringValue("key", usageCounterLine.key);
11623
11623
  writer.writeStringValue("label", usageCounterLine.label);
11624
- writer.writeNumberValue("sortOrder", usageCounterLine.sortOrder);
11624
+ writer.writeObjectValue("sortOrder", usageCounterLine.sortOrder);
11625
11625
  writer.writeStringValue("unit", usageCounterLine.unit);
11626
- writer.writeNumberValue("value", usageCounterLine.value);
11626
+ writer.writeObjectValue("value", usageCounterLine.value);
11627
11627
  writer.writeAdditionalData(usageCounterLine.additionalData);
11628
11628
  }
11629
11629
  /**
@@ -11637,23 +11637,23 @@ export function serializeUsageLedgerTableRow(writer, usageLedgerTableRow = {}, i
11637
11637
  if (!usageLedgerTableRow || isSerializingDerivedType) {
11638
11638
  return;
11639
11639
  }
11640
- writer.writeNumberValue("billableSeconds", usageLedgerTableRow.billableSeconds);
11640
+ writer.writeObjectValue("billableSeconds", usageLedgerTableRow.billableSeconds);
11641
11641
  writer.writeEnumValue("billableUnit", usageLedgerTableRow.billableUnit);
11642
11642
  writer.writeEnumValue("channel", usageLedgerTableRow.channel);
11643
11643
  writer.writeDateValue("createdAt", usageLedgerTableRow.createdAt);
11644
- writer.writeNumberValue("customerChargeAmount", usageLedgerTableRow.customerChargeAmount);
11644
+ writer.writeObjectValue("customerChargeAmount", usageLedgerTableRow.customerChargeAmount);
11645
11645
  writer.writeStringValue("description", usageLedgerTableRow.description);
11646
- writer.writeNumberValue("durationSeconds", usageLedgerTableRow.durationSeconds);
11646
+ writer.writeObjectValue("durationSeconds", usageLedgerTableRow.durationSeconds);
11647
11647
  writer.writeStringValue("id", usageLedgerTableRow.id);
11648
11648
  writer.writeBooleanValue("isBillable", usageLedgerTableRow.isBillable);
11649
11649
  writer.writeObjectValue("lead", usageLedgerTableRow.lead, serializeUsageLedgerTableRow_lead);
11650
11650
  writer.writeObjectValue("organization", usageLedgerTableRow.organization, serializeUsageLedgerTableRow_organization);
11651
11651
  writer.writeStringValue("phoneNumber", usageLedgerTableRow.phoneNumber);
11652
11652
  writer.writeStringValue("phoneNumberId", usageLedgerTableRow.phoneNumberId);
11653
- writer.writeNumberValue("quantity", usageLedgerTableRow.quantity);
11654
- writer.writeNumberValue("smsSegments", usageLedgerTableRow.smsSegments);
11653
+ writer.writeObjectValue("quantity", usageLedgerTableRow.quantity);
11654
+ writer.writeObjectValue("smsSegments", usageLedgerTableRow.smsSegments);
11655
11655
  writer.writeEnumValue("status", usageLedgerTableRow.status);
11656
- writer.writeNumberValue("unitPrice", usageLedgerTableRow.unitPrice);
11656
+ writer.writeObjectValue("unitPrice", usageLedgerTableRow.unitPrice);
11657
11657
  writer.writeObjectValue("user", usageLedgerTableRow.user, serializeUsageLedgerTableRow_user);
11658
11658
  writer.writeAdditionalData(usageLedgerTableRow.additionalData);
11659
11659
  }
@@ -11709,9 +11709,9 @@ export function serializeUsageSummaryLine(writer, usageSummaryLine = {}, isSeria
11709
11709
  }
11710
11710
  writer.writeEnumValue("billableUnit", usageSummaryLine.billableUnit);
11711
11711
  writer.writeEnumValue("channel", usageSummaryLine.channel);
11712
- writer.writeNumberValue("customerChargeAmount", usageSummaryLine.customerChargeAmount);
11713
- writer.writeNumberValue("quantity", usageSummaryLine.quantity);
11714
- writer.writeNumberValue("recordCount", usageSummaryLine.recordCount);
11712
+ writer.writeObjectValue("customerChargeAmount", usageSummaryLine.customerChargeAmount);
11713
+ writer.writeObjectValue("quantity", usageSummaryLine.quantity);
11714
+ writer.writeObjectValue("recordCount", usageSummaryLine.recordCount);
11715
11715
  writer.writeEnumValue("status", usageSummaryLine.status);
11716
11716
  writer.writeAdditionalData(usageSummaryLine.additionalData);
11717
11717
  }
@@ -11726,15 +11726,15 @@ export function serializeUsageSummaryResponse(writer, usageSummaryResponse = {},
11726
11726
  if (!usageSummaryResponse || isSerializingDerivedType) {
11727
11727
  return;
11728
11728
  }
11729
- writer.writeNumberValue("billableQuantityTotal", usageSummaryResponse.billableQuantityTotal);
11729
+ writer.writeObjectValue("billableQuantityTotal", usageSummaryResponse.billableQuantityTotal);
11730
11730
  writer.writeCollectionOfObjectValues("counters", usageSummaryResponse.counters, serializeUsageCounterLine);
11731
- writer.writeNumberValue("customerChargeTotal", usageSummaryResponse.customerChargeTotal);
11732
- writer.writeNumberValue("failedCount", usageSummaryResponse.failedCount);
11731
+ writer.writeObjectValue("customerChargeTotal", usageSummaryResponse.customerChargeTotal);
11732
+ writer.writeObjectValue("failedCount", usageSummaryResponse.failedCount);
11733
11733
  writer.writeCollectionOfObjectValues("lines", usageSummaryResponse.lines, serializeUsageSummaryLine);
11734
- writer.writeNumberValue("pendingInvoiceCount", usageSummaryResponse.pendingInvoiceCount);
11734
+ writer.writeObjectValue("pendingInvoiceCount", usageSummaryResponse.pendingInvoiceCount);
11735
11735
  writer.writeDateValue("periodEnd", usageSummaryResponse.periodEnd);
11736
11736
  writer.writeDateValue("periodStart", usageSummaryResponse.periodStart);
11737
- writer.writeNumberValue("transactionCount", usageSummaryResponse.transactionCount);
11737
+ writer.writeObjectValue("transactionCount", usageSummaryResponse.transactionCount);
11738
11738
  writer.writeAdditionalData(usageSummaryResponse.additionalData);
11739
11739
  }
11740
11740
  /**
@@ -11770,7 +11770,7 @@ export function serializeUserDataExportFile(writer, userDataExportFile = {}, isS
11770
11770
  writer.writeStringValue("category", userDataExportFile.category);
11771
11771
  writer.writeStringValue("contentType", userDataExportFile.contentType);
11772
11772
  writer.writeStringValue("fileName", userDataExportFile.fileName);
11773
- writer.writeNumberValue("rowCount", userDataExportFile.rowCount);
11773
+ writer.writeObjectValue("rowCount", userDataExportFile.rowCount);
11774
11774
  writer.writeAdditionalData(userDataExportFile.additionalData);
11775
11775
  }
11776
11776
  /**
@@ -11786,17 +11786,17 @@ export function serializeUserDataExportResponse(writer, userDataExportResponse =
11786
11786
  }
11787
11787
  writer.writeDateValue("completedAt", userDataExportResponse.completedAt);
11788
11788
  writer.writeStringValue("contentType", userDataExportResponse.contentType);
11789
- writer.writeNumberValue("downloadCount", userDataExportResponse.downloadCount);
11789
+ writer.writeObjectValue("downloadCount", userDataExportResponse.downloadCount);
11790
11790
  writer.writeStringValue("downloadUrl", userDataExportResponse.downloadUrl);
11791
11791
  writer.writeDateValue("expiresAt", userDataExportResponse.expiresAt);
11792
11792
  writer.writeDateValue("failedAt", userDataExportResponse.failedAt);
11793
11793
  writer.writeStringValue("fileName", userDataExportResponse.fileName);
11794
11794
  writer.writeCollectionOfObjectValues("files", userDataExportResponse.files, serializeUserDataExportFile);
11795
11795
  writer.writeStringValue("id", userDataExportResponse.id);
11796
- writer.writeNumberValue("maxDownloadCount", userDataExportResponse.maxDownloadCount);
11796
+ writer.writeObjectValue("maxDownloadCount", userDataExportResponse.maxDownloadCount);
11797
11797
  writer.writeStringValue("message", userDataExportResponse.message);
11798
11798
  writer.writeDateValue("requestedAt", userDataExportResponse.requestedAt);
11799
- writer.writeNumberValue("sizeBytes", userDataExportResponse.sizeBytes);
11799
+ writer.writeObjectValue("sizeBytes", userDataExportResponse.sizeBytes);
11800
11800
  writer.writeDateValue("startedAt", userDataExportResponse.startedAt);
11801
11801
  writer.writeEnumValue("status", userDataExportResponse.status);
11802
11802
  writer.writeAdditionalData(userDataExportResponse.additionalData);
@@ -12033,20 +12033,20 @@ export function serializeWalletResponse(writer, walletResponse = {}, isSerializi
12033
12033
  if (!walletResponse || isSerializingDerivedType) {
12034
12034
  return;
12035
12035
  }
12036
- writer.writeNumberValue("amountPurchased", walletResponse.amountPurchased);
12037
- writer.writeNumberValue("amountRemaining", walletResponse.amountRemaining);
12038
- writer.writeNumberValue("balance", walletResponse.balance);
12036
+ writer.writeObjectValue("amountPurchased", walletResponse.amountPurchased);
12037
+ writer.writeObjectValue("amountRemaining", walletResponse.amountRemaining);
12038
+ writer.writeObjectValue("balance", walletResponse.balance);
12039
12039
  writer.writeDateValue("balanceCalculatedAt", walletResponse.balanceCalculatedAt);
12040
12040
  writer.writeDateValue("createdAt", walletResponse.createdAt);
12041
12041
  writer.writeEnumValue("creditStatus", walletResponse.creditStatus);
12042
12042
  writer.writeStringValue("currency", walletResponse.currency);
12043
- writer.writeNumberValue("expiredCreditAmount", walletResponse.expiredCreditAmount);
12043
+ writer.writeObjectValue("expiredCreditAmount", walletResponse.expiredCreditAmount);
12044
12044
  writer.writeDateValue("expiresAt", walletResponse.expiresAt);
12045
12045
  writer.writeStringValue("id", walletResponse.id);
12046
12046
  writer.writeDateValue("modifiedAt", walletResponse.modifiedAt);
12047
12047
  writer.writeStringValue("name", walletResponse.name);
12048
12048
  writer.writeDateValue("nextCreditExpirationAt", walletResponse.nextCreditExpirationAt);
12049
- writer.writeNumberValue("nextExpiringCreditAmount", walletResponse.nextExpiringCreditAmount);
12049
+ writer.writeObjectValue("nextExpiringCreditAmount", walletResponse.nextExpiringCreditAmount);
12050
12050
  writer.writeStringValue("organizationId", walletResponse.organizationId);
12051
12051
  writer.writeStringValue("originalTransactionId", walletResponse.originalTransactionId);
12052
12052
  writer.writeDateValue("purchasedAt", walletResponse.purchasedAt);