@openmeter/client 1.0.0-beta-5ecf67135706 → 1.0.0-beta-c817ba7663ad
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/funcs/subscriptions.d.ts +2 -1
- package/dist/funcs/subscriptions.js +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/models/operations/subscriptions.d.ts +6 -1
- package/dist/models/schemas.d.ts +1349 -706
- package/dist/models/schemas.js +202 -159
- package/dist/models/types.d.ts +415 -323
- package/dist/sdk/subscriptions.d.ts +2 -1
- package/dist/sdk/subscriptions.js +4 -1
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -248,6 +248,23 @@ export declare const subscriptionEditTimingEnum: z.ZodEnum<{
|
|
|
248
248
|
immediate: "immediate";
|
|
249
249
|
next_billing_cycle: "next_billing_cycle";
|
|
250
250
|
}>;
|
|
251
|
+
export declare const unitConfigOperation: z.ZodEnum<{
|
|
252
|
+
multiply: "multiply";
|
|
253
|
+
divide: "divide";
|
|
254
|
+
}>;
|
|
255
|
+
export declare const unitConfigRoundingMode: z.ZodEnum<{
|
|
256
|
+
none: "none";
|
|
257
|
+
floor: "floor";
|
|
258
|
+
ceiling: "ceiling";
|
|
259
|
+
half_up: "half_up";
|
|
260
|
+
}>;
|
|
261
|
+
export declare const rateCardStaticEntitlement: z.ZodObject<{
|
|
262
|
+
type: z.ZodLiteral<"static">;
|
|
263
|
+
config: z.ZodUnknown;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
export declare const rateCardBooleanEntitlement: z.ZodObject<{
|
|
266
|
+
type: z.ZodLiteral<"boolean">;
|
|
267
|
+
}, z.core.$strip>;
|
|
251
268
|
export declare const appType: z.ZodEnum<{
|
|
252
269
|
sandbox: "sandbox";
|
|
253
270
|
stripe: "stripe";
|
|
@@ -342,23 +359,6 @@ export declare const planStatus: z.ZodEnum<{
|
|
|
342
359
|
draft: "draft";
|
|
343
360
|
archived: "archived";
|
|
344
361
|
}>;
|
|
345
|
-
export declare const unitConfigOperation: z.ZodEnum<{
|
|
346
|
-
multiply: "multiply";
|
|
347
|
-
divide: "divide";
|
|
348
|
-
}>;
|
|
349
|
-
export declare const unitConfigRoundingMode: z.ZodEnum<{
|
|
350
|
-
none: "none";
|
|
351
|
-
floor: "floor";
|
|
352
|
-
ceiling: "ceiling";
|
|
353
|
-
half_up: "half_up";
|
|
354
|
-
}>;
|
|
355
|
-
export declare const rateCardStaticEntitlement: z.ZodObject<{
|
|
356
|
-
type: z.ZodLiteral<"static">;
|
|
357
|
-
config: z.ZodUnknown;
|
|
358
|
-
}, z.core.$strip>;
|
|
359
|
-
export declare const rateCardBooleanEntitlement: z.ZodObject<{
|
|
360
|
-
type: z.ZodLiteral<"boolean">;
|
|
361
|
-
}, z.core.$strip>;
|
|
362
362
|
export declare const productCatalogValidationError: z.ZodObject<{
|
|
363
363
|
code: z.ZodString;
|
|
364
364
|
message: z.ZodString;
|
|
@@ -519,6 +519,10 @@ export declare const totals: z.ZodObject<{
|
|
|
519
519
|
credits_total: z.ZodString;
|
|
520
520
|
total: z.ZodString;
|
|
521
521
|
}, z.core.$strip>;
|
|
522
|
+
export declare const spendCommitments: z.ZodObject<{
|
|
523
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
524
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
525
|
+
}, z.core.$strip>;
|
|
522
526
|
export declare const invoiceLineCreditsApplied: z.ZodObject<{
|
|
523
527
|
amount: z.ZodString;
|
|
524
528
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -541,10 +545,6 @@ export declare const llmCostModelPricing: z.ZodObject<{
|
|
|
541
545
|
cache_write_per_token: z.ZodOptional<z.ZodString>;
|
|
542
546
|
reasoning_per_token: z.ZodOptional<z.ZodString>;
|
|
543
547
|
}, z.core.$strip>;
|
|
544
|
-
export declare const spendCommitments: z.ZodObject<{
|
|
545
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
546
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
547
|
-
}, z.core.$strip>;
|
|
548
548
|
export declare const queryFilterNumeric: z.ZodObject<{
|
|
549
549
|
gt: z.ZodOptional<z.ZodString>;
|
|
550
550
|
gte: z.ZodOptional<z.ZodString>;
|
|
@@ -698,6 +698,9 @@ export declare const subscriptionReference: z.ZodObject<{
|
|
|
698
698
|
export declare const addonReference: z.ZodObject<{
|
|
699
699
|
id: z.ZodString;
|
|
700
700
|
}, z.core.$strip>;
|
|
701
|
+
export declare const featureReference: z.ZodObject<{
|
|
702
|
+
id: z.ZodString;
|
|
703
|
+
}, z.core.$strip>;
|
|
701
704
|
export declare const appReference: z.ZodObject<{
|
|
702
705
|
id: z.ZodString;
|
|
703
706
|
}, z.core.$strip>;
|
|
@@ -712,9 +715,6 @@ export declare const currencyFiat: z.ZodObject<{
|
|
|
712
715
|
symbol: z.ZodOptional<z.ZodString>;
|
|
713
716
|
code: z.ZodString;
|
|
714
717
|
}, z.core.$strip>;
|
|
715
|
-
export declare const featureReference: z.ZodObject<{
|
|
716
|
-
id: z.ZodString;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
718
|
export declare const dateTimeFieldFilter: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
719
719
|
eq: z.ZodOptional<z.ZodString>;
|
|
720
720
|
lt: z.ZodOptional<z.ZodString>;
|
|
@@ -753,6 +753,11 @@ export declare const closedPeriod: z.ZodObject<{
|
|
|
753
753
|
from: z.ZodString;
|
|
754
754
|
to: z.ZodString;
|
|
755
755
|
}, z.core.$strip>;
|
|
756
|
+
export declare const subscriptionAddonTimelineSegment: z.ZodObject<{
|
|
757
|
+
active_from: z.ZodString;
|
|
758
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
759
|
+
quantity: z.ZodNumber;
|
|
760
|
+
}, z.core.$strip>;
|
|
756
761
|
export declare const costBasis: z.ZodObject<{
|
|
757
762
|
id: z.ZodString;
|
|
758
763
|
fiat_code: z.ZodString;
|
|
@@ -1138,16 +1143,16 @@ export declare const createCreditGrantPurchase: z.ZodObject<{
|
|
|
1138
1143
|
on_creation: "on_creation";
|
|
1139
1144
|
}>>>;
|
|
1140
1145
|
}, z.core.$strip>;
|
|
1141
|
-
export declare const recurringPeriod: z.ZodObject<{
|
|
1142
|
-
anchor: z.ZodString;
|
|
1143
|
-
interval: z.ZodString;
|
|
1144
|
-
}, z.core.$strip>;
|
|
1145
1146
|
export declare const rateCardMeteredEntitlement: z.ZodObject<{
|
|
1146
1147
|
type: z.ZodLiteral<"metered">;
|
|
1147
1148
|
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1148
1149
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1149
1150
|
usage_period: z.ZodOptional<z.ZodString>;
|
|
1150
1151
|
}, z.core.$strip>;
|
|
1152
|
+
export declare const recurringPeriod: z.ZodObject<{
|
|
1153
|
+
anchor: z.ZodString;
|
|
1154
|
+
interval: z.ZodString;
|
|
1155
|
+
}, z.core.$strip>;
|
|
1151
1156
|
export declare const creditGrantPurchase: z.ZodObject<{
|
|
1152
1157
|
currency: z.ZodString;
|
|
1153
1158
|
per_unit_cost_basis: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -1286,6 +1291,21 @@ export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
1286
1291
|
immediate: "immediate";
|
|
1287
1292
|
next_billing_cycle: "next_billing_cycle";
|
|
1288
1293
|
}>, z.ZodString]>;
|
|
1294
|
+
export declare const unitConfig: z.ZodObject<{
|
|
1295
|
+
operation: z.ZodEnum<{
|
|
1296
|
+
multiply: "multiply";
|
|
1297
|
+
divide: "divide";
|
|
1298
|
+
}>;
|
|
1299
|
+
conversion_factor: z.ZodString;
|
|
1300
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1301
|
+
none: "none";
|
|
1302
|
+
floor: "floor";
|
|
1303
|
+
ceiling: "ceiling";
|
|
1304
|
+
half_up: "half_up";
|
|
1305
|
+
}>>>;
|
|
1306
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1307
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
}, z.core.$strip>;
|
|
1289
1309
|
export declare const appCatalogItem: z.ZodObject<{
|
|
1290
1310
|
type: z.ZodEnum<{
|
|
1291
1311
|
sandbox: "sandbox";
|
|
@@ -1419,21 +1439,6 @@ export declare const createCurrencyCustomRequest: z.ZodObject<{
|
|
|
1419
1439
|
symbol: z.ZodOptional<z.ZodString>;
|
|
1420
1440
|
code: z.ZodString;
|
|
1421
1441
|
}, z.core.$strip>;
|
|
1422
|
-
export declare const unitConfig: z.ZodObject<{
|
|
1423
|
-
operation: z.ZodEnum<{
|
|
1424
|
-
multiply: "multiply";
|
|
1425
|
-
divide: "divide";
|
|
1426
|
-
}>;
|
|
1427
|
-
conversion_factor: z.ZodString;
|
|
1428
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1429
|
-
none: "none";
|
|
1430
|
-
floor: "floor";
|
|
1431
|
-
ceiling: "ceiling";
|
|
1432
|
-
half_up: "half_up";
|
|
1433
|
-
}>>>;
|
|
1434
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1435
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
1436
|
-
}, z.core.$strip>;
|
|
1437
1442
|
export declare const governanceQueryRequest: z.ZodObject<{
|
|
1438
1443
|
include_credits: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1439
1444
|
customer: z.ZodObject<{
|
|
@@ -1867,22 +1872,6 @@ export declare const updateOrganizationDefaultTaxCodesRequest: z.ZodObject<{
|
|
|
1867
1872
|
id: z.ZodString;
|
|
1868
1873
|
}, z.core.$strip>>;
|
|
1869
1874
|
}, z.core.$strip>;
|
|
1870
|
-
export declare const subscriptionAddon: z.ZodObject<{
|
|
1871
|
-
id: z.ZodString;
|
|
1872
|
-
name: z.ZodString;
|
|
1873
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1874
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1875
|
-
created_at: z.ZodString;
|
|
1876
|
-
updated_at: z.ZodString;
|
|
1877
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
1878
|
-
addon: z.ZodObject<{
|
|
1879
|
-
id: z.ZodString;
|
|
1880
|
-
}, z.core.$strip>;
|
|
1881
|
-
quantity: z.ZodNumber;
|
|
1882
|
-
quantity_at: z.ZodString;
|
|
1883
|
-
active_from: z.ZodString;
|
|
1884
|
-
active_to: z.ZodOptional<z.ZodString>;
|
|
1885
|
-
}, z.core.$strip>;
|
|
1886
1875
|
export declare const planAddon: z.ZodObject<{
|
|
1887
1876
|
id: z.ZodString;
|
|
1888
1877
|
name: z.ZodString;
|
|
@@ -2462,13 +2451,6 @@ export declare const listCustomerEntitlementAccessResponseData: z.ZodObject<{
|
|
|
2462
2451
|
config: z.ZodOptional<z.ZodString>;
|
|
2463
2452
|
}, z.core.$strip>>;
|
|
2464
2453
|
}, z.core.$strip>;
|
|
2465
|
-
export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
|
|
2466
|
-
type: z.ZodLiteral<"anchored">;
|
|
2467
|
-
recurring_period: z.ZodObject<{
|
|
2468
|
-
anchor: z.ZodString;
|
|
2469
|
-
interval: z.ZodString;
|
|
2470
|
-
}, z.core.$strip>;
|
|
2471
|
-
}, z.core.$strip>;
|
|
2472
2454
|
export declare const rateCardEntitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2473
2455
|
type: z.ZodLiteral<"metered">;
|
|
2474
2456
|
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -2480,6 +2462,13 @@ export declare const rateCardEntitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2480
2462
|
}, z.core.$strip>, z.ZodObject<{
|
|
2481
2463
|
type: z.ZodLiteral<"boolean">;
|
|
2482
2464
|
}, z.core.$strip>], "type">;
|
|
2465
|
+
export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
|
|
2466
|
+
type: z.ZodLiteral<"anchored">;
|
|
2467
|
+
recurring_period: z.ZodObject<{
|
|
2468
|
+
anchor: z.ZodString;
|
|
2469
|
+
interval: z.ZodString;
|
|
2470
|
+
}, z.core.$strip>;
|
|
2471
|
+
}, z.core.$strip>;
|
|
2483
2472
|
export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
|
|
2484
2473
|
data: z.ZodArray<z.ZodObject<{
|
|
2485
2474
|
id: z.ZodString;
|
|
@@ -2578,6 +2567,38 @@ export declare const subscriptionChange: z.ZodObject<{
|
|
|
2578
2567
|
next_billing_cycle: "next_billing_cycle";
|
|
2579
2568
|
}>, z.ZodString]>;
|
|
2580
2569
|
}, z.core.$strip>;
|
|
2570
|
+
export declare const createSubscriptionAddonRequest: z.ZodObject<{
|
|
2571
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2572
|
+
addon: z.ZodObject<{
|
|
2573
|
+
id: z.ZodString;
|
|
2574
|
+
}, z.core.$strip>;
|
|
2575
|
+
quantity: z.ZodNumber;
|
|
2576
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
2577
|
+
immediate: "immediate";
|
|
2578
|
+
next_billing_cycle: "next_billing_cycle";
|
|
2579
|
+
}>, z.ZodString]>;
|
|
2580
|
+
}, z.core.$strip>;
|
|
2581
|
+
export declare const invoiceUsageQuantityDetail: z.ZodObject<{
|
|
2582
|
+
raw_quantity: z.ZodString;
|
|
2583
|
+
converted_quantity: z.ZodString;
|
|
2584
|
+
invoiced_quantity: z.ZodString;
|
|
2585
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
2586
|
+
applied_unit_config: z.ZodObject<{
|
|
2587
|
+
operation: z.ZodEnum<{
|
|
2588
|
+
multiply: "multiply";
|
|
2589
|
+
divide: "divide";
|
|
2590
|
+
}>;
|
|
2591
|
+
conversion_factor: z.ZodString;
|
|
2592
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2593
|
+
none: "none";
|
|
2594
|
+
floor: "floor";
|
|
2595
|
+
ceiling: "ceiling";
|
|
2596
|
+
half_up: "half_up";
|
|
2597
|
+
}>>>;
|
|
2598
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2599
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
2600
|
+
}, z.core.$strip>;
|
|
2601
|
+
}, z.core.$strip>;
|
|
2581
2602
|
export declare const appStripe: z.ZodObject<{
|
|
2582
2603
|
id: z.ZodString;
|
|
2583
2604
|
name: z.ZodString;
|
|
@@ -2776,27 +2797,6 @@ export declare const currency: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2776
2797
|
code: z.ZodString;
|
|
2777
2798
|
created_at: z.ZodString;
|
|
2778
2799
|
}, z.core.$strip>], "type">;
|
|
2779
|
-
export declare const invoiceUsageQuantityDetail: z.ZodObject<{
|
|
2780
|
-
raw_quantity: z.ZodString;
|
|
2781
|
-
converted_quantity: z.ZodString;
|
|
2782
|
-
invoiced_quantity: z.ZodString;
|
|
2783
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
2784
|
-
applied_unit_config: z.ZodObject<{
|
|
2785
|
-
operation: z.ZodEnum<{
|
|
2786
|
-
multiply: "multiply";
|
|
2787
|
-
divide: "divide";
|
|
2788
|
-
}>;
|
|
2789
|
-
conversion_factor: z.ZodString;
|
|
2790
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
2791
|
-
none: "none";
|
|
2792
|
-
floor: "floor";
|
|
2793
|
-
ceiling: "ceiling";
|
|
2794
|
-
half_up: "half_up";
|
|
2795
|
-
}>>>;
|
|
2796
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2797
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
2798
|
-
}, z.core.$strip>;
|
|
2799
|
-
}, z.core.$strip>;
|
|
2800
2800
|
export declare const governanceFeatureAccess: z.ZodObject<{
|
|
2801
2801
|
has_access: z.ZodBoolean;
|
|
2802
2802
|
reason: z.ZodOptional<z.ZodObject<{
|
|
@@ -3136,31 +3136,6 @@ export declare const workflowTaxSettings: z.ZodObject<{
|
|
|
3136
3136
|
}, z.core.$strip>>;
|
|
3137
3137
|
}, z.core.$strip>>;
|
|
3138
3138
|
}, z.core.$strip>;
|
|
3139
|
-
export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
|
|
3140
|
-
data: z.ZodArray<z.ZodObject<{
|
|
3141
|
-
id: z.ZodString;
|
|
3142
|
-
name: z.ZodString;
|
|
3143
|
-
description: z.ZodOptional<z.ZodString>;
|
|
3144
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3145
|
-
created_at: z.ZodString;
|
|
3146
|
-
updated_at: z.ZodString;
|
|
3147
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
3148
|
-
addon: z.ZodObject<{
|
|
3149
|
-
id: z.ZodString;
|
|
3150
|
-
}, z.core.$strip>;
|
|
3151
|
-
quantity: z.ZodNumber;
|
|
3152
|
-
quantity_at: z.ZodString;
|
|
3153
|
-
active_from: z.ZodString;
|
|
3154
|
-
active_to: z.ZodOptional<z.ZodString>;
|
|
3155
|
-
}, z.core.$strip>>;
|
|
3156
|
-
meta: z.ZodObject<{
|
|
3157
|
-
page: z.ZodObject<{
|
|
3158
|
-
number: z.ZodNumber;
|
|
3159
|
-
size: z.ZodNumber;
|
|
3160
|
-
total: z.ZodNumber;
|
|
3161
|
-
}, z.core.$strip>;
|
|
3162
|
-
}, z.core.$strip>;
|
|
3163
|
-
}, z.core.$strip>;
|
|
3164
3139
|
export declare const planAddonPagePaginatedResponse: z.ZodObject<{
|
|
3165
3140
|
data: z.ZodArray<z.ZodObject<{
|
|
3166
3141
|
id: z.ZodString;
|
|
@@ -4975,57 +4950,6 @@ export declare const createChargeUsageBasedRequest: z.ZodObject<{
|
|
|
4975
4950
|
to: z.ZodString;
|
|
4976
4951
|
}, z.core.$strip>>;
|
|
4977
4952
|
}, z.core.$strip>;
|
|
4978
|
-
export declare const invoiceLineRateCard: z.ZodObject<{
|
|
4979
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4980
|
-
type: z.ZodLiteral<"free">;
|
|
4981
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4982
|
-
type: z.ZodLiteral<"flat">;
|
|
4983
|
-
amount: z.ZodString;
|
|
4984
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4985
|
-
type: z.ZodLiteral<"unit">;
|
|
4986
|
-
amount: z.ZodString;
|
|
4987
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4988
|
-
type: z.ZodLiteral<"graduated">;
|
|
4989
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
4990
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4991
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4992
|
-
type: z.ZodLiteral<"flat">;
|
|
4993
|
-
amount: z.ZodString;
|
|
4994
|
-
}, z.core.$strip>>;
|
|
4995
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4996
|
-
type: z.ZodLiteral<"unit">;
|
|
4997
|
-
amount: z.ZodString;
|
|
4998
|
-
}, z.core.$strip>>;
|
|
4999
|
-
}, z.core.$strip>>;
|
|
5000
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5001
|
-
type: z.ZodLiteral<"volume">;
|
|
5002
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
5003
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5004
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5005
|
-
type: z.ZodLiteral<"flat">;
|
|
5006
|
-
amount: z.ZodString;
|
|
5007
|
-
}, z.core.$strip>>;
|
|
5008
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5009
|
-
type: z.ZodLiteral<"unit">;
|
|
5010
|
-
amount: z.ZodString;
|
|
5011
|
-
}, z.core.$strip>>;
|
|
5012
|
-
}, z.core.$strip>>;
|
|
5013
|
-
}, z.core.$strip>], "type">;
|
|
5014
|
-
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5015
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5016
|
-
exclusive: "exclusive";
|
|
5017
|
-
inclusive: "inclusive";
|
|
5018
|
-
}>>;
|
|
5019
|
-
code: z.ZodObject<{
|
|
5020
|
-
id: z.ZodString;
|
|
5021
|
-
}, z.core.$strip>;
|
|
5022
|
-
}, z.core.$strip>>;
|
|
5023
|
-
feature_key: z.ZodOptional<z.ZodString>;
|
|
5024
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
5025
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5026
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
5027
|
-
}, z.core.$strip>>;
|
|
5028
|
-
}, z.core.$strip>;
|
|
5029
4953
|
export declare const rateCard: z.ZodObject<{
|
|
5030
4954
|
name: z.ZodString;
|
|
5031
4955
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -5115,14 +5039,65 @@ export declare const rateCard: z.ZodObject<{
|
|
|
5115
5039
|
type: z.ZodLiteral<"boolean">;
|
|
5116
5040
|
}, z.core.$strip>], "type">>;
|
|
5117
5041
|
}, z.core.$strip>;
|
|
5118
|
-
export declare const
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5042
|
+
export declare const invoiceLineRateCard: z.ZodObject<{
|
|
5043
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5044
|
+
type: z.ZodLiteral<"free">;
|
|
5045
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5046
|
+
type: z.ZodLiteral<"flat">;
|
|
5047
|
+
amount: z.ZodString;
|
|
5048
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5049
|
+
type: z.ZodLiteral<"unit">;
|
|
5050
|
+
amount: z.ZodString;
|
|
5051
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5052
|
+
type: z.ZodLiteral<"graduated">;
|
|
5053
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5054
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5055
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5056
|
+
type: z.ZodLiteral<"flat">;
|
|
5057
|
+
amount: z.ZodString;
|
|
5058
|
+
}, z.core.$strip>>;
|
|
5059
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5060
|
+
type: z.ZodLiteral<"unit">;
|
|
5061
|
+
amount: z.ZodString;
|
|
5062
|
+
}, z.core.$strip>>;
|
|
5063
|
+
}, z.core.$strip>>;
|
|
5064
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5065
|
+
type: z.ZodLiteral<"volume">;
|
|
5066
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5067
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5068
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5069
|
+
type: z.ZodLiteral<"flat">;
|
|
5070
|
+
amount: z.ZodString;
|
|
5071
|
+
}, z.core.$strip>>;
|
|
5072
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5073
|
+
type: z.ZodLiteral<"unit">;
|
|
5074
|
+
amount: z.ZodString;
|
|
5075
|
+
}, z.core.$strip>>;
|
|
5076
|
+
}, z.core.$strip>>;
|
|
5077
|
+
}, z.core.$strip>], "type">;
|
|
5078
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5079
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5080
|
+
exclusive: "exclusive";
|
|
5081
|
+
inclusive: "inclusive";
|
|
5082
|
+
}>>;
|
|
5083
|
+
code: z.ZodObject<{
|
|
5084
|
+
id: z.ZodString;
|
|
5085
|
+
}, z.core.$strip>;
|
|
5086
|
+
}, z.core.$strip>>;
|
|
5087
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
5088
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5089
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5090
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
5091
|
+
}, z.core.$strip>>;
|
|
5092
|
+
}, z.core.$strip>;
|
|
5093
|
+
export declare const featurePagePaginatedResponse: z.ZodObject<{
|
|
5094
|
+
data: z.ZodArray<z.ZodObject<{
|
|
5095
|
+
id: z.ZodString;
|
|
5096
|
+
name: z.ZodString;
|
|
5097
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5098
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5099
|
+
created_at: z.ZodString;
|
|
5100
|
+
updated_at: z.ZodString;
|
|
5126
5101
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
5127
5102
|
key: z.ZodString;
|
|
5128
5103
|
meter: z.ZodOptional<z.ZodObject<{
|
|
@@ -5629,78 +5604,16 @@ export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
5629
5604
|
to: z.ZodString;
|
|
5630
5605
|
}, z.core.$strip>>;
|
|
5631
5606
|
}, z.core.$strip>], "type">;
|
|
5632
|
-
export declare const
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5636
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5637
|
-
created_at: z.ZodString;
|
|
5638
|
-
updated_at: z.ZodString;
|
|
5639
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
5640
|
-
type: z.ZodLiteral<"standard_line">;
|
|
5641
|
-
lifecycle_controller: z.ZodEnum<{
|
|
5642
|
-
manual: "manual";
|
|
5643
|
-
system: "system";
|
|
5644
|
-
}>;
|
|
5645
|
-
service_period: z.ZodObject<{
|
|
5646
|
-
from: z.ZodString;
|
|
5647
|
-
to: z.ZodString;
|
|
5648
|
-
}, z.core.$strip>;
|
|
5649
|
-
totals: z.ZodObject<{
|
|
5650
|
-
amount: z.ZodString;
|
|
5651
|
-
taxes_total: z.ZodString;
|
|
5652
|
-
taxes_inclusive_total: z.ZodString;
|
|
5653
|
-
taxes_exclusive_total: z.ZodString;
|
|
5654
|
-
charges_total: z.ZodString;
|
|
5655
|
-
discounts_total: z.ZodString;
|
|
5656
|
-
credits_total: z.ZodString;
|
|
5657
|
-
total: z.ZodString;
|
|
5658
|
-
}, z.core.$strip>;
|
|
5659
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
5660
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5661
|
-
id: z.ZodString;
|
|
5662
|
-
reason: z.ZodEnum<{
|
|
5663
|
-
maximum_spend: "maximum_spend";
|
|
5664
|
-
ratecard_percentage: "ratecard_percentage";
|
|
5665
|
-
ratecard_usage: "ratecard_usage";
|
|
5666
|
-
}>;
|
|
5667
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5668
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
5669
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5670
|
-
}, z.core.$strip>>;
|
|
5671
|
-
amount: z.ZodString;
|
|
5672
|
-
}, z.core.$strip>>>;
|
|
5673
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5674
|
-
id: z.ZodString;
|
|
5675
|
-
reason: z.ZodEnum<{
|
|
5676
|
-
maximum_spend: "maximum_spend";
|
|
5677
|
-
ratecard_percentage: "ratecard_percentage";
|
|
5678
|
-
ratecard_usage: "ratecard_usage";
|
|
5679
|
-
}>;
|
|
5680
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5681
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
5682
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5683
|
-
}, z.core.$strip>>;
|
|
5684
|
-
quantity: z.ZodString;
|
|
5685
|
-
}, z.core.$strip>>>;
|
|
5686
|
-
}, z.core.$strip>>;
|
|
5687
|
-
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5688
|
-
amount: z.ZodString;
|
|
5607
|
+
export declare const subscriptionAddonRateCard: z.ZodObject<{
|
|
5608
|
+
rate_card: z.ZodObject<{
|
|
5609
|
+
name: z.ZodString;
|
|
5689
5610
|
description: z.ZodOptional<z.ZodString>;
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
}, z.core.$strip>>;
|
|
5694
|
-
subscription: z.ZodOptional<z.ZodObject<{
|
|
5695
|
-
id: z.ZodString;
|
|
5696
|
-
phase: z.ZodObject<{
|
|
5611
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5612
|
+
key: z.ZodString;
|
|
5613
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
5697
5614
|
id: z.ZodString;
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
}, z.core.$strip>;
|
|
5701
|
-
}, z.core.$strip>;
|
|
5702
|
-
}, z.core.$strip>>;
|
|
5703
|
-
rate_card: z.ZodObject<{
|
|
5615
|
+
}, z.core.$strip>>;
|
|
5616
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
5704
5617
|
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5705
5618
|
type: z.ZodLiteral<"free">;
|
|
5706
5619
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -5736,6 +5649,30 @@ export declare const invoiceStandardLine: z.ZodObject<{
|
|
|
5736
5649
|
}, z.core.$strip>>;
|
|
5737
5650
|
}, z.core.$strip>>;
|
|
5738
5651
|
}, z.core.$strip>], "type">;
|
|
5652
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
5653
|
+
operation: z.ZodEnum<{
|
|
5654
|
+
multiply: "multiply";
|
|
5655
|
+
divide: "divide";
|
|
5656
|
+
}>;
|
|
5657
|
+
conversion_factor: z.ZodString;
|
|
5658
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5659
|
+
none: "none";
|
|
5660
|
+
floor: "floor";
|
|
5661
|
+
ceiling: "ceiling";
|
|
5662
|
+
half_up: "half_up";
|
|
5663
|
+
}>>>;
|
|
5664
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5665
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
5666
|
+
}, z.core.$strip>>;
|
|
5667
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
5668
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
5669
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
5670
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
5671
|
+
}, z.core.$strip>>;
|
|
5672
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5673
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5674
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
5675
|
+
}, z.core.$strip>>;
|
|
5739
5676
|
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5740
5677
|
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5741
5678
|
exclusive: "exclusive";
|
|
@@ -5745,79 +5682,19 @@ export declare const invoiceStandardLine: z.ZodObject<{
|
|
|
5745
5682
|
id: z.ZodString;
|
|
5746
5683
|
}, z.core.$strip>;
|
|
5747
5684
|
}, z.core.$strip>>;
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5685
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5686
|
+
type: z.ZodLiteral<"metered">;
|
|
5687
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5688
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
5689
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
5690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5691
|
+
type: z.ZodLiteral<"static">;
|
|
5692
|
+
config: z.ZodUnknown;
|
|
5693
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5694
|
+
type: z.ZodLiteral<"boolean">;
|
|
5695
|
+
}, z.core.$strip>], "type">>;
|
|
5753
5696
|
}, z.core.$strip>;
|
|
5754
|
-
|
|
5755
|
-
id: z.ZodString;
|
|
5756
|
-
name: z.ZodString;
|
|
5757
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5758
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5759
|
-
created_at: z.ZodString;
|
|
5760
|
-
updated_at: z.ZodString;
|
|
5761
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
5762
|
-
service_period: z.ZodObject<{
|
|
5763
|
-
from: z.ZodString;
|
|
5764
|
-
to: z.ZodString;
|
|
5765
|
-
}, z.core.$strip>;
|
|
5766
|
-
totals: z.ZodObject<{
|
|
5767
|
-
amount: z.ZodString;
|
|
5768
|
-
taxes_total: z.ZodString;
|
|
5769
|
-
taxes_inclusive_total: z.ZodString;
|
|
5770
|
-
taxes_exclusive_total: z.ZodString;
|
|
5771
|
-
charges_total: z.ZodString;
|
|
5772
|
-
discounts_total: z.ZodString;
|
|
5773
|
-
credits_total: z.ZodString;
|
|
5774
|
-
total: z.ZodString;
|
|
5775
|
-
}, z.core.$strip>;
|
|
5776
|
-
category: z.ZodDefault<z.ZodEnum<{
|
|
5777
|
-
regular: "regular";
|
|
5778
|
-
commitment: "commitment";
|
|
5779
|
-
}>>;
|
|
5780
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
5781
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5782
|
-
id: z.ZodString;
|
|
5783
|
-
reason: z.ZodEnum<{
|
|
5784
|
-
maximum_spend: "maximum_spend";
|
|
5785
|
-
ratecard_percentage: "ratecard_percentage";
|
|
5786
|
-
ratecard_usage: "ratecard_usage";
|
|
5787
|
-
}>;
|
|
5788
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5789
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
5790
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5791
|
-
}, z.core.$strip>>;
|
|
5792
|
-
amount: z.ZodString;
|
|
5793
|
-
}, z.core.$strip>>>;
|
|
5794
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5795
|
-
id: z.ZodString;
|
|
5796
|
-
reason: z.ZodEnum<{
|
|
5797
|
-
maximum_spend: "maximum_spend";
|
|
5798
|
-
ratecard_percentage: "ratecard_percentage";
|
|
5799
|
-
ratecard_usage: "ratecard_usage";
|
|
5800
|
-
}>;
|
|
5801
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5802
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
5803
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5804
|
-
}, z.core.$strip>>;
|
|
5805
|
-
quantity: z.ZodString;
|
|
5806
|
-
}, z.core.$strip>>>;
|
|
5807
|
-
}, z.core.$strip>>;
|
|
5808
|
-
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5809
|
-
amount: z.ZodString;
|
|
5810
|
-
description: z.ZodOptional<z.ZodString>;
|
|
5811
|
-
}, z.core.$strip>>>;
|
|
5812
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
5813
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
5814
|
-
}, z.core.$strip>>;
|
|
5815
|
-
quantity: z.ZodString;
|
|
5816
|
-
unit_price: z.ZodString;
|
|
5817
|
-
}, z.core.$strip>>;
|
|
5818
|
-
charge: z.ZodOptional<z.ZodObject<{
|
|
5819
|
-
id: z.ZodString;
|
|
5820
|
-
}, z.core.$strip>>;
|
|
5697
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
5821
5698
|
}, z.core.$strip>;
|
|
5822
5699
|
export declare const planPhase: z.ZodObject<{
|
|
5823
5700
|
name: z.ZodString;
|
|
@@ -6231,7 +6108,7 @@ export declare const upsertAddonRequest: z.ZodObject<{
|
|
|
6231
6108
|
}, z.core.$strip>], "type">>;
|
|
6232
6109
|
}, z.core.$strip>>;
|
|
6233
6110
|
}, z.core.$strip>;
|
|
6234
|
-
export declare const
|
|
6111
|
+
export declare const invoiceStandardLine: z.ZodObject<{
|
|
6235
6112
|
id: z.ZodString;
|
|
6236
6113
|
name: z.ZodString;
|
|
6237
6114
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -6239,17 +6116,207 @@ export declare const profile: z.ZodObject<{
|
|
|
6239
6116
|
created_at: z.ZodString;
|
|
6240
6117
|
updated_at: z.ZodString;
|
|
6241
6118
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6119
|
+
type: z.ZodLiteral<"standard_line">;
|
|
6120
|
+
lifecycle_controller: z.ZodEnum<{
|
|
6121
|
+
manual: "manual";
|
|
6122
|
+
system: "system";
|
|
6123
|
+
}>;
|
|
6124
|
+
service_period: z.ZodObject<{
|
|
6125
|
+
from: z.ZodString;
|
|
6126
|
+
to: z.ZodString;
|
|
6127
|
+
}, z.core.$strip>;
|
|
6128
|
+
totals: z.ZodObject<{
|
|
6129
|
+
amount: z.ZodString;
|
|
6130
|
+
taxes_total: z.ZodString;
|
|
6131
|
+
taxes_inclusive_total: z.ZodString;
|
|
6132
|
+
taxes_exclusive_total: z.ZodString;
|
|
6133
|
+
charges_total: z.ZodString;
|
|
6134
|
+
discounts_total: z.ZodString;
|
|
6135
|
+
credits_total: z.ZodString;
|
|
6136
|
+
total: z.ZodString;
|
|
6137
|
+
}, z.core.$strip>;
|
|
6138
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6139
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6140
|
+
id: z.ZodString;
|
|
6141
|
+
reason: z.ZodEnum<{
|
|
6142
|
+
maximum_spend: "maximum_spend";
|
|
6143
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6144
|
+
ratecard_usage: "ratecard_usage";
|
|
6145
|
+
}>;
|
|
6146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6147
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6148
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6149
|
+
}, z.core.$strip>>;
|
|
6150
|
+
amount: z.ZodString;
|
|
6151
|
+
}, z.core.$strip>>>;
|
|
6152
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6153
|
+
id: z.ZodString;
|
|
6154
|
+
reason: z.ZodEnum<{
|
|
6155
|
+
maximum_spend: "maximum_spend";
|
|
6156
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6157
|
+
ratecard_usage: "ratecard_usage";
|
|
6158
|
+
}>;
|
|
6159
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6160
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6161
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6162
|
+
}, z.core.$strip>>;
|
|
6163
|
+
quantity: z.ZodString;
|
|
6164
|
+
}, z.core.$strip>>>;
|
|
6165
|
+
}, z.core.$strip>>;
|
|
6166
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6167
|
+
amount: z.ZodString;
|
|
6168
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6169
|
+
}, z.core.$strip>>>;
|
|
6170
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6171
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6172
|
+
}, z.core.$strip>>;
|
|
6173
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
6174
|
+
id: z.ZodString;
|
|
6175
|
+
phase: z.ZodObject<{
|
|
6176
|
+
id: z.ZodString;
|
|
6177
|
+
item: z.ZodObject<{
|
|
6178
|
+
id: z.ZodString;
|
|
6179
|
+
}, z.core.$strip>;
|
|
6180
|
+
}, z.core.$strip>;
|
|
6181
|
+
}, z.core.$strip>>;
|
|
6182
|
+
rate_card: z.ZodObject<{
|
|
6183
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6184
|
+
type: z.ZodLiteral<"free">;
|
|
6185
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6186
|
+
type: z.ZodLiteral<"flat">;
|
|
6187
|
+
amount: z.ZodString;
|
|
6188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6189
|
+
type: z.ZodLiteral<"unit">;
|
|
6190
|
+
amount: z.ZodString;
|
|
6191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6192
|
+
type: z.ZodLiteral<"graduated">;
|
|
6193
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6194
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6195
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6196
|
+
type: z.ZodLiteral<"flat">;
|
|
6197
|
+
amount: z.ZodString;
|
|
6198
|
+
}, z.core.$strip>>;
|
|
6199
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6200
|
+
type: z.ZodLiteral<"unit">;
|
|
6201
|
+
amount: z.ZodString;
|
|
6202
|
+
}, z.core.$strip>>;
|
|
6203
|
+
}, z.core.$strip>>;
|
|
6204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6205
|
+
type: z.ZodLiteral<"volume">;
|
|
6206
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6207
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6208
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6209
|
+
type: z.ZodLiteral<"flat">;
|
|
6210
|
+
amount: z.ZodString;
|
|
6211
|
+
}, z.core.$strip>>;
|
|
6212
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6213
|
+
type: z.ZodLiteral<"unit">;
|
|
6214
|
+
amount: z.ZodString;
|
|
6215
|
+
}, z.core.$strip>>;
|
|
6216
|
+
}, z.core.$strip>>;
|
|
6217
|
+
}, z.core.$strip>], "type">;
|
|
6218
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
6219
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
6220
|
+
exclusive: "exclusive";
|
|
6221
|
+
inclusive: "inclusive";
|
|
6222
|
+
}>>;
|
|
6223
|
+
code: z.ZodObject<{
|
|
6224
|
+
id: z.ZodString;
|
|
6225
|
+
}, z.core.$strip>;
|
|
6226
|
+
}, z.core.$strip>>;
|
|
6227
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
6228
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6229
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
6230
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
6231
|
+
}, z.core.$strip>>;
|
|
6232
|
+
}, z.core.$strip>;
|
|
6233
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
6234
|
+
id: z.ZodString;
|
|
6235
|
+
name: z.ZodString;
|
|
6236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6237
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6238
|
+
created_at: z.ZodString;
|
|
6239
|
+
updated_at: z.ZodString;
|
|
6240
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6241
|
+
service_period: z.ZodObject<{
|
|
6242
|
+
from: z.ZodString;
|
|
6243
|
+
to: z.ZodString;
|
|
6244
|
+
}, z.core.$strip>;
|
|
6245
|
+
totals: z.ZodObject<{
|
|
6246
|
+
amount: z.ZodString;
|
|
6247
|
+
taxes_total: z.ZodString;
|
|
6248
|
+
taxes_inclusive_total: z.ZodString;
|
|
6249
|
+
taxes_exclusive_total: z.ZodString;
|
|
6250
|
+
charges_total: z.ZodString;
|
|
6251
|
+
discounts_total: z.ZodString;
|
|
6252
|
+
credits_total: z.ZodString;
|
|
6253
|
+
total: z.ZodString;
|
|
6254
|
+
}, z.core.$strip>;
|
|
6255
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
6256
|
+
regular: "regular";
|
|
6257
|
+
commitment: "commitment";
|
|
6258
|
+
}>>;
|
|
6259
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6260
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6261
|
+
id: z.ZodString;
|
|
6262
|
+
reason: z.ZodEnum<{
|
|
6263
|
+
maximum_spend: "maximum_spend";
|
|
6264
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6265
|
+
ratecard_usage: "ratecard_usage";
|
|
6266
|
+
}>;
|
|
6267
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6268
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6269
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6270
|
+
}, z.core.$strip>>;
|
|
6271
|
+
amount: z.ZodString;
|
|
6272
|
+
}, z.core.$strip>>>;
|
|
6273
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6274
|
+
id: z.ZodString;
|
|
6275
|
+
reason: z.ZodEnum<{
|
|
6276
|
+
maximum_spend: "maximum_spend";
|
|
6277
|
+
ratecard_percentage: "ratecard_percentage";
|
|
6278
|
+
ratecard_usage: "ratecard_usage";
|
|
6279
|
+
}>;
|
|
6280
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6281
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6282
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6283
|
+
}, z.core.$strip>>;
|
|
6284
|
+
quantity: z.ZodString;
|
|
6285
|
+
}, z.core.$strip>>>;
|
|
6286
|
+
}, z.core.$strip>>;
|
|
6287
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6288
|
+
amount: z.ZodString;
|
|
6289
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6290
|
+
}, z.core.$strip>>>;
|
|
6291
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
6292
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6293
|
+
}, z.core.$strip>>;
|
|
6294
|
+
quantity: z.ZodString;
|
|
6295
|
+
unit_price: z.ZodString;
|
|
6296
|
+
}, z.core.$strip>>;
|
|
6297
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
6298
|
+
id: z.ZodString;
|
|
6299
|
+
}, z.core.$strip>>;
|
|
6300
|
+
}, z.core.$strip>;
|
|
6301
|
+
export declare const profile: z.ZodObject<{
|
|
6302
|
+
id: z.ZodString;
|
|
6303
|
+
name: z.ZodString;
|
|
6304
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6305
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6306
|
+
created_at: z.ZodString;
|
|
6307
|
+
updated_at: z.ZodString;
|
|
6308
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6309
|
+
supplier: z.ZodObject<{
|
|
6310
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6311
|
+
key: z.ZodOptional<z.ZodString>;
|
|
6312
|
+
name: z.ZodOptional<z.ZodString>;
|
|
6313
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
6314
|
+
code: z.ZodOptional<z.ZodString>;
|
|
6315
|
+
}, z.core.$strip>>;
|
|
6316
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
6317
|
+
billing_address: z.ZodObject<{
|
|
6318
|
+
country: z.ZodOptional<z.ZodString>;
|
|
6319
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
6253
6320
|
state: z.ZodOptional<z.ZodString>;
|
|
6254
6321
|
city: z.ZodOptional<z.ZodString>;
|
|
6255
6322
|
line1: z.ZodOptional<z.ZodString>;
|
|
@@ -6739,196 +6806,123 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
6739
6806
|
}, z.core.$strip>;
|
|
6740
6807
|
}, z.core.$strip>;
|
|
6741
6808
|
}, z.core.$strip>;
|
|
6742
|
-
export declare const
|
|
6809
|
+
export declare const subscriptionAddon: z.ZodObject<{
|
|
6743
6810
|
id: z.ZodString;
|
|
6744
|
-
name: z.ZodString;
|
|
6745
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6746
6811
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6747
6812
|
created_at: z.ZodString;
|
|
6748
6813
|
updated_at: z.ZodString;
|
|
6749
6814
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
}>;
|
|
6755
|
-
service_period: z.ZodObject<{
|
|
6756
|
-
from: z.ZodString;
|
|
6757
|
-
to: z.ZodString;
|
|
6758
|
-
}, z.core.$strip>;
|
|
6759
|
-
totals: z.ZodObject<{
|
|
6760
|
-
amount: z.ZodString;
|
|
6761
|
-
taxes_total: z.ZodString;
|
|
6762
|
-
taxes_inclusive_total: z.ZodString;
|
|
6763
|
-
taxes_exclusive_total: z.ZodString;
|
|
6764
|
-
charges_total: z.ZodString;
|
|
6765
|
-
discounts_total: z.ZodString;
|
|
6766
|
-
credits_total: z.ZodString;
|
|
6767
|
-
total: z.ZodString;
|
|
6815
|
+
name: z.ZodString;
|
|
6816
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6817
|
+
addon: z.ZodObject<{
|
|
6818
|
+
id: z.ZodString;
|
|
6768
6819
|
}, z.core.$strip>;
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6820
|
+
quantity: z.ZodNumber;
|
|
6821
|
+
quantity_at: z.ZodString;
|
|
6822
|
+
active_from: z.ZodString;
|
|
6823
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
6824
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
6825
|
+
immediate: "immediate";
|
|
6826
|
+
next_billing_cycle: "next_billing_cycle";
|
|
6827
|
+
}>, z.ZodString]>;
|
|
6828
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
6829
|
+
active_from: z.ZodString;
|
|
6830
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
6831
|
+
quantity: z.ZodNumber;
|
|
6832
|
+
}, z.core.$strip>>;
|
|
6833
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
6834
|
+
rate_card: z.ZodObject<{
|
|
6835
|
+
name: z.ZodString;
|
|
6777
6836
|
description: z.ZodOptional<z.ZodString>;
|
|
6778
|
-
|
|
6779
|
-
|
|
6837
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6838
|
+
key: z.ZodString;
|
|
6839
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
6840
|
+
id: z.ZodString;
|
|
6780
6841
|
}, z.core.$strip>>;
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6803
|
-
}, z.core.$strip>>;
|
|
6804
|
-
subscription: z.ZodOptional<z.ZodObject<{
|
|
6805
|
-
id: z.ZodString;
|
|
6806
|
-
phase: z.ZodObject<{
|
|
6807
|
-
id: z.ZodString;
|
|
6808
|
-
item: z.ZodObject<{
|
|
6809
|
-
id: z.ZodString;
|
|
6810
|
-
}, z.core.$strip>;
|
|
6811
|
-
}, z.core.$strip>;
|
|
6812
|
-
}, z.core.$strip>>;
|
|
6813
|
-
rate_card: z.ZodObject<{
|
|
6814
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6815
|
-
type: z.ZodLiteral<"free">;
|
|
6816
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6817
|
-
type: z.ZodLiteral<"flat">;
|
|
6818
|
-
amount: z.ZodString;
|
|
6819
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6820
|
-
type: z.ZodLiteral<"unit">;
|
|
6821
|
-
amount: z.ZodString;
|
|
6822
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6823
|
-
type: z.ZodLiteral<"graduated">;
|
|
6824
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
6825
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6826
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6827
|
-
type: z.ZodLiteral<"flat">;
|
|
6828
|
-
amount: z.ZodString;
|
|
6842
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
6843
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6844
|
+
type: z.ZodLiteral<"free">;
|
|
6845
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6846
|
+
type: z.ZodLiteral<"flat">;
|
|
6847
|
+
amount: z.ZodString;
|
|
6848
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6849
|
+
type: z.ZodLiteral<"unit">;
|
|
6850
|
+
amount: z.ZodString;
|
|
6851
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6852
|
+
type: z.ZodLiteral<"graduated">;
|
|
6853
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6854
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6855
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6856
|
+
type: z.ZodLiteral<"flat">;
|
|
6857
|
+
amount: z.ZodString;
|
|
6858
|
+
}, z.core.$strip>>;
|
|
6859
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6860
|
+
type: z.ZodLiteral<"unit">;
|
|
6861
|
+
amount: z.ZodString;
|
|
6862
|
+
}, z.core.$strip>>;
|
|
6829
6863
|
}, z.core.$strip>>;
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6864
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6865
|
+
type: z.ZodLiteral<"volume">;
|
|
6866
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6867
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
6868
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6869
|
+
type: z.ZodLiteral<"flat">;
|
|
6870
|
+
amount: z.ZodString;
|
|
6871
|
+
}, z.core.$strip>>;
|
|
6872
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6873
|
+
type: z.ZodLiteral<"unit">;
|
|
6874
|
+
amount: z.ZodString;
|
|
6875
|
+
}, z.core.$strip>>;
|
|
6833
6876
|
}, z.core.$strip>>;
|
|
6877
|
+
}, z.core.$strip>], "type">;
|
|
6878
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
6879
|
+
operation: z.ZodEnum<{
|
|
6880
|
+
multiply: "multiply";
|
|
6881
|
+
divide: "divide";
|
|
6882
|
+
}>;
|
|
6883
|
+
conversion_factor: z.ZodString;
|
|
6884
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6885
|
+
none: "none";
|
|
6886
|
+
floor: "floor";
|
|
6887
|
+
ceiling: "ceiling";
|
|
6888
|
+
half_up: "half_up";
|
|
6889
|
+
}>>>;
|
|
6890
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6891
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
6834
6892
|
}, z.core.$strip>>;
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
6840
|
-
type: z.ZodLiteral<"flat">;
|
|
6841
|
-
amount: z.ZodString;
|
|
6842
|
-
}, z.core.$strip>>;
|
|
6843
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
6844
|
-
type: z.ZodLiteral<"unit">;
|
|
6845
|
-
amount: z.ZodString;
|
|
6846
|
-
}, z.core.$strip>>;
|
|
6893
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
6894
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
6895
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
6896
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
6847
6897
|
}, z.core.$strip>>;
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
service_period: z.ZodObject<{
|
|
6873
|
-
from: z.ZodString;
|
|
6874
|
-
to: z.ZodString;
|
|
6875
|
-
}, z.core.$strip>;
|
|
6876
|
-
totals: z.ZodObject<{
|
|
6877
|
-
amount: z.ZodString;
|
|
6878
|
-
taxes_total: z.ZodString;
|
|
6879
|
-
taxes_inclusive_total: z.ZodString;
|
|
6880
|
-
taxes_exclusive_total: z.ZodString;
|
|
6881
|
-
charges_total: z.ZodString;
|
|
6882
|
-
discounts_total: z.ZodString;
|
|
6883
|
-
credits_total: z.ZodString;
|
|
6884
|
-
total: z.ZodString;
|
|
6898
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
6899
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
6900
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
6901
|
+
}, z.core.$strip>>;
|
|
6902
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
6903
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
6904
|
+
exclusive: "exclusive";
|
|
6905
|
+
inclusive: "inclusive";
|
|
6906
|
+
}>>;
|
|
6907
|
+
code: z.ZodObject<{
|
|
6908
|
+
id: z.ZodString;
|
|
6909
|
+
}, z.core.$strip>;
|
|
6910
|
+
}, z.core.$strip>>;
|
|
6911
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6912
|
+
type: z.ZodLiteral<"metered">;
|
|
6913
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6914
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6915
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
6916
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6917
|
+
type: z.ZodLiteral<"static">;
|
|
6918
|
+
config: z.ZodUnknown;
|
|
6919
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6920
|
+
type: z.ZodLiteral<"boolean">;
|
|
6921
|
+
}, z.core.$strip>], "type">>;
|
|
6885
6922
|
}, z.core.$strip>;
|
|
6886
|
-
|
|
6887
|
-
regular: "regular";
|
|
6888
|
-
commitment: "commitment";
|
|
6889
|
-
}>>;
|
|
6890
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
6891
|
-
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6892
|
-
id: z.ZodString;
|
|
6893
|
-
reason: z.ZodEnum<{
|
|
6894
|
-
maximum_spend: "maximum_spend";
|
|
6895
|
-
ratecard_percentage: "ratecard_percentage";
|
|
6896
|
-
ratecard_usage: "ratecard_usage";
|
|
6897
|
-
}>;
|
|
6898
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6899
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
6900
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6901
|
-
}, z.core.$strip>>;
|
|
6902
|
-
amount: z.ZodString;
|
|
6903
|
-
}, z.core.$strip>>>;
|
|
6904
|
-
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6905
|
-
id: z.ZodString;
|
|
6906
|
-
reason: z.ZodEnum<{
|
|
6907
|
-
maximum_spend: "maximum_spend";
|
|
6908
|
-
ratecard_percentage: "ratecard_percentage";
|
|
6909
|
-
ratecard_usage: "ratecard_usage";
|
|
6910
|
-
}>;
|
|
6911
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6912
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
6913
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6914
|
-
}, z.core.$strip>>;
|
|
6915
|
-
quantity: z.ZodString;
|
|
6916
|
-
}, z.core.$strip>>>;
|
|
6917
|
-
}, z.core.$strip>>;
|
|
6918
|
-
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6919
|
-
amount: z.ZodString;
|
|
6920
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6921
|
-
}, z.core.$strip>>>;
|
|
6922
|
-
external_references: z.ZodOptional<z.ZodObject<{
|
|
6923
|
-
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
6924
|
-
}, z.core.$strip>>;
|
|
6925
|
-
quantity: z.ZodString;
|
|
6926
|
-
unit_price: z.ZodString;
|
|
6927
|
-
}, z.core.$strip>>;
|
|
6928
|
-
charge: z.ZodOptional<z.ZodObject<{
|
|
6929
|
-
id: z.ZodString;
|
|
6923
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
6930
6924
|
}, z.core.$strip>>;
|
|
6931
|
-
}, z.core.$strip
|
|
6925
|
+
}, z.core.$strip>;
|
|
6932
6926
|
export declare const plan: z.ZodObject<{
|
|
6933
6927
|
id: z.ZodString;
|
|
6934
6928
|
name: z.ZodString;
|
|
@@ -7391,40 +7385,230 @@ export declare const addonPagePaginatedResponse: z.ZodObject<{
|
|
|
7391
7385
|
}, z.core.$strip>;
|
|
7392
7386
|
}, z.core.$strip>;
|
|
7393
7387
|
}, z.core.$strip>;
|
|
7394
|
-
export declare const
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7388
|
+
export declare const invoiceLine: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7389
|
+
id: z.ZodString;
|
|
7390
|
+
name: z.ZodString;
|
|
7391
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7392
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7393
|
+
created_at: z.ZodString;
|
|
7394
|
+
updated_at: z.ZodString;
|
|
7395
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7396
|
+
type: z.ZodLiteral<"standard_line">;
|
|
7397
|
+
lifecycle_controller: z.ZodEnum<{
|
|
7398
|
+
manual: "manual";
|
|
7399
|
+
system: "system";
|
|
7400
|
+
}>;
|
|
7401
|
+
service_period: z.ZodObject<{
|
|
7402
|
+
from: z.ZodString;
|
|
7403
|
+
to: z.ZodString;
|
|
7404
|
+
}, z.core.$strip>;
|
|
7405
|
+
totals: z.ZodObject<{
|
|
7406
|
+
amount: z.ZodString;
|
|
7407
|
+
taxes_total: z.ZodString;
|
|
7408
|
+
taxes_inclusive_total: z.ZodString;
|
|
7409
|
+
taxes_exclusive_total: z.ZodString;
|
|
7410
|
+
charges_total: z.ZodString;
|
|
7411
|
+
discounts_total: z.ZodString;
|
|
7412
|
+
credits_total: z.ZodString;
|
|
7413
|
+
total: z.ZodString;
|
|
7414
|
+
}, z.core.$strip>;
|
|
7415
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7416
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7417
|
+
id: z.ZodString;
|
|
7418
|
+
reason: z.ZodEnum<{
|
|
7419
|
+
maximum_spend: "maximum_spend";
|
|
7420
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7421
|
+
ratecard_usage: "ratecard_usage";
|
|
7422
|
+
}>;
|
|
7423
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7424
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7425
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7426
|
+
}, z.core.$strip>>;
|
|
7427
|
+
amount: z.ZodString;
|
|
7428
|
+
}, z.core.$strip>>>;
|
|
7429
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7430
|
+
id: z.ZodString;
|
|
7431
|
+
reason: z.ZodEnum<{
|
|
7432
|
+
maximum_spend: "maximum_spend";
|
|
7433
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7434
|
+
ratecard_usage: "ratecard_usage";
|
|
7435
|
+
}>;
|
|
7436
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7437
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7438
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7439
|
+
}, z.core.$strip>>;
|
|
7440
|
+
quantity: z.ZodString;
|
|
7441
|
+
}, z.core.$strip>>>;
|
|
7442
|
+
}, z.core.$strip>>;
|
|
7443
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7444
|
+
amount: z.ZodString;
|
|
7445
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7446
|
+
}, z.core.$strip>>>;
|
|
7447
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7448
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7449
|
+
}, z.core.$strip>>;
|
|
7450
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
7451
|
+
id: z.ZodString;
|
|
7452
|
+
phase: z.ZodObject<{
|
|
7453
|
+
id: z.ZodString;
|
|
7454
|
+
item: z.ZodObject<{
|
|
7455
|
+
id: z.ZodString;
|
|
7456
|
+
}, z.core.$strip>;
|
|
7457
|
+
}, z.core.$strip>;
|
|
7458
|
+
}, z.core.$strip>>;
|
|
7459
|
+
rate_card: z.ZodObject<{
|
|
7460
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7461
|
+
type: z.ZodLiteral<"free">;
|
|
7462
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7463
|
+
type: z.ZodLiteral<"flat">;
|
|
7464
|
+
amount: z.ZodString;
|
|
7465
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7466
|
+
type: z.ZodLiteral<"unit">;
|
|
7467
|
+
amount: z.ZodString;
|
|
7468
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7469
|
+
type: z.ZodLiteral<"graduated">;
|
|
7470
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7471
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7472
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7473
|
+
type: z.ZodLiteral<"flat">;
|
|
7474
|
+
amount: z.ZodString;
|
|
7475
|
+
}, z.core.$strip>>;
|
|
7476
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7477
|
+
type: z.ZodLiteral<"unit">;
|
|
7478
|
+
amount: z.ZodString;
|
|
7479
|
+
}, z.core.$strip>>;
|
|
7480
|
+
}, z.core.$strip>>;
|
|
7481
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7482
|
+
type: z.ZodLiteral<"volume">;
|
|
7483
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7484
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7485
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7486
|
+
type: z.ZodLiteral<"flat">;
|
|
7487
|
+
amount: z.ZodString;
|
|
7488
|
+
}, z.core.$strip>>;
|
|
7489
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7490
|
+
type: z.ZodLiteral<"unit">;
|
|
7491
|
+
amount: z.ZodString;
|
|
7492
|
+
}, z.core.$strip>>;
|
|
7493
|
+
}, z.core.$strip>>;
|
|
7494
|
+
}, z.core.$strip>], "type">;
|
|
7495
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
7496
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7497
|
+
exclusive: "exclusive";
|
|
7498
|
+
inclusive: "inclusive";
|
|
7499
|
+
}>>;
|
|
7500
|
+
code: z.ZodObject<{
|
|
7501
|
+
id: z.ZodString;
|
|
7502
|
+
}, z.core.$strip>;
|
|
7503
|
+
}, z.core.$strip>>;
|
|
7504
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
7505
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7506
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7507
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7508
|
+
}, z.core.$strip>>;
|
|
7509
|
+
}, z.core.$strip>;
|
|
7510
|
+
detailed_lines: z.ZodArray<z.ZodObject<{
|
|
7511
|
+
id: z.ZodString;
|
|
7512
|
+
name: z.ZodString;
|
|
7513
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7514
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7515
|
+
created_at: z.ZodString;
|
|
7516
|
+
updated_at: z.ZodString;
|
|
7517
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7518
|
+
service_period: z.ZodObject<{
|
|
7519
|
+
from: z.ZodString;
|
|
7520
|
+
to: z.ZodString;
|
|
7521
|
+
}, z.core.$strip>;
|
|
7522
|
+
totals: z.ZodObject<{
|
|
7523
|
+
amount: z.ZodString;
|
|
7524
|
+
taxes_total: z.ZodString;
|
|
7525
|
+
taxes_inclusive_total: z.ZodString;
|
|
7526
|
+
taxes_exclusive_total: z.ZodString;
|
|
7527
|
+
charges_total: z.ZodString;
|
|
7528
|
+
discounts_total: z.ZodString;
|
|
7529
|
+
credits_total: z.ZodString;
|
|
7530
|
+
total: z.ZodString;
|
|
7531
|
+
}, z.core.$strip>;
|
|
7532
|
+
category: z.ZodDefault<z.ZodEnum<{
|
|
7533
|
+
regular: "regular";
|
|
7534
|
+
commitment: "commitment";
|
|
7535
|
+
}>>;
|
|
7536
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7537
|
+
amount: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7538
|
+
id: z.ZodString;
|
|
7539
|
+
reason: z.ZodEnum<{
|
|
7540
|
+
maximum_spend: "maximum_spend";
|
|
7541
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7542
|
+
ratecard_usage: "ratecard_usage";
|
|
7543
|
+
}>;
|
|
7544
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7545
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7546
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7547
|
+
}, z.core.$strip>>;
|
|
7548
|
+
amount: z.ZodString;
|
|
7549
|
+
}, z.core.$strip>>>;
|
|
7550
|
+
usage: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7551
|
+
id: z.ZodString;
|
|
7552
|
+
reason: z.ZodEnum<{
|
|
7553
|
+
maximum_spend: "maximum_spend";
|
|
7554
|
+
ratecard_percentage: "ratecard_percentage";
|
|
7555
|
+
ratecard_usage: "ratecard_usage";
|
|
7556
|
+
}>;
|
|
7557
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7558
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7559
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7560
|
+
}, z.core.$strip>>;
|
|
7561
|
+
quantity: z.ZodString;
|
|
7562
|
+
}, z.core.$strip>>>;
|
|
7563
|
+
}, z.core.$strip>>;
|
|
7564
|
+
credits_applied: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7565
|
+
amount: z.ZodString;
|
|
7566
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7567
|
+
}, z.core.$strip>>>;
|
|
7568
|
+
external_references: z.ZodOptional<z.ZodObject<{
|
|
7569
|
+
invoicing_id: z.ZodOptional<z.ZodString>;
|
|
7570
|
+
}, z.core.$strip>>;
|
|
7571
|
+
quantity: z.ZodString;
|
|
7572
|
+
unit_price: z.ZodString;
|
|
7573
|
+
}, z.core.$strip>>;
|
|
7574
|
+
charge: z.ZodOptional<z.ZodObject<{
|
|
7575
|
+
id: z.ZodString;
|
|
7576
|
+
}, z.core.$strip>>;
|
|
7577
|
+
}, z.core.$strip>], "type">;
|
|
7578
|
+
export declare const profilePagePaginatedResponse: z.ZodObject<{
|
|
7579
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7580
|
+
id: z.ZodString;
|
|
7581
|
+
name: z.ZodString;
|
|
7582
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7583
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7584
|
+
created_at: z.ZodString;
|
|
7585
|
+
updated_at: z.ZodString;
|
|
7586
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7587
|
+
supplier: z.ZodObject<{
|
|
7588
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7589
|
+
key: z.ZodOptional<z.ZodString>;
|
|
7590
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7591
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
7592
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7593
|
+
}, z.core.$strip>>;
|
|
7594
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
7595
|
+
billing_address: z.ZodObject<{
|
|
7596
|
+
country: z.ZodOptional<z.ZodString>;
|
|
7597
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
7598
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7599
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7600
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
7601
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
7602
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
7603
|
+
}, z.core.$strip>;
|
|
7604
|
+
}, z.core.$strip>>;
|
|
7605
|
+
}, z.core.$strip>;
|
|
7606
|
+
workflow: z.ZodObject<{
|
|
7607
|
+
collection: z.ZodOptional<z.ZodObject<{
|
|
7608
|
+
alignment: z.ZodDefault<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7609
|
+
type: z.ZodLiteral<"subscription">;
|
|
7610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7611
|
+
type: z.ZodLiteral<"anchored">;
|
|
7428
7612
|
recurring_period: z.ZodObject<{
|
|
7429
7613
|
anchor: z.ZodString;
|
|
7430
7614
|
interval: z.ZodString;
|
|
@@ -7489,37 +7673,300 @@ export declare const profilePagePaginatedResponse: z.ZodObject<{
|
|
|
7489
7673
|
}, z.core.$strip>;
|
|
7490
7674
|
}, z.core.$strip>;
|
|
7491
7675
|
}, z.core.$strip>;
|
|
7492
|
-
export declare const
|
|
7493
|
-
|
|
7494
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7495
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7496
|
-
created_at: z.ZodString;
|
|
7497
|
-
updated_at: z.ZodString;
|
|
7498
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7499
|
-
number: z.ZodString;
|
|
7500
|
-
currency: z.ZodString;
|
|
7501
|
-
supplier: z.ZodObject<{
|
|
7502
|
-
id: z.ZodOptional<z.ZodString>;
|
|
7503
|
-
name: z.ZodOptional<z.ZodString>;
|
|
7504
|
-
tax_id: z.ZodOptional<z.ZodObject<{
|
|
7505
|
-
code: z.ZodOptional<z.ZodString>;
|
|
7506
|
-
}, z.core.$strip>>;
|
|
7507
|
-
addresses: z.ZodOptional<z.ZodObject<{
|
|
7508
|
-
billing_address: z.ZodObject<{
|
|
7509
|
-
country: z.ZodOptional<z.ZodString>;
|
|
7510
|
-
postal_code: z.ZodOptional<z.ZodString>;
|
|
7511
|
-
state: z.ZodOptional<z.ZodString>;
|
|
7512
|
-
city: z.ZodOptional<z.ZodString>;
|
|
7513
|
-
line1: z.ZodOptional<z.ZodString>;
|
|
7514
|
-
line2: z.ZodOptional<z.ZodString>;
|
|
7515
|
-
phone_number: z.ZodOptional<z.ZodString>;
|
|
7516
|
-
}, z.core.$strip>;
|
|
7517
|
-
}, z.core.$strip>>;
|
|
7518
|
-
}, z.core.$strip>;
|
|
7519
|
-
customer: z.ZodObject<{
|
|
7676
|
+
export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
|
|
7677
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7520
7678
|
id: z.ZodString;
|
|
7521
|
-
|
|
7522
|
-
|
|
7679
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7680
|
+
created_at: z.ZodString;
|
|
7681
|
+
updated_at: z.ZodString;
|
|
7682
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7683
|
+
name: z.ZodString;
|
|
7684
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7685
|
+
addon: z.ZodObject<{
|
|
7686
|
+
id: z.ZodString;
|
|
7687
|
+
}, z.core.$strip>;
|
|
7688
|
+
quantity: z.ZodNumber;
|
|
7689
|
+
quantity_at: z.ZodString;
|
|
7690
|
+
active_from: z.ZodString;
|
|
7691
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
7692
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
7693
|
+
immediate: "immediate";
|
|
7694
|
+
next_billing_cycle: "next_billing_cycle";
|
|
7695
|
+
}>, z.ZodString]>;
|
|
7696
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
7697
|
+
active_from: z.ZodString;
|
|
7698
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
7699
|
+
quantity: z.ZodNumber;
|
|
7700
|
+
}, z.core.$strip>>;
|
|
7701
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
7702
|
+
rate_card: z.ZodObject<{
|
|
7703
|
+
name: z.ZodString;
|
|
7704
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7705
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7706
|
+
key: z.ZodString;
|
|
7707
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
7708
|
+
id: z.ZodString;
|
|
7709
|
+
}, z.core.$strip>>;
|
|
7710
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
7711
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7712
|
+
type: z.ZodLiteral<"free">;
|
|
7713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7714
|
+
type: z.ZodLiteral<"flat">;
|
|
7715
|
+
amount: z.ZodString;
|
|
7716
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7717
|
+
type: z.ZodLiteral<"unit">;
|
|
7718
|
+
amount: z.ZodString;
|
|
7719
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7720
|
+
type: z.ZodLiteral<"graduated">;
|
|
7721
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7722
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7723
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7724
|
+
type: z.ZodLiteral<"flat">;
|
|
7725
|
+
amount: z.ZodString;
|
|
7726
|
+
}, z.core.$strip>>;
|
|
7727
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7728
|
+
type: z.ZodLiteral<"unit">;
|
|
7729
|
+
amount: z.ZodString;
|
|
7730
|
+
}, z.core.$strip>>;
|
|
7731
|
+
}, z.core.$strip>>;
|
|
7732
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7733
|
+
type: z.ZodLiteral<"volume">;
|
|
7734
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7735
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7736
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7737
|
+
type: z.ZodLiteral<"flat">;
|
|
7738
|
+
amount: z.ZodString;
|
|
7739
|
+
}, z.core.$strip>>;
|
|
7740
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7741
|
+
type: z.ZodLiteral<"unit">;
|
|
7742
|
+
amount: z.ZodString;
|
|
7743
|
+
}, z.core.$strip>>;
|
|
7744
|
+
}, z.core.$strip>>;
|
|
7745
|
+
}, z.core.$strip>], "type">;
|
|
7746
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
7747
|
+
operation: z.ZodEnum<{
|
|
7748
|
+
multiply: "multiply";
|
|
7749
|
+
divide: "divide";
|
|
7750
|
+
}>;
|
|
7751
|
+
conversion_factor: z.ZodString;
|
|
7752
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7753
|
+
none: "none";
|
|
7754
|
+
floor: "floor";
|
|
7755
|
+
ceiling: "ceiling";
|
|
7756
|
+
half_up: "half_up";
|
|
7757
|
+
}>>>;
|
|
7758
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7759
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
7760
|
+
}, z.core.$strip>>;
|
|
7761
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7762
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
7763
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
7764
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
7765
|
+
}, z.core.$strip>>;
|
|
7766
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7767
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7768
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7769
|
+
}, z.core.$strip>>;
|
|
7770
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
7771
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7772
|
+
exclusive: "exclusive";
|
|
7773
|
+
inclusive: "inclusive";
|
|
7774
|
+
}>>;
|
|
7775
|
+
code: z.ZodObject<{
|
|
7776
|
+
id: z.ZodString;
|
|
7777
|
+
}, z.core.$strip>;
|
|
7778
|
+
}, z.core.$strip>>;
|
|
7779
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7780
|
+
type: z.ZodLiteral<"metered">;
|
|
7781
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7782
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7783
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
7784
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7785
|
+
type: z.ZodLiteral<"static">;
|
|
7786
|
+
config: z.ZodUnknown;
|
|
7787
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7788
|
+
type: z.ZodLiteral<"boolean">;
|
|
7789
|
+
}, z.core.$strip>], "type">>;
|
|
7790
|
+
}, z.core.$strip>;
|
|
7791
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
7792
|
+
}, z.core.$strip>>;
|
|
7793
|
+
}, z.core.$strip>>;
|
|
7794
|
+
meta: z.ZodObject<{
|
|
7795
|
+
page: z.ZodObject<{
|
|
7796
|
+
number: z.ZodNumber;
|
|
7797
|
+
size: z.ZodNumber;
|
|
7798
|
+
total: z.ZodNumber;
|
|
7799
|
+
}, z.core.$strip>;
|
|
7800
|
+
}, z.core.$strip>;
|
|
7801
|
+
}, z.core.$strip>;
|
|
7802
|
+
export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
7803
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7804
|
+
id: z.ZodString;
|
|
7805
|
+
name: z.ZodString;
|
|
7806
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7807
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7808
|
+
created_at: z.ZodString;
|
|
7809
|
+
updated_at: z.ZodString;
|
|
7810
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7811
|
+
key: z.ZodString;
|
|
7812
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
7813
|
+
currency: z.ZodString;
|
|
7814
|
+
billing_cadence: z.ZodString;
|
|
7815
|
+
pro_rating_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7816
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
7817
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
7818
|
+
status: z.ZodEnum<{
|
|
7819
|
+
active: "active";
|
|
7820
|
+
scheduled: "scheduled";
|
|
7821
|
+
draft: "draft";
|
|
7822
|
+
archived: "archived";
|
|
7823
|
+
}>;
|
|
7824
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
7825
|
+
name: z.ZodString;
|
|
7826
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7827
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7828
|
+
key: z.ZodString;
|
|
7829
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
7830
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
7831
|
+
name: z.ZodString;
|
|
7832
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7833
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7834
|
+
key: z.ZodString;
|
|
7835
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
7836
|
+
id: z.ZodString;
|
|
7837
|
+
}, z.core.$strip>>;
|
|
7838
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
7839
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7840
|
+
type: z.ZodLiteral<"free">;
|
|
7841
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7842
|
+
type: z.ZodLiteral<"flat">;
|
|
7843
|
+
amount: z.ZodString;
|
|
7844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7845
|
+
type: z.ZodLiteral<"unit">;
|
|
7846
|
+
amount: z.ZodString;
|
|
7847
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7848
|
+
type: z.ZodLiteral<"graduated">;
|
|
7849
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7850
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7851
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7852
|
+
type: z.ZodLiteral<"flat">;
|
|
7853
|
+
amount: z.ZodString;
|
|
7854
|
+
}, z.core.$strip>>;
|
|
7855
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7856
|
+
type: z.ZodLiteral<"unit">;
|
|
7857
|
+
amount: z.ZodString;
|
|
7858
|
+
}, z.core.$strip>>;
|
|
7859
|
+
}, z.core.$strip>>;
|
|
7860
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7861
|
+
type: z.ZodLiteral<"volume">;
|
|
7862
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7863
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7864
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7865
|
+
type: z.ZodLiteral<"flat">;
|
|
7866
|
+
amount: z.ZodString;
|
|
7867
|
+
}, z.core.$strip>>;
|
|
7868
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7869
|
+
type: z.ZodLiteral<"unit">;
|
|
7870
|
+
amount: z.ZodString;
|
|
7871
|
+
}, z.core.$strip>>;
|
|
7872
|
+
}, z.core.$strip>>;
|
|
7873
|
+
}, z.core.$strip>], "type">;
|
|
7874
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
7875
|
+
operation: z.ZodEnum<{
|
|
7876
|
+
multiply: "multiply";
|
|
7877
|
+
divide: "divide";
|
|
7878
|
+
}>;
|
|
7879
|
+
conversion_factor: z.ZodString;
|
|
7880
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7881
|
+
none: "none";
|
|
7882
|
+
floor: "floor";
|
|
7883
|
+
ceiling: "ceiling";
|
|
7884
|
+
half_up: "half_up";
|
|
7885
|
+
}>>>;
|
|
7886
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7887
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
7888
|
+
}, z.core.$strip>>;
|
|
7889
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7890
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
7891
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
7892
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
7893
|
+
}, z.core.$strip>>;
|
|
7894
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7895
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7896
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7897
|
+
}, z.core.$strip>>;
|
|
7898
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
7899
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7900
|
+
exclusive: "exclusive";
|
|
7901
|
+
inclusive: "inclusive";
|
|
7902
|
+
}>>;
|
|
7903
|
+
code: z.ZodObject<{
|
|
7904
|
+
id: z.ZodString;
|
|
7905
|
+
}, z.core.$strip>;
|
|
7906
|
+
}, z.core.$strip>>;
|
|
7907
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7908
|
+
type: z.ZodLiteral<"metered">;
|
|
7909
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7910
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7911
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
7912
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7913
|
+
type: z.ZodLiteral<"static">;
|
|
7914
|
+
config: z.ZodUnknown;
|
|
7915
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7916
|
+
type: z.ZodLiteral<"boolean">;
|
|
7917
|
+
}, z.core.$strip>], "type">>;
|
|
7918
|
+
}, z.core.$strip>>;
|
|
7919
|
+
}, z.core.$strip>>;
|
|
7920
|
+
settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7921
|
+
credit_then_invoice: "credit_then_invoice";
|
|
7922
|
+
credit_only: "credit_only";
|
|
7923
|
+
}>>>;
|
|
7924
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7925
|
+
code: z.ZodString;
|
|
7926
|
+
message: z.ZodString;
|
|
7927
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7928
|
+
field: z.ZodString;
|
|
7929
|
+
}, z.core.$strip>>>;
|
|
7930
|
+
}, z.core.$strip>>;
|
|
7931
|
+
meta: z.ZodObject<{
|
|
7932
|
+
page: z.ZodObject<{
|
|
7933
|
+
number: z.ZodNumber;
|
|
7934
|
+
size: z.ZodNumber;
|
|
7935
|
+
total: z.ZodNumber;
|
|
7936
|
+
}, z.core.$strip>;
|
|
7937
|
+
}, z.core.$strip>;
|
|
7938
|
+
}, z.core.$strip>;
|
|
7939
|
+
export declare const invoiceStandard: z.ZodObject<{
|
|
7940
|
+
id: z.ZodString;
|
|
7941
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7942
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7943
|
+
created_at: z.ZodString;
|
|
7944
|
+
updated_at: z.ZodString;
|
|
7945
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7946
|
+
number: z.ZodString;
|
|
7947
|
+
currency: z.ZodString;
|
|
7948
|
+
supplier: z.ZodObject<{
|
|
7949
|
+
id: z.ZodOptional<z.ZodString>;
|
|
7950
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7951
|
+
tax_id: z.ZodOptional<z.ZodObject<{
|
|
7952
|
+
code: z.ZodOptional<z.ZodString>;
|
|
7953
|
+
}, z.core.$strip>>;
|
|
7954
|
+
addresses: z.ZodOptional<z.ZodObject<{
|
|
7955
|
+
billing_address: z.ZodObject<{
|
|
7956
|
+
country: z.ZodOptional<z.ZodString>;
|
|
7957
|
+
postal_code: z.ZodOptional<z.ZodString>;
|
|
7958
|
+
state: z.ZodOptional<z.ZodString>;
|
|
7959
|
+
city: z.ZodOptional<z.ZodString>;
|
|
7960
|
+
line1: z.ZodOptional<z.ZodString>;
|
|
7961
|
+
line2: z.ZodOptional<z.ZodString>;
|
|
7962
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
7963
|
+
}, z.core.$strip>;
|
|
7964
|
+
}, z.core.$strip>>;
|
|
7965
|
+
}, z.core.$strip>;
|
|
7966
|
+
customer: z.ZodObject<{
|
|
7967
|
+
id: z.ZodString;
|
|
7968
|
+
name: z.ZodString;
|
|
7969
|
+
usage_attribution: z.ZodOptional<z.ZodObject<{
|
|
7523
7970
|
subject_keys: z.ZodArray<z.ZodString>;
|
|
7524
7971
|
}, z.core.$strip>>;
|
|
7525
7972
|
billing_address: z.ZodOptional<z.ZodObject<{
|
|
@@ -7819,143 +8266,6 @@ export declare const invoiceStandard: z.ZodObject<{
|
|
|
7819
8266
|
}, z.core.$strip>>;
|
|
7820
8267
|
}, z.core.$strip>], "type">>>;
|
|
7821
8268
|
}, z.core.$strip>;
|
|
7822
|
-
export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
7823
|
-
data: z.ZodArray<z.ZodObject<{
|
|
7824
|
-
id: z.ZodString;
|
|
7825
|
-
name: z.ZodString;
|
|
7826
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7827
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7828
|
-
created_at: z.ZodString;
|
|
7829
|
-
updated_at: z.ZodString;
|
|
7830
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
7831
|
-
key: z.ZodString;
|
|
7832
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
7833
|
-
currency: z.ZodString;
|
|
7834
|
-
billing_cadence: z.ZodString;
|
|
7835
|
-
pro_rating_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7836
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
7837
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
7838
|
-
status: z.ZodEnum<{
|
|
7839
|
-
active: "active";
|
|
7840
|
-
scheduled: "scheduled";
|
|
7841
|
-
draft: "draft";
|
|
7842
|
-
archived: "archived";
|
|
7843
|
-
}>;
|
|
7844
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
7845
|
-
name: z.ZodString;
|
|
7846
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7847
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7848
|
-
key: z.ZodString;
|
|
7849
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
7850
|
-
rate_cards: z.ZodArray<z.ZodObject<{
|
|
7851
|
-
name: z.ZodString;
|
|
7852
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7853
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7854
|
-
key: z.ZodString;
|
|
7855
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
7856
|
-
id: z.ZodString;
|
|
7857
|
-
}, z.core.$strip>>;
|
|
7858
|
-
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
7859
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7860
|
-
type: z.ZodLiteral<"free">;
|
|
7861
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7862
|
-
type: z.ZodLiteral<"flat">;
|
|
7863
|
-
amount: z.ZodString;
|
|
7864
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7865
|
-
type: z.ZodLiteral<"unit">;
|
|
7866
|
-
amount: z.ZodString;
|
|
7867
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7868
|
-
type: z.ZodLiteral<"graduated">;
|
|
7869
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7870
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7871
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7872
|
-
type: z.ZodLiteral<"flat">;
|
|
7873
|
-
amount: z.ZodString;
|
|
7874
|
-
}, z.core.$strip>>;
|
|
7875
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7876
|
-
type: z.ZodLiteral<"unit">;
|
|
7877
|
-
amount: z.ZodString;
|
|
7878
|
-
}, z.core.$strip>>;
|
|
7879
|
-
}, z.core.$strip>>;
|
|
7880
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7881
|
-
type: z.ZodLiteral<"volume">;
|
|
7882
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7883
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7884
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7885
|
-
type: z.ZodLiteral<"flat">;
|
|
7886
|
-
amount: z.ZodString;
|
|
7887
|
-
}, z.core.$strip>>;
|
|
7888
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7889
|
-
type: z.ZodLiteral<"unit">;
|
|
7890
|
-
amount: z.ZodString;
|
|
7891
|
-
}, z.core.$strip>>;
|
|
7892
|
-
}, z.core.$strip>>;
|
|
7893
|
-
}, z.core.$strip>], "type">;
|
|
7894
|
-
unit_config: z.ZodOptional<z.ZodObject<{
|
|
7895
|
-
operation: z.ZodEnum<{
|
|
7896
|
-
multiply: "multiply";
|
|
7897
|
-
divide: "divide";
|
|
7898
|
-
}>;
|
|
7899
|
-
conversion_factor: z.ZodString;
|
|
7900
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7901
|
-
none: "none";
|
|
7902
|
-
floor: "floor";
|
|
7903
|
-
ceiling: "ceiling";
|
|
7904
|
-
half_up: "half_up";
|
|
7905
|
-
}>>>;
|
|
7906
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7907
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
7908
|
-
}, z.core.$strip>>;
|
|
7909
|
-
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7910
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
7911
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
7912
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
7913
|
-
}, z.core.$strip>>;
|
|
7914
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
7915
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7916
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
7917
|
-
}, z.core.$strip>>;
|
|
7918
|
-
tax_config: z.ZodOptional<z.ZodObject<{
|
|
7919
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7920
|
-
exclusive: "exclusive";
|
|
7921
|
-
inclusive: "inclusive";
|
|
7922
|
-
}>>;
|
|
7923
|
-
code: z.ZodObject<{
|
|
7924
|
-
id: z.ZodString;
|
|
7925
|
-
}, z.core.$strip>;
|
|
7926
|
-
}, z.core.$strip>>;
|
|
7927
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7928
|
-
type: z.ZodLiteral<"metered">;
|
|
7929
|
-
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7930
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7931
|
-
usage_period: z.ZodOptional<z.ZodString>;
|
|
7932
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7933
|
-
type: z.ZodLiteral<"static">;
|
|
7934
|
-
config: z.ZodUnknown;
|
|
7935
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7936
|
-
type: z.ZodLiteral<"boolean">;
|
|
7937
|
-
}, z.core.$strip>], "type">>;
|
|
7938
|
-
}, z.core.$strip>>;
|
|
7939
|
-
}, z.core.$strip>>;
|
|
7940
|
-
settlement_mode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7941
|
-
credit_then_invoice: "credit_then_invoice";
|
|
7942
|
-
credit_only: "credit_only";
|
|
7943
|
-
}>>>;
|
|
7944
|
-
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7945
|
-
code: z.ZodString;
|
|
7946
|
-
message: z.ZodString;
|
|
7947
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7948
|
-
field: z.ZodString;
|
|
7949
|
-
}, z.core.$strip>>>;
|
|
7950
|
-
}, z.core.$strip>>;
|
|
7951
|
-
meta: z.ZodObject<{
|
|
7952
|
-
page: z.ZodObject<{
|
|
7953
|
-
number: z.ZodNumber;
|
|
7954
|
-
size: z.ZodNumber;
|
|
7955
|
-
total: z.ZodNumber;
|
|
7956
|
-
}, z.core.$strip>;
|
|
7957
|
-
}, z.core.$strip>;
|
|
7958
|
-
}, z.core.$strip>;
|
|
7959
8269
|
export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7960
8270
|
id: z.ZodString;
|
|
7961
8271
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -10377,6 +10687,137 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
|
|
|
10377
10687
|
}>>;
|
|
10378
10688
|
}, z.core.$strip>;
|
|
10379
10689
|
}, z.core.$strip>;
|
|
10690
|
+
export declare const createSubscriptionAddonPathParams: z.ZodObject<{
|
|
10691
|
+
subscriptionId: z.ZodString;
|
|
10692
|
+
}, z.core.$strip>;
|
|
10693
|
+
export declare const createSubscriptionAddonBody: z.ZodObject<{
|
|
10694
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10695
|
+
addon: z.ZodObject<{
|
|
10696
|
+
id: z.ZodString;
|
|
10697
|
+
}, z.core.$strip>;
|
|
10698
|
+
quantity: z.ZodNumber;
|
|
10699
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
10700
|
+
immediate: "immediate";
|
|
10701
|
+
next_billing_cycle: "next_billing_cycle";
|
|
10702
|
+
}>, z.ZodString]>;
|
|
10703
|
+
}, z.core.$strip>;
|
|
10704
|
+
export declare const createSubscriptionAddonResponse: z.ZodObject<{
|
|
10705
|
+
id: z.ZodString;
|
|
10706
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10707
|
+
created_at: z.ZodString;
|
|
10708
|
+
updated_at: z.ZodString;
|
|
10709
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
10710
|
+
name: z.ZodString;
|
|
10711
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10712
|
+
addon: z.ZodObject<{
|
|
10713
|
+
id: z.ZodString;
|
|
10714
|
+
}, z.core.$strip>;
|
|
10715
|
+
quantity: z.ZodNumber;
|
|
10716
|
+
quantity_at: z.ZodString;
|
|
10717
|
+
active_from: z.ZodString;
|
|
10718
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
10719
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
10720
|
+
immediate: "immediate";
|
|
10721
|
+
next_billing_cycle: "next_billing_cycle";
|
|
10722
|
+
}>, z.ZodString]>;
|
|
10723
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
10724
|
+
active_from: z.ZodString;
|
|
10725
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
10726
|
+
quantity: z.ZodNumber;
|
|
10727
|
+
}, z.core.$strip>>;
|
|
10728
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
10729
|
+
rate_card: z.ZodObject<{
|
|
10730
|
+
name: z.ZodString;
|
|
10731
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10732
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10733
|
+
key: z.ZodString;
|
|
10734
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
10735
|
+
id: z.ZodString;
|
|
10736
|
+
}, z.core.$strip>>;
|
|
10737
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
10738
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10739
|
+
type: z.ZodLiteral<"free">;
|
|
10740
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10741
|
+
type: z.ZodLiteral<"flat">;
|
|
10742
|
+
amount: z.ZodString;
|
|
10743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10744
|
+
type: z.ZodLiteral<"unit">;
|
|
10745
|
+
amount: z.ZodString;
|
|
10746
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10747
|
+
type: z.ZodLiteral<"graduated">;
|
|
10748
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10749
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
10750
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
10751
|
+
type: z.ZodLiteral<"flat">;
|
|
10752
|
+
amount: z.ZodString;
|
|
10753
|
+
}, z.core.$strip>>;
|
|
10754
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
10755
|
+
type: z.ZodLiteral<"unit">;
|
|
10756
|
+
amount: z.ZodString;
|
|
10757
|
+
}, z.core.$strip>>;
|
|
10758
|
+
}, z.core.$strip>>;
|
|
10759
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10760
|
+
type: z.ZodLiteral<"volume">;
|
|
10761
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10762
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
10763
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
10764
|
+
type: z.ZodLiteral<"flat">;
|
|
10765
|
+
amount: z.ZodString;
|
|
10766
|
+
}, z.core.$strip>>;
|
|
10767
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
10768
|
+
type: z.ZodLiteral<"unit">;
|
|
10769
|
+
amount: z.ZodString;
|
|
10770
|
+
}, z.core.$strip>>;
|
|
10771
|
+
}, z.core.$strip>>;
|
|
10772
|
+
}, z.core.$strip>], "type">;
|
|
10773
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
10774
|
+
operation: z.ZodEnum<{
|
|
10775
|
+
multiply: "multiply";
|
|
10776
|
+
divide: "divide";
|
|
10777
|
+
}>;
|
|
10778
|
+
conversion_factor: z.ZodString;
|
|
10779
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10780
|
+
none: "none";
|
|
10781
|
+
floor: "floor";
|
|
10782
|
+
ceiling: "ceiling";
|
|
10783
|
+
half_up: "half_up";
|
|
10784
|
+
}>>>;
|
|
10785
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10786
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
10787
|
+
}, z.core.$strip>>;
|
|
10788
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
10789
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
10790
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
10791
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
10792
|
+
}, z.core.$strip>>;
|
|
10793
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
10794
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
10795
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
10796
|
+
}, z.core.$strip>>;
|
|
10797
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
10798
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
10799
|
+
exclusive: "exclusive";
|
|
10800
|
+
inclusive: "inclusive";
|
|
10801
|
+
}>>;
|
|
10802
|
+
code: z.ZodObject<{
|
|
10803
|
+
id: z.ZodString;
|
|
10804
|
+
}, z.core.$strip>;
|
|
10805
|
+
}, z.core.$strip>>;
|
|
10806
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10807
|
+
type: z.ZodLiteral<"metered">;
|
|
10808
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10809
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10810
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
10811
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10812
|
+
type: z.ZodLiteral<"static">;
|
|
10813
|
+
config: z.ZodUnknown;
|
|
10814
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10815
|
+
type: z.ZodLiteral<"boolean">;
|
|
10816
|
+
}, z.core.$strip>], "type">>;
|
|
10817
|
+
}, z.core.$strip>;
|
|
10818
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
10819
|
+
}, z.core.$strip>>;
|
|
10820
|
+
}, z.core.$strip>;
|
|
10380
10821
|
export declare const listSubscriptionAddonsPathParams: z.ZodObject<{
|
|
10381
10822
|
subscriptionId: z.ZodString;
|
|
10382
10823
|
}, z.core.$strip>;
|
|
@@ -10393,12 +10834,12 @@ export declare const listSubscriptionAddonsQueryParams: z.ZodObject<{
|
|
|
10393
10834
|
export declare const listSubscriptionAddonsResponse: z.ZodObject<{
|
|
10394
10835
|
data: z.ZodArray<z.ZodObject<{
|
|
10395
10836
|
id: z.ZodString;
|
|
10396
|
-
name: z.ZodString;
|
|
10397
|
-
description: z.ZodOptional<z.ZodString>;
|
|
10398
10837
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10399
10838
|
created_at: z.ZodString;
|
|
10400
10839
|
updated_at: z.ZodString;
|
|
10401
10840
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
10841
|
+
name: z.ZodString;
|
|
10842
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10402
10843
|
addon: z.ZodObject<{
|
|
10403
10844
|
id: z.ZodString;
|
|
10404
10845
|
}, z.core.$strip>;
|
|
@@ -10406,6 +10847,107 @@ export declare const listSubscriptionAddonsResponse: z.ZodObject<{
|
|
|
10406
10847
|
quantity_at: z.ZodString;
|
|
10407
10848
|
active_from: z.ZodString;
|
|
10408
10849
|
active_to: z.ZodOptional<z.ZodString>;
|
|
10850
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
10851
|
+
immediate: "immediate";
|
|
10852
|
+
next_billing_cycle: "next_billing_cycle";
|
|
10853
|
+
}>, z.ZodString]>;
|
|
10854
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
10855
|
+
active_from: z.ZodString;
|
|
10856
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
10857
|
+
quantity: z.ZodNumber;
|
|
10858
|
+
}, z.core.$strip>>;
|
|
10859
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
10860
|
+
rate_card: z.ZodObject<{
|
|
10861
|
+
name: z.ZodString;
|
|
10862
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10863
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10864
|
+
key: z.ZodString;
|
|
10865
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
10866
|
+
id: z.ZodString;
|
|
10867
|
+
}, z.core.$strip>>;
|
|
10868
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
10869
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10870
|
+
type: z.ZodLiteral<"free">;
|
|
10871
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10872
|
+
type: z.ZodLiteral<"flat">;
|
|
10873
|
+
amount: z.ZodString;
|
|
10874
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10875
|
+
type: z.ZodLiteral<"unit">;
|
|
10876
|
+
amount: z.ZodString;
|
|
10877
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10878
|
+
type: z.ZodLiteral<"graduated">;
|
|
10879
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10880
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
10881
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
10882
|
+
type: z.ZodLiteral<"flat">;
|
|
10883
|
+
amount: z.ZodString;
|
|
10884
|
+
}, z.core.$strip>>;
|
|
10885
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
10886
|
+
type: z.ZodLiteral<"unit">;
|
|
10887
|
+
amount: z.ZodString;
|
|
10888
|
+
}, z.core.$strip>>;
|
|
10889
|
+
}, z.core.$strip>>;
|
|
10890
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10891
|
+
type: z.ZodLiteral<"volume">;
|
|
10892
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10893
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
10894
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
10895
|
+
type: z.ZodLiteral<"flat">;
|
|
10896
|
+
amount: z.ZodString;
|
|
10897
|
+
}, z.core.$strip>>;
|
|
10898
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
10899
|
+
type: z.ZodLiteral<"unit">;
|
|
10900
|
+
amount: z.ZodString;
|
|
10901
|
+
}, z.core.$strip>>;
|
|
10902
|
+
}, z.core.$strip>>;
|
|
10903
|
+
}, z.core.$strip>], "type">;
|
|
10904
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
10905
|
+
operation: z.ZodEnum<{
|
|
10906
|
+
multiply: "multiply";
|
|
10907
|
+
divide: "divide";
|
|
10908
|
+
}>;
|
|
10909
|
+
conversion_factor: z.ZodString;
|
|
10910
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10911
|
+
none: "none";
|
|
10912
|
+
floor: "floor";
|
|
10913
|
+
ceiling: "ceiling";
|
|
10914
|
+
half_up: "half_up";
|
|
10915
|
+
}>>>;
|
|
10916
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10917
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
10918
|
+
}, z.core.$strip>>;
|
|
10919
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
10920
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
10921
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
10922
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
10923
|
+
}, z.core.$strip>>;
|
|
10924
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
10925
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
10926
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
10927
|
+
}, z.core.$strip>>;
|
|
10928
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
10929
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
10930
|
+
exclusive: "exclusive";
|
|
10931
|
+
inclusive: "inclusive";
|
|
10932
|
+
}>>;
|
|
10933
|
+
code: z.ZodObject<{
|
|
10934
|
+
id: z.ZodString;
|
|
10935
|
+
}, z.core.$strip>;
|
|
10936
|
+
}, z.core.$strip>>;
|
|
10937
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10938
|
+
type: z.ZodLiteral<"metered">;
|
|
10939
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10940
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10941
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
10942
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10943
|
+
type: z.ZodLiteral<"static">;
|
|
10944
|
+
config: z.ZodUnknown;
|
|
10945
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10946
|
+
type: z.ZodLiteral<"boolean">;
|
|
10947
|
+
}, z.core.$strip>], "type">>;
|
|
10948
|
+
}, z.core.$strip>;
|
|
10949
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
10950
|
+
}, z.core.$strip>>;
|
|
10409
10951
|
}, z.core.$strip>>;
|
|
10410
10952
|
meta: z.ZodObject<{
|
|
10411
10953
|
page: z.ZodObject<{
|
|
@@ -10421,12 +10963,12 @@ export declare const getSubscriptionAddonPathParams: z.ZodObject<{
|
|
|
10421
10963
|
}, z.core.$strip>;
|
|
10422
10964
|
export declare const getSubscriptionAddonResponse: z.ZodObject<{
|
|
10423
10965
|
id: z.ZodString;
|
|
10424
|
-
name: z.ZodString;
|
|
10425
|
-
description: z.ZodOptional<z.ZodString>;
|
|
10426
10966
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10427
10967
|
created_at: z.ZodString;
|
|
10428
10968
|
updated_at: z.ZodString;
|
|
10429
10969
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
10970
|
+
name: z.ZodString;
|
|
10971
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10430
10972
|
addon: z.ZodObject<{
|
|
10431
10973
|
id: z.ZodString;
|
|
10432
10974
|
}, z.core.$strip>;
|
|
@@ -10434,6 +10976,107 @@ export declare const getSubscriptionAddonResponse: z.ZodObject<{
|
|
|
10434
10976
|
quantity_at: z.ZodString;
|
|
10435
10977
|
active_from: z.ZodString;
|
|
10436
10978
|
active_to: z.ZodOptional<z.ZodString>;
|
|
10979
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
10980
|
+
immediate: "immediate";
|
|
10981
|
+
next_billing_cycle: "next_billing_cycle";
|
|
10982
|
+
}>, z.ZodString]>;
|
|
10983
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
10984
|
+
active_from: z.ZodString;
|
|
10985
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
10986
|
+
quantity: z.ZodNumber;
|
|
10987
|
+
}, z.core.$strip>>;
|
|
10988
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
10989
|
+
rate_card: z.ZodObject<{
|
|
10990
|
+
name: z.ZodString;
|
|
10991
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10992
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10993
|
+
key: z.ZodString;
|
|
10994
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
10995
|
+
id: z.ZodString;
|
|
10996
|
+
}, z.core.$strip>>;
|
|
10997
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
10998
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10999
|
+
type: z.ZodLiteral<"free">;
|
|
11000
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11001
|
+
type: z.ZodLiteral<"flat">;
|
|
11002
|
+
amount: z.ZodString;
|
|
11003
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11004
|
+
type: z.ZodLiteral<"unit">;
|
|
11005
|
+
amount: z.ZodString;
|
|
11006
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11007
|
+
type: z.ZodLiteral<"graduated">;
|
|
11008
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
11009
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
11010
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
11011
|
+
type: z.ZodLiteral<"flat">;
|
|
11012
|
+
amount: z.ZodString;
|
|
11013
|
+
}, z.core.$strip>>;
|
|
11014
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
11015
|
+
type: z.ZodLiteral<"unit">;
|
|
11016
|
+
amount: z.ZodString;
|
|
11017
|
+
}, z.core.$strip>>;
|
|
11018
|
+
}, z.core.$strip>>;
|
|
11019
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11020
|
+
type: z.ZodLiteral<"volume">;
|
|
11021
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
11022
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
11023
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
11024
|
+
type: z.ZodLiteral<"flat">;
|
|
11025
|
+
amount: z.ZodString;
|
|
11026
|
+
}, z.core.$strip>>;
|
|
11027
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
11028
|
+
type: z.ZodLiteral<"unit">;
|
|
11029
|
+
amount: z.ZodString;
|
|
11030
|
+
}, z.core.$strip>>;
|
|
11031
|
+
}, z.core.$strip>>;
|
|
11032
|
+
}, z.core.$strip>], "type">;
|
|
11033
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
11034
|
+
operation: z.ZodEnum<{
|
|
11035
|
+
multiply: "multiply";
|
|
11036
|
+
divide: "divide";
|
|
11037
|
+
}>;
|
|
11038
|
+
conversion_factor: z.ZodString;
|
|
11039
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
11040
|
+
none: "none";
|
|
11041
|
+
floor: "floor";
|
|
11042
|
+
ceiling: "ceiling";
|
|
11043
|
+
half_up: "half_up";
|
|
11044
|
+
}>>>;
|
|
11045
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
11046
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
11047
|
+
}, z.core.$strip>>;
|
|
11048
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
11049
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
11050
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
11051
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
11052
|
+
}, z.core.$strip>>;
|
|
11053
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
11054
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
11055
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
11056
|
+
}, z.core.$strip>>;
|
|
11057
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
11058
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
11059
|
+
exclusive: "exclusive";
|
|
11060
|
+
inclusive: "inclusive";
|
|
11061
|
+
}>>;
|
|
11062
|
+
code: z.ZodObject<{
|
|
11063
|
+
id: z.ZodString;
|
|
11064
|
+
}, z.core.$strip>;
|
|
11065
|
+
}, z.core.$strip>>;
|
|
11066
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11067
|
+
type: z.ZodLiteral<"metered">;
|
|
11068
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11069
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
11070
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
11071
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11072
|
+
type: z.ZodLiteral<"static">;
|
|
11073
|
+
config: z.ZodUnknown;
|
|
11074
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
11075
|
+
type: z.ZodLiteral<"boolean">;
|
|
11076
|
+
}, z.core.$strip>], "type">>;
|
|
11077
|
+
}, z.core.$strip>;
|
|
11078
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
11079
|
+
}, z.core.$strip>>;
|
|
10437
11080
|
}, z.core.$strip>;
|
|
10438
11081
|
export declare const listAppsQueryParams: z.ZodObject<{
|
|
10439
11082
|
page: z.ZodOptional<z.ZodObject<{
|