@oppulence/stripe-sync-engine-sdk 1.10.9 → 1.14.9
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/README.md +43 -146
- package/dist/index.d.mts +4586 -2295
- package/dist/index.d.ts +4586 -2295
- package/dist/index.js +2740 -937
- package/dist/index.mjs +2542 -886
- package/package.json +30 -14
package/dist/index.mjs
CHANGED
|
@@ -1632,6 +1632,155 @@ function ApiV1RecurringTransactionsUpcomingGet200ResponseToJSON(value) {
|
|
|
1632
1632
|
};
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
|
+
// models/ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInner.ts
|
|
1636
|
+
function instanceOfApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInner(value) {
|
|
1637
|
+
if (!("amount" in value) || value["amount"] === void 0) return false;
|
|
1638
|
+
if (!("currency" in value) || value["currency"] === void 0) return false;
|
|
1639
|
+
if (!("description" in value) || value["description"] === void 0) return false;
|
|
1640
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
1641
|
+
return true;
|
|
1642
|
+
}
|
|
1643
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerFromJSON(json) {
|
|
1644
|
+
return ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerFromJSONTyped(
|
|
1645
|
+
json,
|
|
1646
|
+
false
|
|
1647
|
+
);
|
|
1648
|
+
}
|
|
1649
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1650
|
+
if (json == null) {
|
|
1651
|
+
return json;
|
|
1652
|
+
}
|
|
1653
|
+
return {
|
|
1654
|
+
amount: json["amount"],
|
|
1655
|
+
currency: json["currency"],
|
|
1656
|
+
description: json["description"],
|
|
1657
|
+
type: json["type"]
|
|
1658
|
+
};
|
|
1659
|
+
}
|
|
1660
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerToJSON(value) {
|
|
1661
|
+
if (value == null) {
|
|
1662
|
+
return value;
|
|
1663
|
+
}
|
|
1664
|
+
return {
|
|
1665
|
+
amount: value["amount"],
|
|
1666
|
+
currency: value["currency"],
|
|
1667
|
+
description: value["description"],
|
|
1668
|
+
type: value["type"]
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
// models/ApiV1StripeBalanceTransactionsGet200ResponseDataInner.ts
|
|
1673
|
+
var ApiV1StripeBalanceTransactionsGet200ResponseDataInnerObjectEnum = {
|
|
1674
|
+
BalanceTransaction: "balance_transaction"
|
|
1675
|
+
};
|
|
1676
|
+
function instanceOfApiV1StripeBalanceTransactionsGet200ResponseDataInner(value) {
|
|
1677
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
1678
|
+
if (!("object" in value) || value["object"] === void 0) return false;
|
|
1679
|
+
if (!("amount" in value) || value["amount"] === void 0) return false;
|
|
1680
|
+
if (!("available_on" in value) || value["available_on"] === void 0) return false;
|
|
1681
|
+
if (!("created" in value) || value["created"] === void 0) return false;
|
|
1682
|
+
if (!("currency" in value) || value["currency"] === void 0) return false;
|
|
1683
|
+
if (!("fee" in value) || value["fee"] === void 0) return false;
|
|
1684
|
+
if (!("fee_details" in value) || value["fee_details"] === void 0) return false;
|
|
1685
|
+
if (!("net" in value) || value["net"] === void 0) return false;
|
|
1686
|
+
if (!("reporting_category" in value) || value["reporting_category"] === void 0) return false;
|
|
1687
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
1688
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
1689
|
+
return true;
|
|
1690
|
+
}
|
|
1691
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSON(json) {
|
|
1692
|
+
return ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSONTyped(json, false);
|
|
1693
|
+
}
|
|
1694
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
1695
|
+
if (json == null) {
|
|
1696
|
+
return json;
|
|
1697
|
+
}
|
|
1698
|
+
return {
|
|
1699
|
+
id: json["id"],
|
|
1700
|
+
object: json["object"],
|
|
1701
|
+
amount: json["amount"],
|
|
1702
|
+
available_on: json["available_on"],
|
|
1703
|
+
created: json["created"],
|
|
1704
|
+
currency: json["currency"],
|
|
1705
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
1706
|
+
exchange_rate: json["exchange_rate"] == null ? void 0 : json["exchange_rate"],
|
|
1707
|
+
fee: json["fee"],
|
|
1708
|
+
fee_details: json["fee_details"].map(
|
|
1709
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerFromJSON
|
|
1710
|
+
),
|
|
1711
|
+
net: json["net"],
|
|
1712
|
+
reporting_category: json["reporting_category"],
|
|
1713
|
+
source: json["source"] == null ? void 0 : json["source"],
|
|
1714
|
+
status: json["status"],
|
|
1715
|
+
type: json["type"]
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseDataInnerToJSON(value) {
|
|
1719
|
+
if (value == null) {
|
|
1720
|
+
return value;
|
|
1721
|
+
}
|
|
1722
|
+
return {
|
|
1723
|
+
id: value["id"],
|
|
1724
|
+
object: value["object"],
|
|
1725
|
+
amount: value["amount"],
|
|
1726
|
+
available_on: value["available_on"],
|
|
1727
|
+
created: value["created"],
|
|
1728
|
+
currency: value["currency"],
|
|
1729
|
+
description: value["description"],
|
|
1730
|
+
exchange_rate: value["exchange_rate"],
|
|
1731
|
+
fee: value["fee"],
|
|
1732
|
+
fee_details: value["fee_details"].map(
|
|
1733
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerToJSON
|
|
1734
|
+
),
|
|
1735
|
+
net: value["net"],
|
|
1736
|
+
reporting_category: value["reporting_category"],
|
|
1737
|
+
source: value["source"],
|
|
1738
|
+
status: value["status"],
|
|
1739
|
+
type: value["type"]
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
// models/ApiV1StripeBalanceTransactionsGet200Response.ts
|
|
1744
|
+
var ApiV1StripeBalanceTransactionsGet200ResponseObjectEnum = {
|
|
1745
|
+
List: "list"
|
|
1746
|
+
};
|
|
1747
|
+
function instanceOfApiV1StripeBalanceTransactionsGet200Response(value) {
|
|
1748
|
+
if (!("object" in value) || value["object"] === void 0) return false;
|
|
1749
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
1750
|
+
if (!("has_more" in value) || value["has_more"] === void 0) return false;
|
|
1751
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
1752
|
+
return true;
|
|
1753
|
+
}
|
|
1754
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseFromJSON(json) {
|
|
1755
|
+
return ApiV1StripeBalanceTransactionsGet200ResponseFromJSONTyped(json, false);
|
|
1756
|
+
}
|
|
1757
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1758
|
+
if (json == null) {
|
|
1759
|
+
return json;
|
|
1760
|
+
}
|
|
1761
|
+
return {
|
|
1762
|
+
object: json["object"],
|
|
1763
|
+
data: json["data"].map(
|
|
1764
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSON
|
|
1765
|
+
),
|
|
1766
|
+
has_more: json["has_more"],
|
|
1767
|
+
url: json["url"]
|
|
1768
|
+
};
|
|
1769
|
+
}
|
|
1770
|
+
function ApiV1StripeBalanceTransactionsGet200ResponseToJSON(value) {
|
|
1771
|
+
if (value == null) {
|
|
1772
|
+
return value;
|
|
1773
|
+
}
|
|
1774
|
+
return {
|
|
1775
|
+
object: value["object"],
|
|
1776
|
+
data: value["data"].map(
|
|
1777
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerToJSON
|
|
1778
|
+
),
|
|
1779
|
+
has_more: value["has_more"],
|
|
1780
|
+
url: value["url"]
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1635
1784
|
// models/ApiV1StripeChargesByCurrencyGet200ResponseValInner.ts
|
|
1636
1785
|
function instanceOfApiV1StripeChargesByCurrencyGet200ResponseValInner(value) {
|
|
1637
1786
|
return true;
|
|
@@ -3152,6 +3301,141 @@ function ApiV1StripePaymentIntentsSummaryGet200ResponseToJSON(value) {
|
|
|
3152
3301
|
};
|
|
3153
3302
|
}
|
|
3154
3303
|
|
|
3304
|
+
// models/ApiV1StripePayoutsGet200ResponseDataInner.ts
|
|
3305
|
+
var ApiV1StripePayoutsGet200ResponseDataInnerObjectEnum = {
|
|
3306
|
+
Payout: "payout"
|
|
3307
|
+
};
|
|
3308
|
+
function instanceOfApiV1StripePayoutsGet200ResponseDataInner(value) {
|
|
3309
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3310
|
+
if (!("object" in value) || value["object"] === void 0) return false;
|
|
3311
|
+
if (!("amount" in value) || value["amount"] === void 0) return false;
|
|
3312
|
+
if (!("arrival_date" in value) || value["arrival_date"] === void 0) return false;
|
|
3313
|
+
if (!("automatic" in value) || value["automatic"] === void 0) return false;
|
|
3314
|
+
if (!("created" in value) || value["created"] === void 0) return false;
|
|
3315
|
+
if (!("currency" in value) || value["currency"] === void 0) return false;
|
|
3316
|
+
if (!("livemode" in value) || value["livemode"] === void 0) return false;
|
|
3317
|
+
if (!("metadata" in value) || value["metadata"] === void 0) return false;
|
|
3318
|
+
if (!("method" in value) || value["method"] === void 0) return false;
|
|
3319
|
+
if (!("source_type" in value) || value["source_type"] === void 0) return false;
|
|
3320
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
3321
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
3322
|
+
return true;
|
|
3323
|
+
}
|
|
3324
|
+
function ApiV1StripePayoutsGet200ResponseDataInnerFromJSON(json) {
|
|
3325
|
+
return ApiV1StripePayoutsGet200ResponseDataInnerFromJSONTyped(json, false);
|
|
3326
|
+
}
|
|
3327
|
+
function ApiV1StripePayoutsGet200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
3328
|
+
if (json == null) {
|
|
3329
|
+
return json;
|
|
3330
|
+
}
|
|
3331
|
+
return {
|
|
3332
|
+
id: json["id"],
|
|
3333
|
+
object: json["object"],
|
|
3334
|
+
amount: json["amount"],
|
|
3335
|
+
arrival_date: json["arrival_date"],
|
|
3336
|
+
automatic: json["automatic"],
|
|
3337
|
+
balance_transaction: json["balance_transaction"] == null ? void 0 : json["balance_transaction"],
|
|
3338
|
+
created: json["created"],
|
|
3339
|
+
currency: json["currency"],
|
|
3340
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
3341
|
+
destination: json["destination"] == null ? void 0 : json["destination"],
|
|
3342
|
+
failure_balance_transaction: json["failure_balance_transaction"] == null ? void 0 : json["failure_balance_transaction"],
|
|
3343
|
+
failure_code: json["failure_code"] == null ? void 0 : json["failure_code"],
|
|
3344
|
+
failure_message: json["failure_message"] == null ? void 0 : json["failure_message"],
|
|
3345
|
+
livemode: json["livemode"],
|
|
3346
|
+
metadata: json["metadata"],
|
|
3347
|
+
method: json["method"],
|
|
3348
|
+
original_payout: json["original_payout"] == null ? void 0 : json["original_payout"],
|
|
3349
|
+
reconciliation_status: json["reconciliation_status"] == null ? void 0 : json["reconciliation_status"],
|
|
3350
|
+
reversed_by: json["reversed_by"] == null ? void 0 : json["reversed_by"],
|
|
3351
|
+
source_type: json["source_type"],
|
|
3352
|
+
statement_descriptor: json["statement_descriptor"] == null ? void 0 : json["statement_descriptor"],
|
|
3353
|
+
status: json["status"],
|
|
3354
|
+
type: json["type"]
|
|
3355
|
+
};
|
|
3356
|
+
}
|
|
3357
|
+
function ApiV1StripePayoutsGet200ResponseDataInnerToJSON(value) {
|
|
3358
|
+
if (value == null) {
|
|
3359
|
+
return value;
|
|
3360
|
+
}
|
|
3361
|
+
return {
|
|
3362
|
+
id: value["id"],
|
|
3363
|
+
object: value["object"],
|
|
3364
|
+
amount: value["amount"],
|
|
3365
|
+
arrival_date: value["arrival_date"],
|
|
3366
|
+
automatic: value["automatic"],
|
|
3367
|
+
balance_transaction: value["balance_transaction"],
|
|
3368
|
+
created: value["created"],
|
|
3369
|
+
currency: value["currency"],
|
|
3370
|
+
description: value["description"],
|
|
3371
|
+
destination: value["destination"],
|
|
3372
|
+
failure_balance_transaction: value["failure_balance_transaction"],
|
|
3373
|
+
failure_code: value["failure_code"],
|
|
3374
|
+
failure_message: value["failure_message"],
|
|
3375
|
+
livemode: value["livemode"],
|
|
3376
|
+
metadata: value["metadata"],
|
|
3377
|
+
method: value["method"],
|
|
3378
|
+
original_payout: value["original_payout"],
|
|
3379
|
+
reconciliation_status: value["reconciliation_status"],
|
|
3380
|
+
reversed_by: value["reversed_by"],
|
|
3381
|
+
source_type: value["source_type"],
|
|
3382
|
+
statement_descriptor: value["statement_descriptor"],
|
|
3383
|
+
status: value["status"],
|
|
3384
|
+
type: value["type"]
|
|
3385
|
+
};
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
// models/ApiV1StripePayoutsGet200Response.ts
|
|
3389
|
+
var ApiV1StripePayoutsGet200ResponseObjectEnum = {
|
|
3390
|
+
List: "list"
|
|
3391
|
+
};
|
|
3392
|
+
function instanceOfApiV1StripePayoutsGet200Response(value) {
|
|
3393
|
+
if (!("object" in value) || value["object"] === void 0) return false;
|
|
3394
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
3395
|
+
if (!("has_more" in value) || value["has_more"] === void 0) return false;
|
|
3396
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
3397
|
+
return true;
|
|
3398
|
+
}
|
|
3399
|
+
function ApiV1StripePayoutsGet200ResponseFromJSON(json) {
|
|
3400
|
+
return ApiV1StripePayoutsGet200ResponseFromJSONTyped(json, false);
|
|
3401
|
+
}
|
|
3402
|
+
function ApiV1StripePayoutsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3403
|
+
if (json == null) {
|
|
3404
|
+
return json;
|
|
3405
|
+
}
|
|
3406
|
+
return {
|
|
3407
|
+
object: json["object"],
|
|
3408
|
+
data: json["data"].map(ApiV1StripePayoutsGet200ResponseDataInnerFromJSON),
|
|
3409
|
+
has_more: json["has_more"],
|
|
3410
|
+
url: json["url"]
|
|
3411
|
+
};
|
|
3412
|
+
}
|
|
3413
|
+
function ApiV1StripePayoutsGet200ResponseToJSON(value) {
|
|
3414
|
+
if (value == null) {
|
|
3415
|
+
return value;
|
|
3416
|
+
}
|
|
3417
|
+
return {
|
|
3418
|
+
object: value["object"],
|
|
3419
|
+
data: value["data"].map(ApiV1StripePayoutsGet200ResponseDataInnerToJSON),
|
|
3420
|
+
has_more: value["has_more"],
|
|
3421
|
+
url: value["url"]
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
// models/ApiV1StripePayoutsGetStatusParameter.ts
|
|
3426
|
+
function instanceOfApiV1StripePayoutsGetStatusParameter(value) {
|
|
3427
|
+
return true;
|
|
3428
|
+
}
|
|
3429
|
+
function ApiV1StripePayoutsGetStatusParameterFromJSON(json) {
|
|
3430
|
+
return ApiV1StripePayoutsGetStatusParameterFromJSONTyped(json, false);
|
|
3431
|
+
}
|
|
3432
|
+
function ApiV1StripePayoutsGetStatusParameterFromJSONTyped(json, ignoreDiscriminator) {
|
|
3433
|
+
return json;
|
|
3434
|
+
}
|
|
3435
|
+
function ApiV1StripePayoutsGetStatusParameterToJSON(value) {
|
|
3436
|
+
return value;
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3155
3439
|
// models/ApiV1StripePricesByTypeGet200ResponseValInner.ts
|
|
3156
3440
|
function instanceOfApiV1StripePricesByTypeGet200ResponseValInner(value) {
|
|
3157
3441
|
return true;
|
|
@@ -4220,717 +4504,1610 @@ function ApiV1StripeSubscriptionsTrialAnalysisGet200ResponseToJSON(value) {
|
|
|
4220
4504
|
};
|
|
4221
4505
|
}
|
|
4222
4506
|
|
|
4223
|
-
// models/
|
|
4224
|
-
function
|
|
4507
|
+
// models/ApiV1StripeTransactionsSummaryGet200ResponseTransfers.ts
|
|
4508
|
+
function instanceOfApiV1StripeTransactionsSummaryGet200ResponseTransfers(value) {
|
|
4509
|
+
if (!("total_count" in value) || value["total_count"] === void 0) return false;
|
|
4510
|
+
if (!("total_amount" in value) || value["total_amount"] === void 0) return false;
|
|
4511
|
+
if (!("total_reversed" in value) || value["total_reversed"] === void 0) return false;
|
|
4512
|
+
if (!("reversed_count" in value) || value["reversed_count"] === void 0) return false;
|
|
4225
4513
|
return true;
|
|
4226
4514
|
}
|
|
4227
|
-
function
|
|
4228
|
-
return
|
|
4515
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseTransfersFromJSON(json) {
|
|
4516
|
+
return ApiV1StripeTransactionsSummaryGet200ResponseTransfersFromJSONTyped(json, false);
|
|
4229
4517
|
}
|
|
4230
|
-
function
|
|
4518
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseTransfersFromJSONTyped(json, ignoreDiscriminator) {
|
|
4231
4519
|
if (json == null) {
|
|
4232
4520
|
return json;
|
|
4233
4521
|
}
|
|
4234
4522
|
return {
|
|
4235
|
-
|
|
4236
|
-
total_amount: json["total_amount"]
|
|
4237
|
-
|
|
4238
|
-
|
|
4523
|
+
total_count: json["total_count"],
|
|
4524
|
+
total_amount: json["total_amount"],
|
|
4525
|
+
total_reversed: json["total_reversed"],
|
|
4526
|
+
reversed_count: json["reversed_count"]
|
|
4239
4527
|
};
|
|
4240
4528
|
}
|
|
4241
|
-
function
|
|
4529
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseTransfersToJSON(value) {
|
|
4242
4530
|
if (value == null) {
|
|
4243
4531
|
return value;
|
|
4244
4532
|
}
|
|
4245
4533
|
return {
|
|
4246
|
-
|
|
4534
|
+
total_count: value["total_count"],
|
|
4247
4535
|
total_amount: value["total_amount"],
|
|
4248
|
-
|
|
4249
|
-
|
|
4536
|
+
total_reversed: value["total_reversed"],
|
|
4537
|
+
reversed_count: value["reversed_count"]
|
|
4250
4538
|
};
|
|
4251
4539
|
}
|
|
4252
4540
|
|
|
4253
|
-
// models/
|
|
4254
|
-
function
|
|
4541
|
+
// models/ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValue.ts
|
|
4542
|
+
function instanceOfApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValue(value) {
|
|
4543
|
+
if (!("count" in value) || value["count"] === void 0) return false;
|
|
4544
|
+
if (!("amount" in value) || value["amount"] === void 0) return false;
|
|
4255
4545
|
return true;
|
|
4256
4546
|
}
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4547
|
+
function ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueFromJSON(json) {
|
|
4548
|
+
return ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueFromJSONTyped(json, false);
|
|
4259
4549
|
}
|
|
4260
|
-
function
|
|
4550
|
+
function ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
4261
4551
|
if (json == null) {
|
|
4262
4552
|
return json;
|
|
4263
4553
|
}
|
|
4264
4554
|
return {
|
|
4265
|
-
|
|
4555
|
+
count: json["count"],
|
|
4556
|
+
amount: json["amount"]
|
|
4266
4557
|
};
|
|
4267
4558
|
}
|
|
4268
|
-
function
|
|
4559
|
+
function ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueToJSON(value) {
|
|
4269
4560
|
if (value == null) {
|
|
4270
4561
|
return value;
|
|
4271
4562
|
}
|
|
4272
4563
|
return {
|
|
4273
|
-
|
|
4564
|
+
count: value["count"],
|
|
4565
|
+
amount: value["amount"]
|
|
4274
4566
|
};
|
|
4275
4567
|
}
|
|
4276
4568
|
|
|
4277
|
-
// models/
|
|
4278
|
-
function
|
|
4569
|
+
// models/ApiV1StripeTransactionsSummaryGet200ResponsePayouts.ts
|
|
4570
|
+
function instanceOfApiV1StripeTransactionsSummaryGet200ResponsePayouts(value) {
|
|
4571
|
+
if (!("total_count" in value) || value["total_count"] === void 0) return false;
|
|
4572
|
+
if (!("total_amount" in value) || value["total_amount"] === void 0) return false;
|
|
4573
|
+
if (!("by_status" in value) || value["by_status"] === void 0) return false;
|
|
4279
4574
|
return true;
|
|
4280
4575
|
}
|
|
4281
|
-
function
|
|
4282
|
-
return
|
|
4576
|
+
function ApiV1StripeTransactionsSummaryGet200ResponsePayoutsFromJSON(json) {
|
|
4577
|
+
return ApiV1StripeTransactionsSummaryGet200ResponsePayoutsFromJSONTyped(json, false);
|
|
4283
4578
|
}
|
|
4284
|
-
function
|
|
4579
|
+
function ApiV1StripeTransactionsSummaryGet200ResponsePayoutsFromJSONTyped(json, ignoreDiscriminator) {
|
|
4285
4580
|
if (json == null) {
|
|
4286
4581
|
return json;
|
|
4287
4582
|
}
|
|
4288
4583
|
return {
|
|
4289
|
-
|
|
4290
|
-
total_amount: json["total_amount"]
|
|
4291
|
-
|
|
4292
|
-
|
|
4584
|
+
total_count: json["total_count"],
|
|
4585
|
+
total_amount: json["total_amount"],
|
|
4586
|
+
by_status: mapValues(
|
|
4587
|
+
json["by_status"],
|
|
4588
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueFromJSON
|
|
4589
|
+
)
|
|
4293
4590
|
};
|
|
4294
4591
|
}
|
|
4295
|
-
function
|
|
4592
|
+
function ApiV1StripeTransactionsSummaryGet200ResponsePayoutsToJSON(value) {
|
|
4296
4593
|
if (value == null) {
|
|
4297
4594
|
return value;
|
|
4298
4595
|
}
|
|
4299
4596
|
return {
|
|
4300
|
-
|
|
4597
|
+
total_count: value["total_count"],
|
|
4301
4598
|
total_amount: value["total_amount"],
|
|
4302
|
-
|
|
4303
|
-
|
|
4599
|
+
by_status: mapValues(
|
|
4600
|
+
value["by_status"],
|
|
4601
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueToJSON
|
|
4602
|
+
)
|
|
4304
4603
|
};
|
|
4305
4604
|
}
|
|
4306
4605
|
|
|
4307
|
-
// models/
|
|
4308
|
-
function
|
|
4606
|
+
// models/ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValue.ts
|
|
4607
|
+
function instanceOfApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValue(value) {
|
|
4608
|
+
if (!("count" in value) || value["count"] === void 0) return false;
|
|
4609
|
+
if (!("amount" in value) || value["amount"] === void 0) return false;
|
|
4610
|
+
if (!("fees" in value) || value["fees"] === void 0) return false;
|
|
4611
|
+
if (!("net" in value) || value["net"] === void 0) return false;
|
|
4309
4612
|
return true;
|
|
4310
4613
|
}
|
|
4311
|
-
function
|
|
4312
|
-
return
|
|
4614
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueFromJSON(json) {
|
|
4615
|
+
return ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueFromJSONTyped(
|
|
4616
|
+
json,
|
|
4617
|
+
false
|
|
4618
|
+
);
|
|
4313
4619
|
}
|
|
4314
|
-
function
|
|
4620
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
4315
4621
|
if (json == null) {
|
|
4316
4622
|
return json;
|
|
4317
4623
|
}
|
|
4318
4624
|
return {
|
|
4319
|
-
|
|
4625
|
+
count: json["count"],
|
|
4626
|
+
amount: json["amount"],
|
|
4627
|
+
fees: json["fees"],
|
|
4628
|
+
net: json["net"]
|
|
4320
4629
|
};
|
|
4321
4630
|
}
|
|
4322
|
-
function
|
|
4631
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueToJSON(value) {
|
|
4323
4632
|
if (value == null) {
|
|
4324
4633
|
return value;
|
|
4325
4634
|
}
|
|
4326
4635
|
return {
|
|
4327
|
-
|
|
4636
|
+
count: value["count"],
|
|
4637
|
+
amount: value["amount"],
|
|
4638
|
+
fees: value["fees"],
|
|
4639
|
+
net: value["net"]
|
|
4328
4640
|
};
|
|
4329
4641
|
}
|
|
4330
4642
|
|
|
4331
|
-
// models/
|
|
4332
|
-
function
|
|
4643
|
+
// models/ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactions.ts
|
|
4644
|
+
function instanceOfApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactions(value) {
|
|
4645
|
+
if (!("total_count" in value) || value["total_count"] === void 0) return false;
|
|
4646
|
+
if (!("total_amount" in value) || value["total_amount"] === void 0) return false;
|
|
4647
|
+
if (!("total_fees" in value) || value["total_fees"] === void 0) return false;
|
|
4648
|
+
if (!("total_net" in value) || value["total_net"] === void 0) return false;
|
|
4649
|
+
if (!("by_type" in value) || value["by_type"] === void 0) return false;
|
|
4333
4650
|
return true;
|
|
4334
4651
|
}
|
|
4335
|
-
function
|
|
4336
|
-
return
|
|
4652
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsFromJSON(json) {
|
|
4653
|
+
return ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsFromJSONTyped(json, false);
|
|
4337
4654
|
}
|
|
4338
|
-
function
|
|
4655
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
4339
4656
|
if (json == null) {
|
|
4340
4657
|
return json;
|
|
4341
4658
|
}
|
|
4342
4659
|
return {
|
|
4343
|
-
|
|
4344
|
-
total_amount: json["total_amount"]
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4660
|
+
total_count: json["total_count"],
|
|
4661
|
+
total_amount: json["total_amount"],
|
|
4662
|
+
total_fees: json["total_fees"],
|
|
4663
|
+
total_net: json["total_net"],
|
|
4664
|
+
by_type: mapValues(
|
|
4665
|
+
json["by_type"],
|
|
4666
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueFromJSON
|
|
4667
|
+
)
|
|
4348
4668
|
};
|
|
4349
4669
|
}
|
|
4350
|
-
function
|
|
4670
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsToJSON(value) {
|
|
4351
4671
|
if (value == null) {
|
|
4352
4672
|
return value;
|
|
4353
4673
|
}
|
|
4354
4674
|
return {
|
|
4355
|
-
|
|
4675
|
+
total_count: value["total_count"],
|
|
4356
4676
|
total_amount: value["total_amount"],
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4677
|
+
total_fees: value["total_fees"],
|
|
4678
|
+
total_net: value["total_net"],
|
|
4679
|
+
by_type: mapValues(
|
|
4680
|
+
value["by_type"],
|
|
4681
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueToJSON
|
|
4682
|
+
)
|
|
4360
4683
|
};
|
|
4361
4684
|
}
|
|
4362
4685
|
|
|
4363
|
-
// models/
|
|
4364
|
-
function
|
|
4686
|
+
// models/ApiV1StripeTransactionsSummaryGet200Response.ts
|
|
4687
|
+
function instanceOfApiV1StripeTransactionsSummaryGet200Response(value) {
|
|
4688
|
+
if (!("balance_transactions" in value) || value["balance_transactions"] === void 0)
|
|
4689
|
+
return false;
|
|
4690
|
+
if (!("transfers" in value) || value["transfers"] === void 0) return false;
|
|
4691
|
+
if (!("payouts" in value) || value["payouts"] === void 0) return false;
|
|
4365
4692
|
return true;
|
|
4366
4693
|
}
|
|
4367
|
-
function
|
|
4368
|
-
return
|
|
4694
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseFromJSON(json) {
|
|
4695
|
+
return ApiV1StripeTransactionsSummaryGet200ResponseFromJSONTyped(json, false);
|
|
4369
4696
|
}
|
|
4370
|
-
function
|
|
4697
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4371
4698
|
if (json == null) {
|
|
4372
4699
|
return json;
|
|
4373
4700
|
}
|
|
4374
4701
|
return {
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
)
|
|
4702
|
+
balance_transactions: ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsFromJSON(
|
|
4703
|
+
json["balance_transactions"]
|
|
4704
|
+
),
|
|
4705
|
+
transfers: ApiV1StripeTransactionsSummaryGet200ResponseTransfersFromJSON(json["transfers"]),
|
|
4706
|
+
payouts: ApiV1StripeTransactionsSummaryGet200ResponsePayoutsFromJSON(json["payouts"])
|
|
4378
4707
|
};
|
|
4379
4708
|
}
|
|
4380
|
-
function
|
|
4709
|
+
function ApiV1StripeTransactionsSummaryGet200ResponseToJSON(value) {
|
|
4381
4710
|
if (value == null) {
|
|
4382
4711
|
return value;
|
|
4383
4712
|
}
|
|
4384
4713
|
return {
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
)
|
|
4714
|
+
balance_transactions: ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsToJSON(
|
|
4715
|
+
value["balance_transactions"]
|
|
4716
|
+
),
|
|
4717
|
+
transfers: ApiV1StripeTransactionsSummaryGet200ResponseTransfersToJSON(value["transfers"]),
|
|
4718
|
+
payouts: ApiV1StripeTransactionsSummaryGet200ResponsePayoutsToJSON(value["payouts"])
|
|
4388
4719
|
};
|
|
4389
4720
|
}
|
|
4390
4721
|
|
|
4391
|
-
// models/
|
|
4392
|
-
function
|
|
4722
|
+
// models/ApiV1StripeTransfersGet200ResponseDataInnerReversals.ts
|
|
4723
|
+
function instanceOfApiV1StripeTransfersGet200ResponseDataInnerReversals(value) {
|
|
4724
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
4725
|
+
if (!("has_more" in value) || value["has_more"] === void 0) return false;
|
|
4726
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
4393
4727
|
return true;
|
|
4394
4728
|
}
|
|
4395
|
-
function
|
|
4396
|
-
return
|
|
4729
|
+
function ApiV1StripeTransfersGet200ResponseDataInnerReversalsFromJSON(json) {
|
|
4730
|
+
return ApiV1StripeTransfersGet200ResponseDataInnerReversalsFromJSONTyped(json, false);
|
|
4397
4731
|
}
|
|
4398
|
-
function
|
|
4732
|
+
function ApiV1StripeTransfersGet200ResponseDataInnerReversalsFromJSONTyped(json, ignoreDiscriminator) {
|
|
4399
4733
|
if (json == null) {
|
|
4400
4734
|
return json;
|
|
4401
4735
|
}
|
|
4402
4736
|
return {
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
bank_account_id: json["bank_account_id"] == null ? void 0 : json["bank_account_id"],
|
|
4407
|
-
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
4408
|
-
iso_currency_code: json["iso_currency_code"] == null ? void 0 : json["iso_currency_code"],
|
|
4409
|
-
date: json["date"] == null ? void 0 : json["date"],
|
|
4410
|
-
name: json["name"] == null ? void 0 : json["name"],
|
|
4411
|
-
merchant_name: json["merchant_name"] == null ? void 0 : json["merchant_name"],
|
|
4412
|
-
description: json["description"] == null ? void 0 : json["description"],
|
|
4413
|
-
category: json["category"] == null ? void 0 : json["category"],
|
|
4414
|
-
sub_category: json["sub_category"] == null ? void 0 : json["sub_category"],
|
|
4415
|
-
is_recurring: json["is_recurring"] == null ? void 0 : json["is_recurring"],
|
|
4416
|
-
recurring_transaction_id: json["recurring_transaction_id"] == null ? void 0 : json["recurring_transaction_id"],
|
|
4417
|
-
tags: json["tags"] == null ? void 0 : json["tags"],
|
|
4418
|
-
created_at: json["created_at"] == null ? void 0 : json["created_at"],
|
|
4419
|
-
updated_at: json["updated_at"] == null ? void 0 : json["updated_at"]
|
|
4737
|
+
data: json["data"],
|
|
4738
|
+
has_more: json["has_more"],
|
|
4739
|
+
url: json["url"]
|
|
4420
4740
|
};
|
|
4421
4741
|
}
|
|
4422
|
-
function
|
|
4742
|
+
function ApiV1StripeTransfersGet200ResponseDataInnerReversalsToJSON(value) {
|
|
4423
4743
|
if (value == null) {
|
|
4424
4744
|
return value;
|
|
4425
4745
|
}
|
|
4426
4746
|
return {
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
bank_account_id: value["bank_account_id"],
|
|
4431
|
-
amount: value["amount"],
|
|
4432
|
-
iso_currency_code: value["iso_currency_code"],
|
|
4433
|
-
date: value["date"],
|
|
4434
|
-
name: value["name"],
|
|
4435
|
-
merchant_name: value["merchant_name"],
|
|
4436
|
-
description: value["description"],
|
|
4437
|
-
category: value["category"],
|
|
4438
|
-
sub_category: value["sub_category"],
|
|
4439
|
-
is_recurring: value["is_recurring"],
|
|
4440
|
-
recurring_transaction_id: value["recurring_transaction_id"],
|
|
4441
|
-
tags: value["tags"],
|
|
4442
|
-
created_at: value["created_at"],
|
|
4443
|
-
updated_at: value["updated_at"]
|
|
4747
|
+
data: value["data"],
|
|
4748
|
+
has_more: value["has_more"],
|
|
4749
|
+
url: value["url"]
|
|
4444
4750
|
};
|
|
4445
4751
|
}
|
|
4446
4752
|
|
|
4447
|
-
// models/
|
|
4448
|
-
|
|
4753
|
+
// models/ApiV1StripeTransfersGet200ResponseDataInner.ts
|
|
4754
|
+
var ApiV1StripeTransfersGet200ResponseDataInnerObjectEnum = {
|
|
4755
|
+
Transfer: "transfer"
|
|
4756
|
+
};
|
|
4757
|
+
function instanceOfApiV1StripeTransfersGet200ResponseDataInner(value) {
|
|
4758
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
4759
|
+
if (!("object" in value) || value["object"] === void 0) return false;
|
|
4760
|
+
if (!("amount" in value) || value["amount"] === void 0) return false;
|
|
4761
|
+
if (!("amount_reversed" in value) || value["amount_reversed"] === void 0) return false;
|
|
4762
|
+
if (!("created" in value) || value["created"] === void 0) return false;
|
|
4763
|
+
if (!("currency" in value) || value["currency"] === void 0) return false;
|
|
4764
|
+
if (!("livemode" in value) || value["livemode"] === void 0) return false;
|
|
4765
|
+
if (!("metadata" in value) || value["metadata"] === void 0) return false;
|
|
4766
|
+
if (!("reversals" in value) || value["reversals"] === void 0) return false;
|
|
4767
|
+
if (!("reversed" in value) || value["reversed"] === void 0) return false;
|
|
4768
|
+
if (!("source_type" in value) || value["source_type"] === void 0) return false;
|
|
4449
4769
|
return true;
|
|
4450
4770
|
}
|
|
4451
|
-
function
|
|
4452
|
-
return
|
|
4771
|
+
function ApiV1StripeTransfersGet200ResponseDataInnerFromJSON(json) {
|
|
4772
|
+
return ApiV1StripeTransfersGet200ResponseDataInnerFromJSONTyped(json, false);
|
|
4453
4773
|
}
|
|
4454
|
-
function
|
|
4774
|
+
function ApiV1StripeTransfersGet200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
4455
4775
|
if (json == null) {
|
|
4456
4776
|
return json;
|
|
4457
4777
|
}
|
|
4458
4778
|
return {
|
|
4459
|
-
|
|
4779
|
+
id: json["id"],
|
|
4780
|
+
object: json["object"],
|
|
4781
|
+
amount: json["amount"],
|
|
4782
|
+
amount_reversed: json["amount_reversed"],
|
|
4783
|
+
balance_transaction: json["balance_transaction"] == null ? void 0 : json["balance_transaction"],
|
|
4784
|
+
created: json["created"],
|
|
4785
|
+
currency: json["currency"],
|
|
4786
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
4787
|
+
destination: json["destination"] == null ? void 0 : json["destination"],
|
|
4788
|
+
destination_payment: json["destination_payment"] == null ? void 0 : json["destination_payment"],
|
|
4789
|
+
livemode: json["livemode"],
|
|
4790
|
+
metadata: json["metadata"],
|
|
4791
|
+
reversals: ApiV1StripeTransfersGet200ResponseDataInnerReversalsFromJSON(json["reversals"]),
|
|
4792
|
+
reversed: json["reversed"],
|
|
4793
|
+
source_transaction: json["source_transaction"] == null ? void 0 : json["source_transaction"],
|
|
4794
|
+
source_type: json["source_type"],
|
|
4795
|
+
transfer_group: json["transfer_group"] == null ? void 0 : json["transfer_group"]
|
|
4460
4796
|
};
|
|
4461
4797
|
}
|
|
4462
|
-
function
|
|
4798
|
+
function ApiV1StripeTransfersGet200ResponseDataInnerToJSON(value) {
|
|
4463
4799
|
if (value == null) {
|
|
4464
4800
|
return value;
|
|
4465
4801
|
}
|
|
4466
4802
|
return {
|
|
4467
|
-
|
|
4803
|
+
id: value["id"],
|
|
4804
|
+
object: value["object"],
|
|
4805
|
+
amount: value["amount"],
|
|
4806
|
+
amount_reversed: value["amount_reversed"],
|
|
4807
|
+
balance_transaction: value["balance_transaction"],
|
|
4808
|
+
created: value["created"],
|
|
4809
|
+
currency: value["currency"],
|
|
4810
|
+
description: value["description"],
|
|
4811
|
+
destination: value["destination"],
|
|
4812
|
+
destination_payment: value["destination_payment"],
|
|
4813
|
+
livemode: value["livemode"],
|
|
4814
|
+
metadata: value["metadata"],
|
|
4815
|
+
reversals: ApiV1StripeTransfersGet200ResponseDataInnerReversalsToJSON(value["reversals"]),
|
|
4816
|
+
reversed: value["reversed"],
|
|
4817
|
+
source_transaction: value["source_transaction"],
|
|
4818
|
+
source_type: value["source_type"],
|
|
4819
|
+
transfer_group: value["transfer_group"]
|
|
4468
4820
|
};
|
|
4469
4821
|
}
|
|
4470
4822
|
|
|
4471
|
-
// models/
|
|
4472
|
-
|
|
4823
|
+
// models/ApiV1StripeTransfersGet200Response.ts
|
|
4824
|
+
var ApiV1StripeTransfersGet200ResponseObjectEnum = {
|
|
4825
|
+
List: "list"
|
|
4826
|
+
};
|
|
4827
|
+
function instanceOfApiV1StripeTransfersGet200Response(value) {
|
|
4828
|
+
if (!("object" in value) || value["object"] === void 0) return false;
|
|
4829
|
+
if (!("data" in value) || value["data"] === void 0) return false;
|
|
4830
|
+
if (!("has_more" in value) || value["has_more"] === void 0) return false;
|
|
4831
|
+
if (!("url" in value) || value["url"] === void 0) return false;
|
|
4832
|
+
return true;
|
|
4833
|
+
}
|
|
4834
|
+
function ApiV1StripeTransfersGet200ResponseFromJSON(json) {
|
|
4835
|
+
return ApiV1StripeTransfersGet200ResponseFromJSONTyped(json, false);
|
|
4836
|
+
}
|
|
4837
|
+
function ApiV1StripeTransfersGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4838
|
+
if (json == null) {
|
|
4839
|
+
return json;
|
|
4840
|
+
}
|
|
4841
|
+
return {
|
|
4842
|
+
object: json["object"],
|
|
4843
|
+
data: json["data"].map(ApiV1StripeTransfersGet200ResponseDataInnerFromJSON),
|
|
4844
|
+
has_more: json["has_more"],
|
|
4845
|
+
url: json["url"]
|
|
4846
|
+
};
|
|
4847
|
+
}
|
|
4848
|
+
function ApiV1StripeTransfersGet200ResponseToJSON(value) {
|
|
4849
|
+
if (value == null) {
|
|
4850
|
+
return value;
|
|
4851
|
+
}
|
|
4852
|
+
return {
|
|
4853
|
+
object: value["object"],
|
|
4854
|
+
data: value["data"].map(ApiV1StripeTransfersGet200ResponseDataInnerToJSON),
|
|
4855
|
+
has_more: value["has_more"],
|
|
4856
|
+
url: value["url"]
|
|
4857
|
+
};
|
|
4858
|
+
}
|
|
4859
|
+
|
|
4860
|
+
// models/ApiV1TransactionsByDayGet200ResponseValInner.ts
|
|
4861
|
+
function instanceOfApiV1TransactionsByDayGet200ResponseValInner(value) {
|
|
4862
|
+
return true;
|
|
4863
|
+
}
|
|
4864
|
+
function ApiV1TransactionsByDayGet200ResponseValInnerFromJSON(json) {
|
|
4865
|
+
return ApiV1TransactionsByDayGet200ResponseValInnerFromJSONTyped(json, false);
|
|
4866
|
+
}
|
|
4867
|
+
function ApiV1TransactionsByDayGet200ResponseValInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
4868
|
+
if (json == null) {
|
|
4869
|
+
return json;
|
|
4870
|
+
}
|
|
4871
|
+
return {
|
|
4872
|
+
date: json["date"] == null ? void 0 : json["date"],
|
|
4873
|
+
total_amount: json["total_amount"] == null ? void 0 : json["total_amount"],
|
|
4874
|
+
transaction_count: json["transaction_count"] == null ? void 0 : json["transaction_count"],
|
|
4875
|
+
avg_amount: json["avg_amount"] == null ? void 0 : json["avg_amount"]
|
|
4876
|
+
};
|
|
4877
|
+
}
|
|
4878
|
+
function ApiV1TransactionsByDayGet200ResponseValInnerToJSON(value) {
|
|
4879
|
+
if (value == null) {
|
|
4880
|
+
return value;
|
|
4881
|
+
}
|
|
4882
|
+
return {
|
|
4883
|
+
date: value["date"],
|
|
4884
|
+
total_amount: value["total_amount"],
|
|
4885
|
+
transaction_count: value["transaction_count"],
|
|
4886
|
+
avg_amount: value["avg_amount"]
|
|
4887
|
+
};
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
// models/ApiV1TransactionsByDayGet200Response.ts
|
|
4891
|
+
function instanceOfApiV1TransactionsByDayGet200Response(value) {
|
|
4892
|
+
return true;
|
|
4893
|
+
}
|
|
4894
|
+
function ApiV1TransactionsByDayGet200ResponseFromJSON(json) {
|
|
4895
|
+
return ApiV1TransactionsByDayGet200ResponseFromJSONTyped(json, false);
|
|
4896
|
+
}
|
|
4897
|
+
function ApiV1TransactionsByDayGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4898
|
+
if (json == null) {
|
|
4899
|
+
return json;
|
|
4900
|
+
}
|
|
4901
|
+
return {
|
|
4902
|
+
val: json["val"] == null ? void 0 : json["val"].map(ApiV1TransactionsByDayGet200ResponseValInnerFromJSON)
|
|
4903
|
+
};
|
|
4904
|
+
}
|
|
4905
|
+
function ApiV1TransactionsByDayGet200ResponseToJSON(value) {
|
|
4906
|
+
if (value == null) {
|
|
4907
|
+
return value;
|
|
4908
|
+
}
|
|
4909
|
+
return {
|
|
4910
|
+
val: value["val"] == null ? void 0 : value["val"].map(ApiV1TransactionsByDayGet200ResponseValInnerToJSON)
|
|
4911
|
+
};
|
|
4912
|
+
}
|
|
4913
|
+
|
|
4914
|
+
// models/ApiV1TransactionsByMonthGet200ResponseValInner.ts
|
|
4915
|
+
function instanceOfApiV1TransactionsByMonthGet200ResponseValInner(value) {
|
|
4916
|
+
return true;
|
|
4917
|
+
}
|
|
4918
|
+
function ApiV1TransactionsByMonthGet200ResponseValInnerFromJSON(json) {
|
|
4919
|
+
return ApiV1TransactionsByMonthGet200ResponseValInnerFromJSONTyped(json, false);
|
|
4920
|
+
}
|
|
4921
|
+
function ApiV1TransactionsByMonthGet200ResponseValInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
4922
|
+
if (json == null) {
|
|
4923
|
+
return json;
|
|
4924
|
+
}
|
|
4925
|
+
return {
|
|
4926
|
+
month: json["month"] == null ? void 0 : json["month"],
|
|
4927
|
+
total_amount: json["total_amount"] == null ? void 0 : json["total_amount"],
|
|
4928
|
+
transaction_count: json["transaction_count"] == null ? void 0 : json["transaction_count"],
|
|
4929
|
+
avg_amount: json["avg_amount"] == null ? void 0 : json["avg_amount"]
|
|
4930
|
+
};
|
|
4931
|
+
}
|
|
4932
|
+
function ApiV1TransactionsByMonthGet200ResponseValInnerToJSON(value) {
|
|
4933
|
+
if (value == null) {
|
|
4934
|
+
return value;
|
|
4935
|
+
}
|
|
4936
|
+
return {
|
|
4937
|
+
month: value["month"],
|
|
4938
|
+
total_amount: value["total_amount"],
|
|
4939
|
+
transaction_count: value["transaction_count"],
|
|
4940
|
+
avg_amount: value["avg_amount"]
|
|
4941
|
+
};
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
// models/ApiV1TransactionsByMonthGet200Response.ts
|
|
4945
|
+
function instanceOfApiV1TransactionsByMonthGet200Response(value) {
|
|
4946
|
+
return true;
|
|
4947
|
+
}
|
|
4948
|
+
function ApiV1TransactionsByMonthGet200ResponseFromJSON(json) {
|
|
4949
|
+
return ApiV1TransactionsByMonthGet200ResponseFromJSONTyped(json, false);
|
|
4950
|
+
}
|
|
4951
|
+
function ApiV1TransactionsByMonthGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4952
|
+
if (json == null) {
|
|
4953
|
+
return json;
|
|
4954
|
+
}
|
|
4955
|
+
return {
|
|
4956
|
+
val: json["val"] == null ? void 0 : json["val"].map(ApiV1TransactionsByMonthGet200ResponseValInnerFromJSON)
|
|
4957
|
+
};
|
|
4958
|
+
}
|
|
4959
|
+
function ApiV1TransactionsByMonthGet200ResponseToJSON(value) {
|
|
4960
|
+
if (value == null) {
|
|
4961
|
+
return value;
|
|
4962
|
+
}
|
|
4963
|
+
return {
|
|
4964
|
+
val: value["val"] == null ? void 0 : value["val"].map(ApiV1TransactionsByMonthGet200ResponseValInnerToJSON)
|
|
4965
|
+
};
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
// models/ApiV1TransactionsCategorySpendingGet200ResponseValInner.ts
|
|
4969
|
+
function instanceOfApiV1TransactionsCategorySpendingGet200ResponseValInner(value) {
|
|
4970
|
+
return true;
|
|
4971
|
+
}
|
|
4972
|
+
function ApiV1TransactionsCategorySpendingGet200ResponseValInnerFromJSON(json) {
|
|
4973
|
+
return ApiV1TransactionsCategorySpendingGet200ResponseValInnerFromJSONTyped(json, false);
|
|
4974
|
+
}
|
|
4975
|
+
function ApiV1TransactionsCategorySpendingGet200ResponseValInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
4976
|
+
if (json == null) {
|
|
4977
|
+
return json;
|
|
4978
|
+
}
|
|
4979
|
+
return {
|
|
4980
|
+
category: json["category"] == null ? void 0 : json["category"],
|
|
4981
|
+
total_amount: json["total_amount"] == null ? void 0 : json["total_amount"],
|
|
4982
|
+
transaction_count: json["transaction_count"] == null ? void 0 : json["transaction_count"],
|
|
4983
|
+
avg_amount: json["avg_amount"] == null ? void 0 : json["avg_amount"],
|
|
4984
|
+
percentage_of_total: json["percentage_of_total"] == null ? void 0 : json["percentage_of_total"]
|
|
4985
|
+
};
|
|
4986
|
+
}
|
|
4987
|
+
function ApiV1TransactionsCategorySpendingGet200ResponseValInnerToJSON(value) {
|
|
4988
|
+
if (value == null) {
|
|
4989
|
+
return value;
|
|
4990
|
+
}
|
|
4991
|
+
return {
|
|
4992
|
+
category: value["category"],
|
|
4993
|
+
total_amount: value["total_amount"],
|
|
4994
|
+
transaction_count: value["transaction_count"],
|
|
4995
|
+
avg_amount: value["avg_amount"],
|
|
4996
|
+
percentage_of_total: value["percentage_of_total"]
|
|
4997
|
+
};
|
|
4998
|
+
}
|
|
4999
|
+
|
|
5000
|
+
// models/ApiV1TransactionsCategorySpendingGet200Response.ts
|
|
5001
|
+
function instanceOfApiV1TransactionsCategorySpendingGet200Response(value) {
|
|
5002
|
+
return true;
|
|
5003
|
+
}
|
|
5004
|
+
function ApiV1TransactionsCategorySpendingGet200ResponseFromJSON(json) {
|
|
5005
|
+
return ApiV1TransactionsCategorySpendingGet200ResponseFromJSONTyped(json, false);
|
|
5006
|
+
}
|
|
5007
|
+
function ApiV1TransactionsCategorySpendingGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5008
|
+
if (json == null) {
|
|
5009
|
+
return json;
|
|
5010
|
+
}
|
|
5011
|
+
return {
|
|
5012
|
+
val: json["val"] == null ? void 0 : json["val"].map(
|
|
5013
|
+
ApiV1TransactionsCategorySpendingGet200ResponseValInnerFromJSON
|
|
5014
|
+
)
|
|
5015
|
+
};
|
|
5016
|
+
}
|
|
5017
|
+
function ApiV1TransactionsCategorySpendingGet200ResponseToJSON(value) {
|
|
5018
|
+
if (value == null) {
|
|
5019
|
+
return value;
|
|
5020
|
+
}
|
|
5021
|
+
return {
|
|
5022
|
+
val: value["val"] == null ? void 0 : value["val"].map(
|
|
5023
|
+
ApiV1TransactionsCategorySpendingGet200ResponseValInnerToJSON
|
|
5024
|
+
)
|
|
5025
|
+
};
|
|
5026
|
+
}
|
|
5027
|
+
|
|
5028
|
+
// models/ApiV1TransactionsGet200ResponseValInner.ts
|
|
5029
|
+
function instanceOfApiV1TransactionsGet200ResponseValInner(value) {
|
|
5030
|
+
return true;
|
|
5031
|
+
}
|
|
5032
|
+
function ApiV1TransactionsGet200ResponseValInnerFromJSON(json) {
|
|
5033
|
+
return ApiV1TransactionsGet200ResponseValInnerFromJSONTyped(json, false);
|
|
5034
|
+
}
|
|
5035
|
+
function ApiV1TransactionsGet200ResponseValInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5036
|
+
if (json == null) {
|
|
5037
|
+
return json;
|
|
5038
|
+
}
|
|
5039
|
+
return {
|
|
5040
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
5041
|
+
user_id: json["user_id"] == null ? void 0 : json["user_id"],
|
|
5042
|
+
team_id: json["team_id"] == null ? void 0 : json["team_id"],
|
|
5043
|
+
bank_account_id: json["bank_account_id"] == null ? void 0 : json["bank_account_id"],
|
|
5044
|
+
amount: json["amount"] == null ? void 0 : json["amount"],
|
|
5045
|
+
iso_currency_code: json["iso_currency_code"] == null ? void 0 : json["iso_currency_code"],
|
|
5046
|
+
date: json["date"] == null ? void 0 : json["date"],
|
|
5047
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
5048
|
+
merchant_name: json["merchant_name"] == null ? void 0 : json["merchant_name"],
|
|
5049
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
5050
|
+
category: json["category"] == null ? void 0 : json["category"],
|
|
5051
|
+
sub_category: json["sub_category"] == null ? void 0 : json["sub_category"],
|
|
5052
|
+
is_recurring: json["is_recurring"] == null ? void 0 : json["is_recurring"],
|
|
5053
|
+
recurring_transaction_id: json["recurring_transaction_id"] == null ? void 0 : json["recurring_transaction_id"],
|
|
5054
|
+
tags: json["tags"] == null ? void 0 : json["tags"],
|
|
5055
|
+
created_at: json["created_at"] == null ? void 0 : json["created_at"],
|
|
5056
|
+
updated_at: json["updated_at"] == null ? void 0 : json["updated_at"]
|
|
5057
|
+
};
|
|
5058
|
+
}
|
|
5059
|
+
function ApiV1TransactionsGet200ResponseValInnerToJSON(value) {
|
|
5060
|
+
if (value == null) {
|
|
5061
|
+
return value;
|
|
5062
|
+
}
|
|
5063
|
+
return {
|
|
5064
|
+
id: value["id"],
|
|
5065
|
+
user_id: value["user_id"],
|
|
5066
|
+
team_id: value["team_id"],
|
|
5067
|
+
bank_account_id: value["bank_account_id"],
|
|
5068
|
+
amount: value["amount"],
|
|
5069
|
+
iso_currency_code: value["iso_currency_code"],
|
|
5070
|
+
date: value["date"],
|
|
5071
|
+
name: value["name"],
|
|
5072
|
+
merchant_name: value["merchant_name"],
|
|
5073
|
+
description: value["description"],
|
|
5074
|
+
category: value["category"],
|
|
5075
|
+
sub_category: value["sub_category"],
|
|
5076
|
+
is_recurring: value["is_recurring"],
|
|
5077
|
+
recurring_transaction_id: value["recurring_transaction_id"],
|
|
5078
|
+
tags: value["tags"],
|
|
5079
|
+
created_at: value["created_at"],
|
|
5080
|
+
updated_at: value["updated_at"]
|
|
5081
|
+
};
|
|
5082
|
+
}
|
|
5083
|
+
|
|
5084
|
+
// models/ApiV1TransactionsGet200Response.ts
|
|
5085
|
+
function instanceOfApiV1TransactionsGet200Response(value) {
|
|
5086
|
+
return true;
|
|
5087
|
+
}
|
|
5088
|
+
function ApiV1TransactionsGet200ResponseFromJSON(json) {
|
|
5089
|
+
return ApiV1TransactionsGet200ResponseFromJSONTyped(json, false);
|
|
5090
|
+
}
|
|
5091
|
+
function ApiV1TransactionsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5092
|
+
if (json == null) {
|
|
5093
|
+
return json;
|
|
5094
|
+
}
|
|
5095
|
+
return {
|
|
5096
|
+
val: json["val"] == null ? void 0 : json["val"].map(ApiV1TransactionsGet200ResponseValInnerFromJSON)
|
|
5097
|
+
};
|
|
5098
|
+
}
|
|
5099
|
+
function ApiV1TransactionsGet200ResponseToJSON(value) {
|
|
5100
|
+
if (value == null) {
|
|
5101
|
+
return value;
|
|
5102
|
+
}
|
|
5103
|
+
return {
|
|
5104
|
+
val: value["val"] == null ? void 0 : value["val"].map(ApiV1TransactionsGet200ResponseValInnerToJSON)
|
|
5105
|
+
};
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
// models/ApiV1TransactionsMerchantSpendingGet200ResponseValInner.ts
|
|
5109
|
+
function instanceOfApiV1TransactionsMerchantSpendingGet200ResponseValInner(value) {
|
|
5110
|
+
return true;
|
|
5111
|
+
}
|
|
5112
|
+
function ApiV1TransactionsMerchantSpendingGet200ResponseValInnerFromJSON(json) {
|
|
5113
|
+
return ApiV1TransactionsMerchantSpendingGet200ResponseValInnerFromJSONTyped(json, false);
|
|
5114
|
+
}
|
|
5115
|
+
function ApiV1TransactionsMerchantSpendingGet200ResponseValInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5116
|
+
if (json == null) {
|
|
5117
|
+
return json;
|
|
5118
|
+
}
|
|
5119
|
+
return {
|
|
5120
|
+
merchant_name: json["merchant_name"] == null ? void 0 : json["merchant_name"],
|
|
5121
|
+
total_amount: json["total_amount"] == null ? void 0 : json["total_amount"],
|
|
5122
|
+
transaction_count: json["transaction_count"] == null ? void 0 : json["transaction_count"],
|
|
5123
|
+
avg_amount: json["avg_amount"] == null ? void 0 : json["avg_amount"],
|
|
5124
|
+
percentage_of_total: json["percentage_of_total"] == null ? void 0 : json["percentage_of_total"]
|
|
5125
|
+
};
|
|
5126
|
+
}
|
|
5127
|
+
function ApiV1TransactionsMerchantSpendingGet200ResponseValInnerToJSON(value) {
|
|
5128
|
+
if (value == null) {
|
|
5129
|
+
return value;
|
|
5130
|
+
}
|
|
5131
|
+
return {
|
|
5132
|
+
merchant_name: value["merchant_name"],
|
|
5133
|
+
total_amount: value["total_amount"],
|
|
5134
|
+
transaction_count: value["transaction_count"],
|
|
5135
|
+
avg_amount: value["avg_amount"],
|
|
5136
|
+
percentage_of_total: value["percentage_of_total"]
|
|
5137
|
+
};
|
|
5138
|
+
}
|
|
5139
|
+
|
|
5140
|
+
// models/ApiV1TransactionsMerchantSpendingGet200Response.ts
|
|
5141
|
+
function instanceOfApiV1TransactionsMerchantSpendingGet200Response(value) {
|
|
5142
|
+
return true;
|
|
5143
|
+
}
|
|
5144
|
+
function ApiV1TransactionsMerchantSpendingGet200ResponseFromJSON(json) {
|
|
5145
|
+
return ApiV1TransactionsMerchantSpendingGet200ResponseFromJSONTyped(json, false);
|
|
5146
|
+
}
|
|
5147
|
+
function ApiV1TransactionsMerchantSpendingGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5148
|
+
if (json == null) {
|
|
5149
|
+
return json;
|
|
5150
|
+
}
|
|
5151
|
+
return {
|
|
5152
|
+
val: json["val"] == null ? void 0 : json["val"].map(
|
|
5153
|
+
ApiV1TransactionsMerchantSpendingGet200ResponseValInnerFromJSON
|
|
5154
|
+
)
|
|
5155
|
+
};
|
|
5156
|
+
}
|
|
5157
|
+
function ApiV1TransactionsMerchantSpendingGet200ResponseToJSON(value) {
|
|
5158
|
+
if (value == null) {
|
|
5159
|
+
return value;
|
|
5160
|
+
}
|
|
5161
|
+
return {
|
|
5162
|
+
val: value["val"] == null ? void 0 : value["val"].map(
|
|
5163
|
+
ApiV1TransactionsMerchantSpendingGet200ResponseValInnerToJSON
|
|
5164
|
+
)
|
|
5165
|
+
};
|
|
5166
|
+
}
|
|
5167
|
+
|
|
5168
|
+
// models/ApiV1TransactionsRecurringPatternsGet200ResponseValInner.ts
|
|
5169
|
+
function instanceOfApiV1TransactionsRecurringPatternsGet200ResponseValInner(value) {
|
|
5170
|
+
return true;
|
|
5171
|
+
}
|
|
5172
|
+
function ApiV1TransactionsRecurringPatternsGet200ResponseValInnerFromJSON(json) {
|
|
5173
|
+
return ApiV1TransactionsRecurringPatternsGet200ResponseValInnerFromJSONTyped(json, false);
|
|
5174
|
+
}
|
|
5175
|
+
function ApiV1TransactionsRecurringPatternsGet200ResponseValInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5176
|
+
if (json == null) {
|
|
5177
|
+
return json;
|
|
5178
|
+
}
|
|
5179
|
+
return {
|
|
5180
|
+
merchant_name: json["merchant_name"] == null ? void 0 : json["merchant_name"],
|
|
5181
|
+
category: json["category"] == null ? void 0 : json["category"],
|
|
5182
|
+
avg_amount: json["avg_amount"] == null ? void 0 : json["avg_amount"],
|
|
5183
|
+
frequency_days: json["frequency_days"] == null ? void 0 : json["frequency_days"],
|
|
5184
|
+
transaction_count: json["transaction_count"] == null ? void 0 : json["transaction_count"],
|
|
5185
|
+
last_transaction_date: json["last_transaction_date"] == null ? void 0 : json["last_transaction_date"],
|
|
5186
|
+
confidence_score: json["confidence_score"] == null ? void 0 : json["confidence_score"]
|
|
5187
|
+
};
|
|
5188
|
+
}
|
|
5189
|
+
function ApiV1TransactionsRecurringPatternsGet200ResponseValInnerToJSON(value) {
|
|
5190
|
+
if (value == null) {
|
|
5191
|
+
return value;
|
|
5192
|
+
}
|
|
5193
|
+
return {
|
|
5194
|
+
merchant_name: value["merchant_name"],
|
|
5195
|
+
category: value["category"],
|
|
5196
|
+
avg_amount: value["avg_amount"],
|
|
5197
|
+
frequency_days: value["frequency_days"],
|
|
5198
|
+
transaction_count: value["transaction_count"],
|
|
5199
|
+
last_transaction_date: value["last_transaction_date"],
|
|
5200
|
+
confidence_score: value["confidence_score"]
|
|
5201
|
+
};
|
|
5202
|
+
}
|
|
5203
|
+
|
|
5204
|
+
// models/ApiV1TransactionsRecurringPatternsGet200Response.ts
|
|
5205
|
+
function instanceOfApiV1TransactionsRecurringPatternsGet200Response(value) {
|
|
5206
|
+
return true;
|
|
5207
|
+
}
|
|
5208
|
+
function ApiV1TransactionsRecurringPatternsGet200ResponseFromJSON(json) {
|
|
5209
|
+
return ApiV1TransactionsRecurringPatternsGet200ResponseFromJSONTyped(json, false);
|
|
5210
|
+
}
|
|
5211
|
+
function ApiV1TransactionsRecurringPatternsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5212
|
+
if (json == null) {
|
|
5213
|
+
return json;
|
|
5214
|
+
}
|
|
5215
|
+
return {
|
|
5216
|
+
val: json["val"] == null ? void 0 : json["val"].map(
|
|
5217
|
+
ApiV1TransactionsRecurringPatternsGet200ResponseValInnerFromJSON
|
|
5218
|
+
)
|
|
5219
|
+
};
|
|
5220
|
+
}
|
|
5221
|
+
function ApiV1TransactionsRecurringPatternsGet200ResponseToJSON(value) {
|
|
5222
|
+
if (value == null) {
|
|
5223
|
+
return value;
|
|
5224
|
+
}
|
|
5225
|
+
return {
|
|
5226
|
+
val: value["val"] == null ? void 0 : value["val"].map(
|
|
5227
|
+
ApiV1TransactionsRecurringPatternsGet200ResponseValInnerToJSON
|
|
5228
|
+
)
|
|
5229
|
+
};
|
|
5230
|
+
}
|
|
5231
|
+
|
|
5232
|
+
// models/BackfillBalanceTransactions202ResponseJob.ts
|
|
5233
|
+
function instanceOfBackfillBalanceTransactions202ResponseJob(value) {
|
|
5234
|
+
return true;
|
|
5235
|
+
}
|
|
5236
|
+
function BackfillBalanceTransactions202ResponseJobFromJSON(json) {
|
|
5237
|
+
return BackfillBalanceTransactions202ResponseJobFromJSONTyped(json, false);
|
|
5238
|
+
}
|
|
5239
|
+
function BackfillBalanceTransactions202ResponseJobFromJSONTyped(json, ignoreDiscriminator) {
|
|
5240
|
+
if (json == null) {
|
|
5241
|
+
return json;
|
|
5242
|
+
}
|
|
5243
|
+
return {
|
|
5244
|
+
...json,
|
|
5245
|
+
task: json["task"] == null ? void 0 : json["task"],
|
|
5246
|
+
queue: json["queue"] == null ? void 0 : json["queue"],
|
|
5247
|
+
tenantId: json["tenantId"] == null ? void 0 : json["tenantId"],
|
|
5248
|
+
window: json["window"] == null ? void 0 : json["window"]
|
|
5249
|
+
};
|
|
5250
|
+
}
|
|
5251
|
+
function BackfillBalanceTransactions202ResponseJobToJSON(value) {
|
|
5252
|
+
if (value == null) {
|
|
5253
|
+
return value;
|
|
5254
|
+
}
|
|
5255
|
+
return {
|
|
5256
|
+
...value,
|
|
5257
|
+
task: value["task"],
|
|
5258
|
+
queue: value["queue"],
|
|
5259
|
+
tenantId: value["tenantId"],
|
|
5260
|
+
window: value["window"]
|
|
5261
|
+
};
|
|
5262
|
+
}
|
|
5263
|
+
|
|
5264
|
+
// models/BackfillBalanceTransactions202Response.ts
|
|
5265
|
+
function instanceOfBackfillBalanceTransactions202Response(value) {
|
|
5266
|
+
return true;
|
|
5267
|
+
}
|
|
5268
|
+
function BackfillBalanceTransactions202ResponseFromJSON(json) {
|
|
5269
|
+
return BackfillBalanceTransactions202ResponseFromJSONTyped(json, false);
|
|
5270
|
+
}
|
|
5271
|
+
function BackfillBalanceTransactions202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5272
|
+
if (json == null) {
|
|
5273
|
+
return json;
|
|
5274
|
+
}
|
|
5275
|
+
return {
|
|
5276
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5277
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5278
|
+
job: json["job"] == null ? void 0 : BackfillBalanceTransactions202ResponseJobFromJSON(json["job"])
|
|
5279
|
+
};
|
|
5280
|
+
}
|
|
5281
|
+
function BackfillBalanceTransactions202ResponseToJSON(value) {
|
|
5282
|
+
if (value == null) {
|
|
5283
|
+
return value;
|
|
5284
|
+
}
|
|
5285
|
+
return {
|
|
5286
|
+
statusCode: value["statusCode"],
|
|
5287
|
+
ts: value["ts"],
|
|
5288
|
+
job: BackfillBalanceTransactions202ResponseJobToJSON(value["job"])
|
|
5289
|
+
};
|
|
5290
|
+
}
|
|
5291
|
+
|
|
5292
|
+
// models/BackfillBalanceTransactionsRequestCreated.ts
|
|
5293
|
+
function instanceOfBackfillBalanceTransactionsRequestCreated(value) {
|
|
5294
|
+
return true;
|
|
5295
|
+
}
|
|
5296
|
+
function BackfillBalanceTransactionsRequestCreatedFromJSON(json) {
|
|
5297
|
+
return BackfillBalanceTransactionsRequestCreatedFromJSONTyped(json, false);
|
|
5298
|
+
}
|
|
5299
|
+
function BackfillBalanceTransactionsRequestCreatedFromJSONTyped(json, ignoreDiscriminator) {
|
|
5300
|
+
if (json == null) {
|
|
5301
|
+
return json;
|
|
5302
|
+
}
|
|
5303
|
+
return {
|
|
5304
|
+
gt: json["gt"] == null ? void 0 : json["gt"],
|
|
5305
|
+
gte: json["gte"] == null ? void 0 : json["gte"],
|
|
5306
|
+
lt: json["lt"] == null ? void 0 : json["lt"],
|
|
5307
|
+
lte: json["lte"] == null ? void 0 : json["lte"]
|
|
5308
|
+
};
|
|
5309
|
+
}
|
|
5310
|
+
function BackfillBalanceTransactionsRequestCreatedToJSON(value) {
|
|
5311
|
+
if (value == null) {
|
|
5312
|
+
return value;
|
|
5313
|
+
}
|
|
5314
|
+
return {
|
|
5315
|
+
gt: value["gt"],
|
|
5316
|
+
gte: value["gte"],
|
|
5317
|
+
lt: value["lt"],
|
|
5318
|
+
lte: value["lte"]
|
|
5319
|
+
};
|
|
5320
|
+
}
|
|
5321
|
+
|
|
5322
|
+
// models/BackfillBalanceTransactionsRequest.ts
|
|
5323
|
+
var BackfillBalanceTransactionsRequestWindowEnum = {
|
|
5324
|
+
Lasthour: "lasthour",
|
|
5325
|
+
Lastday: "lastday",
|
|
5326
|
+
Lastweek: "lastweek"
|
|
5327
|
+
};
|
|
5328
|
+
function instanceOfBackfillBalanceTransactionsRequest(value) {
|
|
5329
|
+
return true;
|
|
5330
|
+
}
|
|
5331
|
+
function BackfillBalanceTransactionsRequestFromJSON(json) {
|
|
5332
|
+
return BackfillBalanceTransactionsRequestFromJSONTyped(json, false);
|
|
5333
|
+
}
|
|
5334
|
+
function BackfillBalanceTransactionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
5335
|
+
if (json == null) {
|
|
5336
|
+
return json;
|
|
5337
|
+
}
|
|
5338
|
+
return {
|
|
5339
|
+
window: json["window"] == null ? void 0 : json["window"],
|
|
5340
|
+
created: json["created"] == null ? void 0 : BackfillBalanceTransactionsRequestCreatedFromJSON(json["created"])
|
|
5341
|
+
};
|
|
5342
|
+
}
|
|
5343
|
+
function BackfillBalanceTransactionsRequestToJSON(value) {
|
|
5344
|
+
if (value == null) {
|
|
5345
|
+
return value;
|
|
5346
|
+
}
|
|
5347
|
+
return {
|
|
5348
|
+
window: value["window"],
|
|
5349
|
+
created: BackfillBalanceTransactionsRequestCreatedToJSON(value["created"])
|
|
5350
|
+
};
|
|
5351
|
+
}
|
|
5352
|
+
|
|
5353
|
+
// models/CheckTenantFeature200ResponseData.ts
|
|
5354
|
+
var CheckTenantFeature200ResponseDataPlanEnum = {
|
|
5355
|
+
Free: "FREE",
|
|
5356
|
+
Pro: "PRO",
|
|
5357
|
+
Enterprise: "ENTERPRISE"
|
|
5358
|
+
};
|
|
5359
|
+
var CheckTenantFeature200ResponseDataSuggestedPlanEnum = {
|
|
5360
|
+
Free: "FREE",
|
|
5361
|
+
Pro: "PRO",
|
|
5362
|
+
Enterprise: "ENTERPRISE"
|
|
5363
|
+
};
|
|
5364
|
+
function instanceOfCheckTenantFeature200ResponseData(value) {
|
|
5365
|
+
return true;
|
|
5366
|
+
}
|
|
5367
|
+
function CheckTenantFeature200ResponseDataFromJSON(json) {
|
|
5368
|
+
return CheckTenantFeature200ResponseDataFromJSONTyped(json, false);
|
|
5369
|
+
}
|
|
5370
|
+
function CheckTenantFeature200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5371
|
+
if (json == null) {
|
|
5372
|
+
return json;
|
|
5373
|
+
}
|
|
5374
|
+
return {
|
|
5375
|
+
feature: json["feature"] == null ? void 0 : json["feature"],
|
|
5376
|
+
hasAccess: json["hasAccess"] == null ? void 0 : json["hasAccess"],
|
|
5377
|
+
plan: json["plan"] == null ? void 0 : json["plan"],
|
|
5378
|
+
upgradeRequired: json["upgradeRequired"] == null ? void 0 : json["upgradeRequired"],
|
|
5379
|
+
suggestedPlan: json["suggestedPlan"] == null ? void 0 : json["suggestedPlan"]
|
|
5380
|
+
};
|
|
5381
|
+
}
|
|
5382
|
+
function CheckTenantFeature200ResponseDataToJSON(value) {
|
|
5383
|
+
if (value == null) {
|
|
5384
|
+
return value;
|
|
5385
|
+
}
|
|
5386
|
+
return {
|
|
5387
|
+
feature: value["feature"],
|
|
5388
|
+
hasAccess: value["hasAccess"],
|
|
5389
|
+
plan: value["plan"],
|
|
5390
|
+
upgradeRequired: value["upgradeRequired"],
|
|
5391
|
+
suggestedPlan: value["suggestedPlan"]
|
|
5392
|
+
};
|
|
5393
|
+
}
|
|
5394
|
+
|
|
5395
|
+
// models/CheckTenantFeature200Response.ts
|
|
5396
|
+
function instanceOfCheckTenantFeature200Response(value) {
|
|
5397
|
+
return true;
|
|
5398
|
+
}
|
|
5399
|
+
function CheckTenantFeature200ResponseFromJSON(json) {
|
|
5400
|
+
return CheckTenantFeature200ResponseFromJSONTyped(json, false);
|
|
5401
|
+
}
|
|
5402
|
+
function CheckTenantFeature200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5403
|
+
if (json == null) {
|
|
5404
|
+
return json;
|
|
5405
|
+
}
|
|
5406
|
+
return {
|
|
5407
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5408
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5409
|
+
data: json["data"] == null ? void 0 : CheckTenantFeature200ResponseDataFromJSON(json["data"])
|
|
5410
|
+
};
|
|
5411
|
+
}
|
|
5412
|
+
function CheckTenantFeature200ResponseToJSON(value) {
|
|
5413
|
+
if (value == null) {
|
|
5414
|
+
return value;
|
|
5415
|
+
}
|
|
5416
|
+
return {
|
|
5417
|
+
statusCode: value["statusCode"],
|
|
5418
|
+
ts: value["ts"],
|
|
5419
|
+
data: CheckTenantFeature200ResponseDataToJSON(value["data"])
|
|
5420
|
+
};
|
|
5421
|
+
}
|
|
5422
|
+
|
|
5423
|
+
// models/ListTenants200ResponseDataInner.ts
|
|
5424
|
+
var ListTenants200ResponseDataInnerStatusEnum = {
|
|
5425
|
+
Active: "active",
|
|
5426
|
+
Suspended: "suspended",
|
|
5427
|
+
Deprovisioning: "deprovisioning"
|
|
5428
|
+
};
|
|
5429
|
+
function instanceOfListTenants200ResponseDataInner(value) {
|
|
5430
|
+
return true;
|
|
5431
|
+
}
|
|
5432
|
+
function ListTenants200ResponseDataInnerFromJSON(json) {
|
|
5433
|
+
return ListTenants200ResponseDataInnerFromJSONTyped(json, false);
|
|
5434
|
+
}
|
|
5435
|
+
function ListTenants200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5436
|
+
if (json == null) {
|
|
5437
|
+
return json;
|
|
5438
|
+
}
|
|
5439
|
+
return {
|
|
5440
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
5441
|
+
slug: json["slug"] == null ? void 0 : json["slug"],
|
|
5442
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
5443
|
+
stripeAccountId: json["stripeAccountId"] == null ? void 0 : json["stripeAccountId"],
|
|
5444
|
+
status: json["status"] == null ? void 0 : json["status"],
|
|
5445
|
+
syncEnabled: json["syncEnabled"] == null ? void 0 : json["syncEnabled"],
|
|
5446
|
+
webhookEnabled: json["webhookEnabled"] == null ? void 0 : json["webhookEnabled"],
|
|
5447
|
+
autoExpandLists: json["autoExpandLists"] == null ? void 0 : json["autoExpandLists"],
|
|
5448
|
+
backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"],
|
|
5449
|
+
maxWebhookEventsPerHour: json["maxWebhookEventsPerHour"] == null ? void 0 : json["maxWebhookEventsPerHour"],
|
|
5450
|
+
maxApiCallsPerHour: json["maxApiCallsPerHour"] == null ? void 0 : json["maxApiCallsPerHour"],
|
|
5451
|
+
createdAt: json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
5452
|
+
updatedAt: json["updatedAt"] == null ? void 0 : new Date(json["updatedAt"]),
|
|
5453
|
+
lastSyncAt: json["lastSyncAt"] == null ? void 0 : new Date(json["lastSyncAt"])
|
|
5454
|
+
};
|
|
5455
|
+
}
|
|
5456
|
+
function ListTenants200ResponseDataInnerToJSON(value) {
|
|
5457
|
+
if (value == null) {
|
|
5458
|
+
return value;
|
|
5459
|
+
}
|
|
5460
|
+
return {
|
|
5461
|
+
id: value["id"],
|
|
5462
|
+
slug: value["slug"],
|
|
5463
|
+
name: value["name"],
|
|
5464
|
+
stripeAccountId: value["stripeAccountId"],
|
|
5465
|
+
status: value["status"],
|
|
5466
|
+
syncEnabled: value["syncEnabled"],
|
|
5467
|
+
webhookEnabled: value["webhookEnabled"],
|
|
5468
|
+
autoExpandLists: value["autoExpandLists"],
|
|
5469
|
+
backfillRelatedEntities: value["backfillRelatedEntities"],
|
|
5470
|
+
maxWebhookEventsPerHour: value["maxWebhookEventsPerHour"],
|
|
5471
|
+
maxApiCallsPerHour: value["maxApiCallsPerHour"],
|
|
5472
|
+
createdAt: value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
5473
|
+
updatedAt: value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString(),
|
|
5474
|
+
lastSyncAt: value["lastSyncAt"] == null ? void 0 : value["lastSyncAt"].toISOString()
|
|
5475
|
+
};
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
// models/CreateTenant201Response.ts
|
|
5479
|
+
function instanceOfCreateTenant201Response(value) {
|
|
5480
|
+
return true;
|
|
5481
|
+
}
|
|
5482
|
+
function CreateTenant201ResponseFromJSON(json) {
|
|
5483
|
+
return CreateTenant201ResponseFromJSONTyped(json, false);
|
|
5484
|
+
}
|
|
5485
|
+
function CreateTenant201ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5486
|
+
if (json == null) {
|
|
5487
|
+
return json;
|
|
5488
|
+
}
|
|
5489
|
+
return {
|
|
5490
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5491
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5492
|
+
data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
|
|
5493
|
+
};
|
|
5494
|
+
}
|
|
5495
|
+
function CreateTenant201ResponseToJSON(value) {
|
|
5496
|
+
if (value == null) {
|
|
5497
|
+
return value;
|
|
5498
|
+
}
|
|
5499
|
+
return {
|
|
5500
|
+
statusCode: value["statusCode"],
|
|
5501
|
+
ts: value["ts"],
|
|
5502
|
+
data: ListTenants200ResponseDataInnerToJSON(value["data"])
|
|
5503
|
+
};
|
|
5504
|
+
}
|
|
5505
|
+
|
|
5506
|
+
// models/CreateTenantRequest.ts
|
|
5507
|
+
function instanceOfCreateTenantRequest(value) {
|
|
5508
|
+
if (!("slug" in value) || value["slug"] === void 0) return false;
|
|
5509
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
5510
|
+
if (!("stripeAccountId" in value) || value["stripeAccountId"] === void 0) return false;
|
|
5511
|
+
if (!("stripeSecretKey" in value) || value["stripeSecretKey"] === void 0) return false;
|
|
5512
|
+
if (!("stripeWebhookSecret" in value) || value["stripeWebhookSecret"] === void 0) return false;
|
|
5513
|
+
return true;
|
|
5514
|
+
}
|
|
5515
|
+
function CreateTenantRequestFromJSON(json) {
|
|
5516
|
+
return CreateTenantRequestFromJSONTyped(json, false);
|
|
5517
|
+
}
|
|
5518
|
+
function CreateTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
5519
|
+
if (json == null) {
|
|
5520
|
+
return json;
|
|
5521
|
+
}
|
|
5522
|
+
return {
|
|
5523
|
+
slug: json["slug"],
|
|
5524
|
+
name: json["name"],
|
|
5525
|
+
stripeAccountId: json["stripeAccountId"],
|
|
5526
|
+
stripeSecretKey: json["stripeSecretKey"],
|
|
5527
|
+
stripeWebhookSecret: json["stripeWebhookSecret"],
|
|
5528
|
+
stripePublishableKey: json["stripePublishableKey"] == null ? void 0 : json["stripePublishableKey"],
|
|
5529
|
+
autoExpandLists: json["autoExpandLists"] == null ? void 0 : json["autoExpandLists"],
|
|
5530
|
+
backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"]
|
|
5531
|
+
};
|
|
5532
|
+
}
|
|
5533
|
+
function CreateTenantRequestToJSON(value) {
|
|
5534
|
+
if (value == null) {
|
|
5535
|
+
return value;
|
|
5536
|
+
}
|
|
5537
|
+
return {
|
|
5538
|
+
slug: value["slug"],
|
|
5539
|
+
name: value["name"],
|
|
5540
|
+
stripeAccountId: value["stripeAccountId"],
|
|
5541
|
+
stripeSecretKey: value["stripeSecretKey"],
|
|
5542
|
+
stripeWebhookSecret: value["stripeWebhookSecret"],
|
|
5543
|
+
stripePublishableKey: value["stripePublishableKey"],
|
|
5544
|
+
autoExpandLists: value["autoExpandLists"],
|
|
5545
|
+
backfillRelatedEntities: value["backfillRelatedEntities"]
|
|
5546
|
+
};
|
|
5547
|
+
}
|
|
5548
|
+
|
|
5549
|
+
// models/Def0Details.ts
|
|
5550
|
+
function instanceOfDef0Details(value) {
|
|
5551
|
+
return true;
|
|
5552
|
+
}
|
|
5553
|
+
function Def0DetailsFromJSON(json) {
|
|
5554
|
+
return Def0DetailsFromJSONTyped(json, false);
|
|
5555
|
+
}
|
|
5556
|
+
function Def0DetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
5557
|
+
return json;
|
|
5558
|
+
}
|
|
5559
|
+
function Def0DetailsToJSON(value) {
|
|
5560
|
+
return value;
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
// models/Def0.ts
|
|
5564
|
+
function instanceOfDef0(value) {
|
|
5565
|
+
if (!("statusCode" in value) || value["statusCode"] === void 0) return false;
|
|
5566
|
+
if (!("error" in value) || value["error"] === void 0) return false;
|
|
5567
|
+
if (!("message" in value) || value["message"] === void 0) return false;
|
|
5568
|
+
return true;
|
|
5569
|
+
}
|
|
5570
|
+
function Def0FromJSON(json) {
|
|
5571
|
+
return Def0FromJSONTyped(json, false);
|
|
5572
|
+
}
|
|
5573
|
+
function Def0FromJSONTyped(json, ignoreDiscriminator) {
|
|
5574
|
+
if (json == null) {
|
|
5575
|
+
return json;
|
|
5576
|
+
}
|
|
5577
|
+
return {
|
|
5578
|
+
...json,
|
|
5579
|
+
statusCode: json["statusCode"],
|
|
5580
|
+
error: json["error"],
|
|
5581
|
+
message: json["message"],
|
|
5582
|
+
correlationId: json["correlationId"] == null ? void 0 : json["correlationId"],
|
|
5583
|
+
timestamp: json["timestamp"] == null ? void 0 : new Date(json["timestamp"]),
|
|
5584
|
+
details: json["details"] == null ? void 0 : Def0DetailsFromJSON(json["details"])
|
|
5585
|
+
};
|
|
5586
|
+
}
|
|
5587
|
+
function Def0ToJSON(value) {
|
|
5588
|
+
if (value == null) {
|
|
5589
|
+
return value;
|
|
5590
|
+
}
|
|
5591
|
+
return {
|
|
5592
|
+
...value,
|
|
5593
|
+
statusCode: value["statusCode"],
|
|
5594
|
+
error: value["error"],
|
|
5595
|
+
message: value["message"],
|
|
5596
|
+
correlationId: value["correlationId"],
|
|
5597
|
+
timestamp: value["timestamp"] == null ? void 0 : value["timestamp"].toISOString(),
|
|
5598
|
+
details: Def0DetailsToJSON(value["details"])
|
|
5599
|
+
};
|
|
5600
|
+
}
|
|
5601
|
+
|
|
5602
|
+
// models/GetTenant200Response.ts
|
|
5603
|
+
function instanceOfGetTenant200Response(value) {
|
|
5604
|
+
return true;
|
|
5605
|
+
}
|
|
5606
|
+
function GetTenant200ResponseFromJSON(json) {
|
|
5607
|
+
return GetTenant200ResponseFromJSONTyped(json, false);
|
|
5608
|
+
}
|
|
5609
|
+
function GetTenant200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5610
|
+
if (json == null) {
|
|
5611
|
+
return json;
|
|
5612
|
+
}
|
|
5613
|
+
return {
|
|
5614
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5615
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5616
|
+
data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
|
|
5617
|
+
};
|
|
5618
|
+
}
|
|
5619
|
+
function GetTenant200ResponseToJSON(value) {
|
|
5620
|
+
if (value == null) {
|
|
5621
|
+
return value;
|
|
5622
|
+
}
|
|
5623
|
+
return {
|
|
5624
|
+
statusCode: value["statusCode"],
|
|
5625
|
+
ts: value["ts"],
|
|
5626
|
+
data: ListTenants200ResponseDataInnerToJSON(value["data"])
|
|
5627
|
+
};
|
|
5628
|
+
}
|
|
5629
|
+
|
|
5630
|
+
// models/GetTenantHealth200ResponseData.ts
|
|
5631
|
+
var GetTenantHealth200ResponseDataStatusEnum = {
|
|
5632
|
+
Healthy: "healthy",
|
|
5633
|
+
Degraded: "degraded",
|
|
5634
|
+
Unhealthy: "unhealthy"
|
|
5635
|
+
};
|
|
5636
|
+
function instanceOfGetTenantHealth200ResponseData(value) {
|
|
4473
5637
|
return true;
|
|
4474
5638
|
}
|
|
4475
|
-
function
|
|
4476
|
-
return
|
|
5639
|
+
function GetTenantHealth200ResponseDataFromJSON(json) {
|
|
5640
|
+
return GetTenantHealth200ResponseDataFromJSONTyped(json, false);
|
|
4477
5641
|
}
|
|
4478
|
-
function
|
|
5642
|
+
function GetTenantHealth200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4479
5643
|
if (json == null) {
|
|
4480
5644
|
return json;
|
|
4481
5645
|
}
|
|
4482
5646
|
return {
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
5647
|
+
tenantId: json["tenantId"] == null ? void 0 : json["tenantId"],
|
|
5648
|
+
status: json["status"] == null ? void 0 : json["status"],
|
|
5649
|
+
lastSyncAt: json["lastSyncAt"] == null ? void 0 : new Date(json["lastSyncAt"]),
|
|
5650
|
+
errorCount: json["errorCount"] == null ? void 0 : json["errorCount"],
|
|
5651
|
+
webhookBacklog: json["webhookBacklog"] == null ? void 0 : json["webhookBacklog"],
|
|
5652
|
+
lastError: json["lastError"] == null ? void 0 : json["lastError"]
|
|
4488
5653
|
};
|
|
4489
5654
|
}
|
|
4490
|
-
function
|
|
5655
|
+
function GetTenantHealth200ResponseDataToJSON(value) {
|
|
4491
5656
|
if (value == null) {
|
|
4492
5657
|
return value;
|
|
4493
5658
|
}
|
|
4494
5659
|
return {
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
5660
|
+
tenantId: value["tenantId"],
|
|
5661
|
+
status: value["status"],
|
|
5662
|
+
lastSyncAt: value["lastSyncAt"] == null ? void 0 : value["lastSyncAt"].toISOString(),
|
|
5663
|
+
errorCount: value["errorCount"],
|
|
5664
|
+
webhookBacklog: value["webhookBacklog"],
|
|
5665
|
+
lastError: value["lastError"]
|
|
4500
5666
|
};
|
|
4501
5667
|
}
|
|
4502
5668
|
|
|
4503
|
-
// models/
|
|
4504
|
-
function
|
|
5669
|
+
// models/GetTenantHealth200Response.ts
|
|
5670
|
+
function instanceOfGetTenantHealth200Response(value) {
|
|
4505
5671
|
return true;
|
|
4506
5672
|
}
|
|
4507
|
-
function
|
|
4508
|
-
return
|
|
5673
|
+
function GetTenantHealth200ResponseFromJSON(json) {
|
|
5674
|
+
return GetTenantHealth200ResponseFromJSONTyped(json, false);
|
|
4509
5675
|
}
|
|
4510
|
-
function
|
|
5676
|
+
function GetTenantHealth200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4511
5677
|
if (json == null) {
|
|
4512
5678
|
return json;
|
|
4513
5679
|
}
|
|
4514
5680
|
return {
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
)
|
|
5681
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5682
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5683
|
+
data: json["data"] == null ? void 0 : GetTenantHealth200ResponseDataFromJSON(json["data"])
|
|
4518
5684
|
};
|
|
4519
5685
|
}
|
|
4520
|
-
function
|
|
5686
|
+
function GetTenantHealth200ResponseToJSON(value) {
|
|
4521
5687
|
if (value == null) {
|
|
4522
5688
|
return value;
|
|
4523
5689
|
}
|
|
4524
5690
|
return {
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
)
|
|
5691
|
+
statusCode: value["statusCode"],
|
|
5692
|
+
ts: value["ts"],
|
|
5693
|
+
data: GetTenantHealth200ResponseDataToJSON(value["data"])
|
|
4528
5694
|
};
|
|
4529
5695
|
}
|
|
4530
5696
|
|
|
4531
|
-
// models/
|
|
4532
|
-
function
|
|
5697
|
+
// models/ListPlans200ResponseDataPlansInnerFeatures.ts
|
|
5698
|
+
function instanceOfListPlans200ResponseDataPlansInnerFeatures(value) {
|
|
4533
5699
|
return true;
|
|
4534
5700
|
}
|
|
4535
|
-
function
|
|
4536
|
-
return
|
|
5701
|
+
function ListPlans200ResponseDataPlansInnerFeaturesFromJSON(json) {
|
|
5702
|
+
return ListPlans200ResponseDataPlansInnerFeaturesFromJSONTyped(json, false);
|
|
4537
5703
|
}
|
|
4538
|
-
function
|
|
5704
|
+
function ListPlans200ResponseDataPlansInnerFeaturesFromJSONTyped(json, ignoreDiscriminator) {
|
|
4539
5705
|
if (json == null) {
|
|
4540
5706
|
return json;
|
|
4541
5707
|
}
|
|
4542
5708
|
return {
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
5709
|
+
clickhouseEnabled: json["clickhouseEnabled"] == null ? void 0 : json["clickhouseEnabled"],
|
|
5710
|
+
advancedAnalytics: json["advancedAnalytics"] == null ? void 0 : json["advancedAnalytics"],
|
|
5711
|
+
cohortAnalysis: json["cohortAnalysis"] == null ? void 0 : json["cohortAnalysis"],
|
|
5712
|
+
churnPrediction: json["churnPrediction"] == null ? void 0 : json["churnPrediction"],
|
|
5713
|
+
slackAlerts: json["slackAlerts"] == null ? void 0 : json["slackAlerts"],
|
|
5714
|
+
pagerdutyAlerts: json["pagerdutyAlerts"] == null ? void 0 : json["pagerdutyAlerts"],
|
|
5715
|
+
customWebhooks: json["customWebhooks"] == null ? void 0 : json["customWebhooks"],
|
|
5716
|
+
apiAccess: json["apiAccess"] == null ? void 0 : json["apiAccess"],
|
|
5717
|
+
whiteLabel: json["whiteLabel"] == null ? void 0 : json["whiteLabel"],
|
|
5718
|
+
auditLogExport: json["auditLogExport"] == null ? void 0 : json["auditLogExport"],
|
|
5719
|
+
ssoProviders: json["ssoProviders"] == null ? void 0 : json["ssoProviders"],
|
|
5720
|
+
transactionSync: json["transactionSync"] == null ? void 0 : json["transactionSync"]
|
|
4550
5721
|
};
|
|
4551
5722
|
}
|
|
4552
|
-
function
|
|
5723
|
+
function ListPlans200ResponseDataPlansInnerFeaturesToJSON(value) {
|
|
4553
5724
|
if (value == null) {
|
|
4554
5725
|
return value;
|
|
4555
5726
|
}
|
|
4556
5727
|
return {
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
5728
|
+
clickhouseEnabled: value["clickhouseEnabled"],
|
|
5729
|
+
advancedAnalytics: value["advancedAnalytics"],
|
|
5730
|
+
cohortAnalysis: value["cohortAnalysis"],
|
|
5731
|
+
churnPrediction: value["churnPrediction"],
|
|
5732
|
+
slackAlerts: value["slackAlerts"],
|
|
5733
|
+
pagerdutyAlerts: value["pagerdutyAlerts"],
|
|
5734
|
+
customWebhooks: value["customWebhooks"],
|
|
5735
|
+
apiAccess: value["apiAccess"],
|
|
5736
|
+
whiteLabel: value["whiteLabel"],
|
|
5737
|
+
auditLogExport: value["auditLogExport"],
|
|
5738
|
+
ssoProviders: value["ssoProviders"],
|
|
5739
|
+
transactionSync: value["transactionSync"]
|
|
4564
5740
|
};
|
|
4565
5741
|
}
|
|
4566
5742
|
|
|
4567
|
-
// models/
|
|
4568
|
-
function
|
|
5743
|
+
// models/ListPlans200ResponseDataPlansInnerLimits.ts
|
|
5744
|
+
function instanceOfListPlans200ResponseDataPlansInnerLimits(value) {
|
|
4569
5745
|
return true;
|
|
4570
5746
|
}
|
|
4571
|
-
function
|
|
4572
|
-
return
|
|
5747
|
+
function ListPlans200ResponseDataPlansInnerLimitsFromJSON(json) {
|
|
5748
|
+
return ListPlans200ResponseDataPlansInnerLimitsFromJSONTyped(json, false);
|
|
4573
5749
|
}
|
|
4574
|
-
function
|
|
5750
|
+
function ListPlans200ResponseDataPlansInnerLimitsFromJSONTyped(json, ignoreDiscriminator) {
|
|
4575
5751
|
if (json == null) {
|
|
4576
5752
|
return json;
|
|
4577
5753
|
}
|
|
4578
5754
|
return {
|
|
4579
|
-
|
|
4580
|
-
|
|
4581
|
-
|
|
5755
|
+
maxWebhookEventsPerHour: json["maxWebhookEventsPerHour"] == null ? void 0 : json["maxWebhookEventsPerHour"],
|
|
5756
|
+
maxApiCallsPerHour: json["maxApiCallsPerHour"] == null ? void 0 : json["maxApiCallsPerHour"],
|
|
5757
|
+
maxTeamMembers: json["maxTeamMembers"] == null ? void 0 : json["maxTeamMembers"],
|
|
5758
|
+
auditLogRetentionDays: json["auditLogRetentionDays"] == null ? void 0 : json["auditLogRetentionDays"],
|
|
5759
|
+
maxSyncedObjects: json["maxSyncedObjects"] == null ? void 0 : json["maxSyncedObjects"]
|
|
4582
5760
|
};
|
|
4583
5761
|
}
|
|
4584
|
-
function
|
|
5762
|
+
function ListPlans200ResponseDataPlansInnerLimitsToJSON(value) {
|
|
4585
5763
|
if (value == null) {
|
|
4586
5764
|
return value;
|
|
4587
5765
|
}
|
|
4588
5766
|
return {
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
5767
|
+
maxWebhookEventsPerHour: value["maxWebhookEventsPerHour"],
|
|
5768
|
+
maxApiCallsPerHour: value["maxApiCallsPerHour"],
|
|
5769
|
+
maxTeamMembers: value["maxTeamMembers"],
|
|
5770
|
+
auditLogRetentionDays: value["auditLogRetentionDays"],
|
|
5771
|
+
maxSyncedObjects: value["maxSyncedObjects"]
|
|
4592
5772
|
};
|
|
4593
5773
|
}
|
|
4594
5774
|
|
|
4595
|
-
// models/
|
|
4596
|
-
var
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
5775
|
+
// models/GetTenantPlan200ResponseData.ts
|
|
5776
|
+
var GetTenantPlan200ResponseDataPlanEnum = {
|
|
5777
|
+
Free: "FREE",
|
|
5778
|
+
Pro: "PRO",
|
|
5779
|
+
Enterprise: "ENTERPRISE"
|
|
4600
5780
|
};
|
|
4601
|
-
|
|
5781
|
+
var GetTenantPlan200ResponseDataComplianceTierEnum = {
|
|
5782
|
+
Basic: "BASIC",
|
|
5783
|
+
Soc2: "SOC2",
|
|
5784
|
+
Hipaa: "HIPAA"
|
|
5785
|
+
};
|
|
5786
|
+
function instanceOfGetTenantPlan200ResponseData(value) {
|
|
4602
5787
|
return true;
|
|
4603
5788
|
}
|
|
4604
|
-
function
|
|
4605
|
-
return
|
|
5789
|
+
function GetTenantPlan200ResponseDataFromJSON(json) {
|
|
5790
|
+
return GetTenantPlan200ResponseDataFromJSONTyped(json, false);
|
|
4606
5791
|
}
|
|
4607
|
-
function
|
|
5792
|
+
function GetTenantPlan200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4608
5793
|
if (json == null) {
|
|
4609
5794
|
return json;
|
|
4610
5795
|
}
|
|
4611
5796
|
return {
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
syncEnabled: json["syncEnabled"] == null ? void 0 : json["syncEnabled"],
|
|
4618
|
-
webhookEnabled: json["webhookEnabled"] == null ? void 0 : json["webhookEnabled"],
|
|
4619
|
-
autoExpandLists: json["autoExpandLists"] == null ? void 0 : json["autoExpandLists"],
|
|
4620
|
-
backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"],
|
|
4621
|
-
maxWebhookEventsPerHour: json["maxWebhookEventsPerHour"] == null ? void 0 : json["maxWebhookEventsPerHour"],
|
|
4622
|
-
maxApiCallsPerHour: json["maxApiCallsPerHour"] == null ? void 0 : json["maxApiCallsPerHour"],
|
|
4623
|
-
createdAt: json["createdAt"] == null ? void 0 : new Date(json["createdAt"]),
|
|
4624
|
-
updatedAt: json["updatedAt"] == null ? void 0 : new Date(json["updatedAt"]),
|
|
4625
|
-
lastSyncAt: json["lastSyncAt"] == null ? void 0 : new Date(json["lastSyncAt"])
|
|
5797
|
+
plan: json["plan"] == null ? void 0 : json["plan"],
|
|
5798
|
+
complianceTier: json["complianceTier"] == null ? void 0 : json["complianceTier"],
|
|
5799
|
+
limits: json["limits"] == null ? void 0 : ListPlans200ResponseDataPlansInnerLimitsFromJSON(json["limits"]),
|
|
5800
|
+
features: json["features"] == null ? void 0 : ListPlans200ResponseDataPlansInnerFeaturesFromJSON(json["features"]),
|
|
5801
|
+
hasOverrides: json["hasOverrides"] == null ? void 0 : json["hasOverrides"]
|
|
4626
5802
|
};
|
|
4627
5803
|
}
|
|
4628
|
-
function
|
|
5804
|
+
function GetTenantPlan200ResponseDataToJSON(value) {
|
|
4629
5805
|
if (value == null) {
|
|
4630
5806
|
return value;
|
|
4631
5807
|
}
|
|
4632
5808
|
return {
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
syncEnabled: value["syncEnabled"],
|
|
4639
|
-
webhookEnabled: value["webhookEnabled"],
|
|
4640
|
-
autoExpandLists: value["autoExpandLists"],
|
|
4641
|
-
backfillRelatedEntities: value["backfillRelatedEntities"],
|
|
4642
|
-
maxWebhookEventsPerHour: value["maxWebhookEventsPerHour"],
|
|
4643
|
-
maxApiCallsPerHour: value["maxApiCallsPerHour"],
|
|
4644
|
-
createdAt: value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
4645
|
-
updatedAt: value["updatedAt"] == null ? void 0 : value["updatedAt"].toISOString(),
|
|
4646
|
-
lastSyncAt: value["lastSyncAt"] == null ? void 0 : value["lastSyncAt"].toISOString()
|
|
5809
|
+
plan: value["plan"],
|
|
5810
|
+
complianceTier: value["complianceTier"],
|
|
5811
|
+
limits: ListPlans200ResponseDataPlansInnerLimitsToJSON(value["limits"]),
|
|
5812
|
+
features: ListPlans200ResponseDataPlansInnerFeaturesToJSON(value["features"]),
|
|
5813
|
+
hasOverrides: value["hasOverrides"]
|
|
4647
5814
|
};
|
|
4648
5815
|
}
|
|
4649
5816
|
|
|
4650
|
-
// models/
|
|
4651
|
-
function
|
|
5817
|
+
// models/GetTenantPlan200Response.ts
|
|
5818
|
+
function instanceOfGetTenantPlan200Response(value) {
|
|
4652
5819
|
return true;
|
|
4653
5820
|
}
|
|
4654
|
-
function
|
|
4655
|
-
return
|
|
5821
|
+
function GetTenantPlan200ResponseFromJSON(json) {
|
|
5822
|
+
return GetTenantPlan200ResponseFromJSONTyped(json, false);
|
|
4656
5823
|
}
|
|
4657
|
-
function
|
|
5824
|
+
function GetTenantPlan200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4658
5825
|
if (json == null) {
|
|
4659
5826
|
return json;
|
|
4660
5827
|
}
|
|
4661
5828
|
return {
|
|
4662
5829
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
4663
5830
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
4664
|
-
data: json["data"] == null ? void 0 :
|
|
5831
|
+
data: json["data"] == null ? void 0 : GetTenantPlan200ResponseDataFromJSON(json["data"])
|
|
4665
5832
|
};
|
|
4666
5833
|
}
|
|
4667
|
-
function
|
|
5834
|
+
function GetTenantPlan200ResponseToJSON(value) {
|
|
4668
5835
|
if (value == null) {
|
|
4669
5836
|
return value;
|
|
4670
5837
|
}
|
|
4671
5838
|
return {
|
|
4672
5839
|
statusCode: value["statusCode"],
|
|
4673
5840
|
ts: value["ts"],
|
|
4674
|
-
data:
|
|
5841
|
+
data: GetTenantPlan200ResponseDataToJSON(value["data"])
|
|
4675
5842
|
};
|
|
4676
5843
|
}
|
|
4677
5844
|
|
|
4678
|
-
// models/
|
|
4679
|
-
function
|
|
4680
|
-
if (!("slug" in value) || value["slug"] === void 0) return false;
|
|
4681
|
-
if (!("name" in value) || value["name"] === void 0) return false;
|
|
4682
|
-
if (!("stripeAccountId" in value) || value["stripeAccountId"] === void 0) return false;
|
|
4683
|
-
if (!("stripeSecretKey" in value) || value["stripeSecretKey"] === void 0) return false;
|
|
4684
|
-
if (!("stripeWebhookSecret" in value) || value["stripeWebhookSecret"] === void 0) return false;
|
|
5845
|
+
// models/GetTenantStats200ResponseDataInner.ts
|
|
5846
|
+
function instanceOfGetTenantStats200ResponseDataInner(value) {
|
|
4685
5847
|
return true;
|
|
4686
5848
|
}
|
|
4687
|
-
function
|
|
4688
|
-
return
|
|
5849
|
+
function GetTenantStats200ResponseDataInnerFromJSON(json) {
|
|
5850
|
+
return GetTenantStats200ResponseDataInnerFromJSONTyped(json, false);
|
|
4689
5851
|
}
|
|
4690
|
-
function
|
|
5852
|
+
function GetTenantStats200ResponseDataInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
4691
5853
|
if (json == null) {
|
|
4692
5854
|
return json;
|
|
4693
5855
|
}
|
|
4694
5856
|
return {
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
5857
|
+
date: json["date"] == null ? void 0 : new Date(json["date"]),
|
|
5858
|
+
webhookEventsProcessed: json["webhookEventsProcessed"] == null ? void 0 : json["webhookEventsProcessed"],
|
|
5859
|
+
apiCallsMade: json["apiCallsMade"] == null ? void 0 : json["apiCallsMade"],
|
|
5860
|
+
recordsSynced: json["recordsSynced"] == null ? void 0 : json["recordsSynced"],
|
|
5861
|
+
avgWebhookProcessingMs: json["avgWebhookProcessingMs"] == null ? void 0 : json["avgWebhookProcessingMs"],
|
|
5862
|
+
maxWebhookProcessingMs: json["maxWebhookProcessingMs"] == null ? void 0 : json["maxWebhookProcessingMs"],
|
|
5863
|
+
syncErrorsCount: json["syncErrorsCount"] == null ? void 0 : json["syncErrorsCount"],
|
|
5864
|
+
databaseQueriesCount: json["databaseQueriesCount"] == null ? void 0 : json["databaseQueriesCount"],
|
|
5865
|
+
avgDatabaseQueryMs: json["avgDatabaseQueryMs"] == null ? void 0 : json["avgDatabaseQueryMs"]
|
|
4703
5866
|
};
|
|
4704
5867
|
}
|
|
4705
|
-
function
|
|
5868
|
+
function GetTenantStats200ResponseDataInnerToJSON(value) {
|
|
4706
5869
|
if (value == null) {
|
|
4707
5870
|
return value;
|
|
4708
5871
|
}
|
|
4709
5872
|
return {
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
5873
|
+
date: value["date"] == null ? void 0 : value["date"].toISOString().substring(0, 10),
|
|
5874
|
+
webhookEventsProcessed: value["webhookEventsProcessed"],
|
|
5875
|
+
apiCallsMade: value["apiCallsMade"],
|
|
5876
|
+
recordsSynced: value["recordsSynced"],
|
|
5877
|
+
avgWebhookProcessingMs: value["avgWebhookProcessingMs"],
|
|
5878
|
+
maxWebhookProcessingMs: value["maxWebhookProcessingMs"],
|
|
5879
|
+
syncErrorsCount: value["syncErrorsCount"],
|
|
5880
|
+
databaseQueriesCount: value["databaseQueriesCount"],
|
|
5881
|
+
avgDatabaseQueryMs: value["avgDatabaseQueryMs"]
|
|
4718
5882
|
};
|
|
4719
5883
|
}
|
|
4720
5884
|
|
|
4721
|
-
// models/
|
|
4722
|
-
function
|
|
5885
|
+
// models/GetTenantStats200Response.ts
|
|
5886
|
+
function instanceOfGetTenantStats200Response(value) {
|
|
4723
5887
|
return true;
|
|
4724
5888
|
}
|
|
4725
|
-
function
|
|
4726
|
-
return
|
|
5889
|
+
function GetTenantStats200ResponseFromJSON(json) {
|
|
5890
|
+
return GetTenantStats200ResponseFromJSONTyped(json, false);
|
|
4727
5891
|
}
|
|
4728
|
-
function
|
|
4729
|
-
|
|
5892
|
+
function GetTenantStats200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5893
|
+
if (json == null) {
|
|
5894
|
+
return json;
|
|
5895
|
+
}
|
|
5896
|
+
return {
|
|
5897
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5898
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5899
|
+
data: json["data"] == null ? void 0 : json["data"].map(GetTenantStats200ResponseDataInnerFromJSON)
|
|
5900
|
+
};
|
|
4730
5901
|
}
|
|
4731
|
-
function
|
|
4732
|
-
|
|
5902
|
+
function GetTenantStats200ResponseToJSON(value) {
|
|
5903
|
+
if (value == null) {
|
|
5904
|
+
return value;
|
|
5905
|
+
}
|
|
5906
|
+
return {
|
|
5907
|
+
statusCode: value["statusCode"],
|
|
5908
|
+
ts: value["ts"],
|
|
5909
|
+
data: value["data"] == null ? void 0 : value["data"].map(GetTenantStats200ResponseDataInnerToJSON)
|
|
5910
|
+
};
|
|
4733
5911
|
}
|
|
4734
5912
|
|
|
4735
|
-
// models/
|
|
4736
|
-
function
|
|
4737
|
-
if (!("statusCode" in value) || value["statusCode"] === void 0) return false;
|
|
4738
|
-
if (!("error" in value) || value["error"] === void 0) return false;
|
|
4739
|
-
if (!("message" in value) || value["message"] === void 0) return false;
|
|
5913
|
+
// models/GetTenantUsage200ResponseDataCurrentPeriod.ts
|
|
5914
|
+
function instanceOfGetTenantUsage200ResponseDataCurrentPeriod(value) {
|
|
4740
5915
|
return true;
|
|
4741
5916
|
}
|
|
4742
|
-
function
|
|
4743
|
-
return
|
|
5917
|
+
function GetTenantUsage200ResponseDataCurrentPeriodFromJSON(json) {
|
|
5918
|
+
return GetTenantUsage200ResponseDataCurrentPeriodFromJSONTyped(json, false);
|
|
4744
5919
|
}
|
|
4745
|
-
function
|
|
5920
|
+
function GetTenantUsage200ResponseDataCurrentPeriodFromJSONTyped(json, ignoreDiscriminator) {
|
|
4746
5921
|
if (json == null) {
|
|
4747
5922
|
return json;
|
|
4748
5923
|
}
|
|
4749
5924
|
return {
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
error: json["error"],
|
|
4753
|
-
message: json["message"],
|
|
4754
|
-
correlationId: json["correlationId"] == null ? void 0 : json["correlationId"],
|
|
4755
|
-
timestamp: json["timestamp"] == null ? void 0 : new Date(json["timestamp"]),
|
|
4756
|
-
details: json["details"] == null ? void 0 : Def0DetailsFromJSON(json["details"])
|
|
5925
|
+
start: json["start"] == null ? void 0 : new Date(json["start"]),
|
|
5926
|
+
end: json["end"] == null ? void 0 : new Date(json["end"])
|
|
4757
5927
|
};
|
|
4758
5928
|
}
|
|
4759
|
-
function
|
|
5929
|
+
function GetTenantUsage200ResponseDataCurrentPeriodToJSON(value) {
|
|
4760
5930
|
if (value == null) {
|
|
4761
5931
|
return value;
|
|
4762
5932
|
}
|
|
4763
5933
|
return {
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
5934
|
+
start: value["start"] == null ? void 0 : value["start"].toISOString(),
|
|
5935
|
+
end: value["end"] == null ? void 0 : value["end"].toISOString()
|
|
5936
|
+
};
|
|
5937
|
+
}
|
|
5938
|
+
|
|
5939
|
+
// models/GetTenantUsage200ResponseDataUsageWebhookEvents.ts
|
|
5940
|
+
function instanceOfGetTenantUsage200ResponseDataUsageWebhookEvents(value) {
|
|
5941
|
+
return true;
|
|
5942
|
+
}
|
|
5943
|
+
function GetTenantUsage200ResponseDataUsageWebhookEventsFromJSON(json) {
|
|
5944
|
+
return GetTenantUsage200ResponseDataUsageWebhookEventsFromJSONTyped(json, false);
|
|
5945
|
+
}
|
|
5946
|
+
function GetTenantUsage200ResponseDataUsageWebhookEventsFromJSONTyped(json, ignoreDiscriminator) {
|
|
5947
|
+
if (json == null) {
|
|
5948
|
+
return json;
|
|
5949
|
+
}
|
|
5950
|
+
return {
|
|
5951
|
+
used: json["used"] == null ? void 0 : json["used"],
|
|
5952
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
5953
|
+
remaining: json["remaining"] == null ? void 0 : json["remaining"],
|
|
5954
|
+
percentUsed: json["percentUsed"] == null ? void 0 : json["percentUsed"]
|
|
5955
|
+
};
|
|
5956
|
+
}
|
|
5957
|
+
function GetTenantUsage200ResponseDataUsageWebhookEventsToJSON(value) {
|
|
5958
|
+
if (value == null) {
|
|
5959
|
+
return value;
|
|
5960
|
+
}
|
|
5961
|
+
return {
|
|
5962
|
+
used: value["used"],
|
|
5963
|
+
limit: value["limit"],
|
|
5964
|
+
remaining: value["remaining"],
|
|
5965
|
+
percentUsed: value["percentUsed"]
|
|
4771
5966
|
};
|
|
4772
5967
|
}
|
|
4773
5968
|
|
|
4774
|
-
// models/
|
|
4775
|
-
function
|
|
5969
|
+
// models/GetTenantUsage200ResponseDataUsage.ts
|
|
5970
|
+
function instanceOfGetTenantUsage200ResponseDataUsage(value) {
|
|
4776
5971
|
return true;
|
|
4777
5972
|
}
|
|
4778
|
-
function
|
|
4779
|
-
return
|
|
5973
|
+
function GetTenantUsage200ResponseDataUsageFromJSON(json) {
|
|
5974
|
+
return GetTenantUsage200ResponseDataUsageFromJSONTyped(json, false);
|
|
4780
5975
|
}
|
|
4781
|
-
function
|
|
5976
|
+
function GetTenantUsage200ResponseDataUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
4782
5977
|
if (json == null) {
|
|
4783
5978
|
return json;
|
|
4784
5979
|
}
|
|
4785
5980
|
return {
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
|
|
5981
|
+
webhookEvents: json["webhookEvents"] == null ? void 0 : GetTenantUsage200ResponseDataUsageWebhookEventsFromJSON(json["webhookEvents"]),
|
|
5982
|
+
apiCalls: json["apiCalls"] == null ? void 0 : GetTenantUsage200ResponseDataUsageWebhookEventsFromJSON(json["apiCalls"])
|
|
4789
5983
|
};
|
|
4790
5984
|
}
|
|
4791
|
-
function
|
|
5985
|
+
function GetTenantUsage200ResponseDataUsageToJSON(value) {
|
|
4792
5986
|
if (value == null) {
|
|
4793
5987
|
return value;
|
|
4794
5988
|
}
|
|
4795
5989
|
return {
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
data: ListTenants200ResponseDataInnerToJSON(value["data"])
|
|
5990
|
+
webhookEvents: GetTenantUsage200ResponseDataUsageWebhookEventsToJSON(value["webhookEvents"]),
|
|
5991
|
+
apiCalls: GetTenantUsage200ResponseDataUsageWebhookEventsToJSON(value["apiCalls"])
|
|
4799
5992
|
};
|
|
4800
5993
|
}
|
|
4801
5994
|
|
|
4802
|
-
// models/
|
|
4803
|
-
|
|
4804
|
-
Healthy: "healthy",
|
|
4805
|
-
Degraded: "degraded",
|
|
4806
|
-
Unhealthy: "unhealthy"
|
|
4807
|
-
};
|
|
4808
|
-
function instanceOfGetTenantHealth200ResponseData(value) {
|
|
5995
|
+
// models/GetTenantUsage200ResponseDataRateLimitInfoApiCalls.ts
|
|
5996
|
+
function instanceOfGetTenantUsage200ResponseDataRateLimitInfoApiCalls(value) {
|
|
4809
5997
|
return true;
|
|
4810
5998
|
}
|
|
4811
|
-
function
|
|
4812
|
-
return
|
|
5999
|
+
function GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSON(json) {
|
|
6000
|
+
return GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSONTyped(json, false);
|
|
4813
6001
|
}
|
|
4814
|
-
function
|
|
6002
|
+
function GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSONTyped(json, ignoreDiscriminator) {
|
|
4815
6003
|
if (json == null) {
|
|
4816
6004
|
return json;
|
|
4817
6005
|
}
|
|
4818
6006
|
return {
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
errorCount: json["errorCount"] == null ? void 0 : json["errorCount"],
|
|
4823
|
-
webhookBacklog: json["webhookBacklog"] == null ? void 0 : json["webhookBacklog"],
|
|
4824
|
-
lastError: json["lastError"] == null ? void 0 : json["lastError"]
|
|
6007
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
6008
|
+
remaining: json["remaining"] == null ? void 0 : json["remaining"],
|
|
6009
|
+
resetAt: json["resetAt"] == null ? void 0 : new Date(json["resetAt"])
|
|
4825
6010
|
};
|
|
4826
6011
|
}
|
|
4827
|
-
function
|
|
6012
|
+
function GetTenantUsage200ResponseDataRateLimitInfoApiCallsToJSON(value) {
|
|
4828
6013
|
if (value == null) {
|
|
4829
6014
|
return value;
|
|
4830
6015
|
}
|
|
4831
6016
|
return {
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
errorCount: value["errorCount"],
|
|
4836
|
-
webhookBacklog: value["webhookBacklog"],
|
|
4837
|
-
lastError: value["lastError"]
|
|
6017
|
+
limit: value["limit"],
|
|
6018
|
+
remaining: value["remaining"],
|
|
6019
|
+
resetAt: value["resetAt"] == null ? void 0 : value["resetAt"].toISOString()
|
|
4838
6020
|
};
|
|
4839
6021
|
}
|
|
4840
6022
|
|
|
4841
|
-
// models/
|
|
4842
|
-
function
|
|
6023
|
+
// models/GetTenantUsage200ResponseDataRateLimitInfo.ts
|
|
6024
|
+
function instanceOfGetTenantUsage200ResponseDataRateLimitInfo(value) {
|
|
4843
6025
|
return true;
|
|
4844
6026
|
}
|
|
4845
|
-
function
|
|
4846
|
-
return
|
|
6027
|
+
function GetTenantUsage200ResponseDataRateLimitInfoFromJSON(json) {
|
|
6028
|
+
return GetTenantUsage200ResponseDataRateLimitInfoFromJSONTyped(json, false);
|
|
4847
6029
|
}
|
|
4848
|
-
function
|
|
6030
|
+
function GetTenantUsage200ResponseDataRateLimitInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
4849
6031
|
if (json == null) {
|
|
4850
6032
|
return json;
|
|
4851
6033
|
}
|
|
4852
6034
|
return {
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
data: json["data"] == null ? void 0 : GetTenantHealth200ResponseDataFromJSON(json["data"])
|
|
6035
|
+
apiCalls: json["apiCalls"] == null ? void 0 : GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSON(json["apiCalls"]),
|
|
6036
|
+
webhookEvents: json["webhookEvents"] == null ? void 0 : GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSON(json["webhookEvents"])
|
|
4856
6037
|
};
|
|
4857
6038
|
}
|
|
4858
|
-
function
|
|
6039
|
+
function GetTenantUsage200ResponseDataRateLimitInfoToJSON(value) {
|
|
4859
6040
|
if (value == null) {
|
|
4860
6041
|
return value;
|
|
4861
6042
|
}
|
|
4862
6043
|
return {
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
data: GetTenantHealth200ResponseDataToJSON(value["data"])
|
|
6044
|
+
apiCalls: GetTenantUsage200ResponseDataRateLimitInfoApiCallsToJSON(value["apiCalls"]),
|
|
6045
|
+
webhookEvents: GetTenantUsage200ResponseDataRateLimitInfoApiCallsToJSON(value["webhookEvents"])
|
|
4866
6046
|
};
|
|
4867
6047
|
}
|
|
4868
6048
|
|
|
4869
|
-
// models/
|
|
4870
|
-
|
|
6049
|
+
// models/GetTenantUsage200ResponseData.ts
|
|
6050
|
+
var GetTenantUsage200ResponseDataPlanEnum = {
|
|
6051
|
+
Free: "FREE",
|
|
6052
|
+
Pro: "PRO",
|
|
6053
|
+
Enterprise: "ENTERPRISE"
|
|
6054
|
+
};
|
|
6055
|
+
function instanceOfGetTenantUsage200ResponseData(value) {
|
|
4871
6056
|
return true;
|
|
4872
6057
|
}
|
|
4873
|
-
function
|
|
4874
|
-
return
|
|
6058
|
+
function GetTenantUsage200ResponseDataFromJSON(json) {
|
|
6059
|
+
return GetTenantUsage200ResponseDataFromJSONTyped(json, false);
|
|
4875
6060
|
}
|
|
4876
|
-
function
|
|
6061
|
+
function GetTenantUsage200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
4877
6062
|
if (json == null) {
|
|
4878
6063
|
return json;
|
|
4879
6064
|
}
|
|
4880
6065
|
return {
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
maxWebhookProcessingMs: json["maxWebhookProcessingMs"] == null ? void 0 : json["maxWebhookProcessingMs"],
|
|
4887
|
-
syncErrorsCount: json["syncErrorsCount"] == null ? void 0 : json["syncErrorsCount"],
|
|
4888
|
-
databaseQueriesCount: json["databaseQueriesCount"] == null ? void 0 : json["databaseQueriesCount"],
|
|
4889
|
-
avgDatabaseQueryMs: json["avgDatabaseQueryMs"] == null ? void 0 : json["avgDatabaseQueryMs"]
|
|
6066
|
+
tenantId: json["tenantId"] == null ? void 0 : json["tenantId"],
|
|
6067
|
+
plan: json["plan"] == null ? void 0 : json["plan"],
|
|
6068
|
+
currentPeriod: json["currentPeriod"] == null ? void 0 : GetTenantUsage200ResponseDataCurrentPeriodFromJSON(json["currentPeriod"]),
|
|
6069
|
+
usage: json["usage"] == null ? void 0 : GetTenantUsage200ResponseDataUsageFromJSON(json["usage"]),
|
|
6070
|
+
rateLimitInfo: json["rateLimitInfo"] == null ? void 0 : GetTenantUsage200ResponseDataRateLimitInfoFromJSON(json["rateLimitInfo"])
|
|
4890
6071
|
};
|
|
4891
6072
|
}
|
|
4892
|
-
function
|
|
6073
|
+
function GetTenantUsage200ResponseDataToJSON(value) {
|
|
4893
6074
|
if (value == null) {
|
|
4894
6075
|
return value;
|
|
4895
6076
|
}
|
|
4896
6077
|
return {
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
maxWebhookProcessingMs: value["maxWebhookProcessingMs"],
|
|
4903
|
-
syncErrorsCount: value["syncErrorsCount"],
|
|
4904
|
-
databaseQueriesCount: value["databaseQueriesCount"],
|
|
4905
|
-
avgDatabaseQueryMs: value["avgDatabaseQueryMs"]
|
|
6078
|
+
tenantId: value["tenantId"],
|
|
6079
|
+
plan: value["plan"],
|
|
6080
|
+
currentPeriod: GetTenantUsage200ResponseDataCurrentPeriodToJSON(value["currentPeriod"]),
|
|
6081
|
+
usage: GetTenantUsage200ResponseDataUsageToJSON(value["usage"]),
|
|
6082
|
+
rateLimitInfo: GetTenantUsage200ResponseDataRateLimitInfoToJSON(value["rateLimitInfo"])
|
|
4906
6083
|
};
|
|
4907
6084
|
}
|
|
4908
6085
|
|
|
4909
|
-
// models/
|
|
4910
|
-
function
|
|
6086
|
+
// models/GetTenantUsage200Response.ts
|
|
6087
|
+
function instanceOfGetTenantUsage200Response(value) {
|
|
4911
6088
|
return true;
|
|
4912
6089
|
}
|
|
4913
|
-
function
|
|
4914
|
-
return
|
|
6090
|
+
function GetTenantUsage200ResponseFromJSON(json) {
|
|
6091
|
+
return GetTenantUsage200ResponseFromJSONTyped(json, false);
|
|
4915
6092
|
}
|
|
4916
|
-
function
|
|
6093
|
+
function GetTenantUsage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
4917
6094
|
if (json == null) {
|
|
4918
6095
|
return json;
|
|
4919
6096
|
}
|
|
4920
6097
|
return {
|
|
4921
6098
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
4922
6099
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
4923
|
-
data: json["data"] == null ? void 0 : json["data"]
|
|
6100
|
+
data: json["data"] == null ? void 0 : GetTenantUsage200ResponseDataFromJSON(json["data"])
|
|
4924
6101
|
};
|
|
4925
6102
|
}
|
|
4926
|
-
function
|
|
6103
|
+
function GetTenantUsage200ResponseToJSON(value) {
|
|
4927
6104
|
if (value == null) {
|
|
4928
6105
|
return value;
|
|
4929
6106
|
}
|
|
4930
6107
|
return {
|
|
4931
6108
|
statusCode: value["statusCode"],
|
|
4932
6109
|
ts: value["ts"],
|
|
4933
|
-
data: value["data"]
|
|
6110
|
+
data: GetTenantUsage200ResponseDataToJSON(value["data"])
|
|
4934
6111
|
};
|
|
4935
6112
|
}
|
|
4936
6113
|
|
|
@@ -4998,248 +6175,228 @@ function HealthReadyGet200ResponseToJSON(value) {
|
|
|
4998
6175
|
};
|
|
4999
6176
|
}
|
|
5000
6177
|
|
|
5001
|
-
// models/
|
|
5002
|
-
function
|
|
6178
|
+
// models/ListPlans200ResponseDataPlansInnerPricing.ts
|
|
6179
|
+
function instanceOfListPlans200ResponseDataPlansInnerPricing(value) {
|
|
5003
6180
|
return true;
|
|
5004
6181
|
}
|
|
5005
|
-
function
|
|
5006
|
-
return
|
|
6182
|
+
function ListPlans200ResponseDataPlansInnerPricingFromJSON(json) {
|
|
6183
|
+
return ListPlans200ResponseDataPlansInnerPricingFromJSONTyped(json, false);
|
|
5007
6184
|
}
|
|
5008
|
-
function
|
|
6185
|
+
function ListPlans200ResponseDataPlansInnerPricingFromJSONTyped(json, ignoreDiscriminator) {
|
|
5009
6186
|
if (json == null) {
|
|
5010
6187
|
return json;
|
|
5011
6188
|
}
|
|
5012
6189
|
return {
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
6190
|
+
monthlyPrice: json["monthlyPrice"] == null ? void 0 : json["monthlyPrice"],
|
|
6191
|
+
yearlyPrice: json["yearlyPrice"] == null ? void 0 : json["yearlyPrice"],
|
|
6192
|
+
description: json["description"] == null ? void 0 : json["description"]
|
|
5016
6193
|
};
|
|
5017
6194
|
}
|
|
5018
|
-
function
|
|
6195
|
+
function ListPlans200ResponseDataPlansInnerPricingToJSON(value) {
|
|
5019
6196
|
if (value == null) {
|
|
5020
6197
|
return value;
|
|
5021
6198
|
}
|
|
5022
6199
|
return {
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
6200
|
+
monthlyPrice: value["monthlyPrice"],
|
|
6201
|
+
yearlyPrice: value["yearlyPrice"],
|
|
6202
|
+
description: value["description"]
|
|
5026
6203
|
};
|
|
5027
6204
|
}
|
|
5028
6205
|
|
|
5029
|
-
// models/
|
|
5030
|
-
|
|
6206
|
+
// models/ListPlans200ResponseDataPlansInner.ts
|
|
6207
|
+
var ListPlans200ResponseDataPlansInnerNameEnum = {
|
|
6208
|
+
Free: "FREE",
|
|
6209
|
+
Pro: "PRO",
|
|
6210
|
+
Enterprise: "ENTERPRISE"
|
|
6211
|
+
};
|
|
6212
|
+
function instanceOfListPlans200ResponseDataPlansInner(value) {
|
|
5031
6213
|
return true;
|
|
5032
6214
|
}
|
|
5033
|
-
function
|
|
5034
|
-
return
|
|
6215
|
+
function ListPlans200ResponseDataPlansInnerFromJSON(json) {
|
|
6216
|
+
return ListPlans200ResponseDataPlansInnerFromJSONTyped(json, false);
|
|
5035
6217
|
}
|
|
5036
|
-
function
|
|
6218
|
+
function ListPlans200ResponseDataPlansInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
5037
6219
|
if (json == null) {
|
|
5038
6220
|
return json;
|
|
5039
6221
|
}
|
|
5040
6222
|
return {
|
|
5041
|
-
|
|
6223
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
6224
|
+
limits: json["limits"] == null ? void 0 : ListPlans200ResponseDataPlansInnerLimitsFromJSON(json["limits"]),
|
|
6225
|
+
features: json["features"] == null ? void 0 : ListPlans200ResponseDataPlansInnerFeaturesFromJSON(json["features"]),
|
|
6226
|
+
pricing: json["pricing"] == null ? void 0 : ListPlans200ResponseDataPlansInnerPricingFromJSON(json["pricing"])
|
|
5042
6227
|
};
|
|
5043
6228
|
}
|
|
5044
|
-
function
|
|
6229
|
+
function ListPlans200ResponseDataPlansInnerToJSON(value) {
|
|
5045
6230
|
if (value == null) {
|
|
5046
6231
|
return value;
|
|
5047
6232
|
}
|
|
5048
6233
|
return {
|
|
5049
|
-
|
|
6234
|
+
name: value["name"],
|
|
6235
|
+
limits: ListPlans200ResponseDataPlansInnerLimitsToJSON(value["limits"]),
|
|
6236
|
+
features: ListPlans200ResponseDataPlansInnerFeaturesToJSON(value["features"]),
|
|
6237
|
+
pricing: ListPlans200ResponseDataPlansInnerPricingToJSON(value["pricing"])
|
|
5050
6238
|
};
|
|
5051
6239
|
}
|
|
5052
6240
|
|
|
5053
|
-
// models/
|
|
5054
|
-
function
|
|
6241
|
+
// models/ListPlans200ResponseData.ts
|
|
6242
|
+
function instanceOfListPlans200ResponseData(value) {
|
|
5055
6243
|
return true;
|
|
5056
6244
|
}
|
|
5057
|
-
function
|
|
5058
|
-
return
|
|
6245
|
+
function ListPlans200ResponseDataFromJSON(json) {
|
|
6246
|
+
return ListPlans200ResponseDataFromJSONTyped(json, false);
|
|
5059
6247
|
}
|
|
5060
|
-
function
|
|
6248
|
+
function ListPlans200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5061
6249
|
if (json == null) {
|
|
5062
6250
|
return json;
|
|
5063
6251
|
}
|
|
5064
6252
|
return {
|
|
5065
|
-
|
|
5066
|
-
task: json["task"] == null ? void 0 : json["task"],
|
|
5067
|
-
queue: json["queue"] == null ? void 0 : json["queue"]
|
|
6253
|
+
plans: json["plans"] == null ? void 0 : json["plans"].map(ListPlans200ResponseDataPlansInnerFromJSON)
|
|
5068
6254
|
};
|
|
5069
6255
|
}
|
|
5070
|
-
function
|
|
6256
|
+
function ListPlans200ResponseDataToJSON(value) {
|
|
5071
6257
|
if (value == null) {
|
|
5072
6258
|
return value;
|
|
5073
6259
|
}
|
|
5074
6260
|
return {
|
|
5075
|
-
|
|
5076
|
-
task: value["task"],
|
|
5077
|
-
queue: value["queue"]
|
|
6261
|
+
plans: value["plans"] == null ? void 0 : value["plans"].map(ListPlans200ResponseDataPlansInnerToJSON)
|
|
5078
6262
|
};
|
|
5079
6263
|
}
|
|
5080
6264
|
|
|
5081
|
-
// models/
|
|
5082
|
-
function
|
|
6265
|
+
// models/ListPlans200Response.ts
|
|
6266
|
+
function instanceOfListPlans200Response(value) {
|
|
5083
6267
|
return true;
|
|
5084
6268
|
}
|
|
5085
|
-
function
|
|
5086
|
-
return
|
|
6269
|
+
function ListPlans200ResponseFromJSON(json) {
|
|
6270
|
+
return ListPlans200ResponseFromJSONTyped(json, false);
|
|
5087
6271
|
}
|
|
5088
|
-
function
|
|
6272
|
+
function ListPlans200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5089
6273
|
if (json == null) {
|
|
5090
6274
|
return json;
|
|
5091
6275
|
}
|
|
5092
6276
|
return {
|
|
5093
|
-
...json,
|
|
5094
6277
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5095
6278
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5096
|
-
|
|
6279
|
+
data: json["data"] == null ? void 0 : ListPlans200ResponseDataFromJSON(json["data"])
|
|
5097
6280
|
};
|
|
5098
6281
|
}
|
|
5099
|
-
function
|
|
6282
|
+
function ListPlans200ResponseToJSON(value) {
|
|
5100
6283
|
if (value == null) {
|
|
5101
6284
|
return value;
|
|
5102
6285
|
}
|
|
5103
6286
|
return {
|
|
5104
|
-
...value,
|
|
5105
6287
|
statusCode: value["statusCode"],
|
|
5106
6288
|
ts: value["ts"],
|
|
5107
|
-
|
|
6289
|
+
data: ListPlans200ResponseDataToJSON(value["data"])
|
|
5108
6290
|
};
|
|
5109
6291
|
}
|
|
5110
6292
|
|
|
5111
|
-
// models/
|
|
5112
|
-
function
|
|
6293
|
+
// models/ListTenants200Response.ts
|
|
6294
|
+
function instanceOfListTenants200Response(value) {
|
|
5113
6295
|
return true;
|
|
5114
6296
|
}
|
|
5115
|
-
function
|
|
5116
|
-
return
|
|
6297
|
+
function ListTenants200ResponseFromJSON(json) {
|
|
6298
|
+
return ListTenants200ResponseFromJSONTyped(json, false);
|
|
5117
6299
|
}
|
|
5118
|
-
function
|
|
6300
|
+
function ListTenants200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5119
6301
|
if (json == null) {
|
|
5120
6302
|
return json;
|
|
5121
6303
|
}
|
|
5122
6304
|
return {
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
lte: json["lte"] == null ? void 0 : json["lte"]
|
|
6305
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
6306
|
+
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
6307
|
+
data: json["data"] == null ? void 0 : json["data"].map(ListTenants200ResponseDataInnerFromJSON)
|
|
5127
6308
|
};
|
|
5128
6309
|
}
|
|
5129
|
-
function
|
|
6310
|
+
function ListTenants200ResponseToJSON(value) {
|
|
5130
6311
|
if (value == null) {
|
|
5131
6312
|
return value;
|
|
5132
6313
|
}
|
|
5133
6314
|
return {
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
lte: value["lte"]
|
|
6315
|
+
statusCode: value["statusCode"],
|
|
6316
|
+
ts: value["ts"],
|
|
6317
|
+
data: value["data"] == null ? void 0 : value["data"].map(ListTenants200ResponseDataInnerToJSON)
|
|
5138
6318
|
};
|
|
5139
6319
|
}
|
|
5140
6320
|
|
|
5141
|
-
// models/
|
|
5142
|
-
|
|
5143
|
-
All: "all",
|
|
5144
|
-
Customer: "customer",
|
|
5145
|
-
Invoice: "invoice",
|
|
5146
|
-
Price: "price",
|
|
5147
|
-
Product: "product",
|
|
5148
|
-
Subscription: "subscription",
|
|
5149
|
-
SubscriptionSchedules: "subscription_schedules",
|
|
5150
|
-
SetupIntent: "setup_intent",
|
|
5151
|
-
PaymentMethod: "payment_method",
|
|
5152
|
-
Dispute: "dispute",
|
|
5153
|
-
Charge: "charge",
|
|
5154
|
-
PaymentIntent: "payment_intent",
|
|
5155
|
-
Plan: "plan",
|
|
5156
|
-
TaxId: "tax_id",
|
|
5157
|
-
CreditNote: "credit_note",
|
|
5158
|
-
EarlyFraudWarning: "early_fraud_warning",
|
|
5159
|
-
Refund: "refund"
|
|
5160
|
-
};
|
|
5161
|
-
function instanceOfSyncBackfillRequest(value) {
|
|
6321
|
+
// models/ProcessWebhook200Response.ts
|
|
6322
|
+
function instanceOfProcessWebhook200Response(value) {
|
|
5162
6323
|
return true;
|
|
5163
6324
|
}
|
|
5164
|
-
function
|
|
5165
|
-
return
|
|
6325
|
+
function ProcessWebhook200ResponseFromJSON(json) {
|
|
6326
|
+
return ProcessWebhook200ResponseFromJSONTyped(json, false);
|
|
5166
6327
|
}
|
|
5167
|
-
function
|
|
6328
|
+
function ProcessWebhook200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5168
6329
|
if (json == null) {
|
|
5169
6330
|
return json;
|
|
5170
6331
|
}
|
|
5171
6332
|
return {
|
|
5172
|
-
|
|
5173
|
-
object: json["object"] == null ? void 0 : json["object"],
|
|
5174
|
-
backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"]
|
|
6333
|
+
received: json["received"] == null ? void 0 : json["received"]
|
|
5175
6334
|
};
|
|
5176
6335
|
}
|
|
5177
|
-
function
|
|
6336
|
+
function ProcessWebhook200ResponseToJSON(value) {
|
|
5178
6337
|
if (value == null) {
|
|
5179
6338
|
return value;
|
|
5180
6339
|
}
|
|
5181
6340
|
return {
|
|
5182
|
-
|
|
5183
|
-
object: value["object"],
|
|
5184
|
-
backfillRelatedEntities: value["backfillRelatedEntities"]
|
|
6341
|
+
received: value["received"]
|
|
5185
6342
|
};
|
|
5186
6343
|
}
|
|
5187
6344
|
|
|
5188
|
-
// models/
|
|
5189
|
-
function
|
|
6345
|
+
// models/ResetTenantUsage200ResponseData.ts
|
|
6346
|
+
function instanceOfResetTenantUsage200ResponseData(value) {
|
|
5190
6347
|
return true;
|
|
5191
6348
|
}
|
|
5192
|
-
function
|
|
5193
|
-
return
|
|
6349
|
+
function ResetTenantUsage200ResponseDataFromJSON(json) {
|
|
6350
|
+
return ResetTenantUsage200ResponseDataFromJSONTyped(json, false);
|
|
5194
6351
|
}
|
|
5195
|
-
function
|
|
6352
|
+
function ResetTenantUsage200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
5196
6353
|
if (json == null) {
|
|
5197
6354
|
return json;
|
|
5198
6355
|
}
|
|
5199
6356
|
return {
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
stripeId: json["stripeId"] == null ? void 0 : json["stripeId"]
|
|
6357
|
+
tenantId: json["tenantId"] == null ? void 0 : json["tenantId"],
|
|
6358
|
+
newPeriodStart: json["newPeriodStart"] == null ? void 0 : new Date(json["newPeriodStart"]),
|
|
6359
|
+
newPeriodEnd: json["newPeriodEnd"] == null ? void 0 : new Date(json["newPeriodEnd"])
|
|
5204
6360
|
};
|
|
5205
6361
|
}
|
|
5206
|
-
function
|
|
6362
|
+
function ResetTenantUsage200ResponseDataToJSON(value) {
|
|
5207
6363
|
if (value == null) {
|
|
5208
6364
|
return value;
|
|
5209
6365
|
}
|
|
5210
6366
|
return {
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
stripeId: value["stripeId"]
|
|
6367
|
+
tenantId: value["tenantId"],
|
|
6368
|
+
newPeriodStart: value["newPeriodStart"] == null ? void 0 : value["newPeriodStart"].toISOString(),
|
|
6369
|
+
newPeriodEnd: value["newPeriodEnd"] == null ? void 0 : value["newPeriodEnd"].toISOString()
|
|
5215
6370
|
};
|
|
5216
6371
|
}
|
|
5217
6372
|
|
|
5218
|
-
// models/
|
|
5219
|
-
function
|
|
6373
|
+
// models/ResetTenantUsage200Response.ts
|
|
6374
|
+
function instanceOfResetTenantUsage200Response(value) {
|
|
5220
6375
|
return true;
|
|
5221
6376
|
}
|
|
5222
|
-
function
|
|
5223
|
-
return
|
|
6377
|
+
function ResetTenantUsage200ResponseFromJSON(json) {
|
|
6378
|
+
return ResetTenantUsage200ResponseFromJSONTyped(json, false);
|
|
5224
6379
|
}
|
|
5225
|
-
function
|
|
6380
|
+
function ResetTenantUsage200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5226
6381
|
if (json == null) {
|
|
5227
6382
|
return json;
|
|
5228
6383
|
}
|
|
5229
6384
|
return {
|
|
5230
6385
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5231
6386
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5232
|
-
|
|
6387
|
+
message: json["message"] == null ? void 0 : json["message"],
|
|
6388
|
+
data: json["data"] == null ? void 0 : ResetTenantUsage200ResponseDataFromJSON(json["data"])
|
|
5233
6389
|
};
|
|
5234
6390
|
}
|
|
5235
|
-
function
|
|
6391
|
+
function ResetTenantUsage200ResponseToJSON(value) {
|
|
5236
6392
|
if (value == null) {
|
|
5237
6393
|
return value;
|
|
5238
6394
|
}
|
|
5239
6395
|
return {
|
|
5240
6396
|
statusCode: value["statusCode"],
|
|
5241
6397
|
ts: value["ts"],
|
|
5242
|
-
|
|
6398
|
+
message: value["message"],
|
|
6399
|
+
data: ResetTenantUsage200ResponseDataToJSON(value["data"])
|
|
5243
6400
|
};
|
|
5244
6401
|
}
|
|
5245
6402
|
|
|
@@ -5301,40 +6458,91 @@ function SyncTenant202ResponseToJSON(value) {
|
|
|
5301
6458
|
};
|
|
5302
6459
|
}
|
|
5303
6460
|
|
|
5304
|
-
// models/
|
|
5305
|
-
function
|
|
6461
|
+
// models/SyncTenantRequestCreated.ts
|
|
6462
|
+
function instanceOfSyncTenantRequestCreated(value) {
|
|
5306
6463
|
return true;
|
|
5307
6464
|
}
|
|
5308
|
-
function
|
|
5309
|
-
return
|
|
6465
|
+
function SyncTenantRequestCreatedFromJSON(json) {
|
|
6466
|
+
return SyncTenantRequestCreatedFromJSONTyped(json, false);
|
|
5310
6467
|
}
|
|
5311
|
-
function
|
|
6468
|
+
function SyncTenantRequestCreatedFromJSONTyped(json, ignoreDiscriminator) {
|
|
5312
6469
|
if (json == null) {
|
|
5313
6470
|
return json;
|
|
5314
6471
|
}
|
|
5315
6472
|
return {
|
|
5316
|
-
|
|
5317
|
-
|
|
6473
|
+
gt: json["gt"] == null ? void 0 : json["gt"],
|
|
6474
|
+
gte: json["gte"] == null ? void 0 : json["gte"],
|
|
6475
|
+
lt: json["lt"] == null ? void 0 : json["lt"],
|
|
6476
|
+
lte: json["lte"] == null ? void 0 : json["lte"]
|
|
5318
6477
|
};
|
|
5319
6478
|
}
|
|
5320
|
-
function
|
|
6479
|
+
function SyncTenantRequestCreatedToJSON(value) {
|
|
5321
6480
|
if (value == null) {
|
|
5322
6481
|
return value;
|
|
5323
6482
|
}
|
|
5324
6483
|
return {
|
|
5325
|
-
|
|
5326
|
-
|
|
6484
|
+
gt: value["gt"],
|
|
6485
|
+
gte: value["gte"],
|
|
6486
|
+
lt: value["lt"],
|
|
6487
|
+
lte: value["lte"]
|
|
6488
|
+
};
|
|
6489
|
+
}
|
|
6490
|
+
|
|
6491
|
+
// models/SyncTenantRequest.ts
|
|
6492
|
+
var SyncTenantRequestObjectEnum = {
|
|
6493
|
+
All: "all",
|
|
6494
|
+
Customer: "customer",
|
|
6495
|
+
Invoice: "invoice",
|
|
6496
|
+
Price: "price",
|
|
6497
|
+
Product: "product",
|
|
6498
|
+
Subscription: "subscription",
|
|
6499
|
+
SubscriptionSchedules: "subscription_schedules",
|
|
6500
|
+
SetupIntent: "setup_intent",
|
|
6501
|
+
PaymentMethod: "payment_method",
|
|
6502
|
+
Dispute: "dispute",
|
|
6503
|
+
Charge: "charge",
|
|
6504
|
+
PaymentIntent: "payment_intent",
|
|
6505
|
+
Plan: "plan",
|
|
6506
|
+
TaxId: "tax_id",
|
|
6507
|
+
CreditNote: "credit_note",
|
|
6508
|
+
EarlyFraudWarning: "early_fraud_warning",
|
|
6509
|
+
Refund: "refund"
|
|
6510
|
+
};
|
|
6511
|
+
function instanceOfSyncTenantRequest(value) {
|
|
6512
|
+
return true;
|
|
6513
|
+
}
|
|
6514
|
+
function SyncTenantRequestFromJSON(json) {
|
|
6515
|
+
return SyncTenantRequestFromJSONTyped(json, false);
|
|
6516
|
+
}
|
|
6517
|
+
function SyncTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
6518
|
+
if (json == null) {
|
|
6519
|
+
return json;
|
|
6520
|
+
}
|
|
6521
|
+
return {
|
|
6522
|
+
created: json["created"] == null ? void 0 : SyncTenantRequestCreatedFromJSON(json["created"]),
|
|
6523
|
+
object: json["object"] == null ? void 0 : json["object"],
|
|
6524
|
+
backfillRelatedEntities: json["backfillRelatedEntities"] == null ? void 0 : json["backfillRelatedEntities"]
|
|
6525
|
+
};
|
|
6526
|
+
}
|
|
6527
|
+
function SyncTenantRequestToJSON(value) {
|
|
6528
|
+
if (value == null) {
|
|
6529
|
+
return value;
|
|
6530
|
+
}
|
|
6531
|
+
return {
|
|
6532
|
+
created: SyncTenantRequestCreatedToJSON(value["created"]),
|
|
6533
|
+
object: value["object"],
|
|
6534
|
+
backfillRelatedEntities: value["backfillRelatedEntities"]
|
|
5327
6535
|
};
|
|
5328
6536
|
}
|
|
5329
6537
|
|
|
5330
|
-
// models/
|
|
5331
|
-
function
|
|
6538
|
+
// models/SyncTenantSingleEntity202ResponseJob.ts
|
|
6539
|
+
function instanceOfSyncTenantSingleEntity202ResponseJob(value) {
|
|
5332
6540
|
return true;
|
|
5333
6541
|
}
|
|
5334
|
-
function
|
|
5335
|
-
return
|
|
6542
|
+
function SyncTenantSingleEntity202ResponseJobFromJSON(json) {
|
|
6543
|
+
return SyncTenantSingleEntity202ResponseJobFromJSONTyped(json, false);
|
|
5336
6544
|
}
|
|
5337
|
-
function
|
|
6545
|
+
function SyncTenantSingleEntity202ResponseJobFromJSONTyped(json, ignoreDiscriminator) {
|
|
5338
6546
|
if (json == null) {
|
|
5339
6547
|
return json;
|
|
5340
6548
|
}
|
|
@@ -5342,10 +6550,11 @@ function TriggerDailySync202ResponseJobFromJSONTyped(json, ignoreDiscriminator)
|
|
|
5342
6550
|
...json,
|
|
5343
6551
|
task: json["task"] == null ? void 0 : json["task"],
|
|
5344
6552
|
queue: json["queue"] == null ? void 0 : json["queue"],
|
|
5345
|
-
|
|
6553
|
+
tenantId: json["tenantId"] == null ? void 0 : json["tenantId"],
|
|
6554
|
+
stripeId: json["stripeId"] == null ? void 0 : json["stripeId"]
|
|
5346
6555
|
};
|
|
5347
6556
|
}
|
|
5348
|
-
function
|
|
6557
|
+
function SyncTenantSingleEntity202ResponseJobToJSON(value) {
|
|
5349
6558
|
if (value == null) {
|
|
5350
6559
|
return value;
|
|
5351
6560
|
}
|
|
@@ -5353,170 +6562,156 @@ function TriggerDailySync202ResponseJobToJSON(value) {
|
|
|
5353
6562
|
...value,
|
|
5354
6563
|
task: value["task"],
|
|
5355
6564
|
queue: value["queue"],
|
|
5356
|
-
|
|
6565
|
+
tenantId: value["tenantId"],
|
|
6566
|
+
stripeId: value["stripeId"]
|
|
5357
6567
|
};
|
|
5358
6568
|
}
|
|
5359
6569
|
|
|
5360
|
-
// models/
|
|
5361
|
-
function
|
|
6570
|
+
// models/SyncTenantSingleEntity202Response.ts
|
|
6571
|
+
function instanceOfSyncTenantSingleEntity202Response(value) {
|
|
5362
6572
|
return true;
|
|
5363
6573
|
}
|
|
5364
|
-
function
|
|
5365
|
-
return
|
|
6574
|
+
function SyncTenantSingleEntity202ResponseFromJSON(json) {
|
|
6575
|
+
return SyncTenantSingleEntity202ResponseFromJSONTyped(json, false);
|
|
5366
6576
|
}
|
|
5367
|
-
function
|
|
6577
|
+
function SyncTenantSingleEntity202ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5368
6578
|
if (json == null) {
|
|
5369
6579
|
return json;
|
|
5370
6580
|
}
|
|
5371
6581
|
return {
|
|
5372
|
-
...json,
|
|
5373
6582
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5374
6583
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5375
|
-
job: json["job"] == null ? void 0 :
|
|
6584
|
+
job: json["job"] == null ? void 0 : SyncTenantSingleEntity202ResponseJobFromJSON(json["job"])
|
|
5376
6585
|
};
|
|
5377
6586
|
}
|
|
5378
|
-
function
|
|
6587
|
+
function SyncTenantSingleEntity202ResponseToJSON(value) {
|
|
5379
6588
|
if (value == null) {
|
|
5380
6589
|
return value;
|
|
5381
6590
|
}
|
|
5382
6591
|
return {
|
|
5383
|
-
...value,
|
|
5384
6592
|
statusCode: value["statusCode"],
|
|
5385
6593
|
ts: value["ts"],
|
|
5386
|
-
job:
|
|
6594
|
+
job: SyncTenantSingleEntity202ResponseJobToJSON(value["job"])
|
|
5387
6595
|
};
|
|
5388
6596
|
}
|
|
5389
6597
|
|
|
5390
|
-
// models/
|
|
5391
|
-
|
|
5392
|
-
All: "all",
|
|
5393
|
-
Customer: "customer",
|
|
5394
|
-
Invoice: "invoice",
|
|
5395
|
-
Price: "price",
|
|
5396
|
-
Product: "product",
|
|
5397
|
-
Subscription: "subscription",
|
|
5398
|
-
SubscriptionSchedules: "subscription_schedules",
|
|
5399
|
-
SetupIntent: "setup_intent",
|
|
5400
|
-
PaymentMethod: "payment_method",
|
|
5401
|
-
Dispute: "dispute",
|
|
5402
|
-
Charge: "charge",
|
|
5403
|
-
PaymentIntent: "payment_intent",
|
|
5404
|
-
Plan: "plan",
|
|
5405
|
-
TaxId: "tax_id",
|
|
5406
|
-
CreditNote: "credit_note",
|
|
5407
|
-
EarlyFraudWarning: "early_fraud_warning",
|
|
5408
|
-
Refund: "refund"
|
|
5409
|
-
};
|
|
5410
|
-
function instanceOfTriggerDailySyncRequest(value) {
|
|
6598
|
+
// models/TenantsTenantIdDelete200Response.ts
|
|
6599
|
+
function instanceOfTenantsTenantIdDelete200Response(value) {
|
|
5411
6600
|
return true;
|
|
5412
6601
|
}
|
|
5413
|
-
function
|
|
5414
|
-
return
|
|
6602
|
+
function TenantsTenantIdDelete200ResponseFromJSON(json) {
|
|
6603
|
+
return TenantsTenantIdDelete200ResponseFromJSONTyped(json, false);
|
|
5415
6604
|
}
|
|
5416
|
-
function
|
|
6605
|
+
function TenantsTenantIdDelete200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5417
6606
|
if (json == null) {
|
|
5418
6607
|
return json;
|
|
5419
6608
|
}
|
|
5420
6609
|
return {
|
|
5421
|
-
|
|
5422
|
-
|
|
6610
|
+
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
6611
|
+
message: json["message"] == null ? void 0 : json["message"]
|
|
5423
6612
|
};
|
|
5424
6613
|
}
|
|
5425
|
-
function
|
|
6614
|
+
function TenantsTenantIdDelete200ResponseToJSON(value) {
|
|
5426
6615
|
if (value == null) {
|
|
5427
6616
|
return value;
|
|
5428
6617
|
}
|
|
5429
6618
|
return {
|
|
5430
|
-
|
|
5431
|
-
|
|
6619
|
+
statusCode: value["statusCode"],
|
|
6620
|
+
message: value["message"]
|
|
5432
6621
|
};
|
|
5433
6622
|
}
|
|
5434
6623
|
|
|
5435
|
-
// models/
|
|
5436
|
-
function
|
|
6624
|
+
// models/UpdateTenant200Response.ts
|
|
6625
|
+
function instanceOfUpdateTenant200Response(value) {
|
|
5437
6626
|
return true;
|
|
5438
6627
|
}
|
|
5439
|
-
function
|
|
5440
|
-
return
|
|
6628
|
+
function UpdateTenant200ResponseFromJSON(json) {
|
|
6629
|
+
return UpdateTenant200ResponseFromJSONTyped(json, false);
|
|
5441
6630
|
}
|
|
5442
|
-
function
|
|
6631
|
+
function UpdateTenant200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5443
6632
|
if (json == null) {
|
|
5444
6633
|
return json;
|
|
5445
6634
|
}
|
|
5446
6635
|
return {
|
|
5447
|
-
...json,
|
|
5448
6636
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5449
6637
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5450
|
-
|
|
6638
|
+
data: json["data"] == null ? void 0 : ListTenants200ResponseDataInnerFromJSON(json["data"])
|
|
5451
6639
|
};
|
|
5452
6640
|
}
|
|
5453
|
-
function
|
|
6641
|
+
function UpdateTenant200ResponseToJSON(value) {
|
|
5454
6642
|
if (value == null) {
|
|
5455
6643
|
return value;
|
|
5456
6644
|
}
|
|
5457
6645
|
return {
|
|
5458
|
-
...value,
|
|
5459
6646
|
statusCode: value["statusCode"],
|
|
5460
6647
|
ts: value["ts"],
|
|
5461
|
-
|
|
6648
|
+
data: ListTenants200ResponseDataInnerToJSON(value["data"])
|
|
5462
6649
|
};
|
|
5463
6650
|
}
|
|
5464
6651
|
|
|
5465
|
-
// models/
|
|
5466
|
-
function
|
|
6652
|
+
// models/UpdateTenantPlan200Response.ts
|
|
6653
|
+
function instanceOfUpdateTenantPlan200Response(value) {
|
|
5467
6654
|
return true;
|
|
5468
6655
|
}
|
|
5469
|
-
function
|
|
5470
|
-
return
|
|
6656
|
+
function UpdateTenantPlan200ResponseFromJSON(json) {
|
|
6657
|
+
return UpdateTenantPlan200ResponseFromJSONTyped(json, false);
|
|
5471
6658
|
}
|
|
5472
|
-
function
|
|
6659
|
+
function UpdateTenantPlan200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
5473
6660
|
if (json == null) {
|
|
5474
6661
|
return json;
|
|
5475
6662
|
}
|
|
5476
6663
|
return {
|
|
5477
|
-
...json,
|
|
5478
6664
|
statusCode: json["statusCode"] == null ? void 0 : json["statusCode"],
|
|
5479
6665
|
ts: json["ts"] == null ? void 0 : json["ts"],
|
|
5480
|
-
|
|
6666
|
+
data: json["data"] == null ? void 0 : GetTenantPlan200ResponseDataFromJSON(json["data"]),
|
|
6667
|
+
message: json["message"] == null ? void 0 : json["message"]
|
|
5481
6668
|
};
|
|
5482
6669
|
}
|
|
5483
|
-
function
|
|
6670
|
+
function UpdateTenantPlan200ResponseToJSON(value) {
|
|
5484
6671
|
if (value == null) {
|
|
5485
6672
|
return value;
|
|
5486
6673
|
}
|
|
5487
6674
|
return {
|
|
5488
|
-
...value,
|
|
5489
6675
|
statusCode: value["statusCode"],
|
|
5490
6676
|
ts: value["ts"],
|
|
5491
|
-
|
|
6677
|
+
data: GetTenantPlan200ResponseDataToJSON(value["data"]),
|
|
6678
|
+
message: value["message"]
|
|
5492
6679
|
};
|
|
5493
6680
|
}
|
|
5494
6681
|
|
|
5495
|
-
// models/
|
|
5496
|
-
|
|
6682
|
+
// models/UpdateTenantPlanRequest.ts
|
|
6683
|
+
var UpdateTenantPlanRequestPlanEnum = {
|
|
6684
|
+
Free: "FREE",
|
|
6685
|
+
Pro: "PRO",
|
|
6686
|
+
Enterprise: "ENTERPRISE"
|
|
6687
|
+
};
|
|
6688
|
+
function instanceOfUpdateTenantPlanRequest(value) {
|
|
6689
|
+
if (!("plan" in value) || value["plan"] === void 0) return false;
|
|
5497
6690
|
return true;
|
|
5498
6691
|
}
|
|
5499
|
-
function
|
|
5500
|
-
return
|
|
6692
|
+
function UpdateTenantPlanRequestFromJSON(json) {
|
|
6693
|
+
return UpdateTenantPlanRequestFromJSONTyped(json, false);
|
|
5501
6694
|
}
|
|
5502
|
-
function
|
|
6695
|
+
function UpdateTenantPlanRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
5503
6696
|
if (json == null) {
|
|
5504
6697
|
return json;
|
|
5505
6698
|
}
|
|
5506
6699
|
return {
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
6700
|
+
plan: json["plan"],
|
|
6701
|
+
planFeaturesOverride: json["planFeaturesOverride"] == null ? void 0 : ListPlans200ResponseDataPlansInnerFeaturesFromJSON(json["planFeaturesOverride"]),
|
|
6702
|
+
planLimitsOverride: json["planLimitsOverride"] == null ? void 0 : ListPlans200ResponseDataPlansInnerLimitsFromJSON(json["planLimitsOverride"])
|
|
5510
6703
|
};
|
|
5511
6704
|
}
|
|
5512
|
-
function
|
|
6705
|
+
function UpdateTenantPlanRequestToJSON(value) {
|
|
5513
6706
|
if (value == null) {
|
|
5514
6707
|
return value;
|
|
5515
6708
|
}
|
|
5516
6709
|
return {
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
6710
|
+
plan: value["plan"],
|
|
6711
|
+
planFeaturesOverride: ListPlans200ResponseDataPlansInnerFeaturesToJSON(
|
|
6712
|
+
value["planFeaturesOverride"]
|
|
6713
|
+
),
|
|
6714
|
+
planLimitsOverride: ListPlans200ResponseDataPlansInnerLimitsToJSON(value["planLimitsOverride"])
|
|
5520
6715
|
};
|
|
5521
6716
|
}
|
|
5522
6717
|
|
|
@@ -5569,18 +6764,263 @@ function UpdateTenantRequestToJSON(value) {
|
|
|
5569
6764
|
};
|
|
5570
6765
|
}
|
|
5571
6766
|
|
|
6767
|
+
// apis/BillingApi.ts
|
|
6768
|
+
var BillingApi = class extends BaseAPI {
|
|
6769
|
+
/**
|
|
6770
|
+
* Check if tenant has access to a specific feature
|
|
6771
|
+
*/
|
|
6772
|
+
async checkTenantFeatureRaw(requestParameters, initOverrides) {
|
|
6773
|
+
if (requestParameters["tenantId"] == null) {
|
|
6774
|
+
throw new RequiredError(
|
|
6775
|
+
"tenantId",
|
|
6776
|
+
'Required parameter "tenantId" was null or undefined when calling checkTenantFeature().'
|
|
6777
|
+
);
|
|
6778
|
+
}
|
|
6779
|
+
if (requestParameters["feature"] == null) {
|
|
6780
|
+
throw new RequiredError(
|
|
6781
|
+
"feature",
|
|
6782
|
+
'Required parameter "feature" was null or undefined when calling checkTenantFeature().'
|
|
6783
|
+
);
|
|
6784
|
+
}
|
|
6785
|
+
const queryParameters = {};
|
|
6786
|
+
const headerParameters = {};
|
|
6787
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6788
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
6789
|
+
}
|
|
6790
|
+
const response = await this.request(
|
|
6791
|
+
{
|
|
6792
|
+
path: `/tenants/{tenantId}/features/{feature}`.replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters["tenantId"]))).replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters["feature"]))),
|
|
6793
|
+
method: "GET",
|
|
6794
|
+
headers: headerParameters,
|
|
6795
|
+
query: queryParameters
|
|
6796
|
+
},
|
|
6797
|
+
initOverrides
|
|
6798
|
+
);
|
|
6799
|
+
return new JSONApiResponse(
|
|
6800
|
+
response,
|
|
6801
|
+
(jsonValue) => CheckTenantFeature200ResponseFromJSON(jsonValue)
|
|
6802
|
+
);
|
|
6803
|
+
}
|
|
6804
|
+
/**
|
|
6805
|
+
* Check if tenant has access to a specific feature
|
|
6806
|
+
*/
|
|
6807
|
+
async checkTenantFeature(requestParameters, initOverrides) {
|
|
6808
|
+
const response = await this.checkTenantFeatureRaw(requestParameters, initOverrides);
|
|
6809
|
+
return await response.value();
|
|
6810
|
+
}
|
|
6811
|
+
/**
|
|
6812
|
+
* Get tenant\'s current plan with effective limits and features
|
|
6813
|
+
*/
|
|
6814
|
+
async getTenantPlanRaw(requestParameters, initOverrides) {
|
|
6815
|
+
if (requestParameters["tenantId"] == null) {
|
|
6816
|
+
throw new RequiredError(
|
|
6817
|
+
"tenantId",
|
|
6818
|
+
'Required parameter "tenantId" was null or undefined when calling getTenantPlan().'
|
|
6819
|
+
);
|
|
6820
|
+
}
|
|
6821
|
+
const queryParameters = {};
|
|
6822
|
+
const headerParameters = {};
|
|
6823
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6824
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
6825
|
+
}
|
|
6826
|
+
const response = await this.request(
|
|
6827
|
+
{
|
|
6828
|
+
path: `/tenants/{tenantId}/plan`.replace(
|
|
6829
|
+
`{${"tenantId"}}`,
|
|
6830
|
+
encodeURIComponent(String(requestParameters["tenantId"]))
|
|
6831
|
+
),
|
|
6832
|
+
method: "GET",
|
|
6833
|
+
headers: headerParameters,
|
|
6834
|
+
query: queryParameters
|
|
6835
|
+
},
|
|
6836
|
+
initOverrides
|
|
6837
|
+
);
|
|
6838
|
+
return new JSONApiResponse(
|
|
6839
|
+
response,
|
|
6840
|
+
(jsonValue) => GetTenantPlan200ResponseFromJSON(jsonValue)
|
|
6841
|
+
);
|
|
6842
|
+
}
|
|
6843
|
+
/**
|
|
6844
|
+
* Get tenant\'s current plan with effective limits and features
|
|
6845
|
+
*/
|
|
6846
|
+
async getTenantPlan(requestParameters, initOverrides) {
|
|
6847
|
+
const response = await this.getTenantPlanRaw(requestParameters, initOverrides);
|
|
6848
|
+
return await response.value();
|
|
6849
|
+
}
|
|
6850
|
+
/**
|
|
6851
|
+
* Get tenant\'s current usage within the billing period and rate limit status
|
|
6852
|
+
*/
|
|
6853
|
+
async getTenantUsageRaw(requestParameters, initOverrides) {
|
|
6854
|
+
if (requestParameters["tenantId"] == null) {
|
|
6855
|
+
throw new RequiredError(
|
|
6856
|
+
"tenantId",
|
|
6857
|
+
'Required parameter "tenantId" was null or undefined when calling getTenantUsage().'
|
|
6858
|
+
);
|
|
6859
|
+
}
|
|
6860
|
+
const queryParameters = {};
|
|
6861
|
+
const headerParameters = {};
|
|
6862
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6863
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
6864
|
+
}
|
|
6865
|
+
const response = await this.request(
|
|
6866
|
+
{
|
|
6867
|
+
path: `/tenants/{tenantId}/usage`.replace(
|
|
6868
|
+
`{${"tenantId"}}`,
|
|
6869
|
+
encodeURIComponent(String(requestParameters["tenantId"]))
|
|
6870
|
+
),
|
|
6871
|
+
method: "GET",
|
|
6872
|
+
headers: headerParameters,
|
|
6873
|
+
query: queryParameters
|
|
6874
|
+
},
|
|
6875
|
+
initOverrides
|
|
6876
|
+
);
|
|
6877
|
+
return new JSONApiResponse(
|
|
6878
|
+
response,
|
|
6879
|
+
(jsonValue) => GetTenantUsage200ResponseFromJSON(jsonValue)
|
|
6880
|
+
);
|
|
6881
|
+
}
|
|
6882
|
+
/**
|
|
6883
|
+
* Get tenant\'s current usage within the billing period and rate limit status
|
|
6884
|
+
*/
|
|
6885
|
+
async getTenantUsage(requestParameters, initOverrides) {
|
|
6886
|
+
const response = await this.getTenantUsageRaw(requestParameters, initOverrides);
|
|
6887
|
+
return await response.value();
|
|
6888
|
+
}
|
|
6889
|
+
/**
|
|
6890
|
+
* Get all available pricing plans with their limits and features
|
|
6891
|
+
*/
|
|
6892
|
+
async listPlansRaw(initOverrides) {
|
|
6893
|
+
const queryParameters = {};
|
|
6894
|
+
const headerParameters = {};
|
|
6895
|
+
const response = await this.request(
|
|
6896
|
+
{
|
|
6897
|
+
path: `/plans`,
|
|
6898
|
+
method: "GET",
|
|
6899
|
+
headers: headerParameters,
|
|
6900
|
+
query: queryParameters
|
|
6901
|
+
},
|
|
6902
|
+
initOverrides
|
|
6903
|
+
);
|
|
6904
|
+
return new JSONApiResponse(
|
|
6905
|
+
response,
|
|
6906
|
+
(jsonValue) => ListPlans200ResponseFromJSON(jsonValue)
|
|
6907
|
+
);
|
|
6908
|
+
}
|
|
6909
|
+
/**
|
|
6910
|
+
* Get all available pricing plans with their limits and features
|
|
6911
|
+
*/
|
|
6912
|
+
async listPlans(initOverrides) {
|
|
6913
|
+
const response = await this.listPlansRaw(initOverrides);
|
|
6914
|
+
return await response.value();
|
|
6915
|
+
}
|
|
6916
|
+
/**
|
|
6917
|
+
* Reset usage counters for a new billing period (admin only)
|
|
6918
|
+
*/
|
|
6919
|
+
async resetTenantUsageRaw(requestParameters, initOverrides) {
|
|
6920
|
+
if (requestParameters["tenantId"] == null) {
|
|
6921
|
+
throw new RequiredError(
|
|
6922
|
+
"tenantId",
|
|
6923
|
+
'Required parameter "tenantId" was null or undefined when calling resetTenantUsage().'
|
|
6924
|
+
);
|
|
6925
|
+
}
|
|
6926
|
+
const queryParameters = {};
|
|
6927
|
+
const headerParameters = {};
|
|
6928
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6929
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
6930
|
+
}
|
|
6931
|
+
const response = await this.request(
|
|
6932
|
+
{
|
|
6933
|
+
path: `/tenants/{tenantId}/usage/reset`.replace(
|
|
6934
|
+
`{${"tenantId"}}`,
|
|
6935
|
+
encodeURIComponent(String(requestParameters["tenantId"]))
|
|
6936
|
+
),
|
|
6937
|
+
method: "POST",
|
|
6938
|
+
headers: headerParameters,
|
|
6939
|
+
query: queryParameters
|
|
6940
|
+
},
|
|
6941
|
+
initOverrides
|
|
6942
|
+
);
|
|
6943
|
+
return new JSONApiResponse(
|
|
6944
|
+
response,
|
|
6945
|
+
(jsonValue) => ResetTenantUsage200ResponseFromJSON(jsonValue)
|
|
6946
|
+
);
|
|
6947
|
+
}
|
|
6948
|
+
/**
|
|
6949
|
+
* Reset usage counters for a new billing period (admin only)
|
|
6950
|
+
*/
|
|
6951
|
+
async resetTenantUsage(requestParameters, initOverrides) {
|
|
6952
|
+
const response = await this.resetTenantUsageRaw(requestParameters, initOverrides);
|
|
6953
|
+
return await response.value();
|
|
6954
|
+
}
|
|
6955
|
+
/**
|
|
6956
|
+
* Update tenant\'s pricing plan and optional overrides
|
|
6957
|
+
*/
|
|
6958
|
+
async updateTenantPlanRaw(requestParameters, initOverrides) {
|
|
6959
|
+
if (requestParameters["tenantId"] == null) {
|
|
6960
|
+
throw new RequiredError(
|
|
6961
|
+
"tenantId",
|
|
6962
|
+
'Required parameter "tenantId" was null or undefined when calling updateTenantPlan().'
|
|
6963
|
+
);
|
|
6964
|
+
}
|
|
6965
|
+
if (requestParameters["updateTenantPlanRequest"] == null) {
|
|
6966
|
+
throw new RequiredError(
|
|
6967
|
+
"updateTenantPlanRequest",
|
|
6968
|
+
'Required parameter "updateTenantPlanRequest" was null or undefined when calling updateTenantPlan().'
|
|
6969
|
+
);
|
|
6970
|
+
}
|
|
6971
|
+
const queryParameters = {};
|
|
6972
|
+
const headerParameters = {};
|
|
6973
|
+
headerParameters["Content-Type"] = "application/json";
|
|
6974
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6975
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
6976
|
+
}
|
|
6977
|
+
const response = await this.request(
|
|
6978
|
+
{
|
|
6979
|
+
path: `/tenants/{tenantId}/plan`.replace(
|
|
6980
|
+
`{${"tenantId"}}`,
|
|
6981
|
+
encodeURIComponent(String(requestParameters["tenantId"]))
|
|
6982
|
+
),
|
|
6983
|
+
method: "PUT",
|
|
6984
|
+
headers: headerParameters,
|
|
6985
|
+
query: queryParameters,
|
|
6986
|
+
body: UpdateTenantPlanRequestToJSON(requestParameters["updateTenantPlanRequest"])
|
|
6987
|
+
},
|
|
6988
|
+
initOverrides
|
|
6989
|
+
);
|
|
6990
|
+
return new JSONApiResponse(
|
|
6991
|
+
response,
|
|
6992
|
+
(jsonValue) => UpdateTenantPlan200ResponseFromJSON(jsonValue)
|
|
6993
|
+
);
|
|
6994
|
+
}
|
|
6995
|
+
/**
|
|
6996
|
+
* Update tenant\'s pricing plan and optional overrides
|
|
6997
|
+
*/
|
|
6998
|
+
async updateTenantPlan(requestParameters, initOverrides) {
|
|
6999
|
+
const response = await this.updateTenantPlanRaw(requestParameters, initOverrides);
|
|
7000
|
+
return await response.value();
|
|
7001
|
+
}
|
|
7002
|
+
};
|
|
7003
|
+
var CheckTenantFeatureFeatureEnum = {
|
|
7004
|
+
ClickhouseEnabled: "clickhouseEnabled",
|
|
7005
|
+
AdvancedAnalytics: "advancedAnalytics",
|
|
7006
|
+
CohortAnalysis: "cohortAnalysis",
|
|
7007
|
+
ChurnPrediction: "churnPrediction",
|
|
7008
|
+
SlackAlerts: "slackAlerts",
|
|
7009
|
+
PagerdutyAlerts: "pagerdutyAlerts",
|
|
7010
|
+
CustomWebhooks: "customWebhooks",
|
|
7011
|
+
ApiAccess: "apiAccess",
|
|
7012
|
+
WhiteLabel: "whiteLabel",
|
|
7013
|
+
AuditLogExport: "auditLogExport",
|
|
7014
|
+
SsoProviders: "ssoProviders",
|
|
7015
|
+
TransactionSync: "transactionSync"
|
|
7016
|
+
};
|
|
7017
|
+
|
|
5572
7018
|
// apis/BusinessMetricsApi.ts
|
|
5573
7019
|
var BusinessMetricsApi = class extends BaseAPI {
|
|
5574
7020
|
/**
|
|
5575
7021
|
* Calculate break-even point and related metrics
|
|
5576
7022
|
*/
|
|
5577
7023
|
async apiV1BusinessMetricsBreakEvenAnalysisGetRaw(requestParameters, initOverrides) {
|
|
5578
|
-
if (requestParameters["teamId"] == null) {
|
|
5579
|
-
throw new RequiredError(
|
|
5580
|
-
"teamId",
|
|
5581
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsBreakEvenAnalysisGet().'
|
|
5582
|
-
);
|
|
5583
|
-
}
|
|
5584
7024
|
const queryParameters = {};
|
|
5585
7025
|
if (requestParameters["teamId"] != null) {
|
|
5586
7026
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5615,7 +7055,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5615
7055
|
/**
|
|
5616
7056
|
* Calculate break-even point and related metrics
|
|
5617
7057
|
*/
|
|
5618
|
-
async apiV1BusinessMetricsBreakEvenAnalysisGet(requestParameters, initOverrides) {
|
|
7058
|
+
async apiV1BusinessMetricsBreakEvenAnalysisGet(requestParameters = {}, initOverrides) {
|
|
5619
7059
|
const response = await this.apiV1BusinessMetricsBreakEvenAnalysisGetRaw(
|
|
5620
7060
|
requestParameters,
|
|
5621
7061
|
initOverrides
|
|
@@ -5626,12 +7066,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5626
7066
|
* Generate forward-looking cash flow projections based on historical data
|
|
5627
7067
|
*/
|
|
5628
7068
|
async apiV1BusinessMetricsCashFlowForecastGetRaw(requestParameters, initOverrides) {
|
|
5629
|
-
if (requestParameters["teamId"] == null) {
|
|
5630
|
-
throw new RequiredError(
|
|
5631
|
-
"teamId",
|
|
5632
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsCashFlowForecastGet().'
|
|
5633
|
-
);
|
|
5634
|
-
}
|
|
5635
7069
|
const queryParameters = {};
|
|
5636
7070
|
if (requestParameters["teamId"] != null) {
|
|
5637
7071
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5666,7 +7100,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5666
7100
|
/**
|
|
5667
7101
|
* Generate forward-looking cash flow projections based on historical data
|
|
5668
7102
|
*/
|
|
5669
|
-
async apiV1BusinessMetricsCashFlowForecastGet(requestParameters, initOverrides) {
|
|
7103
|
+
async apiV1BusinessMetricsCashFlowForecastGet(requestParameters = {}, initOverrides) {
|
|
5670
7104
|
const response = await this.apiV1BusinessMetricsCashFlowForecastGetRaw(
|
|
5671
7105
|
requestParameters,
|
|
5672
7106
|
initOverrides
|
|
@@ -5677,12 +7111,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5677
7111
|
* Calculate how long current cash reserves will last at current burn rate
|
|
5678
7112
|
*/
|
|
5679
7113
|
async apiV1BusinessMetricsCashRunwayGetRaw(requestParameters, initOverrides) {
|
|
5680
|
-
if (requestParameters["teamId"] == null) {
|
|
5681
|
-
throw new RequiredError(
|
|
5682
|
-
"teamId",
|
|
5683
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsCashRunwayGet().'
|
|
5684
|
-
);
|
|
5685
|
-
}
|
|
5686
7114
|
if (requestParameters["currentCash"] == null) {
|
|
5687
7115
|
throw new RequiredError(
|
|
5688
7116
|
"currentCash",
|
|
@@ -5740,12 +7168,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5740
7168
|
* Analyze revenue concentration across top customers to identify dependency risks
|
|
5741
7169
|
*/
|
|
5742
7170
|
async apiV1BusinessMetricsCustomerConcentrationRiskGetRaw(requestParameters, initOverrides) {
|
|
5743
|
-
if (requestParameters["teamId"] == null) {
|
|
5744
|
-
throw new RequiredError(
|
|
5745
|
-
"teamId",
|
|
5746
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsCustomerConcentrationRiskGet().'
|
|
5747
|
-
);
|
|
5748
|
-
}
|
|
5749
7171
|
const queryParameters = {};
|
|
5750
7172
|
if (requestParameters["teamId"] != null) {
|
|
5751
7173
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5780,7 +7202,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5780
7202
|
/**
|
|
5781
7203
|
* Analyze revenue concentration across top customers to identify dependency risks
|
|
5782
7204
|
*/
|
|
5783
|
-
async apiV1BusinessMetricsCustomerConcentrationRiskGet(requestParameters, initOverrides) {
|
|
7205
|
+
async apiV1BusinessMetricsCustomerConcentrationRiskGet(requestParameters = {}, initOverrides) {
|
|
5784
7206
|
const response = await this.apiV1BusinessMetricsCustomerConcentrationRiskGetRaw(
|
|
5785
7207
|
requestParameters,
|
|
5786
7208
|
initOverrides
|
|
@@ -5791,12 +7213,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5791
7213
|
* Calculate average revenue per customer over their lifetime
|
|
5792
7214
|
*/
|
|
5793
7215
|
async apiV1BusinessMetricsCustomerLifetimeValueGetRaw(requestParameters, initOverrides) {
|
|
5794
|
-
if (requestParameters["teamId"] == null) {
|
|
5795
|
-
throw new RequiredError(
|
|
5796
|
-
"teamId",
|
|
5797
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsCustomerLifetimeValueGet().'
|
|
5798
|
-
);
|
|
5799
|
-
}
|
|
5800
7216
|
const queryParameters = {};
|
|
5801
7217
|
if (requestParameters["teamId"] != null) {
|
|
5802
7218
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5834,7 +7250,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5834
7250
|
/**
|
|
5835
7251
|
* Calculate average revenue per customer over their lifetime
|
|
5836
7252
|
*/
|
|
5837
|
-
async apiV1BusinessMetricsCustomerLifetimeValueGet(requestParameters, initOverrides) {
|
|
7253
|
+
async apiV1BusinessMetricsCustomerLifetimeValueGet(requestParameters = {}, initOverrides) {
|
|
5838
7254
|
const response = await this.apiV1BusinessMetricsCustomerLifetimeValueGetRaw(
|
|
5839
7255
|
requestParameters,
|
|
5840
7256
|
initOverrides
|
|
@@ -5845,12 +7261,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5845
7261
|
* Calculate how many days of operating expenses can be covered by current cash
|
|
5846
7262
|
*/
|
|
5847
7263
|
async apiV1BusinessMetricsDaysCashOnHandGetRaw(requestParameters, initOverrides) {
|
|
5848
|
-
if (requestParameters["teamId"] == null) {
|
|
5849
|
-
throw new RequiredError(
|
|
5850
|
-
"teamId",
|
|
5851
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsDaysCashOnHandGet().'
|
|
5852
|
-
);
|
|
5853
|
-
}
|
|
5854
7264
|
const queryParameters = {};
|
|
5855
7265
|
if (requestParameters["teamId"] != null) {
|
|
5856
7266
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5885,7 +7295,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5885
7295
|
/**
|
|
5886
7296
|
* Calculate how many days of operating expenses can be covered by current cash
|
|
5887
7297
|
*/
|
|
5888
|
-
async apiV1BusinessMetricsDaysCashOnHandGet(requestParameters, initOverrides) {
|
|
7298
|
+
async apiV1BusinessMetricsDaysCashOnHandGet(requestParameters = {}, initOverrides) {
|
|
5889
7299
|
const response = await this.apiV1BusinessMetricsDaysCashOnHandGetRaw(
|
|
5890
7300
|
requestParameters,
|
|
5891
7301
|
initOverrides
|
|
@@ -5896,12 +7306,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5896
7306
|
* Analyze expense ratios and trends over time
|
|
5897
7307
|
*/
|
|
5898
7308
|
async apiV1BusinessMetricsExpenseRatioAnalysisGetRaw(requestParameters, initOverrides) {
|
|
5899
|
-
if (requestParameters["teamId"] == null) {
|
|
5900
|
-
throw new RequiredError(
|
|
5901
|
-
"teamId",
|
|
5902
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsExpenseRatioAnalysisGet().'
|
|
5903
|
-
);
|
|
5904
|
-
}
|
|
5905
7309
|
const queryParameters = {};
|
|
5906
7310
|
if (requestParameters["teamId"] != null) {
|
|
5907
7311
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5936,7 +7340,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5936
7340
|
/**
|
|
5937
7341
|
* Analyze expense ratios and trends over time
|
|
5938
7342
|
*/
|
|
5939
|
-
async apiV1BusinessMetricsExpenseRatioAnalysisGet(requestParameters, initOverrides) {
|
|
7343
|
+
async apiV1BusinessMetricsExpenseRatioAnalysisGet(requestParameters = {}, initOverrides) {
|
|
5940
7344
|
const response = await this.apiV1BusinessMetricsExpenseRatioAnalysisGetRaw(
|
|
5941
7345
|
requestParameters,
|
|
5942
7346
|
initOverrides
|
|
@@ -5947,12 +7351,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5947
7351
|
* Break down expenses by fixed vs variable cost types
|
|
5948
7352
|
*/
|
|
5949
7353
|
async apiV1BusinessMetricsExpensesByCostTypeGetRaw(requestParameters, initOverrides) {
|
|
5950
|
-
if (requestParameters["teamId"] == null) {
|
|
5951
|
-
throw new RequiredError(
|
|
5952
|
-
"teamId",
|
|
5953
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsExpensesByCostTypeGet().'
|
|
5954
|
-
);
|
|
5955
|
-
}
|
|
5956
7354
|
const queryParameters = {};
|
|
5957
7355
|
if (requestParameters["teamId"] != null) {
|
|
5958
7356
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -5987,7 +7385,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5987
7385
|
/**
|
|
5988
7386
|
* Break down expenses by fixed vs variable cost types
|
|
5989
7387
|
*/
|
|
5990
|
-
async apiV1BusinessMetricsExpensesByCostTypeGet(requestParameters, initOverrides) {
|
|
7388
|
+
async apiV1BusinessMetricsExpensesByCostTypeGet(requestParameters = {}, initOverrides) {
|
|
5991
7389
|
const response = await this.apiV1BusinessMetricsExpensesByCostTypeGetRaw(
|
|
5992
7390
|
requestParameters,
|
|
5993
7391
|
initOverrides
|
|
@@ -5998,12 +7396,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
5998
7396
|
* Calculate average days from invoice issuance to cash collection
|
|
5999
7397
|
*/
|
|
6000
7398
|
async apiV1BusinessMetricsInvoiceToCashTimeGetRaw(requestParameters, initOverrides) {
|
|
6001
|
-
if (requestParameters["teamId"] == null) {
|
|
6002
|
-
throw new RequiredError(
|
|
6003
|
-
"teamId",
|
|
6004
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsInvoiceToCashTimeGet().'
|
|
6005
|
-
);
|
|
6006
|
-
}
|
|
6007
7399
|
const queryParameters = {};
|
|
6008
7400
|
if (requestParameters["teamId"] != null) {
|
|
6009
7401
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6041,7 +7433,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6041
7433
|
/**
|
|
6042
7434
|
* Calculate average days from invoice issuance to cash collection
|
|
6043
7435
|
*/
|
|
6044
|
-
async apiV1BusinessMetricsInvoiceToCashTimeGet(requestParameters, initOverrides) {
|
|
7436
|
+
async apiV1BusinessMetricsInvoiceToCashTimeGet(requestParameters = {}, initOverrides) {
|
|
6045
7437
|
const response = await this.apiV1BusinessMetricsInvoiceToCashTimeGetRaw(
|
|
6046
7438
|
requestParameters,
|
|
6047
7439
|
initOverrides
|
|
@@ -6052,12 +7444,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6052
7444
|
* Get aggregated monthly financial data including revenue, expenses, and profit
|
|
6053
7445
|
*/
|
|
6054
7446
|
async apiV1BusinessMetricsMonthlyFinancialSummaryGetRaw(requestParameters, initOverrides) {
|
|
6055
|
-
if (requestParameters["teamId"] == null) {
|
|
6056
|
-
throw new RequiredError(
|
|
6057
|
-
"teamId",
|
|
6058
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsMonthlyFinancialSummaryGet().'
|
|
6059
|
-
);
|
|
6060
|
-
}
|
|
6061
7447
|
const queryParameters = {};
|
|
6062
7448
|
if (requestParameters["teamId"] != null) {
|
|
6063
7449
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6092,7 +7478,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6092
7478
|
/**
|
|
6093
7479
|
* Get aggregated monthly financial data including revenue, expenses, and profit
|
|
6094
7480
|
*/
|
|
6095
|
-
async apiV1BusinessMetricsMonthlyFinancialSummaryGet(requestParameters, initOverrides) {
|
|
7481
|
+
async apiV1BusinessMetricsMonthlyFinancialSummaryGet(requestParameters = {}, initOverrides) {
|
|
6096
7482
|
const response = await this.apiV1BusinessMetricsMonthlyFinancialSummaryGetRaw(
|
|
6097
7483
|
requestParameters,
|
|
6098
7484
|
initOverrides
|
|
@@ -6103,12 +7489,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6103
7489
|
* Analyze MRR movement including new MRR, expansions, contractions, and churn
|
|
6104
7490
|
*/
|
|
6105
7491
|
async apiV1BusinessMetricsMrrMovementGetRaw(requestParameters, initOverrides) {
|
|
6106
|
-
if (requestParameters["teamId"] == null) {
|
|
6107
|
-
throw new RequiredError(
|
|
6108
|
-
"teamId",
|
|
6109
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsMrrMovementGet().'
|
|
6110
|
-
);
|
|
6111
|
-
}
|
|
6112
7492
|
const queryParameters = {};
|
|
6113
7493
|
if (requestParameters["teamId"] != null) {
|
|
6114
7494
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6143,7 +7523,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6143
7523
|
/**
|
|
6144
7524
|
* Analyze MRR movement including new MRR, expansions, contractions, and churn
|
|
6145
7525
|
*/
|
|
6146
|
-
async apiV1BusinessMetricsMrrMovementGet(requestParameters, initOverrides) {
|
|
7526
|
+
async apiV1BusinessMetricsMrrMovementGet(requestParameters = {}, initOverrides) {
|
|
6147
7527
|
const response = await this.apiV1BusinessMetricsMrrMovementGetRaw(
|
|
6148
7528
|
requestParameters,
|
|
6149
7529
|
initOverrides
|
|
@@ -6154,12 +7534,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6154
7534
|
* Get MRR tracking metrics including subscription revenue, ARR, and customer count
|
|
6155
7535
|
*/
|
|
6156
7536
|
async apiV1BusinessMetricsMrrTrackingGetRaw(requestParameters, initOverrides) {
|
|
6157
|
-
if (requestParameters["teamId"] == null) {
|
|
6158
|
-
throw new RequiredError(
|
|
6159
|
-
"teamId",
|
|
6160
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsMrrTrackingGet().'
|
|
6161
|
-
);
|
|
6162
|
-
}
|
|
6163
7537
|
const queryParameters = {};
|
|
6164
7538
|
if (requestParameters["teamId"] != null) {
|
|
6165
7539
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6194,7 +7568,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6194
7568
|
/**
|
|
6195
7569
|
* Get MRR tracking metrics including subscription revenue, ARR, and customer count
|
|
6196
7570
|
*/
|
|
6197
|
-
async apiV1BusinessMetricsMrrTrackingGet(requestParameters, initOverrides) {
|
|
7571
|
+
async apiV1BusinessMetricsMrrTrackingGet(requestParameters = {}, initOverrides) {
|
|
6198
7572
|
const response = await this.apiV1BusinessMetricsMrrTrackingGetRaw(
|
|
6199
7573
|
requestParameters,
|
|
6200
7574
|
initOverrides
|
|
@@ -6205,12 +7579,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6205
7579
|
* Break down revenue by product/service categories
|
|
6206
7580
|
*/
|
|
6207
7581
|
async apiV1BusinessMetricsRevenueByCategoryGetRaw(requestParameters, initOverrides) {
|
|
6208
|
-
if (requestParameters["teamId"] == null) {
|
|
6209
|
-
throw new RequiredError(
|
|
6210
|
-
"teamId",
|
|
6211
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsRevenueByCategoryGet().'
|
|
6212
|
-
);
|
|
6213
|
-
}
|
|
6214
7582
|
const queryParameters = {};
|
|
6215
7583
|
if (requestParameters["teamId"] != null) {
|
|
6216
7584
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6245,7 +7613,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6245
7613
|
/**
|
|
6246
7614
|
* Break down revenue by product/service categories
|
|
6247
7615
|
*/
|
|
6248
|
-
async apiV1BusinessMetricsRevenueByCategoryGet(requestParameters, initOverrides) {
|
|
7616
|
+
async apiV1BusinessMetricsRevenueByCategoryGet(requestParameters = {}, initOverrides) {
|
|
6249
7617
|
const response = await this.apiV1BusinessMetricsRevenueByCategoryGetRaw(
|
|
6250
7618
|
requestParameters,
|
|
6251
7619
|
initOverrides
|
|
@@ -6256,12 +7624,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6256
7624
|
* Calculate Rule of 40 score (revenue growth + profit margin) - a SaaS health metric
|
|
6257
7625
|
*/
|
|
6258
7626
|
async apiV1BusinessMetricsRuleOf40GetRaw(requestParameters, initOverrides) {
|
|
6259
|
-
if (requestParameters["teamId"] == null) {
|
|
6260
|
-
throw new RequiredError(
|
|
6261
|
-
"teamId",
|
|
6262
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsRuleOf40Get().'
|
|
6263
|
-
);
|
|
6264
|
-
}
|
|
6265
7627
|
const queryParameters = {};
|
|
6266
7628
|
if (requestParameters["teamId"] != null) {
|
|
6267
7629
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6296,7 +7658,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6296
7658
|
/**
|
|
6297
7659
|
* Calculate Rule of 40 score (revenue growth + profit margin) - a SaaS health metric
|
|
6298
7660
|
*/
|
|
6299
|
-
async apiV1BusinessMetricsRuleOf40Get(requestParameters, initOverrides) {
|
|
7661
|
+
async apiV1BusinessMetricsRuleOf40Get(requestParameters = {}, initOverrides) {
|
|
6300
7662
|
const response = await this.apiV1BusinessMetricsRuleOf40GetRaw(requestParameters, initOverrides);
|
|
6301
7663
|
return await response.value();
|
|
6302
7664
|
}
|
|
@@ -6304,12 +7666,6 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6304
7666
|
* Analyze working capital including current ratio and quick ratio
|
|
6305
7667
|
*/
|
|
6306
7668
|
async apiV1BusinessMetricsWorkingCapitalAnalysisGetRaw(requestParameters, initOverrides) {
|
|
6307
|
-
if (requestParameters["teamId"] == null) {
|
|
6308
|
-
throw new RequiredError(
|
|
6309
|
-
"teamId",
|
|
6310
|
-
'Required parameter "teamId" was null or undefined when calling apiV1BusinessMetricsWorkingCapitalAnalysisGet().'
|
|
6311
|
-
);
|
|
6312
|
-
}
|
|
6313
7669
|
const queryParameters = {};
|
|
6314
7670
|
if (requestParameters["teamId"] != null) {
|
|
6315
7671
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
@@ -6344,7 +7700,7 @@ var BusinessMetricsApi = class extends BaseAPI {
|
|
|
6344
7700
|
/**
|
|
6345
7701
|
* Analyze working capital including current ratio and quick ratio
|
|
6346
7702
|
*/
|
|
6347
|
-
async apiV1BusinessMetricsWorkingCapitalAnalysisGet(requestParameters, initOverrides) {
|
|
7703
|
+
async apiV1BusinessMetricsWorkingCapitalAnalysisGet(requestParameters = {}, initOverrides) {
|
|
6348
7704
|
const response = await this.apiV1BusinessMetricsWorkingCapitalAnalysisGetRaw(
|
|
6349
7705
|
requestParameters,
|
|
6350
7706
|
initOverrides
|
|
@@ -6465,12 +7821,6 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6465
7821
|
* Get recurring transactions grouped by status
|
|
6466
7822
|
*/
|
|
6467
7823
|
async apiV1RecurringTransactionsByStatusGetRaw(requestParameters, initOverrides) {
|
|
6468
|
-
if (requestParameters["userId"] == null) {
|
|
6469
|
-
throw new RequiredError(
|
|
6470
|
-
"userId",
|
|
6471
|
-
'Required parameter "userId" was null or undefined when calling apiV1RecurringTransactionsByStatusGet().'
|
|
6472
|
-
);
|
|
6473
|
-
}
|
|
6474
7824
|
const queryParameters = {};
|
|
6475
7825
|
if (requestParameters["userId"] != null) {
|
|
6476
7826
|
queryParameters["userId"] = requestParameters["userId"];
|
|
@@ -6517,7 +7867,7 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6517
7867
|
/**
|
|
6518
7868
|
* Get recurring transactions grouped by status
|
|
6519
7869
|
*/
|
|
6520
|
-
async apiV1RecurringTransactionsByStatusGet(requestParameters, initOverrides) {
|
|
7870
|
+
async apiV1RecurringTransactionsByStatusGet(requestParameters = {}, initOverrides) {
|
|
6521
7871
|
const response = await this.apiV1RecurringTransactionsByStatusGetRaw(
|
|
6522
7872
|
requestParameters,
|
|
6523
7873
|
initOverrides
|
|
@@ -6528,12 +7878,6 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6528
7878
|
* Get cash flow projection based on recurring transactions
|
|
6529
7879
|
*/
|
|
6530
7880
|
async apiV1RecurringTransactionsCashFlowProjectionGetRaw(requestParameters, initOverrides) {
|
|
6531
|
-
if (requestParameters["userId"] == null) {
|
|
6532
|
-
throw new RequiredError(
|
|
6533
|
-
"userId",
|
|
6534
|
-
'Required parameter "userId" was null or undefined when calling apiV1RecurringTransactionsCashFlowProjectionGet().'
|
|
6535
|
-
);
|
|
6536
|
-
}
|
|
6537
7881
|
const queryParameters = {};
|
|
6538
7882
|
if (requestParameters["userId"] != null) {
|
|
6539
7883
|
queryParameters["userId"] = requestParameters["userId"];
|
|
@@ -6565,7 +7909,7 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6565
7909
|
/**
|
|
6566
7910
|
* Get cash flow projection based on recurring transactions
|
|
6567
7911
|
*/
|
|
6568
|
-
async apiV1RecurringTransactionsCashFlowProjectionGet(requestParameters, initOverrides) {
|
|
7912
|
+
async apiV1RecurringTransactionsCashFlowProjectionGet(requestParameters = {}, initOverrides) {
|
|
6569
7913
|
const response = await this.apiV1RecurringTransactionsCashFlowProjectionGetRaw(
|
|
6570
7914
|
requestParameters,
|
|
6571
7915
|
initOverrides
|
|
@@ -6576,12 +7920,6 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6576
7920
|
* Get a paginated list of recurring transactions
|
|
6577
7921
|
*/
|
|
6578
7922
|
async apiV1RecurringTransactionsGetRaw(requestParameters, initOverrides) {
|
|
6579
|
-
if (requestParameters["userId"] == null) {
|
|
6580
|
-
throw new RequiredError(
|
|
6581
|
-
"userId",
|
|
6582
|
-
'Required parameter "userId" was null or undefined when calling apiV1RecurringTransactionsGet().'
|
|
6583
|
-
);
|
|
6584
|
-
}
|
|
6585
7923
|
const queryParameters = {};
|
|
6586
7924
|
if (requestParameters["userId"] != null) {
|
|
6587
7925
|
queryParameters["userId"] = requestParameters["userId"];
|
|
@@ -6637,7 +7975,7 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6637
7975
|
/**
|
|
6638
7976
|
* Get a paginated list of recurring transactions
|
|
6639
7977
|
*/
|
|
6640
|
-
async apiV1RecurringTransactionsGet(requestParameters, initOverrides) {
|
|
7978
|
+
async apiV1RecurringTransactionsGet(requestParameters = {}, initOverrides) {
|
|
6641
7979
|
const response = await this.apiV1RecurringTransactionsGetRaw(requestParameters, initOverrides);
|
|
6642
7980
|
return await response.value();
|
|
6643
7981
|
}
|
|
@@ -6645,12 +7983,6 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6645
7983
|
* Get important recurring transactions (high value or critical)
|
|
6646
7984
|
*/
|
|
6647
7985
|
async apiV1RecurringTransactionsImportantGetRaw(requestParameters, initOverrides) {
|
|
6648
|
-
if (requestParameters["userId"] == null) {
|
|
6649
|
-
throw new RequiredError(
|
|
6650
|
-
"userId",
|
|
6651
|
-
'Required parameter "userId" was null or undefined when calling apiV1RecurringTransactionsImportantGet().'
|
|
6652
|
-
);
|
|
6653
|
-
}
|
|
6654
7986
|
const queryParameters = {};
|
|
6655
7987
|
if (requestParameters["userId"] != null) {
|
|
6656
7988
|
queryParameters["userId"] = requestParameters["userId"];
|
|
@@ -6697,7 +8029,7 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6697
8029
|
/**
|
|
6698
8030
|
* Get important recurring transactions (high value or critical)
|
|
6699
8031
|
*/
|
|
6700
|
-
async apiV1RecurringTransactionsImportantGet(requestParameters, initOverrides) {
|
|
8032
|
+
async apiV1RecurringTransactionsImportantGet(requestParameters = {}, initOverrides) {
|
|
6701
8033
|
const response = await this.apiV1RecurringTransactionsImportantGetRaw(
|
|
6702
8034
|
requestParameters,
|
|
6703
8035
|
initOverrides
|
|
@@ -6708,12 +8040,6 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6708
8040
|
* Get monthly cash flow forecast
|
|
6709
8041
|
*/
|
|
6710
8042
|
async apiV1RecurringTransactionsMonthlyCashFlowForecastGetRaw(requestParameters, initOverrides) {
|
|
6711
|
-
if (requestParameters["userId"] == null) {
|
|
6712
|
-
throw new RequiredError(
|
|
6713
|
-
"userId",
|
|
6714
|
-
'Required parameter "userId" was null or undefined when calling apiV1RecurringTransactionsMonthlyCashFlowForecastGet().'
|
|
6715
|
-
);
|
|
6716
|
-
}
|
|
6717
8043
|
const queryParameters = {};
|
|
6718
8044
|
if (requestParameters["userId"] != null) {
|
|
6719
8045
|
queryParameters["userId"] = requestParameters["userId"];
|
|
@@ -6745,7 +8071,7 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6745
8071
|
/**
|
|
6746
8072
|
* Get monthly cash flow forecast
|
|
6747
8073
|
*/
|
|
6748
|
-
async apiV1RecurringTransactionsMonthlyCashFlowForecastGet(requestParameters, initOverrides) {
|
|
8074
|
+
async apiV1RecurringTransactionsMonthlyCashFlowForecastGet(requestParameters = {}, initOverrides) {
|
|
6749
8075
|
const response = await this.apiV1RecurringTransactionsMonthlyCashFlowForecastGetRaw(
|
|
6750
8076
|
requestParameters,
|
|
6751
8077
|
initOverrides
|
|
@@ -6756,12 +8082,6 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6756
8082
|
* Get upcoming recurring transactions
|
|
6757
8083
|
*/
|
|
6758
8084
|
async apiV1RecurringTransactionsUpcomingGetRaw(requestParameters, initOverrides) {
|
|
6759
|
-
if (requestParameters["userId"] == null) {
|
|
6760
|
-
throw new RequiredError(
|
|
6761
|
-
"userId",
|
|
6762
|
-
'Required parameter "userId" was null or undefined when calling apiV1RecurringTransactionsUpcomingGet().'
|
|
6763
|
-
);
|
|
6764
|
-
}
|
|
6765
8085
|
const queryParameters = {};
|
|
6766
8086
|
if (requestParameters["userId"] != null) {
|
|
6767
8087
|
queryParameters["userId"] = requestParameters["userId"];
|
|
@@ -6796,7 +8116,7 @@ var RecurringTransactionsApi = class extends BaseAPI {
|
|
|
6796
8116
|
/**
|
|
6797
8117
|
* Get upcoming recurring transactions
|
|
6798
8118
|
*/
|
|
6799
|
-
async apiV1RecurringTransactionsUpcomingGet(requestParameters, initOverrides) {
|
|
8119
|
+
async apiV1RecurringTransactionsUpcomingGet(requestParameters = {}, initOverrides) {
|
|
6800
8120
|
const response = await this.apiV1RecurringTransactionsUpcomingGetRaw(
|
|
6801
8121
|
requestParameters,
|
|
6802
8122
|
initOverrides
|
|
@@ -9204,48 +10524,64 @@ var ApiV1StripeSubscriptionsByStatusGetGroupByEnum = {
|
|
|
9204
10524
|
Week: "week"
|
|
9205
10525
|
};
|
|
9206
10526
|
|
|
9207
|
-
// apis/
|
|
9208
|
-
var
|
|
10527
|
+
// apis/StripeTransactionsApi.ts
|
|
10528
|
+
var StripeTransactionsApi = class extends BaseAPI {
|
|
9209
10529
|
/**
|
|
9210
|
-
*
|
|
10530
|
+
* Get balance transactions showing fees, net amounts, and currency conversions
|
|
9211
10531
|
*/
|
|
9212
|
-
async
|
|
10532
|
+
async apiV1StripeBalanceTransactionsGetRaw(requestParameters, initOverrides) {
|
|
9213
10533
|
const queryParameters = {};
|
|
10534
|
+
if (requestParameters["createdGte"] != null) {
|
|
10535
|
+
queryParameters["created_gte"] = requestParameters["createdGte"];
|
|
10536
|
+
}
|
|
10537
|
+
if (requestParameters["createdLte"] != null) {
|
|
10538
|
+
queryParameters["created_lte"] = requestParameters["createdLte"];
|
|
10539
|
+
}
|
|
10540
|
+
if (requestParameters["limit"] != null) {
|
|
10541
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
10542
|
+
}
|
|
10543
|
+
if (requestParameters["startingAfter"] != null) {
|
|
10544
|
+
queryParameters["starting_after"] = requestParameters["startingAfter"];
|
|
10545
|
+
}
|
|
10546
|
+
if (requestParameters["endingBefore"] != null) {
|
|
10547
|
+
queryParameters["ending_before"] = requestParameters["endingBefore"];
|
|
10548
|
+
}
|
|
9214
10549
|
const headerParameters = {};
|
|
9215
|
-
headerParameters["Content-Type"] = "application/json";
|
|
9216
10550
|
if (this.configuration && this.configuration.apiKey) {
|
|
9217
10551
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
9218
10552
|
}
|
|
9219
10553
|
const response = await this.request(
|
|
9220
10554
|
{
|
|
9221
|
-
path: `/
|
|
9222
|
-
method: "
|
|
10555
|
+
path: `/api/v1/stripe/balance-transactions`,
|
|
10556
|
+
method: "GET",
|
|
9223
10557
|
headers: headerParameters,
|
|
9224
|
-
query: queryParameters
|
|
9225
|
-
body: SyncBackfillRequestToJSON(requestParameters["syncBackfillRequest"])
|
|
10558
|
+
query: queryParameters
|
|
9226
10559
|
},
|
|
9227
10560
|
initOverrides
|
|
9228
10561
|
);
|
|
9229
10562
|
return new JSONApiResponse(
|
|
9230
10563
|
response,
|
|
9231
|
-
(jsonValue) =>
|
|
10564
|
+
(jsonValue) => ApiV1StripeBalanceTransactionsGet200ResponseFromJSON(jsonValue)
|
|
9232
10565
|
);
|
|
9233
10566
|
}
|
|
9234
10567
|
/**
|
|
9235
|
-
*
|
|
10568
|
+
* Get balance transactions showing fees, net amounts, and currency conversions
|
|
9236
10569
|
*/
|
|
9237
|
-
async
|
|
9238
|
-
const response = await this.
|
|
10570
|
+
async apiV1StripeBalanceTransactionsGet(requestParameters = {}, initOverrides) {
|
|
10571
|
+
const response = await this.apiV1StripeBalanceTransactionsGetRaw(
|
|
10572
|
+
requestParameters,
|
|
10573
|
+
initOverrides
|
|
10574
|
+
);
|
|
9239
10575
|
return await response.value();
|
|
9240
10576
|
}
|
|
9241
10577
|
/**
|
|
9242
|
-
*
|
|
10578
|
+
* Get a single balance transaction by ID
|
|
9243
10579
|
*/
|
|
9244
|
-
async
|
|
9245
|
-
if (requestParameters["
|
|
10580
|
+
async apiV1StripeBalanceTransactionsIdGetRaw(requestParameters, initOverrides) {
|
|
10581
|
+
if (requestParameters["id"] == null) {
|
|
9246
10582
|
throw new RequiredError(
|
|
9247
|
-
"
|
|
9248
|
-
'Required parameter "
|
|
10583
|
+
"id",
|
|
10584
|
+
'Required parameter "id" was null or undefined when calling apiV1StripeBalanceTransactionsIdGet().'
|
|
9249
10585
|
);
|
|
9250
10586
|
}
|
|
9251
10587
|
const queryParameters = {};
|
|
@@ -9255,11 +10591,11 @@ var SyncApi = class extends BaseAPI {
|
|
|
9255
10591
|
}
|
|
9256
10592
|
const response = await this.request(
|
|
9257
10593
|
{
|
|
9258
|
-
path: `/
|
|
9259
|
-
`{${"
|
|
9260
|
-
encodeURIComponent(String(requestParameters["
|
|
10594
|
+
path: `/api/v1/stripe/balance-transactions/{id}`.replace(
|
|
10595
|
+
`{${"id"}}`,
|
|
10596
|
+
encodeURIComponent(String(requestParameters["id"]))
|
|
9261
10597
|
),
|
|
9262
|
-
method: "
|
|
10598
|
+
method: "GET",
|
|
9263
10599
|
headers: headerParameters,
|
|
9264
10600
|
query: queryParameters
|
|
9265
10601
|
},
|
|
@@ -9267,116 +10603,276 @@ var SyncApi = class extends BaseAPI {
|
|
|
9267
10603
|
);
|
|
9268
10604
|
return new JSONApiResponse(
|
|
9269
10605
|
response,
|
|
9270
|
-
(jsonValue) =>
|
|
10606
|
+
(jsonValue) => ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSON(jsonValue)
|
|
9271
10607
|
);
|
|
9272
10608
|
}
|
|
9273
10609
|
/**
|
|
9274
|
-
*
|
|
10610
|
+
* Get a single balance transaction by ID
|
|
9275
10611
|
*/
|
|
9276
|
-
async
|
|
9277
|
-
const response = await this.
|
|
10612
|
+
async apiV1StripeBalanceTransactionsIdGet(requestParameters, initOverrides) {
|
|
10613
|
+
const response = await this.apiV1StripeBalanceTransactionsIdGetRaw(
|
|
10614
|
+
requestParameters,
|
|
10615
|
+
initOverrides
|
|
10616
|
+
);
|
|
9278
10617
|
return await response.value();
|
|
9279
10618
|
}
|
|
9280
10619
|
/**
|
|
9281
|
-
*
|
|
10620
|
+
* Get payouts showing bank transfers and reconciliation status
|
|
9282
10621
|
*/
|
|
9283
|
-
async
|
|
10622
|
+
async apiV1StripePayoutsGetRaw(requestParameters, initOverrides) {
|
|
9284
10623
|
const queryParameters = {};
|
|
10624
|
+
if (requestParameters["createdGte"] != null) {
|
|
10625
|
+
queryParameters["created_gte"] = requestParameters["createdGte"];
|
|
10626
|
+
}
|
|
10627
|
+
if (requestParameters["createdLte"] != null) {
|
|
10628
|
+
queryParameters["created_lte"] = requestParameters["createdLte"];
|
|
10629
|
+
}
|
|
10630
|
+
if (requestParameters["limit"] != null) {
|
|
10631
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
10632
|
+
}
|
|
10633
|
+
if (requestParameters["startingAfter"] != null) {
|
|
10634
|
+
queryParameters["starting_after"] = requestParameters["startingAfter"];
|
|
10635
|
+
}
|
|
10636
|
+
if (requestParameters["endingBefore"] != null) {
|
|
10637
|
+
queryParameters["ending_before"] = requestParameters["endingBefore"];
|
|
10638
|
+
}
|
|
10639
|
+
if (requestParameters["status"] != null) {
|
|
10640
|
+
queryParameters["status"] = requestParameters["status"];
|
|
10641
|
+
}
|
|
9285
10642
|
const headerParameters = {};
|
|
9286
|
-
headerParameters["Content-Type"] = "application/json";
|
|
9287
10643
|
if (this.configuration && this.configuration.apiKey) {
|
|
9288
10644
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
9289
10645
|
}
|
|
9290
10646
|
const response = await this.request(
|
|
9291
10647
|
{
|
|
9292
|
-
path: `/
|
|
9293
|
-
method: "
|
|
10648
|
+
path: `/api/v1/stripe/payouts`,
|
|
10649
|
+
method: "GET",
|
|
9294
10650
|
headers: headerParameters,
|
|
9295
|
-
query: queryParameters
|
|
9296
|
-
body: TriggerDailySyncRequestToJSON(requestParameters["triggerDailySyncRequest"])
|
|
10651
|
+
query: queryParameters
|
|
9297
10652
|
},
|
|
9298
10653
|
initOverrides
|
|
9299
10654
|
);
|
|
9300
10655
|
return new JSONApiResponse(
|
|
9301
10656
|
response,
|
|
9302
|
-
(jsonValue) =>
|
|
10657
|
+
(jsonValue) => ApiV1StripePayoutsGet200ResponseFromJSON(jsonValue)
|
|
9303
10658
|
);
|
|
9304
10659
|
}
|
|
9305
10660
|
/**
|
|
9306
|
-
*
|
|
10661
|
+
* Get payouts showing bank transfers and reconciliation status
|
|
9307
10662
|
*/
|
|
9308
|
-
async
|
|
9309
|
-
const response = await this.
|
|
10663
|
+
async apiV1StripePayoutsGet(requestParameters = {}, initOverrides) {
|
|
10664
|
+
const response = await this.apiV1StripePayoutsGetRaw(requestParameters, initOverrides);
|
|
9310
10665
|
return await response.value();
|
|
9311
10666
|
}
|
|
9312
10667
|
/**
|
|
9313
|
-
*
|
|
10668
|
+
* Get a single payout by ID
|
|
9314
10669
|
*/
|
|
9315
|
-
async
|
|
10670
|
+
async apiV1StripePayoutsIdGetRaw(requestParameters, initOverrides) {
|
|
10671
|
+
if (requestParameters["id"] == null) {
|
|
10672
|
+
throw new RequiredError(
|
|
10673
|
+
"id",
|
|
10674
|
+
'Required parameter "id" was null or undefined when calling apiV1StripePayoutsIdGet().'
|
|
10675
|
+
);
|
|
10676
|
+
}
|
|
9316
10677
|
const queryParameters = {};
|
|
9317
10678
|
const headerParameters = {};
|
|
9318
|
-
headerParameters["Content-Type"] = "application/json";
|
|
9319
10679
|
if (this.configuration && this.configuration.apiKey) {
|
|
9320
10680
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
9321
10681
|
}
|
|
9322
10682
|
const response = await this.request(
|
|
9323
10683
|
{
|
|
9324
|
-
path: `/
|
|
9325
|
-
|
|
10684
|
+
path: `/api/v1/stripe/payouts/{id}`.replace(
|
|
10685
|
+
`{${"id"}}`,
|
|
10686
|
+
encodeURIComponent(String(requestParameters["id"]))
|
|
10687
|
+
),
|
|
10688
|
+
method: "GET",
|
|
9326
10689
|
headers: headerParameters,
|
|
9327
|
-
query: queryParameters
|
|
9328
|
-
body: TriggerDailySyncRequestToJSON(requestParameters["triggerDailySyncRequest"])
|
|
10690
|
+
query: queryParameters
|
|
9329
10691
|
},
|
|
9330
10692
|
initOverrides
|
|
9331
10693
|
);
|
|
9332
10694
|
return new JSONApiResponse(
|
|
9333
10695
|
response,
|
|
9334
|
-
(jsonValue) =>
|
|
10696
|
+
(jsonValue) => ApiV1StripePayoutsGet200ResponseDataInnerFromJSON(jsonValue)
|
|
9335
10697
|
);
|
|
9336
10698
|
}
|
|
9337
10699
|
/**
|
|
9338
|
-
*
|
|
10700
|
+
* Get a single payout by ID
|
|
9339
10701
|
*/
|
|
9340
|
-
async
|
|
9341
|
-
const response = await this.
|
|
10702
|
+
async apiV1StripePayoutsIdGet(requestParameters, initOverrides) {
|
|
10703
|
+
const response = await this.apiV1StripePayoutsIdGetRaw(requestParameters, initOverrides);
|
|
9342
10704
|
return await response.value();
|
|
9343
10705
|
}
|
|
9344
10706
|
/**
|
|
9345
|
-
*
|
|
10707
|
+
* Get summary statistics for all transaction types
|
|
9346
10708
|
*/
|
|
9347
|
-
async
|
|
10709
|
+
async apiV1StripeTransactionsSummaryGetRaw(requestParameters, initOverrides) {
|
|
9348
10710
|
const queryParameters = {};
|
|
10711
|
+
if (requestParameters["createdGte"] != null) {
|
|
10712
|
+
queryParameters["created_gte"] = requestParameters["createdGte"];
|
|
10713
|
+
}
|
|
10714
|
+
if (requestParameters["createdLte"] != null) {
|
|
10715
|
+
queryParameters["created_lte"] = requestParameters["createdLte"];
|
|
10716
|
+
}
|
|
9349
10717
|
const headerParameters = {};
|
|
9350
|
-
headerParameters["Content-Type"] = "application/json";
|
|
9351
10718
|
if (this.configuration && this.configuration.apiKey) {
|
|
9352
10719
|
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
9353
10720
|
}
|
|
9354
10721
|
const response = await this.request(
|
|
9355
10722
|
{
|
|
9356
|
-
path: `/
|
|
9357
|
-
method: "
|
|
10723
|
+
path: `/api/v1/stripe/transactions/summary`,
|
|
10724
|
+
method: "GET",
|
|
9358
10725
|
headers: headerParameters,
|
|
9359
|
-
query: queryParameters
|
|
9360
|
-
|
|
10726
|
+
query: queryParameters
|
|
10727
|
+
},
|
|
10728
|
+
initOverrides
|
|
10729
|
+
);
|
|
10730
|
+
return new JSONApiResponse(
|
|
10731
|
+
response,
|
|
10732
|
+
(jsonValue) => ApiV1StripeTransactionsSummaryGet200ResponseFromJSON(jsonValue)
|
|
10733
|
+
);
|
|
10734
|
+
}
|
|
10735
|
+
/**
|
|
10736
|
+
* Get summary statistics for all transaction types
|
|
10737
|
+
*/
|
|
10738
|
+
async apiV1StripeTransactionsSummaryGet(requestParameters = {}, initOverrides) {
|
|
10739
|
+
const response = await this.apiV1StripeTransactionsSummaryGetRaw(
|
|
10740
|
+
requestParameters,
|
|
10741
|
+
initOverrides
|
|
10742
|
+
);
|
|
10743
|
+
return await response.value();
|
|
10744
|
+
}
|
|
10745
|
+
/**
|
|
10746
|
+
* Get transfers showing money movement between accounts
|
|
10747
|
+
*/
|
|
10748
|
+
async apiV1StripeTransfersGetRaw(requestParameters, initOverrides) {
|
|
10749
|
+
const queryParameters = {};
|
|
10750
|
+
if (requestParameters["createdGte"] != null) {
|
|
10751
|
+
queryParameters["created_gte"] = requestParameters["createdGte"];
|
|
10752
|
+
}
|
|
10753
|
+
if (requestParameters["createdLte"] != null) {
|
|
10754
|
+
queryParameters["created_lte"] = requestParameters["createdLte"];
|
|
10755
|
+
}
|
|
10756
|
+
if (requestParameters["limit"] != null) {
|
|
10757
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
10758
|
+
}
|
|
10759
|
+
if (requestParameters["startingAfter"] != null) {
|
|
10760
|
+
queryParameters["starting_after"] = requestParameters["startingAfter"];
|
|
10761
|
+
}
|
|
10762
|
+
if (requestParameters["endingBefore"] != null) {
|
|
10763
|
+
queryParameters["ending_before"] = requestParameters["endingBefore"];
|
|
10764
|
+
}
|
|
10765
|
+
const headerParameters = {};
|
|
10766
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
10767
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
10768
|
+
}
|
|
10769
|
+
const response = await this.request(
|
|
10770
|
+
{
|
|
10771
|
+
path: `/api/v1/stripe/transfers`,
|
|
10772
|
+
method: "GET",
|
|
10773
|
+
headers: headerParameters,
|
|
10774
|
+
query: queryParameters
|
|
10775
|
+
},
|
|
10776
|
+
initOverrides
|
|
10777
|
+
);
|
|
10778
|
+
return new JSONApiResponse(
|
|
10779
|
+
response,
|
|
10780
|
+
(jsonValue) => ApiV1StripeTransfersGet200ResponseFromJSON(jsonValue)
|
|
10781
|
+
);
|
|
10782
|
+
}
|
|
10783
|
+
/**
|
|
10784
|
+
* Get transfers showing money movement between accounts
|
|
10785
|
+
*/
|
|
10786
|
+
async apiV1StripeTransfersGet(requestParameters = {}, initOverrides) {
|
|
10787
|
+
const response = await this.apiV1StripeTransfersGetRaw(requestParameters, initOverrides);
|
|
10788
|
+
return await response.value();
|
|
10789
|
+
}
|
|
10790
|
+
/**
|
|
10791
|
+
* Get a single transfer by ID
|
|
10792
|
+
*/
|
|
10793
|
+
async apiV1StripeTransfersIdGetRaw(requestParameters, initOverrides) {
|
|
10794
|
+
if (requestParameters["id"] == null) {
|
|
10795
|
+
throw new RequiredError(
|
|
10796
|
+
"id",
|
|
10797
|
+
'Required parameter "id" was null or undefined when calling apiV1StripeTransfersIdGet().'
|
|
10798
|
+
);
|
|
10799
|
+
}
|
|
10800
|
+
const queryParameters = {};
|
|
10801
|
+
const headerParameters = {};
|
|
10802
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
10803
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
10804
|
+
}
|
|
10805
|
+
const response = await this.request(
|
|
10806
|
+
{
|
|
10807
|
+
path: `/api/v1/stripe/transfers/{id}`.replace(
|
|
10808
|
+
`{${"id"}}`,
|
|
10809
|
+
encodeURIComponent(String(requestParameters["id"]))
|
|
10810
|
+
),
|
|
10811
|
+
method: "GET",
|
|
10812
|
+
headers: headerParameters,
|
|
10813
|
+
query: queryParameters
|
|
9361
10814
|
},
|
|
9362
10815
|
initOverrides
|
|
9363
10816
|
);
|
|
9364
10817
|
return new JSONApiResponse(
|
|
9365
10818
|
response,
|
|
9366
|
-
(jsonValue) =>
|
|
10819
|
+
(jsonValue) => ApiV1StripeTransfersGet200ResponseDataInnerFromJSON(jsonValue)
|
|
9367
10820
|
);
|
|
9368
10821
|
}
|
|
9369
10822
|
/**
|
|
9370
|
-
*
|
|
10823
|
+
* Get a single transfer by ID
|
|
9371
10824
|
*/
|
|
9372
|
-
async
|
|
9373
|
-
const response = await this.
|
|
10825
|
+
async apiV1StripeTransfersIdGet(requestParameters, initOverrides) {
|
|
10826
|
+
const response = await this.apiV1StripeTransfersIdGetRaw(requestParameters, initOverrides);
|
|
9374
10827
|
return await response.value();
|
|
9375
10828
|
}
|
|
9376
10829
|
};
|
|
9377
10830
|
|
|
9378
10831
|
// apis/TenantsApi.ts
|
|
9379
10832
|
var TenantsApi = class extends BaseAPI {
|
|
10833
|
+
/**
|
|
10834
|
+
* Queue a balance transaction backfill job for a tenant
|
|
10835
|
+
*/
|
|
10836
|
+
async backfillBalanceTransactionsRaw(requestParameters, initOverrides) {
|
|
10837
|
+
if (requestParameters["tenantId"] == null) {
|
|
10838
|
+
throw new RequiredError(
|
|
10839
|
+
"tenantId",
|
|
10840
|
+
'Required parameter "tenantId" was null or undefined when calling backfillBalanceTransactions().'
|
|
10841
|
+
);
|
|
10842
|
+
}
|
|
10843
|
+
const queryParameters = {};
|
|
10844
|
+
const headerParameters = {};
|
|
10845
|
+
headerParameters["Content-Type"] = "application/json";
|
|
10846
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
10847
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
10848
|
+
}
|
|
10849
|
+
const response = await this.request(
|
|
10850
|
+
{
|
|
10851
|
+
path: `/tenants/{tenantId}/backfill/balance-transactions`.replace(
|
|
10852
|
+
`{${"tenantId"}}`,
|
|
10853
|
+
encodeURIComponent(String(requestParameters["tenantId"]))
|
|
10854
|
+
),
|
|
10855
|
+
method: "POST",
|
|
10856
|
+
headers: headerParameters,
|
|
10857
|
+
query: queryParameters,
|
|
10858
|
+
body: BackfillBalanceTransactionsRequestToJSON(
|
|
10859
|
+
requestParameters["backfillBalanceTransactionsRequest"]
|
|
10860
|
+
)
|
|
10861
|
+
},
|
|
10862
|
+
initOverrides
|
|
10863
|
+
);
|
|
10864
|
+
return new JSONApiResponse(
|
|
10865
|
+
response,
|
|
10866
|
+
(jsonValue) => BackfillBalanceTransactions202ResponseFromJSON(jsonValue)
|
|
10867
|
+
);
|
|
10868
|
+
}
|
|
10869
|
+
/**
|
|
10870
|
+
* Queue a balance transaction backfill job for a tenant
|
|
10871
|
+
*/
|
|
10872
|
+
async backfillBalanceTransactions(requestParameters, initOverrides) {
|
|
10873
|
+
const response = await this.backfillBalanceTransactionsRaw(requestParameters, initOverrides);
|
|
10874
|
+
return await response.value();
|
|
10875
|
+
}
|
|
9380
10876
|
/**
|
|
9381
10877
|
* Create a new tenant
|
|
9382
10878
|
*/
|
|
@@ -9593,7 +11089,7 @@ var TenantsApi = class extends BaseAPI {
|
|
|
9593
11089
|
method: "POST",
|
|
9594
11090
|
headers: headerParameters,
|
|
9595
11091
|
query: queryParameters,
|
|
9596
|
-
body:
|
|
11092
|
+
body: SyncTenantRequestToJSON(requestParameters["syncTenantRequest"])
|
|
9597
11093
|
},
|
|
9598
11094
|
initOverrides
|
|
9599
11095
|
);
|
|
@@ -9609,6 +11105,48 @@ var TenantsApi = class extends BaseAPI {
|
|
|
9609
11105
|
const response = await this.syncTenantRaw(requestParameters, initOverrides);
|
|
9610
11106
|
return await response.value();
|
|
9611
11107
|
}
|
|
11108
|
+
/**
|
|
11109
|
+
* Trigger single entity sync for tenant
|
|
11110
|
+
*/
|
|
11111
|
+
async syncTenantSingleEntityRaw(requestParameters, initOverrides) {
|
|
11112
|
+
if (requestParameters["tenantId"] == null) {
|
|
11113
|
+
throw new RequiredError(
|
|
11114
|
+
"tenantId",
|
|
11115
|
+
'Required parameter "tenantId" was null or undefined when calling syncTenantSingleEntity().'
|
|
11116
|
+
);
|
|
11117
|
+
}
|
|
11118
|
+
if (requestParameters["stripeId"] == null) {
|
|
11119
|
+
throw new RequiredError(
|
|
11120
|
+
"stripeId",
|
|
11121
|
+
'Required parameter "stripeId" was null or undefined when calling syncTenantSingleEntity().'
|
|
11122
|
+
);
|
|
11123
|
+
}
|
|
11124
|
+
const queryParameters = {};
|
|
11125
|
+
const headerParameters = {};
|
|
11126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
11127
|
+
headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key");
|
|
11128
|
+
}
|
|
11129
|
+
const response = await this.request(
|
|
11130
|
+
{
|
|
11131
|
+
path: `/tenants/{tenantId}/sync/single/{stripeId}`.replace(`{${"tenantId"}}`, encodeURIComponent(String(requestParameters["tenantId"]))).replace(`{${"stripeId"}}`, encodeURIComponent(String(requestParameters["stripeId"]))),
|
|
11132
|
+
method: "POST",
|
|
11133
|
+
headers: headerParameters,
|
|
11134
|
+
query: queryParameters
|
|
11135
|
+
},
|
|
11136
|
+
initOverrides
|
|
11137
|
+
);
|
|
11138
|
+
return new JSONApiResponse(
|
|
11139
|
+
response,
|
|
11140
|
+
(jsonValue) => SyncTenantSingleEntity202ResponseFromJSON(jsonValue)
|
|
11141
|
+
);
|
|
11142
|
+
}
|
|
11143
|
+
/**
|
|
11144
|
+
* Trigger single entity sync for tenant
|
|
11145
|
+
*/
|
|
11146
|
+
async syncTenantSingleEntity(requestParameters, initOverrides) {
|
|
11147
|
+
const response = await this.syncTenantSingleEntityRaw(requestParameters, initOverrides);
|
|
11148
|
+
return await response.value();
|
|
11149
|
+
}
|
|
9612
11150
|
/**
|
|
9613
11151
|
* Delete a tenant and clean up all associated data
|
|
9614
11152
|
*/
|
|
@@ -9646,7 +11184,14 @@ var TenantsApi = class extends BaseAPI {
|
|
|
9646
11184
|
*/
|
|
9647
11185
|
async tenantsTenantIdDelete(requestParameters, initOverrides) {
|
|
9648
11186
|
const response = await this.tenantsTenantIdDeleteRaw(requestParameters, initOverrides);
|
|
9649
|
-
|
|
11187
|
+
switch (response.raw.status) {
|
|
11188
|
+
case 200:
|
|
11189
|
+
return await response.value();
|
|
11190
|
+
case 204:
|
|
11191
|
+
return null;
|
|
11192
|
+
default:
|
|
11193
|
+
return await response.value();
|
|
11194
|
+
}
|
|
9650
11195
|
}
|
|
9651
11196
|
/**
|
|
9652
11197
|
* Update tenant configuration
|
|
@@ -9697,19 +11242,13 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9697
11242
|
* Get daily transaction aggregates
|
|
9698
11243
|
*/
|
|
9699
11244
|
async apiV1TransactionsByDayGetRaw(requestParameters, initOverrides) {
|
|
9700
|
-
if (requestParameters["userId"] == null) {
|
|
9701
|
-
throw new RequiredError(
|
|
9702
|
-
"userId",
|
|
9703
|
-
'Required parameter "userId" was null or undefined when calling apiV1TransactionsByDayGet().'
|
|
9704
|
-
);
|
|
9705
|
-
}
|
|
9706
11245
|
const queryParameters = {};
|
|
9707
|
-
if (requestParameters["userId"] != null) {
|
|
9708
|
-
queryParameters["userId"] = requestParameters["userId"];
|
|
9709
|
-
}
|
|
9710
11246
|
if (requestParameters["teamId"] != null) {
|
|
9711
11247
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
9712
11248
|
}
|
|
11249
|
+
if (requestParameters["userId"] != null) {
|
|
11250
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
11251
|
+
}
|
|
9713
11252
|
if (requestParameters["bankAccountId"] != null) {
|
|
9714
11253
|
queryParameters["bankAccountId"] = requestParameters["bankAccountId"];
|
|
9715
11254
|
}
|
|
@@ -9752,7 +11291,7 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9752
11291
|
/**
|
|
9753
11292
|
* Get daily transaction aggregates
|
|
9754
11293
|
*/
|
|
9755
|
-
async apiV1TransactionsByDayGet(requestParameters, initOverrides) {
|
|
11294
|
+
async apiV1TransactionsByDayGet(requestParameters = {}, initOverrides) {
|
|
9756
11295
|
const response = await this.apiV1TransactionsByDayGetRaw(requestParameters, initOverrides);
|
|
9757
11296
|
return await response.value();
|
|
9758
11297
|
}
|
|
@@ -9760,19 +11299,13 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9760
11299
|
* Get monthly transaction aggregates
|
|
9761
11300
|
*/
|
|
9762
11301
|
async apiV1TransactionsByMonthGetRaw(requestParameters, initOverrides) {
|
|
9763
|
-
if (requestParameters["userId"] == null) {
|
|
9764
|
-
throw new RequiredError(
|
|
9765
|
-
"userId",
|
|
9766
|
-
'Required parameter "userId" was null or undefined when calling apiV1TransactionsByMonthGet().'
|
|
9767
|
-
);
|
|
9768
|
-
}
|
|
9769
11302
|
const queryParameters = {};
|
|
9770
|
-
if (requestParameters["userId"] != null) {
|
|
9771
|
-
queryParameters["userId"] = requestParameters["userId"];
|
|
9772
|
-
}
|
|
9773
11303
|
if (requestParameters["teamId"] != null) {
|
|
9774
11304
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
9775
11305
|
}
|
|
11306
|
+
if (requestParameters["userId"] != null) {
|
|
11307
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
11308
|
+
}
|
|
9776
11309
|
if (requestParameters["bankAccountId"] != null) {
|
|
9777
11310
|
queryParameters["bankAccountId"] = requestParameters["bankAccountId"];
|
|
9778
11311
|
}
|
|
@@ -9815,7 +11348,7 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9815
11348
|
/**
|
|
9816
11349
|
* Get monthly transaction aggregates
|
|
9817
11350
|
*/
|
|
9818
|
-
async apiV1TransactionsByMonthGet(requestParameters, initOverrides) {
|
|
11351
|
+
async apiV1TransactionsByMonthGet(requestParameters = {}, initOverrides) {
|
|
9819
11352
|
const response = await this.apiV1TransactionsByMonthGetRaw(requestParameters, initOverrides);
|
|
9820
11353
|
return await response.value();
|
|
9821
11354
|
}
|
|
@@ -9823,19 +11356,13 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9823
11356
|
* Get spending breakdown by category
|
|
9824
11357
|
*/
|
|
9825
11358
|
async apiV1TransactionsCategorySpendingGetRaw(requestParameters, initOverrides) {
|
|
9826
|
-
if (requestParameters["userId"] == null) {
|
|
9827
|
-
throw new RequiredError(
|
|
9828
|
-
"userId",
|
|
9829
|
-
'Required parameter "userId" was null or undefined when calling apiV1TransactionsCategorySpendingGet().'
|
|
9830
|
-
);
|
|
9831
|
-
}
|
|
9832
11359
|
const queryParameters = {};
|
|
9833
|
-
if (requestParameters["userId"] != null) {
|
|
9834
|
-
queryParameters["userId"] = requestParameters["userId"];
|
|
9835
|
-
}
|
|
9836
11360
|
if (requestParameters["teamId"] != null) {
|
|
9837
11361
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
9838
11362
|
}
|
|
11363
|
+
if (requestParameters["userId"] != null) {
|
|
11364
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
11365
|
+
}
|
|
9839
11366
|
if (requestParameters["bankAccountId"] != null) {
|
|
9840
11367
|
queryParameters["bankAccountId"] = requestParameters["bankAccountId"];
|
|
9841
11368
|
}
|
|
@@ -9878,7 +11405,7 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9878
11405
|
/**
|
|
9879
11406
|
* Get spending breakdown by category
|
|
9880
11407
|
*/
|
|
9881
|
-
async apiV1TransactionsCategorySpendingGet(requestParameters, initOverrides) {
|
|
11408
|
+
async apiV1TransactionsCategorySpendingGet(requestParameters = {}, initOverrides) {
|
|
9882
11409
|
const response = await this.apiV1TransactionsCategorySpendingGetRaw(
|
|
9883
11410
|
requestParameters,
|
|
9884
11411
|
initOverrides
|
|
@@ -9889,19 +11416,13 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9889
11416
|
* Get a paginated list of financial transactions
|
|
9890
11417
|
*/
|
|
9891
11418
|
async apiV1TransactionsGetRaw(requestParameters, initOverrides) {
|
|
9892
|
-
if (requestParameters["userId"] == null) {
|
|
9893
|
-
throw new RequiredError(
|
|
9894
|
-
"userId",
|
|
9895
|
-
'Required parameter "userId" was null or undefined when calling apiV1TransactionsGet().'
|
|
9896
|
-
);
|
|
9897
|
-
}
|
|
9898
11419
|
const queryParameters = {};
|
|
9899
|
-
if (requestParameters["userId"] != null) {
|
|
9900
|
-
queryParameters["userId"] = requestParameters["userId"];
|
|
9901
|
-
}
|
|
9902
11420
|
if (requestParameters["teamId"] != null) {
|
|
9903
11421
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
9904
11422
|
}
|
|
11423
|
+
if (requestParameters["userId"] != null) {
|
|
11424
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
11425
|
+
}
|
|
9905
11426
|
if (requestParameters["bankAccountId"] != null) {
|
|
9906
11427
|
queryParameters["bankAccountId"] = requestParameters["bankAccountId"];
|
|
9907
11428
|
}
|
|
@@ -9950,7 +11471,7 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9950
11471
|
/**
|
|
9951
11472
|
* Get a paginated list of financial transactions
|
|
9952
11473
|
*/
|
|
9953
|
-
async apiV1TransactionsGet(requestParameters, initOverrides) {
|
|
11474
|
+
async apiV1TransactionsGet(requestParameters = {}, initOverrides) {
|
|
9954
11475
|
const response = await this.apiV1TransactionsGetRaw(requestParameters, initOverrides);
|
|
9955
11476
|
return await response.value();
|
|
9956
11477
|
}
|
|
@@ -9958,19 +11479,13 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
9958
11479
|
* Get spending breakdown by merchant
|
|
9959
11480
|
*/
|
|
9960
11481
|
async apiV1TransactionsMerchantSpendingGetRaw(requestParameters, initOverrides) {
|
|
9961
|
-
if (requestParameters["userId"] == null) {
|
|
9962
|
-
throw new RequiredError(
|
|
9963
|
-
"userId",
|
|
9964
|
-
'Required parameter "userId" was null or undefined when calling apiV1TransactionsMerchantSpendingGet().'
|
|
9965
|
-
);
|
|
9966
|
-
}
|
|
9967
11482
|
const queryParameters = {};
|
|
9968
|
-
if (requestParameters["userId"] != null) {
|
|
9969
|
-
queryParameters["userId"] = requestParameters["userId"];
|
|
9970
|
-
}
|
|
9971
11483
|
if (requestParameters["teamId"] != null) {
|
|
9972
11484
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
9973
11485
|
}
|
|
11486
|
+
if (requestParameters["userId"] != null) {
|
|
11487
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
11488
|
+
}
|
|
9974
11489
|
if (requestParameters["bankAccountId"] != null) {
|
|
9975
11490
|
queryParameters["bankAccountId"] = requestParameters["bankAccountId"];
|
|
9976
11491
|
}
|
|
@@ -10013,7 +11528,7 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
10013
11528
|
/**
|
|
10014
11529
|
* Get spending breakdown by merchant
|
|
10015
11530
|
*/
|
|
10016
|
-
async apiV1TransactionsMerchantSpendingGet(requestParameters, initOverrides) {
|
|
11531
|
+
async apiV1TransactionsMerchantSpendingGet(requestParameters = {}, initOverrides) {
|
|
10017
11532
|
const response = await this.apiV1TransactionsMerchantSpendingGetRaw(
|
|
10018
11533
|
requestParameters,
|
|
10019
11534
|
initOverrides
|
|
@@ -10024,19 +11539,13 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
10024
11539
|
* Detect recurring transaction patterns
|
|
10025
11540
|
*/
|
|
10026
11541
|
async apiV1TransactionsRecurringPatternsGetRaw(requestParameters, initOverrides) {
|
|
10027
|
-
if (requestParameters["userId"] == null) {
|
|
10028
|
-
throw new RequiredError(
|
|
10029
|
-
"userId",
|
|
10030
|
-
'Required parameter "userId" was null or undefined when calling apiV1TransactionsRecurringPatternsGet().'
|
|
10031
|
-
);
|
|
10032
|
-
}
|
|
10033
11542
|
const queryParameters = {};
|
|
10034
|
-
if (requestParameters["userId"] != null) {
|
|
10035
|
-
queryParameters["userId"] = requestParameters["userId"];
|
|
10036
|
-
}
|
|
10037
11543
|
if (requestParameters["teamId"] != null) {
|
|
10038
11544
|
queryParameters["teamId"] = requestParameters["teamId"];
|
|
10039
11545
|
}
|
|
11546
|
+
if (requestParameters["userId"] != null) {
|
|
11547
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
11548
|
+
}
|
|
10040
11549
|
if (requestParameters["bankAccountId"] != null) {
|
|
10041
11550
|
queryParameters["bankAccountId"] = requestParameters["bankAccountId"];
|
|
10042
11551
|
}
|
|
@@ -10079,7 +11588,7 @@ var TransactionsApi = class extends BaseAPI {
|
|
|
10079
11588
|
/**
|
|
10080
11589
|
* Detect recurring transaction patterns
|
|
10081
11590
|
*/
|
|
10082
|
-
async apiV1TransactionsRecurringPatternsGet(requestParameters, initOverrides) {
|
|
11591
|
+
async apiV1TransactionsRecurringPatternsGet(requestParameters = {}, initOverrides) {
|
|
10083
11592
|
const response = await this.apiV1TransactionsRecurringPatternsGetRaw(
|
|
10084
11593
|
requestParameters,
|
|
10085
11594
|
initOverrides
|
|
@@ -10100,9 +11609,9 @@ var ApiV1TransactionsGetSortDirEnum = {
|
|
|
10100
11609
|
// apis/WebhooksApi.ts
|
|
10101
11610
|
var WebhooksApi = class extends BaseAPI {
|
|
10102
11611
|
/**
|
|
10103
|
-
* Process Stripe webhook
|
|
11612
|
+
* Process Stripe webhook with tenant resolution
|
|
10104
11613
|
*/
|
|
10105
|
-
async
|
|
11614
|
+
async processWebhookRaw(initOverrides) {
|
|
10106
11615
|
const queryParameters = {};
|
|
10107
11616
|
const headerParameters = {};
|
|
10108
11617
|
const response = await this.request(
|
|
@@ -10116,18 +11625,18 @@ var WebhooksApi = class extends BaseAPI {
|
|
|
10116
11625
|
);
|
|
10117
11626
|
return new JSONApiResponse(
|
|
10118
11627
|
response,
|
|
10119
|
-
(jsonValue) =>
|
|
11628
|
+
(jsonValue) => ProcessWebhook200ResponseFromJSON(jsonValue)
|
|
10120
11629
|
);
|
|
10121
11630
|
}
|
|
10122
11631
|
/**
|
|
10123
|
-
* Process Stripe webhook
|
|
11632
|
+
* Process Stripe webhook with tenant resolution
|
|
10124
11633
|
*/
|
|
10125
|
-
async
|
|
10126
|
-
const response = await this.
|
|
11634
|
+
async processWebhook(initOverrides) {
|
|
11635
|
+
const response = await this.processWebhookRaw(initOverrides);
|
|
10127
11636
|
return await response.value();
|
|
10128
11637
|
}
|
|
10129
11638
|
/**
|
|
10130
|
-
* Process Stripe webhook with tenant resolution
|
|
11639
|
+
* Process Stripe webhook with tenant resolution via query parameters
|
|
10131
11640
|
*/
|
|
10132
11641
|
async webhooksStripePostRaw(requestParameters, initOverrides) {
|
|
10133
11642
|
const queryParameters = {};
|
|
@@ -10149,11 +11658,11 @@ var WebhooksApi = class extends BaseAPI {
|
|
|
10149
11658
|
);
|
|
10150
11659
|
return new JSONApiResponse(
|
|
10151
11660
|
response,
|
|
10152
|
-
(jsonValue) =>
|
|
11661
|
+
(jsonValue) => ProcessWebhook200ResponseFromJSON(jsonValue)
|
|
10153
11662
|
);
|
|
10154
11663
|
}
|
|
10155
11664
|
/**
|
|
10156
|
-
* Process Stripe webhook with tenant resolution
|
|
11665
|
+
* Process Stripe webhook with tenant resolution via query parameters
|
|
10157
11666
|
*/
|
|
10158
11667
|
async webhooksStripePost(requestParameters = {}, initOverrides) {
|
|
10159
11668
|
const response = await this.webhooksStripePostRaw(requestParameters, initOverrides);
|
|
@@ -10185,7 +11694,7 @@ var WebhooksApi = class extends BaseAPI {
|
|
|
10185
11694
|
);
|
|
10186
11695
|
return new JSONApiResponse(
|
|
10187
11696
|
response,
|
|
10188
|
-
(jsonValue) =>
|
|
11697
|
+
(jsonValue) => ProcessWebhook200ResponseFromJSON(jsonValue)
|
|
10189
11698
|
);
|
|
10190
11699
|
}
|
|
10191
11700
|
/**
|
|
@@ -10325,6 +11834,17 @@ export {
|
|
|
10325
11834
|
ApiV1RecurringTransactionsUpcomingGet200ResponseValInnerFromJSON,
|
|
10326
11835
|
ApiV1RecurringTransactionsUpcomingGet200ResponseValInnerFromJSONTyped,
|
|
10327
11836
|
ApiV1RecurringTransactionsUpcomingGet200ResponseValInnerToJSON,
|
|
11837
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerFromJSON,
|
|
11838
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerFromJSONTyped,
|
|
11839
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInnerToJSON,
|
|
11840
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSON,
|
|
11841
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerFromJSONTyped,
|
|
11842
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerObjectEnum,
|
|
11843
|
+
ApiV1StripeBalanceTransactionsGet200ResponseDataInnerToJSON,
|
|
11844
|
+
ApiV1StripeBalanceTransactionsGet200ResponseFromJSON,
|
|
11845
|
+
ApiV1StripeBalanceTransactionsGet200ResponseFromJSONTyped,
|
|
11846
|
+
ApiV1StripeBalanceTransactionsGet200ResponseObjectEnum,
|
|
11847
|
+
ApiV1StripeBalanceTransactionsGet200ResponseToJSON,
|
|
10328
11848
|
ApiV1StripeChargesByCurrencyGet200ResponseFromJSON,
|
|
10329
11849
|
ApiV1StripeChargesByCurrencyGet200ResponseFromJSONTyped,
|
|
10330
11850
|
ApiV1StripeChargesByCurrencyGet200ResponseToJSON,
|
|
@@ -10475,6 +11995,17 @@ export {
|
|
|
10475
11995
|
ApiV1StripePaymentIntentsSummaryGet200ResponseValInnerToJSON,
|
|
10476
11996
|
ApiV1StripePaymentIntentsSummaryGetGranularityEnum,
|
|
10477
11997
|
ApiV1StripePaymentIntentsSummaryGetGroupByEnum,
|
|
11998
|
+
ApiV1StripePayoutsGet200ResponseDataInnerFromJSON,
|
|
11999
|
+
ApiV1StripePayoutsGet200ResponseDataInnerFromJSONTyped,
|
|
12000
|
+
ApiV1StripePayoutsGet200ResponseDataInnerObjectEnum,
|
|
12001
|
+
ApiV1StripePayoutsGet200ResponseDataInnerToJSON,
|
|
12002
|
+
ApiV1StripePayoutsGet200ResponseFromJSON,
|
|
12003
|
+
ApiV1StripePayoutsGet200ResponseFromJSONTyped,
|
|
12004
|
+
ApiV1StripePayoutsGet200ResponseObjectEnum,
|
|
12005
|
+
ApiV1StripePayoutsGet200ResponseToJSON,
|
|
12006
|
+
ApiV1StripePayoutsGetStatusParameterFromJSON,
|
|
12007
|
+
ApiV1StripePayoutsGetStatusParameterFromJSONTyped,
|
|
12008
|
+
ApiV1StripePayoutsGetStatusParameterToJSON,
|
|
10478
12009
|
ApiV1StripePricesByTypeGet200ResponseFromJSON,
|
|
10479
12010
|
ApiV1StripePricesByTypeGet200ResponseFromJSONTyped,
|
|
10480
12011
|
ApiV1StripePricesByTypeGet200ResponseToJSON,
|
|
@@ -10552,6 +12083,35 @@ export {
|
|
|
10552
12083
|
ApiV1StripeSubscriptionsTrialAnalysisGet200ResponseValInnerFromJSON,
|
|
10553
12084
|
ApiV1StripeSubscriptionsTrialAnalysisGet200ResponseValInnerFromJSONTyped,
|
|
10554
12085
|
ApiV1StripeSubscriptionsTrialAnalysisGet200ResponseValInnerToJSON,
|
|
12086
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueFromJSON,
|
|
12087
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueFromJSONTyped,
|
|
12088
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValueToJSON,
|
|
12089
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsFromJSON,
|
|
12090
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsFromJSONTyped,
|
|
12091
|
+
ApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsToJSON,
|
|
12092
|
+
ApiV1StripeTransactionsSummaryGet200ResponseFromJSON,
|
|
12093
|
+
ApiV1StripeTransactionsSummaryGet200ResponseFromJSONTyped,
|
|
12094
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueFromJSON,
|
|
12095
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueFromJSONTyped,
|
|
12096
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValueToJSON,
|
|
12097
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsFromJSON,
|
|
12098
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsFromJSONTyped,
|
|
12099
|
+
ApiV1StripeTransactionsSummaryGet200ResponsePayoutsToJSON,
|
|
12100
|
+
ApiV1StripeTransactionsSummaryGet200ResponseToJSON,
|
|
12101
|
+
ApiV1StripeTransactionsSummaryGet200ResponseTransfersFromJSON,
|
|
12102
|
+
ApiV1StripeTransactionsSummaryGet200ResponseTransfersFromJSONTyped,
|
|
12103
|
+
ApiV1StripeTransactionsSummaryGet200ResponseTransfersToJSON,
|
|
12104
|
+
ApiV1StripeTransfersGet200ResponseDataInnerFromJSON,
|
|
12105
|
+
ApiV1StripeTransfersGet200ResponseDataInnerFromJSONTyped,
|
|
12106
|
+
ApiV1StripeTransfersGet200ResponseDataInnerObjectEnum,
|
|
12107
|
+
ApiV1StripeTransfersGet200ResponseDataInnerReversalsFromJSON,
|
|
12108
|
+
ApiV1StripeTransfersGet200ResponseDataInnerReversalsFromJSONTyped,
|
|
12109
|
+
ApiV1StripeTransfersGet200ResponseDataInnerReversalsToJSON,
|
|
12110
|
+
ApiV1StripeTransfersGet200ResponseDataInnerToJSON,
|
|
12111
|
+
ApiV1StripeTransfersGet200ResponseFromJSON,
|
|
12112
|
+
ApiV1StripeTransfersGet200ResponseFromJSONTyped,
|
|
12113
|
+
ApiV1StripeTransfersGet200ResponseObjectEnum,
|
|
12114
|
+
ApiV1StripeTransfersGet200ResponseToJSON,
|
|
10555
12115
|
ApiV1TransactionsByDayGet200ResponseFromJSON,
|
|
10556
12116
|
ApiV1TransactionsByDayGet200ResponseFromJSONTyped,
|
|
10557
12117
|
ApiV1TransactionsByDayGet200ResponseToJSON,
|
|
@@ -10591,10 +12151,33 @@ export {
|
|
|
10591
12151
|
ApiV1TransactionsRecurringPatternsGet200ResponseValInnerFromJSONTyped,
|
|
10592
12152
|
ApiV1TransactionsRecurringPatternsGet200ResponseValInnerToJSON,
|
|
10593
12153
|
BASE_PATH,
|
|
12154
|
+
BackfillBalanceTransactions202ResponseFromJSON,
|
|
12155
|
+
BackfillBalanceTransactions202ResponseFromJSONTyped,
|
|
12156
|
+
BackfillBalanceTransactions202ResponseJobFromJSON,
|
|
12157
|
+
BackfillBalanceTransactions202ResponseJobFromJSONTyped,
|
|
12158
|
+
BackfillBalanceTransactions202ResponseJobToJSON,
|
|
12159
|
+
BackfillBalanceTransactions202ResponseToJSON,
|
|
12160
|
+
BackfillBalanceTransactionsRequestCreatedFromJSON,
|
|
12161
|
+
BackfillBalanceTransactionsRequestCreatedFromJSONTyped,
|
|
12162
|
+
BackfillBalanceTransactionsRequestCreatedToJSON,
|
|
12163
|
+
BackfillBalanceTransactionsRequestFromJSON,
|
|
12164
|
+
BackfillBalanceTransactionsRequestFromJSONTyped,
|
|
12165
|
+
BackfillBalanceTransactionsRequestToJSON,
|
|
12166
|
+
BackfillBalanceTransactionsRequestWindowEnum,
|
|
10594
12167
|
BaseAPI,
|
|
12168
|
+
BillingApi,
|
|
10595
12169
|
BlobApiResponse,
|
|
10596
12170
|
BusinessMetricsApi,
|
|
10597
12171
|
COLLECTION_FORMATS,
|
|
12172
|
+
CheckTenantFeature200ResponseDataFromJSON,
|
|
12173
|
+
CheckTenantFeature200ResponseDataFromJSONTyped,
|
|
12174
|
+
CheckTenantFeature200ResponseDataPlanEnum,
|
|
12175
|
+
CheckTenantFeature200ResponseDataSuggestedPlanEnum,
|
|
12176
|
+
CheckTenantFeature200ResponseDataToJSON,
|
|
12177
|
+
CheckTenantFeature200ResponseFromJSON,
|
|
12178
|
+
CheckTenantFeature200ResponseFromJSONTyped,
|
|
12179
|
+
CheckTenantFeature200ResponseToJSON,
|
|
12180
|
+
CheckTenantFeatureFeatureEnum,
|
|
10598
12181
|
Configuration,
|
|
10599
12182
|
CreateTenant201ResponseFromJSON,
|
|
10600
12183
|
CreateTenant201ResponseFromJSONTyped,
|
|
@@ -10620,12 +12203,42 @@ export {
|
|
|
10620
12203
|
GetTenantHealth200ResponseFromJSON,
|
|
10621
12204
|
GetTenantHealth200ResponseFromJSONTyped,
|
|
10622
12205
|
GetTenantHealth200ResponseToJSON,
|
|
12206
|
+
GetTenantPlan200ResponseDataComplianceTierEnum,
|
|
12207
|
+
GetTenantPlan200ResponseDataFromJSON,
|
|
12208
|
+
GetTenantPlan200ResponseDataFromJSONTyped,
|
|
12209
|
+
GetTenantPlan200ResponseDataPlanEnum,
|
|
12210
|
+
GetTenantPlan200ResponseDataToJSON,
|
|
12211
|
+
GetTenantPlan200ResponseFromJSON,
|
|
12212
|
+
GetTenantPlan200ResponseFromJSONTyped,
|
|
12213
|
+
GetTenantPlan200ResponseToJSON,
|
|
10623
12214
|
GetTenantStats200ResponseDataInnerFromJSON,
|
|
10624
12215
|
GetTenantStats200ResponseDataInnerFromJSONTyped,
|
|
10625
12216
|
GetTenantStats200ResponseDataInnerToJSON,
|
|
10626
12217
|
GetTenantStats200ResponseFromJSON,
|
|
10627
12218
|
GetTenantStats200ResponseFromJSONTyped,
|
|
10628
12219
|
GetTenantStats200ResponseToJSON,
|
|
12220
|
+
GetTenantUsage200ResponseDataCurrentPeriodFromJSON,
|
|
12221
|
+
GetTenantUsage200ResponseDataCurrentPeriodFromJSONTyped,
|
|
12222
|
+
GetTenantUsage200ResponseDataCurrentPeriodToJSON,
|
|
12223
|
+
GetTenantUsage200ResponseDataFromJSON,
|
|
12224
|
+
GetTenantUsage200ResponseDataFromJSONTyped,
|
|
12225
|
+
GetTenantUsage200ResponseDataPlanEnum,
|
|
12226
|
+
GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSON,
|
|
12227
|
+
GetTenantUsage200ResponseDataRateLimitInfoApiCallsFromJSONTyped,
|
|
12228
|
+
GetTenantUsage200ResponseDataRateLimitInfoApiCallsToJSON,
|
|
12229
|
+
GetTenantUsage200ResponseDataRateLimitInfoFromJSON,
|
|
12230
|
+
GetTenantUsage200ResponseDataRateLimitInfoFromJSONTyped,
|
|
12231
|
+
GetTenantUsage200ResponseDataRateLimitInfoToJSON,
|
|
12232
|
+
GetTenantUsage200ResponseDataToJSON,
|
|
12233
|
+
GetTenantUsage200ResponseDataUsageFromJSON,
|
|
12234
|
+
GetTenantUsage200ResponseDataUsageFromJSONTyped,
|
|
12235
|
+
GetTenantUsage200ResponseDataUsageToJSON,
|
|
12236
|
+
GetTenantUsage200ResponseDataUsageWebhookEventsFromJSON,
|
|
12237
|
+
GetTenantUsage200ResponseDataUsageWebhookEventsFromJSONTyped,
|
|
12238
|
+
GetTenantUsage200ResponseDataUsageWebhookEventsToJSON,
|
|
12239
|
+
GetTenantUsage200ResponseFromJSON,
|
|
12240
|
+
GetTenantUsage200ResponseFromJSONTyped,
|
|
12241
|
+
GetTenantUsage200ResponseToJSON,
|
|
10629
12242
|
HealthApi,
|
|
10630
12243
|
HealthGet200ResponseFromJSON,
|
|
10631
12244
|
HealthGet200ResponseFromJSONTyped,
|
|
@@ -10634,6 +12247,25 @@ export {
|
|
|
10634
12247
|
HealthReadyGet200ResponseFromJSONTyped,
|
|
10635
12248
|
HealthReadyGet200ResponseToJSON,
|
|
10636
12249
|
JSONApiResponse,
|
|
12250
|
+
ListPlans200ResponseDataFromJSON,
|
|
12251
|
+
ListPlans200ResponseDataFromJSONTyped,
|
|
12252
|
+
ListPlans200ResponseDataPlansInnerFeaturesFromJSON,
|
|
12253
|
+
ListPlans200ResponseDataPlansInnerFeaturesFromJSONTyped,
|
|
12254
|
+
ListPlans200ResponseDataPlansInnerFeaturesToJSON,
|
|
12255
|
+
ListPlans200ResponseDataPlansInnerFromJSON,
|
|
12256
|
+
ListPlans200ResponseDataPlansInnerFromJSONTyped,
|
|
12257
|
+
ListPlans200ResponseDataPlansInnerLimitsFromJSON,
|
|
12258
|
+
ListPlans200ResponseDataPlansInnerLimitsFromJSONTyped,
|
|
12259
|
+
ListPlans200ResponseDataPlansInnerLimitsToJSON,
|
|
12260
|
+
ListPlans200ResponseDataPlansInnerNameEnum,
|
|
12261
|
+
ListPlans200ResponseDataPlansInnerPricingFromJSON,
|
|
12262
|
+
ListPlans200ResponseDataPlansInnerPricingFromJSONTyped,
|
|
12263
|
+
ListPlans200ResponseDataPlansInnerPricingToJSON,
|
|
12264
|
+
ListPlans200ResponseDataPlansInnerToJSON,
|
|
12265
|
+
ListPlans200ResponseDataToJSON,
|
|
12266
|
+
ListPlans200ResponseFromJSON,
|
|
12267
|
+
ListPlans200ResponseFromJSONTyped,
|
|
12268
|
+
ListPlans200ResponseToJSON,
|
|
10637
12269
|
ListTenants200ResponseDataInnerFromJSON,
|
|
10638
12270
|
ListTenants200ResponseDataInnerFromJSONTyped,
|
|
10639
12271
|
ListTenants200ResponseDataInnerStatusEnum,
|
|
@@ -10641,11 +12273,17 @@ export {
|
|
|
10641
12273
|
ListTenants200ResponseFromJSON,
|
|
10642
12274
|
ListTenants200ResponseFromJSONTyped,
|
|
10643
12275
|
ListTenants200ResponseToJSON,
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
12276
|
+
ProcessWebhook200ResponseFromJSON,
|
|
12277
|
+
ProcessWebhook200ResponseFromJSONTyped,
|
|
12278
|
+
ProcessWebhook200ResponseToJSON,
|
|
10647
12279
|
RecurringTransactionsApi,
|
|
10648
12280
|
RequiredError,
|
|
12281
|
+
ResetTenantUsage200ResponseDataFromJSON,
|
|
12282
|
+
ResetTenantUsage200ResponseDataFromJSONTyped,
|
|
12283
|
+
ResetTenantUsage200ResponseDataToJSON,
|
|
12284
|
+
ResetTenantUsage200ResponseFromJSON,
|
|
12285
|
+
ResetTenantUsage200ResponseFromJSONTyped,
|
|
12286
|
+
ResetTenantUsage200ResponseToJSON,
|
|
10649
12287
|
ResponseError,
|
|
10650
12288
|
StripeChargesApi,
|
|
10651
12289
|
StripeCustomersApi,
|
|
@@ -10654,57 +12292,42 @@ export {
|
|
|
10654
12292
|
StripePricesApi,
|
|
10655
12293
|
StripeProductsApi,
|
|
10656
12294
|
StripeSubscriptionsApi,
|
|
10657
|
-
|
|
10658
|
-
SyncBackfill202ResponseFromJSON,
|
|
10659
|
-
SyncBackfill202ResponseFromJSONTyped,
|
|
10660
|
-
SyncBackfill202ResponseJobFromJSON,
|
|
10661
|
-
SyncBackfill202ResponseJobFromJSONTyped,
|
|
10662
|
-
SyncBackfill202ResponseJobToJSON,
|
|
10663
|
-
SyncBackfill202ResponseToJSON,
|
|
10664
|
-
SyncBackfillRequestCreatedFromJSON,
|
|
10665
|
-
SyncBackfillRequestCreatedFromJSONTyped,
|
|
10666
|
-
SyncBackfillRequestCreatedToJSON,
|
|
10667
|
-
SyncBackfillRequestFromJSON,
|
|
10668
|
-
SyncBackfillRequestFromJSONTyped,
|
|
10669
|
-
SyncBackfillRequestObjectEnum,
|
|
10670
|
-
SyncBackfillRequestToJSON,
|
|
10671
|
-
SyncSingleEntity202ResponseFromJSON,
|
|
10672
|
-
SyncSingleEntity202ResponseFromJSONTyped,
|
|
10673
|
-
SyncSingleEntity202ResponseJobFromJSON,
|
|
10674
|
-
SyncSingleEntity202ResponseJobFromJSONTyped,
|
|
10675
|
-
SyncSingleEntity202ResponseJobToJSON,
|
|
10676
|
-
SyncSingleEntity202ResponseToJSON,
|
|
12295
|
+
StripeTransactionsApi,
|
|
10677
12296
|
SyncTenant202ResponseFromJSON,
|
|
10678
12297
|
SyncTenant202ResponseFromJSONTyped,
|
|
10679
12298
|
SyncTenant202ResponseJobFromJSON,
|
|
10680
12299
|
SyncTenant202ResponseJobFromJSONTyped,
|
|
10681
12300
|
SyncTenant202ResponseJobToJSON,
|
|
10682
12301
|
SyncTenant202ResponseToJSON,
|
|
12302
|
+
SyncTenantRequestCreatedFromJSON,
|
|
12303
|
+
SyncTenantRequestCreatedFromJSONTyped,
|
|
12304
|
+
SyncTenantRequestCreatedToJSON,
|
|
12305
|
+
SyncTenantRequestFromJSON,
|
|
12306
|
+
SyncTenantRequestFromJSONTyped,
|
|
12307
|
+
SyncTenantRequestObjectEnum,
|
|
12308
|
+
SyncTenantRequestToJSON,
|
|
12309
|
+
SyncTenantSingleEntity202ResponseFromJSON,
|
|
12310
|
+
SyncTenantSingleEntity202ResponseFromJSONTyped,
|
|
12311
|
+
SyncTenantSingleEntity202ResponseJobFromJSON,
|
|
12312
|
+
SyncTenantSingleEntity202ResponseJobFromJSONTyped,
|
|
12313
|
+
SyncTenantSingleEntity202ResponseJobToJSON,
|
|
12314
|
+
SyncTenantSingleEntity202ResponseToJSON,
|
|
10683
12315
|
TenantsApi,
|
|
10684
12316
|
TenantsTenantIdDelete200ResponseFromJSON,
|
|
10685
12317
|
TenantsTenantIdDelete200ResponseFromJSONTyped,
|
|
10686
12318
|
TenantsTenantIdDelete200ResponseToJSON,
|
|
10687
12319
|
TextApiResponse,
|
|
10688
12320
|
TransactionsApi,
|
|
10689
|
-
TriggerDailySync202ResponseFromJSON,
|
|
10690
|
-
TriggerDailySync202ResponseFromJSONTyped,
|
|
10691
|
-
TriggerDailySync202ResponseJobFromJSON,
|
|
10692
|
-
TriggerDailySync202ResponseJobFromJSONTyped,
|
|
10693
|
-
TriggerDailySync202ResponseJobToJSON,
|
|
10694
|
-
TriggerDailySync202ResponseToJSON,
|
|
10695
|
-
TriggerDailySyncRequestFromJSON,
|
|
10696
|
-
TriggerDailySyncRequestFromJSONTyped,
|
|
10697
|
-
TriggerDailySyncRequestObjectEnum,
|
|
10698
|
-
TriggerDailySyncRequestToJSON,
|
|
10699
|
-
TriggerMonthlySync202ResponseFromJSON,
|
|
10700
|
-
TriggerMonthlySync202ResponseFromJSONTyped,
|
|
10701
|
-
TriggerMonthlySync202ResponseToJSON,
|
|
10702
|
-
TriggerWeeklySync202ResponseFromJSON,
|
|
10703
|
-
TriggerWeeklySync202ResponseFromJSONTyped,
|
|
10704
|
-
TriggerWeeklySync202ResponseToJSON,
|
|
10705
12321
|
UpdateTenant200ResponseFromJSON,
|
|
10706
12322
|
UpdateTenant200ResponseFromJSONTyped,
|
|
10707
12323
|
UpdateTenant200ResponseToJSON,
|
|
12324
|
+
UpdateTenantPlan200ResponseFromJSON,
|
|
12325
|
+
UpdateTenantPlan200ResponseFromJSONTyped,
|
|
12326
|
+
UpdateTenantPlan200ResponseToJSON,
|
|
12327
|
+
UpdateTenantPlanRequestFromJSON,
|
|
12328
|
+
UpdateTenantPlanRequestFromJSONTyped,
|
|
12329
|
+
UpdateTenantPlanRequestPlanEnum,
|
|
12330
|
+
UpdateTenantPlanRequestToJSON,
|
|
10708
12331
|
UpdateTenantRequestFromJSON,
|
|
10709
12332
|
UpdateTenantRequestFromJSONTyped,
|
|
10710
12333
|
UpdateTenantRequestStatusEnum,
|
|
@@ -10754,6 +12377,9 @@ export {
|
|
|
10754
12377
|
instanceOfApiV1RecurringTransactionsMonthlyCashFlowForecastGet200ResponseValInner,
|
|
10755
12378
|
instanceOfApiV1RecurringTransactionsUpcomingGet200Response,
|
|
10756
12379
|
instanceOfApiV1RecurringTransactionsUpcomingGet200ResponseValInner,
|
|
12380
|
+
instanceOfApiV1StripeBalanceTransactionsGet200Response,
|
|
12381
|
+
instanceOfApiV1StripeBalanceTransactionsGet200ResponseDataInner,
|
|
12382
|
+
instanceOfApiV1StripeBalanceTransactionsGet200ResponseDataInnerFeeDetailsInner,
|
|
10757
12383
|
instanceOfApiV1StripeChargesByCurrencyGet200Response,
|
|
10758
12384
|
instanceOfApiV1StripeChargesByCurrencyGet200ResponseValInner,
|
|
10759
12385
|
instanceOfApiV1StripeChargesByFailureCodeGet200Response,
|
|
@@ -10794,6 +12420,9 @@ export {
|
|
|
10794
12420
|
instanceOfApiV1StripePaymentIntentsGet200ResponseValInner,
|
|
10795
12421
|
instanceOfApiV1StripePaymentIntentsSummaryGet200Response,
|
|
10796
12422
|
instanceOfApiV1StripePaymentIntentsSummaryGet200ResponseValInner,
|
|
12423
|
+
instanceOfApiV1StripePayoutsGet200Response,
|
|
12424
|
+
instanceOfApiV1StripePayoutsGet200ResponseDataInner,
|
|
12425
|
+
instanceOfApiV1StripePayoutsGetStatusParameter,
|
|
10797
12426
|
instanceOfApiV1StripePricesByTypeGet200Response,
|
|
10798
12427
|
instanceOfApiV1StripePricesByTypeGet200ResponseValInner,
|
|
10799
12428
|
instanceOfApiV1StripePricesGet200Response,
|
|
@@ -10816,6 +12445,15 @@ export {
|
|
|
10816
12445
|
instanceOfApiV1StripeSubscriptionsSummaryGet200ResponseValInner,
|
|
10817
12446
|
instanceOfApiV1StripeSubscriptionsTrialAnalysisGet200Response,
|
|
10818
12447
|
instanceOfApiV1StripeSubscriptionsTrialAnalysisGet200ResponseValInner,
|
|
12448
|
+
instanceOfApiV1StripeTransactionsSummaryGet200Response,
|
|
12449
|
+
instanceOfApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactions,
|
|
12450
|
+
instanceOfApiV1StripeTransactionsSummaryGet200ResponseBalanceTransactionsByTypeValue,
|
|
12451
|
+
instanceOfApiV1StripeTransactionsSummaryGet200ResponsePayouts,
|
|
12452
|
+
instanceOfApiV1StripeTransactionsSummaryGet200ResponsePayoutsByStatusValue,
|
|
12453
|
+
instanceOfApiV1StripeTransactionsSummaryGet200ResponseTransfers,
|
|
12454
|
+
instanceOfApiV1StripeTransfersGet200Response,
|
|
12455
|
+
instanceOfApiV1StripeTransfersGet200ResponseDataInner,
|
|
12456
|
+
instanceOfApiV1StripeTransfersGet200ResponseDataInnerReversals,
|
|
10819
12457
|
instanceOfApiV1TransactionsByDayGet200Response,
|
|
10820
12458
|
instanceOfApiV1TransactionsByDayGet200ResponseValInner,
|
|
10821
12459
|
instanceOfApiV1TransactionsByMonthGet200Response,
|
|
@@ -10828,6 +12466,12 @@ export {
|
|
|
10828
12466
|
instanceOfApiV1TransactionsMerchantSpendingGet200ResponseValInner,
|
|
10829
12467
|
instanceOfApiV1TransactionsRecurringPatternsGet200Response,
|
|
10830
12468
|
instanceOfApiV1TransactionsRecurringPatternsGet200ResponseValInner,
|
|
12469
|
+
instanceOfBackfillBalanceTransactions202Response,
|
|
12470
|
+
instanceOfBackfillBalanceTransactions202ResponseJob,
|
|
12471
|
+
instanceOfBackfillBalanceTransactionsRequest,
|
|
12472
|
+
instanceOfBackfillBalanceTransactionsRequestCreated,
|
|
12473
|
+
instanceOfCheckTenantFeature200Response,
|
|
12474
|
+
instanceOfCheckTenantFeature200ResponseData,
|
|
10831
12475
|
instanceOfCreateTenant201Response,
|
|
10832
12476
|
instanceOfCreateTenantRequest,
|
|
10833
12477
|
instanceOfDef0,
|
|
@@ -10835,28 +12479,40 @@ export {
|
|
|
10835
12479
|
instanceOfGetTenant200Response,
|
|
10836
12480
|
instanceOfGetTenantHealth200Response,
|
|
10837
12481
|
instanceOfGetTenantHealth200ResponseData,
|
|
12482
|
+
instanceOfGetTenantPlan200Response,
|
|
12483
|
+
instanceOfGetTenantPlan200ResponseData,
|
|
10838
12484
|
instanceOfGetTenantStats200Response,
|
|
10839
12485
|
instanceOfGetTenantStats200ResponseDataInner,
|
|
12486
|
+
instanceOfGetTenantUsage200Response,
|
|
12487
|
+
instanceOfGetTenantUsage200ResponseData,
|
|
12488
|
+
instanceOfGetTenantUsage200ResponseDataCurrentPeriod,
|
|
12489
|
+
instanceOfGetTenantUsage200ResponseDataRateLimitInfo,
|
|
12490
|
+
instanceOfGetTenantUsage200ResponseDataRateLimitInfoApiCalls,
|
|
12491
|
+
instanceOfGetTenantUsage200ResponseDataUsage,
|
|
12492
|
+
instanceOfGetTenantUsage200ResponseDataUsageWebhookEvents,
|
|
10840
12493
|
instanceOfHealthGet200Response,
|
|
10841
12494
|
instanceOfHealthReadyGet200Response,
|
|
12495
|
+
instanceOfListPlans200Response,
|
|
12496
|
+
instanceOfListPlans200ResponseData,
|
|
12497
|
+
instanceOfListPlans200ResponseDataPlansInner,
|
|
12498
|
+
instanceOfListPlans200ResponseDataPlansInnerFeatures,
|
|
12499
|
+
instanceOfListPlans200ResponseDataPlansInnerLimits,
|
|
12500
|
+
instanceOfListPlans200ResponseDataPlansInnerPricing,
|
|
10842
12501
|
instanceOfListTenants200Response,
|
|
10843
12502
|
instanceOfListTenants200ResponseDataInner,
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
instanceOfSyncBackfillRequest,
|
|
10848
|
-
instanceOfSyncBackfillRequestCreated,
|
|
10849
|
-
instanceOfSyncSingleEntity202Response,
|
|
10850
|
-
instanceOfSyncSingleEntity202ResponseJob,
|
|
12503
|
+
instanceOfProcessWebhook200Response,
|
|
12504
|
+
instanceOfResetTenantUsage200Response,
|
|
12505
|
+
instanceOfResetTenantUsage200ResponseData,
|
|
10851
12506
|
instanceOfSyncTenant202Response,
|
|
10852
12507
|
instanceOfSyncTenant202ResponseJob,
|
|
12508
|
+
instanceOfSyncTenantRequest,
|
|
12509
|
+
instanceOfSyncTenantRequestCreated,
|
|
12510
|
+
instanceOfSyncTenantSingleEntity202Response,
|
|
12511
|
+
instanceOfSyncTenantSingleEntity202ResponseJob,
|
|
10853
12512
|
instanceOfTenantsTenantIdDelete200Response,
|
|
10854
|
-
instanceOfTriggerDailySync202Response,
|
|
10855
|
-
instanceOfTriggerDailySync202ResponseJob,
|
|
10856
|
-
instanceOfTriggerDailySyncRequest,
|
|
10857
|
-
instanceOfTriggerMonthlySync202Response,
|
|
10858
|
-
instanceOfTriggerWeeklySync202Response,
|
|
10859
12513
|
instanceOfUpdateTenant200Response,
|
|
12514
|
+
instanceOfUpdateTenantPlan200Response,
|
|
12515
|
+
instanceOfUpdateTenantPlanRequest,
|
|
10860
12516
|
instanceOfUpdateTenantRequest,
|
|
10861
12517
|
mapValues,
|
|
10862
12518
|
querystring
|