@leadping/sdk 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/index.d.ts +658 -405
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +724 -357
- package/dist/models/index.js.map +1 -1
- package/package.json +1 -1
package/dist/models/index.js
CHANGED
|
@@ -21,6 +21,15 @@ export function createAcceptBusinessInvitationRequestFromDiscriminatorValue(pars
|
|
|
21
21
|
export function createActivationDomainOptionFromDiscriminatorValue(parseNode) {
|
|
22
22
|
return deserializeIntoActivationDomainOption;
|
|
23
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
26
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
27
|
+
* @returns {ActivationTimelineEvent_actor}
|
|
28
|
+
*/
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
export function createActivationTimelineEvent_actorFromDiscriminatorValue(parseNode) {
|
|
31
|
+
return deserializeIntoActivationTimelineEvent_actor;
|
|
32
|
+
}
|
|
24
33
|
/**
|
|
25
34
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
26
35
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -291,6 +300,24 @@ export function createAutomationWorkflowActionResponseFromDiscriminatorValue(par
|
|
|
291
300
|
export function createAutomationWorkflowEventResponseFromDiscriminatorValue(parseNode) {
|
|
292
301
|
return deserializeIntoAutomationWorkflowEventResponse;
|
|
293
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
305
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
306
|
+
* @returns {AutomationWorkflowRunResponse_automation}
|
|
307
|
+
*/
|
|
308
|
+
// @ts-ignore
|
|
309
|
+
export function createAutomationWorkflowRunResponse_automationFromDiscriminatorValue(parseNode) {
|
|
310
|
+
return deserializeIntoAutomationWorkflowRunResponse_automation;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
314
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
315
|
+
* @returns {AutomationWorkflowRunResponse_currentStep}
|
|
316
|
+
*/
|
|
317
|
+
// @ts-ignore
|
|
318
|
+
export function createAutomationWorkflowRunResponse_currentStepFromDiscriminatorValue(parseNode) {
|
|
319
|
+
return deserializeIntoAutomationWorkflowRunResponse_currentStep;
|
|
320
|
+
}
|
|
294
321
|
/**
|
|
295
322
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
296
323
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -327,6 +354,24 @@ export function createBusinessActivationState_tenDlcDraftFromDiscriminatorValue(
|
|
|
327
354
|
export function createBusinessActivationStateFromDiscriminatorValue(parseNode) {
|
|
328
355
|
return deserializeIntoBusinessActivationState;
|
|
329
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
359
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
360
|
+
* @returns {BusinessBillingState_dunning}
|
|
361
|
+
*/
|
|
362
|
+
// @ts-ignore
|
|
363
|
+
export function createBusinessBillingState_dunningFromDiscriminatorValue(parseNode) {
|
|
364
|
+
return deserializeIntoBusinessBillingState_dunning;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
368
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
369
|
+
* @returns {BusinessBillingState}
|
|
370
|
+
*/
|
|
371
|
+
// @ts-ignore
|
|
372
|
+
export function createBusinessBillingStateFromDiscriminatorValue(parseNode) {
|
|
373
|
+
return deserializeIntoBusinessBillingState;
|
|
374
|
+
}
|
|
330
375
|
/**
|
|
331
376
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
332
377
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -336,6 +381,15 @@ export function createBusinessActivationStateFromDiscriminatorValue(parseNode) {
|
|
|
336
381
|
export function createBusinessCompliancePolicyFromDiscriminatorValue(parseNode) {
|
|
337
382
|
return deserializeIntoBusinessCompliancePolicy;
|
|
338
383
|
}
|
|
384
|
+
/**
|
|
385
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
386
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
387
|
+
* @returns {BusinessDunningInfo}
|
|
388
|
+
*/
|
|
389
|
+
// @ts-ignore
|
|
390
|
+
export function createBusinessDunningInfoFromDiscriminatorValue(parseNode) {
|
|
391
|
+
return deserializeIntoBusinessDunningInfo;
|
|
392
|
+
}
|
|
339
393
|
/**
|
|
340
394
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
341
395
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -435,6 +489,15 @@ export function createBusinessResponse_addressFromDiscriminatorValue(parseNode)
|
|
|
435
489
|
export function createBusinessResponse_billingAddressFromDiscriminatorValue(parseNode) {
|
|
436
490
|
return deserializeIntoBusinessResponse_billingAddress;
|
|
437
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
494
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
495
|
+
* @returns {BusinessResponse_billingState}
|
|
496
|
+
*/
|
|
497
|
+
// @ts-ignore
|
|
498
|
+
export function createBusinessResponse_billingStateFromDiscriminatorValue(parseNode) {
|
|
499
|
+
return deserializeIntoBusinessResponse_billingState;
|
|
500
|
+
}
|
|
438
501
|
/**
|
|
439
502
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
440
503
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -498,6 +561,15 @@ export function createBusinessSwitchOptionFromDiscriminatorValue(parseNode) {
|
|
|
498
561
|
export function createBusinessSwitchRequestFromDiscriminatorValue(parseNode) {
|
|
499
562
|
return deserializeIntoBusinessSwitchRequest;
|
|
500
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
566
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
567
|
+
* @returns {BusinessTableRow_business}
|
|
568
|
+
*/
|
|
569
|
+
// @ts-ignore
|
|
570
|
+
export function createBusinessTableRow_businessFromDiscriminatorValue(parseNode) {
|
|
571
|
+
return deserializeIntoBusinessTableRow_business;
|
|
572
|
+
}
|
|
501
573
|
/**
|
|
502
574
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
503
575
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1002,6 +1074,15 @@ export function createLeadResponse_currentDispositionFromDiscriminatorValue(pars
|
|
|
1002
1074
|
export function createLeadResponseFromDiscriminatorValue(parseNode) {
|
|
1003
1075
|
return deserializeIntoLeadResponse;
|
|
1004
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1079
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1080
|
+
* @returns {LeadTableRow_business}
|
|
1081
|
+
*/
|
|
1082
|
+
// @ts-ignore
|
|
1083
|
+
export function createLeadTableRow_businessFromDiscriminatorValue(parseNode) {
|
|
1084
|
+
return deserializeIntoLeadTableRow_business;
|
|
1085
|
+
}
|
|
1005
1086
|
/**
|
|
1006
1087
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1007
1088
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1011,6 +1092,15 @@ export function createLeadResponseFromDiscriminatorValue(parseNode) {
|
|
|
1011
1092
|
export function createLeadTableRow_currentDispositionFromDiscriminatorValue(parseNode) {
|
|
1012
1093
|
return deserializeIntoLeadTableRow_currentDisposition;
|
|
1013
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1097
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1098
|
+
* @returns {LeadTableRow_source}
|
|
1099
|
+
*/
|
|
1100
|
+
// @ts-ignore
|
|
1101
|
+
export function createLeadTableRow_sourceFromDiscriminatorValue(parseNode) {
|
|
1102
|
+
return deserializeIntoLeadTableRow_source;
|
|
1103
|
+
}
|
|
1014
1104
|
/**
|
|
1015
1105
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1016
1106
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1218,15 +1308,6 @@ export function createPagedResultOfTransactionTableRowFromDiscriminatorValue(par
|
|
|
1218
1308
|
export function createPagedResultOfUsageLedgerTableRowFromDiscriminatorValue(parseNode) {
|
|
1219
1309
|
return deserializeIntoPagedResultOfUsageLedgerTableRow;
|
|
1220
1310
|
}
|
|
1221
|
-
/**
|
|
1222
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1223
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1224
|
-
* @returns {Phone_lookup}
|
|
1225
|
-
*/
|
|
1226
|
-
// @ts-ignore
|
|
1227
|
-
export function createPhone_lookupFromDiscriminatorValue(parseNode) {
|
|
1228
|
-
return deserializeIntoPhone_lookup;
|
|
1229
|
-
}
|
|
1230
1311
|
/**
|
|
1231
1312
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1232
1313
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1245,42 +1326,6 @@ export function createPhoneCallResponseFromDiscriminatorValue(parseNode) {
|
|
|
1245
1326
|
export function createPhoneFromDiscriminatorValue(parseNode) {
|
|
1246
1327
|
return deserializeIntoPhone;
|
|
1247
1328
|
}
|
|
1248
|
-
/**
|
|
1249
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1250
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1251
|
-
* @returns {PhoneLookup_carrier}
|
|
1252
|
-
*/
|
|
1253
|
-
// @ts-ignore
|
|
1254
|
-
export function createPhoneLookup_carrierFromDiscriminatorValue(parseNode) {
|
|
1255
|
-
return deserializeIntoPhoneLookup_carrier;
|
|
1256
|
-
}
|
|
1257
|
-
/**
|
|
1258
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1259
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1260
|
-
* @returns {PhoneLookup_location}
|
|
1261
|
-
*/
|
|
1262
|
-
// @ts-ignore
|
|
1263
|
-
export function createPhoneLookup_locationFromDiscriminatorValue(parseNode) {
|
|
1264
|
-
return deserializeIntoPhoneLookup_location;
|
|
1265
|
-
}
|
|
1266
|
-
/**
|
|
1267
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1268
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1269
|
-
* @returns {PhoneLookupCarrier}
|
|
1270
|
-
*/
|
|
1271
|
-
// @ts-ignore
|
|
1272
|
-
export function createPhoneLookupCarrierFromDiscriminatorValue(parseNode) {
|
|
1273
|
-
return deserializeIntoPhoneLookupCarrier;
|
|
1274
|
-
}
|
|
1275
|
-
/**
|
|
1276
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1277
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1278
|
-
* @returns {PhoneLookup}
|
|
1279
|
-
*/
|
|
1280
|
-
// @ts-ignore
|
|
1281
|
-
export function createPhoneLookupFromDiscriminatorValue(parseNode) {
|
|
1282
|
-
return deserializeIntoPhoneLookup;
|
|
1283
|
-
}
|
|
1284
1329
|
/**
|
|
1285
1330
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1286
1331
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1362,15 +1407,6 @@ export function createPhoneNumberRequestFromDiscriminatorValue(parseNode) {
|
|
|
1362
1407
|
export function createPhoneNumberResponse_businessFromDiscriminatorValue(parseNode) {
|
|
1363
1408
|
return deserializeIntoPhoneNumberResponse_business;
|
|
1364
1409
|
}
|
|
1365
|
-
/**
|
|
1366
|
-
* Creates a new instance of the appropriate class based on discriminator value
|
|
1367
|
-
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1368
|
-
* @returns {PhoneNumberResponse_location}
|
|
1369
|
-
*/
|
|
1370
|
-
// @ts-ignore
|
|
1371
|
-
export function createPhoneNumberResponse_locationFromDiscriminatorValue(parseNode) {
|
|
1372
|
-
return deserializeIntoPhoneNumberResponse_location;
|
|
1373
|
-
}
|
|
1374
1410
|
/**
|
|
1375
1411
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1376
1412
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1767,6 +1803,15 @@ export function createTagResponseFromDiscriminatorValue(parseNode) {
|
|
|
1767
1803
|
export function createTagSummaryFromDiscriminatorValue(parseNode) {
|
|
1768
1804
|
return deserializeIntoTagSummary;
|
|
1769
1805
|
}
|
|
1806
|
+
/**
|
|
1807
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1808
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1809
|
+
* @returns {TelephonyLoginRequest_device}
|
|
1810
|
+
*/
|
|
1811
|
+
// @ts-ignore
|
|
1812
|
+
export function createTelephonyLoginRequest_deviceFromDiscriminatorValue(parseNode) {
|
|
1813
|
+
return deserializeIntoTelephonyLoginRequest_device;
|
|
1814
|
+
}
|
|
1770
1815
|
/**
|
|
1771
1816
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1772
1817
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1794,6 +1839,24 @@ export function createTelephonyLoginResponseFromDiscriminatorValue(parseNode) {
|
|
|
1794
1839
|
export function createTenDlcApplicationDraftFromDiscriminatorValue(parseNode) {
|
|
1795
1840
|
return deserializeIntoTenDlcApplicationDraft;
|
|
1796
1841
|
}
|
|
1842
|
+
/**
|
|
1843
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1844
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1845
|
+
* @returns {TransactionResponse_business}
|
|
1846
|
+
*/
|
|
1847
|
+
// @ts-ignore
|
|
1848
|
+
export function createTransactionResponse_businessFromDiscriminatorValue(parseNode) {
|
|
1849
|
+
return deserializeIntoTransactionResponse_business;
|
|
1850
|
+
}
|
|
1851
|
+
/**
|
|
1852
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1853
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1854
|
+
* @returns {TransactionResponse_lead}
|
|
1855
|
+
*/
|
|
1856
|
+
// @ts-ignore
|
|
1857
|
+
export function createTransactionResponse_leadFromDiscriminatorValue(parseNode) {
|
|
1858
|
+
return deserializeIntoTransactionResponse_lead;
|
|
1859
|
+
}
|
|
1797
1860
|
/**
|
|
1798
1861
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1799
1862
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1803,6 +1866,24 @@ export function createTenDlcApplicationDraftFromDiscriminatorValue(parseNode) {
|
|
|
1803
1866
|
export function createTransactionResponseFromDiscriminatorValue(parseNode) {
|
|
1804
1867
|
return deserializeIntoTransactionResponse;
|
|
1805
1868
|
}
|
|
1869
|
+
/**
|
|
1870
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1871
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1872
|
+
* @returns {TransactionTableRow_business}
|
|
1873
|
+
*/
|
|
1874
|
+
// @ts-ignore
|
|
1875
|
+
export function createTransactionTableRow_businessFromDiscriminatorValue(parseNode) {
|
|
1876
|
+
return deserializeIntoTransactionTableRow_business;
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1880
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1881
|
+
* @returns {TransactionTableRow_lead}
|
|
1882
|
+
*/
|
|
1883
|
+
// @ts-ignore
|
|
1884
|
+
export function createTransactionTableRow_leadFromDiscriminatorValue(parseNode) {
|
|
1885
|
+
return deserializeIntoTransactionTableRow_lead;
|
|
1886
|
+
}
|
|
1806
1887
|
/**
|
|
1807
1888
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1808
1889
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1830,6 +1911,33 @@ export function createTrustedFormCertificateFromDiscriminatorValue(parseNode) {
|
|
|
1830
1911
|
export function createUsageCounterLineFromDiscriminatorValue(parseNode) {
|
|
1831
1912
|
return deserializeIntoUsageCounterLine;
|
|
1832
1913
|
}
|
|
1914
|
+
/**
|
|
1915
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1916
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1917
|
+
* @returns {UsageLedgerTableRow_business}
|
|
1918
|
+
*/
|
|
1919
|
+
// @ts-ignore
|
|
1920
|
+
export function createUsageLedgerTableRow_businessFromDiscriminatorValue(parseNode) {
|
|
1921
|
+
return deserializeIntoUsageLedgerTableRow_business;
|
|
1922
|
+
}
|
|
1923
|
+
/**
|
|
1924
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1925
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1926
|
+
* @returns {UsageLedgerTableRow_lead}
|
|
1927
|
+
*/
|
|
1928
|
+
// @ts-ignore
|
|
1929
|
+
export function createUsageLedgerTableRow_leadFromDiscriminatorValue(parseNode) {
|
|
1930
|
+
return deserializeIntoUsageLedgerTableRow_lead;
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
1934
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
1935
|
+
* @returns {UsageLedgerTableRow_user}
|
|
1936
|
+
*/
|
|
1937
|
+
// @ts-ignore
|
|
1938
|
+
export function createUsageLedgerTableRow_userFromDiscriminatorValue(parseNode) {
|
|
1939
|
+
return deserializeIntoUsageLedgerTableRow_user;
|
|
1940
|
+
}
|
|
1833
1941
|
/**
|
|
1834
1942
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1835
1943
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -1938,6 +2046,15 @@ export function createUserRequest_notificationPreferencesFromDiscriminatorValue(
|
|
|
1938
2046
|
export function createUserRequestFromDiscriminatorValue(parseNode) {
|
|
1939
2047
|
return deserializeIntoUserRequest;
|
|
1940
2048
|
}
|
|
2049
|
+
/**
|
|
2050
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
2051
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
2052
|
+
* @returns {UserResponse_billingState}
|
|
2053
|
+
*/
|
|
2054
|
+
// @ts-ignore
|
|
2055
|
+
export function createUserResponse_billingStateFromDiscriminatorValue(parseNode) {
|
|
2056
|
+
return deserializeIntoUserResponse_billingState;
|
|
2057
|
+
}
|
|
1941
2058
|
/**
|
|
1942
2059
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
1943
2060
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -2022,7 +2139,7 @@ export function deserializeIntoActivationDomainOption(activationDomainOption = {
|
|
|
2022
2139
|
// @ts-ignore
|
|
2023
2140
|
export function deserializeIntoActivationTimelineEvent(activationTimelineEvent = {}) {
|
|
2024
2141
|
return {
|
|
2025
|
-
"
|
|
2142
|
+
"actor": n => { activationTimelineEvent.actor = n.getObjectValue(createActivationTimelineEvent_actorFromDiscriminatorValue); },
|
|
2026
2143
|
"createdAt": n => { activationTimelineEvent.createdAt = n.getDateValue(); },
|
|
2027
2144
|
"details": n => { activationTimelineEvent.details = n.getStringValue(); },
|
|
2028
2145
|
"failureReason": n => { activationTimelineEvent.failureReason = n.getStringValue(); },
|
|
@@ -2032,6 +2149,17 @@ export function deserializeIntoActivationTimelineEvent(activationTimelineEvent =
|
|
|
2032
2149
|
"type": n => { activationTimelineEvent.type = n.getStringValue(); },
|
|
2033
2150
|
};
|
|
2034
2151
|
}
|
|
2152
|
+
/**
|
|
2153
|
+
* The deserialization information for the current model
|
|
2154
|
+
* @param ActivationTimelineEvent_actor The instance to deserialize into.
|
|
2155
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2156
|
+
*/
|
|
2157
|
+
// @ts-ignore
|
|
2158
|
+
export function deserializeIntoActivationTimelineEvent_actor(activationTimelineEvent_actor = {}) {
|
|
2159
|
+
return {
|
|
2160
|
+
...deserializeIntoIdNamePair(activationTimelineEvent_actor),
|
|
2161
|
+
};
|
|
2162
|
+
}
|
|
2035
2163
|
/**
|
|
2036
2164
|
* The deserialization information for the current model
|
|
2037
2165
|
* @param AnalyticsComparison The instance to deserialize into.
|
|
@@ -2501,13 +2629,11 @@ export function deserializeIntoAutomationWorkflowEventResponse(automationWorkflo
|
|
|
2501
2629
|
export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowRunResponse = {}) {
|
|
2502
2630
|
return {
|
|
2503
2631
|
"actions": n => { automationWorkflowRunResponse.actions = n.getCollectionOfObjectValues(createAutomationWorkflowActionResponseFromDiscriminatorValue); },
|
|
2504
|
-
"
|
|
2505
|
-
"automationName": n => { automationWorkflowRunResponse.automationName = n.getStringValue(); },
|
|
2632
|
+
"automation": n => { automationWorkflowRunResponse.automation = n.getObjectValue(createAutomationWorkflowRunResponse_automationFromDiscriminatorValue); },
|
|
2506
2633
|
"businessId": n => { automationWorkflowRunResponse.businessId = n.getStringValue(); },
|
|
2507
2634
|
"cancelledAt": n => { automationWorkflowRunResponse.cancelledAt = n.getDateValue(); },
|
|
2508
2635
|
"completedAt": n => { automationWorkflowRunResponse.completedAt = n.getDateValue(); },
|
|
2509
|
-
"
|
|
2510
|
-
"currentStepName": n => { automationWorkflowRunResponse.currentStepName = n.getStringValue(); },
|
|
2636
|
+
"currentStep": n => { automationWorkflowRunResponse.currentStep = n.getObjectValue(createAutomationWorkflowRunResponse_currentStepFromDiscriminatorValue); },
|
|
2511
2637
|
"currentStepOrder": n => { automationWorkflowRunResponse.currentStepOrder = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
2512
2638
|
"events": n => { automationWorkflowRunResponse.events = n.getCollectionOfObjectValues(createAutomationWorkflowEventResponseFromDiscriminatorValue); },
|
|
2513
2639
|
"failedAt": n => { automationWorkflowRunResponse.failedAt = n.getDateValue(); },
|
|
@@ -2531,6 +2657,28 @@ export function deserializeIntoAutomationWorkflowRunResponse(automationWorkflowR
|
|
|
2531
2657
|
"updatedAt": n => { automationWorkflowRunResponse.updatedAt = n.getDateValue(); },
|
|
2532
2658
|
};
|
|
2533
2659
|
}
|
|
2660
|
+
/**
|
|
2661
|
+
* The deserialization information for the current model
|
|
2662
|
+
* @param AutomationWorkflowRunResponse_automation The instance to deserialize into.
|
|
2663
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2664
|
+
*/
|
|
2665
|
+
// @ts-ignore
|
|
2666
|
+
export function deserializeIntoAutomationWorkflowRunResponse_automation(automationWorkflowRunResponse_automation = {}) {
|
|
2667
|
+
return {
|
|
2668
|
+
...deserializeIntoIdNamePair(automationWorkflowRunResponse_automation),
|
|
2669
|
+
};
|
|
2670
|
+
}
|
|
2671
|
+
/**
|
|
2672
|
+
* The deserialization information for the current model
|
|
2673
|
+
* @param AutomationWorkflowRunResponse_currentStep The instance to deserialize into.
|
|
2674
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2675
|
+
*/
|
|
2676
|
+
// @ts-ignore
|
|
2677
|
+
export function deserializeIntoAutomationWorkflowRunResponse_currentStep(automationWorkflowRunResponse_currentStep = {}) {
|
|
2678
|
+
return {
|
|
2679
|
+
...deserializeIntoIdNamePair(automationWorkflowRunResponse_currentStep),
|
|
2680
|
+
};
|
|
2681
|
+
}
|
|
2534
2682
|
/**
|
|
2535
2683
|
* The deserialization information for the current model
|
|
2536
2684
|
* @param AutomationWorkflowStatusResponse The instance to deserialize into.
|
|
@@ -2599,6 +2747,36 @@ export function deserializeIntoBusinessActivationState_tenDlcDraft(businessActiv
|
|
|
2599
2747
|
...deserializeIntoTenDlcApplicationDraft(businessActivationState_tenDlcDraft),
|
|
2600
2748
|
};
|
|
2601
2749
|
}
|
|
2750
|
+
/**
|
|
2751
|
+
* The deserialization information for the current model
|
|
2752
|
+
* @param BusinessBillingState The instance to deserialize into.
|
|
2753
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2754
|
+
*/
|
|
2755
|
+
// @ts-ignore
|
|
2756
|
+
export function deserializeIntoBusinessBillingState(businessBillingState = {}) {
|
|
2757
|
+
return {
|
|
2758
|
+
"businessUserAssignedQuantity": n => { businessBillingState.businessUserAssignedQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
2759
|
+
"businessUserQuantity": n => { businessBillingState.businessUserQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
2760
|
+
"cancelAt": n => { businessBillingState.cancelAt = n.getDateValue(); },
|
|
2761
|
+
"dunning": n => { businessBillingState.dunning = n.getObjectValue(createBusinessBillingState_dunningFromDiscriminatorValue); },
|
|
2762
|
+
"hasPaymentMethod": n => { businessBillingState.hasPaymentMethod = n.getBooleanValue(); },
|
|
2763
|
+
"hasStripeCustomer": n => { businessBillingState.hasStripeCustomer = n.getBooleanValue(); },
|
|
2764
|
+
"lastPaymentMethodEventAt": n => { businessBillingState.lastPaymentMethodEventAt = n.getDateValue(); },
|
|
2765
|
+
"lastSubscriptionEventAt": n => { businessBillingState.lastSubscriptionEventAt = n.getDateValue(); },
|
|
2766
|
+
"phoneNumberQuantity": n => { businessBillingState.phoneNumberQuantity = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
2767
|
+
};
|
|
2768
|
+
}
|
|
2769
|
+
/**
|
|
2770
|
+
* The deserialization information for the current model
|
|
2771
|
+
* @param BusinessBillingState_dunning The instance to deserialize into.
|
|
2772
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2773
|
+
*/
|
|
2774
|
+
// @ts-ignore
|
|
2775
|
+
export function deserializeIntoBusinessBillingState_dunning(businessBillingState_dunning = {}) {
|
|
2776
|
+
return {
|
|
2777
|
+
...deserializeIntoBusinessDunningInfo(businessBillingState_dunning),
|
|
2778
|
+
};
|
|
2779
|
+
}
|
|
2602
2780
|
/**
|
|
2603
2781
|
* The deserialization information for the current model
|
|
2604
2782
|
* @param BusinessCompliancePolicy The instance to deserialize into.
|
|
@@ -2617,6 +2795,26 @@ export function deserializeIntoBusinessCompliancePolicy(businessCompliancePolicy
|
|
|
2617
2795
|
"requireTrustedFormForAutomations": n => { businessCompliancePolicy.requireTrustedFormForAutomations = n.getBooleanValue(); },
|
|
2618
2796
|
};
|
|
2619
2797
|
}
|
|
2798
|
+
/**
|
|
2799
|
+
* The deserialization information for the current model
|
|
2800
|
+
* @param BusinessDunningInfo The instance to deserialize into.
|
|
2801
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
2802
|
+
*/
|
|
2803
|
+
// @ts-ignore
|
|
2804
|
+
export function deserializeIntoBusinessDunningInfo(businessDunningInfo = {}) {
|
|
2805
|
+
return {
|
|
2806
|
+
"finalCancellationAt": n => { businessDunningInfo.finalCancellationAt = n.getDateValue(); },
|
|
2807
|
+
"gracePeriodEndsAt": n => { businessDunningInfo.gracePeriodEndsAt = n.getDateValue(); },
|
|
2808
|
+
"lastFailedInvoiceStatus": n => { businessDunningInfo.lastFailedInvoiceStatus = n.getStringValue(); },
|
|
2809
|
+
"lastUpdatedAt": n => { businessDunningInfo.lastUpdatedAt = n.getDateValue(); },
|
|
2810
|
+
"nextRetryAt": n => { businessDunningInfo.nextRetryAt = n.getDateValue(); },
|
|
2811
|
+
"outboundRestrictedAt": n => { businessDunningInfo.outboundRestrictedAt = n.getDateValue(); },
|
|
2812
|
+
"outboundSuspendedAt": n => { businessDunningInfo.outboundSuspendedAt = n.getDateValue(); },
|
|
2813
|
+
"paymentFailedAt": n => { businessDunningInfo.paymentFailedAt = n.getDateValue(); },
|
|
2814
|
+
"retryAttemptCount": n => { businessDunningInfo.retryAttemptCount = n.getNumberValue(); },
|
|
2815
|
+
"stage": n => { businessDunningInfo.stage = n.getStringValue(); },
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2620
2818
|
/**
|
|
2621
2819
|
* The deserialization information for the current model
|
|
2622
2820
|
* @param BusinessInvitationRequest The instance to deserialize into.
|
|
@@ -2638,8 +2836,7 @@ export function deserializeIntoBusinessInvitationRequest(businessInvitationReque
|
|
|
2638
2836
|
export function deserializeIntoBusinessInvitationResponse(businessInvitationResponse = {}) {
|
|
2639
2837
|
return {
|
|
2640
2838
|
"acceptedAt": n => { businessInvitationResponse.acceptedAt = n.getDateValue(); },
|
|
2641
|
-
"
|
|
2642
|
-
"businessName": n => { businessInvitationResponse.businessName = n.getStringValue(); },
|
|
2839
|
+
"business": n => { businessInvitationResponse.business = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
|
|
2643
2840
|
"createdAt": n => { businessInvitationResponse.createdAt = n.getDateValue(); },
|
|
2644
2841
|
"email": n => { businessInvitationResponse.email = n.getStringValue(); },
|
|
2645
2842
|
"expiresAt": n => { businessInvitationResponse.expiresAt = n.getDateValue(); },
|
|
@@ -2667,8 +2864,7 @@ export function deserializeIntoBusinessInvitationResponse(businessInvitationResp
|
|
|
2667
2864
|
export function deserializeIntoBusinessInvitationTableRow(businessInvitationTableRow = {}) {
|
|
2668
2865
|
return {
|
|
2669
2866
|
"acceptedAt": n => { businessInvitationTableRow.acceptedAt = n.getDateValue(); },
|
|
2670
|
-
"
|
|
2671
|
-
"businessName": n => { businessInvitationTableRow.businessName = n.getStringValue(); },
|
|
2867
|
+
"business": n => { businessInvitationTableRow.business = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
|
|
2672
2868
|
"createdAt": n => { businessInvitationTableRow.createdAt = n.getDateValue(); },
|
|
2673
2869
|
"email": n => { businessInvitationTableRow.email = n.getStringValue(); },
|
|
2674
2870
|
"expiresAt": n => { businessInvitationTableRow.expiresAt = n.getDateValue(); },
|
|
@@ -2777,6 +2973,7 @@ export function deserializeIntoBusinessResponse(businessResponse = {}) {
|
|
|
2777
2973
|
"billingAddress": n => { businessResponse.billingAddress = n.getObjectValue(createBusinessResponse_billingAddressFromDiscriminatorValue); },
|
|
2778
2974
|
"billingName": n => { businessResponse.billingName = n.getStringValue(); },
|
|
2779
2975
|
"billingPlan": n => { businessResponse.billingPlan = n.getEnumValue(BusinessResponse_billingPlanObject); },
|
|
2976
|
+
"billingState": n => { businessResponse.billingState = n.getObjectValue(createBusinessResponse_billingStateFromDiscriminatorValue); },
|
|
2780
2977
|
"compliancePolicy": n => { businessResponse.compliancePolicy = n.getObjectValue(createBusinessResponse_compliancePolicyFromDiscriminatorValue); },
|
|
2781
2978
|
"createdAt": n => { businessResponse.createdAt = n.getDateValue(); },
|
|
2782
2979
|
"description": n => { businessResponse.description = n.getStringValue(); },
|
|
@@ -2832,6 +3029,17 @@ export function deserializeIntoBusinessResponse_billingAddress(businessResponse_
|
|
|
2832
3029
|
...deserializeIntoStreetAddress(businessResponse_billingAddress),
|
|
2833
3030
|
};
|
|
2834
3031
|
}
|
|
3032
|
+
/**
|
|
3033
|
+
* The deserialization information for the current model
|
|
3034
|
+
* @param BusinessResponse_billingState The instance to deserialize into.
|
|
3035
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3036
|
+
*/
|
|
3037
|
+
// @ts-ignore
|
|
3038
|
+
export function deserializeIntoBusinessResponse_billingState(businessResponse_billingState = {}) {
|
|
3039
|
+
return {
|
|
3040
|
+
...deserializeIntoBusinessBillingState(businessResponse_billingState),
|
|
3041
|
+
};
|
|
3042
|
+
}
|
|
2835
3043
|
/**
|
|
2836
3044
|
* The deserialization information for the current model
|
|
2837
3045
|
* @param BusinessResponse_compliancePolicy The instance to deserialize into.
|
|
@@ -2925,8 +3133,7 @@ export function deserializeIntoBusinessTableRow(businessTableRow = {}) {
|
|
|
2925
3133
|
"apiKeyPreview": n => { businessTableRow.apiKeyPreview = n.getStringValue(); },
|
|
2926
3134
|
"apiKeyTotalUses": n => { businessTableRow.apiKeyTotalUses = n.getNumberValue(); },
|
|
2927
3135
|
"billingPlan": n => { businessTableRow.billingPlan = n.getEnumValue(BusinessTableRow_billingPlanObject); },
|
|
2928
|
-
"
|
|
2929
|
-
"businessName": n => { businessTableRow.businessName = n.getStringValue(); },
|
|
3136
|
+
"business": n => { businessTableRow.business = n.getObjectValue(createBusinessTableRow_businessFromDiscriminatorValue); },
|
|
2930
3137
|
"enabled": n => { businessTableRow.enabled = n.getBooleanValue(); },
|
|
2931
3138
|
"id": n => { businessTableRow.id = n.getStringValue(); },
|
|
2932
3139
|
"industry": n => { businessTableRow.industry = n.getStringValue(); },
|
|
@@ -2942,12 +3149,21 @@ export function deserializeIntoBusinessTableRow(businessTableRow = {}) {
|
|
|
2942
3149
|
"subscriptionStatus": n => { businessTableRow.subscriptionStatus = n.getEnumValue(BusinessTableRow_subscriptionStatusObject); },
|
|
2943
3150
|
"tenDlcStatus": n => { businessTableRow.tenDlcStatus = n.getEnumValue(BusinessTableRow_tenDlcStatusObject); },
|
|
2944
3151
|
"userCount": n => { businessTableRow.userCount = n.getNumberValue(); },
|
|
2945
|
-
"userId": n => { businessTableRow.userId = n.getStringValue(); },
|
|
2946
|
-
"userName": n => { businessTableRow.userName = n.getStringValue(); },
|
|
2947
3152
|
"website": n => { businessTableRow.website = n.getStringValue(); },
|
|
2948
3153
|
"websiteStatus": n => { businessTableRow.websiteStatus = n.getEnumValue(BusinessTableRow_websiteStatusObject); },
|
|
2949
3154
|
};
|
|
2950
3155
|
}
|
|
3156
|
+
/**
|
|
3157
|
+
* The deserialization information for the current model
|
|
3158
|
+
* @param BusinessTableRow_business The instance to deserialize into.
|
|
3159
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
3160
|
+
*/
|
|
3161
|
+
// @ts-ignore
|
|
3162
|
+
export function deserializeIntoBusinessTableRow_business(businessTableRow_business = {}) {
|
|
3163
|
+
return {
|
|
3164
|
+
...deserializeIntoIdNamePair(businessTableRow_business),
|
|
3165
|
+
};
|
|
3166
|
+
}
|
|
2951
3167
|
/**
|
|
2952
3168
|
* The deserialization information for the current model
|
|
2953
3169
|
* @param BusinessUserRequest The instance to deserialize into.
|
|
@@ -2999,9 +3215,8 @@ export function deserializeIntoBusinessUserTableRow(businessUserTableRow = {}) {
|
|
|
2999
3215
|
"licenseBillingStatus": n => { businessUserTableRow.licenseBillingStatus = n.getStringValue(); },
|
|
3000
3216
|
"licenseRenewalDate": n => { businessUserTableRow.licenseRenewalDate = n.getDateValue(); },
|
|
3001
3217
|
"role": n => { businessUserTableRow.role = n.getEnumValue(BusinessUserRoleObject); },
|
|
3218
|
+
"user": n => { businessUserTableRow.user = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
|
|
3002
3219
|
"userEmail": n => { businessUserTableRow.userEmail = n.getStringValue(); },
|
|
3003
|
-
"userId": n => { businessUserTableRow.userId = n.getStringValue(); },
|
|
3004
|
-
"userName": n => { businessUserTableRow.userName = n.getStringValue(); },
|
|
3005
3220
|
};
|
|
3006
3221
|
}
|
|
3007
3222
|
/**
|
|
@@ -3992,8 +4207,7 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
|
|
|
3992
4207
|
"archivedAt": n => { leadTableRow.archivedAt = n.getDateValue(); },
|
|
3993
4208
|
"archivedByUserId": n => { leadTableRow.archivedByUserId = n.getStringValue(); },
|
|
3994
4209
|
"archiveReason": n => { leadTableRow.archiveReason = n.getNumberValue(); },
|
|
3995
|
-
"
|
|
3996
|
-
"businessName": n => { leadTableRow.businessName = n.getStringValue(); },
|
|
4210
|
+
"business": n => { leadTableRow.business = n.getObjectValue(createLeadTableRow_businessFromDiscriminatorValue); },
|
|
3997
4211
|
"createdAt": n => { leadTableRow.createdAt = n.getDateValue(); },
|
|
3998
4212
|
"currentDisposition": n => { leadTableRow.currentDisposition = n.getObjectValue(createLeadTableRow_currentDispositionFromDiscriminatorValue); },
|
|
3999
4213
|
"email": n => { leadTableRow.email = n.getStringValue(); },
|
|
@@ -4004,14 +4218,24 @@ export function deserializeIntoLeadTableRow(leadTableRow = {}) {
|
|
|
4004
4218
|
"lastName": n => { leadTableRow.lastName = n.getStringValue(); },
|
|
4005
4219
|
"phone": n => { leadTableRow.phone = n.getStringValue(); },
|
|
4006
4220
|
"price": n => { leadTableRow.price = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
4007
|
-
"
|
|
4008
|
-
"sourceName": n => { leadTableRow.sourceName = n.getStringValue(); },
|
|
4221
|
+
"source": n => { leadTableRow.source = n.getObjectValue(createLeadTableRow_sourceFromDiscriminatorValue); },
|
|
4009
4222
|
"status": n => { leadTableRow.status = n.getStringValue(); },
|
|
4010
4223
|
"statusTone": n => { leadTableRow.statusTone = n.getStringValue(); },
|
|
4011
4224
|
"tags": n => { leadTableRow.tags = n.getCollectionOfObjectValues(createTagSummaryFromDiscriminatorValue); },
|
|
4012
4225
|
"updatedAt": n => { leadTableRow.updatedAt = n.getDateValue(); },
|
|
4013
4226
|
};
|
|
4014
4227
|
}
|
|
4228
|
+
/**
|
|
4229
|
+
* The deserialization information for the current model
|
|
4230
|
+
* @param LeadTableRow_business The instance to deserialize into.
|
|
4231
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4232
|
+
*/
|
|
4233
|
+
// @ts-ignore
|
|
4234
|
+
export function deserializeIntoLeadTableRow_business(leadTableRow_business = {}) {
|
|
4235
|
+
return {
|
|
4236
|
+
...deserializeIntoIdNamePair(leadTableRow_business),
|
|
4237
|
+
};
|
|
4238
|
+
}
|
|
4015
4239
|
/**
|
|
4016
4240
|
* The deserialization information for the current model
|
|
4017
4241
|
* @param LeadTableRow_currentDisposition The instance to deserialize into.
|
|
@@ -4023,6 +4247,17 @@ export function deserializeIntoLeadTableRow_currentDisposition(leadTableRow_curr
|
|
|
4023
4247
|
...deserializeIntoCurrentDispositionSummary(leadTableRow_currentDisposition),
|
|
4024
4248
|
};
|
|
4025
4249
|
}
|
|
4250
|
+
/**
|
|
4251
|
+
* The deserialization information for the current model
|
|
4252
|
+
* @param LeadTableRow_source The instance to deserialize into.
|
|
4253
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4254
|
+
*/
|
|
4255
|
+
// @ts-ignore
|
|
4256
|
+
export function deserializeIntoLeadTableRow_source(leadTableRow_source = {}) {
|
|
4257
|
+
return {
|
|
4258
|
+
...deserializeIntoIdNamePair(leadTableRow_source),
|
|
4259
|
+
};
|
|
4260
|
+
}
|
|
4026
4261
|
/**
|
|
4027
4262
|
* The deserialization information for the current model
|
|
4028
4263
|
* @param LeadTagsRequest The instance to deserialize into.
|
|
@@ -4044,8 +4279,7 @@ export function deserializeIntoLeadTagsRequest(leadTagsRequest = {}) {
|
|
|
4044
4279
|
// @ts-ignore
|
|
4045
4280
|
export function deserializeIntoMobileDevicePreferences(mobileDevicePreferences = {}) {
|
|
4046
4281
|
return {
|
|
4047
|
-
"
|
|
4048
|
-
"deviceName": n => { mobileDevicePreferences.deviceName = n.getStringValue(); },
|
|
4282
|
+
"device": n => { mobileDevicePreferences.device = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
|
|
4049
4283
|
"inboundPhoneCallsEnabled": n => { mobileDevicePreferences.inboundPhoneCallsEnabled = n.getBooleanValue(); },
|
|
4050
4284
|
"updatedAt": n => { mobileDevicePreferences.updatedAt = n.getDateValue(); },
|
|
4051
4285
|
};
|
|
@@ -4377,23 +4611,11 @@ export function deserializeIntoPagedResultOfUsageLedgerTableRow(pagedResultOfUsa
|
|
|
4377
4611
|
// @ts-ignore
|
|
4378
4612
|
export function deserializeIntoPhone(phone = {}) {
|
|
4379
4613
|
return {
|
|
4380
|
-
"lookup": n => { phone.lookup = n.getObjectValue(createPhone_lookupFromDiscriminatorValue); },
|
|
4381
4614
|
"number": n => { phone.number = n.getStringValue(); },
|
|
4382
4615
|
"phoneIdentityId": n => { phone.phoneIdentityId = n.getStringValue(); },
|
|
4383
4616
|
"type": n => { phone.type = n.getStringValue(); },
|
|
4384
4617
|
};
|
|
4385
4618
|
}
|
|
4386
|
-
/**
|
|
4387
|
-
* The deserialization information for the current model
|
|
4388
|
-
* @param Phone_lookup The instance to deserialize into.
|
|
4389
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4390
|
-
*/
|
|
4391
|
-
// @ts-ignore
|
|
4392
|
-
export function deserializeIntoPhone_lookup(phone_lookup = {}) {
|
|
4393
|
-
return {
|
|
4394
|
-
...deserializeIntoPhoneLookup(phone_lookup),
|
|
4395
|
-
};
|
|
4396
|
-
}
|
|
4397
4619
|
/**
|
|
4398
4620
|
* The deserialization information for the current model
|
|
4399
4621
|
* @param PhoneCallResponse The instance to deserialize into.
|
|
@@ -4429,62 +4651,6 @@ export function deserializeIntoPhoneCallResponse(phoneCallResponse = {}) {
|
|
|
4429
4651
|
"wasManuallyOverridden": n => { phoneCallResponse.wasManuallyOverridden = n.getBooleanValue(); },
|
|
4430
4652
|
};
|
|
4431
4653
|
}
|
|
4432
|
-
/**
|
|
4433
|
-
* The deserialization information for the current model
|
|
4434
|
-
* @param PhoneLookup The instance to deserialize into.
|
|
4435
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4436
|
-
*/
|
|
4437
|
-
// @ts-ignore
|
|
4438
|
-
export function deserializeIntoPhoneLookup(phoneLookup = {}) {
|
|
4439
|
-
return {
|
|
4440
|
-
"carrier": n => { phoneLookup.carrier = n.getObjectValue(createPhoneLookup_carrierFromDiscriminatorValue); },
|
|
4441
|
-
"createdAt": n => { phoneLookup.createdAt = n.getDateValue(); },
|
|
4442
|
-
"id": n => { phoneLookup.id = n.getStringValue(); },
|
|
4443
|
-
"isValid": n => { phoneLookup.isValid = n.getBooleanValue(); },
|
|
4444
|
-
"lineType": n => { phoneLookup.lineType = n.getEnumValue(PhoneLookup_lineTypeObject); },
|
|
4445
|
-
"location": n => { phoneLookup.location = n.getObjectValue(createPhoneLookup_locationFromDiscriminatorValue); },
|
|
4446
|
-
"modifiedAt": n => { phoneLookup.modifiedAt = n.getDateValue(); },
|
|
4447
|
-
"number": n => { phoneLookup.number = n.getStringValue(); },
|
|
4448
|
-
};
|
|
4449
|
-
}
|
|
4450
|
-
/**
|
|
4451
|
-
* The deserialization information for the current model
|
|
4452
|
-
* @param PhoneLookup_carrier The instance to deserialize into.
|
|
4453
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4454
|
-
*/
|
|
4455
|
-
// @ts-ignore
|
|
4456
|
-
export function deserializeIntoPhoneLookup_carrier(phoneLookup_carrier = {}) {
|
|
4457
|
-
return {
|
|
4458
|
-
...deserializeIntoPhoneLookupCarrier(phoneLookup_carrier),
|
|
4459
|
-
};
|
|
4460
|
-
}
|
|
4461
|
-
/**
|
|
4462
|
-
* The deserialization information for the current model
|
|
4463
|
-
* @param PhoneLookup_location The instance to deserialize into.
|
|
4464
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4465
|
-
*/
|
|
4466
|
-
// @ts-ignore
|
|
4467
|
-
export function deserializeIntoPhoneLookup_location(phoneLookup_location = {}) {
|
|
4468
|
-
return {
|
|
4469
|
-
...deserializeIntoPhoneNumberLocation(phoneLookup_location),
|
|
4470
|
-
};
|
|
4471
|
-
}
|
|
4472
|
-
/**
|
|
4473
|
-
* The deserialization information for the current model
|
|
4474
|
-
* @param PhoneLookupCarrier The instance to deserialize into.
|
|
4475
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4476
|
-
*/
|
|
4477
|
-
// @ts-ignore
|
|
4478
|
-
export function deserializeIntoPhoneLookupCarrier(phoneLookupCarrier = {}) {
|
|
4479
|
-
return {
|
|
4480
|
-
"errorCode": n => { phoneLookupCarrier.errorCode = n.getStringValue(); },
|
|
4481
|
-
"mobileCountryCode": n => { phoneLookupCarrier.mobileCountryCode = n.getStringValue(); },
|
|
4482
|
-
"mobileNetworkCode": n => { phoneLookupCarrier.mobileNetworkCode = n.getStringValue(); },
|
|
4483
|
-
"name": n => { phoneLookupCarrier.name = n.getStringValue(); },
|
|
4484
|
-
"normalizedCarrier": n => { phoneLookupCarrier.normalizedCarrier = n.getStringValue(); },
|
|
4485
|
-
"type": n => { phoneLookupCarrier.type = n.getEnumValue(PhoneLookupCarrier_typeObject); },
|
|
4486
|
-
};
|
|
4487
|
-
}
|
|
4488
4654
|
/**
|
|
4489
4655
|
* The deserialization information for the current model
|
|
4490
4656
|
* @param PhoneNumberAvailabilityRequest The instance to deserialize into.
|
|
@@ -4610,10 +4776,10 @@ export function deserializeIntoPhoneNumberResponse(phoneNumberResponse = {}) {
|
|
|
4610
4776
|
"enabled": n => { phoneNumberResponse.enabled = n.getBooleanValue(); },
|
|
4611
4777
|
"id": n => { phoneNumberResponse.id = n.getStringValue(); },
|
|
4612
4778
|
"leadpingOwned": n => { phoneNumberResponse.leadpingOwned = n.getBooleanValue(); },
|
|
4613
|
-
"location": n => { phoneNumberResponse.location = n.getObjectValue(createPhoneNumberResponse_locationFromDiscriminatorValue); },
|
|
4614
4779
|
"modifiedAt": n => { phoneNumberResponse.modifiedAt = n.getDateValue(); },
|
|
4615
4780
|
"name": n => { phoneNumberResponse.name = n.getStringValue(); },
|
|
4616
4781
|
"number": n => { phoneNumberResponse.number = n.getStringValue(); },
|
|
4782
|
+
"phoneIdentityId": n => { phoneNumberResponse.phoneIdentityId = n.getStringValue(); },
|
|
4617
4783
|
"routing": n => { phoneNumberResponse.routing = n.getObjectValue(createPhoneNumberRoutingMetadataFromDiscriminatorValue); },
|
|
4618
4784
|
"warmup": n => { phoneNumberResponse.warmup = n.getObjectValue(createPhoneNumberWarmupFromDiscriminatorValue); },
|
|
4619
4785
|
};
|
|
@@ -4629,17 +4795,6 @@ export function deserializeIntoPhoneNumberResponse_business(phoneNumberResponse_
|
|
|
4629
4795
|
...deserializeIntoIdNamePair(phoneNumberResponse_business),
|
|
4630
4796
|
};
|
|
4631
4797
|
}
|
|
4632
|
-
/**
|
|
4633
|
-
* The deserialization information for the current model
|
|
4634
|
-
* @param PhoneNumberResponse_location The instance to deserialize into.
|
|
4635
|
-
* @returns {Record<string, (node: ParseNode) => void>}
|
|
4636
|
-
*/
|
|
4637
|
-
// @ts-ignore
|
|
4638
|
-
export function deserializeIntoPhoneNumberResponse_location(phoneNumberResponse_location = {}) {
|
|
4639
|
-
return {
|
|
4640
|
-
...deserializeIntoPhoneNumberLocation(phoneNumberResponse_location),
|
|
4641
|
-
};
|
|
4642
|
-
}
|
|
4643
4798
|
/**
|
|
4644
4799
|
* The deserialization information for the current model
|
|
4645
4800
|
* @param PhoneNumberRoutingMetadata The instance to deserialize into.
|
|
@@ -4764,7 +4919,6 @@ export function deserializeIntoPhoneNumberTableRow(phoneNumberTableRow = {}) {
|
|
|
4764
4919
|
"businessId": n => { phoneNumberTableRow.businessId = n.getStringValue(); },
|
|
4765
4920
|
"enabled": n => { phoneNumberTableRow.enabled = n.getBooleanValue(); },
|
|
4766
4921
|
"id": n => { phoneNumberTableRow.id = n.getStringValue(); },
|
|
4767
|
-
"location": n => { phoneNumberTableRow.location = n.getStringValue(); },
|
|
4768
4922
|
"name": n => { phoneNumberTableRow.name = n.getStringValue(); },
|
|
4769
4923
|
"number": n => { phoneNumberTableRow.number = n.getStringValue(); },
|
|
4770
4924
|
"ownership": n => { phoneNumberTableRow.ownership = n.getStringValue(); },
|
|
@@ -4921,8 +5075,7 @@ export function deserializeIntoSmsEventTableRow(smsEventTableRow = {}) {
|
|
|
4921
5075
|
"fromPhoneNumberId": n => { smsEventTableRow.fromPhoneNumberId = n.getStringValue(); },
|
|
4922
5076
|
"id": n => { smsEventTableRow.id = n.getStringValue(); },
|
|
4923
5077
|
"isAutomated": n => { smsEventTableRow.isAutomated = n.getBooleanValue(); },
|
|
4924
|
-
"
|
|
4925
|
-
"leadName": n => { smsEventTableRow.leadName = n.getStringValue(); },
|
|
5078
|
+
"lead": n => { smsEventTableRow.lead = n.getObjectValue(createIdNamePairFromDiscriminatorValue); },
|
|
4926
5079
|
"outboundPhoneNumberId": n => { smsEventTableRow.outboundPhoneNumberId = n.getStringValue(); },
|
|
4927
5080
|
"outboundSource": n => { smsEventTableRow.outboundSource = n.getEnumValue(SmsEventTableRow_outboundSourceObject); },
|
|
4928
5081
|
"queuedAt": n => { smsEventTableRow.queuedAt = n.getDateValue(); },
|
|
@@ -5380,8 +5533,18 @@ export function deserializeIntoTagSummary(tagSummary = {}) {
|
|
|
5380
5533
|
// @ts-ignore
|
|
5381
5534
|
export function deserializeIntoTelephonyLoginRequest(telephonyLoginRequest = {}) {
|
|
5382
5535
|
return {
|
|
5383
|
-
"
|
|
5384
|
-
|
|
5536
|
+
"device": n => { telephonyLoginRequest.device = n.getObjectValue(createTelephonyLoginRequest_deviceFromDiscriminatorValue); },
|
|
5537
|
+
};
|
|
5538
|
+
}
|
|
5539
|
+
/**
|
|
5540
|
+
* The deserialization information for the current model
|
|
5541
|
+
* @param TelephonyLoginRequest_device The instance to deserialize into.
|
|
5542
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5543
|
+
*/
|
|
5544
|
+
// @ts-ignore
|
|
5545
|
+
export function deserializeIntoTelephonyLoginRequest_device(telephonyLoginRequest_device = {}) {
|
|
5546
|
+
return {
|
|
5547
|
+
...deserializeIntoIdNamePair(telephonyLoginRequest_device),
|
|
5385
5548
|
};
|
|
5386
5549
|
}
|
|
5387
5550
|
/**
|
|
@@ -5438,17 +5601,14 @@ export function deserializeIntoTenDlcApplicationDraft(tenDlcApplicationDraft = {
|
|
|
5438
5601
|
// @ts-ignore
|
|
5439
5602
|
export function deserializeIntoTransactionResponse(transactionResponse = {}) {
|
|
5440
5603
|
return {
|
|
5441
|
-
"accountName": n => { transactionResponse.accountName = n.getStringValue(); },
|
|
5442
5604
|
"amount": n => { transactionResponse.amount = n.getNumberValue(); },
|
|
5443
|
-
"
|
|
5444
|
-
"businessName": n => { transactionResponse.businessName = n.getStringValue(); },
|
|
5605
|
+
"business": n => { transactionResponse.business = n.getObjectValue(createTransactionResponse_businessFromDiscriminatorValue); },
|
|
5445
5606
|
"createdAt": n => { transactionResponse.createdAt = n.getDateValue(); },
|
|
5446
5607
|
"description": n => { transactionResponse.description = n.getStringValue(); },
|
|
5447
5608
|
"gatewayFeeAmount": n => { transactionResponse.gatewayFeeAmount = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
5448
5609
|
"gatewayStatus": n => { transactionResponse.gatewayStatus = n.getStringValue(); },
|
|
5449
5610
|
"id": n => { transactionResponse.id = n.getStringValue(); },
|
|
5450
|
-
"
|
|
5451
|
-
"leadName": n => { transactionResponse.leadName = n.getStringValue(); },
|
|
5611
|
+
"lead": n => { transactionResponse.lead = n.getObjectValue(createTransactionResponse_leadFromDiscriminatorValue); },
|
|
5452
5612
|
"modifiedAt": n => { transactionResponse.modifiedAt = n.getDateValue(); },
|
|
5453
5613
|
"netAmount": n => { transactionResponse.netAmount = n.getNumberValue(); },
|
|
5454
5614
|
"notes": n => { transactionResponse.notes = n.getStringValue(); },
|
|
@@ -5458,6 +5618,28 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
|
|
|
5458
5618
|
"transactionType": n => { transactionResponse.transactionType = n.getEnumValue(TransactionTypeObject); },
|
|
5459
5619
|
};
|
|
5460
5620
|
}
|
|
5621
|
+
/**
|
|
5622
|
+
* The deserialization information for the current model
|
|
5623
|
+
* @param TransactionResponse_business The instance to deserialize into.
|
|
5624
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5625
|
+
*/
|
|
5626
|
+
// @ts-ignore
|
|
5627
|
+
export function deserializeIntoTransactionResponse_business(transactionResponse_business = {}) {
|
|
5628
|
+
return {
|
|
5629
|
+
...deserializeIntoIdNamePair(transactionResponse_business),
|
|
5630
|
+
};
|
|
5631
|
+
}
|
|
5632
|
+
/**
|
|
5633
|
+
* The deserialization information for the current model
|
|
5634
|
+
* @param TransactionResponse_lead The instance to deserialize into.
|
|
5635
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5636
|
+
*/
|
|
5637
|
+
// @ts-ignore
|
|
5638
|
+
export function deserializeIntoTransactionResponse_lead(transactionResponse_lead = {}) {
|
|
5639
|
+
return {
|
|
5640
|
+
...deserializeIntoIdNamePair(transactionResponse_lead),
|
|
5641
|
+
};
|
|
5642
|
+
}
|
|
5461
5643
|
/**
|
|
5462
5644
|
* The deserialization information for the current model
|
|
5463
5645
|
* @param TransactionTableRow The instance to deserialize into.
|
|
@@ -5466,21 +5648,40 @@ export function deserializeIntoTransactionResponse(transactionResponse = {}) {
|
|
|
5466
5648
|
// @ts-ignore
|
|
5467
5649
|
export function deserializeIntoTransactionTableRow(transactionTableRow = {}) {
|
|
5468
5650
|
return {
|
|
5469
|
-
"accountName": n => { transactionTableRow.accountName = n.getStringValue(); },
|
|
5470
5651
|
"amount": n => { transactionTableRow.amount = n.getNumberValue(); },
|
|
5471
|
-
"
|
|
5472
|
-
"businessName": n => { transactionTableRow.businessName = n.getStringValue(); },
|
|
5652
|
+
"business": n => { transactionTableRow.business = n.getObjectValue(createTransactionTableRow_businessFromDiscriminatorValue); },
|
|
5473
5653
|
"createdAt": n => { transactionTableRow.createdAt = n.getDateValue(); },
|
|
5474
5654
|
"description": n => { transactionTableRow.description = n.getStringValue(); },
|
|
5475
5655
|
"id": n => { transactionTableRow.id = n.getStringValue(); },
|
|
5476
|
-
"
|
|
5477
|
-
"leadName": n => { transactionTableRow.leadName = n.getStringValue(); },
|
|
5656
|
+
"lead": n => { transactionTableRow.lead = n.getObjectValue(createTransactionTableRow_leadFromDiscriminatorValue); },
|
|
5478
5657
|
"netAmount": n => { transactionTableRow.netAmount = n.getNumberValue(); },
|
|
5479
5658
|
"paymentMethodDisplay": n => { transactionTableRow.paymentMethodDisplay = n.getStringValue(); },
|
|
5480
5659
|
"transactionStatus": n => { transactionTableRow.transactionStatus = n.getEnumValue(TransactionStatusObject); },
|
|
5481
5660
|
"transactionType": n => { transactionTableRow.transactionType = n.getEnumValue(TransactionTypeObject); },
|
|
5482
5661
|
};
|
|
5483
5662
|
}
|
|
5663
|
+
/**
|
|
5664
|
+
* The deserialization information for the current model
|
|
5665
|
+
* @param TransactionTableRow_business The instance to deserialize into.
|
|
5666
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5667
|
+
*/
|
|
5668
|
+
// @ts-ignore
|
|
5669
|
+
export function deserializeIntoTransactionTableRow_business(transactionTableRow_business = {}) {
|
|
5670
|
+
return {
|
|
5671
|
+
...deserializeIntoIdNamePair(transactionTableRow_business),
|
|
5672
|
+
};
|
|
5673
|
+
}
|
|
5674
|
+
/**
|
|
5675
|
+
* The deserialization information for the current model
|
|
5676
|
+
* @param TransactionTableRow_lead The instance to deserialize into.
|
|
5677
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5678
|
+
*/
|
|
5679
|
+
// @ts-ignore
|
|
5680
|
+
export function deserializeIntoTransactionTableRow_lead(transactionTableRow_lead = {}) {
|
|
5681
|
+
return {
|
|
5682
|
+
...deserializeIntoIdNamePair(transactionTableRow_lead),
|
|
5683
|
+
};
|
|
5684
|
+
}
|
|
5484
5685
|
/**
|
|
5485
5686
|
* The deserialization information for the current model
|
|
5486
5687
|
* @param TrustedFormCertificate The instance to deserialize into.
|
|
@@ -5512,33 +5713,63 @@ export function deserializeIntoUsageCounterLine(usageCounterLine = {}) {
|
|
|
5512
5713
|
}
|
|
5513
5714
|
/**
|
|
5514
5715
|
* The deserialization information for the current model
|
|
5515
|
-
* @param UsageLedgerTableRow The instance to deserialize into.
|
|
5716
|
+
* @param UsageLedgerTableRow The instance to deserialize into.
|
|
5717
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5718
|
+
*/
|
|
5719
|
+
// @ts-ignore
|
|
5720
|
+
export function deserializeIntoUsageLedgerTableRow(usageLedgerTableRow = {}) {
|
|
5721
|
+
return {
|
|
5722
|
+
"billableSeconds": n => { usageLedgerTableRow.billableSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
5723
|
+
"billableUnit": n => { usageLedgerTableRow.billableUnit = n.getEnumValue(BillableUnitObject); },
|
|
5724
|
+
"business": n => { usageLedgerTableRow.business = n.getObjectValue(createUsageLedgerTableRow_businessFromDiscriminatorValue); },
|
|
5725
|
+
"channel": n => { usageLedgerTableRow.channel = n.getEnumValue(UsageChannelObject); },
|
|
5726
|
+
"createdAt": n => { usageLedgerTableRow.createdAt = n.getDateValue(); },
|
|
5727
|
+
"customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getNumberValue(); },
|
|
5728
|
+
"description": n => { usageLedgerTableRow.description = n.getStringValue(); },
|
|
5729
|
+
"durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
5730
|
+
"id": n => { usageLedgerTableRow.id = n.getStringValue(); },
|
|
5731
|
+
"isBillable": n => { usageLedgerTableRow.isBillable = n.getBooleanValue(); },
|
|
5732
|
+
"lead": n => { usageLedgerTableRow.lead = n.getObjectValue(createUsageLedgerTableRow_leadFromDiscriminatorValue); },
|
|
5733
|
+
"phoneNumber": n => { usageLedgerTableRow.phoneNumber = n.getStringValue(); },
|
|
5734
|
+
"phoneNumberId": n => { usageLedgerTableRow.phoneNumberId = n.getStringValue(); },
|
|
5735
|
+
"quantity": n => { usageLedgerTableRow.quantity = n.getNumberValue(); },
|
|
5736
|
+
"smsSegments": n => { usageLedgerTableRow.smsSegments = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
5737
|
+
"status": n => { usageLedgerTableRow.status = n.getEnumValue(UsageRecordStatusObject); },
|
|
5738
|
+
"unitPrice": n => { usageLedgerTableRow.unitPrice = n.getNumberValue(); },
|
|
5739
|
+
"user": n => { usageLedgerTableRow.user = n.getObjectValue(createUsageLedgerTableRow_userFromDiscriminatorValue); },
|
|
5740
|
+
};
|
|
5741
|
+
}
|
|
5742
|
+
/**
|
|
5743
|
+
* The deserialization information for the current model
|
|
5744
|
+
* @param UsageLedgerTableRow_business The instance to deserialize into.
|
|
5745
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5746
|
+
*/
|
|
5747
|
+
// @ts-ignore
|
|
5748
|
+
export function deserializeIntoUsageLedgerTableRow_business(usageLedgerTableRow_business = {}) {
|
|
5749
|
+
return {
|
|
5750
|
+
...deserializeIntoIdNamePair(usageLedgerTableRow_business),
|
|
5751
|
+
};
|
|
5752
|
+
}
|
|
5753
|
+
/**
|
|
5754
|
+
* The deserialization information for the current model
|
|
5755
|
+
* @param UsageLedgerTableRow_lead The instance to deserialize into.
|
|
5756
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5757
|
+
*/
|
|
5758
|
+
// @ts-ignore
|
|
5759
|
+
export function deserializeIntoUsageLedgerTableRow_lead(usageLedgerTableRow_lead = {}) {
|
|
5760
|
+
return {
|
|
5761
|
+
...deserializeIntoIdNamePair(usageLedgerTableRow_lead),
|
|
5762
|
+
};
|
|
5763
|
+
}
|
|
5764
|
+
/**
|
|
5765
|
+
* The deserialization information for the current model
|
|
5766
|
+
* @param UsageLedgerTableRow_user The instance to deserialize into.
|
|
5516
5767
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
5517
5768
|
*/
|
|
5518
5769
|
// @ts-ignore
|
|
5519
|
-
export function
|
|
5770
|
+
export function deserializeIntoUsageLedgerTableRow_user(usageLedgerTableRow_user = {}) {
|
|
5520
5771
|
return {
|
|
5521
|
-
|
|
5522
|
-
"billableUnit": n => { usageLedgerTableRow.billableUnit = n.getEnumValue(BillableUnitObject); },
|
|
5523
|
-
"businessId": n => { usageLedgerTableRow.businessId = n.getStringValue(); },
|
|
5524
|
-
"businessName": n => { usageLedgerTableRow.businessName = n.getStringValue(); },
|
|
5525
|
-
"channel": n => { usageLedgerTableRow.channel = n.getEnumValue(UsageChannelObject); },
|
|
5526
|
-
"createdAt": n => { usageLedgerTableRow.createdAt = n.getDateValue(); },
|
|
5527
|
-
"customerChargeAmount": n => { usageLedgerTableRow.customerChargeAmount = n.getNumberValue(); },
|
|
5528
|
-
"description": n => { usageLedgerTableRow.description = n.getStringValue(); },
|
|
5529
|
-
"durationSeconds": n => { usageLedgerTableRow.durationSeconds = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
5530
|
-
"id": n => { usageLedgerTableRow.id = n.getStringValue(); },
|
|
5531
|
-
"isBillable": n => { usageLedgerTableRow.isBillable = n.getBooleanValue(); },
|
|
5532
|
-
"leadId": n => { usageLedgerTableRow.leadId = n.getStringValue(); },
|
|
5533
|
-
"leadName": n => { usageLedgerTableRow.leadName = n.getStringValue(); },
|
|
5534
|
-
"phoneNumber": n => { usageLedgerTableRow.phoneNumber = n.getStringValue(); },
|
|
5535
|
-
"phoneNumberId": n => { usageLedgerTableRow.phoneNumberId = n.getStringValue(); },
|
|
5536
|
-
"quantity": n => { usageLedgerTableRow.quantity = n.getNumberValue(); },
|
|
5537
|
-
"smsSegments": n => { usageLedgerTableRow.smsSegments = n.getObjectValue(createUntypedNodeFromDiscriminatorValue); },
|
|
5538
|
-
"status": n => { usageLedgerTableRow.status = n.getEnumValue(UsageRecordStatusObject); },
|
|
5539
|
-
"unitPrice": n => { usageLedgerTableRow.unitPrice = n.getNumberValue(); },
|
|
5540
|
-
"userId": n => { usageLedgerTableRow.userId = n.getStringValue(); },
|
|
5541
|
-
"userName": n => { usageLedgerTableRow.userName = n.getStringValue(); },
|
|
5772
|
+
...deserializeIntoIdNamePair(usageLedgerTableRow_user),
|
|
5542
5773
|
};
|
|
5543
5774
|
}
|
|
5544
5775
|
/**
|
|
@@ -5741,6 +5972,7 @@ export function deserializeIntoUserRequest_notificationPreferences(userRequest_n
|
|
|
5741
5972
|
export function deserializeIntoUserResponse(userResponse = {}) {
|
|
5742
5973
|
return {
|
|
5743
5974
|
"billingPlan": n => { userResponse.billingPlan = n.getEnumValue(UserResponse_billingPlanObject); },
|
|
5975
|
+
"billingState": n => { userResponse.billingState = n.getObjectValue(createUserResponse_billingStateFromDiscriminatorValue); },
|
|
5744
5976
|
"compliance": n => { userResponse.compliance = n.getObjectValue(createUserResponse_complianceFromDiscriminatorValue); },
|
|
5745
5977
|
"createdAt": n => { userResponse.createdAt = n.getDateValue(); },
|
|
5746
5978
|
"currentBusiness": n => { userResponse.currentBusiness = n.getObjectValue(createUserResponse_currentBusinessFromDiscriminatorValue); },
|
|
@@ -5763,6 +5995,17 @@ export function deserializeIntoUserResponse(userResponse = {}) {
|
|
|
5763
5995
|
"subscriptionStatus": n => { userResponse.subscriptionStatus = n.getEnumValue(UserResponse_subscriptionStatusObject); },
|
|
5764
5996
|
};
|
|
5765
5997
|
}
|
|
5998
|
+
/**
|
|
5999
|
+
* The deserialization information for the current model
|
|
6000
|
+
* @param UserResponse_billingState The instance to deserialize into.
|
|
6001
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
6002
|
+
*/
|
|
6003
|
+
// @ts-ignore
|
|
6004
|
+
export function deserializeIntoUserResponse_billingState(userResponse_billingState = {}) {
|
|
6005
|
+
return {
|
|
6006
|
+
...deserializeIntoBusinessBillingState(userResponse_billingState),
|
|
6007
|
+
};
|
|
6008
|
+
}
|
|
5766
6009
|
/**
|
|
5767
6010
|
* The deserialization information for the current model
|
|
5768
6011
|
* @param UserResponse_compliance The instance to deserialize into.
|
|
@@ -5872,7 +6115,7 @@ export function serializeActivationTimelineEvent(writer, activationTimelineEvent
|
|
|
5872
6115
|
if (!activationTimelineEvent || isSerializingDerivedType) {
|
|
5873
6116
|
return;
|
|
5874
6117
|
}
|
|
5875
|
-
writer.
|
|
6118
|
+
writer.writeObjectValue("actor", activationTimelineEvent.actor, serializeActivationTimelineEvent_actor);
|
|
5876
6119
|
writer.writeDateValue("createdAt", activationTimelineEvent.createdAt);
|
|
5877
6120
|
writer.writeStringValue("details", activationTimelineEvent.details);
|
|
5878
6121
|
writer.writeStringValue("failureReason", activationTimelineEvent.failureReason);
|
|
@@ -5882,6 +6125,19 @@ export function serializeActivationTimelineEvent(writer, activationTimelineEvent
|
|
|
5882
6125
|
writer.writeStringValue("type", activationTimelineEvent.type);
|
|
5883
6126
|
writer.writeAdditionalData(activationTimelineEvent.additionalData);
|
|
5884
6127
|
}
|
|
6128
|
+
/**
|
|
6129
|
+
* Serializes information the current object
|
|
6130
|
+
* @param ActivationTimelineEvent_actor The instance to serialize from.
|
|
6131
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
6132
|
+
* @param writer Serialization writer to use to serialize this model
|
|
6133
|
+
*/
|
|
6134
|
+
// @ts-ignore
|
|
6135
|
+
export function serializeActivationTimelineEvent_actor(writer, activationTimelineEvent_actor = {}, isSerializingDerivedType = false) {
|
|
6136
|
+
if (!activationTimelineEvent_actor || isSerializingDerivedType) {
|
|
6137
|
+
return;
|
|
6138
|
+
}
|
|
6139
|
+
serializeIdNamePair(writer, activationTimelineEvent_actor, isSerializingDerivedType);
|
|
6140
|
+
}
|
|
5885
6141
|
/**
|
|
5886
6142
|
* Serializes information the current object
|
|
5887
6143
|
* @param AnalyticsComparison The instance to serialize from.
|
|
@@ -6441,13 +6697,11 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
|
|
|
6441
6697
|
return;
|
|
6442
6698
|
}
|
|
6443
6699
|
writer.writeCollectionOfObjectValues("actions", automationWorkflowRunResponse.actions, serializeAutomationWorkflowActionResponse);
|
|
6444
|
-
writer.
|
|
6445
|
-
writer.writeStringValue("automationName", automationWorkflowRunResponse.automationName);
|
|
6700
|
+
writer.writeObjectValue("automation", automationWorkflowRunResponse.automation, serializeAutomationWorkflowRunResponse_automation);
|
|
6446
6701
|
writer.writeStringValue("businessId", automationWorkflowRunResponse.businessId);
|
|
6447
6702
|
writer.writeDateValue("cancelledAt", automationWorkflowRunResponse.cancelledAt);
|
|
6448
6703
|
writer.writeDateValue("completedAt", automationWorkflowRunResponse.completedAt);
|
|
6449
|
-
writer.
|
|
6450
|
-
writer.writeStringValue("currentStepName", automationWorkflowRunResponse.currentStepName);
|
|
6704
|
+
writer.writeObjectValue("currentStep", automationWorkflowRunResponse.currentStep, serializeAutomationWorkflowRunResponse_currentStep);
|
|
6451
6705
|
writer.writeObjectValue("currentStepOrder", automationWorkflowRunResponse.currentStepOrder);
|
|
6452
6706
|
writer.writeCollectionOfObjectValues("events", automationWorkflowRunResponse.events, serializeAutomationWorkflowEventResponse);
|
|
6453
6707
|
writer.writeDateValue("failedAt", automationWorkflowRunResponse.failedAt);
|
|
@@ -6471,6 +6725,32 @@ export function serializeAutomationWorkflowRunResponse(writer, automationWorkflo
|
|
|
6471
6725
|
writer.writeDateValue("updatedAt", automationWorkflowRunResponse.updatedAt);
|
|
6472
6726
|
writer.writeAdditionalData(automationWorkflowRunResponse.additionalData);
|
|
6473
6727
|
}
|
|
6728
|
+
/**
|
|
6729
|
+
* Serializes information the current object
|
|
6730
|
+
* @param AutomationWorkflowRunResponse_automation The instance to serialize from.
|
|
6731
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
6732
|
+
* @param writer Serialization writer to use to serialize this model
|
|
6733
|
+
*/
|
|
6734
|
+
// @ts-ignore
|
|
6735
|
+
export function serializeAutomationWorkflowRunResponse_automation(writer, automationWorkflowRunResponse_automation = {}, isSerializingDerivedType = false) {
|
|
6736
|
+
if (!automationWorkflowRunResponse_automation || isSerializingDerivedType) {
|
|
6737
|
+
return;
|
|
6738
|
+
}
|
|
6739
|
+
serializeIdNamePair(writer, automationWorkflowRunResponse_automation, isSerializingDerivedType);
|
|
6740
|
+
}
|
|
6741
|
+
/**
|
|
6742
|
+
* Serializes information the current object
|
|
6743
|
+
* @param AutomationWorkflowRunResponse_currentStep The instance to serialize from.
|
|
6744
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
6745
|
+
* @param writer Serialization writer to use to serialize this model
|
|
6746
|
+
*/
|
|
6747
|
+
// @ts-ignore
|
|
6748
|
+
export function serializeAutomationWorkflowRunResponse_currentStep(writer, automationWorkflowRunResponse_currentStep = {}, isSerializingDerivedType = false) {
|
|
6749
|
+
if (!automationWorkflowRunResponse_currentStep || isSerializingDerivedType) {
|
|
6750
|
+
return;
|
|
6751
|
+
}
|
|
6752
|
+
serializeIdNamePair(writer, automationWorkflowRunResponse_currentStep, isSerializingDerivedType);
|
|
6753
|
+
}
|
|
6474
6754
|
/**
|
|
6475
6755
|
* Serializes information the current object
|
|
6476
6756
|
* @param AutomationWorkflowStatusResponse The instance to serialize from.
|
|
@@ -6547,6 +6827,41 @@ export function serializeBusinessActivationState_tenDlcDraft(writer, businessAct
|
|
|
6547
6827
|
}
|
|
6548
6828
|
serializeTenDlcApplicationDraft(writer, businessActivationState_tenDlcDraft, isSerializingDerivedType);
|
|
6549
6829
|
}
|
|
6830
|
+
/**
|
|
6831
|
+
* Serializes information the current object
|
|
6832
|
+
* @param BusinessBillingState The instance to serialize from.
|
|
6833
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
6834
|
+
* @param writer Serialization writer to use to serialize this model
|
|
6835
|
+
*/
|
|
6836
|
+
// @ts-ignore
|
|
6837
|
+
export function serializeBusinessBillingState(writer, businessBillingState = {}, isSerializingDerivedType = false) {
|
|
6838
|
+
if (!businessBillingState || isSerializingDerivedType) {
|
|
6839
|
+
return;
|
|
6840
|
+
}
|
|
6841
|
+
writer.writeObjectValue("businessUserAssignedQuantity", businessBillingState.businessUserAssignedQuantity);
|
|
6842
|
+
writer.writeObjectValue("businessUserQuantity", businessBillingState.businessUserQuantity);
|
|
6843
|
+
writer.writeDateValue("cancelAt", businessBillingState.cancelAt);
|
|
6844
|
+
writer.writeObjectValue("dunning", businessBillingState.dunning, serializeBusinessBillingState_dunning);
|
|
6845
|
+
writer.writeBooleanValue("hasPaymentMethod", businessBillingState.hasPaymentMethod);
|
|
6846
|
+
writer.writeBooleanValue("hasStripeCustomer", businessBillingState.hasStripeCustomer);
|
|
6847
|
+
writer.writeDateValue("lastPaymentMethodEventAt", businessBillingState.lastPaymentMethodEventAt);
|
|
6848
|
+
writer.writeDateValue("lastSubscriptionEventAt", businessBillingState.lastSubscriptionEventAt);
|
|
6849
|
+
writer.writeObjectValue("phoneNumberQuantity", businessBillingState.phoneNumberQuantity);
|
|
6850
|
+
writer.writeAdditionalData(businessBillingState.additionalData);
|
|
6851
|
+
}
|
|
6852
|
+
/**
|
|
6853
|
+
* Serializes information the current object
|
|
6854
|
+
* @param BusinessBillingState_dunning The instance to serialize from.
|
|
6855
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
6856
|
+
* @param writer Serialization writer to use to serialize this model
|
|
6857
|
+
*/
|
|
6858
|
+
// @ts-ignore
|
|
6859
|
+
export function serializeBusinessBillingState_dunning(writer, businessBillingState_dunning = {}, isSerializingDerivedType = false) {
|
|
6860
|
+
if (!businessBillingState_dunning || isSerializingDerivedType) {
|
|
6861
|
+
return;
|
|
6862
|
+
}
|
|
6863
|
+
serializeBusinessDunningInfo(writer, businessBillingState_dunning, isSerializingDerivedType);
|
|
6864
|
+
}
|
|
6550
6865
|
/**
|
|
6551
6866
|
* Serializes information the current object
|
|
6552
6867
|
* @param BusinessCompliancePolicy The instance to serialize from.
|
|
@@ -6568,6 +6883,29 @@ export function serializeBusinessCompliancePolicy(writer, businessCompliancePoli
|
|
|
6568
6883
|
writer.writeBooleanValue("requireTrustedFormForAutomations", businessCompliancePolicy.requireTrustedFormForAutomations);
|
|
6569
6884
|
writer.writeAdditionalData(businessCompliancePolicy.additionalData);
|
|
6570
6885
|
}
|
|
6886
|
+
/**
|
|
6887
|
+
* Serializes information the current object
|
|
6888
|
+
* @param BusinessDunningInfo The instance to serialize from.
|
|
6889
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
6890
|
+
* @param writer Serialization writer to use to serialize this model
|
|
6891
|
+
*/
|
|
6892
|
+
// @ts-ignore
|
|
6893
|
+
export function serializeBusinessDunningInfo(writer, businessDunningInfo = {}, isSerializingDerivedType = false) {
|
|
6894
|
+
if (!businessDunningInfo || isSerializingDerivedType) {
|
|
6895
|
+
return;
|
|
6896
|
+
}
|
|
6897
|
+
writer.writeDateValue("finalCancellationAt", businessDunningInfo.finalCancellationAt);
|
|
6898
|
+
writer.writeDateValue("gracePeriodEndsAt", businessDunningInfo.gracePeriodEndsAt);
|
|
6899
|
+
writer.writeStringValue("lastFailedInvoiceStatus", businessDunningInfo.lastFailedInvoiceStatus);
|
|
6900
|
+
writer.writeDateValue("lastUpdatedAt", businessDunningInfo.lastUpdatedAt);
|
|
6901
|
+
writer.writeDateValue("nextRetryAt", businessDunningInfo.nextRetryAt);
|
|
6902
|
+
writer.writeDateValue("outboundRestrictedAt", businessDunningInfo.outboundRestrictedAt);
|
|
6903
|
+
writer.writeDateValue("outboundSuspendedAt", businessDunningInfo.outboundSuspendedAt);
|
|
6904
|
+
writer.writeDateValue("paymentFailedAt", businessDunningInfo.paymentFailedAt);
|
|
6905
|
+
writer.writeNumberValue("retryAttemptCount", businessDunningInfo.retryAttemptCount);
|
|
6906
|
+
writer.writeStringValue("stage", businessDunningInfo.stage);
|
|
6907
|
+
writer.writeAdditionalData(businessDunningInfo.additionalData);
|
|
6908
|
+
}
|
|
6571
6909
|
/**
|
|
6572
6910
|
* Serializes information the current object
|
|
6573
6911
|
* @param BusinessInvitationRequest The instance to serialize from.
|
|
@@ -6595,8 +6933,7 @@ export function serializeBusinessInvitationResponse(writer, businessInvitationRe
|
|
|
6595
6933
|
return;
|
|
6596
6934
|
}
|
|
6597
6935
|
writer.writeDateValue("acceptedAt", businessInvitationResponse.acceptedAt);
|
|
6598
|
-
writer.
|
|
6599
|
-
writer.writeStringValue("businessName", businessInvitationResponse.businessName);
|
|
6936
|
+
writer.writeObjectValue("business", businessInvitationResponse.business, serializeIdNamePair);
|
|
6600
6937
|
writer.writeDateValue("createdAt", businessInvitationResponse.createdAt);
|
|
6601
6938
|
writer.writeStringValue("email", businessInvitationResponse.email);
|
|
6602
6939
|
writer.writeDateValue("expiresAt", businessInvitationResponse.expiresAt);
|
|
@@ -6627,8 +6964,7 @@ export function serializeBusinessInvitationTableRow(writer, businessInvitationTa
|
|
|
6627
6964
|
return;
|
|
6628
6965
|
}
|
|
6629
6966
|
writer.writeDateValue("acceptedAt", businessInvitationTableRow.acceptedAt);
|
|
6630
|
-
writer.
|
|
6631
|
-
writer.writeStringValue("businessName", businessInvitationTableRow.businessName);
|
|
6967
|
+
writer.writeObjectValue("business", businessInvitationTableRow.business, serializeIdNamePair);
|
|
6632
6968
|
writer.writeDateValue("createdAt", businessInvitationTableRow.createdAt);
|
|
6633
6969
|
writer.writeStringValue("email", businessInvitationTableRow.email);
|
|
6634
6970
|
writer.writeDateValue("expiresAt", businessInvitationTableRow.expiresAt);
|
|
@@ -6751,6 +7087,7 @@ export function serializeBusinessResponse(writer, businessResponse = {}, isSeria
|
|
|
6751
7087
|
writer.writeObjectValue("billingAddress", businessResponse.billingAddress, serializeBusinessResponse_billingAddress);
|
|
6752
7088
|
writer.writeStringValue("billingName", businessResponse.billingName);
|
|
6753
7089
|
writer.writeEnumValue("billingPlan", businessResponse.billingPlan);
|
|
7090
|
+
writer.writeObjectValue("billingState", businessResponse.billingState, serializeBusinessResponse_billingState);
|
|
6754
7091
|
writer.writeObjectValue("compliancePolicy", businessResponse.compliancePolicy, serializeBusinessResponse_compliancePolicy);
|
|
6755
7092
|
writer.writeDateValue("createdAt", businessResponse.createdAt);
|
|
6756
7093
|
writer.writeStringValue("description", businessResponse.description);
|
|
@@ -6812,6 +7149,19 @@ export function serializeBusinessResponse_billingAddress(writer, businessRespons
|
|
|
6812
7149
|
}
|
|
6813
7150
|
serializeStreetAddress(writer, businessResponse_billingAddress, isSerializingDerivedType);
|
|
6814
7151
|
}
|
|
7152
|
+
/**
|
|
7153
|
+
* Serializes information the current object
|
|
7154
|
+
* @param BusinessResponse_billingState The instance to serialize from.
|
|
7155
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7156
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7157
|
+
*/
|
|
7158
|
+
// @ts-ignore
|
|
7159
|
+
export function serializeBusinessResponse_billingState(writer, businessResponse_billingState = {}, isSerializingDerivedType = false) {
|
|
7160
|
+
if (!businessResponse_billingState || isSerializingDerivedType) {
|
|
7161
|
+
return;
|
|
7162
|
+
}
|
|
7163
|
+
serializeBusinessBillingState(writer, businessResponse_billingState, isSerializingDerivedType);
|
|
7164
|
+
}
|
|
6815
7165
|
/**
|
|
6816
7166
|
* Serializes information the current object
|
|
6817
7167
|
* @param BusinessResponse_compliancePolicy The instance to serialize from.
|
|
@@ -6922,8 +7272,7 @@ export function serializeBusinessTableRow(writer, businessTableRow = {}, isSeria
|
|
|
6922
7272
|
writer.writeStringValue("apiKeyPreview", businessTableRow.apiKeyPreview);
|
|
6923
7273
|
writer.writeNumberValue("apiKeyTotalUses", businessTableRow.apiKeyTotalUses);
|
|
6924
7274
|
writer.writeEnumValue("billingPlan", businessTableRow.billingPlan);
|
|
6925
|
-
writer.
|
|
6926
|
-
writer.writeStringValue("businessName", businessTableRow.businessName);
|
|
7275
|
+
writer.writeObjectValue("business", businessTableRow.business, serializeBusinessTableRow_business);
|
|
6927
7276
|
writer.writeBooleanValue("enabled", businessTableRow.enabled);
|
|
6928
7277
|
writer.writeStringValue("id", businessTableRow.id);
|
|
6929
7278
|
writer.writeStringValue("industry", businessTableRow.industry);
|
|
@@ -6939,12 +7288,23 @@ export function serializeBusinessTableRow(writer, businessTableRow = {}, isSeria
|
|
|
6939
7288
|
writer.writeEnumValue("subscriptionStatus", businessTableRow.subscriptionStatus);
|
|
6940
7289
|
writer.writeEnumValue("tenDlcStatus", businessTableRow.tenDlcStatus);
|
|
6941
7290
|
writer.writeNumberValue("userCount", businessTableRow.userCount);
|
|
6942
|
-
writer.writeStringValue("userId", businessTableRow.userId);
|
|
6943
|
-
writer.writeStringValue("userName", businessTableRow.userName);
|
|
6944
7291
|
writer.writeStringValue("website", businessTableRow.website);
|
|
6945
7292
|
writer.writeEnumValue("websiteStatus", businessTableRow.websiteStatus);
|
|
6946
7293
|
writer.writeAdditionalData(businessTableRow.additionalData);
|
|
6947
7294
|
}
|
|
7295
|
+
/**
|
|
7296
|
+
* Serializes information the current object
|
|
7297
|
+
* @param BusinessTableRow_business The instance to serialize from.
|
|
7298
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
7299
|
+
* @param writer Serialization writer to use to serialize this model
|
|
7300
|
+
*/
|
|
7301
|
+
// @ts-ignore
|
|
7302
|
+
export function serializeBusinessTableRow_business(writer, businessTableRow_business = {}, isSerializingDerivedType = false) {
|
|
7303
|
+
if (!businessTableRow_business || isSerializingDerivedType) {
|
|
7304
|
+
return;
|
|
7305
|
+
}
|
|
7306
|
+
serializeIdNamePair(writer, businessTableRow_business, isSerializingDerivedType);
|
|
7307
|
+
}
|
|
6948
7308
|
/**
|
|
6949
7309
|
* Serializes information the current object
|
|
6950
7310
|
* @param BusinessUserRequest The instance to serialize from.
|
|
@@ -7005,9 +7365,8 @@ export function serializeBusinessUserTableRow(writer, businessUserTableRow = {},
|
|
|
7005
7365
|
writer.writeStringValue("licenseBillingStatus", businessUserTableRow.licenseBillingStatus);
|
|
7006
7366
|
writer.writeDateValue("licenseRenewalDate", businessUserTableRow.licenseRenewalDate);
|
|
7007
7367
|
writer.writeEnumValue("role", businessUserTableRow.role);
|
|
7368
|
+
writer.writeObjectValue("user", businessUserTableRow.user, serializeIdNamePair);
|
|
7008
7369
|
writer.writeStringValue("userEmail", businessUserTableRow.userEmail);
|
|
7009
|
-
writer.writeStringValue("userId", businessUserTableRow.userId);
|
|
7010
|
-
writer.writeStringValue("userName", businessUserTableRow.userName);
|
|
7011
7370
|
writer.writeAdditionalData(businessUserTableRow.additionalData);
|
|
7012
7371
|
}
|
|
7013
7372
|
/**
|
|
@@ -8150,8 +8509,7 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
|
|
|
8150
8509
|
writer.writeDateValue("archivedAt", leadTableRow.archivedAt);
|
|
8151
8510
|
writer.writeStringValue("archivedByUserId", leadTableRow.archivedByUserId);
|
|
8152
8511
|
writer.writeNumberValue("archiveReason", leadTableRow.archiveReason);
|
|
8153
|
-
writer.
|
|
8154
|
-
writer.writeStringValue("businessName", leadTableRow.businessName);
|
|
8512
|
+
writer.writeObjectValue("business", leadTableRow.business, serializeLeadTableRow_business);
|
|
8155
8513
|
writer.writeDateValue("createdAt", leadTableRow.createdAt);
|
|
8156
8514
|
writer.writeObjectValue("currentDisposition", leadTableRow.currentDisposition, serializeLeadTableRow_currentDisposition);
|
|
8157
8515
|
writer.writeStringValue("email", leadTableRow.email);
|
|
@@ -8162,14 +8520,26 @@ export function serializeLeadTableRow(writer, leadTableRow = {}, isSerializingDe
|
|
|
8162
8520
|
writer.writeStringValue("lastName", leadTableRow.lastName);
|
|
8163
8521
|
writer.writeStringValue("phone", leadTableRow.phone);
|
|
8164
8522
|
writer.writeObjectValue("price", leadTableRow.price);
|
|
8165
|
-
writer.
|
|
8166
|
-
writer.writeStringValue("sourceName", leadTableRow.sourceName);
|
|
8523
|
+
writer.writeObjectValue("source", leadTableRow.source, serializeLeadTableRow_source);
|
|
8167
8524
|
writer.writeStringValue("status", leadTableRow.status);
|
|
8168
8525
|
writer.writeStringValue("statusTone", leadTableRow.statusTone);
|
|
8169
8526
|
writer.writeCollectionOfObjectValues("tags", leadTableRow.tags, serializeTagSummary);
|
|
8170
8527
|
writer.writeDateValue("updatedAt", leadTableRow.updatedAt);
|
|
8171
8528
|
writer.writeAdditionalData(leadTableRow.additionalData);
|
|
8172
8529
|
}
|
|
8530
|
+
/**
|
|
8531
|
+
* Serializes information the current object
|
|
8532
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8533
|
+
* @param LeadTableRow_business The instance to serialize from.
|
|
8534
|
+
* @param writer Serialization writer to use to serialize this model
|
|
8535
|
+
*/
|
|
8536
|
+
// @ts-ignore
|
|
8537
|
+
export function serializeLeadTableRow_business(writer, leadTableRow_business = {}, isSerializingDerivedType = false) {
|
|
8538
|
+
if (!leadTableRow_business || isSerializingDerivedType) {
|
|
8539
|
+
return;
|
|
8540
|
+
}
|
|
8541
|
+
serializeIdNamePair(writer, leadTableRow_business, isSerializingDerivedType);
|
|
8542
|
+
}
|
|
8173
8543
|
/**
|
|
8174
8544
|
* Serializes information the current object
|
|
8175
8545
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -8183,6 +8553,19 @@ export function serializeLeadTableRow_currentDisposition(writer, leadTableRow_cu
|
|
|
8183
8553
|
}
|
|
8184
8554
|
serializeCurrentDispositionSummary(writer, leadTableRow_currentDisposition, isSerializingDerivedType);
|
|
8185
8555
|
}
|
|
8556
|
+
/**
|
|
8557
|
+
* Serializes information the current object
|
|
8558
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8559
|
+
* @param LeadTableRow_source The instance to serialize from.
|
|
8560
|
+
* @param writer Serialization writer to use to serialize this model
|
|
8561
|
+
*/
|
|
8562
|
+
// @ts-ignore
|
|
8563
|
+
export function serializeLeadTableRow_source(writer, leadTableRow_source = {}, isSerializingDerivedType = false) {
|
|
8564
|
+
if (!leadTableRow_source || isSerializingDerivedType) {
|
|
8565
|
+
return;
|
|
8566
|
+
}
|
|
8567
|
+
serializeIdNamePair(writer, leadTableRow_source, isSerializingDerivedType);
|
|
8568
|
+
}
|
|
8186
8569
|
/**
|
|
8187
8570
|
* Serializes information the current object
|
|
8188
8571
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -8210,8 +8593,7 @@ export function serializeMobileDevicePreferences(writer, mobileDevicePreferences
|
|
|
8210
8593
|
if (!mobileDevicePreferences || isSerializingDerivedType) {
|
|
8211
8594
|
return;
|
|
8212
8595
|
}
|
|
8213
|
-
writer.
|
|
8214
|
-
writer.writeStringValue("deviceName", mobileDevicePreferences.deviceName);
|
|
8596
|
+
writer.writeObjectValue("device", mobileDevicePreferences.device, serializeIdNamePair);
|
|
8215
8597
|
writer.writeBooleanValue("inboundPhoneCallsEnabled", mobileDevicePreferences.inboundPhoneCallsEnabled);
|
|
8216
8598
|
writer.writeDateValue("updatedAt", mobileDevicePreferences.updatedAt);
|
|
8217
8599
|
writer.writeAdditionalData(mobileDevicePreferences.additionalData);
|
|
@@ -8606,25 +8988,11 @@ export function serializePhone(writer, phone = {}, isSerializingDerivedType = fa
|
|
|
8606
8988
|
if (!phone || isSerializingDerivedType) {
|
|
8607
8989
|
return;
|
|
8608
8990
|
}
|
|
8609
|
-
writer.writeObjectValue("lookup", phone.lookup, serializePhone_lookup);
|
|
8610
8991
|
writer.writeStringValue("number", phone.number);
|
|
8611
8992
|
writer.writeStringValue("phoneIdentityId", phone.phoneIdentityId);
|
|
8612
8993
|
writer.writeStringValue("type", phone.type);
|
|
8613
8994
|
writer.writeAdditionalData(phone.additionalData);
|
|
8614
8995
|
}
|
|
8615
|
-
/**
|
|
8616
|
-
* Serializes information the current object
|
|
8617
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8618
|
-
* @param Phone_lookup The instance to serialize from.
|
|
8619
|
-
* @param writer Serialization writer to use to serialize this model
|
|
8620
|
-
*/
|
|
8621
|
-
// @ts-ignore
|
|
8622
|
-
export function serializePhone_lookup(writer, phone_lookup = {}, isSerializingDerivedType = false) {
|
|
8623
|
-
if (!phone_lookup || isSerializingDerivedType) {
|
|
8624
|
-
return;
|
|
8625
|
-
}
|
|
8626
|
-
serializePhoneLookup(writer, phone_lookup, isSerializingDerivedType);
|
|
8627
|
-
}
|
|
8628
8996
|
/**
|
|
8629
8997
|
* Serializes information the current object
|
|
8630
8998
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -8663,72 +9031,6 @@ export function serializePhoneCallResponse(writer, phoneCallResponse = {}, isSer
|
|
|
8663
9031
|
writer.writeBooleanValue("wasManuallyOverridden", phoneCallResponse.wasManuallyOverridden);
|
|
8664
9032
|
writer.writeAdditionalData(phoneCallResponse.additionalData);
|
|
8665
9033
|
}
|
|
8666
|
-
/**
|
|
8667
|
-
* Serializes information the current object
|
|
8668
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8669
|
-
* @param PhoneLookup The instance to serialize from.
|
|
8670
|
-
* @param writer Serialization writer to use to serialize this model
|
|
8671
|
-
*/
|
|
8672
|
-
// @ts-ignore
|
|
8673
|
-
export function serializePhoneLookup(writer, phoneLookup = {}, isSerializingDerivedType = false) {
|
|
8674
|
-
if (!phoneLookup || isSerializingDerivedType) {
|
|
8675
|
-
return;
|
|
8676
|
-
}
|
|
8677
|
-
writer.writeObjectValue("carrier", phoneLookup.carrier, serializePhoneLookup_carrier);
|
|
8678
|
-
writer.writeDateValue("createdAt", phoneLookup.createdAt);
|
|
8679
|
-
writer.writeStringValue("id", phoneLookup.id);
|
|
8680
|
-
writer.writeBooleanValue("isValid", phoneLookup.isValid);
|
|
8681
|
-
writer.writeEnumValue("lineType", phoneLookup.lineType);
|
|
8682
|
-
writer.writeObjectValue("location", phoneLookup.location, serializePhoneLookup_location);
|
|
8683
|
-
writer.writeDateValue("modifiedAt", phoneLookup.modifiedAt);
|
|
8684
|
-
writer.writeStringValue("number", phoneLookup.number);
|
|
8685
|
-
writer.writeAdditionalData(phoneLookup.additionalData);
|
|
8686
|
-
}
|
|
8687
|
-
/**
|
|
8688
|
-
* Serializes information the current object
|
|
8689
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8690
|
-
* @param PhoneLookup_carrier The instance to serialize from.
|
|
8691
|
-
* @param writer Serialization writer to use to serialize this model
|
|
8692
|
-
*/
|
|
8693
|
-
// @ts-ignore
|
|
8694
|
-
export function serializePhoneLookup_carrier(writer, phoneLookup_carrier = {}, isSerializingDerivedType = false) {
|
|
8695
|
-
if (!phoneLookup_carrier || isSerializingDerivedType) {
|
|
8696
|
-
return;
|
|
8697
|
-
}
|
|
8698
|
-
serializePhoneLookupCarrier(writer, phoneLookup_carrier, isSerializingDerivedType);
|
|
8699
|
-
}
|
|
8700
|
-
/**
|
|
8701
|
-
* Serializes information the current object
|
|
8702
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8703
|
-
* @param PhoneLookup_location The instance to serialize from.
|
|
8704
|
-
* @param writer Serialization writer to use to serialize this model
|
|
8705
|
-
*/
|
|
8706
|
-
// @ts-ignore
|
|
8707
|
-
export function serializePhoneLookup_location(writer, phoneLookup_location = {}, isSerializingDerivedType = false) {
|
|
8708
|
-
if (!phoneLookup_location || isSerializingDerivedType) {
|
|
8709
|
-
return;
|
|
8710
|
-
}
|
|
8711
|
-
serializePhoneNumberLocation(writer, phoneLookup_location, isSerializingDerivedType);
|
|
8712
|
-
}
|
|
8713
|
-
/**
|
|
8714
|
-
* Serializes information the current object
|
|
8715
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8716
|
-
* @param PhoneLookupCarrier The instance to serialize from.
|
|
8717
|
-
* @param writer Serialization writer to use to serialize this model
|
|
8718
|
-
*/
|
|
8719
|
-
// @ts-ignore
|
|
8720
|
-
export function serializePhoneLookupCarrier(writer, phoneLookupCarrier = {}, isSerializingDerivedType = false) {
|
|
8721
|
-
if (!phoneLookupCarrier || isSerializingDerivedType) {
|
|
8722
|
-
return;
|
|
8723
|
-
}
|
|
8724
|
-
writer.writeStringValue("errorCode", phoneLookupCarrier.errorCode);
|
|
8725
|
-
writer.writeStringValue("mobileCountryCode", phoneLookupCarrier.mobileCountryCode);
|
|
8726
|
-
writer.writeStringValue("mobileNetworkCode", phoneLookupCarrier.mobileNetworkCode);
|
|
8727
|
-
writer.writeStringValue("name", phoneLookupCarrier.name);
|
|
8728
|
-
writer.writeStringValue("normalizedCarrier", phoneLookupCarrier.normalizedCarrier);
|
|
8729
|
-
writer.writeEnumValue("type", phoneLookupCarrier.type);
|
|
8730
|
-
writer.writeAdditionalData(phoneLookupCarrier.additionalData);
|
|
8731
|
-
}
|
|
8732
9034
|
/**
|
|
8733
9035
|
* Serializes information the current object
|
|
8734
9036
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -8879,10 +9181,10 @@ export function serializePhoneNumberResponse(writer, phoneNumberResponse = {}, i
|
|
|
8879
9181
|
writer.writeBooleanValue("enabled", phoneNumberResponse.enabled);
|
|
8880
9182
|
writer.writeStringValue("id", phoneNumberResponse.id);
|
|
8881
9183
|
writer.writeBooleanValue("leadpingOwned", phoneNumberResponse.leadpingOwned);
|
|
8882
|
-
writer.writeObjectValue("location", phoneNumberResponse.location, serializePhoneNumberResponse_location);
|
|
8883
9184
|
writer.writeDateValue("modifiedAt", phoneNumberResponse.modifiedAt);
|
|
8884
9185
|
writer.writeStringValue("name", phoneNumberResponse.name);
|
|
8885
9186
|
writer.writeStringValue("number", phoneNumberResponse.number);
|
|
9187
|
+
writer.writeStringValue("phoneIdentityId", phoneNumberResponse.phoneIdentityId);
|
|
8886
9188
|
writer.writeObjectValue("routing", phoneNumberResponse.routing, serializePhoneNumberRoutingMetadata);
|
|
8887
9189
|
writer.writeObjectValue("warmup", phoneNumberResponse.warmup, serializePhoneNumberWarmup);
|
|
8888
9190
|
writer.writeAdditionalData(phoneNumberResponse.additionalData);
|
|
@@ -8900,19 +9202,6 @@ export function serializePhoneNumberResponse_business(writer, phoneNumberRespons
|
|
|
8900
9202
|
}
|
|
8901
9203
|
serializeIdNamePair(writer, phoneNumberResponse_business, isSerializingDerivedType);
|
|
8902
9204
|
}
|
|
8903
|
-
/**
|
|
8904
|
-
* Serializes information the current object
|
|
8905
|
-
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
8906
|
-
* @param PhoneNumberResponse_location The instance to serialize from.
|
|
8907
|
-
* @param writer Serialization writer to use to serialize this model
|
|
8908
|
-
*/
|
|
8909
|
-
// @ts-ignore
|
|
8910
|
-
export function serializePhoneNumberResponse_location(writer, phoneNumberResponse_location = {}, isSerializingDerivedType = false) {
|
|
8911
|
-
if (!phoneNumberResponse_location || isSerializingDerivedType) {
|
|
8912
|
-
return;
|
|
8913
|
-
}
|
|
8914
|
-
serializePhoneNumberLocation(writer, phoneNumberResponse_location, isSerializingDerivedType);
|
|
8915
|
-
}
|
|
8916
9205
|
/**
|
|
8917
9206
|
* Serializes information the current object
|
|
8918
9207
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9063,7 +9352,6 @@ export function serializePhoneNumberTableRow(writer, phoneNumberTableRow = {}, i
|
|
|
9063
9352
|
writer.writeStringValue("businessId", phoneNumberTableRow.businessId);
|
|
9064
9353
|
writer.writeBooleanValue("enabled", phoneNumberTableRow.enabled);
|
|
9065
9354
|
writer.writeStringValue("id", phoneNumberTableRow.id);
|
|
9066
|
-
writer.writeStringValue("location", phoneNumberTableRow.location);
|
|
9067
9355
|
writer.writeStringValue("name", phoneNumberTableRow.name);
|
|
9068
9356
|
writer.writeStringValue("number", phoneNumberTableRow.number);
|
|
9069
9357
|
writer.writeStringValue("ownership", phoneNumberTableRow.ownership);
|
|
@@ -9244,8 +9532,7 @@ export function serializeSmsEventTableRow(writer, smsEventTableRow = {}, isSeria
|
|
|
9244
9532
|
writer.writeStringValue("fromPhoneNumberId", smsEventTableRow.fromPhoneNumberId);
|
|
9245
9533
|
writer.writeStringValue("id", smsEventTableRow.id);
|
|
9246
9534
|
writer.writeBooleanValue("isAutomated", smsEventTableRow.isAutomated);
|
|
9247
|
-
writer.
|
|
9248
|
-
writer.writeStringValue("leadName", smsEventTableRow.leadName);
|
|
9535
|
+
writer.writeObjectValue("lead", smsEventTableRow.lead, serializeIdNamePair);
|
|
9249
9536
|
writer.writeStringValue("outboundPhoneNumberId", smsEventTableRow.outboundPhoneNumberId);
|
|
9250
9537
|
writer.writeEnumValue("outboundSource", smsEventTableRow.outboundSource);
|
|
9251
9538
|
writer.writeDateValue("queuedAt", smsEventTableRow.queuedAt);
|
|
@@ -9774,10 +10061,22 @@ export function serializeTelephonyLoginRequest(writer, telephonyLoginRequest = {
|
|
|
9774
10061
|
if (!telephonyLoginRequest || isSerializingDerivedType) {
|
|
9775
10062
|
return;
|
|
9776
10063
|
}
|
|
9777
|
-
writer.
|
|
9778
|
-
writer.writeStringValue("deviceName", telephonyLoginRequest.deviceName);
|
|
10064
|
+
writer.writeObjectValue("device", telephonyLoginRequest.device, serializeTelephonyLoginRequest_device);
|
|
9779
10065
|
writer.writeAdditionalData(telephonyLoginRequest.additionalData);
|
|
9780
10066
|
}
|
|
10067
|
+
/**
|
|
10068
|
+
* Serializes information the current object
|
|
10069
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10070
|
+
* @param TelephonyLoginRequest_device The instance to serialize from.
|
|
10071
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10072
|
+
*/
|
|
10073
|
+
// @ts-ignore
|
|
10074
|
+
export function serializeTelephonyLoginRequest_device(writer, telephonyLoginRequest_device = {}, isSerializingDerivedType = false) {
|
|
10075
|
+
if (!telephonyLoginRequest_device || isSerializingDerivedType) {
|
|
10076
|
+
return;
|
|
10077
|
+
}
|
|
10078
|
+
serializeIdNamePair(writer, telephonyLoginRequest_device, isSerializingDerivedType);
|
|
10079
|
+
}
|
|
9781
10080
|
/**
|
|
9782
10081
|
* Serializes information the current object
|
|
9783
10082
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9841,17 +10140,14 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
|
|
|
9841
10140
|
if (!transactionResponse || isSerializingDerivedType) {
|
|
9842
10141
|
return;
|
|
9843
10142
|
}
|
|
9844
|
-
writer.writeStringValue("accountName", transactionResponse.accountName);
|
|
9845
10143
|
writer.writeNumberValue("amount", transactionResponse.amount);
|
|
9846
|
-
writer.
|
|
9847
|
-
writer.writeStringValue("businessName", transactionResponse.businessName);
|
|
10144
|
+
writer.writeObjectValue("business", transactionResponse.business, serializeTransactionResponse_business);
|
|
9848
10145
|
writer.writeDateValue("createdAt", transactionResponse.createdAt);
|
|
9849
10146
|
writer.writeStringValue("description", transactionResponse.description);
|
|
9850
10147
|
writer.writeObjectValue("gatewayFeeAmount", transactionResponse.gatewayFeeAmount);
|
|
9851
10148
|
writer.writeStringValue("gatewayStatus", transactionResponse.gatewayStatus);
|
|
9852
10149
|
writer.writeStringValue("id", transactionResponse.id);
|
|
9853
|
-
writer.
|
|
9854
|
-
writer.writeStringValue("leadName", transactionResponse.leadName);
|
|
10150
|
+
writer.writeObjectValue("lead", transactionResponse.lead, serializeTransactionResponse_lead);
|
|
9855
10151
|
writer.writeDateValue("modifiedAt", transactionResponse.modifiedAt);
|
|
9856
10152
|
writer.writeNumberValue("netAmount", transactionResponse.netAmount);
|
|
9857
10153
|
writer.writeStringValue("notes", transactionResponse.notes);
|
|
@@ -9861,6 +10157,32 @@ export function serializeTransactionResponse(writer, transactionResponse = {}, i
|
|
|
9861
10157
|
writer.writeEnumValue("transactionType", transactionResponse.transactionType);
|
|
9862
10158
|
writer.writeAdditionalData(transactionResponse.additionalData);
|
|
9863
10159
|
}
|
|
10160
|
+
/**
|
|
10161
|
+
* Serializes information the current object
|
|
10162
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10163
|
+
* @param TransactionResponse_business The instance to serialize from.
|
|
10164
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10165
|
+
*/
|
|
10166
|
+
// @ts-ignore
|
|
10167
|
+
export function serializeTransactionResponse_business(writer, transactionResponse_business = {}, isSerializingDerivedType = false) {
|
|
10168
|
+
if (!transactionResponse_business || isSerializingDerivedType) {
|
|
10169
|
+
return;
|
|
10170
|
+
}
|
|
10171
|
+
serializeIdNamePair(writer, transactionResponse_business, isSerializingDerivedType);
|
|
10172
|
+
}
|
|
10173
|
+
/**
|
|
10174
|
+
* Serializes information the current object
|
|
10175
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10176
|
+
* @param TransactionResponse_lead The instance to serialize from.
|
|
10177
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10178
|
+
*/
|
|
10179
|
+
// @ts-ignore
|
|
10180
|
+
export function serializeTransactionResponse_lead(writer, transactionResponse_lead = {}, isSerializingDerivedType = false) {
|
|
10181
|
+
if (!transactionResponse_lead || isSerializingDerivedType) {
|
|
10182
|
+
return;
|
|
10183
|
+
}
|
|
10184
|
+
serializeIdNamePair(writer, transactionResponse_lead, isSerializingDerivedType);
|
|
10185
|
+
}
|
|
9864
10186
|
/**
|
|
9865
10187
|
* Serializes information the current object
|
|
9866
10188
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9872,21 +10194,44 @@ export function serializeTransactionTableRow(writer, transactionTableRow = {}, i
|
|
|
9872
10194
|
if (!transactionTableRow || isSerializingDerivedType) {
|
|
9873
10195
|
return;
|
|
9874
10196
|
}
|
|
9875
|
-
writer.writeStringValue("accountName", transactionTableRow.accountName);
|
|
9876
10197
|
writer.writeNumberValue("amount", transactionTableRow.amount);
|
|
9877
|
-
writer.
|
|
9878
|
-
writer.writeStringValue("businessName", transactionTableRow.businessName);
|
|
10198
|
+
writer.writeObjectValue("business", transactionTableRow.business, serializeTransactionTableRow_business);
|
|
9879
10199
|
writer.writeDateValue("createdAt", transactionTableRow.createdAt);
|
|
9880
10200
|
writer.writeStringValue("description", transactionTableRow.description);
|
|
9881
10201
|
writer.writeStringValue("id", transactionTableRow.id);
|
|
9882
|
-
writer.
|
|
9883
|
-
writer.writeStringValue("leadName", transactionTableRow.leadName);
|
|
10202
|
+
writer.writeObjectValue("lead", transactionTableRow.lead, serializeTransactionTableRow_lead);
|
|
9884
10203
|
writer.writeNumberValue("netAmount", transactionTableRow.netAmount);
|
|
9885
10204
|
writer.writeStringValue("paymentMethodDisplay", transactionTableRow.paymentMethodDisplay);
|
|
9886
10205
|
writer.writeEnumValue("transactionStatus", transactionTableRow.transactionStatus);
|
|
9887
10206
|
writer.writeEnumValue("transactionType", transactionTableRow.transactionType);
|
|
9888
10207
|
writer.writeAdditionalData(transactionTableRow.additionalData);
|
|
9889
10208
|
}
|
|
10209
|
+
/**
|
|
10210
|
+
* Serializes information the current object
|
|
10211
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10212
|
+
* @param TransactionTableRow_business The instance to serialize from.
|
|
10213
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10214
|
+
*/
|
|
10215
|
+
// @ts-ignore
|
|
10216
|
+
export function serializeTransactionTableRow_business(writer, transactionTableRow_business = {}, isSerializingDerivedType = false) {
|
|
10217
|
+
if (!transactionTableRow_business || isSerializingDerivedType) {
|
|
10218
|
+
return;
|
|
10219
|
+
}
|
|
10220
|
+
serializeIdNamePair(writer, transactionTableRow_business, isSerializingDerivedType);
|
|
10221
|
+
}
|
|
10222
|
+
/**
|
|
10223
|
+
* Serializes information the current object
|
|
10224
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10225
|
+
* @param TransactionTableRow_lead The instance to serialize from.
|
|
10226
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10227
|
+
*/
|
|
10228
|
+
// @ts-ignore
|
|
10229
|
+
export function serializeTransactionTableRow_lead(writer, transactionTableRow_lead = {}, isSerializingDerivedType = false) {
|
|
10230
|
+
if (!transactionTableRow_lead || isSerializingDerivedType) {
|
|
10231
|
+
return;
|
|
10232
|
+
}
|
|
10233
|
+
serializeIdNamePair(writer, transactionTableRow_lead, isSerializingDerivedType);
|
|
10234
|
+
}
|
|
9890
10235
|
/**
|
|
9891
10236
|
* Serializes information the current object
|
|
9892
10237
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -9935,8 +10280,7 @@ export function serializeUsageLedgerTableRow(writer, usageLedgerTableRow = {}, i
|
|
|
9935
10280
|
}
|
|
9936
10281
|
writer.writeObjectValue("billableSeconds", usageLedgerTableRow.billableSeconds);
|
|
9937
10282
|
writer.writeEnumValue("billableUnit", usageLedgerTableRow.billableUnit);
|
|
9938
|
-
writer.
|
|
9939
|
-
writer.writeStringValue("businessName", usageLedgerTableRow.businessName);
|
|
10283
|
+
writer.writeObjectValue("business", usageLedgerTableRow.business, serializeUsageLedgerTableRow_business);
|
|
9940
10284
|
writer.writeEnumValue("channel", usageLedgerTableRow.channel);
|
|
9941
10285
|
writer.writeDateValue("createdAt", usageLedgerTableRow.createdAt);
|
|
9942
10286
|
writer.writeNumberValue("customerChargeAmount", usageLedgerTableRow.customerChargeAmount);
|
|
@@ -9944,18 +10288,55 @@ export function serializeUsageLedgerTableRow(writer, usageLedgerTableRow = {}, i
|
|
|
9944
10288
|
writer.writeObjectValue("durationSeconds", usageLedgerTableRow.durationSeconds);
|
|
9945
10289
|
writer.writeStringValue("id", usageLedgerTableRow.id);
|
|
9946
10290
|
writer.writeBooleanValue("isBillable", usageLedgerTableRow.isBillable);
|
|
9947
|
-
writer.
|
|
9948
|
-
writer.writeStringValue("leadName", usageLedgerTableRow.leadName);
|
|
10291
|
+
writer.writeObjectValue("lead", usageLedgerTableRow.lead, serializeUsageLedgerTableRow_lead);
|
|
9949
10292
|
writer.writeStringValue("phoneNumber", usageLedgerTableRow.phoneNumber);
|
|
9950
10293
|
writer.writeStringValue("phoneNumberId", usageLedgerTableRow.phoneNumberId);
|
|
9951
10294
|
writer.writeNumberValue("quantity", usageLedgerTableRow.quantity);
|
|
9952
10295
|
writer.writeObjectValue("smsSegments", usageLedgerTableRow.smsSegments);
|
|
9953
10296
|
writer.writeEnumValue("status", usageLedgerTableRow.status);
|
|
9954
10297
|
writer.writeNumberValue("unitPrice", usageLedgerTableRow.unitPrice);
|
|
9955
|
-
writer.
|
|
9956
|
-
writer.writeStringValue("userName", usageLedgerTableRow.userName);
|
|
10298
|
+
writer.writeObjectValue("user", usageLedgerTableRow.user, serializeUsageLedgerTableRow_user);
|
|
9957
10299
|
writer.writeAdditionalData(usageLedgerTableRow.additionalData);
|
|
9958
10300
|
}
|
|
10301
|
+
/**
|
|
10302
|
+
* Serializes information the current object
|
|
10303
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10304
|
+
* @param UsageLedgerTableRow_business The instance to serialize from.
|
|
10305
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10306
|
+
*/
|
|
10307
|
+
// @ts-ignore
|
|
10308
|
+
export function serializeUsageLedgerTableRow_business(writer, usageLedgerTableRow_business = {}, isSerializingDerivedType = false) {
|
|
10309
|
+
if (!usageLedgerTableRow_business || isSerializingDerivedType) {
|
|
10310
|
+
return;
|
|
10311
|
+
}
|
|
10312
|
+
serializeIdNamePair(writer, usageLedgerTableRow_business, isSerializingDerivedType);
|
|
10313
|
+
}
|
|
10314
|
+
/**
|
|
10315
|
+
* Serializes information the current object
|
|
10316
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10317
|
+
* @param UsageLedgerTableRow_lead The instance to serialize from.
|
|
10318
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10319
|
+
*/
|
|
10320
|
+
// @ts-ignore
|
|
10321
|
+
export function serializeUsageLedgerTableRow_lead(writer, usageLedgerTableRow_lead = {}, isSerializingDerivedType = false) {
|
|
10322
|
+
if (!usageLedgerTableRow_lead || isSerializingDerivedType) {
|
|
10323
|
+
return;
|
|
10324
|
+
}
|
|
10325
|
+
serializeIdNamePair(writer, usageLedgerTableRow_lead, isSerializingDerivedType);
|
|
10326
|
+
}
|
|
10327
|
+
/**
|
|
10328
|
+
* Serializes information the current object
|
|
10329
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10330
|
+
* @param UsageLedgerTableRow_user The instance to serialize from.
|
|
10331
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10332
|
+
*/
|
|
10333
|
+
// @ts-ignore
|
|
10334
|
+
export function serializeUsageLedgerTableRow_user(writer, usageLedgerTableRow_user = {}, isSerializingDerivedType = false) {
|
|
10335
|
+
if (!usageLedgerTableRow_user || isSerializingDerivedType) {
|
|
10336
|
+
return;
|
|
10337
|
+
}
|
|
10338
|
+
serializeIdNamePair(writer, usageLedgerTableRow_user, isSerializingDerivedType);
|
|
10339
|
+
}
|
|
9959
10340
|
/**
|
|
9960
10341
|
* Serializes information the current object
|
|
9961
10342
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -10189,6 +10570,7 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
10189
10570
|
return;
|
|
10190
10571
|
}
|
|
10191
10572
|
writer.writeEnumValue("billingPlan", userResponse.billingPlan);
|
|
10573
|
+
writer.writeObjectValue("billingState", userResponse.billingState, serializeUserResponse_billingState);
|
|
10192
10574
|
writer.writeObjectValue("compliance", userResponse.compliance, serializeUserResponse_compliance);
|
|
10193
10575
|
writer.writeDateValue("createdAt", userResponse.createdAt);
|
|
10194
10576
|
writer.writeObjectValue("currentBusiness", userResponse.currentBusiness, serializeUserResponse_currentBusiness);
|
|
@@ -10211,6 +10593,19 @@ export function serializeUserResponse(writer, userResponse = {}, isSerializingDe
|
|
|
10211
10593
|
writer.writeEnumValue("subscriptionStatus", userResponse.subscriptionStatus);
|
|
10212
10594
|
writer.writeAdditionalData(userResponse.additionalData);
|
|
10213
10595
|
}
|
|
10596
|
+
/**
|
|
10597
|
+
* Serializes information the current object
|
|
10598
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
10599
|
+
* @param UserResponse_billingState The instance to serialize from.
|
|
10600
|
+
* @param writer Serialization writer to use to serialize this model
|
|
10601
|
+
*/
|
|
10602
|
+
// @ts-ignore
|
|
10603
|
+
export function serializeUserResponse_billingState(writer, userResponse_billingState = {}, isSerializingDerivedType = false) {
|
|
10604
|
+
if (!userResponse_billingState || isSerializingDerivedType) {
|
|
10605
|
+
return;
|
|
10606
|
+
}
|
|
10607
|
+
serializeBusinessBillingState(writer, userResponse_billingState, isSerializingDerivedType);
|
|
10608
|
+
}
|
|
10214
10609
|
/**
|
|
10215
10610
|
* Serializes information the current object
|
|
10216
10611
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -11046,34 +11441,6 @@ export const PhoneCallStatusObject = {
|
|
|
11046
11441
|
Blocked_permission: "blocked_permission",
|
|
11047
11442
|
Configuration_required: "configuration_required",
|
|
11048
11443
|
};
|
|
11049
|
-
/**
|
|
11050
|
-
* An enumerator describing phone line types
|
|
11051
|
-
*/
|
|
11052
|
-
export const PhoneLookup_lineTypeObject = {
|
|
11053
|
-
Wireline: "Wireline",
|
|
11054
|
-
Wireless: "Wireless",
|
|
11055
|
-
VoWiFi: "VoWiFi",
|
|
11056
|
-
VoIP: "VoIP",
|
|
11057
|
-
PrePaidWireless: "PrePaidWireless",
|
|
11058
|
-
Unknown: "Unknown",
|
|
11059
|
-
};
|
|
11060
|
-
/**
|
|
11061
|
-
* An enumerator describing carrier types
|
|
11062
|
-
*/
|
|
11063
|
-
export const PhoneLookupCarrier_typeObject = {
|
|
11064
|
-
FixedLine: "FixedLine",
|
|
11065
|
-
Mobile: "Mobile",
|
|
11066
|
-
Voip: "Voip",
|
|
11067
|
-
FixedLineOrMobile: "FixedLineOrMobile",
|
|
11068
|
-
TollFree: "TollFree",
|
|
11069
|
-
PremiumRate: "PremiumRate",
|
|
11070
|
-
SharedCost: "SharedCost",
|
|
11071
|
-
PersonalNumber: "PersonalNumber",
|
|
11072
|
-
Pager: "Pager",
|
|
11073
|
-
Uan: "Uan",
|
|
11074
|
-
Voicemail: "Voicemail",
|
|
11075
|
-
Unknown: "Unknown",
|
|
11076
|
-
};
|
|
11077
11444
|
/**
|
|
11078
11445
|
* Defines phone-number outbound health states used by pacing.
|
|
11079
11446
|
*/
|