@openmeter/sdk 1.0.0-beta-491b73a4e260 → 1.0.0-beta-dc555220d9fa
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/schemas.d.cts +254 -481
- package/dist/cjs/src/zod/index.cjs +1085 -1689
- package/dist/cjs/src/zod/index.d.cts +572 -1823
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.3381c030.tsbuildinfo → tsconfig.0bb1bd27.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.44e20437.tsbuildinfo → tsconfig.3f5d0beb.tsbuildinfo} +1 -1
- package/dist/src/client/schemas.d.ts +254 -481
- package/dist/src/zod/index.d.ts +572 -1823
- package/dist/src/zod/index.js +1065 -1668
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -2558,23 +2558,9 @@ export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAm
|
|
|
2558
2558
|
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp: RegExp;
|
|
2559
2559
|
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne: RegExp;
|
|
2560
2560
|
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp: RegExp;
|
|
2561
|
-
export declare const createPendingInvoiceLineBodyLinesItemNameMaxOne = 256;
|
|
2562
|
-
export declare const createPendingInvoiceLineBodyLinesItemDescriptionMaxOne = 1024;
|
|
2563
|
-
export declare const createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExpOne: RegExp;
|
|
2564
|
-
export declare const createPendingInvoiceLineBodyLinesItemPerUnitAmountRegExpOne: RegExp;
|
|
2565
|
-
export declare const createPendingInvoiceLineBodyLinesItemPaymentTermDefault = "in_advance";
|
|
2566
|
-
export declare const createPendingInvoiceLineBodyLinesItemQuantityRegExpOne: RegExp;
|
|
2567
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExpOne: RegExp;
|
|
2568
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpSeven: RegExp;
|
|
2569
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardPricePaymentTermDefaultTwo = "in_advance";
|
|
2570
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardQuantityRegExpOne: RegExp;
|
|
2571
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExpOne: RegExp;
|
|
2572
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpThree: RegExp;
|
|
2573
|
-
export declare const createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExpOne: RegExp;
|
|
2574
|
-
export declare const createPendingInvoiceLineBodyLinesItemCategoryDefault = "regular";
|
|
2575
2561
|
export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
2576
2562
|
currency: zod.ZodString;
|
|
2577
|
-
lines: zod.ZodArray<zod.
|
|
2563
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
2578
2564
|
description: zod.ZodOptional<zod.ZodString>;
|
|
2579
2565
|
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
2580
2566
|
invoiceAt: zod.ZodDate;
|
|
@@ -3097,10 +3083,8 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
|
3097
3083
|
code: string;
|
|
3098
3084
|
} | undefined;
|
|
3099
3085
|
}>>;
|
|
3100
|
-
type: zod.ZodEnum<["usage_based"]>;
|
|
3101
3086
|
}, "strip", zod.ZodTypeAny, {
|
|
3102
3087
|
name: string;
|
|
3103
|
-
type: "usage_based";
|
|
3104
3088
|
invoiceAt: Date;
|
|
3105
3089
|
period: {
|
|
3106
3090
|
from: Date;
|
|
@@ -3216,7 +3200,6 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
|
3216
3200
|
} | undefined;
|
|
3217
3201
|
}, {
|
|
3218
3202
|
name: string;
|
|
3219
|
-
type: "usage_based";
|
|
3220
3203
|
invoiceAt: Date;
|
|
3221
3204
|
period: {
|
|
3222
3205
|
from: Date;
|
|
@@ -3330,120 +3313,103 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
|
3330
3313
|
} | undefined;
|
|
3331
3314
|
} | undefined;
|
|
3332
3315
|
} | undefined;
|
|
3333
|
-
}>,
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
3340
|
-
period: zod.ZodObject<{
|
|
3341
|
-
from: zod.ZodDate;
|
|
3342
|
-
to: zod.ZodDate;
|
|
3343
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3344
|
-
from: Date;
|
|
3345
|
-
to: Date;
|
|
3346
|
-
}, {
|
|
3316
|
+
}>, "many">;
|
|
3317
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3318
|
+
lines: {
|
|
3319
|
+
name: string;
|
|
3320
|
+
invoiceAt: Date;
|
|
3321
|
+
period: {
|
|
3347
3322
|
from: Date;
|
|
3348
3323
|
to: Date;
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
}
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
}
|
|
3324
|
+
};
|
|
3325
|
+
description?: string | undefined;
|
|
3326
|
+
featureKey?: string | undefined;
|
|
3327
|
+
metadata?: Record<string, string> | null | undefined;
|
|
3328
|
+
price?: {
|
|
3329
|
+
type: "flat";
|
|
3330
|
+
amount: string;
|
|
3331
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
3332
|
+
} | {
|
|
3333
|
+
type: "unit";
|
|
3334
|
+
amount: string;
|
|
3335
|
+
maximumAmount?: string | undefined;
|
|
3336
|
+
minimumAmount?: string | undefined;
|
|
3337
|
+
} | {
|
|
3338
|
+
type: "tiered";
|
|
3339
|
+
mode: "volume" | "graduated";
|
|
3340
|
+
tiers: {
|
|
3341
|
+
flatPrice: {
|
|
3342
|
+
type: "flat";
|
|
3343
|
+
amount: string;
|
|
3344
|
+
} | null;
|
|
3345
|
+
unitPrice: {
|
|
3346
|
+
type: "unit";
|
|
3347
|
+
amount: string;
|
|
3348
|
+
} | null;
|
|
3349
|
+
upToAmount?: string | undefined;
|
|
3350
|
+
}[];
|
|
3351
|
+
maximumAmount?: string | undefined;
|
|
3352
|
+
minimumAmount?: string | undefined;
|
|
3353
|
+
} | {
|
|
3354
|
+
type: "dynamic";
|
|
3355
|
+
multiplier: string;
|
|
3356
|
+
maximumAmount?: string | undefined;
|
|
3357
|
+
minimumAmount?: string | undefined;
|
|
3358
|
+
} | {
|
|
3359
|
+
type: "package";
|
|
3360
|
+
amount: string;
|
|
3361
|
+
quantityPerPackage: string;
|
|
3362
|
+
maximumAmount?: string | undefined;
|
|
3363
|
+
minimumAmount?: string | undefined;
|
|
3364
|
+
} | undefined;
|
|
3365
|
+
taxConfig?: {
|
|
3366
|
+
stripe?: {
|
|
3367
|
+
code: string;
|
|
3368
|
+
} | undefined;
|
|
3369
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3370
|
+
customInvoicing?: {
|
|
3371
|
+
code: string;
|
|
3372
|
+
} | undefined;
|
|
3373
|
+
} | undefined;
|
|
3374
|
+
rateCard?: {
|
|
3375
|
+
price: {
|
|
3398
3376
|
type: "flat";
|
|
3399
3377
|
amount: string;
|
|
3400
3378
|
paymentTerm: "in_advance" | "in_arrears";
|
|
3401
|
-
}
|
|
3402
|
-
type: "
|
|
3379
|
+
} | {
|
|
3380
|
+
type: "unit";
|
|
3403
3381
|
amount: string;
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
code: string;
|
|
3430
|
-
} | undefined;
|
|
3431
|
-
}, {
|
|
3432
|
-
stripe?: {
|
|
3433
|
-
code: string;
|
|
3434
|
-
} | undefined;
|
|
3435
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3436
|
-
customInvoicing?: {
|
|
3437
|
-
code: string;
|
|
3438
|
-
} | undefined;
|
|
3439
|
-
}>>;
|
|
3440
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3441
|
-
price: {
|
|
3442
|
-
type: "flat";
|
|
3382
|
+
maximumAmount?: string | undefined;
|
|
3383
|
+
minimumAmount?: string | undefined;
|
|
3384
|
+
} | {
|
|
3385
|
+
type: "tiered";
|
|
3386
|
+
mode: "volume" | "graduated";
|
|
3387
|
+
tiers: {
|
|
3388
|
+
flatPrice: {
|
|
3389
|
+
type: "flat";
|
|
3390
|
+
amount: string;
|
|
3391
|
+
} | null;
|
|
3392
|
+
unitPrice: {
|
|
3393
|
+
type: "unit";
|
|
3394
|
+
amount: string;
|
|
3395
|
+
} | null;
|
|
3396
|
+
upToAmount?: string | undefined;
|
|
3397
|
+
}[];
|
|
3398
|
+
maximumAmount?: string | undefined;
|
|
3399
|
+
minimumAmount?: string | undefined;
|
|
3400
|
+
} | {
|
|
3401
|
+
type: "dynamic";
|
|
3402
|
+
multiplier: string;
|
|
3403
|
+
maximumAmount?: string | undefined;
|
|
3404
|
+
minimumAmount?: string | undefined;
|
|
3405
|
+
} | {
|
|
3406
|
+
type: "package";
|
|
3443
3407
|
amount: string;
|
|
3444
|
-
|
|
3408
|
+
quantityPerPackage: string;
|
|
3409
|
+
maximumAmount?: string | undefined;
|
|
3410
|
+
minimumAmount?: string | undefined;
|
|
3445
3411
|
} | null;
|
|
3446
|
-
|
|
3412
|
+
featureKey?: string | undefined;
|
|
3447
3413
|
discounts?: {
|
|
3448
3414
|
percentage?: {
|
|
3449
3415
|
percentage: number;
|
|
@@ -3463,231 +3429,71 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
|
3463
3429
|
code: string;
|
|
3464
3430
|
} | undefined;
|
|
3465
3431
|
} | undefined;
|
|
3466
|
-
}
|
|
3432
|
+
} | undefined;
|
|
3433
|
+
}[];
|
|
3434
|
+
currency: string;
|
|
3435
|
+
}, {
|
|
3436
|
+
lines: {
|
|
3437
|
+
name: string;
|
|
3438
|
+
invoiceAt: Date;
|
|
3439
|
+
period: {
|
|
3440
|
+
from: Date;
|
|
3441
|
+
to: Date;
|
|
3442
|
+
};
|
|
3443
|
+
description?: string | undefined;
|
|
3444
|
+
featureKey?: string | undefined;
|
|
3445
|
+
metadata?: Record<string, string> | null | undefined;
|
|
3446
|
+
price?: {
|
|
3447
|
+
type: "flat";
|
|
3448
|
+
amount: string;
|
|
3449
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3450
|
+
} | {
|
|
3451
|
+
type: "unit";
|
|
3452
|
+
amount: string;
|
|
3453
|
+
maximumAmount?: string | undefined;
|
|
3454
|
+
minimumAmount?: string | undefined;
|
|
3455
|
+
} | {
|
|
3456
|
+
type: "tiered";
|
|
3457
|
+
mode: "volume" | "graduated";
|
|
3458
|
+
tiers: {
|
|
3459
|
+
flatPrice: {
|
|
3460
|
+
type: "flat";
|
|
3461
|
+
amount: string;
|
|
3462
|
+
} | null;
|
|
3463
|
+
unitPrice: {
|
|
3464
|
+
type: "unit";
|
|
3465
|
+
amount: string;
|
|
3466
|
+
} | null;
|
|
3467
|
+
upToAmount?: string | undefined;
|
|
3468
|
+
}[];
|
|
3469
|
+
maximumAmount?: string | undefined;
|
|
3470
|
+
minimumAmount?: string | undefined;
|
|
3471
|
+
} | {
|
|
3472
|
+
type: "dynamic";
|
|
3473
|
+
maximumAmount?: string | undefined;
|
|
3474
|
+
minimumAmount?: string | undefined;
|
|
3475
|
+
multiplier?: string | undefined;
|
|
3476
|
+
} | {
|
|
3477
|
+
type: "package";
|
|
3478
|
+
amount: string;
|
|
3479
|
+
quantityPerPackage: string;
|
|
3480
|
+
maximumAmount?: string | undefined;
|
|
3481
|
+
minimumAmount?: string | undefined;
|
|
3482
|
+
} | undefined;
|
|
3483
|
+
taxConfig?: {
|
|
3484
|
+
stripe?: {
|
|
3485
|
+
code: string;
|
|
3486
|
+
} | undefined;
|
|
3487
|
+
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3488
|
+
customInvoicing?: {
|
|
3489
|
+
code: string;
|
|
3490
|
+
} | undefined;
|
|
3491
|
+
} | undefined;
|
|
3492
|
+
rateCard?: {
|
|
3467
3493
|
price: {
|
|
3468
3494
|
type: "flat";
|
|
3469
3495
|
amount: string;
|
|
3470
3496
|
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3471
|
-
} | null;
|
|
3472
|
-
quantity?: string | undefined;
|
|
3473
|
-
discounts?: {
|
|
3474
|
-
percentage?: {
|
|
3475
|
-
percentage: number;
|
|
3476
|
-
correlationId?: string | undefined;
|
|
3477
|
-
} | undefined;
|
|
3478
|
-
usage?: {
|
|
3479
|
-
quantity: string;
|
|
3480
|
-
correlationId?: string | undefined;
|
|
3481
|
-
} | undefined;
|
|
3482
|
-
} | undefined;
|
|
3483
|
-
taxConfig?: {
|
|
3484
|
-
stripe?: {
|
|
3485
|
-
code: string;
|
|
3486
|
-
} | undefined;
|
|
3487
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3488
|
-
customInvoicing?: {
|
|
3489
|
-
code: string;
|
|
3490
|
-
} | undefined;
|
|
3491
|
-
} | undefined;
|
|
3492
|
-
}>>;
|
|
3493
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
3494
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
3495
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
3496
|
-
code: zod.ZodString;
|
|
3497
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3498
|
-
code: string;
|
|
3499
|
-
}, {
|
|
3500
|
-
code: string;
|
|
3501
|
-
}>>;
|
|
3502
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
3503
|
-
code: zod.ZodString;
|
|
3504
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3505
|
-
code: string;
|
|
3506
|
-
}, {
|
|
3507
|
-
code: string;
|
|
3508
|
-
}>>;
|
|
3509
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3510
|
-
stripe?: {
|
|
3511
|
-
code: string;
|
|
3512
|
-
} | undefined;
|
|
3513
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3514
|
-
customInvoicing?: {
|
|
3515
|
-
code: string;
|
|
3516
|
-
} | undefined;
|
|
3517
|
-
}, {
|
|
3518
|
-
stripe?: {
|
|
3519
|
-
code: string;
|
|
3520
|
-
} | undefined;
|
|
3521
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3522
|
-
customInvoicing?: {
|
|
3523
|
-
code: string;
|
|
3524
|
-
} | undefined;
|
|
3525
|
-
}>>;
|
|
3526
|
-
type: zod.ZodEnum<["flat_fee"]>;
|
|
3527
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3528
|
-
name: string;
|
|
3529
|
-
type: "flat_fee";
|
|
3530
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
3531
|
-
invoiceAt: Date;
|
|
3532
|
-
period: {
|
|
3533
|
-
from: Date;
|
|
3534
|
-
to: Date;
|
|
3535
|
-
};
|
|
3536
|
-
category: "regular" | "commitment";
|
|
3537
|
-
description?: string | undefined;
|
|
3538
|
-
metadata?: Record<string, string> | null | undefined;
|
|
3539
|
-
quantity?: string | undefined;
|
|
3540
|
-
taxConfig?: {
|
|
3541
|
-
stripe?: {
|
|
3542
|
-
code: string;
|
|
3543
|
-
} | undefined;
|
|
3544
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3545
|
-
customInvoicing?: {
|
|
3546
|
-
code: string;
|
|
3547
|
-
} | undefined;
|
|
3548
|
-
} | undefined;
|
|
3549
|
-
rateCard?: {
|
|
3550
|
-
price: {
|
|
3551
|
-
type: "flat";
|
|
3552
|
-
amount: string;
|
|
3553
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
3554
|
-
} | null;
|
|
3555
|
-
quantity?: string | undefined;
|
|
3556
|
-
discounts?: {
|
|
3557
|
-
percentage?: {
|
|
3558
|
-
percentage: number;
|
|
3559
|
-
correlationId?: string | undefined;
|
|
3560
|
-
} | undefined;
|
|
3561
|
-
usage?: {
|
|
3562
|
-
quantity: string;
|
|
3563
|
-
correlationId?: string | undefined;
|
|
3564
|
-
} | undefined;
|
|
3565
|
-
} | undefined;
|
|
3566
|
-
taxConfig?: {
|
|
3567
|
-
stripe?: {
|
|
3568
|
-
code: string;
|
|
3569
|
-
} | undefined;
|
|
3570
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3571
|
-
customInvoicing?: {
|
|
3572
|
-
code: string;
|
|
3573
|
-
} | undefined;
|
|
3574
|
-
} | undefined;
|
|
3575
|
-
} | undefined;
|
|
3576
|
-
perUnitAmount?: string | undefined;
|
|
3577
|
-
}, {
|
|
3578
|
-
name: string;
|
|
3579
|
-
type: "flat_fee";
|
|
3580
|
-
invoiceAt: Date;
|
|
3581
|
-
period: {
|
|
3582
|
-
from: Date;
|
|
3583
|
-
to: Date;
|
|
3584
|
-
};
|
|
3585
|
-
description?: string | undefined;
|
|
3586
|
-
metadata?: Record<string, string> | null | undefined;
|
|
3587
|
-
quantity?: string | undefined;
|
|
3588
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3589
|
-
taxConfig?: {
|
|
3590
|
-
stripe?: {
|
|
3591
|
-
code: string;
|
|
3592
|
-
} | undefined;
|
|
3593
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3594
|
-
customInvoicing?: {
|
|
3595
|
-
code: string;
|
|
3596
|
-
} | undefined;
|
|
3597
|
-
} | undefined;
|
|
3598
|
-
rateCard?: {
|
|
3599
|
-
price: {
|
|
3600
|
-
type: "flat";
|
|
3601
|
-
amount: string;
|
|
3602
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3603
|
-
} | null;
|
|
3604
|
-
quantity?: string | undefined;
|
|
3605
|
-
discounts?: {
|
|
3606
|
-
percentage?: {
|
|
3607
|
-
percentage: number;
|
|
3608
|
-
correlationId?: string | undefined;
|
|
3609
|
-
} | undefined;
|
|
3610
|
-
usage?: {
|
|
3611
|
-
quantity: string;
|
|
3612
|
-
correlationId?: string | undefined;
|
|
3613
|
-
} | undefined;
|
|
3614
|
-
} | undefined;
|
|
3615
|
-
taxConfig?: {
|
|
3616
|
-
stripe?: {
|
|
3617
|
-
code: string;
|
|
3618
|
-
} | undefined;
|
|
3619
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3620
|
-
customInvoicing?: {
|
|
3621
|
-
code: string;
|
|
3622
|
-
} | undefined;
|
|
3623
|
-
} | undefined;
|
|
3624
|
-
} | undefined;
|
|
3625
|
-
category?: "regular" | "commitment" | undefined;
|
|
3626
|
-
perUnitAmount?: string | undefined;
|
|
3627
|
-
}>]>, "many">;
|
|
3628
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3629
|
-
lines: ({
|
|
3630
|
-
name: string;
|
|
3631
|
-
type: "usage_based";
|
|
3632
|
-
invoiceAt: Date;
|
|
3633
|
-
period: {
|
|
3634
|
-
from: Date;
|
|
3635
|
-
to: Date;
|
|
3636
|
-
};
|
|
3637
|
-
description?: string | undefined;
|
|
3638
|
-
featureKey?: string | undefined;
|
|
3639
|
-
metadata?: Record<string, string> | null | undefined;
|
|
3640
|
-
price?: {
|
|
3641
|
-
type: "flat";
|
|
3642
|
-
amount: string;
|
|
3643
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
3644
|
-
} | {
|
|
3645
|
-
type: "unit";
|
|
3646
|
-
amount: string;
|
|
3647
|
-
maximumAmount?: string | undefined;
|
|
3648
|
-
minimumAmount?: string | undefined;
|
|
3649
|
-
} | {
|
|
3650
|
-
type: "tiered";
|
|
3651
|
-
mode: "volume" | "graduated";
|
|
3652
|
-
tiers: {
|
|
3653
|
-
flatPrice: {
|
|
3654
|
-
type: "flat";
|
|
3655
|
-
amount: string;
|
|
3656
|
-
} | null;
|
|
3657
|
-
unitPrice: {
|
|
3658
|
-
type: "unit";
|
|
3659
|
-
amount: string;
|
|
3660
|
-
} | null;
|
|
3661
|
-
upToAmount?: string | undefined;
|
|
3662
|
-
}[];
|
|
3663
|
-
maximumAmount?: string | undefined;
|
|
3664
|
-
minimumAmount?: string | undefined;
|
|
3665
|
-
} | {
|
|
3666
|
-
type: "dynamic";
|
|
3667
|
-
multiplier: string;
|
|
3668
|
-
maximumAmount?: string | undefined;
|
|
3669
|
-
minimumAmount?: string | undefined;
|
|
3670
|
-
} | {
|
|
3671
|
-
type: "package";
|
|
3672
|
-
amount: string;
|
|
3673
|
-
quantityPerPackage: string;
|
|
3674
|
-
maximumAmount?: string | undefined;
|
|
3675
|
-
minimumAmount?: string | undefined;
|
|
3676
|
-
} | undefined;
|
|
3677
|
-
taxConfig?: {
|
|
3678
|
-
stripe?: {
|
|
3679
|
-
code: string;
|
|
3680
|
-
} | undefined;
|
|
3681
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3682
|
-
customInvoicing?: {
|
|
3683
|
-
code: string;
|
|
3684
|
-
} | undefined;
|
|
3685
|
-
} | undefined;
|
|
3686
|
-
rateCard?: {
|
|
3687
|
-
price: {
|
|
3688
|
-
type: "flat";
|
|
3689
|
-
amount: string;
|
|
3690
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
3691
3497
|
} | {
|
|
3692
3498
|
type: "unit";
|
|
3693
3499
|
amount: string;
|
|
@@ -3711,9 +3517,9 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
|
3711
3517
|
minimumAmount?: string | undefined;
|
|
3712
3518
|
} | {
|
|
3713
3519
|
type: "dynamic";
|
|
3714
|
-
multiplier: string;
|
|
3715
3520
|
maximumAmount?: string | undefined;
|
|
3716
3521
|
minimumAmount?: string | undefined;
|
|
3522
|
+
multiplier?: string | undefined;
|
|
3717
3523
|
} | {
|
|
3718
3524
|
type: "package";
|
|
3719
3525
|
amount: string;
|
|
@@ -3742,226 +3548,7 @@ export declare const createPendingInvoiceLineBody: zod.ZodObject<{
|
|
|
3742
3548
|
} | undefined;
|
|
3743
3549
|
} | undefined;
|
|
3744
3550
|
} | undefined;
|
|
3745
|
-
}
|
|
3746
|
-
name: string;
|
|
3747
|
-
type: "flat_fee";
|
|
3748
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
3749
|
-
invoiceAt: Date;
|
|
3750
|
-
period: {
|
|
3751
|
-
from: Date;
|
|
3752
|
-
to: Date;
|
|
3753
|
-
};
|
|
3754
|
-
category: "regular" | "commitment";
|
|
3755
|
-
description?: string | undefined;
|
|
3756
|
-
metadata?: Record<string, string> | null | undefined;
|
|
3757
|
-
quantity?: string | undefined;
|
|
3758
|
-
taxConfig?: {
|
|
3759
|
-
stripe?: {
|
|
3760
|
-
code: string;
|
|
3761
|
-
} | undefined;
|
|
3762
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3763
|
-
customInvoicing?: {
|
|
3764
|
-
code: string;
|
|
3765
|
-
} | undefined;
|
|
3766
|
-
} | undefined;
|
|
3767
|
-
rateCard?: {
|
|
3768
|
-
price: {
|
|
3769
|
-
type: "flat";
|
|
3770
|
-
amount: string;
|
|
3771
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
3772
|
-
} | null;
|
|
3773
|
-
quantity?: string | undefined;
|
|
3774
|
-
discounts?: {
|
|
3775
|
-
percentage?: {
|
|
3776
|
-
percentage: number;
|
|
3777
|
-
correlationId?: string | undefined;
|
|
3778
|
-
} | undefined;
|
|
3779
|
-
usage?: {
|
|
3780
|
-
quantity: string;
|
|
3781
|
-
correlationId?: string | undefined;
|
|
3782
|
-
} | undefined;
|
|
3783
|
-
} | undefined;
|
|
3784
|
-
taxConfig?: {
|
|
3785
|
-
stripe?: {
|
|
3786
|
-
code: string;
|
|
3787
|
-
} | undefined;
|
|
3788
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3789
|
-
customInvoicing?: {
|
|
3790
|
-
code: string;
|
|
3791
|
-
} | undefined;
|
|
3792
|
-
} | undefined;
|
|
3793
|
-
} | undefined;
|
|
3794
|
-
perUnitAmount?: string | undefined;
|
|
3795
|
-
})[];
|
|
3796
|
-
currency: string;
|
|
3797
|
-
}, {
|
|
3798
|
-
lines: ({
|
|
3799
|
-
name: string;
|
|
3800
|
-
type: "usage_based";
|
|
3801
|
-
invoiceAt: Date;
|
|
3802
|
-
period: {
|
|
3803
|
-
from: Date;
|
|
3804
|
-
to: Date;
|
|
3805
|
-
};
|
|
3806
|
-
description?: string | undefined;
|
|
3807
|
-
featureKey?: string | undefined;
|
|
3808
|
-
metadata?: Record<string, string> | null | undefined;
|
|
3809
|
-
price?: {
|
|
3810
|
-
type: "flat";
|
|
3811
|
-
amount: string;
|
|
3812
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3813
|
-
} | {
|
|
3814
|
-
type: "unit";
|
|
3815
|
-
amount: string;
|
|
3816
|
-
maximumAmount?: string | undefined;
|
|
3817
|
-
minimumAmount?: string | undefined;
|
|
3818
|
-
} | {
|
|
3819
|
-
type: "tiered";
|
|
3820
|
-
mode: "volume" | "graduated";
|
|
3821
|
-
tiers: {
|
|
3822
|
-
flatPrice: {
|
|
3823
|
-
type: "flat";
|
|
3824
|
-
amount: string;
|
|
3825
|
-
} | null;
|
|
3826
|
-
unitPrice: {
|
|
3827
|
-
type: "unit";
|
|
3828
|
-
amount: string;
|
|
3829
|
-
} | null;
|
|
3830
|
-
upToAmount?: string | undefined;
|
|
3831
|
-
}[];
|
|
3832
|
-
maximumAmount?: string | undefined;
|
|
3833
|
-
minimumAmount?: string | undefined;
|
|
3834
|
-
} | {
|
|
3835
|
-
type: "dynamic";
|
|
3836
|
-
maximumAmount?: string | undefined;
|
|
3837
|
-
minimumAmount?: string | undefined;
|
|
3838
|
-
multiplier?: string | undefined;
|
|
3839
|
-
} | {
|
|
3840
|
-
type: "package";
|
|
3841
|
-
amount: string;
|
|
3842
|
-
quantityPerPackage: string;
|
|
3843
|
-
maximumAmount?: string | undefined;
|
|
3844
|
-
minimumAmount?: string | undefined;
|
|
3845
|
-
} | undefined;
|
|
3846
|
-
taxConfig?: {
|
|
3847
|
-
stripe?: {
|
|
3848
|
-
code: string;
|
|
3849
|
-
} | undefined;
|
|
3850
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3851
|
-
customInvoicing?: {
|
|
3852
|
-
code: string;
|
|
3853
|
-
} | undefined;
|
|
3854
|
-
} | undefined;
|
|
3855
|
-
rateCard?: {
|
|
3856
|
-
price: {
|
|
3857
|
-
type: "flat";
|
|
3858
|
-
amount: string;
|
|
3859
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3860
|
-
} | {
|
|
3861
|
-
type: "unit";
|
|
3862
|
-
amount: string;
|
|
3863
|
-
maximumAmount?: string | undefined;
|
|
3864
|
-
minimumAmount?: string | undefined;
|
|
3865
|
-
} | {
|
|
3866
|
-
type: "tiered";
|
|
3867
|
-
mode: "volume" | "graduated";
|
|
3868
|
-
tiers: {
|
|
3869
|
-
flatPrice: {
|
|
3870
|
-
type: "flat";
|
|
3871
|
-
amount: string;
|
|
3872
|
-
} | null;
|
|
3873
|
-
unitPrice: {
|
|
3874
|
-
type: "unit";
|
|
3875
|
-
amount: string;
|
|
3876
|
-
} | null;
|
|
3877
|
-
upToAmount?: string | undefined;
|
|
3878
|
-
}[];
|
|
3879
|
-
maximumAmount?: string | undefined;
|
|
3880
|
-
minimumAmount?: string | undefined;
|
|
3881
|
-
} | {
|
|
3882
|
-
type: "dynamic";
|
|
3883
|
-
maximumAmount?: string | undefined;
|
|
3884
|
-
minimumAmount?: string | undefined;
|
|
3885
|
-
multiplier?: string | undefined;
|
|
3886
|
-
} | {
|
|
3887
|
-
type: "package";
|
|
3888
|
-
amount: string;
|
|
3889
|
-
quantityPerPackage: string;
|
|
3890
|
-
maximumAmount?: string | undefined;
|
|
3891
|
-
minimumAmount?: string | undefined;
|
|
3892
|
-
} | null;
|
|
3893
|
-
featureKey?: string | undefined;
|
|
3894
|
-
discounts?: {
|
|
3895
|
-
percentage?: {
|
|
3896
|
-
percentage: number;
|
|
3897
|
-
correlationId?: string | undefined;
|
|
3898
|
-
} | undefined;
|
|
3899
|
-
usage?: {
|
|
3900
|
-
quantity: string;
|
|
3901
|
-
correlationId?: string | undefined;
|
|
3902
|
-
} | undefined;
|
|
3903
|
-
} | undefined;
|
|
3904
|
-
taxConfig?: {
|
|
3905
|
-
stripe?: {
|
|
3906
|
-
code: string;
|
|
3907
|
-
} | undefined;
|
|
3908
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3909
|
-
customInvoicing?: {
|
|
3910
|
-
code: string;
|
|
3911
|
-
} | undefined;
|
|
3912
|
-
} | undefined;
|
|
3913
|
-
} | undefined;
|
|
3914
|
-
} | {
|
|
3915
|
-
name: string;
|
|
3916
|
-
type: "flat_fee";
|
|
3917
|
-
invoiceAt: Date;
|
|
3918
|
-
period: {
|
|
3919
|
-
from: Date;
|
|
3920
|
-
to: Date;
|
|
3921
|
-
};
|
|
3922
|
-
description?: string | undefined;
|
|
3923
|
-
metadata?: Record<string, string> | null | undefined;
|
|
3924
|
-
quantity?: string | undefined;
|
|
3925
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3926
|
-
taxConfig?: {
|
|
3927
|
-
stripe?: {
|
|
3928
|
-
code: string;
|
|
3929
|
-
} | undefined;
|
|
3930
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3931
|
-
customInvoicing?: {
|
|
3932
|
-
code: string;
|
|
3933
|
-
} | undefined;
|
|
3934
|
-
} | undefined;
|
|
3935
|
-
rateCard?: {
|
|
3936
|
-
price: {
|
|
3937
|
-
type: "flat";
|
|
3938
|
-
amount: string;
|
|
3939
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
3940
|
-
} | null;
|
|
3941
|
-
quantity?: string | undefined;
|
|
3942
|
-
discounts?: {
|
|
3943
|
-
percentage?: {
|
|
3944
|
-
percentage: number;
|
|
3945
|
-
correlationId?: string | undefined;
|
|
3946
|
-
} | undefined;
|
|
3947
|
-
usage?: {
|
|
3948
|
-
quantity: string;
|
|
3949
|
-
correlationId?: string | undefined;
|
|
3950
|
-
} | undefined;
|
|
3951
|
-
} | undefined;
|
|
3952
|
-
taxConfig?: {
|
|
3953
|
-
stripe?: {
|
|
3954
|
-
code: string;
|
|
3955
|
-
} | undefined;
|
|
3956
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
3957
|
-
customInvoicing?: {
|
|
3958
|
-
code: string;
|
|
3959
|
-
} | undefined;
|
|
3960
|
-
} | undefined;
|
|
3961
|
-
} | undefined;
|
|
3962
|
-
category?: "regular" | "commitment" | undefined;
|
|
3963
|
-
perUnitAmount?: string | undefined;
|
|
3964
|
-
})[];
|
|
3551
|
+
}[];
|
|
3965
3552
|
currency: string;
|
|
3966
3553
|
}>;
|
|
3967
3554
|
/**
|
|
@@ -4034,24 +3621,9 @@ export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelati
|
|
|
4034
3621
|
export declare const simulateInvoiceBodyLinesItemQuantityRegExpOne: RegExp;
|
|
4035
3622
|
export declare const simulateInvoiceBodyLinesItemPreLinePeriodQuantityRegExpOne: RegExp;
|
|
4036
3623
|
export declare const simulateInvoiceBodyLinesItemIdRegExp: RegExp;
|
|
4037
|
-
export declare const simulateInvoiceBodyLinesItemNameMaxOne = 256;
|
|
4038
|
-
export declare const simulateInvoiceBodyLinesItemDescriptionMaxOne = 1024;
|
|
4039
|
-
export declare const simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExpOne: RegExp;
|
|
4040
|
-
export declare const simulateInvoiceBodyLinesItemPerUnitAmountRegExpOne: RegExp;
|
|
4041
|
-
export declare const simulateInvoiceBodyLinesItemPaymentTermDefault = "in_advance";
|
|
4042
|
-
export declare const simulateInvoiceBodyLinesItemQuantityRegExpThree: RegExp;
|
|
4043
|
-
export declare const simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExpOne: RegExp;
|
|
4044
|
-
export declare const simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpSeven: RegExp;
|
|
4045
|
-
export declare const simulateInvoiceBodyLinesItemRateCardPricePaymentTermDefaultTwo = "in_advance";
|
|
4046
|
-
export declare const simulateInvoiceBodyLinesItemRateCardQuantityRegExpOne: RegExp;
|
|
4047
|
-
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExpOne: RegExp;
|
|
4048
|
-
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpThree: RegExp;
|
|
4049
|
-
export declare const simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExpOne: RegExp;
|
|
4050
|
-
export declare const simulateInvoiceBodyLinesItemCategoryDefault = "regular";
|
|
4051
|
-
export declare const simulateInvoiceBodyLinesItemIdRegExpOne: RegExp;
|
|
4052
3624
|
export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
4053
3625
|
currency: zod.ZodString;
|
|
4054
|
-
lines: zod.ZodArray<zod.
|
|
3626
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
4055
3627
|
description: zod.ZodOptional<zod.ZodString>;
|
|
4056
3628
|
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
4057
3629
|
id: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4577,10 +4149,8 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
4577
4149
|
code: string;
|
|
4578
4150
|
} | undefined;
|
|
4579
4151
|
}>>;
|
|
4580
|
-
type: zod.ZodEnum<["usage_based"]>;
|
|
4581
4152
|
}, "strip", zod.ZodTypeAny, {
|
|
4582
4153
|
name: string;
|
|
4583
|
-
type: "usage_based";
|
|
4584
4154
|
quantity: string;
|
|
4585
4155
|
invoiceAt: Date;
|
|
4586
4156
|
period: {
|
|
@@ -4699,7 +4269,6 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
4699
4269
|
preLinePeriodQuantity?: string | undefined;
|
|
4700
4270
|
}, {
|
|
4701
4271
|
name: string;
|
|
4702
|
-
type: "usage_based";
|
|
4703
4272
|
quantity: string;
|
|
4704
4273
|
invoiceAt: Date;
|
|
4705
4274
|
period: {
|
|
@@ -4816,312 +4385,14 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
4816
4385
|
} | undefined;
|
|
4817
4386
|
} | undefined;
|
|
4818
4387
|
preLinePeriodQuantity?: string | undefined;
|
|
4819
|
-
}>,
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
period: zod.ZodObject<{
|
|
4828
|
-
from: zod.ZodDate;
|
|
4829
|
-
to: zod.ZodDate;
|
|
4830
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4831
|
-
from: Date;
|
|
4832
|
-
to: Date;
|
|
4833
|
-
}, {
|
|
4834
|
-
from: Date;
|
|
4835
|
-
to: Date;
|
|
4836
|
-
}>;
|
|
4837
|
-
perUnitAmount: zod.ZodOptional<zod.ZodString>;
|
|
4838
|
-
quantity: zod.ZodOptional<zod.ZodString>;
|
|
4839
|
-
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
4840
|
-
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
4841
|
-
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
4842
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4843
|
-
percentage: zod.ZodNumber;
|
|
4844
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4845
|
-
percentage: number;
|
|
4846
|
-
correlationId?: string | undefined;
|
|
4847
|
-
}, {
|
|
4848
|
-
percentage: number;
|
|
4849
|
-
correlationId?: string | undefined;
|
|
4850
|
-
}>>;
|
|
4851
|
-
usage: zod.ZodOptional<zod.ZodObject<{
|
|
4852
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
4853
|
-
quantity: zod.ZodString;
|
|
4854
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4855
|
-
quantity: string;
|
|
4856
|
-
correlationId?: string | undefined;
|
|
4857
|
-
}, {
|
|
4858
|
-
quantity: string;
|
|
4859
|
-
correlationId?: string | undefined;
|
|
4860
|
-
}>>;
|
|
4861
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4862
|
-
percentage?: {
|
|
4863
|
-
percentage: number;
|
|
4864
|
-
correlationId?: string | undefined;
|
|
4865
|
-
} | undefined;
|
|
4866
|
-
usage?: {
|
|
4867
|
-
quantity: string;
|
|
4868
|
-
correlationId?: string | undefined;
|
|
4869
|
-
} | undefined;
|
|
4870
|
-
}, {
|
|
4871
|
-
percentage?: {
|
|
4872
|
-
percentage: number;
|
|
4873
|
-
correlationId?: string | undefined;
|
|
4874
|
-
} | undefined;
|
|
4875
|
-
usage?: {
|
|
4876
|
-
quantity: string;
|
|
4877
|
-
correlationId?: string | undefined;
|
|
4878
|
-
} | undefined;
|
|
4879
|
-
}>>;
|
|
4880
|
-
price: zod.ZodNullable<zod.ZodObject<{
|
|
4881
|
-
amount: zod.ZodString;
|
|
4882
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
4883
|
-
type: zod.ZodEnum<["flat"]>;
|
|
4884
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4885
|
-
type: "flat";
|
|
4886
|
-
amount: string;
|
|
4887
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4888
|
-
}, {
|
|
4889
|
-
type: "flat";
|
|
4890
|
-
amount: string;
|
|
4891
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4892
|
-
}>>;
|
|
4893
|
-
quantity: zod.ZodOptional<zod.ZodString>;
|
|
4894
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4895
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
4896
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
4897
|
-
code: zod.ZodString;
|
|
4898
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4899
|
-
code: string;
|
|
4900
|
-
}, {
|
|
4901
|
-
code: string;
|
|
4902
|
-
}>>;
|
|
4903
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
4904
|
-
code: zod.ZodString;
|
|
4905
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4906
|
-
code: string;
|
|
4907
|
-
}, {
|
|
4908
|
-
code: string;
|
|
4909
|
-
}>>;
|
|
4910
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4911
|
-
stripe?: {
|
|
4912
|
-
code: string;
|
|
4913
|
-
} | undefined;
|
|
4914
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4915
|
-
customInvoicing?: {
|
|
4916
|
-
code: string;
|
|
4917
|
-
} | undefined;
|
|
4918
|
-
}, {
|
|
4919
|
-
stripe?: {
|
|
4920
|
-
code: string;
|
|
4921
|
-
} | undefined;
|
|
4922
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4923
|
-
customInvoicing?: {
|
|
4924
|
-
code: string;
|
|
4925
|
-
} | undefined;
|
|
4926
|
-
}>>;
|
|
4927
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4928
|
-
price: {
|
|
4929
|
-
type: "flat";
|
|
4930
|
-
amount: string;
|
|
4931
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
4932
|
-
} | null;
|
|
4933
|
-
quantity?: string | undefined;
|
|
4934
|
-
discounts?: {
|
|
4935
|
-
percentage?: {
|
|
4936
|
-
percentage: number;
|
|
4937
|
-
correlationId?: string | undefined;
|
|
4938
|
-
} | undefined;
|
|
4939
|
-
usage?: {
|
|
4940
|
-
quantity: string;
|
|
4941
|
-
correlationId?: string | undefined;
|
|
4942
|
-
} | undefined;
|
|
4943
|
-
} | undefined;
|
|
4944
|
-
taxConfig?: {
|
|
4945
|
-
stripe?: {
|
|
4946
|
-
code: string;
|
|
4947
|
-
} | undefined;
|
|
4948
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4949
|
-
customInvoicing?: {
|
|
4950
|
-
code: string;
|
|
4951
|
-
} | undefined;
|
|
4952
|
-
} | undefined;
|
|
4953
|
-
}, {
|
|
4954
|
-
price: {
|
|
4955
|
-
type: "flat";
|
|
4956
|
-
amount: string;
|
|
4957
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
4958
|
-
} | null;
|
|
4959
|
-
quantity?: string | undefined;
|
|
4960
|
-
discounts?: {
|
|
4961
|
-
percentage?: {
|
|
4962
|
-
percentage: number;
|
|
4963
|
-
correlationId?: string | undefined;
|
|
4964
|
-
} | undefined;
|
|
4965
|
-
usage?: {
|
|
4966
|
-
quantity: string;
|
|
4967
|
-
correlationId?: string | undefined;
|
|
4968
|
-
} | undefined;
|
|
4969
|
-
} | undefined;
|
|
4970
|
-
taxConfig?: {
|
|
4971
|
-
stripe?: {
|
|
4972
|
-
code: string;
|
|
4973
|
-
} | undefined;
|
|
4974
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
4975
|
-
customInvoicing?: {
|
|
4976
|
-
code: string;
|
|
4977
|
-
} | undefined;
|
|
4978
|
-
} | undefined;
|
|
4979
|
-
}>>;
|
|
4980
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
4981
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
4982
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
4983
|
-
code: zod.ZodString;
|
|
4984
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4985
|
-
code: string;
|
|
4986
|
-
}, {
|
|
4987
|
-
code: string;
|
|
4988
|
-
}>>;
|
|
4989
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
4990
|
-
code: zod.ZodString;
|
|
4991
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4992
|
-
code: string;
|
|
4993
|
-
}, {
|
|
4994
|
-
code: string;
|
|
4995
|
-
}>>;
|
|
4996
|
-
}, "strip", zod.ZodTypeAny, {
|
|
4997
|
-
stripe?: {
|
|
4998
|
-
code: string;
|
|
4999
|
-
} | undefined;
|
|
5000
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5001
|
-
customInvoicing?: {
|
|
5002
|
-
code: string;
|
|
5003
|
-
} | undefined;
|
|
5004
|
-
}, {
|
|
5005
|
-
stripe?: {
|
|
5006
|
-
code: string;
|
|
5007
|
-
} | undefined;
|
|
5008
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5009
|
-
customInvoicing?: {
|
|
5010
|
-
code: string;
|
|
5011
|
-
} | undefined;
|
|
5012
|
-
}>>;
|
|
5013
|
-
type: zod.ZodEnum<["flat_fee"]>;
|
|
5014
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5015
|
-
name: string;
|
|
5016
|
-
type: "flat_fee";
|
|
5017
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5018
|
-
invoiceAt: Date;
|
|
5019
|
-
period: {
|
|
5020
|
-
from: Date;
|
|
5021
|
-
to: Date;
|
|
5022
|
-
};
|
|
5023
|
-
category: "regular" | "commitment";
|
|
5024
|
-
id?: string | undefined;
|
|
5025
|
-
description?: string | undefined;
|
|
5026
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5027
|
-
quantity?: string | undefined;
|
|
5028
|
-
taxConfig?: {
|
|
5029
|
-
stripe?: {
|
|
5030
|
-
code: string;
|
|
5031
|
-
} | undefined;
|
|
5032
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5033
|
-
customInvoicing?: {
|
|
5034
|
-
code: string;
|
|
5035
|
-
} | undefined;
|
|
5036
|
-
} | undefined;
|
|
5037
|
-
rateCard?: {
|
|
5038
|
-
price: {
|
|
5039
|
-
type: "flat";
|
|
5040
|
-
amount: string;
|
|
5041
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5042
|
-
} | null;
|
|
5043
|
-
quantity?: string | undefined;
|
|
5044
|
-
discounts?: {
|
|
5045
|
-
percentage?: {
|
|
5046
|
-
percentage: number;
|
|
5047
|
-
correlationId?: string | undefined;
|
|
5048
|
-
} | undefined;
|
|
5049
|
-
usage?: {
|
|
5050
|
-
quantity: string;
|
|
5051
|
-
correlationId?: string | undefined;
|
|
5052
|
-
} | undefined;
|
|
5053
|
-
} | undefined;
|
|
5054
|
-
taxConfig?: {
|
|
5055
|
-
stripe?: {
|
|
5056
|
-
code: string;
|
|
5057
|
-
} | undefined;
|
|
5058
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5059
|
-
customInvoicing?: {
|
|
5060
|
-
code: string;
|
|
5061
|
-
} | undefined;
|
|
5062
|
-
} | undefined;
|
|
5063
|
-
} | undefined;
|
|
5064
|
-
perUnitAmount?: string | undefined;
|
|
5065
|
-
}, {
|
|
5066
|
-
name: string;
|
|
5067
|
-
type: "flat_fee";
|
|
5068
|
-
invoiceAt: Date;
|
|
5069
|
-
period: {
|
|
5070
|
-
from: Date;
|
|
5071
|
-
to: Date;
|
|
5072
|
-
};
|
|
5073
|
-
id?: string | undefined;
|
|
5074
|
-
description?: string | undefined;
|
|
5075
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5076
|
-
quantity?: string | undefined;
|
|
5077
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5078
|
-
taxConfig?: {
|
|
5079
|
-
stripe?: {
|
|
5080
|
-
code: string;
|
|
5081
|
-
} | undefined;
|
|
5082
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5083
|
-
customInvoicing?: {
|
|
5084
|
-
code: string;
|
|
5085
|
-
} | undefined;
|
|
5086
|
-
} | undefined;
|
|
5087
|
-
rateCard?: {
|
|
5088
|
-
price: {
|
|
5089
|
-
type: "flat";
|
|
5090
|
-
amount: string;
|
|
5091
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5092
|
-
} | null;
|
|
5093
|
-
quantity?: string | undefined;
|
|
5094
|
-
discounts?: {
|
|
5095
|
-
percentage?: {
|
|
5096
|
-
percentage: number;
|
|
5097
|
-
correlationId?: string | undefined;
|
|
5098
|
-
} | undefined;
|
|
5099
|
-
usage?: {
|
|
5100
|
-
quantity: string;
|
|
5101
|
-
correlationId?: string | undefined;
|
|
5102
|
-
} | undefined;
|
|
5103
|
-
} | undefined;
|
|
5104
|
-
taxConfig?: {
|
|
5105
|
-
stripe?: {
|
|
5106
|
-
code: string;
|
|
5107
|
-
} | undefined;
|
|
5108
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5109
|
-
customInvoicing?: {
|
|
5110
|
-
code: string;
|
|
5111
|
-
} | undefined;
|
|
5112
|
-
} | undefined;
|
|
5113
|
-
} | undefined;
|
|
5114
|
-
category?: "regular" | "commitment" | undefined;
|
|
5115
|
-
perUnitAmount?: string | undefined;
|
|
5116
|
-
}>]>, "many">;
|
|
5117
|
-
number: zod.ZodOptional<zod.ZodString>;
|
|
5118
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5119
|
-
lines: ({
|
|
5120
|
-
name: string;
|
|
5121
|
-
type: "usage_based";
|
|
5122
|
-
quantity: string;
|
|
5123
|
-
invoiceAt: Date;
|
|
5124
|
-
period: {
|
|
4388
|
+
}>, "many">;
|
|
4389
|
+
number: zod.ZodOptional<zod.ZodString>;
|
|
4390
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4391
|
+
lines: {
|
|
4392
|
+
name: string;
|
|
4393
|
+
quantity: string;
|
|
4394
|
+
invoiceAt: Date;
|
|
4395
|
+
period: {
|
|
5125
4396
|
from: Date;
|
|
5126
4397
|
to: Date;
|
|
5127
4398
|
};
|
|
@@ -5235,64 +4506,12 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
5235
4506
|
} | undefined;
|
|
5236
4507
|
} | undefined;
|
|
5237
4508
|
preLinePeriodQuantity?: string | undefined;
|
|
5238
|
-
}
|
|
5239
|
-
name: string;
|
|
5240
|
-
type: "flat_fee";
|
|
5241
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5242
|
-
invoiceAt: Date;
|
|
5243
|
-
period: {
|
|
5244
|
-
from: Date;
|
|
5245
|
-
to: Date;
|
|
5246
|
-
};
|
|
5247
|
-
category: "regular" | "commitment";
|
|
5248
|
-
id?: string | undefined;
|
|
5249
|
-
description?: string | undefined;
|
|
5250
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5251
|
-
quantity?: string | undefined;
|
|
5252
|
-
taxConfig?: {
|
|
5253
|
-
stripe?: {
|
|
5254
|
-
code: string;
|
|
5255
|
-
} | undefined;
|
|
5256
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5257
|
-
customInvoicing?: {
|
|
5258
|
-
code: string;
|
|
5259
|
-
} | undefined;
|
|
5260
|
-
} | undefined;
|
|
5261
|
-
rateCard?: {
|
|
5262
|
-
price: {
|
|
5263
|
-
type: "flat";
|
|
5264
|
-
amount: string;
|
|
5265
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5266
|
-
} | null;
|
|
5267
|
-
quantity?: string | undefined;
|
|
5268
|
-
discounts?: {
|
|
5269
|
-
percentage?: {
|
|
5270
|
-
percentage: number;
|
|
5271
|
-
correlationId?: string | undefined;
|
|
5272
|
-
} | undefined;
|
|
5273
|
-
usage?: {
|
|
5274
|
-
quantity: string;
|
|
5275
|
-
correlationId?: string | undefined;
|
|
5276
|
-
} | undefined;
|
|
5277
|
-
} | undefined;
|
|
5278
|
-
taxConfig?: {
|
|
5279
|
-
stripe?: {
|
|
5280
|
-
code: string;
|
|
5281
|
-
} | undefined;
|
|
5282
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5283
|
-
customInvoicing?: {
|
|
5284
|
-
code: string;
|
|
5285
|
-
} | undefined;
|
|
5286
|
-
} | undefined;
|
|
5287
|
-
} | undefined;
|
|
5288
|
-
perUnitAmount?: string | undefined;
|
|
5289
|
-
})[];
|
|
4509
|
+
}[];
|
|
5290
4510
|
currency: string;
|
|
5291
4511
|
number?: string | undefined;
|
|
5292
4512
|
}, {
|
|
5293
|
-
lines:
|
|
4513
|
+
lines: {
|
|
5294
4514
|
name: string;
|
|
5295
|
-
type: "usage_based";
|
|
5296
4515
|
quantity: string;
|
|
5297
4516
|
invoiceAt: Date;
|
|
5298
4517
|
period: {
|
|
@@ -5409,58 +4628,7 @@ export declare const simulateInvoiceBody: zod.ZodObject<{
|
|
|
5409
4628
|
} | undefined;
|
|
5410
4629
|
} | undefined;
|
|
5411
4630
|
preLinePeriodQuantity?: string | undefined;
|
|
5412
|
-
}
|
|
5413
|
-
name: string;
|
|
5414
|
-
type: "flat_fee";
|
|
5415
|
-
invoiceAt: Date;
|
|
5416
|
-
period: {
|
|
5417
|
-
from: Date;
|
|
5418
|
-
to: Date;
|
|
5419
|
-
};
|
|
5420
|
-
id?: string | undefined;
|
|
5421
|
-
description?: string | undefined;
|
|
5422
|
-
metadata?: Record<string, string> | null | undefined;
|
|
5423
|
-
quantity?: string | undefined;
|
|
5424
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5425
|
-
taxConfig?: {
|
|
5426
|
-
stripe?: {
|
|
5427
|
-
code: string;
|
|
5428
|
-
} | undefined;
|
|
5429
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5430
|
-
customInvoicing?: {
|
|
5431
|
-
code: string;
|
|
5432
|
-
} | undefined;
|
|
5433
|
-
} | undefined;
|
|
5434
|
-
rateCard?: {
|
|
5435
|
-
price: {
|
|
5436
|
-
type: "flat";
|
|
5437
|
-
amount: string;
|
|
5438
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5439
|
-
} | null;
|
|
5440
|
-
quantity?: string | undefined;
|
|
5441
|
-
discounts?: {
|
|
5442
|
-
percentage?: {
|
|
5443
|
-
percentage: number;
|
|
5444
|
-
correlationId?: string | undefined;
|
|
5445
|
-
} | undefined;
|
|
5446
|
-
usage?: {
|
|
5447
|
-
quantity: string;
|
|
5448
|
-
correlationId?: string | undefined;
|
|
5449
|
-
} | undefined;
|
|
5450
|
-
} | undefined;
|
|
5451
|
-
taxConfig?: {
|
|
5452
|
-
stripe?: {
|
|
5453
|
-
code: string;
|
|
5454
|
-
} | undefined;
|
|
5455
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
5456
|
-
customInvoicing?: {
|
|
5457
|
-
code: string;
|
|
5458
|
-
} | undefined;
|
|
5459
|
-
} | undefined;
|
|
5460
|
-
} | undefined;
|
|
5461
|
-
category?: "regular" | "commitment" | undefined;
|
|
5462
|
-
perUnitAmount?: string | undefined;
|
|
5463
|
-
})[];
|
|
4631
|
+
}[];
|
|
5464
4632
|
currency: string;
|
|
5465
4633
|
number?: string | undefined;
|
|
5466
4634
|
}>;
|
|
@@ -5681,21 +4849,6 @@ export declare const updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrel
|
|
|
5681
4849
|
export declare const updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne: RegExp;
|
|
5682
4850
|
export declare const updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp: RegExp;
|
|
5683
4851
|
export declare const updateInvoiceBodyLinesItemIdRegExp: RegExp;
|
|
5684
|
-
export declare const updateInvoiceBodyLinesItemNameMaxOne = 256;
|
|
5685
|
-
export declare const updateInvoiceBodyLinesItemDescriptionMaxOne = 1024;
|
|
5686
|
-
export declare const updateInvoiceBodyLinesItemTaxConfigStripeCodeRegExpOne: RegExp;
|
|
5687
|
-
export declare const updateInvoiceBodyLinesItemPerUnitAmountRegExpOne: RegExp;
|
|
5688
|
-
export declare const updateInvoiceBodyLinesItemPaymentTermDefault = "in_advance";
|
|
5689
|
-
export declare const updateInvoiceBodyLinesItemQuantityRegExpOne: RegExp;
|
|
5690
|
-
export declare const updateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExpOne: RegExp;
|
|
5691
|
-
export declare const updateInvoiceBodyLinesItemRateCardPriceAmountRegExpSeven: RegExp;
|
|
5692
|
-
export declare const updateInvoiceBodyLinesItemRateCardPricePaymentTermDefaultTwo = "in_advance";
|
|
5693
|
-
export declare const updateInvoiceBodyLinesItemRateCardQuantityRegExpOne: RegExp;
|
|
5694
|
-
export declare const updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExpOne: RegExp;
|
|
5695
|
-
export declare const updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpThree: RegExp;
|
|
5696
|
-
export declare const updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExpOne: RegExp;
|
|
5697
|
-
export declare const updateInvoiceBodyLinesItemCategoryDefault = "regular";
|
|
5698
|
-
export declare const updateInvoiceBodyLinesItemIdRegExpOne: RegExp;
|
|
5699
4852
|
export declare const updateInvoiceBodyWorkflowWorkflowInvoicingAutoAdvanceDefault = true;
|
|
5700
4853
|
export declare const updateInvoiceBodyWorkflowWorkflowInvoicingDraftPeriodDefault = "P0D";
|
|
5701
4854
|
export declare const updateInvoiceBodyWorkflowWorkflowInvoicingDueAfterDefault = "P30D";
|
|
@@ -5766,7 +4919,7 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
5766
4919
|
} | undefined;
|
|
5767
4920
|
}>;
|
|
5768
4921
|
description: zod.ZodOptional<zod.ZodString>;
|
|
5769
|
-
lines: zod.ZodArray<zod.
|
|
4922
|
+
lines: zod.ZodArray<zod.ZodObject<{
|
|
5770
4923
|
description: zod.ZodOptional<zod.ZodString>;
|
|
5771
4924
|
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
5772
4925
|
id: zod.ZodOptional<zod.ZodString>;
|
|
@@ -5861,690 +5014,69 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
5861
5014
|
}, "strip", zod.ZodTypeAny, {
|
|
5862
5015
|
type: "tiered";
|
|
5863
5016
|
mode: "volume" | "graduated";
|
|
5864
|
-
tiers: {
|
|
5865
|
-
flatPrice: {
|
|
5866
|
-
type: "flat";
|
|
5867
|
-
amount: string;
|
|
5868
|
-
} | null;
|
|
5869
|
-
unitPrice: {
|
|
5870
|
-
type: "unit";
|
|
5871
|
-
amount: string;
|
|
5872
|
-
} | null;
|
|
5873
|
-
upToAmount?: string | undefined;
|
|
5874
|
-
}[];
|
|
5875
|
-
maximumAmount?: string | undefined;
|
|
5876
|
-
minimumAmount?: string | undefined;
|
|
5877
|
-
}, {
|
|
5878
|
-
type: "tiered";
|
|
5879
|
-
mode: "volume" | "graduated";
|
|
5880
|
-
tiers: {
|
|
5881
|
-
flatPrice: {
|
|
5882
|
-
type: "flat";
|
|
5883
|
-
amount: string;
|
|
5884
|
-
} | null;
|
|
5885
|
-
unitPrice: {
|
|
5886
|
-
type: "unit";
|
|
5887
|
-
amount: string;
|
|
5888
|
-
} | null;
|
|
5889
|
-
upToAmount?: string | undefined;
|
|
5890
|
-
}[];
|
|
5891
|
-
maximumAmount?: string | undefined;
|
|
5892
|
-
minimumAmount?: string | undefined;
|
|
5893
|
-
}>, zod.ZodObject<{
|
|
5894
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5895
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5896
|
-
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
5897
|
-
type: zod.ZodEnum<["dynamic"]>;
|
|
5898
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5899
|
-
type: "dynamic";
|
|
5900
|
-
multiplier: string;
|
|
5901
|
-
maximumAmount?: string | undefined;
|
|
5902
|
-
minimumAmount?: string | undefined;
|
|
5903
|
-
}, {
|
|
5904
|
-
type: "dynamic";
|
|
5905
|
-
maximumAmount?: string | undefined;
|
|
5906
|
-
minimumAmount?: string | undefined;
|
|
5907
|
-
multiplier?: string | undefined;
|
|
5908
|
-
}>, zod.ZodObject<{
|
|
5909
|
-
amount: zod.ZodString;
|
|
5910
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5911
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5912
|
-
quantityPerPackage: zod.ZodString;
|
|
5913
|
-
type: zod.ZodEnum<["package"]>;
|
|
5914
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5915
|
-
type: "package";
|
|
5916
|
-
amount: string;
|
|
5917
|
-
quantityPerPackage: string;
|
|
5918
|
-
maximumAmount?: string | undefined;
|
|
5919
|
-
minimumAmount?: string | undefined;
|
|
5920
|
-
}, {
|
|
5921
|
-
type: "package";
|
|
5922
|
-
amount: string;
|
|
5923
|
-
quantityPerPackage: string;
|
|
5924
|
-
maximumAmount?: string | undefined;
|
|
5925
|
-
minimumAmount?: string | undefined;
|
|
5926
|
-
}>]>>;
|
|
5927
|
-
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
5928
|
-
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
5929
|
-
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
5930
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
5931
|
-
percentage: zod.ZodNumber;
|
|
5932
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5933
|
-
percentage: number;
|
|
5934
|
-
correlationId?: string | undefined;
|
|
5935
|
-
}, {
|
|
5936
|
-
percentage: number;
|
|
5937
|
-
correlationId?: string | undefined;
|
|
5938
|
-
}>>;
|
|
5939
|
-
usage: zod.ZodOptional<zod.ZodObject<{
|
|
5940
|
-
correlationId: zod.ZodOptional<zod.ZodString>;
|
|
5941
|
-
quantity: zod.ZodString;
|
|
5942
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5943
|
-
quantity: string;
|
|
5944
|
-
correlationId?: string | undefined;
|
|
5945
|
-
}, {
|
|
5946
|
-
quantity: string;
|
|
5947
|
-
correlationId?: string | undefined;
|
|
5948
|
-
}>>;
|
|
5949
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5950
|
-
percentage?: {
|
|
5951
|
-
percentage: number;
|
|
5952
|
-
correlationId?: string | undefined;
|
|
5953
|
-
} | undefined;
|
|
5954
|
-
usage?: {
|
|
5955
|
-
quantity: string;
|
|
5956
|
-
correlationId?: string | undefined;
|
|
5957
|
-
} | undefined;
|
|
5958
|
-
}, {
|
|
5959
|
-
percentage?: {
|
|
5960
|
-
percentage: number;
|
|
5961
|
-
correlationId?: string | undefined;
|
|
5962
|
-
} | undefined;
|
|
5963
|
-
usage?: {
|
|
5964
|
-
quantity: string;
|
|
5965
|
-
correlationId?: string | undefined;
|
|
5966
|
-
} | undefined;
|
|
5967
|
-
}>>;
|
|
5968
|
-
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
5969
|
-
price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
5970
|
-
amount: zod.ZodString;
|
|
5971
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
5972
|
-
type: zod.ZodEnum<["flat"]>;
|
|
5973
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5974
|
-
type: "flat";
|
|
5975
|
-
amount: string;
|
|
5976
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
5977
|
-
}, {
|
|
5978
|
-
type: "flat";
|
|
5979
|
-
amount: string;
|
|
5980
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5981
|
-
}>, zod.ZodObject<{
|
|
5982
|
-
amount: zod.ZodString;
|
|
5983
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5984
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5985
|
-
type: zod.ZodEnum<["unit"]>;
|
|
5986
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5987
|
-
type: "unit";
|
|
5988
|
-
amount: string;
|
|
5989
|
-
maximumAmount?: string | undefined;
|
|
5990
|
-
minimumAmount?: string | undefined;
|
|
5991
|
-
}, {
|
|
5992
|
-
type: "unit";
|
|
5993
|
-
amount: string;
|
|
5994
|
-
maximumAmount?: string | undefined;
|
|
5995
|
-
minimumAmount?: string | undefined;
|
|
5996
|
-
}>, zod.ZodObject<{
|
|
5997
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5998
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5999
|
-
mode: zod.ZodEnum<["volume", "graduated"]>;
|
|
6000
|
-
tiers: zod.ZodArray<zod.ZodObject<{
|
|
6001
|
-
flatPrice: zod.ZodNullable<zod.ZodObject<{
|
|
6002
|
-
amount: zod.ZodString;
|
|
6003
|
-
type: zod.ZodEnum<["flat"]>;
|
|
6004
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6005
|
-
type: "flat";
|
|
6006
|
-
amount: string;
|
|
6007
|
-
}, {
|
|
6008
|
-
type: "flat";
|
|
6009
|
-
amount: string;
|
|
6010
|
-
}>>;
|
|
6011
|
-
unitPrice: zod.ZodNullable<zod.ZodObject<{
|
|
6012
|
-
amount: zod.ZodString;
|
|
6013
|
-
type: zod.ZodEnum<["unit"]>;
|
|
6014
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6015
|
-
type: "unit";
|
|
6016
|
-
amount: string;
|
|
6017
|
-
}, {
|
|
6018
|
-
type: "unit";
|
|
6019
|
-
amount: string;
|
|
6020
|
-
}>>;
|
|
6021
|
-
upToAmount: zod.ZodOptional<zod.ZodString>;
|
|
6022
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6023
|
-
flatPrice: {
|
|
6024
|
-
type: "flat";
|
|
6025
|
-
amount: string;
|
|
6026
|
-
} | null;
|
|
6027
|
-
unitPrice: {
|
|
6028
|
-
type: "unit";
|
|
6029
|
-
amount: string;
|
|
6030
|
-
} | null;
|
|
6031
|
-
upToAmount?: string | undefined;
|
|
6032
|
-
}, {
|
|
6033
|
-
flatPrice: {
|
|
6034
|
-
type: "flat";
|
|
6035
|
-
amount: string;
|
|
6036
|
-
} | null;
|
|
6037
|
-
unitPrice: {
|
|
6038
|
-
type: "unit";
|
|
6039
|
-
amount: string;
|
|
6040
|
-
} | null;
|
|
6041
|
-
upToAmount?: string | undefined;
|
|
6042
|
-
}>, "many">;
|
|
6043
|
-
type: zod.ZodEnum<["tiered"]>;
|
|
6044
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6045
|
-
type: "tiered";
|
|
6046
|
-
mode: "volume" | "graduated";
|
|
6047
|
-
tiers: {
|
|
6048
|
-
flatPrice: {
|
|
6049
|
-
type: "flat";
|
|
6050
|
-
amount: string;
|
|
6051
|
-
} | null;
|
|
6052
|
-
unitPrice: {
|
|
6053
|
-
type: "unit";
|
|
6054
|
-
amount: string;
|
|
6055
|
-
} | null;
|
|
6056
|
-
upToAmount?: string | undefined;
|
|
6057
|
-
}[];
|
|
6058
|
-
maximumAmount?: string | undefined;
|
|
6059
|
-
minimumAmount?: string | undefined;
|
|
6060
|
-
}, {
|
|
6061
|
-
type: "tiered";
|
|
6062
|
-
mode: "volume" | "graduated";
|
|
6063
|
-
tiers: {
|
|
6064
|
-
flatPrice: {
|
|
6065
|
-
type: "flat";
|
|
6066
|
-
amount: string;
|
|
6067
|
-
} | null;
|
|
6068
|
-
unitPrice: {
|
|
6069
|
-
type: "unit";
|
|
6070
|
-
amount: string;
|
|
6071
|
-
} | null;
|
|
6072
|
-
upToAmount?: string | undefined;
|
|
6073
|
-
}[];
|
|
6074
|
-
maximumAmount?: string | undefined;
|
|
6075
|
-
minimumAmount?: string | undefined;
|
|
6076
|
-
}>, zod.ZodObject<{
|
|
6077
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
6078
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
6079
|
-
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
6080
|
-
type: zod.ZodEnum<["dynamic"]>;
|
|
6081
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6082
|
-
type: "dynamic";
|
|
6083
|
-
multiplier: string;
|
|
6084
|
-
maximumAmount?: string | undefined;
|
|
6085
|
-
minimumAmount?: string | undefined;
|
|
6086
|
-
}, {
|
|
6087
|
-
type: "dynamic";
|
|
6088
|
-
maximumAmount?: string | undefined;
|
|
6089
|
-
minimumAmount?: string | undefined;
|
|
6090
|
-
multiplier?: string | undefined;
|
|
6091
|
-
}>, zod.ZodObject<{
|
|
6092
|
-
amount: zod.ZodString;
|
|
6093
|
-
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
6094
|
-
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
6095
|
-
quantityPerPackage: zod.ZodString;
|
|
6096
|
-
type: zod.ZodEnum<["package"]>;
|
|
6097
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6098
|
-
type: "package";
|
|
6099
|
-
amount: string;
|
|
6100
|
-
quantityPerPackage: string;
|
|
6101
|
-
maximumAmount?: string | undefined;
|
|
6102
|
-
minimumAmount?: string | undefined;
|
|
6103
|
-
}, {
|
|
6104
|
-
type: "package";
|
|
6105
|
-
amount: string;
|
|
6106
|
-
quantityPerPackage: string;
|
|
6107
|
-
maximumAmount?: string | undefined;
|
|
6108
|
-
minimumAmount?: string | undefined;
|
|
6109
|
-
}>]>>;
|
|
6110
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
6111
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
6112
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
6113
|
-
code: zod.ZodString;
|
|
6114
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6115
|
-
code: string;
|
|
6116
|
-
}, {
|
|
6117
|
-
code: string;
|
|
6118
|
-
}>>;
|
|
6119
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
6120
|
-
code: zod.ZodString;
|
|
6121
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6122
|
-
code: string;
|
|
6123
|
-
}, {
|
|
6124
|
-
code: string;
|
|
6125
|
-
}>>;
|
|
6126
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6127
|
-
stripe?: {
|
|
6128
|
-
code: string;
|
|
6129
|
-
} | undefined;
|
|
6130
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6131
|
-
customInvoicing?: {
|
|
6132
|
-
code: string;
|
|
6133
|
-
} | undefined;
|
|
6134
|
-
}, {
|
|
6135
|
-
stripe?: {
|
|
6136
|
-
code: string;
|
|
6137
|
-
} | undefined;
|
|
6138
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6139
|
-
customInvoicing?: {
|
|
6140
|
-
code: string;
|
|
6141
|
-
} | undefined;
|
|
6142
|
-
}>>;
|
|
6143
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6144
|
-
price: {
|
|
6145
|
-
type: "flat";
|
|
6146
|
-
amount: string;
|
|
6147
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6148
|
-
} | {
|
|
6149
|
-
type: "unit";
|
|
6150
|
-
amount: string;
|
|
6151
|
-
maximumAmount?: string | undefined;
|
|
6152
|
-
minimumAmount?: string | undefined;
|
|
6153
|
-
} | {
|
|
6154
|
-
type: "tiered";
|
|
6155
|
-
mode: "volume" | "graduated";
|
|
6156
|
-
tiers: {
|
|
6157
|
-
flatPrice: {
|
|
6158
|
-
type: "flat";
|
|
6159
|
-
amount: string;
|
|
6160
|
-
} | null;
|
|
6161
|
-
unitPrice: {
|
|
6162
|
-
type: "unit";
|
|
6163
|
-
amount: string;
|
|
6164
|
-
} | null;
|
|
6165
|
-
upToAmount?: string | undefined;
|
|
6166
|
-
}[];
|
|
6167
|
-
maximumAmount?: string | undefined;
|
|
6168
|
-
minimumAmount?: string | undefined;
|
|
6169
|
-
} | {
|
|
6170
|
-
type: "dynamic";
|
|
6171
|
-
multiplier: string;
|
|
6172
|
-
maximumAmount?: string | undefined;
|
|
6173
|
-
minimumAmount?: string | undefined;
|
|
6174
|
-
} | {
|
|
6175
|
-
type: "package";
|
|
6176
|
-
amount: string;
|
|
6177
|
-
quantityPerPackage: string;
|
|
6178
|
-
maximumAmount?: string | undefined;
|
|
6179
|
-
minimumAmount?: string | undefined;
|
|
6180
|
-
} | null;
|
|
6181
|
-
featureKey?: string | undefined;
|
|
6182
|
-
discounts?: {
|
|
6183
|
-
percentage?: {
|
|
6184
|
-
percentage: number;
|
|
6185
|
-
correlationId?: string | undefined;
|
|
6186
|
-
} | undefined;
|
|
6187
|
-
usage?: {
|
|
6188
|
-
quantity: string;
|
|
6189
|
-
correlationId?: string | undefined;
|
|
6190
|
-
} | undefined;
|
|
6191
|
-
} | undefined;
|
|
6192
|
-
taxConfig?: {
|
|
6193
|
-
stripe?: {
|
|
6194
|
-
code: string;
|
|
6195
|
-
} | undefined;
|
|
6196
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6197
|
-
customInvoicing?: {
|
|
6198
|
-
code: string;
|
|
6199
|
-
} | undefined;
|
|
6200
|
-
} | undefined;
|
|
6201
|
-
}, {
|
|
6202
|
-
price: {
|
|
6203
|
-
type: "flat";
|
|
6204
|
-
amount: string;
|
|
6205
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6206
|
-
} | {
|
|
6207
|
-
type: "unit";
|
|
6208
|
-
amount: string;
|
|
6209
|
-
maximumAmount?: string | undefined;
|
|
6210
|
-
minimumAmount?: string | undefined;
|
|
6211
|
-
} | {
|
|
6212
|
-
type: "tiered";
|
|
6213
|
-
mode: "volume" | "graduated";
|
|
6214
|
-
tiers: {
|
|
6215
|
-
flatPrice: {
|
|
6216
|
-
type: "flat";
|
|
6217
|
-
amount: string;
|
|
6218
|
-
} | null;
|
|
6219
|
-
unitPrice: {
|
|
6220
|
-
type: "unit";
|
|
6221
|
-
amount: string;
|
|
6222
|
-
} | null;
|
|
6223
|
-
upToAmount?: string | undefined;
|
|
6224
|
-
}[];
|
|
6225
|
-
maximumAmount?: string | undefined;
|
|
6226
|
-
minimumAmount?: string | undefined;
|
|
6227
|
-
} | {
|
|
6228
|
-
type: "dynamic";
|
|
6229
|
-
maximumAmount?: string | undefined;
|
|
6230
|
-
minimumAmount?: string | undefined;
|
|
6231
|
-
multiplier?: string | undefined;
|
|
6232
|
-
} | {
|
|
6233
|
-
type: "package";
|
|
6234
|
-
amount: string;
|
|
6235
|
-
quantityPerPackage: string;
|
|
6236
|
-
maximumAmount?: string | undefined;
|
|
6237
|
-
minimumAmount?: string | undefined;
|
|
6238
|
-
} | null;
|
|
6239
|
-
featureKey?: string | undefined;
|
|
6240
|
-
discounts?: {
|
|
6241
|
-
percentage?: {
|
|
6242
|
-
percentage: number;
|
|
6243
|
-
correlationId?: string | undefined;
|
|
6244
|
-
} | undefined;
|
|
6245
|
-
usage?: {
|
|
6246
|
-
quantity: string;
|
|
6247
|
-
correlationId?: string | undefined;
|
|
6248
|
-
} | undefined;
|
|
6249
|
-
} | undefined;
|
|
6250
|
-
taxConfig?: {
|
|
6251
|
-
stripe?: {
|
|
6252
|
-
code: string;
|
|
6253
|
-
} | undefined;
|
|
6254
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6255
|
-
customInvoicing?: {
|
|
6256
|
-
code: string;
|
|
6257
|
-
} | undefined;
|
|
6258
|
-
} | undefined;
|
|
6259
|
-
}>>;
|
|
6260
|
-
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
6261
|
-
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
6262
|
-
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
6263
|
-
code: zod.ZodString;
|
|
6264
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6265
|
-
code: string;
|
|
6266
|
-
}, {
|
|
6267
|
-
code: string;
|
|
6268
|
-
}>>;
|
|
6269
|
-
stripe: zod.ZodOptional<zod.ZodObject<{
|
|
6270
|
-
code: zod.ZodString;
|
|
6271
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6272
|
-
code: string;
|
|
6273
|
-
}, {
|
|
6274
|
-
code: string;
|
|
6275
|
-
}>>;
|
|
6276
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6277
|
-
stripe?: {
|
|
6278
|
-
code: string;
|
|
6279
|
-
} | undefined;
|
|
6280
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6281
|
-
customInvoicing?: {
|
|
6282
|
-
code: string;
|
|
6283
|
-
} | undefined;
|
|
6284
|
-
}, {
|
|
6285
|
-
stripe?: {
|
|
6286
|
-
code: string;
|
|
6287
|
-
} | undefined;
|
|
6288
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6289
|
-
customInvoicing?: {
|
|
6290
|
-
code: string;
|
|
6291
|
-
} | undefined;
|
|
6292
|
-
}>>;
|
|
6293
|
-
type: zod.ZodEnum<["usage_based"]>;
|
|
6294
|
-
}, "strip", zod.ZodTypeAny, {
|
|
6295
|
-
name: string;
|
|
6296
|
-
type: "usage_based";
|
|
6297
|
-
invoiceAt: Date;
|
|
6298
|
-
period: {
|
|
6299
|
-
from: Date;
|
|
6300
|
-
to: Date;
|
|
6301
|
-
};
|
|
6302
|
-
id?: string | undefined;
|
|
6303
|
-
description?: string | undefined;
|
|
6304
|
-
featureKey?: string | undefined;
|
|
6305
|
-
metadata?: Record<string, string> | null | undefined;
|
|
6306
|
-
price?: {
|
|
6307
|
-
type: "flat";
|
|
6308
|
-
amount: string;
|
|
6309
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6310
|
-
} | {
|
|
6311
|
-
type: "unit";
|
|
6312
|
-
amount: string;
|
|
6313
|
-
maximumAmount?: string | undefined;
|
|
6314
|
-
minimumAmount?: string | undefined;
|
|
6315
|
-
} | {
|
|
6316
|
-
type: "tiered";
|
|
6317
|
-
mode: "volume" | "graduated";
|
|
6318
|
-
tiers: {
|
|
6319
|
-
flatPrice: {
|
|
6320
|
-
type: "flat";
|
|
6321
|
-
amount: string;
|
|
6322
|
-
} | null;
|
|
6323
|
-
unitPrice: {
|
|
6324
|
-
type: "unit";
|
|
6325
|
-
amount: string;
|
|
6326
|
-
} | null;
|
|
6327
|
-
upToAmount?: string | undefined;
|
|
6328
|
-
}[];
|
|
6329
|
-
maximumAmount?: string | undefined;
|
|
6330
|
-
minimumAmount?: string | undefined;
|
|
6331
|
-
} | {
|
|
6332
|
-
type: "dynamic";
|
|
6333
|
-
multiplier: string;
|
|
6334
|
-
maximumAmount?: string | undefined;
|
|
6335
|
-
minimumAmount?: string | undefined;
|
|
6336
|
-
} | {
|
|
6337
|
-
type: "package";
|
|
6338
|
-
amount: string;
|
|
6339
|
-
quantityPerPackage: string;
|
|
6340
|
-
maximumAmount?: string | undefined;
|
|
6341
|
-
minimumAmount?: string | undefined;
|
|
6342
|
-
} | undefined;
|
|
6343
|
-
taxConfig?: {
|
|
6344
|
-
stripe?: {
|
|
6345
|
-
code: string;
|
|
6346
|
-
} | undefined;
|
|
6347
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6348
|
-
customInvoicing?: {
|
|
6349
|
-
code: string;
|
|
6350
|
-
} | undefined;
|
|
6351
|
-
} | undefined;
|
|
6352
|
-
rateCard?: {
|
|
6353
|
-
price: {
|
|
6354
|
-
type: "flat";
|
|
6355
|
-
amount: string;
|
|
6356
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6357
|
-
} | {
|
|
6358
|
-
type: "unit";
|
|
6359
|
-
amount: string;
|
|
6360
|
-
maximumAmount?: string | undefined;
|
|
6361
|
-
minimumAmount?: string | undefined;
|
|
6362
|
-
} | {
|
|
6363
|
-
type: "tiered";
|
|
6364
|
-
mode: "volume" | "graduated";
|
|
6365
|
-
tiers: {
|
|
6366
|
-
flatPrice: {
|
|
6367
|
-
type: "flat";
|
|
6368
|
-
amount: string;
|
|
6369
|
-
} | null;
|
|
6370
|
-
unitPrice: {
|
|
6371
|
-
type: "unit";
|
|
6372
|
-
amount: string;
|
|
6373
|
-
} | null;
|
|
6374
|
-
upToAmount?: string | undefined;
|
|
6375
|
-
}[];
|
|
6376
|
-
maximumAmount?: string | undefined;
|
|
6377
|
-
minimumAmount?: string | undefined;
|
|
6378
|
-
} | {
|
|
6379
|
-
type: "dynamic";
|
|
6380
|
-
multiplier: string;
|
|
6381
|
-
maximumAmount?: string | undefined;
|
|
6382
|
-
minimumAmount?: string | undefined;
|
|
6383
|
-
} | {
|
|
6384
|
-
type: "package";
|
|
6385
|
-
amount: string;
|
|
6386
|
-
quantityPerPackage: string;
|
|
6387
|
-
maximumAmount?: string | undefined;
|
|
6388
|
-
minimumAmount?: string | undefined;
|
|
6389
|
-
} | null;
|
|
6390
|
-
featureKey?: string | undefined;
|
|
6391
|
-
discounts?: {
|
|
6392
|
-
percentage?: {
|
|
6393
|
-
percentage: number;
|
|
6394
|
-
correlationId?: string | undefined;
|
|
6395
|
-
} | undefined;
|
|
6396
|
-
usage?: {
|
|
6397
|
-
quantity: string;
|
|
6398
|
-
correlationId?: string | undefined;
|
|
6399
|
-
} | undefined;
|
|
6400
|
-
} | undefined;
|
|
6401
|
-
taxConfig?: {
|
|
6402
|
-
stripe?: {
|
|
6403
|
-
code: string;
|
|
6404
|
-
} | undefined;
|
|
6405
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6406
|
-
customInvoicing?: {
|
|
6407
|
-
code: string;
|
|
6408
|
-
} | undefined;
|
|
6409
|
-
} | undefined;
|
|
6410
|
-
} | undefined;
|
|
6411
|
-
}, {
|
|
6412
|
-
name: string;
|
|
6413
|
-
type: "usage_based";
|
|
6414
|
-
invoiceAt: Date;
|
|
6415
|
-
period: {
|
|
6416
|
-
from: Date;
|
|
6417
|
-
to: Date;
|
|
6418
|
-
};
|
|
6419
|
-
id?: string | undefined;
|
|
6420
|
-
description?: string | undefined;
|
|
6421
|
-
featureKey?: string | undefined;
|
|
6422
|
-
metadata?: Record<string, string> | null | undefined;
|
|
6423
|
-
price?: {
|
|
6424
|
-
type: "flat";
|
|
6425
|
-
amount: string;
|
|
6426
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6427
|
-
} | {
|
|
6428
|
-
type: "unit";
|
|
6429
|
-
amount: string;
|
|
6430
|
-
maximumAmount?: string | undefined;
|
|
6431
|
-
minimumAmount?: string | undefined;
|
|
6432
|
-
} | {
|
|
6433
|
-
type: "tiered";
|
|
6434
|
-
mode: "volume" | "graduated";
|
|
6435
|
-
tiers: {
|
|
6436
|
-
flatPrice: {
|
|
6437
|
-
type: "flat";
|
|
6438
|
-
amount: string;
|
|
6439
|
-
} | null;
|
|
6440
|
-
unitPrice: {
|
|
6441
|
-
type: "unit";
|
|
6442
|
-
amount: string;
|
|
6443
|
-
} | null;
|
|
6444
|
-
upToAmount?: string | undefined;
|
|
6445
|
-
}[];
|
|
6446
|
-
maximumAmount?: string | undefined;
|
|
6447
|
-
minimumAmount?: string | undefined;
|
|
6448
|
-
} | {
|
|
6449
|
-
type: "dynamic";
|
|
6450
|
-
maximumAmount?: string | undefined;
|
|
6451
|
-
minimumAmount?: string | undefined;
|
|
6452
|
-
multiplier?: string | undefined;
|
|
6453
|
-
} | {
|
|
6454
|
-
type: "package";
|
|
6455
|
-
amount: string;
|
|
6456
|
-
quantityPerPackage: string;
|
|
6457
|
-
maximumAmount?: string | undefined;
|
|
6458
|
-
minimumAmount?: string | undefined;
|
|
6459
|
-
} | undefined;
|
|
6460
|
-
taxConfig?: {
|
|
6461
|
-
stripe?: {
|
|
6462
|
-
code: string;
|
|
6463
|
-
} | undefined;
|
|
6464
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6465
|
-
customInvoicing?: {
|
|
6466
|
-
code: string;
|
|
6467
|
-
} | undefined;
|
|
6468
|
-
} | undefined;
|
|
6469
|
-
rateCard?: {
|
|
6470
|
-
price: {
|
|
6471
|
-
type: "flat";
|
|
6472
|
-
amount: string;
|
|
6473
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6474
|
-
} | {
|
|
6475
|
-
type: "unit";
|
|
6476
|
-
amount: string;
|
|
6477
|
-
maximumAmount?: string | undefined;
|
|
6478
|
-
minimumAmount?: string | undefined;
|
|
6479
|
-
} | {
|
|
6480
|
-
type: "tiered";
|
|
6481
|
-
mode: "volume" | "graduated";
|
|
6482
|
-
tiers: {
|
|
6483
|
-
flatPrice: {
|
|
6484
|
-
type: "flat";
|
|
6485
|
-
amount: string;
|
|
6486
|
-
} | null;
|
|
6487
|
-
unitPrice: {
|
|
6488
|
-
type: "unit";
|
|
6489
|
-
amount: string;
|
|
6490
|
-
} | null;
|
|
6491
|
-
upToAmount?: string | undefined;
|
|
6492
|
-
}[];
|
|
6493
|
-
maximumAmount?: string | undefined;
|
|
6494
|
-
minimumAmount?: string | undefined;
|
|
6495
|
-
} | {
|
|
6496
|
-
type: "dynamic";
|
|
6497
|
-
maximumAmount?: string | undefined;
|
|
6498
|
-
minimumAmount?: string | undefined;
|
|
6499
|
-
multiplier?: string | undefined;
|
|
6500
|
-
} | {
|
|
6501
|
-
type: "package";
|
|
6502
|
-
amount: string;
|
|
6503
|
-
quantityPerPackage: string;
|
|
6504
|
-
maximumAmount?: string | undefined;
|
|
6505
|
-
minimumAmount?: string | undefined;
|
|
6506
|
-
} | null;
|
|
6507
|
-
featureKey?: string | undefined;
|
|
6508
|
-
discounts?: {
|
|
6509
|
-
percentage?: {
|
|
6510
|
-
percentage: number;
|
|
6511
|
-
correlationId?: string | undefined;
|
|
6512
|
-
} | undefined;
|
|
6513
|
-
usage?: {
|
|
6514
|
-
quantity: string;
|
|
6515
|
-
correlationId?: string | undefined;
|
|
6516
|
-
} | undefined;
|
|
6517
|
-
} | undefined;
|
|
6518
|
-
taxConfig?: {
|
|
6519
|
-
stripe?: {
|
|
6520
|
-
code: string;
|
|
6521
|
-
} | undefined;
|
|
6522
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
6523
|
-
customInvoicing?: {
|
|
6524
|
-
code: string;
|
|
6525
|
-
} | undefined;
|
|
6526
|
-
} | undefined;
|
|
6527
|
-
} | undefined;
|
|
6528
|
-
}>, zod.ZodObject<{
|
|
6529
|
-
category: zod.ZodDefault<zod.ZodEnum<["regular", "commitment"]>>;
|
|
6530
|
-
description: zod.ZodOptional<zod.ZodString>;
|
|
6531
|
-
id: zod.ZodOptional<zod.ZodString>;
|
|
6532
|
-
invoiceAt: zod.ZodDate;
|
|
6533
|
-
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
6534
|
-
name: zod.ZodString;
|
|
6535
|
-
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
6536
|
-
period: zod.ZodObject<{
|
|
6537
|
-
from: zod.ZodDate;
|
|
6538
|
-
to: zod.ZodDate;
|
|
5017
|
+
tiers: {
|
|
5018
|
+
flatPrice: {
|
|
5019
|
+
type: "flat";
|
|
5020
|
+
amount: string;
|
|
5021
|
+
} | null;
|
|
5022
|
+
unitPrice: {
|
|
5023
|
+
type: "unit";
|
|
5024
|
+
amount: string;
|
|
5025
|
+
} | null;
|
|
5026
|
+
upToAmount?: string | undefined;
|
|
5027
|
+
}[];
|
|
5028
|
+
maximumAmount?: string | undefined;
|
|
5029
|
+
minimumAmount?: string | undefined;
|
|
5030
|
+
}, {
|
|
5031
|
+
type: "tiered";
|
|
5032
|
+
mode: "volume" | "graduated";
|
|
5033
|
+
tiers: {
|
|
5034
|
+
flatPrice: {
|
|
5035
|
+
type: "flat";
|
|
5036
|
+
amount: string;
|
|
5037
|
+
} | null;
|
|
5038
|
+
unitPrice: {
|
|
5039
|
+
type: "unit";
|
|
5040
|
+
amount: string;
|
|
5041
|
+
} | null;
|
|
5042
|
+
upToAmount?: string | undefined;
|
|
5043
|
+
}[];
|
|
5044
|
+
maximumAmount?: string | undefined;
|
|
5045
|
+
minimumAmount?: string | undefined;
|
|
5046
|
+
}>, zod.ZodObject<{
|
|
5047
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5048
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5049
|
+
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
5050
|
+
type: zod.ZodEnum<["dynamic"]>;
|
|
6539
5051
|
}, "strip", zod.ZodTypeAny, {
|
|
6540
|
-
|
|
6541
|
-
|
|
5052
|
+
type: "dynamic";
|
|
5053
|
+
multiplier: string;
|
|
5054
|
+
maximumAmount?: string | undefined;
|
|
5055
|
+
minimumAmount?: string | undefined;
|
|
6542
5056
|
}, {
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
|
|
6546
|
-
|
|
6547
|
-
|
|
5057
|
+
type: "dynamic";
|
|
5058
|
+
maximumAmount?: string | undefined;
|
|
5059
|
+
minimumAmount?: string | undefined;
|
|
5060
|
+
multiplier?: string | undefined;
|
|
5061
|
+
}>, zod.ZodObject<{
|
|
5062
|
+
amount: zod.ZodString;
|
|
5063
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5064
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5065
|
+
quantityPerPackage: zod.ZodString;
|
|
5066
|
+
type: zod.ZodEnum<["package"]>;
|
|
5067
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5068
|
+
type: "package";
|
|
5069
|
+
amount: string;
|
|
5070
|
+
quantityPerPackage: string;
|
|
5071
|
+
maximumAmount?: string | undefined;
|
|
5072
|
+
minimumAmount?: string | undefined;
|
|
5073
|
+
}, {
|
|
5074
|
+
type: "package";
|
|
5075
|
+
amount: string;
|
|
5076
|
+
quantityPerPackage: string;
|
|
5077
|
+
maximumAmount?: string | undefined;
|
|
5078
|
+
minimumAmount?: string | undefined;
|
|
5079
|
+
}>]>>;
|
|
6548
5080
|
rateCard: zod.ZodOptional<zod.ZodObject<{
|
|
6549
5081
|
discounts: zod.ZodOptional<zod.ZodObject<{
|
|
6550
5082
|
percentage: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -6586,7 +5118,8 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6586
5118
|
correlationId?: string | undefined;
|
|
6587
5119
|
} | undefined;
|
|
6588
5120
|
}>>;
|
|
6589
|
-
|
|
5121
|
+
featureKey: zod.ZodOptional<zod.ZodString>;
|
|
5122
|
+
price: zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
|
|
6590
5123
|
amount: zod.ZodString;
|
|
6591
5124
|
paymentTerm: zod.ZodDefault<zod.ZodEnum<["in_advance", "in_arrears"]>>;
|
|
6592
5125
|
type: zod.ZodEnum<["flat"]>;
|
|
@@ -6598,8 +5131,135 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6598
5131
|
type: "flat";
|
|
6599
5132
|
amount: string;
|
|
6600
5133
|
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
6601
|
-
}
|
|
6602
|
-
|
|
5134
|
+
}>, zod.ZodObject<{
|
|
5135
|
+
amount: zod.ZodString;
|
|
5136
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5137
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5138
|
+
type: zod.ZodEnum<["unit"]>;
|
|
5139
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5140
|
+
type: "unit";
|
|
5141
|
+
amount: string;
|
|
5142
|
+
maximumAmount?: string | undefined;
|
|
5143
|
+
minimumAmount?: string | undefined;
|
|
5144
|
+
}, {
|
|
5145
|
+
type: "unit";
|
|
5146
|
+
amount: string;
|
|
5147
|
+
maximumAmount?: string | undefined;
|
|
5148
|
+
minimumAmount?: string | undefined;
|
|
5149
|
+
}>, zod.ZodObject<{
|
|
5150
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5151
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5152
|
+
mode: zod.ZodEnum<["volume", "graduated"]>;
|
|
5153
|
+
tiers: zod.ZodArray<zod.ZodObject<{
|
|
5154
|
+
flatPrice: zod.ZodNullable<zod.ZodObject<{
|
|
5155
|
+
amount: zod.ZodString;
|
|
5156
|
+
type: zod.ZodEnum<["flat"]>;
|
|
5157
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5158
|
+
type: "flat";
|
|
5159
|
+
amount: string;
|
|
5160
|
+
}, {
|
|
5161
|
+
type: "flat";
|
|
5162
|
+
amount: string;
|
|
5163
|
+
}>>;
|
|
5164
|
+
unitPrice: zod.ZodNullable<zod.ZodObject<{
|
|
5165
|
+
amount: zod.ZodString;
|
|
5166
|
+
type: zod.ZodEnum<["unit"]>;
|
|
5167
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5168
|
+
type: "unit";
|
|
5169
|
+
amount: string;
|
|
5170
|
+
}, {
|
|
5171
|
+
type: "unit";
|
|
5172
|
+
amount: string;
|
|
5173
|
+
}>>;
|
|
5174
|
+
upToAmount: zod.ZodOptional<zod.ZodString>;
|
|
5175
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5176
|
+
flatPrice: {
|
|
5177
|
+
type: "flat";
|
|
5178
|
+
amount: string;
|
|
5179
|
+
} | null;
|
|
5180
|
+
unitPrice: {
|
|
5181
|
+
type: "unit";
|
|
5182
|
+
amount: string;
|
|
5183
|
+
} | null;
|
|
5184
|
+
upToAmount?: string | undefined;
|
|
5185
|
+
}, {
|
|
5186
|
+
flatPrice: {
|
|
5187
|
+
type: "flat";
|
|
5188
|
+
amount: string;
|
|
5189
|
+
} | null;
|
|
5190
|
+
unitPrice: {
|
|
5191
|
+
type: "unit";
|
|
5192
|
+
amount: string;
|
|
5193
|
+
} | null;
|
|
5194
|
+
upToAmount?: string | undefined;
|
|
5195
|
+
}>, "many">;
|
|
5196
|
+
type: zod.ZodEnum<["tiered"]>;
|
|
5197
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5198
|
+
type: "tiered";
|
|
5199
|
+
mode: "volume" | "graduated";
|
|
5200
|
+
tiers: {
|
|
5201
|
+
flatPrice: {
|
|
5202
|
+
type: "flat";
|
|
5203
|
+
amount: string;
|
|
5204
|
+
} | null;
|
|
5205
|
+
unitPrice: {
|
|
5206
|
+
type: "unit";
|
|
5207
|
+
amount: string;
|
|
5208
|
+
} | null;
|
|
5209
|
+
upToAmount?: string | undefined;
|
|
5210
|
+
}[];
|
|
5211
|
+
maximumAmount?: string | undefined;
|
|
5212
|
+
minimumAmount?: string | undefined;
|
|
5213
|
+
}, {
|
|
5214
|
+
type: "tiered";
|
|
5215
|
+
mode: "volume" | "graduated";
|
|
5216
|
+
tiers: {
|
|
5217
|
+
flatPrice: {
|
|
5218
|
+
type: "flat";
|
|
5219
|
+
amount: string;
|
|
5220
|
+
} | null;
|
|
5221
|
+
unitPrice: {
|
|
5222
|
+
type: "unit";
|
|
5223
|
+
amount: string;
|
|
5224
|
+
} | null;
|
|
5225
|
+
upToAmount?: string | undefined;
|
|
5226
|
+
}[];
|
|
5227
|
+
maximumAmount?: string | undefined;
|
|
5228
|
+
minimumAmount?: string | undefined;
|
|
5229
|
+
}>, zod.ZodObject<{
|
|
5230
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5231
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5232
|
+
multiplier: zod.ZodDefault<zod.ZodString>;
|
|
5233
|
+
type: zod.ZodEnum<["dynamic"]>;
|
|
5234
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5235
|
+
type: "dynamic";
|
|
5236
|
+
multiplier: string;
|
|
5237
|
+
maximumAmount?: string | undefined;
|
|
5238
|
+
minimumAmount?: string | undefined;
|
|
5239
|
+
}, {
|
|
5240
|
+
type: "dynamic";
|
|
5241
|
+
maximumAmount?: string | undefined;
|
|
5242
|
+
minimumAmount?: string | undefined;
|
|
5243
|
+
multiplier?: string | undefined;
|
|
5244
|
+
}>, zod.ZodObject<{
|
|
5245
|
+
amount: zod.ZodString;
|
|
5246
|
+
maximumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5247
|
+
minimumAmount: zod.ZodOptional<zod.ZodString>;
|
|
5248
|
+
quantityPerPackage: zod.ZodString;
|
|
5249
|
+
type: zod.ZodEnum<["package"]>;
|
|
5250
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5251
|
+
type: "package";
|
|
5252
|
+
amount: string;
|
|
5253
|
+
quantityPerPackage: string;
|
|
5254
|
+
maximumAmount?: string | undefined;
|
|
5255
|
+
minimumAmount?: string | undefined;
|
|
5256
|
+
}, {
|
|
5257
|
+
type: "package";
|
|
5258
|
+
amount: string;
|
|
5259
|
+
quantityPerPackage: string;
|
|
5260
|
+
maximumAmount?: string | undefined;
|
|
5261
|
+
minimumAmount?: string | undefined;
|
|
5262
|
+
}>]>>;
|
|
6603
5263
|
taxConfig: zod.ZodOptional<zod.ZodObject<{
|
|
6604
5264
|
behavior: zod.ZodOptional<zod.ZodEnum<["inclusive", "exclusive"]>>;
|
|
6605
5265
|
customInvoicing: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -6638,8 +5298,40 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6638
5298
|
type: "flat";
|
|
6639
5299
|
amount: string;
|
|
6640
5300
|
paymentTerm: "in_advance" | "in_arrears";
|
|
5301
|
+
} | {
|
|
5302
|
+
type: "unit";
|
|
5303
|
+
amount: string;
|
|
5304
|
+
maximumAmount?: string | undefined;
|
|
5305
|
+
minimumAmount?: string | undefined;
|
|
5306
|
+
} | {
|
|
5307
|
+
type: "tiered";
|
|
5308
|
+
mode: "volume" | "graduated";
|
|
5309
|
+
tiers: {
|
|
5310
|
+
flatPrice: {
|
|
5311
|
+
type: "flat";
|
|
5312
|
+
amount: string;
|
|
5313
|
+
} | null;
|
|
5314
|
+
unitPrice: {
|
|
5315
|
+
type: "unit";
|
|
5316
|
+
amount: string;
|
|
5317
|
+
} | null;
|
|
5318
|
+
upToAmount?: string | undefined;
|
|
5319
|
+
}[];
|
|
5320
|
+
maximumAmount?: string | undefined;
|
|
5321
|
+
minimumAmount?: string | undefined;
|
|
5322
|
+
} | {
|
|
5323
|
+
type: "dynamic";
|
|
5324
|
+
multiplier: string;
|
|
5325
|
+
maximumAmount?: string | undefined;
|
|
5326
|
+
minimumAmount?: string | undefined;
|
|
5327
|
+
} | {
|
|
5328
|
+
type: "package";
|
|
5329
|
+
amount: string;
|
|
5330
|
+
quantityPerPackage: string;
|
|
5331
|
+
maximumAmount?: string | undefined;
|
|
5332
|
+
minimumAmount?: string | undefined;
|
|
6641
5333
|
} | null;
|
|
6642
|
-
|
|
5334
|
+
featureKey?: string | undefined;
|
|
6643
5335
|
discounts?: {
|
|
6644
5336
|
percentage?: {
|
|
6645
5337
|
percentage: number;
|
|
@@ -6663,9 +5355,41 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6663
5355
|
price: {
|
|
6664
5356
|
type: "flat";
|
|
6665
5357
|
amount: string;
|
|
6666
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5358
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5359
|
+
} | {
|
|
5360
|
+
type: "unit";
|
|
5361
|
+
amount: string;
|
|
5362
|
+
maximumAmount?: string | undefined;
|
|
5363
|
+
minimumAmount?: string | undefined;
|
|
5364
|
+
} | {
|
|
5365
|
+
type: "tiered";
|
|
5366
|
+
mode: "volume" | "graduated";
|
|
5367
|
+
tiers: {
|
|
5368
|
+
flatPrice: {
|
|
5369
|
+
type: "flat";
|
|
5370
|
+
amount: string;
|
|
5371
|
+
} | null;
|
|
5372
|
+
unitPrice: {
|
|
5373
|
+
type: "unit";
|
|
5374
|
+
amount: string;
|
|
5375
|
+
} | null;
|
|
5376
|
+
upToAmount?: string | undefined;
|
|
5377
|
+
}[];
|
|
5378
|
+
maximumAmount?: string | undefined;
|
|
5379
|
+
minimumAmount?: string | undefined;
|
|
5380
|
+
} | {
|
|
5381
|
+
type: "dynamic";
|
|
5382
|
+
maximumAmount?: string | undefined;
|
|
5383
|
+
minimumAmount?: string | undefined;
|
|
5384
|
+
multiplier?: string | undefined;
|
|
5385
|
+
} | {
|
|
5386
|
+
type: "package";
|
|
5387
|
+
amount: string;
|
|
5388
|
+
quantityPerPackage: string;
|
|
5389
|
+
maximumAmount?: string | undefined;
|
|
5390
|
+
minimumAmount?: string | undefined;
|
|
6667
5391
|
} | null;
|
|
6668
|
-
|
|
5392
|
+
featureKey?: string | undefined;
|
|
6669
5393
|
discounts?: {
|
|
6670
5394
|
percentage?: {
|
|
6671
5395
|
percentage: number;
|
|
@@ -6719,21 +5443,54 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6719
5443
|
code: string;
|
|
6720
5444
|
} | undefined;
|
|
6721
5445
|
}>>;
|
|
6722
|
-
type: zod.ZodEnum<["flat_fee"]>;
|
|
6723
5446
|
}, "strip", zod.ZodTypeAny, {
|
|
6724
5447
|
name: string;
|
|
6725
|
-
type: "flat_fee";
|
|
6726
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
6727
5448
|
invoiceAt: Date;
|
|
6728
5449
|
period: {
|
|
6729
5450
|
from: Date;
|
|
6730
5451
|
to: Date;
|
|
6731
5452
|
};
|
|
6732
|
-
category: "regular" | "commitment";
|
|
6733
5453
|
id?: string | undefined;
|
|
6734
5454
|
description?: string | undefined;
|
|
5455
|
+
featureKey?: string | undefined;
|
|
6735
5456
|
metadata?: Record<string, string> | null | undefined;
|
|
6736
|
-
|
|
5457
|
+
price?: {
|
|
5458
|
+
type: "flat";
|
|
5459
|
+
amount: string;
|
|
5460
|
+
paymentTerm: "in_advance" | "in_arrears";
|
|
5461
|
+
} | {
|
|
5462
|
+
type: "unit";
|
|
5463
|
+
amount: string;
|
|
5464
|
+
maximumAmount?: string | undefined;
|
|
5465
|
+
minimumAmount?: string | undefined;
|
|
5466
|
+
} | {
|
|
5467
|
+
type: "tiered";
|
|
5468
|
+
mode: "volume" | "graduated";
|
|
5469
|
+
tiers: {
|
|
5470
|
+
flatPrice: {
|
|
5471
|
+
type: "flat";
|
|
5472
|
+
amount: string;
|
|
5473
|
+
} | null;
|
|
5474
|
+
unitPrice: {
|
|
5475
|
+
type: "unit";
|
|
5476
|
+
amount: string;
|
|
5477
|
+
} | null;
|
|
5478
|
+
upToAmount?: string | undefined;
|
|
5479
|
+
}[];
|
|
5480
|
+
maximumAmount?: string | undefined;
|
|
5481
|
+
minimumAmount?: string | undefined;
|
|
5482
|
+
} | {
|
|
5483
|
+
type: "dynamic";
|
|
5484
|
+
multiplier: string;
|
|
5485
|
+
maximumAmount?: string | undefined;
|
|
5486
|
+
minimumAmount?: string | undefined;
|
|
5487
|
+
} | {
|
|
5488
|
+
type: "package";
|
|
5489
|
+
amount: string;
|
|
5490
|
+
quantityPerPackage: string;
|
|
5491
|
+
maximumAmount?: string | undefined;
|
|
5492
|
+
minimumAmount?: string | undefined;
|
|
5493
|
+
} | undefined;
|
|
6737
5494
|
taxConfig?: {
|
|
6738
5495
|
stripe?: {
|
|
6739
5496
|
code: string;
|
|
@@ -6748,8 +5505,40 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6748
5505
|
type: "flat";
|
|
6749
5506
|
amount: string;
|
|
6750
5507
|
paymentTerm: "in_advance" | "in_arrears";
|
|
5508
|
+
} | {
|
|
5509
|
+
type: "unit";
|
|
5510
|
+
amount: string;
|
|
5511
|
+
maximumAmount?: string | undefined;
|
|
5512
|
+
minimumAmount?: string | undefined;
|
|
5513
|
+
} | {
|
|
5514
|
+
type: "tiered";
|
|
5515
|
+
mode: "volume" | "graduated";
|
|
5516
|
+
tiers: {
|
|
5517
|
+
flatPrice: {
|
|
5518
|
+
type: "flat";
|
|
5519
|
+
amount: string;
|
|
5520
|
+
} | null;
|
|
5521
|
+
unitPrice: {
|
|
5522
|
+
type: "unit";
|
|
5523
|
+
amount: string;
|
|
5524
|
+
} | null;
|
|
5525
|
+
upToAmount?: string | undefined;
|
|
5526
|
+
}[];
|
|
5527
|
+
maximumAmount?: string | undefined;
|
|
5528
|
+
minimumAmount?: string | undefined;
|
|
5529
|
+
} | {
|
|
5530
|
+
type: "dynamic";
|
|
5531
|
+
multiplier: string;
|
|
5532
|
+
maximumAmount?: string | undefined;
|
|
5533
|
+
minimumAmount?: string | undefined;
|
|
5534
|
+
} | {
|
|
5535
|
+
type: "package";
|
|
5536
|
+
amount: string;
|
|
5537
|
+
quantityPerPackage: string;
|
|
5538
|
+
maximumAmount?: string | undefined;
|
|
5539
|
+
minimumAmount?: string | undefined;
|
|
6751
5540
|
} | null;
|
|
6752
|
-
|
|
5541
|
+
featureKey?: string | undefined;
|
|
6753
5542
|
discounts?: {
|
|
6754
5543
|
percentage?: {
|
|
6755
5544
|
percentage: number;
|
|
@@ -6770,10 +5559,8 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6770
5559
|
} | undefined;
|
|
6771
5560
|
} | undefined;
|
|
6772
5561
|
} | undefined;
|
|
6773
|
-
perUnitAmount?: string | undefined;
|
|
6774
5562
|
}, {
|
|
6775
5563
|
name: string;
|
|
6776
|
-
type: "flat_fee";
|
|
6777
5564
|
invoiceAt: Date;
|
|
6778
5565
|
period: {
|
|
6779
5566
|
from: Date;
|
|
@@ -6781,9 +5568,45 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6781
5568
|
};
|
|
6782
5569
|
id?: string | undefined;
|
|
6783
5570
|
description?: string | undefined;
|
|
5571
|
+
featureKey?: string | undefined;
|
|
6784
5572
|
metadata?: Record<string, string> | null | undefined;
|
|
6785
|
-
|
|
6786
|
-
|
|
5573
|
+
price?: {
|
|
5574
|
+
type: "flat";
|
|
5575
|
+
amount: string;
|
|
5576
|
+
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5577
|
+
} | {
|
|
5578
|
+
type: "unit";
|
|
5579
|
+
amount: string;
|
|
5580
|
+
maximumAmount?: string | undefined;
|
|
5581
|
+
minimumAmount?: string | undefined;
|
|
5582
|
+
} | {
|
|
5583
|
+
type: "tiered";
|
|
5584
|
+
mode: "volume" | "graduated";
|
|
5585
|
+
tiers: {
|
|
5586
|
+
flatPrice: {
|
|
5587
|
+
type: "flat";
|
|
5588
|
+
amount: string;
|
|
5589
|
+
} | null;
|
|
5590
|
+
unitPrice: {
|
|
5591
|
+
type: "unit";
|
|
5592
|
+
amount: string;
|
|
5593
|
+
} | null;
|
|
5594
|
+
upToAmount?: string | undefined;
|
|
5595
|
+
}[];
|
|
5596
|
+
maximumAmount?: string | undefined;
|
|
5597
|
+
minimumAmount?: string | undefined;
|
|
5598
|
+
} | {
|
|
5599
|
+
type: "dynamic";
|
|
5600
|
+
maximumAmount?: string | undefined;
|
|
5601
|
+
minimumAmount?: string | undefined;
|
|
5602
|
+
multiplier?: string | undefined;
|
|
5603
|
+
} | {
|
|
5604
|
+
type: "package";
|
|
5605
|
+
amount: string;
|
|
5606
|
+
quantityPerPackage: string;
|
|
5607
|
+
maximumAmount?: string | undefined;
|
|
5608
|
+
minimumAmount?: string | undefined;
|
|
5609
|
+
} | undefined;
|
|
6787
5610
|
taxConfig?: {
|
|
6788
5611
|
stripe?: {
|
|
6789
5612
|
code: string;
|
|
@@ -6798,8 +5621,40 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6798
5621
|
type: "flat";
|
|
6799
5622
|
amount: string;
|
|
6800
5623
|
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
5624
|
+
} | {
|
|
5625
|
+
type: "unit";
|
|
5626
|
+
amount: string;
|
|
5627
|
+
maximumAmount?: string | undefined;
|
|
5628
|
+
minimumAmount?: string | undefined;
|
|
5629
|
+
} | {
|
|
5630
|
+
type: "tiered";
|
|
5631
|
+
mode: "volume" | "graduated";
|
|
5632
|
+
tiers: {
|
|
5633
|
+
flatPrice: {
|
|
5634
|
+
type: "flat";
|
|
5635
|
+
amount: string;
|
|
5636
|
+
} | null;
|
|
5637
|
+
unitPrice: {
|
|
5638
|
+
type: "unit";
|
|
5639
|
+
amount: string;
|
|
5640
|
+
} | null;
|
|
5641
|
+
upToAmount?: string | undefined;
|
|
5642
|
+
}[];
|
|
5643
|
+
maximumAmount?: string | undefined;
|
|
5644
|
+
minimumAmount?: string | undefined;
|
|
5645
|
+
} | {
|
|
5646
|
+
type: "dynamic";
|
|
5647
|
+
maximumAmount?: string | undefined;
|
|
5648
|
+
minimumAmount?: string | undefined;
|
|
5649
|
+
multiplier?: string | undefined;
|
|
5650
|
+
} | {
|
|
5651
|
+
type: "package";
|
|
5652
|
+
amount: string;
|
|
5653
|
+
quantityPerPackage: string;
|
|
5654
|
+
maximumAmount?: string | undefined;
|
|
5655
|
+
minimumAmount?: string | undefined;
|
|
6801
5656
|
} | null;
|
|
6802
|
-
|
|
5657
|
+
featureKey?: string | undefined;
|
|
6803
5658
|
discounts?: {
|
|
6804
5659
|
percentage?: {
|
|
6805
5660
|
percentage: number;
|
|
@@ -6820,9 +5675,7 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
6820
5675
|
} | undefined;
|
|
6821
5676
|
} | undefined;
|
|
6822
5677
|
} | undefined;
|
|
6823
|
-
|
|
6824
|
-
perUnitAmount?: string | undefined;
|
|
6825
|
-
}>]>, "many">;
|
|
5678
|
+
}>, "many">;
|
|
6826
5679
|
metadata: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodString>>>;
|
|
6827
5680
|
supplier: zod.ZodObject<{
|
|
6828
5681
|
addresses: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -7054,9 +5907,8 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
7054
5907
|
code?: string | undefined;
|
|
7055
5908
|
} | undefined;
|
|
7056
5909
|
};
|
|
7057
|
-
lines:
|
|
5910
|
+
lines: {
|
|
7058
5911
|
name: string;
|
|
7059
|
-
type: "usage_based";
|
|
7060
5912
|
invoiceAt: Date;
|
|
7061
5913
|
period: {
|
|
7062
5914
|
from: Date;
|
|
@@ -7171,58 +6023,7 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
7171
6023
|
} | undefined;
|
|
7172
6024
|
} | undefined;
|
|
7173
6025
|
} | undefined;
|
|
7174
|
-
}
|
|
7175
|
-
name: string;
|
|
7176
|
-
type: "flat_fee";
|
|
7177
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
7178
|
-
invoiceAt: Date;
|
|
7179
|
-
period: {
|
|
7180
|
-
from: Date;
|
|
7181
|
-
to: Date;
|
|
7182
|
-
};
|
|
7183
|
-
category: "regular" | "commitment";
|
|
7184
|
-
id?: string | undefined;
|
|
7185
|
-
description?: string | undefined;
|
|
7186
|
-
metadata?: Record<string, string> | null | undefined;
|
|
7187
|
-
quantity?: string | undefined;
|
|
7188
|
-
taxConfig?: {
|
|
7189
|
-
stripe?: {
|
|
7190
|
-
code: string;
|
|
7191
|
-
} | undefined;
|
|
7192
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
7193
|
-
customInvoicing?: {
|
|
7194
|
-
code: string;
|
|
7195
|
-
} | undefined;
|
|
7196
|
-
} | undefined;
|
|
7197
|
-
rateCard?: {
|
|
7198
|
-
price: {
|
|
7199
|
-
type: "flat";
|
|
7200
|
-
amount: string;
|
|
7201
|
-
paymentTerm: "in_advance" | "in_arrears";
|
|
7202
|
-
} | null;
|
|
7203
|
-
quantity?: string | undefined;
|
|
7204
|
-
discounts?: {
|
|
7205
|
-
percentage?: {
|
|
7206
|
-
percentage: number;
|
|
7207
|
-
correlationId?: string | undefined;
|
|
7208
|
-
} | undefined;
|
|
7209
|
-
usage?: {
|
|
7210
|
-
quantity: string;
|
|
7211
|
-
correlationId?: string | undefined;
|
|
7212
|
-
} | undefined;
|
|
7213
|
-
} | undefined;
|
|
7214
|
-
taxConfig?: {
|
|
7215
|
-
stripe?: {
|
|
7216
|
-
code: string;
|
|
7217
|
-
} | undefined;
|
|
7218
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
7219
|
-
customInvoicing?: {
|
|
7220
|
-
code: string;
|
|
7221
|
-
} | undefined;
|
|
7222
|
-
} | undefined;
|
|
7223
|
-
} | undefined;
|
|
7224
|
-
perUnitAmount?: string | undefined;
|
|
7225
|
-
})[];
|
|
6026
|
+
}[];
|
|
7226
6027
|
supplier: {
|
|
7227
6028
|
name?: string | undefined;
|
|
7228
6029
|
addresses?: {
|
|
@@ -7277,9 +6078,8 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
7277
6078
|
code?: string | undefined;
|
|
7278
6079
|
} | undefined;
|
|
7279
6080
|
};
|
|
7280
|
-
lines:
|
|
6081
|
+
lines: {
|
|
7281
6082
|
name: string;
|
|
7282
|
-
type: "usage_based";
|
|
7283
6083
|
invoiceAt: Date;
|
|
7284
6084
|
period: {
|
|
7285
6085
|
from: Date;
|
|
@@ -7394,58 +6194,7 @@ export declare const updateInvoiceBody: zod.ZodObject<{
|
|
|
7394
6194
|
} | undefined;
|
|
7395
6195
|
} | undefined;
|
|
7396
6196
|
} | undefined;
|
|
7397
|
-
}
|
|
7398
|
-
name: string;
|
|
7399
|
-
type: "flat_fee";
|
|
7400
|
-
invoiceAt: Date;
|
|
7401
|
-
period: {
|
|
7402
|
-
from: Date;
|
|
7403
|
-
to: Date;
|
|
7404
|
-
};
|
|
7405
|
-
id?: string | undefined;
|
|
7406
|
-
description?: string | undefined;
|
|
7407
|
-
metadata?: Record<string, string> | null | undefined;
|
|
7408
|
-
quantity?: string | undefined;
|
|
7409
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
7410
|
-
taxConfig?: {
|
|
7411
|
-
stripe?: {
|
|
7412
|
-
code: string;
|
|
7413
|
-
} | undefined;
|
|
7414
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
7415
|
-
customInvoicing?: {
|
|
7416
|
-
code: string;
|
|
7417
|
-
} | undefined;
|
|
7418
|
-
} | undefined;
|
|
7419
|
-
rateCard?: {
|
|
7420
|
-
price: {
|
|
7421
|
-
type: "flat";
|
|
7422
|
-
amount: string;
|
|
7423
|
-
paymentTerm?: "in_advance" | "in_arrears" | undefined;
|
|
7424
|
-
} | null;
|
|
7425
|
-
quantity?: string | undefined;
|
|
7426
|
-
discounts?: {
|
|
7427
|
-
percentage?: {
|
|
7428
|
-
percentage: number;
|
|
7429
|
-
correlationId?: string | undefined;
|
|
7430
|
-
} | undefined;
|
|
7431
|
-
usage?: {
|
|
7432
|
-
quantity: string;
|
|
7433
|
-
correlationId?: string | undefined;
|
|
7434
|
-
} | undefined;
|
|
7435
|
-
} | undefined;
|
|
7436
|
-
taxConfig?: {
|
|
7437
|
-
stripe?: {
|
|
7438
|
-
code: string;
|
|
7439
|
-
} | undefined;
|
|
7440
|
-
behavior?: "inclusive" | "exclusive" | undefined;
|
|
7441
|
-
customInvoicing?: {
|
|
7442
|
-
code: string;
|
|
7443
|
-
} | undefined;
|
|
7444
|
-
} | undefined;
|
|
7445
|
-
} | undefined;
|
|
7446
|
-
category?: "regular" | "commitment" | undefined;
|
|
7447
|
-
perUnitAmount?: string | undefined;
|
|
7448
|
-
})[];
|
|
6197
|
+
}[];
|
|
7449
6198
|
supplier: {
|
|
7450
6199
|
name?: string | undefined;
|
|
7451
6200
|
addresses?: {
|