@openmeter/client 1.0.0-beta-9b1736df5373 → 1.0.0-beta-ee44d4c99979
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 +7 -0
- package/dist/funcs/customers.d.ts +15 -1
- package/dist/funcs/customers.js +45 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/customers.d.ts +6 -1
- package/dist/models/schemas.d.ts +1730 -288
- package/dist/models/schemas.js +232 -190
- package/dist/models/types.d.ts +117 -97
- package/dist/sdk/internal.d.ts +27 -0
- package/dist/sdk/internal.js +37 -0
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -354,6 +354,18 @@ export declare const featureLlmTokenType: z.ZodEnum<{
|
|
|
354
354
|
request: "request";
|
|
355
355
|
response: "response";
|
|
356
356
|
}>;
|
|
357
|
+
export declare const invoiceDiscountReason: z.ZodEnum<{
|
|
358
|
+
maximum_spend: "maximum_spend";
|
|
359
|
+
ratecard_percentage: "ratecard_percentage";
|
|
360
|
+
ratecard_usage: "ratecard_usage";
|
|
361
|
+
}>;
|
|
362
|
+
export declare const invoiceLineExternalReferences: z.ZodObject<{
|
|
363
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
export declare const invoiceDetailedLineCostCategory: z.ZodEnum<{
|
|
366
|
+
commitment: "commitment";
|
|
367
|
+
regular: "regular";
|
|
368
|
+
}>;
|
|
357
369
|
export declare const subscriptionCreateTimingEnum: z.ZodEnum<{
|
|
358
370
|
immediate: "immediate";
|
|
359
371
|
}>;
|
|
@@ -424,18 +436,6 @@ export declare const workflowInvoicingSubscriptionEndProrationMode: z.ZodEnum<{
|
|
|
424
436
|
bill_actual_period: "bill_actual_period";
|
|
425
437
|
bill_full_period: "bill_full_period";
|
|
426
438
|
}>;
|
|
427
|
-
export declare const invoiceDiscountReason: z.ZodEnum<{
|
|
428
|
-
maximum_spend: "maximum_spend";
|
|
429
|
-
ratecard_percentage: "ratecard_percentage";
|
|
430
|
-
ratecard_usage: "ratecard_usage";
|
|
431
|
-
}>;
|
|
432
|
-
export declare const invoiceLineExternalReferences: z.ZodObject<{
|
|
433
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
434
|
-
}, z.core.$strip>;
|
|
435
|
-
export declare const invoiceDetailedLineCostCategory: z.ZodEnum<{
|
|
436
|
-
commitment: "commitment";
|
|
437
|
-
regular: "regular";
|
|
438
|
-
}>;
|
|
439
439
|
export declare const updateBillingInvoiceWorkflowInvoicingSettings: z.ZodObject<{
|
|
440
440
|
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
441
441
|
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -963,10 +963,10 @@ export declare const appReference: z.ZodObject<{
|
|
|
963
963
|
export declare const chargeRealizationInvoiceReference: z.ZodObject<{
|
|
964
964
|
id: z.ZodString;
|
|
965
965
|
}, z.core.$strip>;
|
|
966
|
-
export declare const
|
|
966
|
+
export declare const chargeReference: z.ZodObject<{
|
|
967
967
|
id: z.ZodString;
|
|
968
968
|
}, z.core.$strip>;
|
|
969
|
-
export declare const
|
|
969
|
+
export declare const addonReference: z.ZodObject<{
|
|
970
970
|
id: z.ZodString;
|
|
971
971
|
}, z.core.$strip>;
|
|
972
972
|
export declare const updateResourceReference: z.ZodObject<{
|
|
@@ -1041,6 +1041,10 @@ export declare const chargeResolvedCostBasis: z.ZodObject<{
|
|
|
1041
1041
|
costBasisId: z.ZodOptional<z.ZodString>;
|
|
1042
1042
|
resolvedAt: z.ZodDate;
|
|
1043
1043
|
}, z.core.$strip>;
|
|
1044
|
+
export declare const invoiceCustomerChargesInput: z.ZodObject<{
|
|
1045
|
+
asOf: z.ZodOptional<z.ZodDate>;
|
|
1046
|
+
progressiveBillingOverride: z.ZodOptional<z.ZodBoolean>;
|
|
1047
|
+
}, z.core.$strip>;
|
|
1044
1048
|
export declare const subscriptionAddonTimelineSegment: z.ZodObject<{
|
|
1045
1049
|
activeFrom: z.ZodDate;
|
|
1046
1050
|
activeTo: z.ZodOptional<z.ZodDate>;
|
|
@@ -1629,6 +1633,44 @@ export declare const chargeRealizationPayment: z.ZodObject<{
|
|
|
1629
1633
|
settled: "settled";
|
|
1630
1634
|
}>;
|
|
1631
1635
|
}, z.core.$strip>;
|
|
1636
|
+
export declare const invoiceLineAmountDiscount: z.ZodObject<{
|
|
1637
|
+
id: z.ZodString;
|
|
1638
|
+
reason: z.ZodEnum<{
|
|
1639
|
+
maximum_spend: "maximum_spend";
|
|
1640
|
+
ratecard_percentage: "ratecard_percentage";
|
|
1641
|
+
ratecard_usage: "ratecard_usage";
|
|
1642
|
+
}>;
|
|
1643
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1644
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
1645
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
1646
|
+
}, z.core.$strip>>;
|
|
1647
|
+
amount: z.ZodString;
|
|
1648
|
+
}, z.core.$strip>;
|
|
1649
|
+
export declare const invoiceLineUsageDiscount: z.ZodObject<{
|
|
1650
|
+
id: z.ZodString;
|
|
1651
|
+
reason: z.ZodEnum<{
|
|
1652
|
+
maximum_spend: "maximum_spend";
|
|
1653
|
+
ratecard_percentage: "ratecard_percentage";
|
|
1654
|
+
ratecard_usage: "ratecard_usage";
|
|
1655
|
+
}>;
|
|
1656
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1657
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
1658
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
}, z.core.$strip>>;
|
|
1660
|
+
quantity: z.ZodString;
|
|
1661
|
+
}, z.core.$strip>;
|
|
1662
|
+
export declare const invoiceLineBaseDiscount: z.ZodObject<{
|
|
1663
|
+
id: z.ZodString;
|
|
1664
|
+
reason: z.ZodEnum<{
|
|
1665
|
+
maximum_spend: "maximum_spend";
|
|
1666
|
+
ratecard_percentage: "ratecard_percentage";
|
|
1667
|
+
ratecard_usage: "ratecard_usage";
|
|
1668
|
+
}>;
|
|
1669
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1670
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
1671
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
1672
|
+
}, z.core.$strip>>;
|
|
1673
|
+
}, z.core.$strip>;
|
|
1632
1674
|
export declare const subscriptionCreateTiming: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1633
1675
|
immediate: "immediate";
|
|
1634
1676
|
}>, z.ZodDate]>;
|
|
@@ -1717,44 +1759,6 @@ export declare const workflowInvoicingSettings: z.ZodObject<{
|
|
|
1717
1759
|
bill_full_period: "bill_full_period";
|
|
1718
1760
|
}>>>;
|
|
1719
1761
|
}, z.core.$strip>;
|
|
1720
|
-
export declare const invoiceLineAmountDiscount: z.ZodObject<{
|
|
1721
|
-
id: z.ZodString;
|
|
1722
|
-
reason: z.ZodEnum<{
|
|
1723
|
-
maximum_spend: "maximum_spend";
|
|
1724
|
-
ratecard_percentage: "ratecard_percentage";
|
|
1725
|
-
ratecard_usage: "ratecard_usage";
|
|
1726
|
-
}>;
|
|
1727
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1728
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
1729
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
1730
|
-
}, z.core.$strip>>;
|
|
1731
|
-
amount: z.ZodString;
|
|
1732
|
-
}, z.core.$strip>;
|
|
1733
|
-
export declare const invoiceLineUsageDiscount: z.ZodObject<{
|
|
1734
|
-
id: z.ZodString;
|
|
1735
|
-
reason: z.ZodEnum<{
|
|
1736
|
-
maximum_spend: "maximum_spend";
|
|
1737
|
-
ratecard_percentage: "ratecard_percentage";
|
|
1738
|
-
ratecard_usage: "ratecard_usage";
|
|
1739
|
-
}>;
|
|
1740
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1741
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
1742
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
1743
|
-
}, z.core.$strip>>;
|
|
1744
|
-
quantity: z.ZodString;
|
|
1745
|
-
}, z.core.$strip>;
|
|
1746
|
-
export declare const invoiceLineBaseDiscount: z.ZodObject<{
|
|
1747
|
-
id: z.ZodString;
|
|
1748
|
-
reason: z.ZodEnum<{
|
|
1749
|
-
maximum_spend: "maximum_spend";
|
|
1750
|
-
ratecard_percentage: "ratecard_percentage";
|
|
1751
|
-
ratecard_usage: "ratecard_usage";
|
|
1752
|
-
}>;
|
|
1753
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
1755
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
1756
|
-
}, z.core.$strip>>;
|
|
1757
|
-
}, z.core.$strip>;
|
|
1758
1762
|
export declare const updateBillingWorkflowPaymentSettings: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1759
1763
|
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
1760
1764
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -3894,6 +3898,34 @@ export declare const invoiceWorkflow: z.ZodObject<{
|
|
|
3894
3898
|
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3895
3899
|
}, z.core.$strip>], "collectionMethod">>;
|
|
3896
3900
|
}, z.core.$strip>;
|
|
3901
|
+
export declare const invoiceLineDiscounts: z.ZodObject<{
|
|
3902
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3903
|
+
id: z.ZodString;
|
|
3904
|
+
reason: z.ZodEnum<{
|
|
3905
|
+
maximum_spend: "maximum_spend";
|
|
3906
|
+
ratecard_percentage: "ratecard_percentage";
|
|
3907
|
+
ratecard_usage: "ratecard_usage";
|
|
3908
|
+
}>;
|
|
3909
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3910
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
3911
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
3912
|
+
}, z.core.$strip>>;
|
|
3913
|
+
amount: z.ZodString;
|
|
3914
|
+
}, z.core.$strip>>>;
|
|
3915
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3916
|
+
id: z.ZodString;
|
|
3917
|
+
reason: z.ZodEnum<{
|
|
3918
|
+
maximum_spend: "maximum_spend";
|
|
3919
|
+
ratecard_percentage: "ratecard_percentage";
|
|
3920
|
+
ratecard_usage: "ratecard_usage";
|
|
3921
|
+
}>;
|
|
3922
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3923
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
3924
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
3925
|
+
}, z.core.$strip>>;
|
|
3926
|
+
quantity: z.ZodString;
|
|
3927
|
+
}, z.core.$strip>>>;
|
|
3928
|
+
}, z.core.$strip>;
|
|
3897
3929
|
export declare const subscriptionCancel: z.ZodObject<{
|
|
3898
3930
|
timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3899
3931
|
immediate: "immediate";
|
|
@@ -4017,34 +4049,6 @@ export declare const updateAppRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4017
4049
|
enableDraftSyncHook: z.ZodBoolean;
|
|
4018
4050
|
enableIssuingSyncHook: z.ZodBoolean;
|
|
4019
4051
|
}, z.core.$strip>], "type">;
|
|
4020
|
-
export declare const invoiceLineDiscounts: z.ZodObject<{
|
|
4021
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4022
|
-
id: z.ZodString;
|
|
4023
|
-
reason: z.ZodEnum<{
|
|
4024
|
-
maximum_spend: "maximum_spend";
|
|
4025
|
-
ratecard_percentage: "ratecard_percentage";
|
|
4026
|
-
ratecard_usage: "ratecard_usage";
|
|
4027
|
-
}>;
|
|
4028
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4029
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
4030
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
4031
|
-
}, z.core.$strip>>;
|
|
4032
|
-
amount: z.ZodString;
|
|
4033
|
-
}, z.core.$strip>>>;
|
|
4034
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4035
|
-
id: z.ZodString;
|
|
4036
|
-
reason: z.ZodEnum<{
|
|
4037
|
-
maximum_spend: "maximum_spend";
|
|
4038
|
-
ratecard_percentage: "ratecard_percentage";
|
|
4039
|
-
ratecard_usage: "ratecard_usage";
|
|
4040
|
-
}>;
|
|
4041
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4042
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
4043
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
4044
|
-
}, z.core.$strip>>;
|
|
4045
|
-
quantity: z.ZodString;
|
|
4046
|
-
}, z.core.$strip>>>;
|
|
4047
|
-
}, z.core.$strip>;
|
|
4048
4052
|
export declare const updateBillingInvoiceWorkflow: z.ZodObject<{
|
|
4049
4053
|
invoicing: z.ZodOptional<z.ZodObject<{
|
|
4050
4054
|
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -5317,6 +5321,70 @@ export declare const invoiceWorkflowSettings: z.ZodObject<{
|
|
|
5317
5321
|
}, z.core.$strip>], "collectionMethod">>;
|
|
5318
5322
|
}, z.core.$strip>;
|
|
5319
5323
|
}, z.core.$strip>;
|
|
5324
|
+
export declare const invoiceDetailedLine: z.ZodObject<{
|
|
5325
|
+
id: z.ZodString;
|
|
5326
|
+
name: z.ZodString;
|
|
5327
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5328
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5329
|
+
createdAt: z.ZodDate;
|
|
5330
|
+
updatedAt: z.ZodDate;
|
|
5331
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
5332
|
+
servicePeriod: z.ZodObject<{
|
|
5333
|
+
from: z.ZodDate;
|
|
5334
|
+
to: z.ZodDate;
|
|
5335
|
+
}, z.core.$strip>;
|
|
5336
|
+
totals: z.ZodObject<{
|
|
5337
|
+
amount: z.ZodString;
|
|
5338
|
+
taxesTotal: z.ZodString;
|
|
5339
|
+
taxesInclusiveTotal: z.ZodString;
|
|
5340
|
+
taxesExclusiveTotal: z.ZodString;
|
|
5341
|
+
chargesTotal: z.ZodString;
|
|
5342
|
+
discountsTotal: z.ZodString;
|
|
5343
|
+
creditsTotal: z.ZodString;
|
|
5344
|
+
total: z.ZodString;
|
|
5345
|
+
}, z.core.$strip>;
|
|
5346
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
5347
|
+
commitment: "commitment";
|
|
5348
|
+
regular: "regular";
|
|
5349
|
+
}>>;
|
|
5350
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5351
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5352
|
+
id: z.ZodString;
|
|
5353
|
+
reason: z.ZodEnum<{
|
|
5354
|
+
maximum_spend: "maximum_spend";
|
|
5355
|
+
ratecard_percentage: "ratecard_percentage";
|
|
5356
|
+
ratecard_usage: "ratecard_usage";
|
|
5357
|
+
}>;
|
|
5358
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5359
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
5360
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
5361
|
+
}, z.core.$strip>>;
|
|
5362
|
+
amount: z.ZodString;
|
|
5363
|
+
}, z.core.$strip>>>;
|
|
5364
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5365
|
+
id: z.ZodString;
|
|
5366
|
+
reason: z.ZodEnum<{
|
|
5367
|
+
maximum_spend: "maximum_spend";
|
|
5368
|
+
ratecard_percentage: "ratecard_percentage";
|
|
5369
|
+
ratecard_usage: "ratecard_usage";
|
|
5370
|
+
}>;
|
|
5371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5372
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
5373
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
5374
|
+
}, z.core.$strip>>;
|
|
5375
|
+
quantity: z.ZodString;
|
|
5376
|
+
}, z.core.$strip>>>;
|
|
5377
|
+
}, z.core.$strip>>;
|
|
5378
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5379
|
+
amount: z.ZodString;
|
|
5380
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5381
|
+
}, z.core.$strip>>>;
|
|
5382
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
5383
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
5384
|
+
}, z.core.$strip>>;
|
|
5385
|
+
quantity: z.ZodString;
|
|
5386
|
+
unitPrice: z.ZodString;
|
|
5387
|
+
}, z.core.$strip>;
|
|
5320
5388
|
export declare const taxCodePagePaginatedResponse: z.ZodObject<{
|
|
5321
5389
|
data: z.ZodArray<z.ZodObject<{
|
|
5322
5390
|
id: z.ZodString;
|
|
@@ -5686,70 +5754,6 @@ export declare const installedAppExternalInvoicing: z.ZodObject<{
|
|
|
5686
5754
|
report_usage: "report_usage";
|
|
5687
5755
|
}>>;
|
|
5688
5756
|
}, z.core.$strip>;
|
|
5689
|
-
export declare const invoiceDetailedLine: z.ZodObject<{
|
|
5690
|
-
id: z.ZodString;
|
|
5691
|
-
name: z.ZodString;
|
|
5692
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5693
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5694
|
-
createdAt: z.ZodDate;
|
|
5695
|
-
updatedAt: z.ZodDate;
|
|
5696
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
5697
|
-
servicePeriod: z.ZodObject<{
|
|
5698
|
-
from: z.ZodDate;
|
|
5699
|
-
to: z.ZodDate;
|
|
5700
|
-
}, z.core.$strip>;
|
|
5701
|
-
totals: z.ZodObject<{
|
|
5702
|
-
amount: z.ZodString;
|
|
5703
|
-
taxesTotal: z.ZodString;
|
|
5704
|
-
taxesInclusiveTotal: z.ZodString;
|
|
5705
|
-
taxesExclusiveTotal: z.ZodString;
|
|
5706
|
-
chargesTotal: z.ZodString;
|
|
5707
|
-
discountsTotal: z.ZodString;
|
|
5708
|
-
creditsTotal: z.ZodString;
|
|
5709
|
-
total: z.ZodString;
|
|
5710
|
-
}, z.core.$strip>;
|
|
5711
|
-
category: z.ZodDefault<z.ZodEnum<{
|
|
5712
|
-
commitment: "commitment";
|
|
5713
|
-
regular: "regular";
|
|
5714
|
-
}>>;
|
|
5715
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
5716
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5717
|
-
id: z.ZodString;
|
|
5718
|
-
reason: z.ZodEnum<{
|
|
5719
|
-
maximum_spend: "maximum_spend";
|
|
5720
|
-
ratecard_percentage: "ratecard_percentage";
|
|
5721
|
-
ratecard_usage: "ratecard_usage";
|
|
5722
|
-
}>;
|
|
5723
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5724
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
5725
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
5726
|
-
}, z.core.$strip>>;
|
|
5727
|
-
amount: z.ZodString;
|
|
5728
|
-
}, z.core.$strip>>>;
|
|
5729
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5730
|
-
id: z.ZodString;
|
|
5731
|
-
reason: z.ZodEnum<{
|
|
5732
|
-
maximum_spend: "maximum_spend";
|
|
5733
|
-
ratecard_percentage: "ratecard_percentage";
|
|
5734
|
-
ratecard_usage: "ratecard_usage";
|
|
5735
|
-
}>;
|
|
5736
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5737
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
5738
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
5739
|
-
}, z.core.$strip>>;
|
|
5740
|
-
quantity: z.ZodString;
|
|
5741
|
-
}, z.core.$strip>>>;
|
|
5742
|
-
}, z.core.$strip>>;
|
|
5743
|
-
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5744
|
-
amount: z.ZodString;
|
|
5745
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5746
|
-
}, z.core.$strip>>>;
|
|
5747
|
-
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
5748
|
-
invoicingId: z.ZodOptional<z.ZodString>;
|
|
5749
|
-
}, z.core.$strip>>;
|
|
5750
|
-
quantity: z.ZodString;
|
|
5751
|
-
unitPrice: z.ZodString;
|
|
5752
|
-
}, z.core.$strip>;
|
|
5753
5757
|
export declare const updateInvoiceWorkflowSettings: z.ZodObject<{
|
|
5754
5758
|
workflow: z.ZodObject<{
|
|
5755
5759
|
invoicing: z.ZodOptional<z.ZodObject<{
|
|
@@ -16028,6 +16032,361 @@ export declare const chargeUsageBased: z.ZodObject<{
|
|
|
16028
16032
|
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
16029
16033
|
}, z.core.$strip>>;
|
|
16030
16034
|
}, z.core.$strip>;
|
|
16035
|
+
export declare const invoiceCustomerChargesResult: z.ZodObject<{
|
|
16036
|
+
invoices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16037
|
+
id: z.ZodString;
|
|
16038
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16039
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16040
|
+
createdAt: z.ZodDate;
|
|
16041
|
+
updatedAt: z.ZodDate;
|
|
16042
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
16043
|
+
number: z.ZodString;
|
|
16044
|
+
currency: z.ZodString;
|
|
16045
|
+
supplier: z.ZodObject<{
|
|
16046
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16047
|
+
taxId: z.ZodOptional<z.ZodObject<{
|
|
16048
|
+
code: z.ZodOptional<z.ZodString>;
|
|
16049
|
+
}, z.core.$strip>>;
|
|
16050
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
16051
|
+
billingAddress: z.ZodObject<{
|
|
16052
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16053
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
16054
|
+
state: z.ZodOptional<z.ZodString>;
|
|
16055
|
+
city: z.ZodOptional<z.ZodString>;
|
|
16056
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
16057
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
16058
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
16059
|
+
}, z.core.$strip>;
|
|
16060
|
+
}, z.core.$strip>>;
|
|
16061
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16062
|
+
}, z.core.$strip>;
|
|
16063
|
+
customer: z.ZodObject<{
|
|
16064
|
+
name: z.ZodString;
|
|
16065
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
16066
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
16067
|
+
}, z.core.$strip>>;
|
|
16068
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
16069
|
+
country: z.ZodOptional<z.ZodString>;
|
|
16070
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
16071
|
+
state: z.ZodOptional<z.ZodString>;
|
|
16072
|
+
city: z.ZodOptional<z.ZodString>;
|
|
16073
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
16074
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
16075
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
16076
|
+
}, z.core.$strip>>;
|
|
16077
|
+
id: z.ZodString;
|
|
16078
|
+
key: z.ZodOptional<z.ZodString>;
|
|
16079
|
+
}, z.core.$strip>;
|
|
16080
|
+
totals: z.ZodObject<{
|
|
16081
|
+
amount: z.ZodString;
|
|
16082
|
+
taxesTotal: z.ZodString;
|
|
16083
|
+
taxesInclusiveTotal: z.ZodString;
|
|
16084
|
+
taxesExclusiveTotal: z.ZodString;
|
|
16085
|
+
chargesTotal: z.ZodString;
|
|
16086
|
+
discountsTotal: z.ZodString;
|
|
16087
|
+
creditsTotal: z.ZodString;
|
|
16088
|
+
total: z.ZodString;
|
|
16089
|
+
}, z.core.$strip>;
|
|
16090
|
+
servicePeriod: z.ZodObject<{
|
|
16091
|
+
from: z.ZodDate;
|
|
16092
|
+
to: z.ZodDate;
|
|
16093
|
+
}, z.core.$strip>;
|
|
16094
|
+
validationIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16095
|
+
code: z.ZodString;
|
|
16096
|
+
message: z.ZodString;
|
|
16097
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16098
|
+
severity: z.ZodEnum<{
|
|
16099
|
+
critical: "critical";
|
|
16100
|
+
warning: "warning";
|
|
16101
|
+
}>;
|
|
16102
|
+
field: z.ZodOptional<z.ZodString>;
|
|
16103
|
+
component: z.ZodOptional<z.ZodString>;
|
|
16104
|
+
}, z.core.$strip>>>;
|
|
16105
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16106
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16107
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
16108
|
+
}, z.core.$strip>>;
|
|
16109
|
+
type: z.ZodLiteral<"standard">;
|
|
16110
|
+
status: z.ZodEnum<{
|
|
16111
|
+
draft: "draft";
|
|
16112
|
+
issued: "issued";
|
|
16113
|
+
issuing: "issuing";
|
|
16114
|
+
overdue: "overdue";
|
|
16115
|
+
paid: "paid";
|
|
16116
|
+
payment_processing: "payment_processing";
|
|
16117
|
+
uncollectible: "uncollectible";
|
|
16118
|
+
voided: "voided";
|
|
16119
|
+
}>;
|
|
16120
|
+
statusDetails: z.ZodObject<{
|
|
16121
|
+
immutable: z.ZodBoolean;
|
|
16122
|
+
failed: z.ZodBoolean;
|
|
16123
|
+
extendedStatus: z.ZodString;
|
|
16124
|
+
availableActions: z.ZodObject<{
|
|
16125
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
16126
|
+
resultingState: z.ZodString;
|
|
16127
|
+
}, z.core.$strip>>;
|
|
16128
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
16129
|
+
resultingState: z.ZodString;
|
|
16130
|
+
}, z.core.$strip>>;
|
|
16131
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
16132
|
+
resultingState: z.ZodString;
|
|
16133
|
+
}, z.core.$strip>>;
|
|
16134
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
16135
|
+
resultingState: z.ZodString;
|
|
16136
|
+
}, z.core.$strip>>;
|
|
16137
|
+
snapshotQuantities: z.ZodOptional<z.ZodObject<{
|
|
16138
|
+
resultingState: z.ZodString;
|
|
16139
|
+
}, z.core.$strip>>;
|
|
16140
|
+
}, z.core.$strip>;
|
|
16141
|
+
}, z.core.$strip>;
|
|
16142
|
+
issuedAt: z.ZodOptional<z.ZodDate>;
|
|
16143
|
+
draftUntil: z.ZodOptional<z.ZodDate>;
|
|
16144
|
+
quantitySnapshottedAt: z.ZodOptional<z.ZodDate>;
|
|
16145
|
+
collectionAt: z.ZodOptional<z.ZodDate>;
|
|
16146
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
16147
|
+
sentToCustomerAt: z.ZodOptional<z.ZodDate>;
|
|
16148
|
+
workflow: z.ZodObject<{
|
|
16149
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
16150
|
+
tax: z.ZodObject<{
|
|
16151
|
+
id: z.ZodString;
|
|
16152
|
+
}, z.core.$strip>;
|
|
16153
|
+
invoicing: z.ZodObject<{
|
|
16154
|
+
id: z.ZodString;
|
|
16155
|
+
}, z.core.$strip>;
|
|
16156
|
+
payment: z.ZodObject<{
|
|
16157
|
+
id: z.ZodString;
|
|
16158
|
+
}, z.core.$strip>;
|
|
16159
|
+
}, z.core.$strip>>;
|
|
16160
|
+
sourceBillingProfile: z.ZodObject<{
|
|
16161
|
+
id: z.ZodString;
|
|
16162
|
+
}, z.core.$strip>;
|
|
16163
|
+
workflow: z.ZodObject<{
|
|
16164
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
16165
|
+
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
16166
|
+
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16167
|
+
dueAfter: z.ZodOptional<z.ZodString>;
|
|
16168
|
+
}, z.core.$strip>>;
|
|
16169
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16170
|
+
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
16171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16172
|
+
collectionMethod: z.ZodLiteral<"send_invoice">;
|
|
16173
|
+
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16174
|
+
}, z.core.$strip>], "collectionMethod">>;
|
|
16175
|
+
}, z.core.$strip>;
|
|
16176
|
+
}, z.core.$strip>;
|
|
16177
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16178
|
+
name: z.ZodString;
|
|
16179
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16180
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16181
|
+
createdAt: z.ZodDate;
|
|
16182
|
+
updatedAt: z.ZodDate;
|
|
16183
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
16184
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16185
|
+
type: z.ZodLiteral<"standard_line">;
|
|
16186
|
+
lifecycleController: z.ZodEnum<{
|
|
16187
|
+
manual: "manual";
|
|
16188
|
+
system: "system";
|
|
16189
|
+
}>;
|
|
16190
|
+
servicePeriod: z.ZodObject<{
|
|
16191
|
+
from: z.ZodDate;
|
|
16192
|
+
to: z.ZodDate;
|
|
16193
|
+
}, z.core.$strip>;
|
|
16194
|
+
totals: z.ZodObject<{
|
|
16195
|
+
amount: z.ZodString;
|
|
16196
|
+
taxesTotal: z.ZodString;
|
|
16197
|
+
taxesInclusiveTotal: z.ZodString;
|
|
16198
|
+
taxesExclusiveTotal: z.ZodString;
|
|
16199
|
+
chargesTotal: z.ZodString;
|
|
16200
|
+
discountsTotal: z.ZodString;
|
|
16201
|
+
creditsTotal: z.ZodString;
|
|
16202
|
+
total: z.ZodString;
|
|
16203
|
+
}, z.core.$strip>;
|
|
16204
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
16205
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16206
|
+
id: z.ZodString;
|
|
16207
|
+
reason: z.ZodEnum<{
|
|
16208
|
+
maximum_spend: "maximum_spend";
|
|
16209
|
+
ratecard_percentage: "ratecard_percentage";
|
|
16210
|
+
ratecard_usage: "ratecard_usage";
|
|
16211
|
+
}>;
|
|
16212
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16213
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16214
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16215
|
+
}, z.core.$strip>>;
|
|
16216
|
+
amount: z.ZodString;
|
|
16217
|
+
}, z.core.$strip>>>;
|
|
16218
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16219
|
+
id: z.ZodString;
|
|
16220
|
+
reason: z.ZodEnum<{
|
|
16221
|
+
maximum_spend: "maximum_spend";
|
|
16222
|
+
ratecard_percentage: "ratecard_percentage";
|
|
16223
|
+
ratecard_usage: "ratecard_usage";
|
|
16224
|
+
}>;
|
|
16225
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16226
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16227
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16228
|
+
}, z.core.$strip>>;
|
|
16229
|
+
quantity: z.ZodString;
|
|
16230
|
+
}, z.core.$strip>>>;
|
|
16231
|
+
}, z.core.$strip>>;
|
|
16232
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16233
|
+
amount: z.ZodString;
|
|
16234
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16235
|
+
}, z.core.$strip>>>;
|
|
16236
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16237
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16238
|
+
}, z.core.$strip>>;
|
|
16239
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
16240
|
+
id: z.ZodString;
|
|
16241
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16242
|
+
phase: z.ZodObject<{
|
|
16243
|
+
id: z.ZodString;
|
|
16244
|
+
item: z.ZodObject<{
|
|
16245
|
+
id: z.ZodString;
|
|
16246
|
+
}, z.core.$strip>;
|
|
16247
|
+
}, z.core.$strip>;
|
|
16248
|
+
}, z.core.$strip>>;
|
|
16249
|
+
rateCard: z.ZodObject<{
|
|
16250
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16251
|
+
type: z.ZodLiteral<"free">;
|
|
16252
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16253
|
+
type: z.ZodLiteral<"flat">;
|
|
16254
|
+
amount: z.ZodString;
|
|
16255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16256
|
+
type: z.ZodLiteral<"unit">;
|
|
16257
|
+
amount: z.ZodString;
|
|
16258
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16259
|
+
type: z.ZodLiteral<"graduated">;
|
|
16260
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
16261
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
16262
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
16263
|
+
type: z.ZodLiteral<"flat">;
|
|
16264
|
+
amount: z.ZodString;
|
|
16265
|
+
}, z.core.$strip>>;
|
|
16266
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
16267
|
+
type: z.ZodLiteral<"unit">;
|
|
16268
|
+
amount: z.ZodString;
|
|
16269
|
+
}, z.core.$strip>>;
|
|
16270
|
+
}, z.core.$strip>>;
|
|
16271
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16272
|
+
type: z.ZodLiteral<"volume">;
|
|
16273
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
16274
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
16275
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
16276
|
+
type: z.ZodLiteral<"flat">;
|
|
16277
|
+
amount: z.ZodString;
|
|
16278
|
+
}, z.core.$strip>>;
|
|
16279
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
16280
|
+
type: z.ZodLiteral<"unit">;
|
|
16281
|
+
amount: z.ZodString;
|
|
16282
|
+
}, z.core.$strip>>;
|
|
16283
|
+
}, z.core.$strip>>;
|
|
16284
|
+
}, z.core.$strip>], "type">;
|
|
16285
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
16286
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
16287
|
+
exclusive: "exclusive";
|
|
16288
|
+
inclusive: "inclusive";
|
|
16289
|
+
}>>;
|
|
16290
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
16291
|
+
id: z.ZodString;
|
|
16292
|
+
}, z.core.$strip>>;
|
|
16293
|
+
}, z.core.$strip>>;
|
|
16294
|
+
featureKey: z.ZodOptional<z.ZodString>;
|
|
16295
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
16296
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
16297
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
16298
|
+
}, z.core.$strip>>;
|
|
16299
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
16300
|
+
operation: z.ZodEnum<{
|
|
16301
|
+
divide: "divide";
|
|
16302
|
+
multiply: "multiply";
|
|
16303
|
+
}>;
|
|
16304
|
+
conversionFactor: z.ZodString;
|
|
16305
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
16306
|
+
ceiling: "ceiling";
|
|
16307
|
+
floor: "floor";
|
|
16308
|
+
half_up: "half_up";
|
|
16309
|
+
none: "none";
|
|
16310
|
+
}>>>;
|
|
16311
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
16312
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
16313
|
+
}, z.core.$strip>>;
|
|
16314
|
+
}, z.core.$strip>;
|
|
16315
|
+
detailedLines: z.ZodArray<z.ZodObject<{
|
|
16316
|
+
id: z.ZodString;
|
|
16317
|
+
name: z.ZodString;
|
|
16318
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16319
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16320
|
+
createdAt: z.ZodDate;
|
|
16321
|
+
updatedAt: z.ZodDate;
|
|
16322
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
16323
|
+
servicePeriod: z.ZodObject<{
|
|
16324
|
+
from: z.ZodDate;
|
|
16325
|
+
to: z.ZodDate;
|
|
16326
|
+
}, z.core.$strip>;
|
|
16327
|
+
totals: z.ZodObject<{
|
|
16328
|
+
amount: z.ZodString;
|
|
16329
|
+
taxesTotal: z.ZodString;
|
|
16330
|
+
taxesInclusiveTotal: z.ZodString;
|
|
16331
|
+
taxesExclusiveTotal: z.ZodString;
|
|
16332
|
+
chargesTotal: z.ZodString;
|
|
16333
|
+
discountsTotal: z.ZodString;
|
|
16334
|
+
creditsTotal: z.ZodString;
|
|
16335
|
+
total: z.ZodString;
|
|
16336
|
+
}, z.core.$strip>;
|
|
16337
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
16338
|
+
commitment: "commitment";
|
|
16339
|
+
regular: "regular";
|
|
16340
|
+
}>>;
|
|
16341
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
16342
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16343
|
+
id: z.ZodString;
|
|
16344
|
+
reason: z.ZodEnum<{
|
|
16345
|
+
maximum_spend: "maximum_spend";
|
|
16346
|
+
ratecard_percentage: "ratecard_percentage";
|
|
16347
|
+
ratecard_usage: "ratecard_usage";
|
|
16348
|
+
}>;
|
|
16349
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16350
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16351
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16352
|
+
}, z.core.$strip>>;
|
|
16353
|
+
amount: z.ZodString;
|
|
16354
|
+
}, z.core.$strip>>>;
|
|
16355
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16356
|
+
id: z.ZodString;
|
|
16357
|
+
reason: z.ZodEnum<{
|
|
16358
|
+
maximum_spend: "maximum_spend";
|
|
16359
|
+
ratecard_percentage: "ratecard_percentage";
|
|
16360
|
+
ratecard_usage: "ratecard_usage";
|
|
16361
|
+
}>;
|
|
16362
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16363
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16364
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16365
|
+
}, z.core.$strip>>;
|
|
16366
|
+
quantity: z.ZodString;
|
|
16367
|
+
}, z.core.$strip>>>;
|
|
16368
|
+
}, z.core.$strip>>;
|
|
16369
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16370
|
+
amount: z.ZodString;
|
|
16371
|
+
description: z.ZodOptional<z.ZodString>;
|
|
16372
|
+
}, z.core.$strip>>>;
|
|
16373
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
16374
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
16375
|
+
}, z.core.$strip>>;
|
|
16376
|
+
quantity: z.ZodString;
|
|
16377
|
+
unitPrice: z.ZodString;
|
|
16378
|
+
}, z.core.$strip>>;
|
|
16379
|
+
usageQuantityDetail: z.ZodOptional<z.ZodObject<{
|
|
16380
|
+
rawQuantity: z.ZodString;
|
|
16381
|
+
invoicedQuantity: z.ZodString;
|
|
16382
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
16383
|
+
}, z.core.$strip>>;
|
|
16384
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
16385
|
+
id: z.ZodString;
|
|
16386
|
+
}, z.core.$strip>>;
|
|
16387
|
+
}, z.core.$strip>], "type">>>;
|
|
16388
|
+
}, z.core.$strip>], "type">>;
|
|
16389
|
+
}, z.core.$strip>;
|
|
16031
16390
|
export declare const invoicePagePaginatedResponse: z.ZodObject<{
|
|
16032
16391
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16033
16392
|
id: z.ZodString;
|
|
@@ -24496,6 +24855,368 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
|
|
|
24496
24855
|
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
24497
24856
|
}, z.core.$strip>>;
|
|
24498
24857
|
}, z.core.$strip>], "type">;
|
|
24858
|
+
export declare const invoiceCustomerChargesPathParams: z.ZodObject<{
|
|
24859
|
+
customerId: z.ZodString;
|
|
24860
|
+
}, z.core.$strip>;
|
|
24861
|
+
export declare const invoiceCustomerChargesBody: z.ZodObject<{
|
|
24862
|
+
asOf: z.ZodOptional<z.ZodDate>;
|
|
24863
|
+
progressiveBillingOverride: z.ZodOptional<z.ZodBoolean>;
|
|
24864
|
+
}, z.core.$strip>;
|
|
24865
|
+
export declare const invoiceCustomerChargesResponse: z.ZodObject<{
|
|
24866
|
+
invoices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
24867
|
+
id: z.ZodString;
|
|
24868
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24869
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24870
|
+
createdAt: z.ZodDate;
|
|
24871
|
+
updatedAt: z.ZodDate;
|
|
24872
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
24873
|
+
number: z.ZodString;
|
|
24874
|
+
currency: z.ZodString;
|
|
24875
|
+
supplier: z.ZodObject<{
|
|
24876
|
+
name: z.ZodOptional<z.ZodString>;
|
|
24877
|
+
taxId: z.ZodOptional<z.ZodObject<{
|
|
24878
|
+
code: z.ZodOptional<z.ZodString>;
|
|
24879
|
+
}, z.core.$strip>>;
|
|
24880
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
24881
|
+
billingAddress: z.ZodObject<{
|
|
24882
|
+
country: z.ZodOptional<z.ZodString>;
|
|
24883
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
24884
|
+
state: z.ZodOptional<z.ZodString>;
|
|
24885
|
+
city: z.ZodOptional<z.ZodString>;
|
|
24886
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
24887
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
24888
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
24889
|
+
}, z.core.$strip>;
|
|
24890
|
+
}, z.core.$strip>>;
|
|
24891
|
+
id: z.ZodOptional<z.ZodString>;
|
|
24892
|
+
}, z.core.$strip>;
|
|
24893
|
+
customer: z.ZodObject<{
|
|
24894
|
+
name: z.ZodString;
|
|
24895
|
+
usageAttribution: z.ZodOptional<z.ZodObject<{
|
|
24896
|
+
subjectKeys: z.ZodArray<z.ZodString>;
|
|
24897
|
+
}, z.core.$strip>>;
|
|
24898
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
24899
|
+
country: z.ZodOptional<z.ZodString>;
|
|
24900
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
24901
|
+
state: z.ZodOptional<z.ZodString>;
|
|
24902
|
+
city: z.ZodOptional<z.ZodString>;
|
|
24903
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
24904
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
24905
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
24906
|
+
}, z.core.$strip>>;
|
|
24907
|
+
id: z.ZodString;
|
|
24908
|
+
key: z.ZodOptional<z.ZodString>;
|
|
24909
|
+
}, z.core.$strip>;
|
|
24910
|
+
totals: z.ZodObject<{
|
|
24911
|
+
amount: z.ZodString;
|
|
24912
|
+
taxesTotal: z.ZodString;
|
|
24913
|
+
taxesInclusiveTotal: z.ZodString;
|
|
24914
|
+
taxesExclusiveTotal: z.ZodString;
|
|
24915
|
+
chargesTotal: z.ZodString;
|
|
24916
|
+
discountsTotal: z.ZodString;
|
|
24917
|
+
creditsTotal: z.ZodString;
|
|
24918
|
+
total: z.ZodString;
|
|
24919
|
+
}, z.core.$strip>;
|
|
24920
|
+
servicePeriod: z.ZodObject<{
|
|
24921
|
+
from: z.ZodDate;
|
|
24922
|
+
to: z.ZodDate;
|
|
24923
|
+
}, z.core.$strip>;
|
|
24924
|
+
validationIssues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24925
|
+
code: z.ZodString;
|
|
24926
|
+
message: z.ZodString;
|
|
24927
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
24928
|
+
severity: z.ZodEnum<{
|
|
24929
|
+
critical: "critical";
|
|
24930
|
+
warning: "warning";
|
|
24931
|
+
}>;
|
|
24932
|
+
field: z.ZodOptional<z.ZodString>;
|
|
24933
|
+
component: z.ZodOptional<z.ZodString>;
|
|
24934
|
+
}, z.core.$strip>>>;
|
|
24935
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
24936
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
24937
|
+
paymentId: z.ZodOptional<z.ZodString>;
|
|
24938
|
+
}, z.core.$strip>>;
|
|
24939
|
+
type: z.ZodLiteral<"standard">;
|
|
24940
|
+
status: z.ZodEnum<{
|
|
24941
|
+
draft: "draft";
|
|
24942
|
+
issued: "issued";
|
|
24943
|
+
issuing: "issuing";
|
|
24944
|
+
overdue: "overdue";
|
|
24945
|
+
paid: "paid";
|
|
24946
|
+
payment_processing: "payment_processing";
|
|
24947
|
+
uncollectible: "uncollectible";
|
|
24948
|
+
voided: "voided";
|
|
24949
|
+
}>;
|
|
24950
|
+
statusDetails: z.ZodObject<{
|
|
24951
|
+
immutable: z.ZodBoolean;
|
|
24952
|
+
failed: z.ZodBoolean;
|
|
24953
|
+
extendedStatus: z.ZodString;
|
|
24954
|
+
availableActions: z.ZodObject<{
|
|
24955
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
24956
|
+
resultingState: z.ZodString;
|
|
24957
|
+
}, z.core.$strip>>;
|
|
24958
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
24959
|
+
resultingState: z.ZodString;
|
|
24960
|
+
}, z.core.$strip>>;
|
|
24961
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
24962
|
+
resultingState: z.ZodString;
|
|
24963
|
+
}, z.core.$strip>>;
|
|
24964
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
24965
|
+
resultingState: z.ZodString;
|
|
24966
|
+
}, z.core.$strip>>;
|
|
24967
|
+
snapshotQuantities: z.ZodOptional<z.ZodObject<{
|
|
24968
|
+
resultingState: z.ZodString;
|
|
24969
|
+
}, z.core.$strip>>;
|
|
24970
|
+
}, z.core.$strip>;
|
|
24971
|
+
}, z.core.$strip>;
|
|
24972
|
+
issuedAt: z.ZodOptional<z.ZodDate>;
|
|
24973
|
+
draftUntil: z.ZodOptional<z.ZodDate>;
|
|
24974
|
+
quantitySnapshottedAt: z.ZodOptional<z.ZodDate>;
|
|
24975
|
+
collectionAt: z.ZodOptional<z.ZodDate>;
|
|
24976
|
+
dueAt: z.ZodOptional<z.ZodDate>;
|
|
24977
|
+
sentToCustomerAt: z.ZodOptional<z.ZodDate>;
|
|
24978
|
+
workflow: z.ZodObject<{
|
|
24979
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
24980
|
+
tax: z.ZodObject<{
|
|
24981
|
+
id: z.ZodString;
|
|
24982
|
+
}, z.core.$strip>;
|
|
24983
|
+
invoicing: z.ZodObject<{
|
|
24984
|
+
id: z.ZodString;
|
|
24985
|
+
}, z.core.$strip>;
|
|
24986
|
+
payment: z.ZodObject<{
|
|
24987
|
+
id: z.ZodString;
|
|
24988
|
+
}, z.core.$strip>;
|
|
24989
|
+
}, z.core.$strip>>;
|
|
24990
|
+
sourceBillingProfile: z.ZodObject<{
|
|
24991
|
+
id: z.ZodString;
|
|
24992
|
+
}, z.core.$strip>;
|
|
24993
|
+
workflow: z.ZodObject<{
|
|
24994
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
24995
|
+
autoAdvance: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
24996
|
+
draftPeriod: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
24997
|
+
dueAfter: z.ZodOptional<z.ZodString>;
|
|
24998
|
+
}, z.core.$strip>>;
|
|
24999
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25000
|
+
collectionMethod: z.ZodLiteral<"charge_automatically">;
|
|
25001
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25002
|
+
collectionMethod: z.ZodLiteral<"send_invoice">;
|
|
25003
|
+
dueAfter: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
25004
|
+
}, z.core.$strip>], "collectionMethod">>;
|
|
25005
|
+
}, z.core.$strip>;
|
|
25006
|
+
}, z.core.$strip>;
|
|
25007
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25008
|
+
name: z.ZodString;
|
|
25009
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25010
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25011
|
+
createdAt: z.ZodDate;
|
|
25012
|
+
updatedAt: z.ZodDate;
|
|
25013
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
25014
|
+
id: z.ZodOptional<z.ZodString>;
|
|
25015
|
+
type: z.ZodLiteral<"standard_line">;
|
|
25016
|
+
lifecycleController: z.ZodEnum<{
|
|
25017
|
+
manual: "manual";
|
|
25018
|
+
system: "system";
|
|
25019
|
+
}>;
|
|
25020
|
+
servicePeriod: z.ZodObject<{
|
|
25021
|
+
from: z.ZodDate;
|
|
25022
|
+
to: z.ZodDate;
|
|
25023
|
+
}, z.core.$strip>;
|
|
25024
|
+
totals: z.ZodObject<{
|
|
25025
|
+
amount: z.ZodString;
|
|
25026
|
+
taxesTotal: z.ZodString;
|
|
25027
|
+
taxesInclusiveTotal: z.ZodString;
|
|
25028
|
+
taxesExclusiveTotal: z.ZodString;
|
|
25029
|
+
chargesTotal: z.ZodString;
|
|
25030
|
+
discountsTotal: z.ZodString;
|
|
25031
|
+
creditsTotal: z.ZodString;
|
|
25032
|
+
total: z.ZodString;
|
|
25033
|
+
}, z.core.$strip>;
|
|
25034
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
25035
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25036
|
+
id: z.ZodString;
|
|
25037
|
+
reason: z.ZodEnum<{
|
|
25038
|
+
maximum_spend: "maximum_spend";
|
|
25039
|
+
ratecard_percentage: "ratecard_percentage";
|
|
25040
|
+
ratecard_usage: "ratecard_usage";
|
|
25041
|
+
}>;
|
|
25042
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25043
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
25044
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
25045
|
+
}, z.core.$strip>>;
|
|
25046
|
+
amount: z.ZodString;
|
|
25047
|
+
}, z.core.$strip>>>;
|
|
25048
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25049
|
+
id: z.ZodString;
|
|
25050
|
+
reason: z.ZodEnum<{
|
|
25051
|
+
maximum_spend: "maximum_spend";
|
|
25052
|
+
ratecard_percentage: "ratecard_percentage";
|
|
25053
|
+
ratecard_usage: "ratecard_usage";
|
|
25054
|
+
}>;
|
|
25055
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25056
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
25057
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
25058
|
+
}, z.core.$strip>>;
|
|
25059
|
+
quantity: z.ZodString;
|
|
25060
|
+
}, z.core.$strip>>>;
|
|
25061
|
+
}, z.core.$strip>>;
|
|
25062
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25063
|
+
amount: z.ZodString;
|
|
25064
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25065
|
+
}, z.core.$strip>>>;
|
|
25066
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
25067
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
25068
|
+
}, z.core.$strip>>;
|
|
25069
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
25070
|
+
id: z.ZodString;
|
|
25071
|
+
name: z.ZodOptional<z.ZodString>;
|
|
25072
|
+
phase: z.ZodObject<{
|
|
25073
|
+
id: z.ZodString;
|
|
25074
|
+
item: z.ZodObject<{
|
|
25075
|
+
id: z.ZodString;
|
|
25076
|
+
}, z.core.$strip>;
|
|
25077
|
+
}, z.core.$strip>;
|
|
25078
|
+
}, z.core.$strip>>;
|
|
25079
|
+
rateCard: z.ZodObject<{
|
|
25080
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25081
|
+
type: z.ZodLiteral<"free">;
|
|
25082
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25083
|
+
type: z.ZodLiteral<"flat">;
|
|
25084
|
+
amount: z.ZodString;
|
|
25085
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25086
|
+
type: z.ZodLiteral<"unit">;
|
|
25087
|
+
amount: z.ZodString;
|
|
25088
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25089
|
+
type: z.ZodLiteral<"graduated">;
|
|
25090
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
25091
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
25092
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
25093
|
+
type: z.ZodLiteral<"flat">;
|
|
25094
|
+
amount: z.ZodString;
|
|
25095
|
+
}, z.core.$strip>>;
|
|
25096
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
25097
|
+
type: z.ZodLiteral<"unit">;
|
|
25098
|
+
amount: z.ZodString;
|
|
25099
|
+
}, z.core.$strip>>;
|
|
25100
|
+
}, z.core.$strip>>;
|
|
25101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25102
|
+
type: z.ZodLiteral<"volume">;
|
|
25103
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
25104
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
25105
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
25106
|
+
type: z.ZodLiteral<"flat">;
|
|
25107
|
+
amount: z.ZodString;
|
|
25108
|
+
}, z.core.$strip>>;
|
|
25109
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
25110
|
+
type: z.ZodLiteral<"unit">;
|
|
25111
|
+
amount: z.ZodString;
|
|
25112
|
+
}, z.core.$strip>>;
|
|
25113
|
+
}, z.core.$strip>>;
|
|
25114
|
+
}, z.core.$strip>], "type">;
|
|
25115
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
25116
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
25117
|
+
exclusive: "exclusive";
|
|
25118
|
+
inclusive: "inclusive";
|
|
25119
|
+
}>>;
|
|
25120
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
25121
|
+
id: z.ZodString;
|
|
25122
|
+
}, z.core.$strip>>;
|
|
25123
|
+
}, z.core.$strip>>;
|
|
25124
|
+
featureKey: z.ZodOptional<z.ZodString>;
|
|
25125
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
25126
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
25127
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
25128
|
+
}, z.core.$strip>>;
|
|
25129
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
25130
|
+
operation: z.ZodEnum<{
|
|
25131
|
+
divide: "divide";
|
|
25132
|
+
multiply: "multiply";
|
|
25133
|
+
}>;
|
|
25134
|
+
conversionFactor: z.ZodString;
|
|
25135
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
25136
|
+
ceiling: "ceiling";
|
|
25137
|
+
floor: "floor";
|
|
25138
|
+
half_up: "half_up";
|
|
25139
|
+
none: "none";
|
|
25140
|
+
}>>>;
|
|
25141
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
25142
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
25143
|
+
}, z.core.$strip>>;
|
|
25144
|
+
}, z.core.$strip>;
|
|
25145
|
+
detailedLines: z.ZodArray<z.ZodObject<{
|
|
25146
|
+
id: z.ZodString;
|
|
25147
|
+
name: z.ZodString;
|
|
25148
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25149
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25150
|
+
createdAt: z.ZodDate;
|
|
25151
|
+
updatedAt: z.ZodDate;
|
|
25152
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
25153
|
+
servicePeriod: z.ZodObject<{
|
|
25154
|
+
from: z.ZodDate;
|
|
25155
|
+
to: z.ZodDate;
|
|
25156
|
+
}, z.core.$strip>;
|
|
25157
|
+
totals: z.ZodObject<{
|
|
25158
|
+
amount: z.ZodString;
|
|
25159
|
+
taxesTotal: z.ZodString;
|
|
25160
|
+
taxesInclusiveTotal: z.ZodString;
|
|
25161
|
+
taxesExclusiveTotal: z.ZodString;
|
|
25162
|
+
chargesTotal: z.ZodString;
|
|
25163
|
+
discountsTotal: z.ZodString;
|
|
25164
|
+
creditsTotal: z.ZodString;
|
|
25165
|
+
total: z.ZodString;
|
|
25166
|
+
}, z.core.$strip>;
|
|
25167
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
25168
|
+
commitment: "commitment";
|
|
25169
|
+
regular: "regular";
|
|
25170
|
+
}>>;
|
|
25171
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
25172
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25173
|
+
id: z.ZodString;
|
|
25174
|
+
reason: z.ZodEnum<{
|
|
25175
|
+
maximum_spend: "maximum_spend";
|
|
25176
|
+
ratecard_percentage: "ratecard_percentage";
|
|
25177
|
+
ratecard_usage: "ratecard_usage";
|
|
25178
|
+
}>;
|
|
25179
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25180
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
25181
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
25182
|
+
}, z.core.$strip>>;
|
|
25183
|
+
amount: z.ZodString;
|
|
25184
|
+
}, z.core.$strip>>>;
|
|
25185
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25186
|
+
id: z.ZodString;
|
|
25187
|
+
reason: z.ZodEnum<{
|
|
25188
|
+
maximum_spend: "maximum_spend";
|
|
25189
|
+
ratecard_percentage: "ratecard_percentage";
|
|
25190
|
+
ratecard_usage: "ratecard_usage";
|
|
25191
|
+
}>;
|
|
25192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25193
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
25194
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
25195
|
+
}, z.core.$strip>>;
|
|
25196
|
+
quantity: z.ZodString;
|
|
25197
|
+
}, z.core.$strip>>>;
|
|
25198
|
+
}, z.core.$strip>>;
|
|
25199
|
+
creditsApplied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25200
|
+
amount: z.ZodString;
|
|
25201
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25202
|
+
}, z.core.$strip>>>;
|
|
25203
|
+
externalReferences: z.ZodOptional<z.ZodObject<{
|
|
25204
|
+
invoicingId: z.ZodOptional<z.ZodString>;
|
|
25205
|
+
}, z.core.$strip>>;
|
|
25206
|
+
quantity: z.ZodString;
|
|
25207
|
+
unitPrice: z.ZodString;
|
|
25208
|
+
}, z.core.$strip>>;
|
|
25209
|
+
usageQuantityDetail: z.ZodOptional<z.ZodObject<{
|
|
25210
|
+
rawQuantity: z.ZodString;
|
|
25211
|
+
invoicedQuantity: z.ZodString;
|
|
25212
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
25213
|
+
}, z.core.$strip>>;
|
|
25214
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
25215
|
+
id: z.ZodString;
|
|
25216
|
+
}, z.core.$strip>>;
|
|
25217
|
+
}, z.core.$strip>], "type">>>;
|
|
25218
|
+
}, z.core.$strip>], "type">>;
|
|
25219
|
+
}, z.core.$strip>;
|
|
24499
25220
|
export declare const createSubscriptionBody: z.ZodObject<{
|
|
24500
25221
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
24501
25222
|
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -37487,6 +38208,18 @@ export declare const featureLlmTokenTypeWire: z.ZodEnum<{
|
|
|
37487
38208
|
request: "request";
|
|
37488
38209
|
response: "response";
|
|
37489
38210
|
}>;
|
|
38211
|
+
export declare const invoiceDiscountReasonWire: z.ZodEnum<{
|
|
38212
|
+
maximum_spend: "maximum_spend";
|
|
38213
|
+
ratecard_percentage: "ratecard_percentage";
|
|
38214
|
+
ratecard_usage: "ratecard_usage";
|
|
38215
|
+
}>;
|
|
38216
|
+
export declare const invoiceLineExternalReferencesWire: z.ZodObject<{
|
|
38217
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
38218
|
+
}, z.core.$strict>;
|
|
38219
|
+
export declare const invoiceDetailedLineCostCategoryWire: z.ZodEnum<{
|
|
38220
|
+
commitment: "commitment";
|
|
38221
|
+
regular: "regular";
|
|
38222
|
+
}>;
|
|
37490
38223
|
export declare const subscriptionCreateTimingEnumWire: z.ZodEnum<{
|
|
37491
38224
|
immediate: "immediate";
|
|
37492
38225
|
}>;
|
|
@@ -37557,18 +38290,6 @@ export declare const workflowInvoicingSubscriptionEndProrationModeWire: z.ZodEnu
|
|
|
37557
38290
|
bill_actual_period: "bill_actual_period";
|
|
37558
38291
|
bill_full_period: "bill_full_period";
|
|
37559
38292
|
}>;
|
|
37560
|
-
export declare const invoiceDiscountReasonWire: z.ZodEnum<{
|
|
37561
|
-
maximum_spend: "maximum_spend";
|
|
37562
|
-
ratecard_percentage: "ratecard_percentage";
|
|
37563
|
-
ratecard_usage: "ratecard_usage";
|
|
37564
|
-
}>;
|
|
37565
|
-
export declare const invoiceLineExternalReferencesWire: z.ZodObject<{
|
|
37566
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
37567
|
-
}, z.core.$strict>;
|
|
37568
|
-
export declare const invoiceDetailedLineCostCategoryWire: z.ZodEnum<{
|
|
37569
|
-
commitment: "commitment";
|
|
37570
|
-
regular: "regular";
|
|
37571
|
-
}>;
|
|
37572
38293
|
export declare const updateBillingInvoiceWorkflowInvoicingSettingsWire: z.ZodObject<{
|
|
37573
38294
|
auto_advance: z.ZodOptional<z.ZodBoolean>;
|
|
37574
38295
|
draft_period: z.ZodOptional<z.ZodString>;
|
|
@@ -38096,10 +38817,10 @@ export declare const appReferenceWire: z.ZodObject<{
|
|
|
38096
38817
|
export declare const chargeRealizationInvoiceReferenceWire: z.ZodObject<{
|
|
38097
38818
|
id: z.ZodString;
|
|
38098
38819
|
}, z.core.$strict>;
|
|
38099
|
-
export declare const
|
|
38820
|
+
export declare const chargeReferenceWire: z.ZodObject<{
|
|
38100
38821
|
id: z.ZodString;
|
|
38101
38822
|
}, z.core.$strict>;
|
|
38102
|
-
export declare const
|
|
38823
|
+
export declare const addonReferenceWire: z.ZodObject<{
|
|
38103
38824
|
id: z.ZodString;
|
|
38104
38825
|
}, z.core.$strict>;
|
|
38105
38826
|
export declare const updateResourceReferenceWire: z.ZodObject<{
|
|
@@ -38174,6 +38895,10 @@ export declare const chargeResolvedCostBasisWire: z.ZodObject<{
|
|
|
38174
38895
|
cost_basis_id: z.ZodOptional<z.ZodString>;
|
|
38175
38896
|
resolved_at: z.ZodString;
|
|
38176
38897
|
}, z.core.$strict>;
|
|
38898
|
+
export declare const invoiceCustomerChargesInputWire: z.ZodObject<{
|
|
38899
|
+
as_of: z.ZodOptional<z.ZodString>;
|
|
38900
|
+
progressive_billing_override: z.ZodOptional<z.ZodBoolean>;
|
|
38901
|
+
}, z.core.$strict>;
|
|
38177
38902
|
export declare const subscriptionAddonTimelineSegmentWire: z.ZodObject<{
|
|
38178
38903
|
active_from: z.ZodString;
|
|
38179
38904
|
active_to: z.ZodOptional<z.ZodString>;
|
|
@@ -38762,6 +39487,44 @@ export declare const chargeRealizationPaymentWire: z.ZodObject<{
|
|
|
38762
39487
|
settled: "settled";
|
|
38763
39488
|
}>;
|
|
38764
39489
|
}, z.core.$strict>;
|
|
39490
|
+
export declare const invoiceLineAmountDiscountWire: z.ZodObject<{
|
|
39491
|
+
id: z.ZodString;
|
|
39492
|
+
reason: z.ZodEnum<{
|
|
39493
|
+
maximum_spend: "maximum_spend";
|
|
39494
|
+
ratecard_percentage: "ratecard_percentage";
|
|
39495
|
+
ratecard_usage: "ratecard_usage";
|
|
39496
|
+
}>;
|
|
39497
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39498
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
39499
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
39500
|
+
}, z.core.$strict>>;
|
|
39501
|
+
amount: z.ZodString;
|
|
39502
|
+
}, z.core.$strict>;
|
|
39503
|
+
export declare const invoiceLineUsageDiscountWire: z.ZodObject<{
|
|
39504
|
+
id: z.ZodString;
|
|
39505
|
+
reason: z.ZodEnum<{
|
|
39506
|
+
maximum_spend: "maximum_spend";
|
|
39507
|
+
ratecard_percentage: "ratecard_percentage";
|
|
39508
|
+
ratecard_usage: "ratecard_usage";
|
|
39509
|
+
}>;
|
|
39510
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39511
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
39512
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
39513
|
+
}, z.core.$strict>>;
|
|
39514
|
+
quantity: z.ZodString;
|
|
39515
|
+
}, z.core.$strict>;
|
|
39516
|
+
export declare const invoiceLineBaseDiscountWire: z.ZodObject<{
|
|
39517
|
+
id: z.ZodString;
|
|
39518
|
+
reason: z.ZodEnum<{
|
|
39519
|
+
maximum_spend: "maximum_spend";
|
|
39520
|
+
ratecard_percentage: "ratecard_percentage";
|
|
39521
|
+
ratecard_usage: "ratecard_usage";
|
|
39522
|
+
}>;
|
|
39523
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39524
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
39525
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
39526
|
+
}, z.core.$strict>>;
|
|
39527
|
+
}, z.core.$strict>;
|
|
38765
39528
|
export declare const subscriptionCreateTimingWire: z.ZodUnion<readonly [z.ZodEnum<{
|
|
38766
39529
|
immediate: "immediate";
|
|
38767
39530
|
}>, z.ZodString]>;
|
|
@@ -38850,44 +39613,6 @@ export declare const workflowInvoicingSettingsWire: z.ZodObject<{
|
|
|
38850
39613
|
bill_full_period: "bill_full_period";
|
|
38851
39614
|
}>>;
|
|
38852
39615
|
}, z.core.$strict>;
|
|
38853
|
-
export declare const invoiceLineAmountDiscountWire: z.ZodObject<{
|
|
38854
|
-
id: z.ZodString;
|
|
38855
|
-
reason: z.ZodEnum<{
|
|
38856
|
-
maximum_spend: "maximum_spend";
|
|
38857
|
-
ratecard_percentage: "ratecard_percentage";
|
|
38858
|
-
ratecard_usage: "ratecard_usage";
|
|
38859
|
-
}>;
|
|
38860
|
-
description: z.ZodOptional<z.ZodString>;
|
|
38861
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
38862
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
38863
|
-
}, z.core.$strict>>;
|
|
38864
|
-
amount: z.ZodString;
|
|
38865
|
-
}, z.core.$strict>;
|
|
38866
|
-
export declare const invoiceLineUsageDiscountWire: z.ZodObject<{
|
|
38867
|
-
id: z.ZodString;
|
|
38868
|
-
reason: z.ZodEnum<{
|
|
38869
|
-
maximum_spend: "maximum_spend";
|
|
38870
|
-
ratecard_percentage: "ratecard_percentage";
|
|
38871
|
-
ratecard_usage: "ratecard_usage";
|
|
38872
|
-
}>;
|
|
38873
|
-
description: z.ZodOptional<z.ZodString>;
|
|
38874
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
38875
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
38876
|
-
}, z.core.$strict>>;
|
|
38877
|
-
quantity: z.ZodString;
|
|
38878
|
-
}, z.core.$strict>;
|
|
38879
|
-
export declare const invoiceLineBaseDiscountWire: z.ZodObject<{
|
|
38880
|
-
id: z.ZodString;
|
|
38881
|
-
reason: z.ZodEnum<{
|
|
38882
|
-
maximum_spend: "maximum_spend";
|
|
38883
|
-
ratecard_percentage: "ratecard_percentage";
|
|
38884
|
-
ratecard_usage: "ratecard_usage";
|
|
38885
|
-
}>;
|
|
38886
|
-
description: z.ZodOptional<z.ZodString>;
|
|
38887
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
38888
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
38889
|
-
}, z.core.$strict>>;
|
|
38890
|
-
}, z.core.$strict>;
|
|
38891
39616
|
export declare const updateBillingWorkflowPaymentSettingsWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38892
39617
|
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
38893
39618
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -41027,6 +41752,34 @@ export declare const invoiceWorkflowWire: z.ZodObject<{
|
|
|
41027
41752
|
due_after: z.ZodOptional<z.ZodString>;
|
|
41028
41753
|
}, z.core.$strict>], "collection_method">>;
|
|
41029
41754
|
}, z.core.$strict>;
|
|
41755
|
+
export declare const invoiceLineDiscountsWire: z.ZodObject<{
|
|
41756
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41757
|
+
id: z.ZodString;
|
|
41758
|
+
reason: z.ZodEnum<{
|
|
41759
|
+
maximum_spend: "maximum_spend";
|
|
41760
|
+
ratecard_percentage: "ratecard_percentage";
|
|
41761
|
+
ratecard_usage: "ratecard_usage";
|
|
41762
|
+
}>;
|
|
41763
|
+
description: z.ZodOptional<z.ZodString>;
|
|
41764
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
41765
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
41766
|
+
}, z.core.$strict>>;
|
|
41767
|
+
amount: z.ZodString;
|
|
41768
|
+
}, z.core.$strict>>>;
|
|
41769
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41770
|
+
id: z.ZodString;
|
|
41771
|
+
reason: z.ZodEnum<{
|
|
41772
|
+
maximum_spend: "maximum_spend";
|
|
41773
|
+
ratecard_percentage: "ratecard_percentage";
|
|
41774
|
+
ratecard_usage: "ratecard_usage";
|
|
41775
|
+
}>;
|
|
41776
|
+
description: z.ZodOptional<z.ZodString>;
|
|
41777
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
41778
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
41779
|
+
}, z.core.$strict>>;
|
|
41780
|
+
quantity: z.ZodString;
|
|
41781
|
+
}, z.core.$strict>>>;
|
|
41782
|
+
}, z.core.$strict>;
|
|
41030
41783
|
export declare const subscriptionCancelWire: z.ZodObject<{
|
|
41031
41784
|
timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
41032
41785
|
immediate: "immediate";
|
|
@@ -41150,34 +41903,6 @@ export declare const updateAppRequestWire: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
41150
41903
|
enable_draft_sync_hook: z.ZodBoolean;
|
|
41151
41904
|
enable_issuing_sync_hook: z.ZodBoolean;
|
|
41152
41905
|
}, z.core.$strict>], "type">;
|
|
41153
|
-
export declare const invoiceLineDiscountsWire: z.ZodObject<{
|
|
41154
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41155
|
-
id: z.ZodString;
|
|
41156
|
-
reason: z.ZodEnum<{
|
|
41157
|
-
maximum_spend: "maximum_spend";
|
|
41158
|
-
ratecard_percentage: "ratecard_percentage";
|
|
41159
|
-
ratecard_usage: "ratecard_usage";
|
|
41160
|
-
}>;
|
|
41161
|
-
description: z.ZodOptional<z.ZodString>;
|
|
41162
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
41163
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
41164
|
-
}, z.core.$strict>>;
|
|
41165
|
-
amount: z.ZodString;
|
|
41166
|
-
}, z.core.$strict>>>;
|
|
41167
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41168
|
-
id: z.ZodString;
|
|
41169
|
-
reason: z.ZodEnum<{
|
|
41170
|
-
maximum_spend: "maximum_spend";
|
|
41171
|
-
ratecard_percentage: "ratecard_percentage";
|
|
41172
|
-
ratecard_usage: "ratecard_usage";
|
|
41173
|
-
}>;
|
|
41174
|
-
description: z.ZodOptional<z.ZodString>;
|
|
41175
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
41176
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
41177
|
-
}, z.core.$strict>>;
|
|
41178
|
-
quantity: z.ZodString;
|
|
41179
|
-
}, z.core.$strict>>>;
|
|
41180
|
-
}, z.core.$strict>;
|
|
41181
41906
|
export declare const updateBillingInvoiceWorkflowWire: z.ZodObject<{
|
|
41182
41907
|
invoicing: z.ZodOptional<z.ZodObject<{
|
|
41183
41908
|
auto_advance: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -42450,6 +43175,70 @@ export declare const invoiceWorkflowSettingsWire: z.ZodObject<{
|
|
|
42450
43175
|
}, z.core.$strict>], "collection_method">>;
|
|
42451
43176
|
}, z.core.$strict>;
|
|
42452
43177
|
}, z.core.$strict>;
|
|
43178
|
+
export declare const invoiceDetailedLineWire: z.ZodObject<{
|
|
43179
|
+
id: z.ZodString;
|
|
43180
|
+
name: z.ZodString;
|
|
43181
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43182
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
43183
|
+
created_at: z.ZodString;
|
|
43184
|
+
updated_at: z.ZodString;
|
|
43185
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
43186
|
+
service_period: z.ZodObject<{
|
|
43187
|
+
from: z.ZodString;
|
|
43188
|
+
to: z.ZodString;
|
|
43189
|
+
}, z.core.$strict>;
|
|
43190
|
+
totals: z.ZodObject<{
|
|
43191
|
+
amount: z.ZodString;
|
|
43192
|
+
taxes_total: z.ZodString;
|
|
43193
|
+
taxes_inclusive_total: z.ZodString;
|
|
43194
|
+
taxes_exclusive_total: z.ZodString;
|
|
43195
|
+
charges_total: z.ZodString;
|
|
43196
|
+
discounts_total: z.ZodString;
|
|
43197
|
+
credits_total: z.ZodString;
|
|
43198
|
+
total: z.ZodString;
|
|
43199
|
+
}, z.core.$strict>;
|
|
43200
|
+
category: z.ZodEnum<{
|
|
43201
|
+
commitment: "commitment";
|
|
43202
|
+
regular: "regular";
|
|
43203
|
+
}>;
|
|
43204
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
43205
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43206
|
+
id: z.ZodString;
|
|
43207
|
+
reason: z.ZodEnum<{
|
|
43208
|
+
maximum_spend: "maximum_spend";
|
|
43209
|
+
ratecard_percentage: "ratecard_percentage";
|
|
43210
|
+
ratecard_usage: "ratecard_usage";
|
|
43211
|
+
}>;
|
|
43212
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43213
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
43214
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
43215
|
+
}, z.core.$strict>>;
|
|
43216
|
+
amount: z.ZodString;
|
|
43217
|
+
}, z.core.$strict>>>;
|
|
43218
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43219
|
+
id: z.ZodString;
|
|
43220
|
+
reason: z.ZodEnum<{
|
|
43221
|
+
maximum_spend: "maximum_spend";
|
|
43222
|
+
ratecard_percentage: "ratecard_percentage";
|
|
43223
|
+
ratecard_usage: "ratecard_usage";
|
|
43224
|
+
}>;
|
|
43225
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43226
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
43227
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
43228
|
+
}, z.core.$strict>>;
|
|
43229
|
+
quantity: z.ZodString;
|
|
43230
|
+
}, z.core.$strict>>>;
|
|
43231
|
+
}, z.core.$strict>>;
|
|
43232
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
43233
|
+
amount: z.ZodString;
|
|
43234
|
+
description: z.ZodOptional<z.ZodString>;
|
|
43235
|
+
}, z.core.$strict>>>;
|
|
43236
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
43237
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
43238
|
+
}, z.core.$strict>>;
|
|
43239
|
+
quantity: z.ZodString;
|
|
43240
|
+
unit_price: z.ZodString;
|
|
43241
|
+
}, z.core.$strict>;
|
|
42453
43242
|
export declare const taxCodePagePaginatedResponseWire: z.ZodObject<{
|
|
42454
43243
|
data: z.ZodArray<z.ZodObject<{
|
|
42455
43244
|
id: z.ZodString;
|
|
@@ -42819,70 +43608,6 @@ export declare const installedAppExternalInvoicingWire: z.ZodObject<{
|
|
|
42819
43608
|
report_usage: "report_usage";
|
|
42820
43609
|
}>>;
|
|
42821
43610
|
}, z.core.$strict>;
|
|
42822
|
-
export declare const invoiceDetailedLineWire: z.ZodObject<{
|
|
42823
|
-
id: z.ZodString;
|
|
42824
|
-
name: z.ZodString;
|
|
42825
|
-
description: z.ZodOptional<z.ZodString>;
|
|
42826
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
42827
|
-
created_at: z.ZodString;
|
|
42828
|
-
updated_at: z.ZodString;
|
|
42829
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
42830
|
-
service_period: z.ZodObject<{
|
|
42831
|
-
from: z.ZodString;
|
|
42832
|
-
to: z.ZodString;
|
|
42833
|
-
}, z.core.$strict>;
|
|
42834
|
-
totals: z.ZodObject<{
|
|
42835
|
-
amount: z.ZodString;
|
|
42836
|
-
taxes_total: z.ZodString;
|
|
42837
|
-
taxes_inclusive_total: z.ZodString;
|
|
42838
|
-
taxes_exclusive_total: z.ZodString;
|
|
42839
|
-
charges_total: z.ZodString;
|
|
42840
|
-
discounts_total: z.ZodString;
|
|
42841
|
-
credits_total: z.ZodString;
|
|
42842
|
-
total: z.ZodString;
|
|
42843
|
-
}, z.core.$strict>;
|
|
42844
|
-
category: z.ZodEnum<{
|
|
42845
|
-
commitment: "commitment";
|
|
42846
|
-
regular: "regular";
|
|
42847
|
-
}>;
|
|
42848
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
42849
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42850
|
-
id: z.ZodString;
|
|
42851
|
-
reason: z.ZodEnum<{
|
|
42852
|
-
maximum_spend: "maximum_spend";
|
|
42853
|
-
ratecard_percentage: "ratecard_percentage";
|
|
42854
|
-
ratecard_usage: "ratecard_usage";
|
|
42855
|
-
}>;
|
|
42856
|
-
description: z.ZodOptional<z.ZodString>;
|
|
42857
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
42858
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
42859
|
-
}, z.core.$strict>>;
|
|
42860
|
-
amount: z.ZodString;
|
|
42861
|
-
}, z.core.$strict>>>;
|
|
42862
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42863
|
-
id: z.ZodString;
|
|
42864
|
-
reason: z.ZodEnum<{
|
|
42865
|
-
maximum_spend: "maximum_spend";
|
|
42866
|
-
ratecard_percentage: "ratecard_percentage";
|
|
42867
|
-
ratecard_usage: "ratecard_usage";
|
|
42868
|
-
}>;
|
|
42869
|
-
description: z.ZodOptional<z.ZodString>;
|
|
42870
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
42871
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
42872
|
-
}, z.core.$strict>>;
|
|
42873
|
-
quantity: z.ZodString;
|
|
42874
|
-
}, z.core.$strict>>>;
|
|
42875
|
-
}, z.core.$strict>>;
|
|
42876
|
-
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42877
|
-
amount: z.ZodString;
|
|
42878
|
-
description: z.ZodOptional<z.ZodString>;
|
|
42879
|
-
}, z.core.$strict>>>;
|
|
42880
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
42881
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
42882
|
-
}, z.core.$strict>>;
|
|
42883
|
-
quantity: z.ZodString;
|
|
42884
|
-
unit_price: z.ZodString;
|
|
42885
|
-
}, z.core.$strict>;
|
|
42886
43611
|
export declare const updateInvoiceWorkflowSettingsWire: z.ZodObject<{
|
|
42887
43612
|
workflow: z.ZodObject<{
|
|
42888
43613
|
invoicing: z.ZodOptional<z.ZodObject<{
|
|
@@ -53161,6 +53886,361 @@ export declare const chargeUsageBasedWire: z.ZodObject<{
|
|
|
53161
53886
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
53162
53887
|
}, z.core.$strict>>;
|
|
53163
53888
|
}, z.core.$strict>;
|
|
53889
|
+
export declare const invoiceCustomerChargesResultWire: z.ZodObject<{
|
|
53890
|
+
invoices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53891
|
+
id: z.ZodString;
|
|
53892
|
+
description: z.ZodOptional<z.ZodString>;
|
|
53893
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
53894
|
+
created_at: z.ZodString;
|
|
53895
|
+
updated_at: z.ZodString;
|
|
53896
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
53897
|
+
number: z.ZodString;
|
|
53898
|
+
currency: z.ZodString;
|
|
53899
|
+
supplier: z.ZodObject<{
|
|
53900
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53901
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
53902
|
+
code: z.ZodOptional<z.ZodString>;
|
|
53903
|
+
}, z.core.$strict>>;
|
|
53904
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
53905
|
+
billing_address: z.ZodObject<{
|
|
53906
|
+
country: z.ZodOptional<z.ZodString>;
|
|
53907
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
53908
|
+
state: z.ZodOptional<z.ZodString>;
|
|
53909
|
+
city: z.ZodOptional<z.ZodString>;
|
|
53910
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
53911
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
53912
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
53913
|
+
}, z.core.$strict>;
|
|
53914
|
+
}, z.core.$strict>>;
|
|
53915
|
+
id: z.ZodOptional<z.ZodString>;
|
|
53916
|
+
}, z.core.$strict>;
|
|
53917
|
+
customer: z.ZodObject<{
|
|
53918
|
+
name: z.ZodString;
|
|
53919
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
53920
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
53921
|
+
}, z.core.$strict>>;
|
|
53922
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
53923
|
+
country: z.ZodOptional<z.ZodString>;
|
|
53924
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
53925
|
+
state: z.ZodOptional<z.ZodString>;
|
|
53926
|
+
city: z.ZodOptional<z.ZodString>;
|
|
53927
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
53928
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
53929
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
53930
|
+
}, z.core.$strict>>;
|
|
53931
|
+
id: z.ZodString;
|
|
53932
|
+
key: z.ZodOptional<z.ZodString>;
|
|
53933
|
+
}, z.core.$strict>;
|
|
53934
|
+
totals: z.ZodObject<{
|
|
53935
|
+
amount: z.ZodString;
|
|
53936
|
+
taxes_total: z.ZodString;
|
|
53937
|
+
taxes_inclusive_total: z.ZodString;
|
|
53938
|
+
taxes_exclusive_total: z.ZodString;
|
|
53939
|
+
charges_total: z.ZodString;
|
|
53940
|
+
discounts_total: z.ZodString;
|
|
53941
|
+
credits_total: z.ZodString;
|
|
53942
|
+
total: z.ZodString;
|
|
53943
|
+
}, z.core.$strict>;
|
|
53944
|
+
service_period: z.ZodObject<{
|
|
53945
|
+
from: z.ZodString;
|
|
53946
|
+
to: z.ZodString;
|
|
53947
|
+
}, z.core.$strict>;
|
|
53948
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53949
|
+
code: z.ZodString;
|
|
53950
|
+
message: z.ZodString;
|
|
53951
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53952
|
+
severity: z.ZodEnum<{
|
|
53953
|
+
critical: "critical";
|
|
53954
|
+
warning: "warning";
|
|
53955
|
+
}>;
|
|
53956
|
+
field: z.ZodOptional<z.ZodString>;
|
|
53957
|
+
component: z.ZodOptional<z.ZodString>;
|
|
53958
|
+
}, z.core.$strict>>>;
|
|
53959
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
53960
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
53961
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
53962
|
+
}, z.core.$strict>>;
|
|
53963
|
+
type: z.ZodLiteral<"standard">;
|
|
53964
|
+
status: z.ZodEnum<{
|
|
53965
|
+
draft: "draft";
|
|
53966
|
+
issued: "issued";
|
|
53967
|
+
issuing: "issuing";
|
|
53968
|
+
overdue: "overdue";
|
|
53969
|
+
paid: "paid";
|
|
53970
|
+
payment_processing: "payment_processing";
|
|
53971
|
+
uncollectible: "uncollectible";
|
|
53972
|
+
voided: "voided";
|
|
53973
|
+
}>;
|
|
53974
|
+
status_details: z.ZodObject<{
|
|
53975
|
+
immutable: z.ZodBoolean;
|
|
53976
|
+
failed: z.ZodBoolean;
|
|
53977
|
+
extended_status: z.ZodString;
|
|
53978
|
+
available_actions: z.ZodObject<{
|
|
53979
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
53980
|
+
resulting_state: z.ZodString;
|
|
53981
|
+
}, z.core.$strict>>;
|
|
53982
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
53983
|
+
resulting_state: z.ZodString;
|
|
53984
|
+
}, z.core.$strict>>;
|
|
53985
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
53986
|
+
resulting_state: z.ZodString;
|
|
53987
|
+
}, z.core.$strict>>;
|
|
53988
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
53989
|
+
resulting_state: z.ZodString;
|
|
53990
|
+
}, z.core.$strict>>;
|
|
53991
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
53992
|
+
resulting_state: z.ZodString;
|
|
53993
|
+
}, z.core.$strict>>;
|
|
53994
|
+
}, z.core.$strict>;
|
|
53995
|
+
}, z.core.$strict>;
|
|
53996
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
53997
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
53998
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
53999
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
54000
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
54001
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
54002
|
+
workflow: z.ZodObject<{
|
|
54003
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
54004
|
+
tax: z.ZodObject<{
|
|
54005
|
+
id: z.ZodString;
|
|
54006
|
+
}, z.core.$strict>;
|
|
54007
|
+
invoicing: z.ZodObject<{
|
|
54008
|
+
id: z.ZodString;
|
|
54009
|
+
}, z.core.$strict>;
|
|
54010
|
+
payment: z.ZodObject<{
|
|
54011
|
+
id: z.ZodString;
|
|
54012
|
+
}, z.core.$strict>;
|
|
54013
|
+
}, z.core.$strict>>;
|
|
54014
|
+
source_billing_profile: z.ZodObject<{
|
|
54015
|
+
id: z.ZodString;
|
|
54016
|
+
}, z.core.$strict>;
|
|
54017
|
+
workflow: z.ZodObject<{
|
|
54018
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
54019
|
+
auto_advance: z.ZodOptional<z.ZodBoolean>;
|
|
54020
|
+
draft_period: z.ZodOptional<z.ZodString>;
|
|
54021
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
54022
|
+
}, z.core.$strict>>;
|
|
54023
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54024
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
54025
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54026
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
54027
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
54028
|
+
}, z.core.$strict>], "collection_method">>;
|
|
54029
|
+
}, z.core.$strict>;
|
|
54030
|
+
}, z.core.$strict>;
|
|
54031
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54032
|
+
name: z.ZodString;
|
|
54033
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54034
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
54035
|
+
created_at: z.ZodString;
|
|
54036
|
+
updated_at: z.ZodString;
|
|
54037
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
54038
|
+
id: z.ZodOptional<z.ZodString>;
|
|
54039
|
+
type: z.ZodLiteral<"standard_line">;
|
|
54040
|
+
lifecycle_controller: z.ZodEnum<{
|
|
54041
|
+
manual: "manual";
|
|
54042
|
+
system: "system";
|
|
54043
|
+
}>;
|
|
54044
|
+
service_period: z.ZodObject<{
|
|
54045
|
+
from: z.ZodString;
|
|
54046
|
+
to: z.ZodString;
|
|
54047
|
+
}, z.core.$strict>;
|
|
54048
|
+
totals: z.ZodObject<{
|
|
54049
|
+
amount: z.ZodString;
|
|
54050
|
+
taxes_total: z.ZodString;
|
|
54051
|
+
taxes_inclusive_total: z.ZodString;
|
|
54052
|
+
taxes_exclusive_total: z.ZodString;
|
|
54053
|
+
charges_total: z.ZodString;
|
|
54054
|
+
discounts_total: z.ZodString;
|
|
54055
|
+
credits_total: z.ZodString;
|
|
54056
|
+
total: z.ZodString;
|
|
54057
|
+
}, z.core.$strict>;
|
|
54058
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
54059
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54060
|
+
id: z.ZodString;
|
|
54061
|
+
reason: z.ZodEnum<{
|
|
54062
|
+
maximum_spend: "maximum_spend";
|
|
54063
|
+
ratecard_percentage: "ratecard_percentage";
|
|
54064
|
+
ratecard_usage: "ratecard_usage";
|
|
54065
|
+
}>;
|
|
54066
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54067
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
54068
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
54069
|
+
}, z.core.$strict>>;
|
|
54070
|
+
amount: z.ZodString;
|
|
54071
|
+
}, z.core.$strict>>>;
|
|
54072
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54073
|
+
id: z.ZodString;
|
|
54074
|
+
reason: z.ZodEnum<{
|
|
54075
|
+
maximum_spend: "maximum_spend";
|
|
54076
|
+
ratecard_percentage: "ratecard_percentage";
|
|
54077
|
+
ratecard_usage: "ratecard_usage";
|
|
54078
|
+
}>;
|
|
54079
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54080
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
54081
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
54082
|
+
}, z.core.$strict>>;
|
|
54083
|
+
quantity: z.ZodString;
|
|
54084
|
+
}, z.core.$strict>>>;
|
|
54085
|
+
}, z.core.$strict>>;
|
|
54086
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54087
|
+
amount: z.ZodString;
|
|
54088
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54089
|
+
}, z.core.$strict>>>;
|
|
54090
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
54091
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
54092
|
+
}, z.core.$strict>>;
|
|
54093
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
54094
|
+
id: z.ZodString;
|
|
54095
|
+
name: z.ZodOptional<z.ZodString>;
|
|
54096
|
+
phase: z.ZodObject<{
|
|
54097
|
+
id: z.ZodString;
|
|
54098
|
+
item: z.ZodObject<{
|
|
54099
|
+
id: z.ZodString;
|
|
54100
|
+
}, z.core.$strict>;
|
|
54101
|
+
}, z.core.$strict>;
|
|
54102
|
+
}, z.core.$strict>>;
|
|
54103
|
+
rate_card: z.ZodObject<{
|
|
54104
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54105
|
+
type: z.ZodLiteral<"free">;
|
|
54106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54107
|
+
type: z.ZodLiteral<"flat">;
|
|
54108
|
+
amount: z.ZodString;
|
|
54109
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54110
|
+
type: z.ZodLiteral<"unit">;
|
|
54111
|
+
amount: z.ZodString;
|
|
54112
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54113
|
+
type: z.ZodLiteral<"graduated">;
|
|
54114
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
54115
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
54116
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
54117
|
+
type: z.ZodLiteral<"flat">;
|
|
54118
|
+
amount: z.ZodString;
|
|
54119
|
+
}, z.core.$strict>>;
|
|
54120
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
54121
|
+
type: z.ZodLiteral<"unit">;
|
|
54122
|
+
amount: z.ZodString;
|
|
54123
|
+
}, z.core.$strict>>;
|
|
54124
|
+
}, z.core.$strict>>;
|
|
54125
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
54126
|
+
type: z.ZodLiteral<"volume">;
|
|
54127
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
54128
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
54129
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
54130
|
+
type: z.ZodLiteral<"flat">;
|
|
54131
|
+
amount: z.ZodString;
|
|
54132
|
+
}, z.core.$strict>>;
|
|
54133
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
54134
|
+
type: z.ZodLiteral<"unit">;
|
|
54135
|
+
amount: z.ZodString;
|
|
54136
|
+
}, z.core.$strict>>;
|
|
54137
|
+
}, z.core.$strict>>;
|
|
54138
|
+
}, z.core.$strict>], "type">;
|
|
54139
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
54140
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
54141
|
+
exclusive: "exclusive";
|
|
54142
|
+
inclusive: "inclusive";
|
|
54143
|
+
}>>;
|
|
54144
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
54145
|
+
id: z.ZodString;
|
|
54146
|
+
}, z.core.$strict>>;
|
|
54147
|
+
}, z.core.$strict>>;
|
|
54148
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
54149
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
54150
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
54151
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
54152
|
+
}, z.core.$strict>>;
|
|
54153
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
54154
|
+
operation: z.ZodEnum<{
|
|
54155
|
+
divide: "divide";
|
|
54156
|
+
multiply: "multiply";
|
|
54157
|
+
}>;
|
|
54158
|
+
conversion_factor: z.ZodString;
|
|
54159
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
54160
|
+
ceiling: "ceiling";
|
|
54161
|
+
floor: "floor";
|
|
54162
|
+
half_up: "half_up";
|
|
54163
|
+
none: "none";
|
|
54164
|
+
}>>;
|
|
54165
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
54166
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
54167
|
+
}, z.core.$strict>>;
|
|
54168
|
+
}, z.core.$strict>;
|
|
54169
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
54170
|
+
id: z.ZodString;
|
|
54171
|
+
name: z.ZodString;
|
|
54172
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54173
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
54174
|
+
created_at: z.ZodString;
|
|
54175
|
+
updated_at: z.ZodString;
|
|
54176
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
54177
|
+
service_period: z.ZodObject<{
|
|
54178
|
+
from: z.ZodString;
|
|
54179
|
+
to: z.ZodString;
|
|
54180
|
+
}, z.core.$strict>;
|
|
54181
|
+
totals: z.ZodObject<{
|
|
54182
|
+
amount: z.ZodString;
|
|
54183
|
+
taxes_total: z.ZodString;
|
|
54184
|
+
taxes_inclusive_total: z.ZodString;
|
|
54185
|
+
taxes_exclusive_total: z.ZodString;
|
|
54186
|
+
charges_total: z.ZodString;
|
|
54187
|
+
discounts_total: z.ZodString;
|
|
54188
|
+
credits_total: z.ZodString;
|
|
54189
|
+
total: z.ZodString;
|
|
54190
|
+
}, z.core.$strict>;
|
|
54191
|
+
category: z.ZodEnum<{
|
|
54192
|
+
commitment: "commitment";
|
|
54193
|
+
regular: "regular";
|
|
54194
|
+
}>;
|
|
54195
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
54196
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54197
|
+
id: z.ZodString;
|
|
54198
|
+
reason: z.ZodEnum<{
|
|
54199
|
+
maximum_spend: "maximum_spend";
|
|
54200
|
+
ratecard_percentage: "ratecard_percentage";
|
|
54201
|
+
ratecard_usage: "ratecard_usage";
|
|
54202
|
+
}>;
|
|
54203
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54204
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
54205
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
54206
|
+
}, z.core.$strict>>;
|
|
54207
|
+
amount: z.ZodString;
|
|
54208
|
+
}, z.core.$strict>>>;
|
|
54209
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54210
|
+
id: z.ZodString;
|
|
54211
|
+
reason: z.ZodEnum<{
|
|
54212
|
+
maximum_spend: "maximum_spend";
|
|
54213
|
+
ratecard_percentage: "ratecard_percentage";
|
|
54214
|
+
ratecard_usage: "ratecard_usage";
|
|
54215
|
+
}>;
|
|
54216
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54217
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
54218
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
54219
|
+
}, z.core.$strict>>;
|
|
54220
|
+
quantity: z.ZodString;
|
|
54221
|
+
}, z.core.$strict>>>;
|
|
54222
|
+
}, z.core.$strict>>;
|
|
54223
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54224
|
+
amount: z.ZodString;
|
|
54225
|
+
description: z.ZodOptional<z.ZodString>;
|
|
54226
|
+
}, z.core.$strict>>>;
|
|
54227
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
54228
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
54229
|
+
}, z.core.$strict>>;
|
|
54230
|
+
quantity: z.ZodString;
|
|
54231
|
+
unit_price: z.ZodString;
|
|
54232
|
+
}, z.core.$strict>>;
|
|
54233
|
+
usage_quantity_detail: z.ZodOptional<z.ZodObject<{
|
|
54234
|
+
raw_quantity: z.ZodString;
|
|
54235
|
+
invoiced_quantity: z.ZodString;
|
|
54236
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
54237
|
+
}, z.core.$strict>>;
|
|
54238
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
54239
|
+
id: z.ZodString;
|
|
54240
|
+
}, z.core.$strict>>;
|
|
54241
|
+
}, z.core.$strict>], "type">>>;
|
|
54242
|
+
}, z.core.$strict>], "type">>;
|
|
54243
|
+
}, z.core.$strict>;
|
|
53164
54244
|
export declare const invoicePagePaginatedResponseWire: z.ZodObject<{
|
|
53165
54245
|
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
53166
54246
|
id: z.ZodString;
|
|
@@ -61602,6 +62682,368 @@ export declare const createCustomerChargesResponseWire: z.ZodDiscriminatedUnion<
|
|
|
61602
62682
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
61603
62683
|
}, z.core.$strict>>;
|
|
61604
62684
|
}, z.core.$strict>], "type">;
|
|
62685
|
+
export declare const invoiceCustomerChargesPathParamsWire: z.ZodObject<{
|
|
62686
|
+
customerId: z.ZodString;
|
|
62687
|
+
}, z.core.$strip>;
|
|
62688
|
+
export declare const invoiceCustomerChargesBodyWire: z.ZodObject<{
|
|
62689
|
+
as_of: z.ZodOptional<z.ZodString>;
|
|
62690
|
+
progressive_billing_override: z.ZodOptional<z.ZodBoolean>;
|
|
62691
|
+
}, z.core.$strict>;
|
|
62692
|
+
export declare const invoiceCustomerChargesResponseWire: z.ZodObject<{
|
|
62693
|
+
invoices: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
62694
|
+
id: z.ZodString;
|
|
62695
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62696
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
62697
|
+
created_at: z.ZodString;
|
|
62698
|
+
updated_at: z.ZodString;
|
|
62699
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
62700
|
+
number: z.ZodString;
|
|
62701
|
+
currency: z.ZodString;
|
|
62702
|
+
supplier: z.ZodObject<{
|
|
62703
|
+
name: z.ZodOptional<z.ZodString>;
|
|
62704
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
62705
|
+
code: z.ZodOptional<z.ZodString>;
|
|
62706
|
+
}, z.core.$strict>>;
|
|
62707
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
62708
|
+
billing_address: z.ZodObject<{
|
|
62709
|
+
country: z.ZodOptional<z.ZodString>;
|
|
62710
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
62711
|
+
state: z.ZodOptional<z.ZodString>;
|
|
62712
|
+
city: z.ZodOptional<z.ZodString>;
|
|
62713
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
62714
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
62715
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
62716
|
+
}, z.core.$strict>;
|
|
62717
|
+
}, z.core.$strict>>;
|
|
62718
|
+
id: z.ZodOptional<z.ZodString>;
|
|
62719
|
+
}, z.core.$strict>;
|
|
62720
|
+
customer: z.ZodObject<{
|
|
62721
|
+
name: z.ZodString;
|
|
62722
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
62723
|
+
subject_keys: z.ZodArray<z.ZodString>;
|
|
62724
|
+
}, z.core.$strict>>;
|
|
62725
|
+
billing_address: z.ZodOptional<z.ZodObject<{
|
|
62726
|
+
country: z.ZodOptional<z.ZodString>;
|
|
62727
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
62728
|
+
state: z.ZodOptional<z.ZodString>;
|
|
62729
|
+
city: z.ZodOptional<z.ZodString>;
|
|
62730
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
62731
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
62732
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
62733
|
+
}, z.core.$strict>>;
|
|
62734
|
+
id: z.ZodString;
|
|
62735
|
+
key: z.ZodOptional<z.ZodString>;
|
|
62736
|
+
}, z.core.$strict>;
|
|
62737
|
+
totals: z.ZodObject<{
|
|
62738
|
+
amount: z.ZodString;
|
|
62739
|
+
taxes_total: z.ZodString;
|
|
62740
|
+
taxes_inclusive_total: z.ZodString;
|
|
62741
|
+
taxes_exclusive_total: z.ZodString;
|
|
62742
|
+
charges_total: z.ZodString;
|
|
62743
|
+
discounts_total: z.ZodString;
|
|
62744
|
+
credits_total: z.ZodString;
|
|
62745
|
+
total: z.ZodString;
|
|
62746
|
+
}, z.core.$strict>;
|
|
62747
|
+
service_period: z.ZodObject<{
|
|
62748
|
+
from: z.ZodString;
|
|
62749
|
+
to: z.ZodString;
|
|
62750
|
+
}, z.core.$strict>;
|
|
62751
|
+
validation_issues: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62752
|
+
code: z.ZodString;
|
|
62753
|
+
message: z.ZodString;
|
|
62754
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62755
|
+
severity: z.ZodEnum<{
|
|
62756
|
+
critical: "critical";
|
|
62757
|
+
warning: "warning";
|
|
62758
|
+
}>;
|
|
62759
|
+
field: z.ZodOptional<z.ZodString>;
|
|
62760
|
+
component: z.ZodOptional<z.ZodString>;
|
|
62761
|
+
}, z.core.$strict>>>;
|
|
62762
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
62763
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
62764
|
+
payment_id: z.ZodOptional<z.ZodString>;
|
|
62765
|
+
}, z.core.$strict>>;
|
|
62766
|
+
type: z.ZodLiteral<"standard">;
|
|
62767
|
+
status: z.ZodEnum<{
|
|
62768
|
+
draft: "draft";
|
|
62769
|
+
issued: "issued";
|
|
62770
|
+
issuing: "issuing";
|
|
62771
|
+
overdue: "overdue";
|
|
62772
|
+
paid: "paid";
|
|
62773
|
+
payment_processing: "payment_processing";
|
|
62774
|
+
uncollectible: "uncollectible";
|
|
62775
|
+
voided: "voided";
|
|
62776
|
+
}>;
|
|
62777
|
+
status_details: z.ZodObject<{
|
|
62778
|
+
immutable: z.ZodBoolean;
|
|
62779
|
+
failed: z.ZodBoolean;
|
|
62780
|
+
extended_status: z.ZodString;
|
|
62781
|
+
available_actions: z.ZodObject<{
|
|
62782
|
+
advance: z.ZodOptional<z.ZodObject<{
|
|
62783
|
+
resulting_state: z.ZodString;
|
|
62784
|
+
}, z.core.$strict>>;
|
|
62785
|
+
approve: z.ZodOptional<z.ZodObject<{
|
|
62786
|
+
resulting_state: z.ZodString;
|
|
62787
|
+
}, z.core.$strict>>;
|
|
62788
|
+
delete: z.ZodOptional<z.ZodObject<{
|
|
62789
|
+
resulting_state: z.ZodString;
|
|
62790
|
+
}, z.core.$strict>>;
|
|
62791
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
62792
|
+
resulting_state: z.ZodString;
|
|
62793
|
+
}, z.core.$strict>>;
|
|
62794
|
+
snapshot_quantities: z.ZodOptional<z.ZodObject<{
|
|
62795
|
+
resulting_state: z.ZodString;
|
|
62796
|
+
}, z.core.$strict>>;
|
|
62797
|
+
}, z.core.$strict>;
|
|
62798
|
+
}, z.core.$strict>;
|
|
62799
|
+
issued_at: z.ZodOptional<z.ZodString>;
|
|
62800
|
+
draft_until: z.ZodOptional<z.ZodString>;
|
|
62801
|
+
quantity_snapshotted_at: z.ZodOptional<z.ZodString>;
|
|
62802
|
+
collection_at: z.ZodOptional<z.ZodString>;
|
|
62803
|
+
due_at: z.ZodOptional<z.ZodString>;
|
|
62804
|
+
sent_to_customer_at: z.ZodOptional<z.ZodString>;
|
|
62805
|
+
workflow: z.ZodObject<{
|
|
62806
|
+
apps: z.ZodOptional<z.ZodObject<{
|
|
62807
|
+
tax: z.ZodObject<{
|
|
62808
|
+
id: z.ZodString;
|
|
62809
|
+
}, z.core.$strict>;
|
|
62810
|
+
invoicing: z.ZodObject<{
|
|
62811
|
+
id: z.ZodString;
|
|
62812
|
+
}, z.core.$strict>;
|
|
62813
|
+
payment: z.ZodObject<{
|
|
62814
|
+
id: z.ZodString;
|
|
62815
|
+
}, z.core.$strict>;
|
|
62816
|
+
}, z.core.$strict>>;
|
|
62817
|
+
source_billing_profile: z.ZodObject<{
|
|
62818
|
+
id: z.ZodString;
|
|
62819
|
+
}, z.core.$strict>;
|
|
62820
|
+
workflow: z.ZodObject<{
|
|
62821
|
+
invoicing: z.ZodOptional<z.ZodObject<{
|
|
62822
|
+
auto_advance: z.ZodOptional<z.ZodBoolean>;
|
|
62823
|
+
draft_period: z.ZodOptional<z.ZodString>;
|
|
62824
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
62825
|
+
}, z.core.$strict>>;
|
|
62826
|
+
payment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
62827
|
+
collection_method: z.ZodLiteral<"charge_automatically">;
|
|
62828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62829
|
+
collection_method: z.ZodLiteral<"send_invoice">;
|
|
62830
|
+
due_after: z.ZodOptional<z.ZodString>;
|
|
62831
|
+
}, z.core.$strict>], "collection_method">>;
|
|
62832
|
+
}, z.core.$strict>;
|
|
62833
|
+
}, z.core.$strict>;
|
|
62834
|
+
lines: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
62835
|
+
name: z.ZodString;
|
|
62836
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62837
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
62838
|
+
created_at: z.ZodString;
|
|
62839
|
+
updated_at: z.ZodString;
|
|
62840
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
62841
|
+
id: z.ZodOptional<z.ZodString>;
|
|
62842
|
+
type: z.ZodLiteral<"standard_line">;
|
|
62843
|
+
lifecycle_controller: z.ZodEnum<{
|
|
62844
|
+
manual: "manual";
|
|
62845
|
+
system: "system";
|
|
62846
|
+
}>;
|
|
62847
|
+
service_period: z.ZodObject<{
|
|
62848
|
+
from: z.ZodString;
|
|
62849
|
+
to: z.ZodString;
|
|
62850
|
+
}, z.core.$strict>;
|
|
62851
|
+
totals: z.ZodObject<{
|
|
62852
|
+
amount: z.ZodString;
|
|
62853
|
+
taxes_total: z.ZodString;
|
|
62854
|
+
taxes_inclusive_total: z.ZodString;
|
|
62855
|
+
taxes_exclusive_total: z.ZodString;
|
|
62856
|
+
charges_total: z.ZodString;
|
|
62857
|
+
discounts_total: z.ZodString;
|
|
62858
|
+
credits_total: z.ZodString;
|
|
62859
|
+
total: z.ZodString;
|
|
62860
|
+
}, z.core.$strict>;
|
|
62861
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
62862
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62863
|
+
id: z.ZodString;
|
|
62864
|
+
reason: z.ZodEnum<{
|
|
62865
|
+
maximum_spend: "maximum_spend";
|
|
62866
|
+
ratecard_percentage: "ratecard_percentage";
|
|
62867
|
+
ratecard_usage: "ratecard_usage";
|
|
62868
|
+
}>;
|
|
62869
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62870
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
62871
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
62872
|
+
}, z.core.$strict>>;
|
|
62873
|
+
amount: z.ZodString;
|
|
62874
|
+
}, z.core.$strict>>>;
|
|
62875
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62876
|
+
id: z.ZodString;
|
|
62877
|
+
reason: z.ZodEnum<{
|
|
62878
|
+
maximum_spend: "maximum_spend";
|
|
62879
|
+
ratecard_percentage: "ratecard_percentage";
|
|
62880
|
+
ratecard_usage: "ratecard_usage";
|
|
62881
|
+
}>;
|
|
62882
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62883
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
62884
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
62885
|
+
}, z.core.$strict>>;
|
|
62886
|
+
quantity: z.ZodString;
|
|
62887
|
+
}, z.core.$strict>>>;
|
|
62888
|
+
}, z.core.$strict>>;
|
|
62889
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62890
|
+
amount: z.ZodString;
|
|
62891
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62892
|
+
}, z.core.$strict>>>;
|
|
62893
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
62894
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
62895
|
+
}, z.core.$strict>>;
|
|
62896
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
62897
|
+
id: z.ZodString;
|
|
62898
|
+
name: z.ZodOptional<z.ZodString>;
|
|
62899
|
+
phase: z.ZodObject<{
|
|
62900
|
+
id: z.ZodString;
|
|
62901
|
+
item: z.ZodObject<{
|
|
62902
|
+
id: z.ZodString;
|
|
62903
|
+
}, z.core.$strict>;
|
|
62904
|
+
}, z.core.$strict>;
|
|
62905
|
+
}, z.core.$strict>>;
|
|
62906
|
+
rate_card: z.ZodObject<{
|
|
62907
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
62908
|
+
type: z.ZodLiteral<"free">;
|
|
62909
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62910
|
+
type: z.ZodLiteral<"flat">;
|
|
62911
|
+
amount: z.ZodString;
|
|
62912
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62913
|
+
type: z.ZodLiteral<"unit">;
|
|
62914
|
+
amount: z.ZodString;
|
|
62915
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62916
|
+
type: z.ZodLiteral<"graduated">;
|
|
62917
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
62918
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
62919
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
62920
|
+
type: z.ZodLiteral<"flat">;
|
|
62921
|
+
amount: z.ZodString;
|
|
62922
|
+
}, z.core.$strict>>;
|
|
62923
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
62924
|
+
type: z.ZodLiteral<"unit">;
|
|
62925
|
+
amount: z.ZodString;
|
|
62926
|
+
}, z.core.$strict>>;
|
|
62927
|
+
}, z.core.$strict>>;
|
|
62928
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62929
|
+
type: z.ZodLiteral<"volume">;
|
|
62930
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
62931
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
62932
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
62933
|
+
type: z.ZodLiteral<"flat">;
|
|
62934
|
+
amount: z.ZodString;
|
|
62935
|
+
}, z.core.$strict>>;
|
|
62936
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
62937
|
+
type: z.ZodLiteral<"unit">;
|
|
62938
|
+
amount: z.ZodString;
|
|
62939
|
+
}, z.core.$strict>>;
|
|
62940
|
+
}, z.core.$strict>>;
|
|
62941
|
+
}, z.core.$strict>], "type">;
|
|
62942
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
62943
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
62944
|
+
exclusive: "exclusive";
|
|
62945
|
+
inclusive: "inclusive";
|
|
62946
|
+
}>>;
|
|
62947
|
+
code: z.ZodOptional<z.ZodObject<{
|
|
62948
|
+
id: z.ZodString;
|
|
62949
|
+
}, z.core.$strict>>;
|
|
62950
|
+
}, z.core.$strict>>;
|
|
62951
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
62952
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
62953
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
62954
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
62955
|
+
}, z.core.$strict>>;
|
|
62956
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
62957
|
+
operation: z.ZodEnum<{
|
|
62958
|
+
divide: "divide";
|
|
62959
|
+
multiply: "multiply";
|
|
62960
|
+
}>;
|
|
62961
|
+
conversion_factor: z.ZodString;
|
|
62962
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
62963
|
+
ceiling: "ceiling";
|
|
62964
|
+
floor: "floor";
|
|
62965
|
+
half_up: "half_up";
|
|
62966
|
+
none: "none";
|
|
62967
|
+
}>>;
|
|
62968
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
62969
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
62970
|
+
}, z.core.$strict>>;
|
|
62971
|
+
}, z.core.$strict>;
|
|
62972
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
62973
|
+
id: z.ZodString;
|
|
62974
|
+
name: z.ZodString;
|
|
62975
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62976
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
62977
|
+
created_at: z.ZodString;
|
|
62978
|
+
updated_at: z.ZodString;
|
|
62979
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
62980
|
+
service_period: z.ZodObject<{
|
|
62981
|
+
from: z.ZodString;
|
|
62982
|
+
to: z.ZodString;
|
|
62983
|
+
}, z.core.$strict>;
|
|
62984
|
+
totals: z.ZodObject<{
|
|
62985
|
+
amount: z.ZodString;
|
|
62986
|
+
taxes_total: z.ZodString;
|
|
62987
|
+
taxes_inclusive_total: z.ZodString;
|
|
62988
|
+
taxes_exclusive_total: z.ZodString;
|
|
62989
|
+
charges_total: z.ZodString;
|
|
62990
|
+
discounts_total: z.ZodString;
|
|
62991
|
+
credits_total: z.ZodString;
|
|
62992
|
+
total: z.ZodString;
|
|
62993
|
+
}, z.core.$strict>;
|
|
62994
|
+
category: z.ZodEnum<{
|
|
62995
|
+
commitment: "commitment";
|
|
62996
|
+
regular: "regular";
|
|
62997
|
+
}>;
|
|
62998
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
62999
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63000
|
+
id: z.ZodString;
|
|
63001
|
+
reason: z.ZodEnum<{
|
|
63002
|
+
maximum_spend: "maximum_spend";
|
|
63003
|
+
ratecard_percentage: "ratecard_percentage";
|
|
63004
|
+
ratecard_usage: "ratecard_usage";
|
|
63005
|
+
}>;
|
|
63006
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63007
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
63008
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
63009
|
+
}, z.core.$strict>>;
|
|
63010
|
+
amount: z.ZodString;
|
|
63011
|
+
}, z.core.$strict>>>;
|
|
63012
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63013
|
+
id: z.ZodString;
|
|
63014
|
+
reason: z.ZodEnum<{
|
|
63015
|
+
maximum_spend: "maximum_spend";
|
|
63016
|
+
ratecard_percentage: "ratecard_percentage";
|
|
63017
|
+
ratecard_usage: "ratecard_usage";
|
|
63018
|
+
}>;
|
|
63019
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63020
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
63021
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
63022
|
+
}, z.core.$strict>>;
|
|
63023
|
+
quantity: z.ZodString;
|
|
63024
|
+
}, z.core.$strict>>>;
|
|
63025
|
+
}, z.core.$strict>>;
|
|
63026
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63027
|
+
amount: z.ZodString;
|
|
63028
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63029
|
+
}, z.core.$strict>>>;
|
|
63030
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
63031
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
63032
|
+
}, z.core.$strict>>;
|
|
63033
|
+
quantity: z.ZodString;
|
|
63034
|
+
unit_price: z.ZodString;
|
|
63035
|
+
}, z.core.$strict>>;
|
|
63036
|
+
usage_quantity_detail: z.ZodOptional<z.ZodObject<{
|
|
63037
|
+
raw_quantity: z.ZodString;
|
|
63038
|
+
invoiced_quantity: z.ZodString;
|
|
63039
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
63040
|
+
}, z.core.$strict>>;
|
|
63041
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
63042
|
+
id: z.ZodString;
|
|
63043
|
+
}, z.core.$strict>>;
|
|
63044
|
+
}, z.core.$strict>], "type">>>;
|
|
63045
|
+
}, z.core.$strict>], "type">>;
|
|
63046
|
+
}, z.core.$strict>;
|
|
61605
63047
|
export declare const createSubscriptionBodyWire: z.ZodObject<{
|
|
61606
63048
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
61607
63049
|
settlement_mode: z.ZodOptional<z.ZodEnum<{
|