@openmeter/sdk 1.0.0-beta-e49464db8b22 → 1.0.0-beta-5e4e38ebc196
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/client/billing.cjs +11 -3
- package/dist/cjs/src/client/billing.d.cts +14 -59
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +105 -99
- package/dist/cjs/src/zod/index.cjs +874 -885
- package/dist/cjs/src/zod/index.d.cts +1234 -1965
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.7d3dd45c.tsbuildinfo → tsconfig.5bfbaf19.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.ceb29c3f.tsbuildinfo → tsconfig.73d87dac.tsbuildinfo} +1 -1
- package/dist/src/client/billing.d.ts +14 -59
- package/dist/src/client/billing.js +11 -3
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/schemas.d.ts +105 -99
- package/dist/src/zod/index.d.ts +1234 -1965
- package/dist/src/zod/index.js +853 -863
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/zod/index.d.ts
CHANGED
|
@@ -2472,96 +2472,93 @@ export declare const deleteBillingProfileCustomerOverrideParams: zod.ZodObject<{
|
|
|
2472
2472
|
customerId: string;
|
|
2473
2473
|
}>;
|
|
2474
2474
|
/**
|
|
2475
|
-
*
|
|
2475
|
+
* Create a new pending line item (charge).
|
|
2476
2476
|
|
|
2477
|
-
This call
|
|
2477
|
+
This call is used to create a new pending line item for the customer if required a new
|
|
2478
|
+
gathering invoice will be created.
|
|
2478
2479
|
|
|
2479
|
-
|
|
2480
|
-
|
|
2480
|
+
A new invoice will be created if:
|
|
2481
|
+
- there is no invoice in gathering state
|
|
2482
|
+
- the currency of the line item doesn't match the currency of any invoices in gathering state
|
|
2483
|
+
* @summary Create pending line items
|
|
2481
2484
|
*/
|
|
2482
|
-
export declare const
|
|
2483
|
-
export declare const
|
|
2485
|
+
export declare const createPendingInvoiceLinePathCustomerIdRegExp: RegExp;
|
|
2486
|
+
export declare const createPendingInvoiceLineParams: zod.ZodObject<{
|
|
2484
2487
|
customerId: zod.ZodString;
|
|
2485
2488
|
}, "strip", zod.ZodTypeAny, {
|
|
2486
2489
|
customerId: string;
|
|
2487
2490
|
}, {
|
|
2488
2491
|
customerId: string;
|
|
2489
2492
|
}>;
|
|
2490
|
-
export declare const
|
|
2491
|
-
export declare const
|
|
2492
|
-
export declare const
|
|
2493
|
-
export declare const
|
|
2494
|
-
export declare const
|
|
2495
|
-
export declare const
|
|
2496
|
-
export declare const
|
|
2497
|
-
export declare const
|
|
2498
|
-
export declare const
|
|
2499
|
-
export declare const
|
|
2500
|
-
export declare const
|
|
2501
|
-
export declare const
|
|
2502
|
-
export declare const
|
|
2503
|
-
export declare const
|
|
2504
|
-
export declare const
|
|
2505
|
-
export declare const
|
|
2506
|
-
export declare const
|
|
2507
|
-
export declare const
|
|
2508
|
-
export declare const
|
|
2509
|
-
export declare const
|
|
2510
|
-
export declare const
|
|
2511
|
-
export declare const
|
|
2512
|
-
export declare const
|
|
2513
|
-
export declare const
|
|
2514
|
-
export declare const
|
|
2515
|
-
export declare const
|
|
2516
|
-
export declare const
|
|
2517
|
-
export declare const
|
|
2518
|
-
export declare const
|
|
2519
|
-
export declare const
|
|
2520
|
-
export declare const
|
|
2521
|
-
export declare const
|
|
2522
|
-
export declare const
|
|
2523
|
-
export declare const
|
|
2524
|
-
export declare const
|
|
2525
|
-
export declare const
|
|
2526
|
-
export declare const
|
|
2527
|
-
export declare const
|
|
2528
|
-
export declare const
|
|
2529
|
-
export declare const
|
|
2530
|
-
export declare const
|
|
2531
|
-
export declare const
|
|
2532
|
-
export declare const
|
|
2533
|
-
export declare const
|
|
2534
|
-
export declare const
|
|
2535
|
-
export declare const
|
|
2536
|
-
export declare const
|
|
2537
|
-
export declare const
|
|
2538
|
-
export declare const
|
|
2539
|
-
export declare const
|
|
2540
|
-
export declare const
|
|
2541
|
-
export declare const
|
|
2542
|
-
export declare const
|
|
2543
|
-
export declare const
|
|
2544
|
-
export declare const
|
|
2545
|
-
export declare const
|
|
2546
|
-
export declare const
|
|
2547
|
-
export declare const
|
|
2548
|
-
export declare const
|
|
2549
|
-
export declare const
|
|
2550
|
-
export declare const
|
|
2551
|
-
export declare const
|
|
2552
|
-
export declare const
|
|
2553
|
-
export declare const
|
|
2554
|
-
export declare const
|
|
2555
|
-
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpThree: RegExp;
|
|
2556
|
-
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExpOne: RegExp;
|
|
2557
|
-
export declare const simulateInvoiceBodyLinesItemCategoryDefault = "regular";
|
|
2558
|
-
export declare const simulateInvoiceBodyLinesItemIdRegExpOne: RegExp;
|
|
2559
|
-
export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
2493
|
+
export declare const createPendingInvoiceLineBodyCurrencyMinOne = 3;
|
|
2494
|
+
export declare const createPendingInvoiceLineBodyCurrencyMaxOne = 3;
|
|
2495
|
+
export declare const createPendingInvoiceLineBodyCurrencyRegExpOne: RegExp;
|
|
2496
|
+
export declare const createPendingInvoiceLineBodyLinesItemNameMax = 256;
|
|
2497
|
+
export declare const createPendingInvoiceLineBodyLinesItemDescriptionMax = 1024;
|
|
2498
|
+
export declare const createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExp: RegExp;
|
|
2499
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpOne: RegExp;
|
|
2500
|
+
export declare const createPendingInvoiceLineBodyLinesItemPricePaymentTermDefault = "in_advance";
|
|
2501
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpThree: RegExp;
|
|
2502
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpOne: RegExp;
|
|
2503
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpOne: RegExp;
|
|
2504
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceTiersItemUpToAmountRegExpOne: RegExp;
|
|
2505
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne: RegExp;
|
|
2506
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne: RegExp;
|
|
2507
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpThree: RegExp;
|
|
2508
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpThree: RegExp;
|
|
2509
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMultiplierRegExpOne: RegExp;
|
|
2510
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMultiplierDefault = "1";
|
|
2511
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpFive: RegExp;
|
|
2512
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpFive: RegExp;
|
|
2513
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceAmountRegExpFive: RegExp;
|
|
2514
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceQuantityPerPackageRegExpOne: RegExp;
|
|
2515
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpSeven: RegExp;
|
|
2516
|
+
export declare const createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpSeven: RegExp;
|
|
2517
|
+
export declare const createPendingInvoiceLineBodyLinesItemFeatureKeyMax = 64;
|
|
2518
|
+
export declare const createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp: RegExp;
|
|
2519
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyMax = 64;
|
|
2520
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyRegExp: RegExp;
|
|
2521
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExp: RegExp;
|
|
2522
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpOne: RegExp;
|
|
2523
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPricePaymentTermDefault = "in_advance";
|
|
2524
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpThree: RegExp;
|
|
2525
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpOne: RegExp;
|
|
2526
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpOne: RegExp;
|
|
2527
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne: RegExp;
|
|
2528
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne: RegExp;
|
|
2529
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne: RegExp;
|
|
2530
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpThree: RegExp;
|
|
2531
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpThree: RegExp;
|
|
2532
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierRegExpOne: RegExp;
|
|
2533
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierDefault = "1";
|
|
2534
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpFive: RegExp;
|
|
2535
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpFive: RegExp;
|
|
2536
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpFive: RegExp;
|
|
2537
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne: RegExp;
|
|
2538
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpSeven: RegExp;
|
|
2539
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpSeven: RegExp;
|
|
2540
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp: RegExp;
|
|
2541
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne: RegExp;
|
|
2542
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp: RegExp;
|
|
2543
|
+
export declare const createPendingInvoiceLineBodyLinesItemNameMaxOne = 256;
|
|
2544
|
+
export declare const createPendingInvoiceLineBodyLinesItemDescriptionMaxOne = 1024;
|
|
2545
|
+
export declare const createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExpOne: RegExp;
|
|
2546
|
+
export declare const createPendingInvoiceLineBodyLinesItemPerUnitAmountRegExpOne: RegExp;
|
|
2547
|
+
export declare const createPendingInvoiceLineBodyLinesItemPaymentTermDefault = "in_advance";
|
|
2548
|
+
export declare const createPendingInvoiceLineBodyLinesItemQuantityRegExpOne: RegExp;
|
|
2549
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExpOne: RegExp;
|
|
2550
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpSeven: RegExp;
|
|
2551
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardPricePaymentTermDefaultTwo = "in_advance";
|
|
2552
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardQuantityRegExpOne: RegExp;
|
|
2553
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExpOne: RegExp;
|
|
2554
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpThree: RegExp;
|
|
2555
|
+
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExpOne: RegExp;
|
|
2556
|
+
export declare const createPendingInvoiceLineBodyLinesItemCategoryDefault = "regular";
|
|
2557
|
+
export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
2560
2558
|
currency: zod.ZodString;
|
|
2561
2559
|
lines: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
2562
2560
|
description: zod.ZodOptional<zod.ZodString>;
|
|
2563
2561
|
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
2564
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
2565
2562
|
invoiceAt: zod.ZodDate;
|
|
2566
2563
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
2567
2564
|
name: zod.ZodString;
|
|
@@ -2575,7 +2572,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
2575
2572
|
from: Date;
|
|
2576
2573
|
to: Date;
|
|
2577
2574
|
}>;
|
|
2578
|
-
preLinePeriodQuantity: zod.ZodOptional<zod.ZodString>;
|
|
2579
2575
|
price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
2580
2576
|
amount: zod.ZodString;
|
|
2581
2577
|
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
@@ -2717,7 +2713,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
2717
2713
|
maximumAmount?: string | undefined;
|
|
2718
2714
|
minimumAmount?: string | undefined;
|
|
2719
2715
|
}>]>>;
|
|
2720
|
-
quantity: zod.ZodString;
|
|
2721
2716
|
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
2722
2717
|
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
2723
2718
|
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -3088,13 +3083,11 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3088
3083
|
}, "strip", zod.ZodTypeAny, {
|
|
3089
3084
|
name: string;
|
|
3090
3085
|
type: "usage_based";
|
|
3091
|
-
quantity: string;
|
|
3092
3086
|
invoiceAt: Date;
|
|
3093
3087
|
period: {
|
|
3094
3088
|
from: Date;
|
|
3095
3089
|
to: Date;
|
|
3096
3090
|
};
|
|
3097
|
-
id?: string | undefined;
|
|
3098
3091
|
description?: string | undefined;
|
|
3099
3092
|
featureKey?: string | undefined;
|
|
3100
3093
|
metadata?: Record<string, string> | null | undefined;
|
|
@@ -3144,7 +3137,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3144
3137
|
code: string;
|
|
3145
3138
|
} | undefined;
|
|
3146
3139
|
} | undefined;
|
|
3147
|
-
preLinePeriodQuantity?: string | undefined;
|
|
3148
3140
|
rateCard?: {
|
|
3149
3141
|
price: {
|
|
3150
3142
|
type: "flat";
|
|
@@ -3207,13 +3199,11 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3207
3199
|
}, {
|
|
3208
3200
|
name: string;
|
|
3209
3201
|
type: "usage_based";
|
|
3210
|
-
quantity: string;
|
|
3211
3202
|
invoiceAt: Date;
|
|
3212
3203
|
period: {
|
|
3213
3204
|
from: Date;
|
|
3214
3205
|
to: Date;
|
|
3215
3206
|
};
|
|
3216
|
-
id?: string | undefined;
|
|
3217
3207
|
description?: string | undefined;
|
|
3218
3208
|
featureKey?: string | undefined;
|
|
3219
3209
|
metadata?: Record<string, string> | null | undefined;
|
|
@@ -3263,7 +3253,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3263
3253
|
code: string;
|
|
3264
3254
|
} | undefined;
|
|
3265
3255
|
} | undefined;
|
|
3266
|
-
preLinePeriodQuantity?: string | undefined;
|
|
3267
3256
|
rateCard?: {
|
|
3268
3257
|
price: {
|
|
3269
3258
|
type: "flat";
|
|
@@ -3326,7 +3315,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3326
3315
|
}>, zod.ZodObject<{
|
|
3327
3316
|
category: zod.ZodDefault<zod.ZodEnum<["regular", "commitment"]>>;
|
|
3328
3317
|
description: zod.ZodOptional<zod.ZodString>;
|
|
3329
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
3330
3318
|
invoiceAt: zod.ZodDate;
|
|
3331
3319
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
3332
3320
|
name: zod.ZodString;
|
|
@@ -3528,7 +3516,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3528
3516
|
to: Date;
|
|
3529
3517
|
};
|
|
3530
3518
|
category: "regular" | "commitment";
|
|
3531
|
-
id?: string | undefined;
|
|
3532
3519
|
description?: string | undefined;
|
|
3533
3520
|
metadata?: Record<string, string> | null | undefined;
|
|
3534
3521
|
quantity?: string | undefined;
|
|
@@ -3577,7 +3564,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3577
3564
|
from: Date;
|
|
3578
3565
|
to: Date;
|
|
3579
3566
|
};
|
|
3580
|
-
id?: string | undefined;
|
|
3581
3567
|
description?: string | undefined;
|
|
3582
3568
|
metadata?: Record<string, string> | null | undefined;
|
|
3583
3569
|
quantity?: string | undefined;
|
|
@@ -3621,18 +3607,15 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3621
3607
|
category?: "regular" | "commitment" | undefined;
|
|
3622
3608
|
perUnitAmount?: string | undefined;
|
|
3623
3609
|
}>]>, "many">;
|
|
3624
|
-
number: zod.ZodOptional<zod.ZodString>;
|
|
3625
3610
|
}, "strip", zod.ZodTypeAny, {
|
|
3626
3611
|
lines: ({
|
|
3627
3612
|
name: string;
|
|
3628
3613
|
type: "usage_based";
|
|
3629
|
-
quantity: string;
|
|
3630
3614
|
invoiceAt: Date;
|
|
3631
3615
|
period: {
|
|
3632
3616
|
from: Date;
|
|
3633
3617
|
to: Date;
|
|
3634
3618
|
};
|
|
3635
|
-
id?: string | undefined;
|
|
3636
3619
|
description?: string | undefined;
|
|
3637
3620
|
featureKey?: string | undefined;
|
|
3638
3621
|
metadata?: Record<string, string> | null | undefined;
|
|
@@ -3682,7 +3665,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3682
3665
|
code: string;
|
|
3683
3666
|
} | undefined;
|
|
3684
3667
|
} | undefined;
|
|
3685
|
-
preLinePeriodQuantity?: string | undefined;
|
|
3686
3668
|
rateCard?: {
|
|
3687
3669
|
price: {
|
|
3688
3670
|
type: "flat";
|
|
@@ -3752,7 +3734,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3752
3734
|
to: Date;
|
|
3753
3735
|
};
|
|
3754
3736
|
category: "regular" | "commitment";
|
|
3755
|
-
id?: string | undefined;
|
|
3756
3737
|
description?: string | undefined;
|
|
3757
3738
|
metadata?: Record<string, string> | null | undefined;
|
|
3758
3739
|
quantity?: string | undefined;
|
|
@@ -3795,18 +3776,15 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3795
3776
|
perUnitAmount?: string | undefined;
|
|
3796
3777
|
})[];
|
|
3797
3778
|
currency: string;
|
|
3798
|
-
number?: string | undefined;
|
|
3799
3779
|
}, {
|
|
3800
3780
|
lines: ({
|
|
3801
3781
|
name: string;
|
|
3802
3782
|
type: "usage_based";
|
|
3803
|
-
quantity: string;
|
|
3804
3783
|
invoiceAt: Date;
|
|
3805
3784
|
period: {
|
|
3806
3785
|
from: Date;
|
|
3807
3786
|
to: Date;
|
|
3808
3787
|
};
|
|
3809
|
-
id?: string | undefined;
|
|
3810
3788
|
description?: string | undefined;
|
|
3811
3789
|
featureKey?: string | undefined;
|
|
3812
3790
|
metadata?: Record<string, string> | null | undefined;
|
|
@@ -3856,7 +3834,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3856
3834
|
code: string;
|
|
3857
3835
|
} | undefined;
|
|
3858
3836
|
} | undefined;
|
|
3859
|
-
preLinePeriodQuantity?: string | undefined;
|
|
3860
3837
|
rateCard?: {
|
|
3861
3838
|
price: {
|
|
3862
3839
|
type: "flat";
|
|
@@ -3924,7 +3901,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3924
3901
|
from: Date;
|
|
3925
3902
|
to: Date;
|
|
3926
3903
|
};
|
|
3927
|
-
id?: string | undefined;
|
|
3928
3904
|
description?: string | undefined;
|
|
3929
3905
|
metadata?: Record<string, string> | null | undefined;
|
|
3930
3906
|
quantity?: string | undefined;
|
|
@@ -3969,378 +3945,113 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
3969
3945
|
perUnitAmount?: string | undefined;
|
|
3970
3946
|
})[];
|
|
3971
3947
|
currency: string;
|
|
3972
|
-
number?: string | undefined;
|
|
3973
|
-
}>;
|
|
3974
|
-
/**
|
|
3975
|
-
* List invoices for a specific customer
|
|
3976
|
-
* @summary List invoices
|
|
3977
|
-
*/
|
|
3978
|
-
export declare const listInvoicesQueryCustomersItemRegExp: RegExp;
|
|
3979
|
-
export declare const listInvoicesQueryPageDefault = 1;
|
|
3980
|
-
export declare const listInvoicesQueryPageSizeDefault = 100;
|
|
3981
|
-
export declare const listInvoicesQueryPageSizeMax = 1000;
|
|
3982
|
-
export declare const listInvoicesQueryParams: zod.ZodObject<{
|
|
3983
|
-
createdAfter: zod.ZodOptional<zod.ZodDate>;
|
|
3984
|
-
createdBefore: zod.ZodOptional<zod.ZodDate>;
|
|
3985
|
-
customers: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
3986
|
-
expand: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<["lines", "preceding", "workflow.apps"]>, "many">>;
|
|
3987
|
-
extendedStatuses: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
3988
|
-
includeDeleted: zod.ZodOptional<zod.ZodBoolean>;
|
|
3989
|
-
issuedAfter: zod.ZodOptional<zod.ZodDate>;
|
|
3990
|
-
issuedBefore: zod.ZodOptional<zod.ZodDate>;
|
|
3991
|
-
order: zod.ZodOptional<zod.ZodEnum<["ASC", "DESC"]>>;
|
|
3992
|
-
orderBy: zod.ZodOptional<zod.ZodEnum<["customer.name", "issuedAt", "status", "createdAt", "updatedAt"]>>;
|
|
3993
|
-
page: zod.ZodDefault<zod.ZodNumber>;
|
|
3994
|
-
pageSize: zod.ZodDefault<zod.ZodNumber>;
|
|
3995
|
-
statuses: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<["gathering", "draft", "issuing", "issued", "payment_processing", "overdue", "paid", "uncollectible", "voided"]>, "many">>;
|
|
3996
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3997
|
-
page: number;
|
|
3998
|
-
pageSize: number;
|
|
3999
|
-
order?: "ASC" | "DESC" | undefined;
|
|
4000
|
-
orderBy?: "createdAt" | "updatedAt" | "customer.name" | "issuedAt" | "status" | undefined;
|
|
4001
|
-
includeDeleted?: boolean | undefined;
|
|
4002
|
-
expand?: ("lines" | "preceding" | "workflow.apps")[] | undefined;
|
|
4003
|
-
createdAfter?: Date | undefined;
|
|
4004
|
-
createdBefore?: Date | undefined;
|
|
4005
|
-
customers?: string[] | undefined;
|
|
4006
|
-
extendedStatuses?: string[] | undefined;
|
|
4007
|
-
issuedAfter?: Date | undefined;
|
|
4008
|
-
issuedBefore?: Date | undefined;
|
|
4009
|
-
statuses?: ("draft" | "paid" | "gathering" | "issuing" | "issued" | "payment_processing" | "overdue" | "uncollectible" | "voided")[] | undefined;
|
|
4010
|
-
}, {
|
|
4011
|
-
page?: number | undefined;
|
|
4012
|
-
pageSize?: number | undefined;
|
|
4013
|
-
order?: "ASC" | "DESC" | undefined;
|
|
4014
|
-
orderBy?: "createdAt" | "updatedAt" | "customer.name" | "issuedAt" | "status" | undefined;
|
|
4015
|
-
includeDeleted?: boolean | undefined;
|
|
4016
|
-
expand?: ("lines" | "preceding" | "workflow.apps")[] | undefined;
|
|
4017
|
-
createdAfter?: Date | undefined;
|
|
4018
|
-
createdBefore?: Date | undefined;
|
|
4019
|
-
customers?: string[] | undefined;
|
|
4020
|
-
extendedStatuses?: string[] | undefined;
|
|
4021
|
-
issuedAfter?: Date | undefined;
|
|
4022
|
-
issuedBefore?: Date | undefined;
|
|
4023
|
-
statuses?: ("draft" | "paid" | "gathering" | "issuing" | "issued" | "payment_processing" | "overdue" | "uncollectible" | "voided")[] | undefined;
|
|
4024
3948
|
}>;
|
|
4025
3949
|
/**
|
|
4026
|
-
*
|
|
4027
|
-
|
|
4028
|
-
This should be only called if for some reason we need to invoice a customer outside of the normal billing cycle.
|
|
4029
|
-
|
|
4030
|
-
When creating an invoice, the pending line items will be marked as invoiced and the invoice will be created with the total amount of the pending items.
|
|
3950
|
+
* Simulate an invoice for a customer.
|
|
4031
3951
|
|
|
4032
|
-
|
|
3952
|
+
This call will simulate an invoice for a customer based on the pending line items.
|
|
4033
3953
|
|
|
4034
|
-
The call
|
|
4035
|
-
* @summary
|
|
3954
|
+
The call will return the total amount of the invoice and the line items that will be included in the invoice.
|
|
3955
|
+
* @summary Simulate an invoice for a customer
|
|
4036
3956
|
*/
|
|
4037
|
-
export declare const
|
|
4038
|
-
export declare const
|
|
4039
|
-
export declare const invoicePendingLinesActionBody: zod.ZodObject<{
|
|
4040
|
-
asOf: zod.ZodOptional<zod.ZodDate>;
|
|
3957
|
+
export declare const simulateInvoicePathCustomerIdRegExp: RegExp;
|
|
3958
|
+
export declare const simulateInvoiceParams: zod.ZodObject<{
|
|
4041
3959
|
customerId: zod.ZodString;
|
|
4042
|
-
filters: zod.ZodOptional<zod.ZodObject<{
|
|
4043
|
-
lineIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
4044
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4045
|
-
lineIds?: string[] | undefined;
|
|
4046
|
-
}, {
|
|
4047
|
-
lineIds?: string[] | undefined;
|
|
4048
|
-
}>>;
|
|
4049
3960
|
}, "strip", zod.ZodTypeAny, {
|
|
4050
3961
|
customerId: string;
|
|
4051
|
-
asOf?: Date | undefined;
|
|
4052
|
-
filters?: {
|
|
4053
|
-
lineIds?: string[] | undefined;
|
|
4054
|
-
} | undefined;
|
|
4055
3962
|
}, {
|
|
4056
3963
|
customerId: string;
|
|
4057
|
-
asOf?: Date | undefined;
|
|
4058
|
-
filters?: {
|
|
4059
|
-
lineIds?: string[] | undefined;
|
|
4060
|
-
} | undefined;
|
|
4061
3964
|
}>;
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
export declare const
|
|
4074
|
-
export declare const
|
|
4075
|
-
export declare const
|
|
4076
|
-
export declare const
|
|
4077
|
-
export declare const
|
|
4078
|
-
export declare const
|
|
4079
|
-
export declare const
|
|
4080
|
-
export declare const
|
|
4081
|
-
export declare const
|
|
4082
|
-
export declare const
|
|
4083
|
-
export declare const
|
|
4084
|
-
export declare const
|
|
4085
|
-
export declare const
|
|
4086
|
-
export declare const
|
|
4087
|
-
export declare const
|
|
4088
|
-
export declare const
|
|
4089
|
-
export declare const
|
|
4090
|
-
export declare const
|
|
4091
|
-
export declare const
|
|
4092
|
-
export declare const
|
|
4093
|
-
export declare const
|
|
4094
|
-
export declare const
|
|
4095
|
-
export declare const
|
|
4096
|
-
export declare const
|
|
4097
|
-
export declare const
|
|
4098
|
-
export declare const
|
|
4099
|
-
export declare const
|
|
4100
|
-
export declare const
|
|
4101
|
-
export declare const
|
|
4102
|
-
export declare const
|
|
4103
|
-
export declare const
|
|
4104
|
-
export declare const
|
|
4105
|
-
export declare const
|
|
4106
|
-
export declare const
|
|
4107
|
-
export declare const
|
|
4108
|
-
export declare const
|
|
4109
|
-
export declare const
|
|
4110
|
-
export declare const
|
|
4111
|
-
export declare const
|
|
4112
|
-
export declare const
|
|
4113
|
-
export declare const
|
|
4114
|
-
export declare const
|
|
4115
|
-
export declare const
|
|
4116
|
-
export declare const
|
|
4117
|
-
export declare const
|
|
4118
|
-
export declare const
|
|
4119
|
-
export declare const
|
|
4120
|
-
export declare const
|
|
4121
|
-
export declare const
|
|
4122
|
-
export declare const
|
|
4123
|
-
export declare const
|
|
4124
|
-
export declare const
|
|
4125
|
-
export declare const
|
|
4126
|
-
export declare const
|
|
4127
|
-
export declare const
|
|
4128
|
-
export declare const
|
|
4129
|
-
export declare const
|
|
4130
|
-
export declare const
|
|
4131
|
-
export declare const
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
currency: zod.ZodString;
|
|
4144
|
-
customerId: zod.ZodString;
|
|
4145
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
4146
|
-
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
4147
|
-
invoiceAt: zod.ZodDate;
|
|
4148
|
-
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
4149
|
-
name: zod.ZodString;
|
|
4150
|
-
period: zod.ZodObject<{
|
|
4151
|
-
from: zod.ZodDate;
|
|
4152
|
-
to: zod.ZodDate;
|
|
4153
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4154
|
-
from: Date;
|
|
4155
|
-
to: Date;
|
|
4156
|
-
}, {
|
|
4157
|
-
from: Date;
|
|
4158
|
-
to: Date;
|
|
4159
|
-
}>;
|
|
4160
|
-
price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
4161
|
-
amount: zod.ZodString;
|
|
4162
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4163
|
-
type: zod.ZodEnum<["flat"]>;
|
|
4164
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4165
|
-
type: "flat";
|
|
4166
|
-
amount: string;
|
|
4167
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4168
|
-
}, {
|
|
4169
|
-
type: "flat";
|
|
4170
|
-
amount: string;
|
|
4171
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4172
|
-
}>, zod.ZodObject<{
|
|
4173
|
-
amount: zod.ZodString;
|
|
4174
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4175
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4176
|
-
type: zod.ZodEnum<["unit"]>;
|
|
4177
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4178
|
-
type: "unit";
|
|
4179
|
-
amount: string;
|
|
4180
|
-
maximumAmount?: string | undefined;
|
|
4181
|
-
minimumAmount?: string | undefined;
|
|
4182
|
-
}, {
|
|
4183
|
-
type: "unit";
|
|
4184
|
-
amount: string;
|
|
4185
|
-
maximumAmount?: string | undefined;
|
|
4186
|
-
minimumAmount?: string | undefined;
|
|
4187
|
-
}>, zod.ZodObject<{
|
|
4188
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4189
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4190
|
-
mode: zod.ZodEnum<["volume", "graduated"]>;
|
|
4191
|
-
tiers: zod.ZodArray<zod.ZodObject<{
|
|
4192
|
-
flatPrice: zod.ZodNullable<zod.ZodObject<{
|
|
4193
|
-
amount: zod.ZodString;
|
|
4194
|
-
type: zod.ZodEnum<["flat"]>;
|
|
4195
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4196
|
-
type: "flat";
|
|
4197
|
-
amount: string;
|
|
4198
|
-
}, {
|
|
4199
|
-
type: "flat";
|
|
4200
|
-
amount: string;
|
|
4201
|
-
}>>;
|
|
4202
|
-
unitPrice: zod.ZodNullable<zod.ZodObject<{
|
|
4203
|
-
amount: zod.ZodString;
|
|
4204
|
-
type: zod.ZodEnum<["unit"]>;
|
|
4205
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4206
|
-
type: "unit";
|
|
4207
|
-
amount: string;
|
|
4208
|
-
}, {
|
|
4209
|
-
type: "unit";
|
|
4210
|
-
amount: string;
|
|
4211
|
-
}>>;
|
|
4212
|
-
upToAmount: zod.ZodOptional<zod.ZodString>;
|
|
4213
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4214
|
-
flatPrice: {
|
|
4215
|
-
type: "flat";
|
|
4216
|
-
amount: string;
|
|
4217
|
-
} | null;
|
|
4218
|
-
unitPrice: {
|
|
4219
|
-
type: "unit";
|
|
4220
|
-
amount: string;
|
|
4221
|
-
} | null;
|
|
4222
|
-
upToAmount?: string | undefined;
|
|
4223
|
-
}, {
|
|
4224
|
-
flatPrice: {
|
|
4225
|
-
type: "flat";
|
|
4226
|
-
amount: string;
|
|
4227
|
-
} | null;
|
|
4228
|
-
unitPrice: {
|
|
4229
|
-
type: "unit";
|
|
4230
|
-
amount: string;
|
|
4231
|
-
} | null;
|
|
4232
|
-
upToAmount?: string | undefined;
|
|
4233
|
-
}>, "many">;
|
|
4234
|
-
type: zod.ZodEnum<["tiered"]>;
|
|
4235
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4236
|
-
type: "tiered";
|
|
4237
|
-
mode: "volume" | "graduated";
|
|
4238
|
-
tiers: {
|
|
4239
|
-
flatPrice: {
|
|
4240
|
-
type: "flat";
|
|
4241
|
-
amount: string;
|
|
4242
|
-
} | null;
|
|
4243
|
-
unitPrice: {
|
|
4244
|
-
type: "unit";
|
|
4245
|
-
amount: string;
|
|
4246
|
-
} | null;
|
|
4247
|
-
upToAmount?: string | undefined;
|
|
4248
|
-
}[];
|
|
4249
|
-
maximumAmount?: string | undefined;
|
|
4250
|
-
minimumAmount?: string | undefined;
|
|
4251
|
-
}, {
|
|
4252
|
-
type: "tiered";
|
|
4253
|
-
mode: "volume" | "graduated";
|
|
4254
|
-
tiers: {
|
|
4255
|
-
flatPrice: {
|
|
4256
|
-
type: "flat";
|
|
4257
|
-
amount: string;
|
|
4258
|
-
} | null;
|
|
4259
|
-
unitPrice: {
|
|
4260
|
-
type: "unit";
|
|
4261
|
-
amount: string;
|
|
4262
|
-
} | null;
|
|
4263
|
-
upToAmount?: string | undefined;
|
|
4264
|
-
}[];
|
|
4265
|
-
maximumAmount?: string | undefined;
|
|
4266
|
-
minimumAmount?: string | undefined;
|
|
4267
|
-
}>, zod.ZodObject<{
|
|
4268
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4269
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4270
|
-
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
4271
|
-
type: zod.ZodEnum<["dynamic"]>;
|
|
4272
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4273
|
-
type: "dynamic";
|
|
4274
|
-
multiplier: string;
|
|
4275
|
-
maximumAmount?: string | undefined;
|
|
4276
|
-
minimumAmount?: string | undefined;
|
|
4277
|
-
}, {
|
|
4278
|
-
type: "dynamic";
|
|
4279
|
-
maximumAmount?: string | undefined;
|
|
4280
|
-
minimumAmount?: string | undefined;
|
|
4281
|
-
multiplier?: string | undefined;
|
|
4282
|
-
}>, zod.ZodObject<{
|
|
4283
|
-
amount: zod.ZodString;
|
|
4284
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4285
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4286
|
-
quantityPerPackage: zod.ZodString;
|
|
4287
|
-
type: zod.ZodEnum<["package"]>;
|
|
4288
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4289
|
-
type: "package";
|
|
4290
|
-
amount: string;
|
|
4291
|
-
quantityPerPackage: string;
|
|
4292
|
-
maximumAmount?: string | undefined;
|
|
4293
|
-
minimumAmount?: string | undefined;
|
|
4294
|
-
}, {
|
|
4295
|
-
type: "package";
|
|
4296
|
-
amount: string;
|
|
4297
|
-
quantityPerPackage: string;
|
|
4298
|
-
maximumAmount?: string | undefined;
|
|
4299
|
-
minimumAmount?: string | undefined;
|
|
4300
|
-
}>]>>;
|
|
4301
|
-
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
4302
|
-
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
4303
|
-
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
4304
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4305
|
-
percentage: zod.ZodNumber;
|
|
4306
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4307
|
-
percentage: number;
|
|
4308
|
-
correlationId?: string | undefined;
|
|
4309
|
-
}, {
|
|
4310
|
-
percentage: number;
|
|
4311
|
-
correlationId?: string | undefined;
|
|
4312
|
-
}>>;
|
|
4313
|
-
usage: zod.ZodOptional<zod.ZodObject<{
|
|
4314
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4315
|
-
quantity: zod.ZodString;
|
|
4316
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4317
|
-
quantity: string;
|
|
4318
|
-
correlationId?: string | undefined;
|
|
4319
|
-
}, {
|
|
4320
|
-
quantity: string;
|
|
4321
|
-
correlationId?: string | undefined;
|
|
4322
|
-
}>>;
|
|
3965
|
+
export declare const simulateInvoiceBodyNumberMaxOne = 256;
|
|
3966
|
+
export declare const simulateInvoiceBodyCurrencyMinOne = 3;
|
|
3967
|
+
export declare const simulateInvoiceBodyCurrencyMaxOne = 3;
|
|
3968
|
+
export declare const simulateInvoiceBodyCurrencyRegExpOne: RegExp;
|
|
3969
|
+
export declare const simulateInvoiceBodyLinesItemNameMax = 256;
|
|
3970
|
+
export declare const simulateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
3971
|
+
export declare const simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp: RegExp;
|
|
3972
|
+
export declare const simulateInvoiceBodyLinesItemPriceAmountRegExpOne: RegExp;
|
|
3973
|
+
export declare const simulateInvoiceBodyLinesItemPricePaymentTermDefault = "in_advance";
|
|
3974
|
+
export declare const simulateInvoiceBodyLinesItemPriceAmountRegExpThree: RegExp;
|
|
3975
|
+
export declare const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne: RegExp;
|
|
3976
|
+
export declare const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne: RegExp;
|
|
3977
|
+
export declare const simulateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne: RegExp;
|
|
3978
|
+
export declare const simulateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne: RegExp;
|
|
3979
|
+
export declare const simulateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne: RegExp;
|
|
3980
|
+
export declare const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree: RegExp;
|
|
3981
|
+
export declare const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree: RegExp;
|
|
3982
|
+
export declare const simulateInvoiceBodyLinesItemPriceMultiplierRegExpOne: RegExp;
|
|
3983
|
+
export declare const simulateInvoiceBodyLinesItemPriceMultiplierDefault = "1";
|
|
3984
|
+
export declare const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive: RegExp;
|
|
3985
|
+
export declare const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive: RegExp;
|
|
3986
|
+
export declare const simulateInvoiceBodyLinesItemPriceAmountRegExpFive: RegExp;
|
|
3987
|
+
export declare const simulateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne: RegExp;
|
|
3988
|
+
export declare const simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven: RegExp;
|
|
3989
|
+
export declare const simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven: RegExp;
|
|
3990
|
+
export declare const simulateInvoiceBodyLinesItemFeatureKeyMax = 64;
|
|
3991
|
+
export declare const simulateInvoiceBodyLinesItemFeatureKeyRegExp: RegExp;
|
|
3992
|
+
export declare const simulateInvoiceBodyLinesItemRateCardFeatureKeyMax = 64;
|
|
3993
|
+
export declare const simulateInvoiceBodyLinesItemRateCardFeatureKeyRegExp: RegExp;
|
|
3994
|
+
export declare const simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp: RegExp;
|
|
3995
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne: RegExp;
|
|
3996
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPricePaymentTermDefault = "in_advance";
|
|
3997
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree: RegExp;
|
|
3998
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne: RegExp;
|
|
3999
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne: RegExp;
|
|
4000
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne: RegExp;
|
|
4001
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne: RegExp;
|
|
4002
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne: RegExp;
|
|
4003
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree: RegExp;
|
|
4004
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree: RegExp;
|
|
4005
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne: RegExp;
|
|
4006
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMultiplierDefault = "1";
|
|
4007
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive: RegExp;
|
|
4008
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive: RegExp;
|
|
4009
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive: RegExp;
|
|
4010
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne: RegExp;
|
|
4011
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven: RegExp;
|
|
4012
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven: RegExp;
|
|
4013
|
+
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp: RegExp;
|
|
4014
|
+
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne: RegExp;
|
|
4015
|
+
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp: RegExp;
|
|
4016
|
+
export declare const simulateInvoiceBodyLinesItemQuantityRegExpOne: RegExp;
|
|
4017
|
+
export declare const simulateInvoiceBodyLinesItemPreLinePeriodQuantityRegExpOne: RegExp;
|
|
4018
|
+
export declare const simulateInvoiceBodyLinesItemIdRegExp: RegExp;
|
|
4019
|
+
export declare const simulateInvoiceBodyLinesItemNameMaxOne = 256;
|
|
4020
|
+
export declare const simulateInvoiceBodyLinesItemDescriptionMaxOne = 1024;
|
|
4021
|
+
export declare const simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExpOne: RegExp;
|
|
4022
|
+
export declare const simulateInvoiceBodyLinesItemPerUnitAmountRegExpOne: RegExp;
|
|
4023
|
+
export declare const simulateInvoiceBodyLinesItemPaymentTermDefault = "in_advance";
|
|
4024
|
+
export declare const simulateInvoiceBodyLinesItemQuantityRegExpThree: RegExp;
|
|
4025
|
+
export declare const simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExpOne: RegExp;
|
|
4026
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpSeven: RegExp;
|
|
4027
|
+
export declare const simulateInvoiceBodyLinesItemRateCardPricePaymentTermDefaultTwo = "in_advance";
|
|
4028
|
+
export declare const simulateInvoiceBodyLinesItemRateCardQuantityRegExpOne: RegExp;
|
|
4029
|
+
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExpOne: RegExp;
|
|
4030
|
+
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpThree: RegExp;
|
|
4031
|
+
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExpOne: RegExp;
|
|
4032
|
+
export declare const simulateInvoiceBodyLinesItemCategoryDefault = "regular";
|
|
4033
|
+
export declare const simulateInvoiceBodyLinesItemIdRegExpOne: RegExp;
|
|
4034
|
+
export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
4035
|
+
currency: zod.ZodString;
|
|
4036
|
+
lines: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
4037
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
4038
|
+
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
4039
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
4040
|
+
invoiceAt: zod.ZodDate;
|
|
4041
|
+
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
4042
|
+
name: zod.ZodString;
|
|
4043
|
+
period: zod.ZodObject<{
|
|
4044
|
+
from: zod.ZodDate;
|
|
4045
|
+
to: zod.ZodDate;
|
|
4323
4046
|
}, "strip", zod.ZodTypeAny, {
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
correlationId?: string | undefined;
|
|
4327
|
-
} | undefined;
|
|
4328
|
-
usage?: {
|
|
4329
|
-
quantity: string;
|
|
4330
|
-
correlationId?: string | undefined;
|
|
4331
|
-
} | undefined;
|
|
4047
|
+
from: Date;
|
|
4048
|
+
to: Date;
|
|
4332
4049
|
}, {
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
quantity: string;
|
|
4339
|
-
correlationId?: string | undefined;
|
|
4340
|
-
} | undefined;
|
|
4341
|
-
}>>;
|
|
4342
|
-
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
4343
|
-
price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
4050
|
+
from: Date;
|
|
4051
|
+
to: Date;
|
|
4052
|
+
}>;
|
|
4053
|
+
preLinePeriodQuantity: zod.ZodOptional<zod.ZodString>;
|
|
4054
|
+
price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
4344
4055
|
amount: zod.ZodString;
|
|
4345
4056
|
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4346
4057
|
type: zod.ZodEnum<["flat"]>;
|
|
@@ -4481,502 +4192,340 @@ export declare const createPendingInvoiceLineBodyItem: zod.ZodDiscriminatedUnion
|
|
|
4481
4192
|
maximumAmount?: string | undefined;
|
|
4482
4193
|
minimumAmount?: string | undefined;
|
|
4483
4194
|
}>]>>;
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4195
|
+
quantity: zod.ZodString;
|
|
4196
|
+
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
4197
|
+
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
4198
|
+
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
4199
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4200
|
+
percentage: zod.ZodNumber;
|
|
4201
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4202
|
+
percentage: number;
|
|
4203
|
+
correlationId?: string | undefined;
|
|
4204
|
+
}, {
|
|
4205
|
+
percentage: number;
|
|
4206
|
+
correlationId?: string | undefined;
|
|
4207
|
+
}>>;
|
|
4208
|
+
usage: zod.ZodOptional<zod.ZodObject<{
|
|
4209
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4210
|
+
quantity: zod.ZodString;
|
|
4211
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4212
|
+
quantity: string;
|
|
4213
|
+
correlationId?: string | undefined;
|
|
4214
|
+
}, {
|
|
4215
|
+
quantity: string;
|
|
4216
|
+
correlationId?: string | undefined;
|
|
4217
|
+
}>>;
|
|
4488
4218
|
}, "strip", zod.ZodTypeAny, {
|
|
4489
|
-
|
|
4219
|
+
percentage?: {
|
|
4220
|
+
percentage: number;
|
|
4221
|
+
correlationId?: string | undefined;
|
|
4222
|
+
} | undefined;
|
|
4223
|
+
usage?: {
|
|
4224
|
+
quantity: string;
|
|
4225
|
+
correlationId?: string | undefined;
|
|
4226
|
+
} | undefined;
|
|
4490
4227
|
}, {
|
|
4491
|
-
|
|
4228
|
+
percentage?: {
|
|
4229
|
+
percentage: number;
|
|
4230
|
+
correlationId?: string | undefined;
|
|
4231
|
+
} | undefined;
|
|
4232
|
+
usage?: {
|
|
4233
|
+
quantity: string;
|
|
4234
|
+
correlationId?: string | undefined;
|
|
4235
|
+
} | undefined;
|
|
4492
4236
|
}>>;
|
|
4493
|
-
|
|
4494
|
-
|
|
4237
|
+
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
4238
|
+
price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
4239
|
+
amount: zod.ZodString;
|
|
4240
|
+
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4241
|
+
type: zod.ZodEnum<["flat"]>;
|
|
4495
4242
|
}, "strip", zod.ZodTypeAny, {
|
|
4496
|
-
|
|
4243
|
+
type: "flat";
|
|
4244
|
+
amount: string;
|
|
4245
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
4497
4246
|
}, {
|
|
4498
|
-
code: string;
|
|
4499
|
-
}>>;
|
|
4500
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4501
|
-
stripe?: {
|
|
4502
|
-
code: string;
|
|
4503
|
-
} | undefined;
|
|
4504
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4505
|
-
customInvoicing?: {
|
|
4506
|
-
code: string;
|
|
4507
|
-
} | undefined;
|
|
4508
|
-
}, {
|
|
4509
|
-
stripe?: {
|
|
4510
|
-
code: string;
|
|
4511
|
-
} | undefined;
|
|
4512
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4513
|
-
customInvoicing?: {
|
|
4514
|
-
code: string;
|
|
4515
|
-
} | undefined;
|
|
4516
|
-
}>>;
|
|
4517
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4518
|
-
price: {
|
|
4519
|
-
type: "flat";
|
|
4520
|
-
amount: string;
|
|
4521
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4522
|
-
} | {
|
|
4523
|
-
type: "unit";
|
|
4524
|
-
amount: string;
|
|
4525
|
-
maximumAmount?: string | undefined;
|
|
4526
|
-
minimumAmount?: string | undefined;
|
|
4527
|
-
} | {
|
|
4528
|
-
type: "tiered";
|
|
4529
|
-
mode: "volume" | "graduated";
|
|
4530
|
-
tiers: {
|
|
4531
|
-
flatPrice: {
|
|
4532
|
-
type: "flat";
|
|
4533
|
-
amount: string;
|
|
4534
|
-
} | null;
|
|
4535
|
-
unitPrice: {
|
|
4536
|
-
type: "unit";
|
|
4537
|
-
amount: string;
|
|
4538
|
-
} | null;
|
|
4539
|
-
upToAmount?: string | undefined;
|
|
4540
|
-
}[];
|
|
4541
|
-
maximumAmount?: string | undefined;
|
|
4542
|
-
minimumAmount?: string | undefined;
|
|
4543
|
-
} | {
|
|
4544
|
-
type: "dynamic";
|
|
4545
|
-
multiplier: string;
|
|
4546
|
-
maximumAmount?: string | undefined;
|
|
4547
|
-
minimumAmount?: string | undefined;
|
|
4548
|
-
} | {
|
|
4549
|
-
type: "package";
|
|
4550
|
-
amount: string;
|
|
4551
|
-
quantityPerPackage: string;
|
|
4552
|
-
maximumAmount?: string | undefined;
|
|
4553
|
-
minimumAmount?: string | undefined;
|
|
4554
|
-
} | null;
|
|
4555
|
-
featureKey?: string | undefined;
|
|
4556
|
-
discounts?: {
|
|
4557
|
-
percentage?: {
|
|
4558
|
-
percentage: number;
|
|
4559
|
-
correlationId?: string | undefined;
|
|
4560
|
-
} | undefined;
|
|
4561
|
-
usage?: {
|
|
4562
|
-
quantity: string;
|
|
4563
|
-
correlationId?: string | undefined;
|
|
4564
|
-
} | undefined;
|
|
4565
|
-
} | undefined;
|
|
4566
|
-
taxConfig?: {
|
|
4567
|
-
stripe?: {
|
|
4568
|
-
code: string;
|
|
4569
|
-
} | undefined;
|
|
4570
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4571
|
-
customInvoicing?: {
|
|
4572
|
-
code: string;
|
|
4573
|
-
} | undefined;
|
|
4574
|
-
} | undefined;
|
|
4575
|
-
}, {
|
|
4576
|
-
price: {
|
|
4577
|
-
type: "flat";
|
|
4578
|
-
amount: string;
|
|
4579
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4580
|
-
} | {
|
|
4581
|
-
type: "unit";
|
|
4582
|
-
amount: string;
|
|
4583
|
-
maximumAmount?: string | undefined;
|
|
4584
|
-
minimumAmount?: string | undefined;
|
|
4585
|
-
} | {
|
|
4586
|
-
type: "tiered";
|
|
4587
|
-
mode: "volume" | "graduated";
|
|
4588
|
-
tiers: {
|
|
4589
|
-
flatPrice: {
|
|
4590
|
-
type: "flat";
|
|
4591
|
-
amount: string;
|
|
4592
|
-
} | null;
|
|
4593
|
-
unitPrice: {
|
|
4594
|
-
type: "unit";
|
|
4595
|
-
amount: string;
|
|
4596
|
-
} | null;
|
|
4597
|
-
upToAmount?: string | undefined;
|
|
4598
|
-
}[];
|
|
4599
|
-
maximumAmount?: string | undefined;
|
|
4600
|
-
minimumAmount?: string | undefined;
|
|
4601
|
-
} | {
|
|
4602
|
-
type: "dynamic";
|
|
4603
|
-
maximumAmount?: string | undefined;
|
|
4604
|
-
minimumAmount?: string | undefined;
|
|
4605
|
-
multiplier?: string | undefined;
|
|
4606
|
-
} | {
|
|
4607
|
-
type: "package";
|
|
4608
|
-
amount: string;
|
|
4609
|
-
quantityPerPackage: string;
|
|
4610
|
-
maximumAmount?: string | undefined;
|
|
4611
|
-
minimumAmount?: string | undefined;
|
|
4612
|
-
} | null;
|
|
4613
|
-
featureKey?: string | undefined;
|
|
4614
|
-
discounts?: {
|
|
4615
|
-
percentage?: {
|
|
4616
|
-
percentage: number;
|
|
4617
|
-
correlationId?: string | undefined;
|
|
4618
|
-
} | undefined;
|
|
4619
|
-
usage?: {
|
|
4620
|
-
quantity: string;
|
|
4621
|
-
correlationId?: string | undefined;
|
|
4622
|
-
} | undefined;
|
|
4623
|
-
} | undefined;
|
|
4624
|
-
taxConfig?: {
|
|
4625
|
-
stripe?: {
|
|
4626
|
-
code: string;
|
|
4627
|
-
} | undefined;
|
|
4628
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4629
|
-
customInvoicing?: {
|
|
4630
|
-
code: string;
|
|
4631
|
-
} | undefined;
|
|
4632
|
-
} | undefined;
|
|
4633
|
-
}>>;
|
|
4634
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4635
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
4636
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
4637
|
-
code: zod.ZodString;
|
|
4638
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4639
|
-
code: string;
|
|
4640
|
-
}, {
|
|
4641
|
-
code: string;
|
|
4642
|
-
}>>;
|
|
4643
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
4644
|
-
code: zod.ZodString;
|
|
4645
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4646
|
-
code: string;
|
|
4647
|
-
}, {
|
|
4648
|
-
code: string;
|
|
4649
|
-
}>>;
|
|
4650
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4651
|
-
stripe?: {
|
|
4652
|
-
code: string;
|
|
4653
|
-
} | undefined;
|
|
4654
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4655
|
-
customInvoicing?: {
|
|
4656
|
-
code: string;
|
|
4657
|
-
} | undefined;
|
|
4658
|
-
}, {
|
|
4659
|
-
stripe?: {
|
|
4660
|
-
code: string;
|
|
4661
|
-
} | undefined;
|
|
4662
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4663
|
-
customInvoicing?: {
|
|
4664
|
-
code: string;
|
|
4665
|
-
} | undefined;
|
|
4666
|
-
}>>;
|
|
4667
|
-
type: zod.ZodEnum<["usage_based"]>;
|
|
4668
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4669
|
-
customerId: string;
|
|
4670
|
-
name: string;
|
|
4671
|
-
type: "usage_based";
|
|
4672
|
-
currency: string;
|
|
4673
|
-
invoiceAt: Date;
|
|
4674
|
-
period: {
|
|
4675
|
-
from: Date;
|
|
4676
|
-
to: Date;
|
|
4677
|
-
};
|
|
4678
|
-
description?: string | undefined;
|
|
4679
|
-
featureKey?: string | undefined;
|
|
4680
|
-
metadata?: Record<string, string> | null | undefined;
|
|
4681
|
-
price?: {
|
|
4682
|
-
type: "flat";
|
|
4683
|
-
amount: string;
|
|
4684
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4685
|
-
} | {
|
|
4686
|
-
type: "unit";
|
|
4687
|
-
amount: string;
|
|
4688
|
-
maximumAmount?: string | undefined;
|
|
4689
|
-
minimumAmount?: string | undefined;
|
|
4690
|
-
} | {
|
|
4691
|
-
type: "tiered";
|
|
4692
|
-
mode: "volume" | "graduated";
|
|
4693
|
-
tiers: {
|
|
4694
|
-
flatPrice: {
|
|
4695
4247
|
type: "flat";
|
|
4696
4248
|
amount: string;
|
|
4697
|
-
|
|
4698
|
-
|
|
4249
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4250
|
+
}>, zod.ZodObject<{
|
|
4251
|
+
amount: zod.ZodString;
|
|
4252
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4253
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4254
|
+
type: zod.ZodEnum<["unit"]>;
|
|
4255
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4699
4256
|
type: "unit";
|
|
4700
4257
|
amount: string;
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
maximumAmount?: string | undefined;
|
|
4705
|
-
minimumAmount?: string | undefined;
|
|
4706
|
-
} | {
|
|
4707
|
-
type: "dynamic";
|
|
4708
|
-
multiplier: string;
|
|
4709
|
-
maximumAmount?: string | undefined;
|
|
4710
|
-
minimumAmount?: string | undefined;
|
|
4711
|
-
} | {
|
|
4712
|
-
type: "package";
|
|
4713
|
-
amount: string;
|
|
4714
|
-
quantityPerPackage: string;
|
|
4715
|
-
maximumAmount?: string | undefined;
|
|
4716
|
-
minimumAmount?: string | undefined;
|
|
4717
|
-
} | undefined;
|
|
4718
|
-
taxConfig?: {
|
|
4719
|
-
stripe?: {
|
|
4720
|
-
code: string;
|
|
4721
|
-
} | undefined;
|
|
4722
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4723
|
-
customInvoicing?: {
|
|
4724
|
-
code: string;
|
|
4725
|
-
} | undefined;
|
|
4726
|
-
} | undefined;
|
|
4727
|
-
rateCard?: {
|
|
4728
|
-
price: {
|
|
4729
|
-
type: "flat";
|
|
4730
|
-
amount: string;
|
|
4731
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4732
|
-
} | {
|
|
4733
|
-
type: "unit";
|
|
4734
|
-
amount: string;
|
|
4735
|
-
maximumAmount?: string | undefined;
|
|
4736
|
-
minimumAmount?: string | undefined;
|
|
4737
|
-
} | {
|
|
4738
|
-
type: "tiered";
|
|
4739
|
-
mode: "volume" | "graduated";
|
|
4740
|
-
tiers: {
|
|
4741
|
-
flatPrice: {
|
|
4742
|
-
type: "flat";
|
|
4743
|
-
amount: string;
|
|
4744
|
-
} | null;
|
|
4745
|
-
unitPrice: {
|
|
4746
|
-
type: "unit";
|
|
4747
|
-
amount: string;
|
|
4748
|
-
} | null;
|
|
4749
|
-
upToAmount?: string | undefined;
|
|
4750
|
-
}[];
|
|
4751
|
-
maximumAmount?: string | undefined;
|
|
4752
|
-
minimumAmount?: string | undefined;
|
|
4753
|
-
} | {
|
|
4754
|
-
type: "dynamic";
|
|
4755
|
-
multiplier: string;
|
|
4756
|
-
maximumAmount?: string | undefined;
|
|
4757
|
-
minimumAmount?: string | undefined;
|
|
4758
|
-
} | {
|
|
4759
|
-
type: "package";
|
|
4760
|
-
amount: string;
|
|
4761
|
-
quantityPerPackage: string;
|
|
4762
|
-
maximumAmount?: string | undefined;
|
|
4763
|
-
minimumAmount?: string | undefined;
|
|
4764
|
-
} | null;
|
|
4765
|
-
featureKey?: string | undefined;
|
|
4766
|
-
discounts?: {
|
|
4767
|
-
percentage?: {
|
|
4768
|
-
percentage: number;
|
|
4769
|
-
correlationId?: string | undefined;
|
|
4770
|
-
} | undefined;
|
|
4771
|
-
usage?: {
|
|
4772
|
-
quantity: string;
|
|
4773
|
-
correlationId?: string | undefined;
|
|
4774
|
-
} | undefined;
|
|
4775
|
-
} | undefined;
|
|
4776
|
-
taxConfig?: {
|
|
4777
|
-
stripe?: {
|
|
4778
|
-
code: string;
|
|
4779
|
-
} | undefined;
|
|
4780
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4781
|
-
customInvoicing?: {
|
|
4782
|
-
code: string;
|
|
4783
|
-
} | undefined;
|
|
4784
|
-
} | undefined;
|
|
4785
|
-
} | undefined;
|
|
4786
|
-
}, {
|
|
4787
|
-
customerId: string;
|
|
4788
|
-
name: string;
|
|
4789
|
-
type: "usage_based";
|
|
4790
|
-
currency: string;
|
|
4791
|
-
invoiceAt: Date;
|
|
4792
|
-
period: {
|
|
4793
|
-
from: Date;
|
|
4794
|
-
to: Date;
|
|
4795
|
-
};
|
|
4796
|
-
description?: string | undefined;
|
|
4797
|
-
featureKey?: string | undefined;
|
|
4798
|
-
metadata?: Record<string, string> | null | undefined;
|
|
4799
|
-
price?: {
|
|
4800
|
-
type: "flat";
|
|
4801
|
-
amount: string;
|
|
4802
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4803
|
-
} | {
|
|
4804
|
-
type: "unit";
|
|
4805
|
-
amount: string;
|
|
4806
|
-
maximumAmount?: string | undefined;
|
|
4807
|
-
minimumAmount?: string | undefined;
|
|
4808
|
-
} | {
|
|
4809
|
-
type: "tiered";
|
|
4810
|
-
mode: "volume" | "graduated";
|
|
4811
|
-
tiers: {
|
|
4812
|
-
flatPrice: {
|
|
4813
|
-
type: "flat";
|
|
4814
|
-
amount: string;
|
|
4815
|
-
} | null;
|
|
4816
|
-
unitPrice: {
|
|
4258
|
+
maximumAmount?: string | undefined;
|
|
4259
|
+
minimumAmount?: string | undefined;
|
|
4260
|
+
}, {
|
|
4817
4261
|
type: "unit";
|
|
4818
4262
|
amount: string;
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
maximumAmount?: string | undefined;
|
|
4870
|
-
minimumAmount?: string | undefined;
|
|
4871
|
-
} | {
|
|
4872
|
-
type: "dynamic";
|
|
4873
|
-
maximumAmount?: string | undefined;
|
|
4874
|
-
minimumAmount?: string | undefined;
|
|
4875
|
-
multiplier?: string | undefined;
|
|
4876
|
-
} | {
|
|
4877
|
-
type: "package";
|
|
4878
|
-
amount: string;
|
|
4879
|
-
quantityPerPackage: string;
|
|
4880
|
-
maximumAmount?: string | undefined;
|
|
4881
|
-
minimumAmount?: string | undefined;
|
|
4882
|
-
} | null;
|
|
4883
|
-
featureKey?: string | undefined;
|
|
4884
|
-
discounts?: {
|
|
4885
|
-
percentage?: {
|
|
4886
|
-
percentage: number;
|
|
4887
|
-
correlationId?: string | undefined;
|
|
4888
|
-
} | undefined;
|
|
4889
|
-
usage?: {
|
|
4890
|
-
quantity: string;
|
|
4891
|
-
correlationId?: string | undefined;
|
|
4892
|
-
} | undefined;
|
|
4893
|
-
} | undefined;
|
|
4894
|
-
taxConfig?: {
|
|
4895
|
-
stripe?: {
|
|
4896
|
-
code: string;
|
|
4897
|
-
} | undefined;
|
|
4898
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4899
|
-
customInvoicing?: {
|
|
4900
|
-
code: string;
|
|
4901
|
-
} | undefined;
|
|
4902
|
-
} | undefined;
|
|
4903
|
-
} | undefined;
|
|
4904
|
-
}>, zod.ZodObject<{
|
|
4905
|
-
category: zod.ZodDefault<zod.ZodEnum<["regular", "commitment"]>>;
|
|
4906
|
-
currency: zod.ZodString;
|
|
4907
|
-
customerId: zod.ZodString;
|
|
4908
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
4909
|
-
invoiceAt: zod.ZodDate;
|
|
4910
|
-
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
4911
|
-
name: zod.ZodString;
|
|
4912
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4913
|
-
period: zod.ZodObject<{
|
|
4914
|
-
from: zod.ZodDate;
|
|
4915
|
-
to: zod.ZodDate;
|
|
4916
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4917
|
-
from: Date;
|
|
4918
|
-
to: Date;
|
|
4919
|
-
}, {
|
|
4920
|
-
from: Date;
|
|
4921
|
-
to: Date;
|
|
4922
|
-
}>;
|
|
4923
|
-
perUnitAmount: zod.ZodOptional<zod.ZodString>;
|
|
4924
|
-
quantity: zod.ZodOptional<zod.ZodString>;
|
|
4925
|
-
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
4926
|
-
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
4927
|
-
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
4928
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4929
|
-
percentage: zod.ZodNumber;
|
|
4263
|
+
maximumAmount?: string | undefined;
|
|
4264
|
+
minimumAmount?: string | undefined;
|
|
4265
|
+
}>, zod.ZodObject<{
|
|
4266
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4267
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4268
|
+
mode: zod.ZodEnum<["volume", "graduated"]>;
|
|
4269
|
+
tiers: zod.ZodArray<zod.ZodObject<{
|
|
4270
|
+
flatPrice: zod.ZodNullable<zod.ZodObject<{
|
|
4271
|
+
amount: zod.ZodString;
|
|
4272
|
+
type: zod.ZodEnum<["flat"]>;
|
|
4273
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4274
|
+
type: "flat";
|
|
4275
|
+
amount: string;
|
|
4276
|
+
}, {
|
|
4277
|
+
type: "flat";
|
|
4278
|
+
amount: string;
|
|
4279
|
+
}>>;
|
|
4280
|
+
unitPrice: zod.ZodNullable<zod.ZodObject<{
|
|
4281
|
+
amount: zod.ZodString;
|
|
4282
|
+
type: zod.ZodEnum<["unit"]>;
|
|
4283
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4284
|
+
type: "unit";
|
|
4285
|
+
amount: string;
|
|
4286
|
+
}, {
|
|
4287
|
+
type: "unit";
|
|
4288
|
+
amount: string;
|
|
4289
|
+
}>>;
|
|
4290
|
+
upToAmount: zod.ZodOptional<zod.ZodString>;
|
|
4291
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4292
|
+
flatPrice: {
|
|
4293
|
+
type: "flat";
|
|
4294
|
+
amount: string;
|
|
4295
|
+
} | null;
|
|
4296
|
+
unitPrice: {
|
|
4297
|
+
type: "unit";
|
|
4298
|
+
amount: string;
|
|
4299
|
+
} | null;
|
|
4300
|
+
upToAmount?: string | undefined;
|
|
4301
|
+
}, {
|
|
4302
|
+
flatPrice: {
|
|
4303
|
+
type: "flat";
|
|
4304
|
+
amount: string;
|
|
4305
|
+
} | null;
|
|
4306
|
+
unitPrice: {
|
|
4307
|
+
type: "unit";
|
|
4308
|
+
amount: string;
|
|
4309
|
+
} | null;
|
|
4310
|
+
upToAmount?: string | undefined;
|
|
4311
|
+
}>, "many">;
|
|
4312
|
+
type: zod.ZodEnum<["tiered"]>;
|
|
4930
4313
|
}, "strip", zod.ZodTypeAny, {
|
|
4931
|
-
|
|
4932
|
-
|
|
4314
|
+
type: "tiered";
|
|
4315
|
+
mode: "volume" | "graduated";
|
|
4316
|
+
tiers: {
|
|
4317
|
+
flatPrice: {
|
|
4318
|
+
type: "flat";
|
|
4319
|
+
amount: string;
|
|
4320
|
+
} | null;
|
|
4321
|
+
unitPrice: {
|
|
4322
|
+
type: "unit";
|
|
4323
|
+
amount: string;
|
|
4324
|
+
} | null;
|
|
4325
|
+
upToAmount?: string | undefined;
|
|
4326
|
+
}[];
|
|
4327
|
+
maximumAmount?: string | undefined;
|
|
4328
|
+
minimumAmount?: string | undefined;
|
|
4933
4329
|
}, {
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4330
|
+
type: "tiered";
|
|
4331
|
+
mode: "volume" | "graduated";
|
|
4332
|
+
tiers: {
|
|
4333
|
+
flatPrice: {
|
|
4334
|
+
type: "flat";
|
|
4335
|
+
amount: string;
|
|
4336
|
+
} | null;
|
|
4337
|
+
unitPrice: {
|
|
4338
|
+
type: "unit";
|
|
4339
|
+
amount: string;
|
|
4340
|
+
} | null;
|
|
4341
|
+
upToAmount?: string | undefined;
|
|
4342
|
+
}[];
|
|
4343
|
+
maximumAmount?: string | undefined;
|
|
4344
|
+
minimumAmount?: string | undefined;
|
|
4345
|
+
}>, zod.ZodObject<{
|
|
4346
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4347
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4348
|
+
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
4349
|
+
type: zod.ZodEnum<["dynamic"]>;
|
|
4940
4350
|
}, "strip", zod.ZodTypeAny, {
|
|
4941
|
-
|
|
4942
|
-
|
|
4351
|
+
type: "dynamic";
|
|
4352
|
+
multiplier: string;
|
|
4353
|
+
maximumAmount?: string | undefined;
|
|
4354
|
+
minimumAmount?: string | undefined;
|
|
4943
4355
|
}, {
|
|
4944
|
-
|
|
4945
|
-
|
|
4356
|
+
type: "dynamic";
|
|
4357
|
+
maximumAmount?: string | undefined;
|
|
4358
|
+
minimumAmount?: string | undefined;
|
|
4359
|
+
multiplier?: string | undefined;
|
|
4360
|
+
}>, zod.ZodObject<{
|
|
4361
|
+
amount: zod.ZodString;
|
|
4362
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4363
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
4364
|
+
quantityPerPackage: zod.ZodString;
|
|
4365
|
+
type: zod.ZodEnum<["package"]>;
|
|
4366
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4367
|
+
type: "package";
|
|
4368
|
+
amount: string;
|
|
4369
|
+
quantityPerPackage: string;
|
|
4370
|
+
maximumAmount?: string | undefined;
|
|
4371
|
+
minimumAmount?: string | undefined;
|
|
4372
|
+
}, {
|
|
4373
|
+
type: "package";
|
|
4374
|
+
amount: string;
|
|
4375
|
+
quantityPerPackage: string;
|
|
4376
|
+
maximumAmount?: string | undefined;
|
|
4377
|
+
minimumAmount?: string | undefined;
|
|
4378
|
+
}>]>>;
|
|
4379
|
+
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4380
|
+
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
4381
|
+
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
4382
|
+
code: zod.ZodString;
|
|
4383
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4384
|
+
code: string;
|
|
4385
|
+
}, {
|
|
4386
|
+
code: string;
|
|
4387
|
+
}>>;
|
|
4388
|
+
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
4389
|
+
code: zod.ZodString;
|
|
4390
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4391
|
+
code: string;
|
|
4392
|
+
}, {
|
|
4393
|
+
code: string;
|
|
4394
|
+
}>>;
|
|
4395
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4396
|
+
stripe?: {
|
|
4397
|
+
code: string;
|
|
4398
|
+
} | undefined;
|
|
4399
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4400
|
+
customInvoicing?: {
|
|
4401
|
+
code: string;
|
|
4402
|
+
} | undefined;
|
|
4403
|
+
}, {
|
|
4404
|
+
stripe?: {
|
|
4405
|
+
code: string;
|
|
4406
|
+
} | undefined;
|
|
4407
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4408
|
+
customInvoicing?: {
|
|
4409
|
+
code: string;
|
|
4410
|
+
} | undefined;
|
|
4946
4411
|
}>>;
|
|
4947
4412
|
}, "strip", zod.ZodTypeAny, {
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4413
|
+
price: {
|
|
4414
|
+
type: "flat";
|
|
4415
|
+
amount: string;
|
|
4416
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
4417
|
+
} | {
|
|
4418
|
+
type: "unit";
|
|
4419
|
+
amount: string;
|
|
4420
|
+
maximumAmount?: string | undefined;
|
|
4421
|
+
minimumAmount?: string | undefined;
|
|
4422
|
+
} | {
|
|
4423
|
+
type: "tiered";
|
|
4424
|
+
mode: "volume" | "graduated";
|
|
4425
|
+
tiers: {
|
|
4426
|
+
flatPrice: {
|
|
4427
|
+
type: "flat";
|
|
4428
|
+
amount: string;
|
|
4429
|
+
} | null;
|
|
4430
|
+
unitPrice: {
|
|
4431
|
+
type: "unit";
|
|
4432
|
+
amount: string;
|
|
4433
|
+
} | null;
|
|
4434
|
+
upToAmount?: string | undefined;
|
|
4435
|
+
}[];
|
|
4436
|
+
maximumAmount?: string | undefined;
|
|
4437
|
+
minimumAmount?: string | undefined;
|
|
4438
|
+
} | {
|
|
4439
|
+
type: "dynamic";
|
|
4440
|
+
multiplier: string;
|
|
4441
|
+
maximumAmount?: string | undefined;
|
|
4442
|
+
minimumAmount?: string | undefined;
|
|
4443
|
+
} | {
|
|
4444
|
+
type: "package";
|
|
4445
|
+
amount: string;
|
|
4446
|
+
quantityPerPackage: string;
|
|
4447
|
+
maximumAmount?: string | undefined;
|
|
4448
|
+
minimumAmount?: string | undefined;
|
|
4449
|
+
} | null;
|
|
4450
|
+
featureKey?: string | undefined;
|
|
4451
|
+
discounts?: {
|
|
4452
|
+
percentage?: {
|
|
4453
|
+
percentage: number;
|
|
4454
|
+
correlationId?: string | undefined;
|
|
4455
|
+
} | undefined;
|
|
4456
|
+
usage?: {
|
|
4457
|
+
quantity: string;
|
|
4458
|
+
correlationId?: string | undefined;
|
|
4459
|
+
} | undefined;
|
|
4951
4460
|
} | undefined;
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4461
|
+
taxConfig?: {
|
|
4462
|
+
stripe?: {
|
|
4463
|
+
code: string;
|
|
4464
|
+
} | undefined;
|
|
4465
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4466
|
+
customInvoicing?: {
|
|
4467
|
+
code: string;
|
|
4468
|
+
} | undefined;
|
|
4955
4469
|
} | undefined;
|
|
4956
4470
|
}, {
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4471
|
+
price: {
|
|
4472
|
+
type: "flat";
|
|
4473
|
+
amount: string;
|
|
4474
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4475
|
+
} | {
|
|
4476
|
+
type: "unit";
|
|
4477
|
+
amount: string;
|
|
4478
|
+
maximumAmount?: string | undefined;
|
|
4479
|
+
minimumAmount?: string | undefined;
|
|
4480
|
+
} | {
|
|
4481
|
+
type: "tiered";
|
|
4482
|
+
mode: "volume" | "graduated";
|
|
4483
|
+
tiers: {
|
|
4484
|
+
flatPrice: {
|
|
4485
|
+
type: "flat";
|
|
4486
|
+
amount: string;
|
|
4487
|
+
} | null;
|
|
4488
|
+
unitPrice: {
|
|
4489
|
+
type: "unit";
|
|
4490
|
+
amount: string;
|
|
4491
|
+
} | null;
|
|
4492
|
+
upToAmount?: string | undefined;
|
|
4493
|
+
}[];
|
|
4494
|
+
maximumAmount?: string | undefined;
|
|
4495
|
+
minimumAmount?: string | undefined;
|
|
4496
|
+
} | {
|
|
4497
|
+
type: "dynamic";
|
|
4498
|
+
maximumAmount?: string | undefined;
|
|
4499
|
+
minimumAmount?: string | undefined;
|
|
4500
|
+
multiplier?: string | undefined;
|
|
4501
|
+
} | {
|
|
4502
|
+
type: "package";
|
|
4503
|
+
amount: string;
|
|
4504
|
+
quantityPerPackage: string;
|
|
4505
|
+
maximumAmount?: string | undefined;
|
|
4506
|
+
minimumAmount?: string | undefined;
|
|
4507
|
+
} | null;
|
|
4508
|
+
featureKey?: string | undefined;
|
|
4509
|
+
discounts?: {
|
|
4510
|
+
percentage?: {
|
|
4511
|
+
percentage: number;
|
|
4512
|
+
correlationId?: string | undefined;
|
|
4513
|
+
} | undefined;
|
|
4514
|
+
usage?: {
|
|
4515
|
+
quantity: string;
|
|
4516
|
+
correlationId?: string | undefined;
|
|
4517
|
+
} | undefined;
|
|
4960
4518
|
} | undefined;
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4519
|
+
taxConfig?: {
|
|
4520
|
+
stripe?: {
|
|
4521
|
+
code: string;
|
|
4522
|
+
} | undefined;
|
|
4523
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4524
|
+
customInvoicing?: {
|
|
4525
|
+
code: string;
|
|
4526
|
+
} | undefined;
|
|
4964
4527
|
} | undefined;
|
|
4965
4528
|
}>>;
|
|
4966
|
-
price: zod.ZodNullable<zod.ZodObject<{
|
|
4967
|
-
amount: zod.ZodString;
|
|
4968
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4969
|
-
type: zod.ZodEnum<["flat"]>;
|
|
4970
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4971
|
-
type: "flat";
|
|
4972
|
-
amount: string;
|
|
4973
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4974
|
-
}, {
|
|
4975
|
-
type: "flat";
|
|
4976
|
-
amount: string;
|
|
4977
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4978
|
-
}>>;
|
|
4979
|
-
quantity: zod.ZodOptional<zod.ZodString>;
|
|
4980
4529
|
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4981
4530
|
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
4982
4531
|
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -5010,48 +4559,56 @@ export declare const createPendingInvoiceLineBodyItem: zod.ZodDiscriminatedUnion
|
|
|
5010
4559
|
code: string;
|
|
5011
4560
|
} | undefined;
|
|
5012
4561
|
}>>;
|
|
4562
|
+
type: zod.ZodEnum<["usage_based"]>;
|
|
5013
4563
|
}, "strip", zod.ZodTypeAny, {
|
|
5014
|
-
|
|
4564
|
+
name: string;
|
|
4565
|
+
type: "usage_based";
|
|
4566
|
+
quantity: string;
|
|
4567
|
+
invoiceAt: Date;
|
|
4568
|
+
period: {
|
|
4569
|
+
from: Date;
|
|
4570
|
+
to: Date;
|
|
4571
|
+
};
|
|
4572
|
+
id?: string | undefined;
|
|
4573
|
+
description?: string | undefined;
|
|
4574
|
+
featureKey?: string | undefined;
|
|
4575
|
+
metadata?: Record<string, string> | null | undefined;
|
|
4576
|
+
price?: {
|
|
5015
4577
|
type: "flat";
|
|
5016
4578
|
amount: string;
|
|
5017
4579
|
paymentTerm: "in_advance" | "in_arrears";
|
|
5018
|
-
} |
|
|
5019
|
-
|
|
5020
|
-
discounts?: {
|
|
5021
|
-
percentage?: {
|
|
5022
|
-
percentage: number;
|
|
5023
|
-
correlationId?: string | undefined;
|
|
5024
|
-
} | undefined;
|
|
5025
|
-
usage?: {
|
|
5026
|
-
quantity: string;
|
|
5027
|
-
correlationId?: string | undefined;
|
|
5028
|
-
} | undefined;
|
|
5029
|
-
} | undefined;
|
|
5030
|
-
taxConfig?: {
|
|
5031
|
-
stripe?: {
|
|
5032
|
-
code: string;
|
|
5033
|
-
} | undefined;
|
|
5034
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5035
|
-
customInvoicing?: {
|
|
5036
|
-
code: string;
|
|
5037
|
-
} | undefined;
|
|
5038
|
-
} | undefined;
|
|
5039
|
-
}, {
|
|
5040
|
-
price: {
|
|
5041
|
-
type: "flat";
|
|
4580
|
+
} | {
|
|
4581
|
+
type: "unit";
|
|
5042
4582
|
amount: string;
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
4583
|
+
maximumAmount?: string | undefined;
|
|
4584
|
+
minimumAmount?: string | undefined;
|
|
4585
|
+
} | {
|
|
4586
|
+
type: "tiered";
|
|
4587
|
+
mode: "volume" | "graduated";
|
|
4588
|
+
tiers: {
|
|
4589
|
+
flatPrice: {
|
|
4590
|
+
type: "flat";
|
|
4591
|
+
amount: string;
|
|
4592
|
+
} | null;
|
|
4593
|
+
unitPrice: {
|
|
4594
|
+
type: "unit";
|
|
4595
|
+
amount: string;
|
|
4596
|
+
} | null;
|
|
4597
|
+
upToAmount?: string | undefined;
|
|
4598
|
+
}[];
|
|
4599
|
+
maximumAmount?: string | undefined;
|
|
4600
|
+
minimumAmount?: string | undefined;
|
|
4601
|
+
} | {
|
|
4602
|
+
type: "dynamic";
|
|
4603
|
+
multiplier: string;
|
|
4604
|
+
maximumAmount?: string | undefined;
|
|
4605
|
+
minimumAmount?: string | undefined;
|
|
4606
|
+
} | {
|
|
4607
|
+
type: "package";
|
|
4608
|
+
amount: string;
|
|
4609
|
+
quantityPerPackage: string;
|
|
4610
|
+
maximumAmount?: string | undefined;
|
|
4611
|
+
minimumAmount?: string | undefined;
|
|
5055
4612
|
} | undefined;
|
|
5056
4613
|
taxConfig?: {
|
|
5057
4614
|
stripe?: {
|
|
@@ -5062,132 +4619,115 @@ export declare const createPendingInvoiceLineBodyItem: zod.ZodDiscriminatedUnion
|
|
|
5062
4619
|
code: string;
|
|
5063
4620
|
} | undefined;
|
|
5064
4621
|
} | undefined;
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5114
|
-
quantity?: string | undefined;
|
|
5115
|
-
taxConfig?: {
|
|
5116
|
-
stripe?: {
|
|
5117
|
-
code: string;
|
|
5118
|
-
} | undefined;
|
|
5119
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5120
|
-
customInvoicing?: {
|
|
5121
|
-
code: string;
|
|
5122
|
-
} | undefined;
|
|
5123
|
-
} | undefined;
|
|
5124
|
-
rateCard?: {
|
|
5125
|
-
price: {
|
|
5126
|
-
type: "flat";
|
|
5127
|
-
amount: string;
|
|
5128
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5129
|
-
} | null;
|
|
5130
|
-
quantity?: string | undefined;
|
|
5131
|
-
discounts?: {
|
|
5132
|
-
percentage?: {
|
|
5133
|
-
percentage: number;
|
|
5134
|
-
correlationId?: string | undefined;
|
|
5135
|
-
} | undefined;
|
|
5136
|
-
usage?: {
|
|
5137
|
-
quantity: string;
|
|
5138
|
-
correlationId?: string | undefined;
|
|
5139
|
-
} | undefined;
|
|
5140
|
-
} | undefined;
|
|
5141
|
-
taxConfig?: {
|
|
5142
|
-
stripe?: {
|
|
5143
|
-
code: string;
|
|
4622
|
+
rateCard?: {
|
|
4623
|
+
price: {
|
|
4624
|
+
type: "flat";
|
|
4625
|
+
amount: string;
|
|
4626
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
4627
|
+
} | {
|
|
4628
|
+
type: "unit";
|
|
4629
|
+
amount: string;
|
|
4630
|
+
maximumAmount?: string | undefined;
|
|
4631
|
+
minimumAmount?: string | undefined;
|
|
4632
|
+
} | {
|
|
4633
|
+
type: "tiered";
|
|
4634
|
+
mode: "volume" | "graduated";
|
|
4635
|
+
tiers: {
|
|
4636
|
+
flatPrice: {
|
|
4637
|
+
type: "flat";
|
|
4638
|
+
amount: string;
|
|
4639
|
+
} | null;
|
|
4640
|
+
unitPrice: {
|
|
4641
|
+
type: "unit";
|
|
4642
|
+
amount: string;
|
|
4643
|
+
} | null;
|
|
4644
|
+
upToAmount?: string | undefined;
|
|
4645
|
+
}[];
|
|
4646
|
+
maximumAmount?: string | undefined;
|
|
4647
|
+
minimumAmount?: string | undefined;
|
|
4648
|
+
} | {
|
|
4649
|
+
type: "dynamic";
|
|
4650
|
+
multiplier: string;
|
|
4651
|
+
maximumAmount?: string | undefined;
|
|
4652
|
+
minimumAmount?: string | undefined;
|
|
4653
|
+
} | {
|
|
4654
|
+
type: "package";
|
|
4655
|
+
amount: string;
|
|
4656
|
+
quantityPerPackage: string;
|
|
4657
|
+
maximumAmount?: string | undefined;
|
|
4658
|
+
minimumAmount?: string | undefined;
|
|
4659
|
+
} | null;
|
|
4660
|
+
featureKey?: string | undefined;
|
|
4661
|
+
discounts?: {
|
|
4662
|
+
percentage?: {
|
|
4663
|
+
percentage: number;
|
|
4664
|
+
correlationId?: string | undefined;
|
|
4665
|
+
} | undefined;
|
|
4666
|
+
usage?: {
|
|
4667
|
+
quantity: string;
|
|
4668
|
+
correlationId?: string | undefined;
|
|
4669
|
+
} | undefined;
|
|
5144
4670
|
} | undefined;
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
4671
|
+
taxConfig?: {
|
|
4672
|
+
stripe?: {
|
|
4673
|
+
code: string;
|
|
4674
|
+
} | undefined;
|
|
4675
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4676
|
+
customInvoicing?: {
|
|
4677
|
+
code: string;
|
|
4678
|
+
} | undefined;
|
|
5148
4679
|
} | undefined;
|
|
5149
4680
|
} | undefined;
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5166
|
-
taxConfig?: {
|
|
5167
|
-
stripe?: {
|
|
5168
|
-
code: string;
|
|
5169
|
-
} | undefined;
|
|
5170
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5171
|
-
customInvoicing?: {
|
|
5172
|
-
code: string;
|
|
5173
|
-
} | undefined;
|
|
5174
|
-
} | undefined;
|
|
5175
|
-
rateCard?: {
|
|
5176
|
-
price: {
|
|
4681
|
+
preLinePeriodQuantity?: string | undefined;
|
|
4682
|
+
}, {
|
|
4683
|
+
name: string;
|
|
4684
|
+
type: "usage_based";
|
|
4685
|
+
quantity: string;
|
|
4686
|
+
invoiceAt: Date;
|
|
4687
|
+
period: {
|
|
4688
|
+
from: Date;
|
|
4689
|
+
to: Date;
|
|
4690
|
+
};
|
|
4691
|
+
id?: string | undefined;
|
|
4692
|
+
description?: string | undefined;
|
|
4693
|
+
featureKey?: string | undefined;
|
|
4694
|
+
metadata?: Record<string, string> | null | undefined;
|
|
4695
|
+
price?: {
|
|
5177
4696
|
type: "flat";
|
|
5178
4697
|
amount: string;
|
|
5179
4698
|
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5180
|
-
} |
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
4699
|
+
} | {
|
|
4700
|
+
type: "unit";
|
|
4701
|
+
amount: string;
|
|
4702
|
+
maximumAmount?: string | undefined;
|
|
4703
|
+
minimumAmount?: string | undefined;
|
|
4704
|
+
} | {
|
|
4705
|
+
type: "tiered";
|
|
4706
|
+
mode: "volume" | "graduated";
|
|
4707
|
+
tiers: {
|
|
4708
|
+
flatPrice: {
|
|
4709
|
+
type: "flat";
|
|
4710
|
+
amount: string;
|
|
4711
|
+
} | null;
|
|
4712
|
+
unitPrice: {
|
|
4713
|
+
type: "unit";
|
|
4714
|
+
amount: string;
|
|
4715
|
+
} | null;
|
|
4716
|
+
upToAmount?: string | undefined;
|
|
4717
|
+
}[];
|
|
4718
|
+
maximumAmount?: string | undefined;
|
|
4719
|
+
minimumAmount?: string | undefined;
|
|
4720
|
+
} | {
|
|
4721
|
+
type: "dynamic";
|
|
4722
|
+
maximumAmount?: string | undefined;
|
|
4723
|
+
minimumAmount?: string | undefined;
|
|
4724
|
+
multiplier?: string | undefined;
|
|
4725
|
+
} | {
|
|
4726
|
+
type: "package";
|
|
4727
|
+
amount: string;
|
|
4728
|
+
quantityPerPackage: string;
|
|
4729
|
+
maximumAmount?: string | undefined;
|
|
4730
|
+
minimumAmount?: string | undefined;
|
|
5191
4731
|
} | undefined;
|
|
5192
4732
|
taxConfig?: {
|
|
5193
4733
|
stripe?: {
|
|
@@ -5198,352 +4738,227 @@ export declare const createPendingInvoiceLineBodyItem: zod.ZodDiscriminatedUnion
|
|
|
5198
4738
|
code: string;
|
|
5199
4739
|
} | undefined;
|
|
5200
4740
|
} | undefined;
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
perUnitAmount?: string | undefined;
|
|
5204
|
-
}>]>;
|
|
5205
|
-
export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
5206
|
-
currency: zod.ZodString;
|
|
5207
|
-
customerId: zod.ZodString;
|
|
5208
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
5209
|
-
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
5210
|
-
invoiceAt: zod.ZodDate;
|
|
5211
|
-
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
5212
|
-
name: zod.ZodString;
|
|
5213
|
-
period: zod.ZodObject<{
|
|
5214
|
-
from: zod.ZodDate;
|
|
5215
|
-
to: zod.ZodDate;
|
|
5216
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5217
|
-
from: Date;
|
|
5218
|
-
to: Date;
|
|
5219
|
-
}, {
|
|
5220
|
-
from: Date;
|
|
5221
|
-
to: Date;
|
|
5222
|
-
}>;
|
|
5223
|
-
price: zod.ZodOptional<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
5224
|
-
amount: zod.ZodString;
|
|
5225
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
5226
|
-
type: zod.ZodEnum<["flat"]>;
|
|
5227
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5228
|
-
type: "flat";
|
|
5229
|
-
amount: string;
|
|
5230
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5231
|
-
}, {
|
|
5232
|
-
type: "flat";
|
|
5233
|
-
amount: string;
|
|
5234
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5235
|
-
}>, zod.ZodObject<{
|
|
5236
|
-
amount: zod.ZodString;
|
|
5237
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5238
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5239
|
-
type: zod.ZodEnum<["unit"]>;
|
|
5240
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5241
|
-
type: "unit";
|
|
5242
|
-
amount: string;
|
|
5243
|
-
maximumAmount?: string | undefined;
|
|
5244
|
-
minimumAmount?: string | undefined;
|
|
5245
|
-
}, {
|
|
5246
|
-
type: "unit";
|
|
5247
|
-
amount: string;
|
|
5248
|
-
maximumAmount?: string | undefined;
|
|
5249
|
-
minimumAmount?: string | undefined;
|
|
5250
|
-
}>, zod.ZodObject<{
|
|
5251
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5252
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5253
|
-
mode: zod.ZodEnum<["volume", "graduated"]>;
|
|
5254
|
-
tiers: zod.ZodArray<zod.ZodObject<{
|
|
5255
|
-
flatPrice: zod.ZodNullable<zod.ZodObject<{
|
|
5256
|
-
amount: zod.ZodString;
|
|
5257
|
-
type: zod.ZodEnum<["flat"]>;
|
|
5258
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5259
|
-
type: "flat";
|
|
5260
|
-
amount: string;
|
|
5261
|
-
}, {
|
|
5262
|
-
type: "flat";
|
|
5263
|
-
amount: string;
|
|
5264
|
-
}>>;
|
|
5265
|
-
unitPrice: zod.ZodNullable<zod.ZodObject<{
|
|
5266
|
-
amount: zod.ZodString;
|
|
5267
|
-
type: zod.ZodEnum<["unit"]>;
|
|
5268
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5269
|
-
type: "unit";
|
|
5270
|
-
amount: string;
|
|
5271
|
-
}, {
|
|
5272
|
-
type: "unit";
|
|
5273
|
-
amount: string;
|
|
5274
|
-
}>>;
|
|
5275
|
-
upToAmount: zod.ZodOptional<zod.ZodString>;
|
|
5276
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5277
|
-
flatPrice: {
|
|
5278
|
-
type: "flat";
|
|
5279
|
-
amount: string;
|
|
5280
|
-
} | null;
|
|
5281
|
-
unitPrice: {
|
|
5282
|
-
type: "unit";
|
|
5283
|
-
amount: string;
|
|
5284
|
-
} | null;
|
|
5285
|
-
upToAmount?: string | undefined;
|
|
5286
|
-
}, {
|
|
5287
|
-
flatPrice: {
|
|
5288
|
-
type: "flat";
|
|
5289
|
-
amount: string;
|
|
5290
|
-
} | null;
|
|
5291
|
-
unitPrice: {
|
|
5292
|
-
type: "unit";
|
|
5293
|
-
amount: string;
|
|
5294
|
-
} | null;
|
|
5295
|
-
upToAmount?: string | undefined;
|
|
5296
|
-
}>, "many">;
|
|
5297
|
-
type: zod.ZodEnum<["tiered"]>;
|
|
5298
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5299
|
-
type: "tiered";
|
|
5300
|
-
mode: "volume" | "graduated";
|
|
5301
|
-
tiers: {
|
|
5302
|
-
flatPrice: {
|
|
4741
|
+
rateCard?: {
|
|
4742
|
+
price: {
|
|
5303
4743
|
type: "flat";
|
|
5304
4744
|
amount: string;
|
|
5305
|
-
|
|
5306
|
-
|
|
4745
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4746
|
+
} | {
|
|
5307
4747
|
type: "unit";
|
|
5308
4748
|
amount: string;
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
4749
|
+
maximumAmount?: string | undefined;
|
|
4750
|
+
minimumAmount?: string | undefined;
|
|
4751
|
+
} | {
|
|
4752
|
+
type: "tiered";
|
|
4753
|
+
mode: "volume" | "graduated";
|
|
4754
|
+
tiers: {
|
|
4755
|
+
flatPrice: {
|
|
4756
|
+
type: "flat";
|
|
4757
|
+
amount: string;
|
|
4758
|
+
} | null;
|
|
4759
|
+
unitPrice: {
|
|
4760
|
+
type: "unit";
|
|
4761
|
+
amount: string;
|
|
4762
|
+
} | null;
|
|
4763
|
+
upToAmount?: string | undefined;
|
|
4764
|
+
}[];
|
|
4765
|
+
maximumAmount?: string | undefined;
|
|
4766
|
+
minimumAmount?: string | undefined;
|
|
4767
|
+
} | {
|
|
4768
|
+
type: "dynamic";
|
|
4769
|
+
maximumAmount?: string | undefined;
|
|
4770
|
+
minimumAmount?: string | undefined;
|
|
4771
|
+
multiplier?: string | undefined;
|
|
4772
|
+
} | {
|
|
4773
|
+
type: "package";
|
|
5324
4774
|
amount: string;
|
|
4775
|
+
quantityPerPackage: string;
|
|
4776
|
+
maximumAmount?: string | undefined;
|
|
4777
|
+
minimumAmount?: string | undefined;
|
|
5325
4778
|
} | null;
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
4779
|
+
featureKey?: string | undefined;
|
|
4780
|
+
discounts?: {
|
|
4781
|
+
percentage?: {
|
|
4782
|
+
percentage: number;
|
|
4783
|
+
correlationId?: string | undefined;
|
|
4784
|
+
} | undefined;
|
|
4785
|
+
usage?: {
|
|
4786
|
+
quantity: string;
|
|
4787
|
+
correlationId?: string | undefined;
|
|
4788
|
+
} | undefined;
|
|
4789
|
+
} | undefined;
|
|
4790
|
+
taxConfig?: {
|
|
4791
|
+
stripe?: {
|
|
4792
|
+
code: string;
|
|
4793
|
+
} | undefined;
|
|
4794
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4795
|
+
customInvoicing?: {
|
|
4796
|
+
code: string;
|
|
4797
|
+
} | undefined;
|
|
4798
|
+
} | undefined;
|
|
4799
|
+
} | undefined;
|
|
4800
|
+
preLinePeriodQuantity?: string | undefined;
|
|
5345
4801
|
}>, zod.ZodObject<{
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
4802
|
+
category: zod.ZodDefault<zod.ZodEnum<["regular", "commitment"]>>;
|
|
4803
|
+
description: zod.ZodOptional<zod.ZodString>;
|
|
4804
|
+
id: zod.ZodOptional<zod.ZodString>;
|
|
4805
|
+
invoiceAt: zod.ZodDate;
|
|
4806
|
+
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
4807
|
+
name: zod.ZodString;
|
|
4808
|
+
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4809
|
+
period: zod.ZodObject<{
|
|
4810
|
+
from: zod.ZodDate;
|
|
4811
|
+
to: zod.ZodDate;
|
|
4812
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4813
|
+
from: Date;
|
|
4814
|
+
to: Date;
|
|
4815
|
+
}, {
|
|
4816
|
+
from: Date;
|
|
4817
|
+
to: Date;
|
|
4818
|
+
}>;
|
|
4819
|
+
perUnitAmount: zod.ZodOptional<zod.ZodString>;
|
|
4820
|
+
quantity: zod.ZodOptional<zod.ZodString>;
|
|
4821
|
+
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
4822
|
+
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
4823
|
+
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
4824
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4825
|
+
percentage: zod.ZodNumber;
|
|
4826
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4827
|
+
percentage: number;
|
|
4828
|
+
correlationId?: string | undefined;
|
|
4829
|
+
}, {
|
|
4830
|
+
percentage: number;
|
|
4831
|
+
correlationId?: string | undefined;
|
|
4832
|
+
}>>;
|
|
4833
|
+
usage: zod.ZodOptional<zod.ZodObject<{
|
|
4834
|
+
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4835
|
+
quantity: zod.ZodString;
|
|
4836
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4837
|
+
quantity: string;
|
|
4838
|
+
correlationId?: string | undefined;
|
|
4839
|
+
}, {
|
|
4840
|
+
quantity: string;
|
|
4841
|
+
correlationId?: string | undefined;
|
|
4842
|
+
}>>;
|
|
5369
4843
|
}, "strip", zod.ZodTypeAny, {
|
|
5370
|
-
percentage
|
|
5371
|
-
|
|
4844
|
+
percentage?: {
|
|
4845
|
+
percentage: number;
|
|
4846
|
+
correlationId?: string | undefined;
|
|
4847
|
+
} | undefined;
|
|
4848
|
+
usage?: {
|
|
4849
|
+
quantity: string;
|
|
4850
|
+
correlationId?: string | undefined;
|
|
4851
|
+
} | undefined;
|
|
5372
4852
|
}, {
|
|
5373
|
-
percentage
|
|
5374
|
-
|
|
4853
|
+
percentage?: {
|
|
4854
|
+
percentage: number;
|
|
4855
|
+
correlationId?: string | undefined;
|
|
4856
|
+
} | undefined;
|
|
4857
|
+
usage?: {
|
|
4858
|
+
quantity: string;
|
|
4859
|
+
correlationId?: string | undefined;
|
|
4860
|
+
} | undefined;
|
|
5375
4861
|
}>>;
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
4862
|
+
price: zod.ZodNullable<zod.ZodObject<{
|
|
4863
|
+
amount: zod.ZodString;
|
|
4864
|
+
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4865
|
+
type: zod.ZodEnum<["flat"]>;
|
|
5379
4866
|
}, "strip", zod.ZodTypeAny, {
|
|
5380
|
-
|
|
5381
|
-
|
|
4867
|
+
type: "flat";
|
|
4868
|
+
amount: string;
|
|
4869
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5382
4870
|
}, {
|
|
5383
|
-
|
|
5384
|
-
|
|
4871
|
+
type: "flat";
|
|
4872
|
+
amount: string;
|
|
4873
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5385
4874
|
}>>;
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
usage?: {
|
|
5392
|
-
quantity: string;
|
|
5393
|
-
correlationId?: string | undefined;
|
|
5394
|
-
} | undefined;
|
|
5395
|
-
}, {
|
|
5396
|
-
percentage?: {
|
|
5397
|
-
percentage: number;
|
|
5398
|
-
correlationId?: string | undefined;
|
|
5399
|
-
} | undefined;
|
|
5400
|
-
usage?: {
|
|
5401
|
-
quantity: string;
|
|
5402
|
-
correlationId?: string | undefined;
|
|
5403
|
-
} | undefined;
|
|
5404
|
-
}>>;
|
|
5405
|
-
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
5406
|
-
price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
5407
|
-
amount: zod.ZodString;
|
|
5408
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
5409
|
-
type: zod.ZodEnum<["flat"]>;
|
|
5410
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5411
|
-
type: "flat";
|
|
5412
|
-
amount: string;
|
|
5413
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5414
|
-
}, {
|
|
5415
|
-
type: "flat";
|
|
5416
|
-
amount: string;
|
|
5417
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5418
|
-
}>, zod.ZodObject<{
|
|
5419
|
-
amount: zod.ZodString;
|
|
5420
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5421
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5422
|
-
type: zod.ZodEnum<["unit"]>;
|
|
5423
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5424
|
-
type: "unit";
|
|
5425
|
-
amount: string;
|
|
5426
|
-
maximumAmount?: string | undefined;
|
|
5427
|
-
minimumAmount?: string | undefined;
|
|
5428
|
-
}, {
|
|
5429
|
-
type: "unit";
|
|
5430
|
-
amount: string;
|
|
5431
|
-
maximumAmount?: string | undefined;
|
|
5432
|
-
minimumAmount?: string | undefined;
|
|
5433
|
-
}>, zod.ZodObject<{
|
|
5434
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5435
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5436
|
-
mode: zod.ZodEnum<["volume", "graduated"]>;
|
|
5437
|
-
tiers: zod.ZodArray<zod.ZodObject<{
|
|
5438
|
-
flatPrice: zod.ZodNullable<zod.ZodObject<{
|
|
5439
|
-
amount: zod.ZodString;
|
|
5440
|
-
type: zod.ZodEnum<["flat"]>;
|
|
4875
|
+
quantity: zod.ZodOptional<zod.ZodString>;
|
|
4876
|
+
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4877
|
+
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
4878
|
+
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
4879
|
+
code: zod.ZodString;
|
|
5441
4880
|
}, "strip", zod.ZodTypeAny, {
|
|
5442
|
-
|
|
5443
|
-
amount: string;
|
|
4881
|
+
code: string;
|
|
5444
4882
|
}, {
|
|
5445
|
-
|
|
5446
|
-
amount: string;
|
|
4883
|
+
code: string;
|
|
5447
4884
|
}>>;
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
type: zod.ZodEnum<["unit"]>;
|
|
4885
|
+
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
4886
|
+
code: zod.ZodString;
|
|
5451
4887
|
}, "strip", zod.ZodTypeAny, {
|
|
5452
|
-
|
|
5453
|
-
amount: string;
|
|
4888
|
+
code: string;
|
|
5454
4889
|
}, {
|
|
5455
|
-
|
|
5456
|
-
amount: string;
|
|
4890
|
+
code: string;
|
|
5457
4891
|
}>>;
|
|
5458
|
-
upToAmount: zod.ZodOptional<zod.ZodString>;
|
|
5459
4892
|
}, "strip", zod.ZodTypeAny, {
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
} | null;
|
|
5468
|
-
upToAmount?: string | undefined;
|
|
4893
|
+
stripe?: {
|
|
4894
|
+
code: string;
|
|
4895
|
+
} | undefined;
|
|
4896
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4897
|
+
customInvoicing?: {
|
|
4898
|
+
code: string;
|
|
4899
|
+
} | undefined;
|
|
5469
4900
|
}, {
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
upToAmount?: string | undefined;
|
|
5479
|
-
}>, "many">;
|
|
5480
|
-
type: zod.ZodEnum<["tiered"]>;
|
|
5481
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5482
|
-
type: "tiered";
|
|
5483
|
-
mode: "volume" | "graduated";
|
|
5484
|
-
tiers: {
|
|
5485
|
-
flatPrice: {
|
|
5486
|
-
type: "flat";
|
|
5487
|
-
amount: string;
|
|
5488
|
-
} | null;
|
|
5489
|
-
unitPrice: {
|
|
5490
|
-
type: "unit";
|
|
5491
|
-
amount: string;
|
|
5492
|
-
} | null;
|
|
5493
|
-
upToAmount?: string | undefined;
|
|
5494
|
-
}[];
|
|
5495
|
-
maximumAmount?: string | undefined;
|
|
5496
|
-
minimumAmount?: string | undefined;
|
|
5497
|
-
}, {
|
|
5498
|
-
type: "tiered";
|
|
5499
|
-
mode: "volume" | "graduated";
|
|
5500
|
-
tiers: {
|
|
5501
|
-
flatPrice: {
|
|
5502
|
-
type: "flat";
|
|
5503
|
-
amount: string;
|
|
5504
|
-
} | null;
|
|
5505
|
-
unitPrice: {
|
|
5506
|
-
type: "unit";
|
|
5507
|
-
amount: string;
|
|
5508
|
-
} | null;
|
|
5509
|
-
upToAmount?: string | undefined;
|
|
5510
|
-
}[];
|
|
5511
|
-
maximumAmount?: string | undefined;
|
|
5512
|
-
minimumAmount?: string | undefined;
|
|
5513
|
-
}>, zod.ZodObject<{
|
|
5514
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5515
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5516
|
-
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
5517
|
-
type: zod.ZodEnum<["dynamic"]>;
|
|
5518
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5519
|
-
type: "dynamic";
|
|
5520
|
-
multiplier: string;
|
|
5521
|
-
maximumAmount?: string | undefined;
|
|
5522
|
-
minimumAmount?: string | undefined;
|
|
5523
|
-
}, {
|
|
5524
|
-
type: "dynamic";
|
|
5525
|
-
maximumAmount?: string | undefined;
|
|
5526
|
-
minimumAmount?: string | undefined;
|
|
5527
|
-
multiplier?: string | undefined;
|
|
5528
|
-
}>, zod.ZodObject<{
|
|
5529
|
-
amount: zod.ZodString;
|
|
5530
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5531
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5532
|
-
quantityPerPackage: zod.ZodString;
|
|
5533
|
-
type: zod.ZodEnum<["package"]>;
|
|
4901
|
+
stripe?: {
|
|
4902
|
+
code: string;
|
|
4903
|
+
} | undefined;
|
|
4904
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4905
|
+
customInvoicing?: {
|
|
4906
|
+
code: string;
|
|
4907
|
+
} | undefined;
|
|
4908
|
+
}>>;
|
|
5534
4909
|
}, "strip", zod.ZodTypeAny, {
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
4910
|
+
price: {
|
|
4911
|
+
type: "flat";
|
|
4912
|
+
amount: string;
|
|
4913
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
4914
|
+
} | null;
|
|
4915
|
+
quantity?: string | undefined;
|
|
4916
|
+
discounts?: {
|
|
4917
|
+
percentage?: {
|
|
4918
|
+
percentage: number;
|
|
4919
|
+
correlationId?: string | undefined;
|
|
4920
|
+
} | undefined;
|
|
4921
|
+
usage?: {
|
|
4922
|
+
quantity: string;
|
|
4923
|
+
correlationId?: string | undefined;
|
|
4924
|
+
} | undefined;
|
|
4925
|
+
} | undefined;
|
|
4926
|
+
taxConfig?: {
|
|
4927
|
+
stripe?: {
|
|
4928
|
+
code: string;
|
|
4929
|
+
} | undefined;
|
|
4930
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4931
|
+
customInvoicing?: {
|
|
4932
|
+
code: string;
|
|
4933
|
+
} | undefined;
|
|
4934
|
+
} | undefined;
|
|
5540
4935
|
}, {
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
4936
|
+
price: {
|
|
4937
|
+
type: "flat";
|
|
4938
|
+
amount: string;
|
|
4939
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4940
|
+
} | null;
|
|
4941
|
+
quantity?: string | undefined;
|
|
4942
|
+
discounts?: {
|
|
4943
|
+
percentage?: {
|
|
4944
|
+
percentage: number;
|
|
4945
|
+
correlationId?: string | undefined;
|
|
4946
|
+
} | undefined;
|
|
4947
|
+
usage?: {
|
|
4948
|
+
quantity: string;
|
|
4949
|
+
correlationId?: string | undefined;
|
|
4950
|
+
} | undefined;
|
|
4951
|
+
} | undefined;
|
|
4952
|
+
taxConfig?: {
|
|
4953
|
+
stripe?: {
|
|
4954
|
+
code: string;
|
|
4955
|
+
} | undefined;
|
|
4956
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4957
|
+
customInvoicing?: {
|
|
4958
|
+
code: string;
|
|
4959
|
+
} | undefined;
|
|
4960
|
+
} | undefined;
|
|
4961
|
+
}>>;
|
|
5547
4962
|
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
5548
4963
|
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
5549
4964
|
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -5576,56 +4991,72 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
5576
4991
|
customInvoicing?: {
|
|
5577
4992
|
code: string;
|
|
5578
4993
|
} | undefined;
|
|
5579
|
-
}>>;
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
percentage?: {
|
|
5621
|
-
percentage: number;
|
|
5622
|
-
correlationId?: string | undefined;
|
|
4994
|
+
}>>;
|
|
4995
|
+
type: zod.ZodEnum<["flat_fee"]>;
|
|
4996
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4997
|
+
name: string;
|
|
4998
|
+
type: "flat_fee";
|
|
4999
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5000
|
+
invoiceAt: Date;
|
|
5001
|
+
period: {
|
|
5002
|
+
from: Date;
|
|
5003
|
+
to: Date;
|
|
5004
|
+
};
|
|
5005
|
+
category: "regular" | "commitment";
|
|
5006
|
+
id?: string | undefined;
|
|
5007
|
+
description?: string | undefined;
|
|
5008
|
+
metadata?: Record<string, string> | null | undefined;
|
|
5009
|
+
quantity?: string | undefined;
|
|
5010
|
+
taxConfig?: {
|
|
5011
|
+
stripe?: {
|
|
5012
|
+
code: string;
|
|
5013
|
+
} | undefined;
|
|
5014
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5015
|
+
customInvoicing?: {
|
|
5016
|
+
code: string;
|
|
5017
|
+
} | undefined;
|
|
5018
|
+
} | undefined;
|
|
5019
|
+
rateCard?: {
|
|
5020
|
+
price: {
|
|
5021
|
+
type: "flat";
|
|
5022
|
+
amount: string;
|
|
5023
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5024
|
+
} | null;
|
|
5025
|
+
quantity?: string | undefined;
|
|
5026
|
+
discounts?: {
|
|
5027
|
+
percentage?: {
|
|
5028
|
+
percentage: number;
|
|
5029
|
+
correlationId?: string | undefined;
|
|
5030
|
+
} | undefined;
|
|
5031
|
+
usage?: {
|
|
5032
|
+
quantity: string;
|
|
5033
|
+
correlationId?: string | undefined;
|
|
5034
|
+
} | undefined;
|
|
5623
5035
|
} | undefined;
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5036
|
+
taxConfig?: {
|
|
5037
|
+
stripe?: {
|
|
5038
|
+
code: string;
|
|
5039
|
+
} | undefined;
|
|
5040
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5041
|
+
customInvoicing?: {
|
|
5042
|
+
code: string;
|
|
5043
|
+
} | undefined;
|
|
5627
5044
|
} | undefined;
|
|
5628
5045
|
} | undefined;
|
|
5046
|
+
perUnitAmount?: string | undefined;
|
|
5047
|
+
}, {
|
|
5048
|
+
name: string;
|
|
5049
|
+
type: "flat_fee";
|
|
5050
|
+
invoiceAt: Date;
|
|
5051
|
+
period: {
|
|
5052
|
+
from: Date;
|
|
5053
|
+
to: Date;
|
|
5054
|
+
};
|
|
5055
|
+
id?: string | undefined;
|
|
5056
|
+
description?: string | undefined;
|
|
5057
|
+
metadata?: Record<string, string> | null | undefined;
|
|
5058
|
+
quantity?: string | undefined;
|
|
5059
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5629
5060
|
taxConfig?: {
|
|
5630
5061
|
stripe?: {
|
|
5631
5062
|
code: string;
|
|
@@ -5635,11 +5066,55 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
5635
5066
|
code: string;
|
|
5636
5067
|
} | undefined;
|
|
5637
5068
|
} | undefined;
|
|
5638
|
-
|
|
5639
|
-
|
|
5069
|
+
rateCard?: {
|
|
5070
|
+
price: {
|
|
5071
|
+
type: "flat";
|
|
5072
|
+
amount: string;
|
|
5073
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5074
|
+
} | null;
|
|
5075
|
+
quantity?: string | undefined;
|
|
5076
|
+
discounts?: {
|
|
5077
|
+
percentage?: {
|
|
5078
|
+
percentage: number;
|
|
5079
|
+
correlationId?: string | undefined;
|
|
5080
|
+
} | undefined;
|
|
5081
|
+
usage?: {
|
|
5082
|
+
quantity: string;
|
|
5083
|
+
correlationId?: string | undefined;
|
|
5084
|
+
} | undefined;
|
|
5085
|
+
} | undefined;
|
|
5086
|
+
taxConfig?: {
|
|
5087
|
+
stripe?: {
|
|
5088
|
+
code: string;
|
|
5089
|
+
} | undefined;
|
|
5090
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5091
|
+
customInvoicing?: {
|
|
5092
|
+
code: string;
|
|
5093
|
+
} | undefined;
|
|
5094
|
+
} | undefined;
|
|
5095
|
+
} | undefined;
|
|
5096
|
+
category?: "regular" | "commitment" | undefined;
|
|
5097
|
+
perUnitAmount?: string | undefined;
|
|
5098
|
+
}>]>, "many">;
|
|
5099
|
+
number: zod.ZodOptional<zod.ZodString>;
|
|
5100
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5101
|
+
lines: ({
|
|
5102
|
+
name: string;
|
|
5103
|
+
type: "usage_based";
|
|
5104
|
+
quantity: string;
|
|
5105
|
+
invoiceAt: Date;
|
|
5106
|
+
period: {
|
|
5107
|
+
from: Date;
|
|
5108
|
+
to: Date;
|
|
5109
|
+
};
|
|
5110
|
+
id?: string | undefined;
|
|
5111
|
+
description?: string | undefined;
|
|
5112
|
+
featureKey?: string | undefined;
|
|
5113
|
+
metadata?: Record<string, string> | null | undefined;
|
|
5114
|
+
price?: {
|
|
5640
5115
|
type: "flat";
|
|
5641
5116
|
amount: string;
|
|
5642
|
-
paymentTerm
|
|
5117
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5643
5118
|
} | {
|
|
5644
5119
|
type: "unit";
|
|
5645
5120
|
amount: string;
|
|
@@ -5663,26 +5138,15 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
5663
5138
|
minimumAmount?: string | undefined;
|
|
5664
5139
|
} | {
|
|
5665
5140
|
type: "dynamic";
|
|
5141
|
+
multiplier: string;
|
|
5666
5142
|
maximumAmount?: string | undefined;
|
|
5667
5143
|
minimumAmount?: string | undefined;
|
|
5668
|
-
multiplier?: string | undefined;
|
|
5669
5144
|
} | {
|
|
5670
5145
|
type: "package";
|
|
5671
5146
|
amount: string;
|
|
5672
5147
|
quantityPerPackage: string;
|
|
5673
5148
|
maximumAmount?: string | undefined;
|
|
5674
5149
|
minimumAmount?: string | undefined;
|
|
5675
|
-
} | null;
|
|
5676
|
-
featureKey?: string | undefined;
|
|
5677
|
-
discounts?: {
|
|
5678
|
-
percentage?: {
|
|
5679
|
-
percentage: number;
|
|
5680
|
-
correlationId?: string | undefined;
|
|
5681
|
-
} | undefined;
|
|
5682
|
-
usage?: {
|
|
5683
|
-
quantity: string;
|
|
5684
|
-
correlationId?: string | undefined;
|
|
5685
|
-
} | undefined;
|
|
5686
5150
|
} | undefined;
|
|
5687
5151
|
taxConfig?: {
|
|
5688
5152
|
stripe?: {
|
|
@@ -5693,149 +5157,80 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
5693
5157
|
code: string;
|
|
5694
5158
|
} | undefined;
|
|
5695
5159
|
} | undefined;
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
5699
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
5700
|
-
code: zod.ZodString;
|
|
5701
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5702
|
-
code: string;
|
|
5703
|
-
}, {
|
|
5704
|
-
code: string;
|
|
5705
|
-
}>>;
|
|
5706
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
5707
|
-
code: zod.ZodString;
|
|
5708
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5709
|
-
code: string;
|
|
5710
|
-
}, {
|
|
5711
|
-
code: string;
|
|
5712
|
-
}>>;
|
|
5713
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5714
|
-
stripe?: {
|
|
5715
|
-
code: string;
|
|
5716
|
-
} | undefined;
|
|
5717
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5718
|
-
customInvoicing?: {
|
|
5719
|
-
code: string;
|
|
5720
|
-
} | undefined;
|
|
5721
|
-
}, {
|
|
5722
|
-
stripe?: {
|
|
5723
|
-
code: string;
|
|
5724
|
-
} | undefined;
|
|
5725
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5726
|
-
customInvoicing?: {
|
|
5727
|
-
code: string;
|
|
5728
|
-
} | undefined;
|
|
5729
|
-
}>>;
|
|
5730
|
-
type: zod.ZodEnum<["usage_based"]>;
|
|
5731
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5732
|
-
customerId: string;
|
|
5733
|
-
name: string;
|
|
5734
|
-
type: "usage_based";
|
|
5735
|
-
currency: string;
|
|
5736
|
-
invoiceAt: Date;
|
|
5737
|
-
period: {
|
|
5738
|
-
from: Date;
|
|
5739
|
-
to: Date;
|
|
5740
|
-
};
|
|
5741
|
-
description?: string | undefined;
|
|
5742
|
-
featureKey?: string | undefined;
|
|
5743
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5744
|
-
price?: {
|
|
5745
|
-
type: "flat";
|
|
5746
|
-
amount: string;
|
|
5747
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5748
|
-
} | {
|
|
5749
|
-
type: "unit";
|
|
5750
|
-
amount: string;
|
|
5751
|
-
maximumAmount?: string | undefined;
|
|
5752
|
-
minimumAmount?: string | undefined;
|
|
5753
|
-
} | {
|
|
5754
|
-
type: "tiered";
|
|
5755
|
-
mode: "volume" | "graduated";
|
|
5756
|
-
tiers: {
|
|
5757
|
-
flatPrice: {
|
|
5160
|
+
rateCard?: {
|
|
5161
|
+
price: {
|
|
5758
5162
|
type: "flat";
|
|
5759
5163
|
amount: string;
|
|
5760
|
-
|
|
5761
|
-
|
|
5164
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5165
|
+
} | {
|
|
5762
5166
|
type: "unit";
|
|
5763
5167
|
amount: string;
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
flatPrice: {
|
|
5805
|
-
type: "flat";
|
|
5806
|
-
amount: string;
|
|
5807
|
-
} | null;
|
|
5808
|
-
unitPrice: {
|
|
5809
|
-
type: "unit";
|
|
5810
|
-
amount: string;
|
|
5811
|
-
} | null;
|
|
5812
|
-
upToAmount?: string | undefined;
|
|
5813
|
-
}[];
|
|
5814
|
-
maximumAmount?: string | undefined;
|
|
5815
|
-
minimumAmount?: string | undefined;
|
|
5816
|
-
} | {
|
|
5817
|
-
type: "dynamic";
|
|
5818
|
-
multiplier: string;
|
|
5819
|
-
maximumAmount?: string | undefined;
|
|
5820
|
-
minimumAmount?: string | undefined;
|
|
5821
|
-
} | {
|
|
5822
|
-
type: "package";
|
|
5823
|
-
amount: string;
|
|
5824
|
-
quantityPerPackage: string;
|
|
5825
|
-
maximumAmount?: string | undefined;
|
|
5826
|
-
minimumAmount?: string | undefined;
|
|
5827
|
-
} | null;
|
|
5828
|
-
featureKey?: string | undefined;
|
|
5829
|
-
discounts?: {
|
|
5830
|
-
percentage?: {
|
|
5831
|
-
percentage: number;
|
|
5832
|
-
correlationId?: string | undefined;
|
|
5168
|
+
maximumAmount?: string | undefined;
|
|
5169
|
+
minimumAmount?: string | undefined;
|
|
5170
|
+
} | {
|
|
5171
|
+
type: "tiered";
|
|
5172
|
+
mode: "volume" | "graduated";
|
|
5173
|
+
tiers: {
|
|
5174
|
+
flatPrice: {
|
|
5175
|
+
type: "flat";
|
|
5176
|
+
amount: string;
|
|
5177
|
+
} | null;
|
|
5178
|
+
unitPrice: {
|
|
5179
|
+
type: "unit";
|
|
5180
|
+
amount: string;
|
|
5181
|
+
} | null;
|
|
5182
|
+
upToAmount?: string | undefined;
|
|
5183
|
+
}[];
|
|
5184
|
+
maximumAmount?: string | undefined;
|
|
5185
|
+
minimumAmount?: string | undefined;
|
|
5186
|
+
} | {
|
|
5187
|
+
type: "dynamic";
|
|
5188
|
+
multiplier: string;
|
|
5189
|
+
maximumAmount?: string | undefined;
|
|
5190
|
+
minimumAmount?: string | undefined;
|
|
5191
|
+
} | {
|
|
5192
|
+
type: "package";
|
|
5193
|
+
amount: string;
|
|
5194
|
+
quantityPerPackage: string;
|
|
5195
|
+
maximumAmount?: string | undefined;
|
|
5196
|
+
minimumAmount?: string | undefined;
|
|
5197
|
+
} | null;
|
|
5198
|
+
featureKey?: string | undefined;
|
|
5199
|
+
discounts?: {
|
|
5200
|
+
percentage?: {
|
|
5201
|
+
percentage: number;
|
|
5202
|
+
correlationId?: string | undefined;
|
|
5203
|
+
} | undefined;
|
|
5204
|
+
usage?: {
|
|
5205
|
+
quantity: string;
|
|
5206
|
+
correlationId?: string | undefined;
|
|
5207
|
+
} | undefined;
|
|
5833
5208
|
} | undefined;
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5209
|
+
taxConfig?: {
|
|
5210
|
+
stripe?: {
|
|
5211
|
+
code: string;
|
|
5212
|
+
} | undefined;
|
|
5213
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5214
|
+
customInvoicing?: {
|
|
5215
|
+
code: string;
|
|
5216
|
+
} | undefined;
|
|
5837
5217
|
} | undefined;
|
|
5838
5218
|
} | undefined;
|
|
5219
|
+
preLinePeriodQuantity?: string | undefined;
|
|
5220
|
+
} | {
|
|
5221
|
+
name: string;
|
|
5222
|
+
type: "flat_fee";
|
|
5223
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5224
|
+
invoiceAt: Date;
|
|
5225
|
+
period: {
|
|
5226
|
+
from: Date;
|
|
5227
|
+
to: Date;
|
|
5228
|
+
};
|
|
5229
|
+
category: "regular" | "commitment";
|
|
5230
|
+
id?: string | undefined;
|
|
5231
|
+
description?: string | undefined;
|
|
5232
|
+
metadata?: Record<string, string> | null | undefined;
|
|
5233
|
+
quantity?: string | undefined;
|
|
5839
5234
|
taxConfig?: {
|
|
5840
5235
|
stripe?: {
|
|
5841
5236
|
code: string;
|
|
@@ -5845,68 +5240,52 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
5845
5240
|
code: string;
|
|
5846
5241
|
} | undefined;
|
|
5847
5242
|
} | undefined;
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
customerId: string;
|
|
5851
|
-
name: string;
|
|
5852
|
-
type: "usage_based";
|
|
5853
|
-
currency: string;
|
|
5854
|
-
invoiceAt: Date;
|
|
5855
|
-
period: {
|
|
5856
|
-
from: Date;
|
|
5857
|
-
to: Date;
|
|
5858
|
-
};
|
|
5859
|
-
description?: string | undefined;
|
|
5860
|
-
featureKey?: string | undefined;
|
|
5861
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5862
|
-
price?: {
|
|
5863
|
-
type: "flat";
|
|
5864
|
-
amount: string;
|
|
5865
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5866
|
-
} | {
|
|
5867
|
-
type: "unit";
|
|
5868
|
-
amount: string;
|
|
5869
|
-
maximumAmount?: string | undefined;
|
|
5870
|
-
minimumAmount?: string | undefined;
|
|
5871
|
-
} | {
|
|
5872
|
-
type: "tiered";
|
|
5873
|
-
mode: "volume" | "graduated";
|
|
5874
|
-
tiers: {
|
|
5875
|
-
flatPrice: {
|
|
5243
|
+
rateCard?: {
|
|
5244
|
+
price: {
|
|
5876
5245
|
type: "flat";
|
|
5877
5246
|
amount: string;
|
|
5247
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5878
5248
|
} | null;
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
taxConfig?: {
|
|
5900
|
-
stripe?: {
|
|
5901
|
-
code: string;
|
|
5902
|
-
} | undefined;
|
|
5903
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5904
|
-
customInvoicing?: {
|
|
5905
|
-
code: string;
|
|
5249
|
+
quantity?: string | undefined;
|
|
5250
|
+
discounts?: {
|
|
5251
|
+
percentage?: {
|
|
5252
|
+
percentage: number;
|
|
5253
|
+
correlationId?: string | undefined;
|
|
5254
|
+
} | undefined;
|
|
5255
|
+
usage?: {
|
|
5256
|
+
quantity: string;
|
|
5257
|
+
correlationId?: string | undefined;
|
|
5258
|
+
} | undefined;
|
|
5259
|
+
} | undefined;
|
|
5260
|
+
taxConfig?: {
|
|
5261
|
+
stripe?: {
|
|
5262
|
+
code: string;
|
|
5263
|
+
} | undefined;
|
|
5264
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5265
|
+
customInvoicing?: {
|
|
5266
|
+
code: string;
|
|
5267
|
+
} | undefined;
|
|
5268
|
+
} | undefined;
|
|
5906
5269
|
} | undefined;
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5270
|
+
perUnitAmount?: string | undefined;
|
|
5271
|
+
})[];
|
|
5272
|
+
currency: string;
|
|
5273
|
+
number?: string | undefined;
|
|
5274
|
+
}, {
|
|
5275
|
+
lines: ({
|
|
5276
|
+
name: string;
|
|
5277
|
+
type: "usage_based";
|
|
5278
|
+
quantity: string;
|
|
5279
|
+
invoiceAt: Date;
|
|
5280
|
+
period: {
|
|
5281
|
+
from: Date;
|
|
5282
|
+
to: Date;
|
|
5283
|
+
};
|
|
5284
|
+
id?: string | undefined;
|
|
5285
|
+
description?: string | undefined;
|
|
5286
|
+
featureKey?: string | undefined;
|
|
5287
|
+
metadata?: Record<string, string> | null | undefined;
|
|
5288
|
+
price?: {
|
|
5910
5289
|
type: "flat";
|
|
5911
5290
|
amount: string;
|
|
5912
5291
|
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
@@ -5940,181 +5319,8 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
5940
5319
|
type: "package";
|
|
5941
5320
|
amount: string;
|
|
5942
5321
|
quantityPerPackage: string;
|
|
5943
|
-
maximumAmount?: string | undefined;
|
|
5944
|
-
minimumAmount?: string | undefined;
|
|
5945
|
-
} | null;
|
|
5946
|
-
featureKey?: string | undefined;
|
|
5947
|
-
discounts?: {
|
|
5948
|
-
percentage?: {
|
|
5949
|
-
percentage: number;
|
|
5950
|
-
correlationId?: string | undefined;
|
|
5951
|
-
} | undefined;
|
|
5952
|
-
usage?: {
|
|
5953
|
-
quantity: string;
|
|
5954
|
-
correlationId?: string | undefined;
|
|
5955
|
-
} | undefined;
|
|
5956
|
-
} | undefined;
|
|
5957
|
-
taxConfig?: {
|
|
5958
|
-
stripe?: {
|
|
5959
|
-
code: string;
|
|
5960
|
-
} | undefined;
|
|
5961
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5962
|
-
customInvoicing?: {
|
|
5963
|
-
code: string;
|
|
5964
|
-
} | undefined;
|
|
5965
|
-
} | undefined;
|
|
5966
|
-
} | undefined;
|
|
5967
|
-
}>, zod.ZodObject<{
|
|
5968
|
-
category: zod.ZodDefault<zod.ZodEnum<["regular", "commitment"]>>;
|
|
5969
|
-
currency: zod.ZodString;
|
|
5970
|
-
customerId: zod.ZodString;
|
|
5971
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
5972
|
-
invoiceAt: zod.ZodDate;
|
|
5973
|
-
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
5974
|
-
name: zod.ZodString;
|
|
5975
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
5976
|
-
period: zod.ZodObject<{
|
|
5977
|
-
from: zod.ZodDate;
|
|
5978
|
-
to: zod.ZodDate;
|
|
5979
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5980
|
-
from: Date;
|
|
5981
|
-
to: Date;
|
|
5982
|
-
}, {
|
|
5983
|
-
from: Date;
|
|
5984
|
-
to: Date;
|
|
5985
|
-
}>;
|
|
5986
|
-
perUnitAmount: zod.ZodOptional<zod.ZodString>;
|
|
5987
|
-
quantity: zod.ZodOptional<zod.ZodString>;
|
|
5988
|
-
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
5989
|
-
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
5990
|
-
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
5991
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
5992
|
-
percentage: zod.ZodNumber;
|
|
5993
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5994
|
-
percentage: number;
|
|
5995
|
-
correlationId?: string | undefined;
|
|
5996
|
-
}, {
|
|
5997
|
-
percentage: number;
|
|
5998
|
-
correlationId?: string | undefined;
|
|
5999
|
-
}>>;
|
|
6000
|
-
usage: zod.ZodOptional<zod.ZodObject<{
|
|
6001
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
6002
|
-
quantity: zod.ZodString;
|
|
6003
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6004
|
-
quantity: string;
|
|
6005
|
-
correlationId?: string | undefined;
|
|
6006
|
-
}, {
|
|
6007
|
-
quantity: string;
|
|
6008
|
-
correlationId?: string | undefined;
|
|
6009
|
-
}>>;
|
|
6010
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6011
|
-
percentage?: {
|
|
6012
|
-
percentage: number;
|
|
6013
|
-
correlationId?: string | undefined;
|
|
6014
|
-
} | undefined;
|
|
6015
|
-
usage?: {
|
|
6016
|
-
quantity: string;
|
|
6017
|
-
correlationId?: string | undefined;
|
|
6018
|
-
} | undefined;
|
|
6019
|
-
}, {
|
|
6020
|
-
percentage?: {
|
|
6021
|
-
percentage: number;
|
|
6022
|
-
correlationId?: string | undefined;
|
|
6023
|
-
} | undefined;
|
|
6024
|
-
usage?: {
|
|
6025
|
-
quantity: string;
|
|
6026
|
-
correlationId?: string | undefined;
|
|
6027
|
-
} | undefined;
|
|
6028
|
-
}>>;
|
|
6029
|
-
price: zod.ZodNullable<zod.ZodObject<{
|
|
6030
|
-
amount: zod.ZodString;
|
|
6031
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
6032
|
-
type: zod.ZodEnum<["flat"]>;
|
|
6033
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6034
|
-
type: "flat";
|
|
6035
|
-
amount: string;
|
|
6036
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6037
|
-
}, {
|
|
6038
|
-
type: "flat";
|
|
6039
|
-
amount: string;
|
|
6040
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6041
|
-
}>>;
|
|
6042
|
-
quantity: zod.ZodOptional<zod.ZodString>;
|
|
6043
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
6044
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
6045
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
6046
|
-
code: zod.ZodString;
|
|
6047
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6048
|
-
code: string;
|
|
6049
|
-
}, {
|
|
6050
|
-
code: string;
|
|
6051
|
-
}>>;
|
|
6052
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
6053
|
-
code: zod.ZodString;
|
|
6054
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6055
|
-
code: string;
|
|
6056
|
-
}, {
|
|
6057
|
-
code: string;
|
|
6058
|
-
}>>;
|
|
6059
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6060
|
-
stripe?: {
|
|
6061
|
-
code: string;
|
|
6062
|
-
} | undefined;
|
|
6063
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6064
|
-
customInvoicing?: {
|
|
6065
|
-
code: string;
|
|
6066
|
-
} | undefined;
|
|
6067
|
-
}, {
|
|
6068
|
-
stripe?: {
|
|
6069
|
-
code: string;
|
|
6070
|
-
} | undefined;
|
|
6071
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6072
|
-
customInvoicing?: {
|
|
6073
|
-
code: string;
|
|
6074
|
-
} | undefined;
|
|
6075
|
-
}>>;
|
|
6076
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6077
|
-
price: {
|
|
6078
|
-
type: "flat";
|
|
6079
|
-
amount: string;
|
|
6080
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6081
|
-
} | null;
|
|
6082
|
-
quantity?: string | undefined;
|
|
6083
|
-
discounts?: {
|
|
6084
|
-
percentage?: {
|
|
6085
|
-
percentage: number;
|
|
6086
|
-
correlationId?: string | undefined;
|
|
6087
|
-
} | undefined;
|
|
6088
|
-
usage?: {
|
|
6089
|
-
quantity: string;
|
|
6090
|
-
correlationId?: string | undefined;
|
|
6091
|
-
} | undefined;
|
|
6092
|
-
} | undefined;
|
|
6093
|
-
taxConfig?: {
|
|
6094
|
-
stripe?: {
|
|
6095
|
-
code: string;
|
|
6096
|
-
} | undefined;
|
|
6097
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6098
|
-
customInvoicing?: {
|
|
6099
|
-
code: string;
|
|
6100
|
-
} | undefined;
|
|
6101
|
-
} | undefined;
|
|
6102
|
-
}, {
|
|
6103
|
-
price: {
|
|
6104
|
-
type: "flat";
|
|
6105
|
-
amount: string;
|
|
6106
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6107
|
-
} | null;
|
|
6108
|
-
quantity?: string | undefined;
|
|
6109
|
-
discounts?: {
|
|
6110
|
-
percentage?: {
|
|
6111
|
-
percentage: number;
|
|
6112
|
-
correlationId?: string | undefined;
|
|
6113
|
-
} | undefined;
|
|
6114
|
-
usage?: {
|
|
6115
|
-
quantity: string;
|
|
6116
|
-
correlationId?: string | undefined;
|
|
6117
|
-
} | undefined;
|
|
5322
|
+
maximumAmount?: string | undefined;
|
|
5323
|
+
minimumAmount?: string | undefined;
|
|
6118
5324
|
} | undefined;
|
|
6119
5325
|
taxConfig?: {
|
|
6120
5326
|
stripe?: {
|
|
@@ -6125,82 +5331,79 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
6125
5331
|
code: string;
|
|
6126
5332
|
} | undefined;
|
|
6127
5333
|
} | undefined;
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
metadata?: Record<string, string> | null | undefined;
|
|
6177
|
-
quantity?: string | undefined;
|
|
6178
|
-
taxConfig?: {
|
|
6179
|
-
stripe?: {
|
|
6180
|
-
code: string;
|
|
6181
|
-
} | undefined;
|
|
6182
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6183
|
-
customInvoicing?: {
|
|
6184
|
-
code: string;
|
|
6185
|
-
} | undefined;
|
|
6186
|
-
} | undefined;
|
|
6187
|
-
rateCard?: {
|
|
6188
|
-
price: {
|
|
6189
|
-
type: "flat";
|
|
6190
|
-
amount: string;
|
|
6191
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6192
|
-
} | null;
|
|
6193
|
-
quantity?: string | undefined;
|
|
6194
|
-
discounts?: {
|
|
6195
|
-
percentage?: {
|
|
6196
|
-
percentage: number;
|
|
6197
|
-
correlationId?: string | undefined;
|
|
5334
|
+
rateCard?: {
|
|
5335
|
+
price: {
|
|
5336
|
+
type: "flat";
|
|
5337
|
+
amount: string;
|
|
5338
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5339
|
+
} | {
|
|
5340
|
+
type: "unit";
|
|
5341
|
+
amount: string;
|
|
5342
|
+
maximumAmount?: string | undefined;
|
|
5343
|
+
minimumAmount?: string | undefined;
|
|
5344
|
+
} | {
|
|
5345
|
+
type: "tiered";
|
|
5346
|
+
mode: "volume" | "graduated";
|
|
5347
|
+
tiers: {
|
|
5348
|
+
flatPrice: {
|
|
5349
|
+
type: "flat";
|
|
5350
|
+
amount: string;
|
|
5351
|
+
} | null;
|
|
5352
|
+
unitPrice: {
|
|
5353
|
+
type: "unit";
|
|
5354
|
+
amount: string;
|
|
5355
|
+
} | null;
|
|
5356
|
+
upToAmount?: string | undefined;
|
|
5357
|
+
}[];
|
|
5358
|
+
maximumAmount?: string | undefined;
|
|
5359
|
+
minimumAmount?: string | undefined;
|
|
5360
|
+
} | {
|
|
5361
|
+
type: "dynamic";
|
|
5362
|
+
maximumAmount?: string | undefined;
|
|
5363
|
+
minimumAmount?: string | undefined;
|
|
5364
|
+
multiplier?: string | undefined;
|
|
5365
|
+
} | {
|
|
5366
|
+
type: "package";
|
|
5367
|
+
amount: string;
|
|
5368
|
+
quantityPerPackage: string;
|
|
5369
|
+
maximumAmount?: string | undefined;
|
|
5370
|
+
minimumAmount?: string | undefined;
|
|
5371
|
+
} | null;
|
|
5372
|
+
featureKey?: string | undefined;
|
|
5373
|
+
discounts?: {
|
|
5374
|
+
percentage?: {
|
|
5375
|
+
percentage: number;
|
|
5376
|
+
correlationId?: string | undefined;
|
|
5377
|
+
} | undefined;
|
|
5378
|
+
usage?: {
|
|
5379
|
+
quantity: string;
|
|
5380
|
+
correlationId?: string | undefined;
|
|
5381
|
+
} | undefined;
|
|
6198
5382
|
} | undefined;
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
5383
|
+
taxConfig?: {
|
|
5384
|
+
stripe?: {
|
|
5385
|
+
code: string;
|
|
5386
|
+
} | undefined;
|
|
5387
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5388
|
+
customInvoicing?: {
|
|
5389
|
+
code: string;
|
|
5390
|
+
} | undefined;
|
|
6202
5391
|
} | undefined;
|
|
6203
5392
|
} | undefined;
|
|
5393
|
+
preLinePeriodQuantity?: string | undefined;
|
|
5394
|
+
} | {
|
|
5395
|
+
name: string;
|
|
5396
|
+
type: "flat_fee";
|
|
5397
|
+
invoiceAt: Date;
|
|
5398
|
+
period: {
|
|
5399
|
+
from: Date;
|
|
5400
|
+
to: Date;
|
|
5401
|
+
};
|
|
5402
|
+
id?: string | undefined;
|
|
5403
|
+
description?: string | undefined;
|
|
5404
|
+
metadata?: Record<string, string> | null | undefined;
|
|
5405
|
+
quantity?: string | undefined;
|
|
5406
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6204
5407
|
taxConfig?: {
|
|
6205
5408
|
stripe?: {
|
|
6206
5409
|
code: string;
|
|
@@ -6210,61 +5413,127 @@ export declare const createPendingInvoiceLineBody: zod.ZodArray<zod.ZodDiscrimin
|
|
|
6210
5413
|
code: string;
|
|
6211
5414
|
} | undefined;
|
|
6212
5415
|
} | undefined;
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
taxConfig?: {
|
|
6230
|
-
stripe?: {
|
|
6231
|
-
code: string;
|
|
6232
|
-
} | undefined;
|
|
6233
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6234
|
-
customInvoicing?: {
|
|
6235
|
-
code: string;
|
|
6236
|
-
} | undefined;
|
|
6237
|
-
} | undefined;
|
|
6238
|
-
rateCard?: {
|
|
6239
|
-
price: {
|
|
6240
|
-
type: "flat";
|
|
6241
|
-
amount: string;
|
|
6242
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6243
|
-
} | null;
|
|
6244
|
-
quantity?: string | undefined;
|
|
6245
|
-
discounts?: {
|
|
6246
|
-
percentage?: {
|
|
6247
|
-
percentage: number;
|
|
6248
|
-
correlationId?: string | undefined;
|
|
6249
|
-
} | undefined;
|
|
6250
|
-
usage?: {
|
|
6251
|
-
quantity: string;
|
|
6252
|
-
correlationId?: string | undefined;
|
|
6253
|
-
} | undefined;
|
|
6254
|
-
} | undefined;
|
|
6255
|
-
taxConfig?: {
|
|
6256
|
-
stripe?: {
|
|
6257
|
-
code: string;
|
|
5416
|
+
rateCard?: {
|
|
5417
|
+
price: {
|
|
5418
|
+
type: "flat";
|
|
5419
|
+
amount: string;
|
|
5420
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5421
|
+
} | null;
|
|
5422
|
+
quantity?: string | undefined;
|
|
5423
|
+
discounts?: {
|
|
5424
|
+
percentage?: {
|
|
5425
|
+
percentage: number;
|
|
5426
|
+
correlationId?: string | undefined;
|
|
5427
|
+
} | undefined;
|
|
5428
|
+
usage?: {
|
|
5429
|
+
quantity: string;
|
|
5430
|
+
correlationId?: string | undefined;
|
|
5431
|
+
} | undefined;
|
|
6258
5432
|
} | undefined;
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
5433
|
+
taxConfig?: {
|
|
5434
|
+
stripe?: {
|
|
5435
|
+
code: string;
|
|
5436
|
+
} | undefined;
|
|
5437
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5438
|
+
customInvoicing?: {
|
|
5439
|
+
code: string;
|
|
5440
|
+
} | undefined;
|
|
6262
5441
|
} | undefined;
|
|
6263
5442
|
} | undefined;
|
|
5443
|
+
category?: "regular" | "commitment" | undefined;
|
|
5444
|
+
perUnitAmount?: string | undefined;
|
|
5445
|
+
})[];
|
|
5446
|
+
currency: string;
|
|
5447
|
+
number?: string | undefined;
|
|
5448
|
+
}>;
|
|
5449
|
+
/**
|
|
5450
|
+
* List invoices for a specific customer
|
|
5451
|
+
* @summary List invoices
|
|
5452
|
+
*/
|
|
5453
|
+
export declare const listInvoicesQueryCustomersItemRegExp: RegExp;
|
|
5454
|
+
export declare const listInvoicesQueryPageDefault = 1;
|
|
5455
|
+
export declare const listInvoicesQueryPageSizeDefault = 100;
|
|
5456
|
+
export declare const listInvoicesQueryPageSizeMax = 1000;
|
|
5457
|
+
export declare const listInvoicesQueryParams: zod.ZodObject<{
|
|
5458
|
+
createdAfter: zod.ZodOptional<zod.ZodDate>;
|
|
5459
|
+
createdBefore: zod.ZodOptional<zod.ZodDate>;
|
|
5460
|
+
customers: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
5461
|
+
expand: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<["lines", "preceding", "workflow.apps"]>, "many">>;
|
|
5462
|
+
extendedStatuses: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
5463
|
+
includeDeleted: zod.ZodOptional<zod.ZodBoolean>;
|
|
5464
|
+
issuedAfter: zod.ZodOptional<zod.ZodDate>;
|
|
5465
|
+
issuedBefore: zod.ZodOptional<zod.ZodDate>;
|
|
5466
|
+
order: zod.ZodOptional<zod.ZodEnum<["ASC", "DESC"]>>;
|
|
5467
|
+
orderBy: zod.ZodOptional<zod.ZodEnum<["customer.name", "issuedAt", "status", "createdAt", "updatedAt"]>>;
|
|
5468
|
+
page: zod.ZodDefault<zod.ZodNumber>;
|
|
5469
|
+
pageSize: zod.ZodDefault<zod.ZodNumber>;
|
|
5470
|
+
statuses: zod.ZodOptional<zod.ZodArray<zod.ZodEnum<["gathering", "draft", "issuing", "issued", "payment_processing", "overdue", "paid", "uncollectible", "voided"]>, "many">>;
|
|
5471
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5472
|
+
page: number;
|
|
5473
|
+
pageSize: number;
|
|
5474
|
+
order?: "ASC" | "DESC" | undefined;
|
|
5475
|
+
orderBy?: "createdAt" | "updatedAt" | "customer.name" | "issuedAt" | "status" | undefined;
|
|
5476
|
+
includeDeleted?: boolean | undefined;
|
|
5477
|
+
expand?: ("lines" | "preceding" | "workflow.apps")[] | undefined;
|
|
5478
|
+
createdAfter?: Date | undefined;
|
|
5479
|
+
createdBefore?: Date | undefined;
|
|
5480
|
+
customers?: string[] | undefined;
|
|
5481
|
+
extendedStatuses?: string[] | undefined;
|
|
5482
|
+
issuedAfter?: Date | undefined;
|
|
5483
|
+
issuedBefore?: Date | undefined;
|
|
5484
|
+
statuses?: ("draft" | "paid" | "gathering" | "issuing" | "issued" | "payment_processing" | "overdue" | "uncollectible" | "voided")[] | undefined;
|
|
5485
|
+
}, {
|
|
5486
|
+
page?: number | undefined;
|
|
5487
|
+
pageSize?: number | undefined;
|
|
5488
|
+
order?: "ASC" | "DESC" | undefined;
|
|
5489
|
+
orderBy?: "createdAt" | "updatedAt" | "customer.name" | "issuedAt" | "status" | undefined;
|
|
5490
|
+
includeDeleted?: boolean | undefined;
|
|
5491
|
+
expand?: ("lines" | "preceding" | "workflow.apps")[] | undefined;
|
|
5492
|
+
createdAfter?: Date | undefined;
|
|
5493
|
+
createdBefore?: Date | undefined;
|
|
5494
|
+
customers?: string[] | undefined;
|
|
5495
|
+
extendedStatuses?: string[] | undefined;
|
|
5496
|
+
issuedAfter?: Date | undefined;
|
|
5497
|
+
issuedBefore?: Date | undefined;
|
|
5498
|
+
statuses?: ("draft" | "paid" | "gathering" | "issuing" | "issued" | "payment_processing" | "overdue" | "uncollectible" | "voided")[] | undefined;
|
|
5499
|
+
}>;
|
|
5500
|
+
/**
|
|
5501
|
+
* Create a new invoice from the pending line items.
|
|
5502
|
+
|
|
5503
|
+
This should be only called if for some reason we need to invoice a customer outside of the normal billing cycle.
|
|
5504
|
+
|
|
5505
|
+
When creating an invoice, the pending line items will be marked as invoiced and the invoice will be created with the total amount of the pending items.
|
|
5506
|
+
|
|
5507
|
+
New pending line items will be created for the period between now() and the next billing cycle's begining date for any metered item.
|
|
5508
|
+
|
|
5509
|
+
The call can return multiple invoices if the pending line items are in different currencies.
|
|
5510
|
+
* @summary Invoice a customer based on the pending line items
|
|
5511
|
+
*/
|
|
5512
|
+
export declare const invoicePendingLinesActionBodyFiltersLineIdsItemRegExp: RegExp;
|
|
5513
|
+
export declare const invoicePendingLinesActionBodyCustomerIdRegExp: RegExp;
|
|
5514
|
+
export declare const invoicePendingLinesActionBody: zod.ZodObject<{
|
|
5515
|
+
asOf: zod.ZodOptional<zod.ZodDate>;
|
|
5516
|
+
customerId: zod.ZodString;
|
|
5517
|
+
filters: zod.ZodOptional<zod.ZodObject<{
|
|
5518
|
+
lineIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
5519
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5520
|
+
lineIds?: string[] | undefined;
|
|
5521
|
+
}, {
|
|
5522
|
+
lineIds?: string[] | undefined;
|
|
5523
|
+
}>>;
|
|
5524
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5525
|
+
customerId: string;
|
|
5526
|
+
asOf?: Date | undefined;
|
|
5527
|
+
filters?: {
|
|
5528
|
+
lineIds?: string[] | undefined;
|
|
6264
5529
|
} | undefined;
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
5530
|
+
}, {
|
|
5531
|
+
customerId: string;
|
|
5532
|
+
asOf?: Date | undefined;
|
|
5533
|
+
filters?: {
|
|
5534
|
+
lineIds?: string[] | undefined;
|
|
5535
|
+
} | undefined;
|
|
5536
|
+
}>;
|
|
6268
5537
|
/**
|
|
6269
5538
|
* Get an invoice by ID.
|
|
6270
5539
|
* @summary Get an invoice
|