@openmeter/client 1.0.0-beta-c39f92326e5b → 1.0.0-beta-471c6cd3d433
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 +11 -10
- package/dist/funcs/subscriptions.d.ts +12 -1
- package/dist/funcs/subscriptions.js +42 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/subscriptions.d.ts +6 -1
- package/dist/models/schemas.d.ts +2995 -591
- package/dist/models/schemas.js +433 -170
- package/dist/models/types.d.ts +516 -280
- package/dist/sdk/subscriptions.d.ts +12 -1
- package/dist/sdk/subscriptions.js +14 -1
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -338,6 +338,18 @@ export declare const subscriptionEditTimingEnum: z.ZodEnum<{
|
|
|
338
338
|
immediate: "immediate";
|
|
339
339
|
next_billing_cycle: "next_billing_cycle";
|
|
340
340
|
}>;
|
|
341
|
+
export declare const subscriptionEditRemoveItem: z.ZodObject<{
|
|
342
|
+
type: z.ZodLiteral<"remove_item">;
|
|
343
|
+
phaseKey: z.ZodString;
|
|
344
|
+
itemKey: z.ZodString;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
export declare const subscriptionRemovePhaseShifting: z.ZodEnum<{
|
|
347
|
+
next: "next";
|
|
348
|
+
prev: "prev";
|
|
349
|
+
}>;
|
|
350
|
+
export declare const subscriptionEditUnscheduleEdit: z.ZodObject<{
|
|
351
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
352
|
+
}, z.core.$strip>;
|
|
341
353
|
export declare const appType: z.ZodEnum<{
|
|
342
354
|
external_invoicing: "external_invoicing";
|
|
343
355
|
sandbox: "sandbox";
|
|
@@ -542,6 +554,14 @@ export declare const featureUnitCostType: z.ZodEnum<{
|
|
|
542
554
|
llm: "llm";
|
|
543
555
|
manual: "manual";
|
|
544
556
|
}>;
|
|
557
|
+
export declare const subscriptionEditOperationType: z.ZodEnum<{
|
|
558
|
+
add_item: "add_item";
|
|
559
|
+
add_phase: "add_phase";
|
|
560
|
+
remove_item: "remove_item";
|
|
561
|
+
remove_phase: "remove_phase";
|
|
562
|
+
stretch_phase: "stretch_phase";
|
|
563
|
+
unschedule_edit: "unschedule_edit";
|
|
564
|
+
}>;
|
|
545
565
|
export declare const systemAccountAccessToken: z.ZodObject<{
|
|
546
566
|
type: z.ZodLiteral<"http">;
|
|
547
567
|
scheme: z.ZodLiteral<"Bearer">;
|
|
@@ -1328,6 +1348,18 @@ export declare const rateCardMeteredEntitlement: z.ZodObject<{
|
|
|
1328
1348
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1329
1349
|
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
1330
1350
|
}, z.core.$strip>;
|
|
1351
|
+
export declare const subscriptionPhaseCreate: z.ZodObject<{
|
|
1352
|
+
key: z.ZodString;
|
|
1353
|
+
name: z.ZodString;
|
|
1354
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1355
|
+
startAfter: z.ZodNullable<z.ZodString>;
|
|
1356
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
1357
|
+
}, z.core.$strip>;
|
|
1358
|
+
export declare const subscriptionEditStretchPhase: z.ZodObject<{
|
|
1359
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
1360
|
+
phaseKey: z.ZodString;
|
|
1361
|
+
extendBy: z.ZodString;
|
|
1362
|
+
}, z.core.$strip>;
|
|
1331
1363
|
export declare const recurringPeriod: z.ZodObject<{
|
|
1332
1364
|
anchor: z.ZodDate;
|
|
1333
1365
|
interval: z.ZodString;
|
|
@@ -1446,27 +1478,6 @@ export declare const rateCardProrationConfiguration: z.ZodObject<{
|
|
|
1446
1478
|
prorate_prices: "prorate_prices";
|
|
1447
1479
|
}>;
|
|
1448
1480
|
}, z.core.$strip>;
|
|
1449
|
-
export declare const subscriptionCreate: z.ZodObject<{
|
|
1450
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1451
|
-
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
1452
|
-
credit_only: "credit_only";
|
|
1453
|
-
credit_then_invoice: "credit_then_invoice";
|
|
1454
|
-
}>>;
|
|
1455
|
-
customer: z.ZodObject<{
|
|
1456
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1457
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1458
|
-
}, z.core.$strip>;
|
|
1459
|
-
plan: z.ZodObject<{
|
|
1460
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1461
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1462
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
1463
|
-
}, z.core.$strip>;
|
|
1464
|
-
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
1465
|
-
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1466
|
-
dynamic: "dynamic";
|
|
1467
|
-
pinned: "pinned";
|
|
1468
|
-
}>>>;
|
|
1469
|
-
}, z.core.$strip>;
|
|
1470
1481
|
export declare const unitConfig: z.ZodObject<{
|
|
1471
1482
|
operation: z.ZodEnum<{
|
|
1472
1483
|
divide: "divide";
|
|
@@ -1531,6 +1542,14 @@ export declare const subscriptionEditTiming: z.ZodUnion<readonly [z.ZodEnum<{
|
|
|
1531
1542
|
immediate: "immediate";
|
|
1532
1543
|
next_billing_cycle: "next_billing_cycle";
|
|
1533
1544
|
}>, z.ZodDate]>;
|
|
1545
|
+
export declare const subscriptionEditRemovePhase: z.ZodObject<{
|
|
1546
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
1547
|
+
phaseKey: z.ZodString;
|
|
1548
|
+
shift: z.ZodEnum<{
|
|
1549
|
+
next: "next";
|
|
1550
|
+
prev: "prev";
|
|
1551
|
+
}>;
|
|
1552
|
+
}, z.core.$strip>;
|
|
1534
1553
|
export declare const taxCodeAppMapping: z.ZodObject<{
|
|
1535
1554
|
appType: z.ZodEnum<{
|
|
1536
1555
|
external_invoicing: "external_invoicing";
|
|
@@ -2967,6 +2986,16 @@ export declare const rateCardEntitlement: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2967
2986
|
}, z.core.$strip>, z.ZodObject<{
|
|
2968
2987
|
type: z.ZodLiteral<"boolean">;
|
|
2969
2988
|
}, z.core.$strip>], "type">;
|
|
2989
|
+
export declare const subscriptionEditAddPhase: z.ZodObject<{
|
|
2990
|
+
type: z.ZodLiteral<"add_phase">;
|
|
2991
|
+
phase: z.ZodObject<{
|
|
2992
|
+
key: z.ZodString;
|
|
2993
|
+
name: z.ZodString;
|
|
2994
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2995
|
+
startAfter: z.ZodNullable<z.ZodString>;
|
|
2996
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
2997
|
+
}, z.core.$strip>;
|
|
2998
|
+
}, z.core.$strip>;
|
|
2970
2999
|
export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
|
|
2971
3000
|
type: z.ZodLiteral<"anchored">;
|
|
2972
3001
|
recurringPeriod: z.ZodObject<{
|
|
@@ -3015,31 +3044,6 @@ export declare const subscriptionCancel: z.ZodObject<{
|
|
|
3015
3044
|
next_billing_cycle: "next_billing_cycle";
|
|
3016
3045
|
}>, z.ZodDate]>>>;
|
|
3017
3046
|
}, z.core.$strip>;
|
|
3018
|
-
export declare const subscriptionChange: z.ZodObject<{
|
|
3019
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3020
|
-
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
3021
|
-
credit_only: "credit_only";
|
|
3022
|
-
credit_then_invoice: "credit_then_invoice";
|
|
3023
|
-
}>>;
|
|
3024
|
-
customer: z.ZodObject<{
|
|
3025
|
-
id: z.ZodOptional<z.ZodString>;
|
|
3026
|
-
key: z.ZodOptional<z.ZodString>;
|
|
3027
|
-
}, z.core.$strip>;
|
|
3028
|
-
plan: z.ZodObject<{
|
|
3029
|
-
id: z.ZodOptional<z.ZodString>;
|
|
3030
|
-
key: z.ZodOptional<z.ZodString>;
|
|
3031
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
3032
|
-
}, z.core.$strip>;
|
|
3033
|
-
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
3034
|
-
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3035
|
-
dynamic: "dynamic";
|
|
3036
|
-
pinned: "pinned";
|
|
3037
|
-
}>>>;
|
|
3038
|
-
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3039
|
-
immediate: "immediate";
|
|
3040
|
-
next_billing_cycle: "next_billing_cycle";
|
|
3041
|
-
}>, z.ZodDate]>;
|
|
3042
|
-
}, z.core.$strip>;
|
|
3043
3047
|
export declare const createSubscriptionAddonRequest: z.ZodObject<{
|
|
3044
3048
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3045
3049
|
addon: z.ZodObject<{
|
|
@@ -6922,6 +6926,197 @@ export declare const subscriptionItem: z.ZodObject<{
|
|
|
6922
6926
|
}, z.core.$strip>], "type">>;
|
|
6923
6927
|
}, z.core.$strip>;
|
|
6924
6928
|
}, z.core.$strip>;
|
|
6929
|
+
export declare const planPhase: z.ZodObject<{
|
|
6930
|
+
name: z.ZodString;
|
|
6931
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6932
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6933
|
+
key: z.ZodString;
|
|
6934
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
6935
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
6936
|
+
name: z.ZodString;
|
|
6937
|
+
description: z.ZodOptional<z.ZodString>;
|
|
6938
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6939
|
+
key: z.ZodString;
|
|
6940
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
6941
|
+
id: z.ZodString;
|
|
6942
|
+
}, z.core.$strip>>;
|
|
6943
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
6944
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
6945
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6946
|
+
type: z.ZodLiteral<"free">;
|
|
6947
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6948
|
+
type: z.ZodLiteral<"flat">;
|
|
6949
|
+
amount: z.ZodString;
|
|
6950
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6951
|
+
type: z.ZodLiteral<"unit">;
|
|
6952
|
+
amount: z.ZodString;
|
|
6953
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6954
|
+
type: z.ZodLiteral<"graduated">;
|
|
6955
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6956
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
6957
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
6958
|
+
type: z.ZodLiteral<"flat">;
|
|
6959
|
+
amount: z.ZodString;
|
|
6960
|
+
}, z.core.$strip>>;
|
|
6961
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
6962
|
+
type: z.ZodLiteral<"unit">;
|
|
6963
|
+
amount: z.ZodString;
|
|
6964
|
+
}, z.core.$strip>>;
|
|
6965
|
+
}, z.core.$strip>>;
|
|
6966
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6967
|
+
type: z.ZodLiteral<"volume">;
|
|
6968
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
6969
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
6970
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
6971
|
+
type: z.ZodLiteral<"flat">;
|
|
6972
|
+
amount: z.ZodString;
|
|
6973
|
+
}, z.core.$strip>>;
|
|
6974
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
6975
|
+
type: z.ZodLiteral<"unit">;
|
|
6976
|
+
amount: z.ZodString;
|
|
6977
|
+
}, z.core.$strip>>;
|
|
6978
|
+
}, z.core.$strip>>;
|
|
6979
|
+
}, z.core.$strip>], "type">;
|
|
6980
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
6981
|
+
operation: z.ZodEnum<{
|
|
6982
|
+
divide: "divide";
|
|
6983
|
+
multiply: "multiply";
|
|
6984
|
+
}>;
|
|
6985
|
+
conversionFactor: z.ZodString;
|
|
6986
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6987
|
+
ceiling: "ceiling";
|
|
6988
|
+
floor: "floor";
|
|
6989
|
+
half_up: "half_up";
|
|
6990
|
+
none: "none";
|
|
6991
|
+
}>>>;
|
|
6992
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
6993
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
6994
|
+
}, z.core.$strip>>;
|
|
6995
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
6996
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
6997
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
6998
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
6999
|
+
}, z.core.$strip>>;
|
|
7000
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7001
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7002
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7003
|
+
}, z.core.$strip>>;
|
|
7004
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
7005
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7006
|
+
exclusive: "exclusive";
|
|
7007
|
+
inclusive: "inclusive";
|
|
7008
|
+
}>>;
|
|
7009
|
+
code: z.ZodObject<{
|
|
7010
|
+
id: z.ZodString;
|
|
7011
|
+
}, z.core.$strip>;
|
|
7012
|
+
}, z.core.$strip>>;
|
|
7013
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7014
|
+
type: z.ZodLiteral<"metered">;
|
|
7015
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7016
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7017
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
7018
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7019
|
+
type: z.ZodLiteral<"static">;
|
|
7020
|
+
config: z.ZodUnknown;
|
|
7021
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7022
|
+
type: z.ZodLiteral<"boolean">;
|
|
7023
|
+
}, z.core.$strip>], "type">>;
|
|
7024
|
+
}, z.core.$strip>>;
|
|
7025
|
+
}, z.core.$strip>;
|
|
7026
|
+
export declare const subscriptionEditAddItem: z.ZodObject<{
|
|
7027
|
+
type: z.ZodLiteral<"add_item">;
|
|
7028
|
+
phaseKey: z.ZodString;
|
|
7029
|
+
rateCard: z.ZodObject<{
|
|
7030
|
+
name: z.ZodString;
|
|
7031
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7032
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7033
|
+
key: z.ZodString;
|
|
7034
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
7035
|
+
id: z.ZodString;
|
|
7036
|
+
}, z.core.$strip>>;
|
|
7037
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
7038
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
7039
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7040
|
+
type: z.ZodLiteral<"free">;
|
|
7041
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7042
|
+
type: z.ZodLiteral<"flat">;
|
|
7043
|
+
amount: z.ZodString;
|
|
7044
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7045
|
+
type: z.ZodLiteral<"unit">;
|
|
7046
|
+
amount: z.ZodString;
|
|
7047
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7048
|
+
type: z.ZodLiteral<"graduated">;
|
|
7049
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7050
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7051
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7052
|
+
type: z.ZodLiteral<"flat">;
|
|
7053
|
+
amount: z.ZodString;
|
|
7054
|
+
}, z.core.$strip>>;
|
|
7055
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7056
|
+
type: z.ZodLiteral<"unit">;
|
|
7057
|
+
amount: z.ZodString;
|
|
7058
|
+
}, z.core.$strip>>;
|
|
7059
|
+
}, z.core.$strip>>;
|
|
7060
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7061
|
+
type: z.ZodLiteral<"volume">;
|
|
7062
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7063
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7064
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7065
|
+
type: z.ZodLiteral<"flat">;
|
|
7066
|
+
amount: z.ZodString;
|
|
7067
|
+
}, z.core.$strip>>;
|
|
7068
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7069
|
+
type: z.ZodLiteral<"unit">;
|
|
7070
|
+
amount: z.ZodString;
|
|
7071
|
+
}, z.core.$strip>>;
|
|
7072
|
+
}, z.core.$strip>>;
|
|
7073
|
+
}, z.core.$strip>], "type">;
|
|
7074
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
7075
|
+
operation: z.ZodEnum<{
|
|
7076
|
+
divide: "divide";
|
|
7077
|
+
multiply: "multiply";
|
|
7078
|
+
}>;
|
|
7079
|
+
conversionFactor: z.ZodString;
|
|
7080
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7081
|
+
ceiling: "ceiling";
|
|
7082
|
+
floor: "floor";
|
|
7083
|
+
half_up: "half_up";
|
|
7084
|
+
none: "none";
|
|
7085
|
+
}>>>;
|
|
7086
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7087
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
7088
|
+
}, z.core.$strip>>;
|
|
7089
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7090
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
7091
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
7092
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
7093
|
+
}, z.core.$strip>>;
|
|
7094
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7095
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7096
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7097
|
+
}, z.core.$strip>>;
|
|
7098
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
7099
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7100
|
+
exclusive: "exclusive";
|
|
7101
|
+
inclusive: "inclusive";
|
|
7102
|
+
}>>;
|
|
7103
|
+
code: z.ZodObject<{
|
|
7104
|
+
id: z.ZodString;
|
|
7105
|
+
}, z.core.$strip>;
|
|
7106
|
+
}, z.core.$strip>>;
|
|
7107
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7108
|
+
type: z.ZodLiteral<"metered">;
|
|
7109
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7110
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7111
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
7112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7113
|
+
type: z.ZodLiteral<"static">;
|
|
7114
|
+
config: z.ZodUnknown;
|
|
7115
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7116
|
+
type: z.ZodLiteral<"boolean">;
|
|
7117
|
+
}, z.core.$strip>], "type">>;
|
|
7118
|
+
}, z.core.$strip>;
|
|
7119
|
+
}, z.core.$strip>;
|
|
6925
7120
|
export declare const subscriptionAddonRateCard: z.ZodObject<{
|
|
6926
7121
|
rateCard: z.ZodObject<{
|
|
6927
7122
|
name: z.ZodString;
|
|
@@ -7015,125 +7210,28 @@ export declare const subscriptionAddonRateCard: z.ZodObject<{
|
|
|
7015
7210
|
}, z.core.$strip>;
|
|
7016
7211
|
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
7017
7212
|
}, z.core.$strip>;
|
|
7018
|
-
export declare const
|
|
7213
|
+
export declare const addon: z.ZodObject<{
|
|
7214
|
+
id: z.ZodString;
|
|
7019
7215
|
name: z.ZodString;
|
|
7020
7216
|
description: z.ZodOptional<z.ZodString>;
|
|
7021
7217
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7218
|
+
createdAt: z.ZodDate;
|
|
7219
|
+
updatedAt: z.ZodDate;
|
|
7220
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
7022
7221
|
key: z.ZodString;
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7037
|
-
type: z.ZodLiteral<"flat">;
|
|
7038
|
-
amount: z.ZodString;
|
|
7039
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7040
|
-
type: z.ZodLiteral<"unit">;
|
|
7041
|
-
amount: z.ZodString;
|
|
7042
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7043
|
-
type: z.ZodLiteral<"graduated">;
|
|
7044
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7045
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7046
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7047
|
-
type: z.ZodLiteral<"flat">;
|
|
7048
|
-
amount: z.ZodString;
|
|
7049
|
-
}, z.core.$strip>>;
|
|
7050
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7051
|
-
type: z.ZodLiteral<"unit">;
|
|
7052
|
-
amount: z.ZodString;
|
|
7053
|
-
}, z.core.$strip>>;
|
|
7054
|
-
}, z.core.$strip>>;
|
|
7055
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7056
|
-
type: z.ZodLiteral<"volume">;
|
|
7057
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7058
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7059
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7060
|
-
type: z.ZodLiteral<"flat">;
|
|
7061
|
-
amount: z.ZodString;
|
|
7062
|
-
}, z.core.$strip>>;
|
|
7063
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7064
|
-
type: z.ZodLiteral<"unit">;
|
|
7065
|
-
amount: z.ZodString;
|
|
7066
|
-
}, z.core.$strip>>;
|
|
7067
|
-
}, z.core.$strip>>;
|
|
7068
|
-
}, z.core.$strip>], "type">;
|
|
7069
|
-
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
7070
|
-
operation: z.ZodEnum<{
|
|
7071
|
-
divide: "divide";
|
|
7072
|
-
multiply: "multiply";
|
|
7073
|
-
}>;
|
|
7074
|
-
conversionFactor: z.ZodString;
|
|
7075
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7076
|
-
ceiling: "ceiling";
|
|
7077
|
-
floor: "floor";
|
|
7078
|
-
half_up: "half_up";
|
|
7079
|
-
none: "none";
|
|
7080
|
-
}>>>;
|
|
7081
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7082
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
7083
|
-
}, z.core.$strip>>;
|
|
7084
|
-
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7085
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
7086
|
-
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
7087
|
-
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
7088
|
-
}, z.core.$strip>>;
|
|
7089
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
7090
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7091
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
7092
|
-
}, z.core.$strip>>;
|
|
7093
|
-
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
7094
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7095
|
-
exclusive: "exclusive";
|
|
7096
|
-
inclusive: "inclusive";
|
|
7097
|
-
}>>;
|
|
7098
|
-
code: z.ZodObject<{
|
|
7099
|
-
id: z.ZodString;
|
|
7100
|
-
}, z.core.$strip>;
|
|
7101
|
-
}, z.core.$strip>>;
|
|
7102
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7103
|
-
type: z.ZodLiteral<"metered">;
|
|
7104
|
-
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7105
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7106
|
-
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
7107
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7108
|
-
type: z.ZodLiteral<"static">;
|
|
7109
|
-
config: z.ZodUnknown;
|
|
7110
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7111
|
-
type: z.ZodLiteral<"boolean">;
|
|
7112
|
-
}, z.core.$strip>], "type">>;
|
|
7113
|
-
}, z.core.$strip>>;
|
|
7114
|
-
}, z.core.$strip>;
|
|
7115
|
-
export declare const addon: z.ZodObject<{
|
|
7116
|
-
id: z.ZodString;
|
|
7117
|
-
name: z.ZodString;
|
|
7118
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7119
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7120
|
-
createdAt: z.ZodDate;
|
|
7121
|
-
updatedAt: z.ZodDate;
|
|
7122
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
7123
|
-
key: z.ZodString;
|
|
7124
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
7125
|
-
instanceType: z.ZodEnum<{
|
|
7126
|
-
multiple: "multiple";
|
|
7127
|
-
single: "single";
|
|
7128
|
-
}>;
|
|
7129
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
7130
|
-
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
7131
|
-
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
7132
|
-
status: z.ZodEnum<{
|
|
7133
|
-
active: "active";
|
|
7134
|
-
archived: "archived";
|
|
7135
|
-
draft: "draft";
|
|
7136
|
-
}>;
|
|
7222
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
7223
|
+
instanceType: z.ZodEnum<{
|
|
7224
|
+
multiple: "multiple";
|
|
7225
|
+
single: "single";
|
|
7226
|
+
}>;
|
|
7227
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
7228
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
7229
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
7230
|
+
status: z.ZodEnum<{
|
|
7231
|
+
active: "active";
|
|
7232
|
+
archived: "archived";
|
|
7233
|
+
draft: "draft";
|
|
7234
|
+
}>;
|
|
7137
7235
|
rateCards: z.ZodArray<z.ZodObject<{
|
|
7138
7236
|
name: z.ZodString;
|
|
7139
7237
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -8471,28 +8569,139 @@ export declare const subscriptionPhase: z.ZodObject<{
|
|
|
8471
8569
|
}, z.core.$strip>;
|
|
8472
8570
|
}, z.core.$strip>>;
|
|
8473
8571
|
}, z.core.$strip>;
|
|
8474
|
-
export declare const
|
|
8572
|
+
export declare const subscriptionCustomPlan: z.ZodObject<{
|
|
8573
|
+
name: z.ZodString;
|
|
8574
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8575
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8576
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
8577
|
+
billingCadence: z.ZodString;
|
|
8578
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8579
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
8580
|
+
name: z.ZodString;
|
|
8581
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8582
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8583
|
+
key: z.ZodString;
|
|
8584
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
8585
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
8586
|
+
name: z.ZodString;
|
|
8587
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8588
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8589
|
+
key: z.ZodString;
|
|
8590
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
8591
|
+
id: z.ZodString;
|
|
8592
|
+
}, z.core.$strip>>;
|
|
8593
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
8594
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
8595
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8596
|
+
type: z.ZodLiteral<"free">;
|
|
8597
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8598
|
+
type: z.ZodLiteral<"flat">;
|
|
8599
|
+
amount: z.ZodString;
|
|
8600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8601
|
+
type: z.ZodLiteral<"unit">;
|
|
8602
|
+
amount: z.ZodString;
|
|
8603
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8604
|
+
type: z.ZodLiteral<"graduated">;
|
|
8605
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8606
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
8607
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
8608
|
+
type: z.ZodLiteral<"flat">;
|
|
8609
|
+
amount: z.ZodString;
|
|
8610
|
+
}, z.core.$strip>>;
|
|
8611
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
8612
|
+
type: z.ZodLiteral<"unit">;
|
|
8613
|
+
amount: z.ZodString;
|
|
8614
|
+
}, z.core.$strip>>;
|
|
8615
|
+
}, z.core.$strip>>;
|
|
8616
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8617
|
+
type: z.ZodLiteral<"volume">;
|
|
8618
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8619
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
8620
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
8621
|
+
type: z.ZodLiteral<"flat">;
|
|
8622
|
+
amount: z.ZodString;
|
|
8623
|
+
}, z.core.$strip>>;
|
|
8624
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
8625
|
+
type: z.ZodLiteral<"unit">;
|
|
8626
|
+
amount: z.ZodString;
|
|
8627
|
+
}, z.core.$strip>>;
|
|
8628
|
+
}, z.core.$strip>>;
|
|
8629
|
+
}, z.core.$strip>], "type">;
|
|
8630
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
8631
|
+
operation: z.ZodEnum<{
|
|
8632
|
+
divide: "divide";
|
|
8633
|
+
multiply: "multiply";
|
|
8634
|
+
}>;
|
|
8635
|
+
conversionFactor: z.ZodString;
|
|
8636
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
8637
|
+
ceiling: "ceiling";
|
|
8638
|
+
floor: "floor";
|
|
8639
|
+
half_up: "half_up";
|
|
8640
|
+
none: "none";
|
|
8641
|
+
}>>>;
|
|
8642
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8643
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
8644
|
+
}, z.core.$strip>>;
|
|
8645
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
8646
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
8647
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
8648
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
8649
|
+
}, z.core.$strip>>;
|
|
8650
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8651
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8652
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
8653
|
+
}, z.core.$strip>>;
|
|
8654
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
8655
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8656
|
+
exclusive: "exclusive";
|
|
8657
|
+
inclusive: "inclusive";
|
|
8658
|
+
}>>;
|
|
8659
|
+
code: z.ZodObject<{
|
|
8660
|
+
id: z.ZodString;
|
|
8661
|
+
}, z.core.$strip>;
|
|
8662
|
+
}, z.core.$strip>>;
|
|
8663
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8664
|
+
type: z.ZodLiteral<"metered">;
|
|
8665
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8666
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8667
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
8668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8669
|
+
type: z.ZodLiteral<"static">;
|
|
8670
|
+
config: z.ZodUnknown;
|
|
8671
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8672
|
+
type: z.ZodLiteral<"boolean">;
|
|
8673
|
+
}, z.core.$strip>], "type">>;
|
|
8674
|
+
}, z.core.$strip>>;
|
|
8675
|
+
}, z.core.$strip>>;
|
|
8676
|
+
}, z.core.$strip>;
|
|
8677
|
+
export declare const plan: z.ZodObject<{
|
|
8475
8678
|
id: z.ZodString;
|
|
8679
|
+
name: z.ZodString;
|
|
8680
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8476
8681
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8477
8682
|
createdAt: z.ZodDate;
|
|
8478
8683
|
updatedAt: z.ZodDate;
|
|
8479
8684
|
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8685
|
+
key: z.ZodString;
|
|
8686
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
8687
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
8688
|
+
billingCadence: z.ZodString;
|
|
8689
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8690
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
8691
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
8692
|
+
status: z.ZodEnum<{
|
|
8693
|
+
active: "active";
|
|
8694
|
+
archived: "archived";
|
|
8695
|
+
draft: "draft";
|
|
8696
|
+
scheduled: "scheduled";
|
|
8697
|
+
}>;
|
|
8698
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
8699
|
+
name: z.ZodString;
|
|
8700
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8701
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8702
|
+
key: z.ZodString;
|
|
8703
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
8704
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
8496
8705
|
name: z.ZodString;
|
|
8497
8706
|
description: z.ZodOptional<z.ZodString>;
|
|
8498
8707
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -8581,31 +8790,27 @@ export declare const subscriptionAddon: z.ZodObject<{
|
|
|
8581
8790
|
}, z.core.$strip>, z.ZodObject<{
|
|
8582
8791
|
type: z.ZodLiteral<"boolean">;
|
|
8583
8792
|
}, z.core.$strip>], "type">>;
|
|
8584
|
-
}, z.core.$strip
|
|
8585
|
-
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
8793
|
+
}, z.core.$strip>>;
|
|
8586
8794
|
}, z.core.$strip>>;
|
|
8795
|
+
settlementMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
8796
|
+
credit_only: "credit_only";
|
|
8797
|
+
credit_then_invoice: "credit_then_invoice";
|
|
8798
|
+
}>>>;
|
|
8799
|
+
validationErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8800
|
+
code: z.ZodString;
|
|
8801
|
+
message: z.ZodString;
|
|
8802
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8803
|
+
field: z.ZodString;
|
|
8804
|
+
}, z.core.$strip>>>;
|
|
8587
8805
|
}, z.core.$strip>;
|
|
8588
|
-
export declare const
|
|
8589
|
-
id: z.ZodString;
|
|
8806
|
+
export declare const createPlanRequest: z.ZodObject<{
|
|
8590
8807
|
name: z.ZodString;
|
|
8591
8808
|
description: z.ZodOptional<z.ZodString>;
|
|
8592
8809
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8593
|
-
createdAt: z.ZodDate;
|
|
8594
|
-
updatedAt: z.ZodDate;
|
|
8595
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
8596
8810
|
key: z.ZodString;
|
|
8597
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
8598
8811
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
8599
8812
|
billingCadence: z.ZodString;
|
|
8600
8813
|
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8601
|
-
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
8602
|
-
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
8603
|
-
status: z.ZodEnum<{
|
|
8604
|
-
active: "active";
|
|
8605
|
-
archived: "archived";
|
|
8606
|
-
draft: "draft";
|
|
8607
|
-
scheduled: "scheduled";
|
|
8608
|
-
}>;
|
|
8609
8814
|
phases: z.ZodArray<z.ZodObject<{
|
|
8610
8815
|
name: z.ZodString;
|
|
8611
8816
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -8703,24 +8908,11 @@ export declare const plan: z.ZodObject<{
|
|
|
8703
8908
|
}, z.core.$strip>], "type">>;
|
|
8704
8909
|
}, z.core.$strip>>;
|
|
8705
8910
|
}, z.core.$strip>>;
|
|
8706
|
-
settlementMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
8707
|
-
credit_only: "credit_only";
|
|
8708
|
-
credit_then_invoice: "credit_then_invoice";
|
|
8709
|
-
}>>>;
|
|
8710
|
-
validationErrors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8711
|
-
code: z.ZodString;
|
|
8712
|
-
message: z.ZodString;
|
|
8713
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8714
|
-
field: z.ZodString;
|
|
8715
|
-
}, z.core.$strip>>>;
|
|
8716
8911
|
}, z.core.$strip>;
|
|
8717
|
-
export declare const
|
|
8912
|
+
export declare const upsertPlanRequest: z.ZodObject<{
|
|
8718
8913
|
name: z.ZodString;
|
|
8719
8914
|
description: z.ZodOptional<z.ZodString>;
|
|
8720
8915
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8721
|
-
key: z.ZodString;
|
|
8722
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
8723
|
-
billingCadence: z.ZodString;
|
|
8724
8916
|
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8725
8917
|
phases: z.ZodArray<z.ZodObject<{
|
|
8726
8918
|
name: z.ZodString;
|
|
@@ -8820,18 +9012,148 @@ export declare const createPlanRequest: z.ZodObject<{
|
|
|
8820
9012
|
}, z.core.$strip>>;
|
|
8821
9013
|
}, z.core.$strip>>;
|
|
8822
9014
|
}, z.core.$strip>;
|
|
8823
|
-
export declare const
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8828
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
9015
|
+
export declare const subscriptionEditOperation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9016
|
+
type: z.ZodLiteral<"add_item">;
|
|
9017
|
+
phaseKey: z.ZodString;
|
|
9018
|
+
rateCard: z.ZodObject<{
|
|
8829
9019
|
name: z.ZodString;
|
|
8830
9020
|
description: z.ZodOptional<z.ZodString>;
|
|
8831
9021
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8832
9022
|
key: z.ZodString;
|
|
9023
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
9024
|
+
id: z.ZodString;
|
|
9025
|
+
}, z.core.$strip>>;
|
|
9026
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
9027
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
9028
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9029
|
+
type: z.ZodLiteral<"free">;
|
|
9030
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9031
|
+
type: z.ZodLiteral<"flat">;
|
|
9032
|
+
amount: z.ZodString;
|
|
9033
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9034
|
+
type: z.ZodLiteral<"unit">;
|
|
9035
|
+
amount: z.ZodString;
|
|
9036
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9037
|
+
type: z.ZodLiteral<"graduated">;
|
|
9038
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
9039
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
9040
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
9041
|
+
type: z.ZodLiteral<"flat">;
|
|
9042
|
+
amount: z.ZodString;
|
|
9043
|
+
}, z.core.$strip>>;
|
|
9044
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
9045
|
+
type: z.ZodLiteral<"unit">;
|
|
9046
|
+
amount: z.ZodString;
|
|
9047
|
+
}, z.core.$strip>>;
|
|
9048
|
+
}, z.core.$strip>>;
|
|
9049
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9050
|
+
type: z.ZodLiteral<"volume">;
|
|
9051
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
9052
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
9053
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
9054
|
+
type: z.ZodLiteral<"flat">;
|
|
9055
|
+
amount: z.ZodString;
|
|
9056
|
+
}, z.core.$strip>>;
|
|
9057
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
9058
|
+
type: z.ZodLiteral<"unit">;
|
|
9059
|
+
amount: z.ZodString;
|
|
9060
|
+
}, z.core.$strip>>;
|
|
9061
|
+
}, z.core.$strip>>;
|
|
9062
|
+
}, z.core.$strip>], "type">;
|
|
9063
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
9064
|
+
operation: z.ZodEnum<{
|
|
9065
|
+
divide: "divide";
|
|
9066
|
+
multiply: "multiply";
|
|
9067
|
+
}>;
|
|
9068
|
+
conversionFactor: z.ZodString;
|
|
9069
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
9070
|
+
ceiling: "ceiling";
|
|
9071
|
+
floor: "floor";
|
|
9072
|
+
half_up: "half_up";
|
|
9073
|
+
none: "none";
|
|
9074
|
+
}>>>;
|
|
9075
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9076
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
9077
|
+
}, z.core.$strip>>;
|
|
9078
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
9079
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
9080
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
9081
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
9082
|
+
}, z.core.$strip>>;
|
|
9083
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
9084
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
9085
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
9086
|
+
}, z.core.$strip>>;
|
|
9087
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
9088
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
9089
|
+
exclusive: "exclusive";
|
|
9090
|
+
inclusive: "inclusive";
|
|
9091
|
+
}>>;
|
|
9092
|
+
code: z.ZodObject<{
|
|
9093
|
+
id: z.ZodString;
|
|
9094
|
+
}, z.core.$strip>;
|
|
9095
|
+
}, z.core.$strip>>;
|
|
9096
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9097
|
+
type: z.ZodLiteral<"metered">;
|
|
9098
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9099
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
9100
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
9101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9102
|
+
type: z.ZodLiteral<"static">;
|
|
9103
|
+
config: z.ZodUnknown;
|
|
9104
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9105
|
+
type: z.ZodLiteral<"boolean">;
|
|
9106
|
+
}, z.core.$strip>], "type">>;
|
|
9107
|
+
}, z.core.$strip>;
|
|
9108
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9109
|
+
type: z.ZodLiteral<"remove_item">;
|
|
9110
|
+
phaseKey: z.ZodString;
|
|
9111
|
+
itemKey: z.ZodString;
|
|
9112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9113
|
+
type: z.ZodLiteral<"add_phase">;
|
|
9114
|
+
phase: z.ZodObject<{
|
|
9115
|
+
key: z.ZodString;
|
|
9116
|
+
name: z.ZodString;
|
|
9117
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9118
|
+
startAfter: z.ZodNullable<z.ZodString>;
|
|
8833
9119
|
duration: z.ZodOptional<z.ZodString>;
|
|
8834
|
-
|
|
9120
|
+
}, z.core.$strip>;
|
|
9121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9122
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
9123
|
+
phaseKey: z.ZodString;
|
|
9124
|
+
shift: z.ZodEnum<{
|
|
9125
|
+
next: "next";
|
|
9126
|
+
prev: "prev";
|
|
9127
|
+
}>;
|
|
9128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9129
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
9130
|
+
phaseKey: z.ZodString;
|
|
9131
|
+
extendBy: z.ZodString;
|
|
9132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9133
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
9134
|
+
}, z.core.$strip>], "type">;
|
|
9135
|
+
export declare const subscriptionAddon: z.ZodObject<{
|
|
9136
|
+
id: z.ZodString;
|
|
9137
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9138
|
+
createdAt: z.ZodDate;
|
|
9139
|
+
updatedAt: z.ZodDate;
|
|
9140
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
9141
|
+
name: z.ZodString;
|
|
9142
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9143
|
+
addon: z.ZodObject<{
|
|
9144
|
+
id: z.ZodString;
|
|
9145
|
+
}, z.core.$strip>;
|
|
9146
|
+
quantity: z.ZodNumber;
|
|
9147
|
+
quantityAt: z.ZodDate;
|
|
9148
|
+
activeFrom: z.ZodDate;
|
|
9149
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
9150
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
9151
|
+
activeFrom: z.ZodDate;
|
|
9152
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
9153
|
+
quantity: z.ZodNumber;
|
|
9154
|
+
}, z.core.$strip>>;
|
|
9155
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
9156
|
+
rateCard: z.ZodObject<{
|
|
8835
9157
|
name: z.ZodString;
|
|
8836
9158
|
description: z.ZodOptional<z.ZodString>;
|
|
8837
9159
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -8920,7 +9242,8 @@ export declare const upsertPlanRequest: z.ZodObject<{
|
|
|
8920
9242
|
}, z.core.$strip>, z.ZodObject<{
|
|
8921
9243
|
type: z.ZodLiteral<"boolean">;
|
|
8922
9244
|
}, z.core.$strip>], "type">>;
|
|
8923
|
-
}, z.core.$strip
|
|
9245
|
+
}, z.core.$strip>;
|
|
9246
|
+
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
8924
9247
|
}, z.core.$strip>>;
|
|
8925
9248
|
}, z.core.$strip>;
|
|
8926
9249
|
export declare const addonPagePaginatedResponse: z.ZodObject<{
|
|
@@ -9580,29 +9903,35 @@ export declare const subscription: z.ZodObject<{
|
|
|
9580
9903
|
}, z.core.$strip>>;
|
|
9581
9904
|
}, z.core.$strip>>;
|
|
9582
9905
|
}, z.core.$strip>;
|
|
9583
|
-
export declare const
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9906
|
+
export declare const subscriptionCreate: z.ZodObject<{
|
|
9907
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9908
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
9909
|
+
credit_only: "credit_only";
|
|
9910
|
+
credit_then_invoice: "credit_then_invoice";
|
|
9911
|
+
}>>;
|
|
9912
|
+
customer: z.ZodObject<{
|
|
9913
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9914
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9915
|
+
}, z.core.$strip>;
|
|
9916
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
9917
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9918
|
+
key: z.ZodOptional<z.ZodString>;
|
|
9919
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
9920
|
+
}, z.core.$strip>>;
|
|
9921
|
+
customPlan: z.ZodOptional<z.ZodObject<{
|
|
9590
9922
|
name: z.ZodString;
|
|
9591
9923
|
description: z.ZodOptional<z.ZodString>;
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
}, z.core.$strip>>;
|
|
9604
|
-
rateCards: z.ZodArray<z.ZodObject<{
|
|
9605
|
-
rateCard: z.ZodObject<{
|
|
9924
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9925
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
9926
|
+
billingCadence: z.ZodString;
|
|
9927
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9928
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
9929
|
+
name: z.ZodString;
|
|
9930
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9931
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9932
|
+
key: z.ZodString;
|
|
9933
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
9934
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
9606
9935
|
name: z.ZodString;
|
|
9607
9936
|
description: z.ZodOptional<z.ZodString>;
|
|
9608
9937
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -9691,40 +10020,167 @@ export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
|
|
|
9691
10020
|
}, z.core.$strip>, z.ZodObject<{
|
|
9692
10021
|
type: z.ZodLiteral<"boolean">;
|
|
9693
10022
|
}, z.core.$strip>], "type">>;
|
|
9694
|
-
}, z.core.$strip
|
|
9695
|
-
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
10023
|
+
}, z.core.$strip>>;
|
|
9696
10024
|
}, z.core.$strip>>;
|
|
9697
10025
|
}, z.core.$strip>>;
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
}, z.core.$strip>;
|
|
9704
|
-
}, z.core.$strip>;
|
|
10026
|
+
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
10027
|
+
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10028
|
+
dynamic: "dynamic";
|
|
10029
|
+
pinned: "pinned";
|
|
10030
|
+
}>>>;
|
|
9705
10031
|
}, z.core.$strip>;
|
|
9706
|
-
export declare const
|
|
9707
|
-
|
|
9708
|
-
|
|
10032
|
+
export declare const subscriptionChange: z.ZodObject<{
|
|
10033
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10034
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
10035
|
+
credit_only: "credit_only";
|
|
10036
|
+
credit_then_invoice: "credit_then_invoice";
|
|
10037
|
+
}>>;
|
|
10038
|
+
customer: z.ZodObject<{
|
|
10039
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10040
|
+
key: z.ZodOptional<z.ZodString>;
|
|
10041
|
+
}, z.core.$strip>;
|
|
10042
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
10043
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10044
|
+
key: z.ZodOptional<z.ZodString>;
|
|
10045
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
10046
|
+
}, z.core.$strip>>;
|
|
10047
|
+
customPlan: z.ZodOptional<z.ZodObject<{
|
|
9709
10048
|
name: z.ZodString;
|
|
9710
10049
|
description: z.ZodOptional<z.ZodString>;
|
|
9711
10050
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9712
|
-
createdAt: z.ZodDate;
|
|
9713
|
-
updatedAt: z.ZodDate;
|
|
9714
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
9715
|
-
key: z.ZodString;
|
|
9716
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
9717
10051
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
9718
10052
|
billingCadence: z.ZodString;
|
|
9719
10053
|
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
10054
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
10055
|
+
name: z.ZodString;
|
|
10056
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10057
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10058
|
+
key: z.ZodString;
|
|
10059
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
10060
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
10061
|
+
name: z.ZodString;
|
|
10062
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10063
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10064
|
+
key: z.ZodString;
|
|
10065
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
10066
|
+
id: z.ZodString;
|
|
10067
|
+
}, z.core.$strip>>;
|
|
10068
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
10069
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
10070
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10071
|
+
type: z.ZodLiteral<"free">;
|
|
10072
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10073
|
+
type: z.ZodLiteral<"flat">;
|
|
10074
|
+
amount: z.ZodString;
|
|
10075
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10076
|
+
type: z.ZodLiteral<"unit">;
|
|
10077
|
+
amount: z.ZodString;
|
|
10078
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10079
|
+
type: z.ZodLiteral<"graduated">;
|
|
10080
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10081
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
10082
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
10083
|
+
type: z.ZodLiteral<"flat">;
|
|
10084
|
+
amount: z.ZodString;
|
|
10085
|
+
}, z.core.$strip>>;
|
|
10086
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
10087
|
+
type: z.ZodLiteral<"unit">;
|
|
10088
|
+
amount: z.ZodString;
|
|
10089
|
+
}, z.core.$strip>>;
|
|
10090
|
+
}, z.core.$strip>>;
|
|
10091
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10092
|
+
type: z.ZodLiteral<"volume">;
|
|
10093
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10094
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
10095
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
10096
|
+
type: z.ZodLiteral<"flat">;
|
|
10097
|
+
amount: z.ZodString;
|
|
10098
|
+
}, z.core.$strip>>;
|
|
10099
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
10100
|
+
type: z.ZodLiteral<"unit">;
|
|
10101
|
+
amount: z.ZodString;
|
|
10102
|
+
}, z.core.$strip>>;
|
|
10103
|
+
}, z.core.$strip>>;
|
|
10104
|
+
}, z.core.$strip>], "type">;
|
|
10105
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
10106
|
+
operation: z.ZodEnum<{
|
|
10107
|
+
divide: "divide";
|
|
10108
|
+
multiply: "multiply";
|
|
10109
|
+
}>;
|
|
10110
|
+
conversionFactor: z.ZodString;
|
|
10111
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10112
|
+
ceiling: "ceiling";
|
|
10113
|
+
floor: "floor";
|
|
10114
|
+
half_up: "half_up";
|
|
10115
|
+
none: "none";
|
|
10116
|
+
}>>>;
|
|
10117
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10118
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
10119
|
+
}, z.core.$strip>>;
|
|
10120
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
10121
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
10122
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
10123
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
10124
|
+
}, z.core.$strip>>;
|
|
10125
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
10126
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
10127
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
10128
|
+
}, z.core.$strip>>;
|
|
10129
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
10130
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
10131
|
+
exclusive: "exclusive";
|
|
10132
|
+
inclusive: "inclusive";
|
|
10133
|
+
}>>;
|
|
10134
|
+
code: z.ZodObject<{
|
|
10135
|
+
id: z.ZodString;
|
|
10136
|
+
}, z.core.$strip>;
|
|
10137
|
+
}, z.core.$strip>>;
|
|
10138
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10139
|
+
type: z.ZodLiteral<"metered">;
|
|
10140
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10141
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10142
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
10143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10144
|
+
type: z.ZodLiteral<"static">;
|
|
10145
|
+
config: z.ZodUnknown;
|
|
10146
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10147
|
+
type: z.ZodLiteral<"boolean">;
|
|
10148
|
+
}, z.core.$strip>], "type">>;
|
|
10149
|
+
}, z.core.$strip>>;
|
|
10150
|
+
}, z.core.$strip>>;
|
|
10151
|
+
}, z.core.$strip>>;
|
|
10152
|
+
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
10153
|
+
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10154
|
+
dynamic: "dynamic";
|
|
10155
|
+
pinned: "pinned";
|
|
10156
|
+
}>>>;
|
|
10157
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
10158
|
+
immediate: "immediate";
|
|
10159
|
+
next_billing_cycle: "next_billing_cycle";
|
|
10160
|
+
}>, z.ZodDate]>;
|
|
10161
|
+
}, z.core.$strip>;
|
|
10162
|
+
export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
10163
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10164
|
+
id: z.ZodString;
|
|
10165
|
+
name: z.ZodString;
|
|
10166
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10167
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10168
|
+
createdAt: z.ZodDate;
|
|
10169
|
+
updatedAt: z.ZodDate;
|
|
10170
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
10171
|
+
key: z.ZodString;
|
|
10172
|
+
version: z.ZodDefault<z.ZodNumber>;
|
|
10173
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
10174
|
+
billingCadence: z.ZodString;
|
|
10175
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10176
|
+
effectiveFrom: z.ZodOptional<z.ZodDate>;
|
|
10177
|
+
effectiveTo: z.ZodOptional<z.ZodDate>;
|
|
10178
|
+
status: z.ZodEnum<{
|
|
10179
|
+
active: "active";
|
|
10180
|
+
archived: "archived";
|
|
10181
|
+
draft: "draft";
|
|
10182
|
+
scheduled: "scheduled";
|
|
10183
|
+
}>;
|
|
9728
10184
|
phases: z.ZodArray<z.ZodObject<{
|
|
9729
10185
|
name: z.ZodString;
|
|
9730
10186
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -9841,6 +10297,255 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
|
9841
10297
|
}, z.core.$strip>;
|
|
9842
10298
|
}, z.core.$strip>;
|
|
9843
10299
|
}, z.core.$strip>;
|
|
10300
|
+
export declare const subscriptionEdit: z.ZodObject<{
|
|
10301
|
+
customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10302
|
+
type: z.ZodLiteral<"add_item">;
|
|
10303
|
+
phaseKey: z.ZodString;
|
|
10304
|
+
rateCard: z.ZodObject<{
|
|
10305
|
+
name: z.ZodString;
|
|
10306
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10307
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10308
|
+
key: z.ZodString;
|
|
10309
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
10310
|
+
id: z.ZodString;
|
|
10311
|
+
}, z.core.$strip>>;
|
|
10312
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
10313
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
10314
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10315
|
+
type: z.ZodLiteral<"free">;
|
|
10316
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10317
|
+
type: z.ZodLiteral<"flat">;
|
|
10318
|
+
amount: z.ZodString;
|
|
10319
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10320
|
+
type: z.ZodLiteral<"unit">;
|
|
10321
|
+
amount: z.ZodString;
|
|
10322
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10323
|
+
type: z.ZodLiteral<"graduated">;
|
|
10324
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10325
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
10326
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
10327
|
+
type: z.ZodLiteral<"flat">;
|
|
10328
|
+
amount: z.ZodString;
|
|
10329
|
+
}, z.core.$strip>>;
|
|
10330
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
10331
|
+
type: z.ZodLiteral<"unit">;
|
|
10332
|
+
amount: z.ZodString;
|
|
10333
|
+
}, z.core.$strip>>;
|
|
10334
|
+
}, z.core.$strip>>;
|
|
10335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10336
|
+
type: z.ZodLiteral<"volume">;
|
|
10337
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10338
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
10339
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
10340
|
+
type: z.ZodLiteral<"flat">;
|
|
10341
|
+
amount: z.ZodString;
|
|
10342
|
+
}, z.core.$strip>>;
|
|
10343
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
10344
|
+
type: z.ZodLiteral<"unit">;
|
|
10345
|
+
amount: z.ZodString;
|
|
10346
|
+
}, z.core.$strip>>;
|
|
10347
|
+
}, z.core.$strip>>;
|
|
10348
|
+
}, z.core.$strip>], "type">;
|
|
10349
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
10350
|
+
operation: z.ZodEnum<{
|
|
10351
|
+
divide: "divide";
|
|
10352
|
+
multiply: "multiply";
|
|
10353
|
+
}>;
|
|
10354
|
+
conversionFactor: z.ZodString;
|
|
10355
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10356
|
+
ceiling: "ceiling";
|
|
10357
|
+
floor: "floor";
|
|
10358
|
+
half_up: "half_up";
|
|
10359
|
+
none: "none";
|
|
10360
|
+
}>>>;
|
|
10361
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10362
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
10363
|
+
}, z.core.$strip>>;
|
|
10364
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
10365
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
10366
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
10367
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
10368
|
+
}, z.core.$strip>>;
|
|
10369
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
10370
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
10371
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
10372
|
+
}, z.core.$strip>>;
|
|
10373
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
10374
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
10375
|
+
exclusive: "exclusive";
|
|
10376
|
+
inclusive: "inclusive";
|
|
10377
|
+
}>>;
|
|
10378
|
+
code: z.ZodObject<{
|
|
10379
|
+
id: z.ZodString;
|
|
10380
|
+
}, z.core.$strip>;
|
|
10381
|
+
}, z.core.$strip>>;
|
|
10382
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10383
|
+
type: z.ZodLiteral<"metered">;
|
|
10384
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10385
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10386
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
10387
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10388
|
+
type: z.ZodLiteral<"static">;
|
|
10389
|
+
config: z.ZodUnknown;
|
|
10390
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10391
|
+
type: z.ZodLiteral<"boolean">;
|
|
10392
|
+
}, z.core.$strip>], "type">>;
|
|
10393
|
+
}, z.core.$strip>;
|
|
10394
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10395
|
+
type: z.ZodLiteral<"remove_item">;
|
|
10396
|
+
phaseKey: z.ZodString;
|
|
10397
|
+
itemKey: z.ZodString;
|
|
10398
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10399
|
+
type: z.ZodLiteral<"add_phase">;
|
|
10400
|
+
phase: z.ZodObject<{
|
|
10401
|
+
key: z.ZodString;
|
|
10402
|
+
name: z.ZodString;
|
|
10403
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10404
|
+
startAfter: z.ZodNullable<z.ZodString>;
|
|
10405
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
10406
|
+
}, z.core.$strip>;
|
|
10407
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10408
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
10409
|
+
phaseKey: z.ZodString;
|
|
10410
|
+
shift: z.ZodEnum<{
|
|
10411
|
+
next: "next";
|
|
10412
|
+
prev: "prev";
|
|
10413
|
+
}>;
|
|
10414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10415
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
10416
|
+
phaseKey: z.ZodString;
|
|
10417
|
+
extendBy: z.ZodString;
|
|
10418
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10419
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
10420
|
+
}, z.core.$strip>], "type">>;
|
|
10421
|
+
timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
10422
|
+
immediate: "immediate";
|
|
10423
|
+
next_billing_cycle: "next_billing_cycle";
|
|
10424
|
+
}>, z.ZodDate]>>>;
|
|
10425
|
+
}, z.core.$strip>;
|
|
10426
|
+
export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
|
|
10427
|
+
data: z.ZodArray<z.ZodObject<{
|
|
10428
|
+
id: z.ZodString;
|
|
10429
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10430
|
+
createdAt: z.ZodDate;
|
|
10431
|
+
updatedAt: z.ZodDate;
|
|
10432
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
10433
|
+
name: z.ZodString;
|
|
10434
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10435
|
+
addon: z.ZodObject<{
|
|
10436
|
+
id: z.ZodString;
|
|
10437
|
+
}, z.core.$strip>;
|
|
10438
|
+
quantity: z.ZodNumber;
|
|
10439
|
+
quantityAt: z.ZodDate;
|
|
10440
|
+
activeFrom: z.ZodDate;
|
|
10441
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
10442
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
10443
|
+
activeFrom: z.ZodDate;
|
|
10444
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
10445
|
+
quantity: z.ZodNumber;
|
|
10446
|
+
}, z.core.$strip>>;
|
|
10447
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
10448
|
+
rateCard: z.ZodObject<{
|
|
10449
|
+
name: z.ZodString;
|
|
10450
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10451
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10452
|
+
key: z.ZodString;
|
|
10453
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
10454
|
+
id: z.ZodString;
|
|
10455
|
+
}, z.core.$strip>>;
|
|
10456
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
10457
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
10458
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10459
|
+
type: z.ZodLiteral<"free">;
|
|
10460
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10461
|
+
type: z.ZodLiteral<"flat">;
|
|
10462
|
+
amount: z.ZodString;
|
|
10463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10464
|
+
type: z.ZodLiteral<"unit">;
|
|
10465
|
+
amount: z.ZodString;
|
|
10466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10467
|
+
type: z.ZodLiteral<"graduated">;
|
|
10468
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10469
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
10470
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
10471
|
+
type: z.ZodLiteral<"flat">;
|
|
10472
|
+
amount: z.ZodString;
|
|
10473
|
+
}, z.core.$strip>>;
|
|
10474
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
10475
|
+
type: z.ZodLiteral<"unit">;
|
|
10476
|
+
amount: z.ZodString;
|
|
10477
|
+
}, z.core.$strip>>;
|
|
10478
|
+
}, z.core.$strip>>;
|
|
10479
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10480
|
+
type: z.ZodLiteral<"volume">;
|
|
10481
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
10482
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
10483
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
10484
|
+
type: z.ZodLiteral<"flat">;
|
|
10485
|
+
amount: z.ZodString;
|
|
10486
|
+
}, z.core.$strip>>;
|
|
10487
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
10488
|
+
type: z.ZodLiteral<"unit">;
|
|
10489
|
+
amount: z.ZodString;
|
|
10490
|
+
}, z.core.$strip>>;
|
|
10491
|
+
}, z.core.$strip>>;
|
|
10492
|
+
}, z.core.$strip>], "type">;
|
|
10493
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
10494
|
+
operation: z.ZodEnum<{
|
|
10495
|
+
divide: "divide";
|
|
10496
|
+
multiply: "multiply";
|
|
10497
|
+
}>;
|
|
10498
|
+
conversionFactor: z.ZodString;
|
|
10499
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10500
|
+
ceiling: "ceiling";
|
|
10501
|
+
floor: "floor";
|
|
10502
|
+
half_up: "half_up";
|
|
10503
|
+
none: "none";
|
|
10504
|
+
}>>>;
|
|
10505
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10506
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
10507
|
+
}, z.core.$strip>>;
|
|
10508
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
10509
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
10510
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
10511
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
10512
|
+
}, z.core.$strip>>;
|
|
10513
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
10514
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
10515
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
10516
|
+
}, z.core.$strip>>;
|
|
10517
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
10518
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
10519
|
+
exclusive: "exclusive";
|
|
10520
|
+
inclusive: "inclusive";
|
|
10521
|
+
}>>;
|
|
10522
|
+
code: z.ZodObject<{
|
|
10523
|
+
id: z.ZodString;
|
|
10524
|
+
}, z.core.$strip>;
|
|
10525
|
+
}, z.core.$strip>>;
|
|
10526
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10527
|
+
type: z.ZodLiteral<"metered">;
|
|
10528
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
10529
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
10530
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
10531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10532
|
+
type: z.ZodLiteral<"static">;
|
|
10533
|
+
config: z.ZodUnknown;
|
|
10534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10535
|
+
type: z.ZodLiteral<"boolean">;
|
|
10536
|
+
}, z.core.$strip>], "type">>;
|
|
10537
|
+
}, z.core.$strip>;
|
|
10538
|
+
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
10539
|
+
}, z.core.$strip>>;
|
|
10540
|
+
}, z.core.$strip>>;
|
|
10541
|
+
meta: z.ZodObject<{
|
|
10542
|
+
page: z.ZodObject<{
|
|
10543
|
+
number: z.ZodNumber;
|
|
10544
|
+
size: z.ZodNumber;
|
|
10545
|
+
total: z.ZodNumber;
|
|
10546
|
+
}, z.core.$strip>;
|
|
10547
|
+
}, z.core.$strip>;
|
|
10548
|
+
}, z.core.$strip>;
|
|
9844
10549
|
export declare const invoiceStandard: z.ZodObject<{
|
|
9845
10550
|
id: z.ZodString;
|
|
9846
10551
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -19951,11 +20656,116 @@ export declare const createSubscriptionBody: z.ZodObject<{
|
|
|
19951
20656
|
id: z.ZodOptional<z.ZodString>;
|
|
19952
20657
|
key: z.ZodOptional<z.ZodString>;
|
|
19953
20658
|
}, z.core.$strip>;
|
|
19954
|
-
plan: z.ZodObject<{
|
|
20659
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
19955
20660
|
id: z.ZodOptional<z.ZodString>;
|
|
19956
20661
|
key: z.ZodOptional<z.ZodString>;
|
|
19957
20662
|
version: z.ZodOptional<z.ZodNumber>;
|
|
19958
|
-
}, z.core.$strip
|
|
20663
|
+
}, z.core.$strip>>;
|
|
20664
|
+
customPlan: z.ZodOptional<z.ZodObject<{
|
|
20665
|
+
name: z.ZodString;
|
|
20666
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20667
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20668
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
20669
|
+
billingCadence: z.ZodString;
|
|
20670
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
20671
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
20672
|
+
name: z.ZodString;
|
|
20673
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20674
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20675
|
+
key: z.ZodString;
|
|
20676
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
20677
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
20678
|
+
name: z.ZodString;
|
|
20679
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20680
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
20681
|
+
key: z.ZodString;
|
|
20682
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
20683
|
+
id: z.ZodString;
|
|
20684
|
+
}, z.core.$strip>>;
|
|
20685
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
20686
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
20687
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20688
|
+
type: z.ZodLiteral<"free">;
|
|
20689
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20690
|
+
type: z.ZodLiteral<"flat">;
|
|
20691
|
+
amount: z.ZodString;
|
|
20692
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20693
|
+
type: z.ZodLiteral<"unit">;
|
|
20694
|
+
amount: z.ZodString;
|
|
20695
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20696
|
+
type: z.ZodLiteral<"graduated">;
|
|
20697
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
20698
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
20699
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
20700
|
+
type: z.ZodLiteral<"flat">;
|
|
20701
|
+
amount: z.ZodString;
|
|
20702
|
+
}, z.core.$strip>>;
|
|
20703
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
20704
|
+
type: z.ZodLiteral<"unit">;
|
|
20705
|
+
amount: z.ZodString;
|
|
20706
|
+
}, z.core.$strip>>;
|
|
20707
|
+
}, z.core.$strip>>;
|
|
20708
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20709
|
+
type: z.ZodLiteral<"volume">;
|
|
20710
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
20711
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
20712
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
20713
|
+
type: z.ZodLiteral<"flat">;
|
|
20714
|
+
amount: z.ZodString;
|
|
20715
|
+
}, z.core.$strip>>;
|
|
20716
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
20717
|
+
type: z.ZodLiteral<"unit">;
|
|
20718
|
+
amount: z.ZodString;
|
|
20719
|
+
}, z.core.$strip>>;
|
|
20720
|
+
}, z.core.$strip>>;
|
|
20721
|
+
}, z.core.$strip>], "type">;
|
|
20722
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
20723
|
+
operation: z.ZodEnum<{
|
|
20724
|
+
divide: "divide";
|
|
20725
|
+
multiply: "multiply";
|
|
20726
|
+
}>;
|
|
20727
|
+
conversionFactor: z.ZodString;
|
|
20728
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20729
|
+
ceiling: "ceiling";
|
|
20730
|
+
floor: "floor";
|
|
20731
|
+
half_up: "half_up";
|
|
20732
|
+
none: "none";
|
|
20733
|
+
}>>>;
|
|
20734
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
20735
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
20736
|
+
}, z.core.$strip>>;
|
|
20737
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
20738
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
20739
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
20740
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
20741
|
+
}, z.core.$strip>>;
|
|
20742
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
20743
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
20744
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
20745
|
+
}, z.core.$strip>>;
|
|
20746
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
20747
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
20748
|
+
exclusive: "exclusive";
|
|
20749
|
+
inclusive: "inclusive";
|
|
20750
|
+
}>>;
|
|
20751
|
+
code: z.ZodObject<{
|
|
20752
|
+
id: z.ZodString;
|
|
20753
|
+
}, z.core.$strip>;
|
|
20754
|
+
}, z.core.$strip>>;
|
|
20755
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
20756
|
+
type: z.ZodLiteral<"metered">;
|
|
20757
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
20758
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
20759
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
20760
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20761
|
+
type: z.ZodLiteral<"static">;
|
|
20762
|
+
config: z.ZodUnknown;
|
|
20763
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
20764
|
+
type: z.ZodLiteral<"boolean">;
|
|
20765
|
+
}, z.core.$strip>], "type">>;
|
|
20766
|
+
}, z.core.$strip>>;
|
|
20767
|
+
}, z.core.$strip>>;
|
|
20768
|
+
}, z.core.$strip>>;
|
|
19959
20769
|
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
19960
20770
|
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
19961
20771
|
dynamic: "dynamic";
|
|
@@ -20826,11 +21636,116 @@ export declare const changeSubscriptionBody: z.ZodObject<{
|
|
|
20826
21636
|
id: z.ZodOptional<z.ZodString>;
|
|
20827
21637
|
key: z.ZodOptional<z.ZodString>;
|
|
20828
21638
|
}, z.core.$strip>;
|
|
20829
|
-
plan: z.ZodObject<{
|
|
21639
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
20830
21640
|
id: z.ZodOptional<z.ZodString>;
|
|
20831
21641
|
key: z.ZodOptional<z.ZodString>;
|
|
20832
21642
|
version: z.ZodOptional<z.ZodNumber>;
|
|
20833
|
-
}, z.core.$strip
|
|
21643
|
+
}, z.core.$strip>>;
|
|
21644
|
+
customPlan: z.ZodOptional<z.ZodObject<{
|
|
21645
|
+
name: z.ZodString;
|
|
21646
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21647
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21648
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
21649
|
+
billingCadence: z.ZodString;
|
|
21650
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
21651
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
21652
|
+
name: z.ZodString;
|
|
21653
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21654
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21655
|
+
key: z.ZodString;
|
|
21656
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
21657
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
21658
|
+
name: z.ZodString;
|
|
21659
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21660
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21661
|
+
key: z.ZodString;
|
|
21662
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
21663
|
+
id: z.ZodString;
|
|
21664
|
+
}, z.core.$strip>>;
|
|
21665
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
21666
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
21667
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21668
|
+
type: z.ZodLiteral<"free">;
|
|
21669
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21670
|
+
type: z.ZodLiteral<"flat">;
|
|
21671
|
+
amount: z.ZodString;
|
|
21672
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21673
|
+
type: z.ZodLiteral<"unit">;
|
|
21674
|
+
amount: z.ZodString;
|
|
21675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21676
|
+
type: z.ZodLiteral<"graduated">;
|
|
21677
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
21678
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
21679
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
21680
|
+
type: z.ZodLiteral<"flat">;
|
|
21681
|
+
amount: z.ZodString;
|
|
21682
|
+
}, z.core.$strip>>;
|
|
21683
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
21684
|
+
type: z.ZodLiteral<"unit">;
|
|
21685
|
+
amount: z.ZodString;
|
|
21686
|
+
}, z.core.$strip>>;
|
|
21687
|
+
}, z.core.$strip>>;
|
|
21688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21689
|
+
type: z.ZodLiteral<"volume">;
|
|
21690
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
21691
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
21692
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
21693
|
+
type: z.ZodLiteral<"flat">;
|
|
21694
|
+
amount: z.ZodString;
|
|
21695
|
+
}, z.core.$strip>>;
|
|
21696
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
21697
|
+
type: z.ZodLiteral<"unit">;
|
|
21698
|
+
amount: z.ZodString;
|
|
21699
|
+
}, z.core.$strip>>;
|
|
21700
|
+
}, z.core.$strip>>;
|
|
21701
|
+
}, z.core.$strip>], "type">;
|
|
21702
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
21703
|
+
operation: z.ZodEnum<{
|
|
21704
|
+
divide: "divide";
|
|
21705
|
+
multiply: "multiply";
|
|
21706
|
+
}>;
|
|
21707
|
+
conversionFactor: z.ZodString;
|
|
21708
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
21709
|
+
ceiling: "ceiling";
|
|
21710
|
+
floor: "floor";
|
|
21711
|
+
half_up: "half_up";
|
|
21712
|
+
none: "none";
|
|
21713
|
+
}>>>;
|
|
21714
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
21715
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
21716
|
+
}, z.core.$strip>>;
|
|
21717
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
21718
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
21719
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
21720
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
21721
|
+
}, z.core.$strip>>;
|
|
21722
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
21723
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
21724
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
21725
|
+
}, z.core.$strip>>;
|
|
21726
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
21727
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
21728
|
+
exclusive: "exclusive";
|
|
21729
|
+
inclusive: "inclusive";
|
|
21730
|
+
}>>;
|
|
21731
|
+
code: z.ZodObject<{
|
|
21732
|
+
id: z.ZodString;
|
|
21733
|
+
}, z.core.$strip>;
|
|
21734
|
+
}, z.core.$strip>>;
|
|
21735
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
21736
|
+
type: z.ZodLiteral<"metered">;
|
|
21737
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
21738
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
21739
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
21740
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21741
|
+
type: z.ZodLiteral<"static">;
|
|
21742
|
+
config: z.ZodUnknown;
|
|
21743
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21744
|
+
type: z.ZodLiteral<"boolean">;
|
|
21745
|
+
}, z.core.$strip>], "type">>;
|
|
21746
|
+
}, z.core.$strip>>;
|
|
21747
|
+
}, z.core.$strip>>;
|
|
21748
|
+
}, z.core.$strip>>;
|
|
20834
21749
|
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
20835
21750
|
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20836
21751
|
dynamic: "dynamic";
|
|
@@ -21159,41 +22074,13 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
|
|
|
21159
22074
|
}, z.core.$strip>>;
|
|
21160
22075
|
}, z.core.$strip>;
|
|
21161
22076
|
}, z.core.$strip>;
|
|
21162
|
-
export declare const
|
|
22077
|
+
export declare const editSubscriptionPathParams: z.ZodObject<{
|
|
21163
22078
|
subscriptionId: z.ZodString;
|
|
21164
22079
|
}, z.core.$strip>;
|
|
21165
|
-
export declare const
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
}, z.core.$strip>;
|
|
21170
|
-
quantity: z.ZodNumber;
|
|
21171
|
-
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
21172
|
-
immediate: "immediate";
|
|
21173
|
-
next_billing_cycle: "next_billing_cycle";
|
|
21174
|
-
}>, z.ZodDate]>;
|
|
21175
|
-
}, z.core.$strip>;
|
|
21176
|
-
export declare const createSubscriptionAddonResponse: z.ZodObject<{
|
|
21177
|
-
id: z.ZodString;
|
|
21178
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21179
|
-
createdAt: z.ZodDate;
|
|
21180
|
-
updatedAt: z.ZodDate;
|
|
21181
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
21182
|
-
name: z.ZodString;
|
|
21183
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21184
|
-
addon: z.ZodObject<{
|
|
21185
|
-
id: z.ZodString;
|
|
21186
|
-
}, z.core.$strip>;
|
|
21187
|
-
quantity: z.ZodNumber;
|
|
21188
|
-
quantityAt: z.ZodDate;
|
|
21189
|
-
activeFrom: z.ZodDate;
|
|
21190
|
-
activeTo: z.ZodOptional<z.ZodDate>;
|
|
21191
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
21192
|
-
activeFrom: z.ZodDate;
|
|
21193
|
-
activeTo: z.ZodOptional<z.ZodDate>;
|
|
21194
|
-
quantity: z.ZodNumber;
|
|
21195
|
-
}, z.core.$strip>>;
|
|
21196
|
-
rateCards: z.ZodArray<z.ZodObject<{
|
|
22080
|
+
export declare const editSubscriptionBody: z.ZodObject<{
|
|
22081
|
+
customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22082
|
+
type: z.ZodLiteral<"add_item">;
|
|
22083
|
+
phaseKey: z.ZodString;
|
|
21197
22084
|
rateCard: z.ZodObject<{
|
|
21198
22085
|
name: z.ZodString;
|
|
21199
22086
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -21284,44 +22171,359 @@ export declare const createSubscriptionAddonResponse: z.ZodObject<{
|
|
|
21284
22171
|
type: z.ZodLiteral<"boolean">;
|
|
21285
22172
|
}, z.core.$strip>], "type">>;
|
|
21286
22173
|
}, z.core.$strip>;
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21290
|
-
|
|
21291
|
-
|
|
22174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22175
|
+
type: z.ZodLiteral<"remove_item">;
|
|
22176
|
+
phaseKey: z.ZodString;
|
|
22177
|
+
itemKey: z.ZodString;
|
|
22178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22179
|
+
type: z.ZodLiteral<"add_phase">;
|
|
22180
|
+
phase: z.ZodObject<{
|
|
22181
|
+
key: z.ZodString;
|
|
22182
|
+
name: z.ZodString;
|
|
22183
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22184
|
+
startAfter: z.ZodNullable<z.ZodString>;
|
|
22185
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
22186
|
+
}, z.core.$strip>;
|
|
22187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22188
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
22189
|
+
phaseKey: z.ZodString;
|
|
22190
|
+
shift: z.ZodEnum<{
|
|
22191
|
+
next: "next";
|
|
22192
|
+
prev: "prev";
|
|
22193
|
+
}>;
|
|
22194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22195
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
22196
|
+
phaseKey: z.ZodString;
|
|
22197
|
+
extendBy: z.ZodString;
|
|
22198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22199
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
22200
|
+
}, z.core.$strip>], "type">>;
|
|
22201
|
+
timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
22202
|
+
immediate: "immediate";
|
|
22203
|
+
next_billing_cycle: "next_billing_cycle";
|
|
22204
|
+
}>, z.ZodDate]>>>;
|
|
21292
22205
|
}, z.core.$strip>;
|
|
21293
|
-
export declare const
|
|
21294
|
-
|
|
21295
|
-
|
|
21296
|
-
|
|
22206
|
+
export declare const editSubscriptionResponse: z.ZodObject<{
|
|
22207
|
+
id: z.ZodString;
|
|
22208
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22209
|
+
createdAt: z.ZodDate;
|
|
22210
|
+
updatedAt: z.ZodDate;
|
|
22211
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
22212
|
+
name: z.ZodString;
|
|
22213
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22214
|
+
activeFrom: z.ZodDate;
|
|
22215
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
22216
|
+
customerId: z.ZodString;
|
|
22217
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
22218
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
22219
|
+
id: z.ZodString;
|
|
22220
|
+
key: z.ZodString;
|
|
22221
|
+
version: z.ZodNumber;
|
|
21297
22222
|
}, z.core.$strip>>;
|
|
21298
|
-
|
|
21299
|
-
|
|
21300
|
-
|
|
22223
|
+
invoiceCurrency: z.ZodString;
|
|
22224
|
+
costBasisMode: z.ZodDefault<z.ZodEnum<{
|
|
22225
|
+
dynamic: "dynamic";
|
|
22226
|
+
pinned: "pinned";
|
|
22227
|
+
}>>;
|
|
22228
|
+
costBasisPins: z.ZodArray<z.ZodObject<{
|
|
22229
|
+
customCurrencyId: z.ZodString;
|
|
22230
|
+
invoiceCurrency: z.ZodString;
|
|
22231
|
+
costBasisId: z.ZodString;
|
|
21301
22232
|
}, z.core.$strip>>;
|
|
21302
|
-
|
|
21303
|
-
|
|
21304
|
-
|
|
22233
|
+
billingCadence: z.ZodString;
|
|
22234
|
+
proRatingConfig: z.ZodOptional<z.ZodObject<{
|
|
22235
|
+
enabled: z.ZodBoolean;
|
|
22236
|
+
mode: z.ZodEnum<{
|
|
22237
|
+
no_proration: "no_proration";
|
|
22238
|
+
prorate_prices: "prorate_prices";
|
|
22239
|
+
}>;
|
|
22240
|
+
}, z.core.$strip>>;
|
|
22241
|
+
billingAnchor: z.ZodDate;
|
|
22242
|
+
status: z.ZodEnum<{
|
|
22243
|
+
active: "active";
|
|
22244
|
+
canceled: "canceled";
|
|
22245
|
+
inactive: "inactive";
|
|
22246
|
+
scheduled: "scheduled";
|
|
22247
|
+
}>;
|
|
22248
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
22249
|
+
credit_only: "credit_only";
|
|
22250
|
+
credit_then_invoice: "credit_then_invoice";
|
|
22251
|
+
}>>;
|
|
22252
|
+
currentPeriod: z.ZodOptional<z.ZodObject<{
|
|
22253
|
+
from: z.ZodDate;
|
|
22254
|
+
to: z.ZodDate;
|
|
22255
|
+
}, z.core.$strip>>;
|
|
22256
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
21305
22257
|
id: z.ZodString;
|
|
22258
|
+
name: z.ZodString;
|
|
22259
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21306
22260
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
21307
22261
|
createdAt: z.ZodDate;
|
|
21308
22262
|
updatedAt: z.ZodDate;
|
|
21309
22263
|
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
21310
|
-
|
|
21311
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21312
|
-
addon: z.ZodObject<{
|
|
21313
|
-
id: z.ZodString;
|
|
21314
|
-
}, z.core.$strip>;
|
|
21315
|
-
quantity: z.ZodNumber;
|
|
21316
|
-
quantityAt: z.ZodDate;
|
|
22264
|
+
key: z.ZodString;
|
|
21317
22265
|
activeFrom: z.ZodDate;
|
|
21318
22266
|
activeTo: z.ZodOptional<z.ZodDate>;
|
|
21319
|
-
|
|
22267
|
+
items: z.ZodArray<z.ZodObject<{
|
|
22268
|
+
id: z.ZodString;
|
|
21320
22269
|
activeFrom: z.ZodDate;
|
|
21321
22270
|
activeTo: z.ZodOptional<z.ZodDate>;
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
22271
|
+
rateCard: z.ZodObject<{
|
|
22272
|
+
name: z.ZodString;
|
|
22273
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22274
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22275
|
+
key: z.ZodString;
|
|
22276
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
22277
|
+
id: z.ZodString;
|
|
22278
|
+
}, z.core.$strip>>;
|
|
22279
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
22280
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
22281
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22282
|
+
type: z.ZodLiteral<"free">;
|
|
22283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22284
|
+
type: z.ZodLiteral<"flat">;
|
|
22285
|
+
amount: z.ZodString;
|
|
22286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22287
|
+
type: z.ZodLiteral<"unit">;
|
|
22288
|
+
amount: z.ZodString;
|
|
22289
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22290
|
+
type: z.ZodLiteral<"graduated">;
|
|
22291
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
22292
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
22293
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
22294
|
+
type: z.ZodLiteral<"flat">;
|
|
22295
|
+
amount: z.ZodString;
|
|
22296
|
+
}, z.core.$strip>>;
|
|
22297
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
22298
|
+
type: z.ZodLiteral<"unit">;
|
|
22299
|
+
amount: z.ZodString;
|
|
22300
|
+
}, z.core.$strip>>;
|
|
22301
|
+
}, z.core.$strip>>;
|
|
22302
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22303
|
+
type: z.ZodLiteral<"volume">;
|
|
22304
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
22305
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
22306
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
22307
|
+
type: z.ZodLiteral<"flat">;
|
|
22308
|
+
amount: z.ZodString;
|
|
22309
|
+
}, z.core.$strip>>;
|
|
22310
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
22311
|
+
type: z.ZodLiteral<"unit">;
|
|
22312
|
+
amount: z.ZodString;
|
|
22313
|
+
}, z.core.$strip>>;
|
|
22314
|
+
}, z.core.$strip>>;
|
|
22315
|
+
}, z.core.$strip>], "type">;
|
|
22316
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
22317
|
+
operation: z.ZodEnum<{
|
|
22318
|
+
divide: "divide";
|
|
22319
|
+
multiply: "multiply";
|
|
22320
|
+
}>;
|
|
22321
|
+
conversionFactor: z.ZodString;
|
|
22322
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
22323
|
+
ceiling: "ceiling";
|
|
22324
|
+
floor: "floor";
|
|
22325
|
+
half_up: "half_up";
|
|
22326
|
+
none: "none";
|
|
22327
|
+
}>>>;
|
|
22328
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
22329
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
22330
|
+
}, z.core.$strip>>;
|
|
22331
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
22332
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
22333
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
22334
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
22335
|
+
}, z.core.$strip>>;
|
|
22336
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
22337
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
22338
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
22339
|
+
}, z.core.$strip>>;
|
|
22340
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
22341
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
22342
|
+
exclusive: "exclusive";
|
|
22343
|
+
inclusive: "inclusive";
|
|
22344
|
+
}>>;
|
|
22345
|
+
code: z.ZodObject<{
|
|
22346
|
+
id: z.ZodString;
|
|
22347
|
+
}, z.core.$strip>;
|
|
22348
|
+
}, z.core.$strip>>;
|
|
22349
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22350
|
+
type: z.ZodLiteral<"metered">;
|
|
22351
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22352
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
22353
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
22354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22355
|
+
type: z.ZodLiteral<"static">;
|
|
22356
|
+
config: z.ZodUnknown;
|
|
22357
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22358
|
+
type: z.ZodLiteral<"boolean">;
|
|
22359
|
+
}, z.core.$strip>], "type">>;
|
|
22360
|
+
}, z.core.$strip>;
|
|
22361
|
+
}, z.core.$strip>>;
|
|
22362
|
+
}, z.core.$strip>>;
|
|
22363
|
+
}, z.core.$strip>;
|
|
22364
|
+
export declare const createSubscriptionAddonPathParams: z.ZodObject<{
|
|
22365
|
+
subscriptionId: z.ZodString;
|
|
22366
|
+
}, z.core.$strip>;
|
|
22367
|
+
export declare const createSubscriptionAddonBody: z.ZodObject<{
|
|
22368
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22369
|
+
addon: z.ZodObject<{
|
|
22370
|
+
id: z.ZodString;
|
|
22371
|
+
}, z.core.$strip>;
|
|
22372
|
+
quantity: z.ZodNumber;
|
|
22373
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
22374
|
+
immediate: "immediate";
|
|
22375
|
+
next_billing_cycle: "next_billing_cycle";
|
|
22376
|
+
}>, z.ZodDate]>;
|
|
22377
|
+
}, z.core.$strip>;
|
|
22378
|
+
export declare const createSubscriptionAddonResponse: z.ZodObject<{
|
|
22379
|
+
id: z.ZodString;
|
|
22380
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22381
|
+
createdAt: z.ZodDate;
|
|
22382
|
+
updatedAt: z.ZodDate;
|
|
22383
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
22384
|
+
name: z.ZodString;
|
|
22385
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22386
|
+
addon: z.ZodObject<{
|
|
22387
|
+
id: z.ZodString;
|
|
22388
|
+
}, z.core.$strip>;
|
|
22389
|
+
quantity: z.ZodNumber;
|
|
22390
|
+
quantityAt: z.ZodDate;
|
|
22391
|
+
activeFrom: z.ZodDate;
|
|
22392
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
22393
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
22394
|
+
activeFrom: z.ZodDate;
|
|
22395
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
22396
|
+
quantity: z.ZodNumber;
|
|
22397
|
+
}, z.core.$strip>>;
|
|
22398
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
22399
|
+
rateCard: z.ZodObject<{
|
|
22400
|
+
name: z.ZodString;
|
|
22401
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22402
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22403
|
+
key: z.ZodString;
|
|
22404
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
22405
|
+
id: z.ZodString;
|
|
22406
|
+
}, z.core.$strip>>;
|
|
22407
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
22408
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
22409
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22410
|
+
type: z.ZodLiteral<"free">;
|
|
22411
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22412
|
+
type: z.ZodLiteral<"flat">;
|
|
22413
|
+
amount: z.ZodString;
|
|
22414
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22415
|
+
type: z.ZodLiteral<"unit">;
|
|
22416
|
+
amount: z.ZodString;
|
|
22417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22418
|
+
type: z.ZodLiteral<"graduated">;
|
|
22419
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
22420
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
22421
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
22422
|
+
type: z.ZodLiteral<"flat">;
|
|
22423
|
+
amount: z.ZodString;
|
|
22424
|
+
}, z.core.$strip>>;
|
|
22425
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
22426
|
+
type: z.ZodLiteral<"unit">;
|
|
22427
|
+
amount: z.ZodString;
|
|
22428
|
+
}, z.core.$strip>>;
|
|
22429
|
+
}, z.core.$strip>>;
|
|
22430
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22431
|
+
type: z.ZodLiteral<"volume">;
|
|
22432
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
22433
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
22434
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
22435
|
+
type: z.ZodLiteral<"flat">;
|
|
22436
|
+
amount: z.ZodString;
|
|
22437
|
+
}, z.core.$strip>>;
|
|
22438
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
22439
|
+
type: z.ZodLiteral<"unit">;
|
|
22440
|
+
amount: z.ZodString;
|
|
22441
|
+
}, z.core.$strip>>;
|
|
22442
|
+
}, z.core.$strip>>;
|
|
22443
|
+
}, z.core.$strip>], "type">;
|
|
22444
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
22445
|
+
operation: z.ZodEnum<{
|
|
22446
|
+
divide: "divide";
|
|
22447
|
+
multiply: "multiply";
|
|
22448
|
+
}>;
|
|
22449
|
+
conversionFactor: z.ZodString;
|
|
22450
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
22451
|
+
ceiling: "ceiling";
|
|
22452
|
+
floor: "floor";
|
|
22453
|
+
half_up: "half_up";
|
|
22454
|
+
none: "none";
|
|
22455
|
+
}>>>;
|
|
22456
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
22457
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
22458
|
+
}, z.core.$strip>>;
|
|
22459
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
22460
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
22461
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
22462
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
22463
|
+
}, z.core.$strip>>;
|
|
22464
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
22465
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
22466
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
22467
|
+
}, z.core.$strip>>;
|
|
22468
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
22469
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
22470
|
+
exclusive: "exclusive";
|
|
22471
|
+
inclusive: "inclusive";
|
|
22472
|
+
}>>;
|
|
22473
|
+
code: z.ZodObject<{
|
|
22474
|
+
id: z.ZodString;
|
|
22475
|
+
}, z.core.$strip>;
|
|
22476
|
+
}, z.core.$strip>>;
|
|
22477
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22478
|
+
type: z.ZodLiteral<"metered">;
|
|
22479
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
22480
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
22481
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
22482
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22483
|
+
type: z.ZodLiteral<"static">;
|
|
22484
|
+
config: z.ZodUnknown;
|
|
22485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22486
|
+
type: z.ZodLiteral<"boolean">;
|
|
22487
|
+
}, z.core.$strip>], "type">>;
|
|
22488
|
+
}, z.core.$strip>;
|
|
22489
|
+
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
22490
|
+
}, z.core.$strip>>;
|
|
22491
|
+
}, z.core.$strip>;
|
|
22492
|
+
export declare const listSubscriptionAddonsPathParams: z.ZodObject<{
|
|
22493
|
+
subscriptionId: z.ZodString;
|
|
22494
|
+
}, z.core.$strip>;
|
|
22495
|
+
export declare const listSubscriptionAddonsQueryParams: z.ZodObject<{
|
|
22496
|
+
page: z.ZodOptional<z.ZodObject<{
|
|
22497
|
+
size: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
22498
|
+
number: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
22499
|
+
}, z.core.$strip>>;
|
|
22500
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
22501
|
+
by: z.ZodString;
|
|
22502
|
+
order: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"asc">, z.ZodLiteral<"desc">]>>>;
|
|
22503
|
+
}, z.core.$strip>>;
|
|
22504
|
+
}, z.core.$strip>;
|
|
22505
|
+
export declare const listSubscriptionAddonsResponse: z.ZodObject<{
|
|
22506
|
+
data: z.ZodArray<z.ZodObject<{
|
|
22507
|
+
id: z.ZodString;
|
|
22508
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22509
|
+
createdAt: z.ZodDate;
|
|
22510
|
+
updatedAt: z.ZodDate;
|
|
22511
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
22512
|
+
name: z.ZodString;
|
|
22513
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22514
|
+
addon: z.ZodObject<{
|
|
22515
|
+
id: z.ZodString;
|
|
22516
|
+
}, z.core.$strip>;
|
|
22517
|
+
quantity: z.ZodNumber;
|
|
22518
|
+
quantityAt: z.ZodDate;
|
|
22519
|
+
activeFrom: z.ZodDate;
|
|
22520
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
22521
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
22522
|
+
activeFrom: z.ZodDate;
|
|
22523
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
22524
|
+
quantity: z.ZodNumber;
|
|
22525
|
+
}, z.core.$strip>>;
|
|
22526
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
21325
22527
|
rateCard: z.ZodObject<{
|
|
21326
22528
|
name: z.ZodString;
|
|
21327
22529
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -29114,6 +30316,18 @@ export declare const subscriptionEditTimingEnumWire: z.ZodEnum<{
|
|
|
29114
30316
|
immediate: "immediate";
|
|
29115
30317
|
next_billing_cycle: "next_billing_cycle";
|
|
29116
30318
|
}>;
|
|
30319
|
+
export declare const subscriptionEditRemoveItemWire: z.ZodObject<{
|
|
30320
|
+
type: z.ZodLiteral<"remove_item">;
|
|
30321
|
+
phase_key: z.ZodString;
|
|
30322
|
+
item_key: z.ZodString;
|
|
30323
|
+
}, z.core.$strict>;
|
|
30324
|
+
export declare const subscriptionRemovePhaseShiftingWire: z.ZodEnum<{
|
|
30325
|
+
next: "next";
|
|
30326
|
+
prev: "prev";
|
|
30327
|
+
}>;
|
|
30328
|
+
export declare const subscriptionEditUnscheduleEditWire: z.ZodObject<{
|
|
30329
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
30330
|
+
}, z.core.$strict>;
|
|
29117
30331
|
export declare const appTypeWire: z.ZodEnum<{
|
|
29118
30332
|
external_invoicing: "external_invoicing";
|
|
29119
30333
|
sandbox: "sandbox";
|
|
@@ -29318,6 +30532,14 @@ export declare const featureUnitCostTypeWire: z.ZodEnum<{
|
|
|
29318
30532
|
llm: "llm";
|
|
29319
30533
|
manual: "manual";
|
|
29320
30534
|
}>;
|
|
30535
|
+
export declare const subscriptionEditOperationTypeWire: z.ZodEnum<{
|
|
30536
|
+
add_item: "add_item";
|
|
30537
|
+
add_phase: "add_phase";
|
|
30538
|
+
remove_item: "remove_item";
|
|
30539
|
+
remove_phase: "remove_phase";
|
|
30540
|
+
stretch_phase: "stretch_phase";
|
|
30541
|
+
unschedule_edit: "unschedule_edit";
|
|
30542
|
+
}>;
|
|
29321
30543
|
export declare const systemAccountAccessTokenWire: z.ZodObject<{
|
|
29322
30544
|
type: z.ZodLiteral<"http">;
|
|
29323
30545
|
scheme: z.ZodLiteral<"Bearer">;
|
|
@@ -30104,6 +31326,18 @@ export declare const rateCardMeteredEntitlementWire: z.ZodObject<{
|
|
|
30104
31326
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
30105
31327
|
usage_period: z.ZodOptional<z.ZodString>;
|
|
30106
31328
|
}, z.core.$strict>;
|
|
31329
|
+
export declare const subscriptionPhaseCreateWire: z.ZodObject<{
|
|
31330
|
+
key: z.ZodString;
|
|
31331
|
+
name: z.ZodString;
|
|
31332
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31333
|
+
start_after: z.ZodNullable<z.ZodString>;
|
|
31334
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
31335
|
+
}, z.core.$strict>;
|
|
31336
|
+
export declare const subscriptionEditStretchPhaseWire: z.ZodObject<{
|
|
31337
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
31338
|
+
phase_key: z.ZodString;
|
|
31339
|
+
extend_by: z.ZodString;
|
|
31340
|
+
}, z.core.$strict>;
|
|
30107
31341
|
export declare const recurringPeriodWire: z.ZodObject<{
|
|
30108
31342
|
anchor: z.ZodString;
|
|
30109
31343
|
interval: z.ZodString;
|
|
@@ -30222,27 +31456,6 @@ export declare const rateCardProrationConfigurationWire: z.ZodObject<{
|
|
|
30222
31456
|
prorate_prices: "prorate_prices";
|
|
30223
31457
|
}>;
|
|
30224
31458
|
}, z.core.$strict>;
|
|
30225
|
-
export declare const subscriptionCreateWire: z.ZodObject<{
|
|
30226
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30227
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
30228
|
-
credit_only: "credit_only";
|
|
30229
|
-
credit_then_invoice: "credit_then_invoice";
|
|
30230
|
-
}>>;
|
|
30231
|
-
customer: z.ZodObject<{
|
|
30232
|
-
id: z.ZodOptional<z.ZodString>;
|
|
30233
|
-
key: z.ZodOptional<z.ZodString>;
|
|
30234
|
-
}, z.core.$strict>;
|
|
30235
|
-
plan: z.ZodObject<{
|
|
30236
|
-
id: z.ZodOptional<z.ZodString>;
|
|
30237
|
-
key: z.ZodOptional<z.ZodString>;
|
|
30238
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
30239
|
-
}, z.core.$strict>;
|
|
30240
|
-
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
30241
|
-
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
30242
|
-
dynamic: "dynamic";
|
|
30243
|
-
pinned: "pinned";
|
|
30244
|
-
}>>;
|
|
30245
|
-
}, z.core.$strict>;
|
|
30246
31459
|
export declare const unitConfigWire: z.ZodObject<{
|
|
30247
31460
|
operation: z.ZodEnum<{
|
|
30248
31461
|
divide: "divide";
|
|
@@ -30307,6 +31520,14 @@ export declare const subscriptionEditTimingWire: z.ZodUnion<readonly [z.ZodEnum<
|
|
|
30307
31520
|
immediate: "immediate";
|
|
30308
31521
|
next_billing_cycle: "next_billing_cycle";
|
|
30309
31522
|
}>, z.ZodString]>;
|
|
31523
|
+
export declare const subscriptionEditRemovePhaseWire: z.ZodObject<{
|
|
31524
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
31525
|
+
phase_key: z.ZodString;
|
|
31526
|
+
shift: z.ZodEnum<{
|
|
31527
|
+
next: "next";
|
|
31528
|
+
prev: "prev";
|
|
31529
|
+
}>;
|
|
31530
|
+
}, z.core.$strict>;
|
|
30310
31531
|
export declare const taxCodeAppMappingWire: z.ZodObject<{
|
|
30311
31532
|
app_type: z.ZodEnum<{
|
|
30312
31533
|
external_invoicing: "external_invoicing";
|
|
@@ -31743,6 +32964,16 @@ export declare const rateCardEntitlementWire: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
31743
32964
|
}, z.core.$strict>, z.ZodObject<{
|
|
31744
32965
|
type: z.ZodLiteral<"boolean">;
|
|
31745
32966
|
}, z.core.$strict>], "type">;
|
|
32967
|
+
export declare const subscriptionEditAddPhaseWire: z.ZodObject<{
|
|
32968
|
+
type: z.ZodLiteral<"add_phase">;
|
|
32969
|
+
phase: z.ZodObject<{
|
|
32970
|
+
key: z.ZodString;
|
|
32971
|
+
name: z.ZodString;
|
|
32972
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32973
|
+
start_after: z.ZodNullable<z.ZodString>;
|
|
32974
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
32975
|
+
}, z.core.$strict>;
|
|
32976
|
+
}, z.core.$strict>;
|
|
31746
32977
|
export declare const workflowCollectionAlignmentAnchoredWire: z.ZodObject<{
|
|
31747
32978
|
type: z.ZodLiteral<"anchored">;
|
|
31748
32979
|
recurring_period: z.ZodObject<{
|
|
@@ -31791,31 +33022,6 @@ export declare const subscriptionCancelWire: z.ZodObject<{
|
|
|
31791
33022
|
next_billing_cycle: "next_billing_cycle";
|
|
31792
33023
|
}>, z.ZodString]>>;
|
|
31793
33024
|
}, z.core.$strict>;
|
|
31794
|
-
export declare const subscriptionChangeWire: z.ZodObject<{
|
|
31795
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31796
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
31797
|
-
credit_only: "credit_only";
|
|
31798
|
-
credit_then_invoice: "credit_then_invoice";
|
|
31799
|
-
}>>;
|
|
31800
|
-
customer: z.ZodObject<{
|
|
31801
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31802
|
-
key: z.ZodOptional<z.ZodString>;
|
|
31803
|
-
}, z.core.$strict>;
|
|
31804
|
-
plan: z.ZodObject<{
|
|
31805
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31806
|
-
key: z.ZodOptional<z.ZodString>;
|
|
31807
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
31808
|
-
}, z.core.$strict>;
|
|
31809
|
-
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
31810
|
-
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
31811
|
-
dynamic: "dynamic";
|
|
31812
|
-
pinned: "pinned";
|
|
31813
|
-
}>>;
|
|
31814
|
-
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
31815
|
-
immediate: "immediate";
|
|
31816
|
-
next_billing_cycle: "next_billing_cycle";
|
|
31817
|
-
}>, z.ZodString]>;
|
|
31818
|
-
}, z.core.$strict>;
|
|
31819
33025
|
export declare const createSubscriptionAddonRequestWire: z.ZodObject<{
|
|
31820
33026
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
31821
33027
|
addon: z.ZodObject<{
|
|
@@ -35698,6 +36904,197 @@ export declare const subscriptionItemWire: z.ZodObject<{
|
|
|
35698
36904
|
}, z.core.$strict>], "type">>;
|
|
35699
36905
|
}, z.core.$strict>;
|
|
35700
36906
|
}, z.core.$strict>;
|
|
36907
|
+
export declare const planPhaseWire: z.ZodObject<{
|
|
36908
|
+
name: z.ZodString;
|
|
36909
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36910
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36911
|
+
key: z.ZodString;
|
|
36912
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
36913
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
36914
|
+
name: z.ZodString;
|
|
36915
|
+
description: z.ZodOptional<z.ZodString>;
|
|
36916
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36917
|
+
key: z.ZodString;
|
|
36918
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
36919
|
+
id: z.ZodString;
|
|
36920
|
+
}, z.core.$strict>>;
|
|
36921
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
36922
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
36923
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36924
|
+
type: z.ZodLiteral<"free">;
|
|
36925
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36926
|
+
type: z.ZodLiteral<"flat">;
|
|
36927
|
+
amount: z.ZodString;
|
|
36928
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36929
|
+
type: z.ZodLiteral<"unit">;
|
|
36930
|
+
amount: z.ZodString;
|
|
36931
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36932
|
+
type: z.ZodLiteral<"graduated">;
|
|
36933
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
36934
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
36935
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
36936
|
+
type: z.ZodLiteral<"flat">;
|
|
36937
|
+
amount: z.ZodString;
|
|
36938
|
+
}, z.core.$strict>>;
|
|
36939
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
36940
|
+
type: z.ZodLiteral<"unit">;
|
|
36941
|
+
amount: z.ZodString;
|
|
36942
|
+
}, z.core.$strict>>;
|
|
36943
|
+
}, z.core.$strict>>;
|
|
36944
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36945
|
+
type: z.ZodLiteral<"volume">;
|
|
36946
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
36947
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
36948
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
36949
|
+
type: z.ZodLiteral<"flat">;
|
|
36950
|
+
amount: z.ZodString;
|
|
36951
|
+
}, z.core.$strict>>;
|
|
36952
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
36953
|
+
type: z.ZodLiteral<"unit">;
|
|
36954
|
+
amount: z.ZodString;
|
|
36955
|
+
}, z.core.$strict>>;
|
|
36956
|
+
}, z.core.$strict>>;
|
|
36957
|
+
}, z.core.$strict>], "type">;
|
|
36958
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
36959
|
+
operation: z.ZodEnum<{
|
|
36960
|
+
divide: "divide";
|
|
36961
|
+
multiply: "multiply";
|
|
36962
|
+
}>;
|
|
36963
|
+
conversion_factor: z.ZodString;
|
|
36964
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
36965
|
+
ceiling: "ceiling";
|
|
36966
|
+
floor: "floor";
|
|
36967
|
+
half_up: "half_up";
|
|
36968
|
+
none: "none";
|
|
36969
|
+
}>>;
|
|
36970
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
36971
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
36972
|
+
}, z.core.$strict>>;
|
|
36973
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
36974
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
36975
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
36976
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
36977
|
+
}, z.core.$strict>>;
|
|
36978
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
36979
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
36980
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
36981
|
+
}, z.core.$strict>>;
|
|
36982
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
36983
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
36984
|
+
exclusive: "exclusive";
|
|
36985
|
+
inclusive: "inclusive";
|
|
36986
|
+
}>>;
|
|
36987
|
+
code: z.ZodObject<{
|
|
36988
|
+
id: z.ZodString;
|
|
36989
|
+
}, z.core.$strict>;
|
|
36990
|
+
}, z.core.$strict>>;
|
|
36991
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36992
|
+
type: z.ZodLiteral<"metered">;
|
|
36993
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
36994
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
36995
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
36996
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
36997
|
+
type: z.ZodLiteral<"static">;
|
|
36998
|
+
config: z.ZodUnknown;
|
|
36999
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37000
|
+
type: z.ZodLiteral<"boolean">;
|
|
37001
|
+
}, z.core.$strict>], "type">>;
|
|
37002
|
+
}, z.core.$strict>>;
|
|
37003
|
+
}, z.core.$strict>;
|
|
37004
|
+
export declare const subscriptionEditAddItemWire: z.ZodObject<{
|
|
37005
|
+
type: z.ZodLiteral<"add_item">;
|
|
37006
|
+
phase_key: z.ZodString;
|
|
37007
|
+
rate_card: z.ZodObject<{
|
|
37008
|
+
name: z.ZodString;
|
|
37009
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37010
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37011
|
+
key: z.ZodString;
|
|
37012
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
37013
|
+
id: z.ZodString;
|
|
37014
|
+
}, z.core.$strict>>;
|
|
37015
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
37016
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
37017
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37018
|
+
type: z.ZodLiteral<"free">;
|
|
37019
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37020
|
+
type: z.ZodLiteral<"flat">;
|
|
37021
|
+
amount: z.ZodString;
|
|
37022
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37023
|
+
type: z.ZodLiteral<"unit">;
|
|
37024
|
+
amount: z.ZodString;
|
|
37025
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37026
|
+
type: z.ZodLiteral<"graduated">;
|
|
37027
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
37028
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
37029
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
37030
|
+
type: z.ZodLiteral<"flat">;
|
|
37031
|
+
amount: z.ZodString;
|
|
37032
|
+
}, z.core.$strict>>;
|
|
37033
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
37034
|
+
type: z.ZodLiteral<"unit">;
|
|
37035
|
+
amount: z.ZodString;
|
|
37036
|
+
}, z.core.$strict>>;
|
|
37037
|
+
}, z.core.$strict>>;
|
|
37038
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37039
|
+
type: z.ZodLiteral<"volume">;
|
|
37040
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
37041
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
37042
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
37043
|
+
type: z.ZodLiteral<"flat">;
|
|
37044
|
+
amount: z.ZodString;
|
|
37045
|
+
}, z.core.$strict>>;
|
|
37046
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
37047
|
+
type: z.ZodLiteral<"unit">;
|
|
37048
|
+
amount: z.ZodString;
|
|
37049
|
+
}, z.core.$strict>>;
|
|
37050
|
+
}, z.core.$strict>>;
|
|
37051
|
+
}, z.core.$strict>], "type">;
|
|
37052
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
37053
|
+
operation: z.ZodEnum<{
|
|
37054
|
+
divide: "divide";
|
|
37055
|
+
multiply: "multiply";
|
|
37056
|
+
}>;
|
|
37057
|
+
conversion_factor: z.ZodString;
|
|
37058
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
37059
|
+
ceiling: "ceiling";
|
|
37060
|
+
floor: "floor";
|
|
37061
|
+
half_up: "half_up";
|
|
37062
|
+
none: "none";
|
|
37063
|
+
}>>;
|
|
37064
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
37065
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
37066
|
+
}, z.core.$strict>>;
|
|
37067
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
37068
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
37069
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
37070
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
37071
|
+
}, z.core.$strict>>;
|
|
37072
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
37073
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
37074
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
37075
|
+
}, z.core.$strict>>;
|
|
37076
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
37077
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
37078
|
+
exclusive: "exclusive";
|
|
37079
|
+
inclusive: "inclusive";
|
|
37080
|
+
}>>;
|
|
37081
|
+
code: z.ZodObject<{
|
|
37082
|
+
id: z.ZodString;
|
|
37083
|
+
}, z.core.$strict>;
|
|
37084
|
+
}, z.core.$strict>>;
|
|
37085
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37086
|
+
type: z.ZodLiteral<"metered">;
|
|
37087
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
37088
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
37089
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
37090
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37091
|
+
type: z.ZodLiteral<"static">;
|
|
37092
|
+
config: z.ZodUnknown;
|
|
37093
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
37094
|
+
type: z.ZodLiteral<"boolean">;
|
|
37095
|
+
}, z.core.$strict>], "type">>;
|
|
37096
|
+
}, z.core.$strict>;
|
|
37097
|
+
}, z.core.$strict>;
|
|
35701
37098
|
export declare const subscriptionAddonRateCardWire: z.ZodObject<{
|
|
35702
37099
|
rate_card: z.ZodObject<{
|
|
35703
37100
|
name: z.ZodString;
|
|
@@ -35791,125 +37188,28 @@ export declare const subscriptionAddonRateCardWire: z.ZodObject<{
|
|
|
35791
37188
|
}, z.core.$strict>;
|
|
35792
37189
|
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
35793
37190
|
}, z.core.$strict>;
|
|
35794
|
-
export declare const
|
|
37191
|
+
export declare const addonWire: z.ZodObject<{
|
|
37192
|
+
id: z.ZodString;
|
|
35795
37193
|
name: z.ZodString;
|
|
35796
37194
|
description: z.ZodOptional<z.ZodString>;
|
|
35797
37195
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37196
|
+
created_at: z.ZodString;
|
|
37197
|
+
updated_at: z.ZodString;
|
|
37198
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
35798
37199
|
key: z.ZodString;
|
|
35799
|
-
|
|
35800
|
-
|
|
35801
|
-
|
|
35802
|
-
|
|
35803
|
-
|
|
35804
|
-
|
|
35805
|
-
|
|
35806
|
-
|
|
35807
|
-
|
|
35808
|
-
|
|
35809
|
-
|
|
35810
|
-
|
|
35811
|
-
|
|
35812
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35813
|
-
type: z.ZodLiteral<"flat">;
|
|
35814
|
-
amount: z.ZodString;
|
|
35815
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35816
|
-
type: z.ZodLiteral<"unit">;
|
|
35817
|
-
amount: z.ZodString;
|
|
35818
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35819
|
-
type: z.ZodLiteral<"graduated">;
|
|
35820
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
35821
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
35822
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
35823
|
-
type: z.ZodLiteral<"flat">;
|
|
35824
|
-
amount: z.ZodString;
|
|
35825
|
-
}, z.core.$strict>>;
|
|
35826
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
35827
|
-
type: z.ZodLiteral<"unit">;
|
|
35828
|
-
amount: z.ZodString;
|
|
35829
|
-
}, z.core.$strict>>;
|
|
35830
|
-
}, z.core.$strict>>;
|
|
35831
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35832
|
-
type: z.ZodLiteral<"volume">;
|
|
35833
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
35834
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
35835
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
35836
|
-
type: z.ZodLiteral<"flat">;
|
|
35837
|
-
amount: z.ZodString;
|
|
35838
|
-
}, z.core.$strict>>;
|
|
35839
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
35840
|
-
type: z.ZodLiteral<"unit">;
|
|
35841
|
-
amount: z.ZodString;
|
|
35842
|
-
}, z.core.$strict>>;
|
|
35843
|
-
}, z.core.$strict>>;
|
|
35844
|
-
}, z.core.$strict>], "type">;
|
|
35845
|
-
unit_config: z.ZodOptional<z.ZodObject<{
|
|
35846
|
-
operation: z.ZodEnum<{
|
|
35847
|
-
divide: "divide";
|
|
35848
|
-
multiply: "multiply";
|
|
35849
|
-
}>;
|
|
35850
|
-
conversion_factor: z.ZodString;
|
|
35851
|
-
rounding: z.ZodOptional<z.ZodEnum<{
|
|
35852
|
-
ceiling: "ceiling";
|
|
35853
|
-
floor: "floor";
|
|
35854
|
-
half_up: "half_up";
|
|
35855
|
-
none: "none";
|
|
35856
|
-
}>>;
|
|
35857
|
-
precision: z.ZodOptional<z.ZodNumber>;
|
|
35858
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
35859
|
-
}, z.core.$strict>>;
|
|
35860
|
-
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
35861
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
35862
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
35863
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
35864
|
-
}, z.core.$strict>>;
|
|
35865
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
35866
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
35867
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
35868
|
-
}, z.core.$strict>>;
|
|
35869
|
-
tax_config: z.ZodOptional<z.ZodObject<{
|
|
35870
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
35871
|
-
exclusive: "exclusive";
|
|
35872
|
-
inclusive: "inclusive";
|
|
35873
|
-
}>>;
|
|
35874
|
-
code: z.ZodObject<{
|
|
35875
|
-
id: z.ZodString;
|
|
35876
|
-
}, z.core.$strict>;
|
|
35877
|
-
}, z.core.$strict>>;
|
|
35878
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35879
|
-
type: z.ZodLiteral<"metered">;
|
|
35880
|
-
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
35881
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
35882
|
-
usage_period: z.ZodOptional<z.ZodString>;
|
|
35883
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35884
|
-
type: z.ZodLiteral<"static">;
|
|
35885
|
-
config: z.ZodUnknown;
|
|
35886
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35887
|
-
type: z.ZodLiteral<"boolean">;
|
|
35888
|
-
}, z.core.$strict>], "type">>;
|
|
35889
|
-
}, z.core.$strict>>;
|
|
35890
|
-
}, z.core.$strict>;
|
|
35891
|
-
export declare const addonWire: z.ZodObject<{
|
|
35892
|
-
id: z.ZodString;
|
|
35893
|
-
name: z.ZodString;
|
|
35894
|
-
description: z.ZodOptional<z.ZodString>;
|
|
35895
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35896
|
-
created_at: z.ZodString;
|
|
35897
|
-
updated_at: z.ZodString;
|
|
35898
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
35899
|
-
key: z.ZodString;
|
|
35900
|
-
version: z.ZodNumber;
|
|
35901
|
-
instance_type: z.ZodEnum<{
|
|
35902
|
-
multiple: "multiple";
|
|
35903
|
-
single: "single";
|
|
35904
|
-
}>;
|
|
35905
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
35906
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
35907
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
35908
|
-
status: z.ZodEnum<{
|
|
35909
|
-
active: "active";
|
|
35910
|
-
archived: "archived";
|
|
35911
|
-
draft: "draft";
|
|
35912
|
-
}>;
|
|
37200
|
+
version: z.ZodNumber;
|
|
37201
|
+
instance_type: z.ZodEnum<{
|
|
37202
|
+
multiple: "multiple";
|
|
37203
|
+
single: "single";
|
|
37204
|
+
}>;
|
|
37205
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
37206
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
37207
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
37208
|
+
status: z.ZodEnum<{
|
|
37209
|
+
active: "active";
|
|
37210
|
+
archived: "archived";
|
|
37211
|
+
draft: "draft";
|
|
37212
|
+
}>;
|
|
35913
37213
|
rate_cards: z.ZodArray<z.ZodObject<{
|
|
35914
37214
|
name: z.ZodString;
|
|
35915
37215
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -37247,28 +38547,139 @@ export declare const subscriptionPhaseWire: z.ZodObject<{
|
|
|
37247
38547
|
}, z.core.$strict>;
|
|
37248
38548
|
}, z.core.$strict>>;
|
|
37249
38549
|
}, z.core.$strict>;
|
|
37250
|
-
export declare const
|
|
38550
|
+
export declare const subscriptionCustomPlanWire: z.ZodObject<{
|
|
38551
|
+
name: z.ZodString;
|
|
38552
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38553
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38554
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
38555
|
+
billing_cadence: z.ZodString;
|
|
38556
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
38557
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
38558
|
+
name: z.ZodString;
|
|
38559
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38560
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38561
|
+
key: z.ZodString;
|
|
38562
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
38563
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
38564
|
+
name: z.ZodString;
|
|
38565
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38566
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38567
|
+
key: z.ZodString;
|
|
38568
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
38569
|
+
id: z.ZodString;
|
|
38570
|
+
}, z.core.$strict>>;
|
|
38571
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
38572
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
38573
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38574
|
+
type: z.ZodLiteral<"free">;
|
|
38575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38576
|
+
type: z.ZodLiteral<"flat">;
|
|
38577
|
+
amount: z.ZodString;
|
|
38578
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38579
|
+
type: z.ZodLiteral<"unit">;
|
|
38580
|
+
amount: z.ZodString;
|
|
38581
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38582
|
+
type: z.ZodLiteral<"graduated">;
|
|
38583
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
38584
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
38585
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
38586
|
+
type: z.ZodLiteral<"flat">;
|
|
38587
|
+
amount: z.ZodString;
|
|
38588
|
+
}, z.core.$strict>>;
|
|
38589
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
38590
|
+
type: z.ZodLiteral<"unit">;
|
|
38591
|
+
amount: z.ZodString;
|
|
38592
|
+
}, z.core.$strict>>;
|
|
38593
|
+
}, z.core.$strict>>;
|
|
38594
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38595
|
+
type: z.ZodLiteral<"volume">;
|
|
38596
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
38597
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
38598
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
38599
|
+
type: z.ZodLiteral<"flat">;
|
|
38600
|
+
amount: z.ZodString;
|
|
38601
|
+
}, z.core.$strict>>;
|
|
38602
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
38603
|
+
type: z.ZodLiteral<"unit">;
|
|
38604
|
+
amount: z.ZodString;
|
|
38605
|
+
}, z.core.$strict>>;
|
|
38606
|
+
}, z.core.$strict>>;
|
|
38607
|
+
}, z.core.$strict>], "type">;
|
|
38608
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
38609
|
+
operation: z.ZodEnum<{
|
|
38610
|
+
divide: "divide";
|
|
38611
|
+
multiply: "multiply";
|
|
38612
|
+
}>;
|
|
38613
|
+
conversion_factor: z.ZodString;
|
|
38614
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
38615
|
+
ceiling: "ceiling";
|
|
38616
|
+
floor: "floor";
|
|
38617
|
+
half_up: "half_up";
|
|
38618
|
+
none: "none";
|
|
38619
|
+
}>>;
|
|
38620
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
38621
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
38622
|
+
}, z.core.$strict>>;
|
|
38623
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
38624
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
38625
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
38626
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
38627
|
+
}, z.core.$strict>>;
|
|
38628
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
38629
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
38630
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
38631
|
+
}, z.core.$strict>>;
|
|
38632
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
38633
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
38634
|
+
exclusive: "exclusive";
|
|
38635
|
+
inclusive: "inclusive";
|
|
38636
|
+
}>>;
|
|
38637
|
+
code: z.ZodObject<{
|
|
38638
|
+
id: z.ZodString;
|
|
38639
|
+
}, z.core.$strict>;
|
|
38640
|
+
}, z.core.$strict>>;
|
|
38641
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38642
|
+
type: z.ZodLiteral<"metered">;
|
|
38643
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
38644
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
38645
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
38646
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38647
|
+
type: z.ZodLiteral<"static">;
|
|
38648
|
+
config: z.ZodUnknown;
|
|
38649
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38650
|
+
type: z.ZodLiteral<"boolean">;
|
|
38651
|
+
}, z.core.$strict>], "type">>;
|
|
38652
|
+
}, z.core.$strict>>;
|
|
38653
|
+
}, z.core.$strict>>;
|
|
38654
|
+
}, z.core.$strict>;
|
|
38655
|
+
export declare const planWire: z.ZodObject<{
|
|
37251
38656
|
id: z.ZodString;
|
|
38657
|
+
name: z.ZodString;
|
|
38658
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37252
38659
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37253
38660
|
created_at: z.ZodString;
|
|
37254
38661
|
updated_at: z.ZodString;
|
|
37255
38662
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
37256
|
-
|
|
37257
|
-
|
|
37258
|
-
|
|
37259
|
-
|
|
37260
|
-
|
|
37261
|
-
|
|
37262
|
-
|
|
37263
|
-
|
|
37264
|
-
|
|
37265
|
-
|
|
37266
|
-
|
|
37267
|
-
|
|
37268
|
-
|
|
37269
|
-
|
|
37270
|
-
|
|
37271
|
-
|
|
38663
|
+
key: z.ZodString;
|
|
38664
|
+
version: z.ZodNumber;
|
|
38665
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
38666
|
+
billing_cadence: z.ZodString;
|
|
38667
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
38668
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
38669
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
38670
|
+
status: z.ZodEnum<{
|
|
38671
|
+
active: "active";
|
|
38672
|
+
archived: "archived";
|
|
38673
|
+
draft: "draft";
|
|
38674
|
+
scheduled: "scheduled";
|
|
38675
|
+
}>;
|
|
38676
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
38677
|
+
name: z.ZodString;
|
|
38678
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38679
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38680
|
+
key: z.ZodString;
|
|
38681
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
38682
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
37272
38683
|
name: z.ZodString;
|
|
37273
38684
|
description: z.ZodOptional<z.ZodString>;
|
|
37274
38685
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -37357,31 +38768,27 @@ export declare const subscriptionAddonWire: z.ZodObject<{
|
|
|
37357
38768
|
}, z.core.$strict>, z.ZodObject<{
|
|
37358
38769
|
type: z.ZodLiteral<"boolean">;
|
|
37359
38770
|
}, z.core.$strict>], "type">>;
|
|
37360
|
-
}, z.core.$strict
|
|
37361
|
-
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
38771
|
+
}, z.core.$strict>>;
|
|
37362
38772
|
}, z.core.$strict>>;
|
|
38773
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
38774
|
+
credit_only: "credit_only";
|
|
38775
|
+
credit_then_invoice: "credit_then_invoice";
|
|
38776
|
+
}>>;
|
|
38777
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38778
|
+
code: z.ZodString;
|
|
38779
|
+
message: z.ZodString;
|
|
38780
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38781
|
+
field: z.ZodString;
|
|
38782
|
+
}, z.core.$strict>>>;
|
|
37363
38783
|
}, z.core.$strict>;
|
|
37364
|
-
export declare const
|
|
37365
|
-
id: z.ZodString;
|
|
38784
|
+
export declare const createPlanRequestWire: z.ZodObject<{
|
|
37366
38785
|
name: z.ZodString;
|
|
37367
38786
|
description: z.ZodOptional<z.ZodString>;
|
|
37368
38787
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37369
|
-
created_at: z.ZodString;
|
|
37370
|
-
updated_at: z.ZodString;
|
|
37371
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
37372
38788
|
key: z.ZodString;
|
|
37373
|
-
version: z.ZodNumber;
|
|
37374
38789
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
37375
38790
|
billing_cadence: z.ZodString;
|
|
37376
38791
|
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
37377
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
37378
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
37379
|
-
status: z.ZodEnum<{
|
|
37380
|
-
active: "active";
|
|
37381
|
-
archived: "archived";
|
|
37382
|
-
draft: "draft";
|
|
37383
|
-
scheduled: "scheduled";
|
|
37384
|
-
}>;
|
|
37385
38792
|
phases: z.ZodArray<z.ZodObject<{
|
|
37386
38793
|
name: z.ZodString;
|
|
37387
38794
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -37479,24 +38886,11 @@ export declare const planWire: z.ZodObject<{
|
|
|
37479
38886
|
}, z.core.$strict>], "type">>;
|
|
37480
38887
|
}, z.core.$strict>>;
|
|
37481
38888
|
}, z.core.$strict>>;
|
|
37482
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
37483
|
-
credit_only: "credit_only";
|
|
37484
|
-
credit_then_invoice: "credit_then_invoice";
|
|
37485
|
-
}>>;
|
|
37486
|
-
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37487
|
-
code: z.ZodString;
|
|
37488
|
-
message: z.ZodString;
|
|
37489
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37490
|
-
field: z.ZodString;
|
|
37491
|
-
}, z.core.$strict>>>;
|
|
37492
38889
|
}, z.core.$strict>;
|
|
37493
|
-
export declare const
|
|
38890
|
+
export declare const upsertPlanRequestWire: z.ZodObject<{
|
|
37494
38891
|
name: z.ZodString;
|
|
37495
38892
|
description: z.ZodOptional<z.ZodString>;
|
|
37496
38893
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37497
|
-
key: z.ZodString;
|
|
37498
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
37499
|
-
billing_cadence: z.ZodString;
|
|
37500
38894
|
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
37501
38895
|
phases: z.ZodArray<z.ZodObject<{
|
|
37502
38896
|
name: z.ZodString;
|
|
@@ -37596,18 +38990,148 @@ export declare const createPlanRequestWire: z.ZodObject<{
|
|
|
37596
38990
|
}, z.core.$strict>>;
|
|
37597
38991
|
}, z.core.$strict>>;
|
|
37598
38992
|
}, z.core.$strict>;
|
|
37599
|
-
export declare const
|
|
37600
|
-
|
|
37601
|
-
|
|
37602
|
-
|
|
37603
|
-
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
37604
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
38993
|
+
export declare const subscriptionEditOperationWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38994
|
+
type: z.ZodLiteral<"add_item">;
|
|
38995
|
+
phase_key: z.ZodString;
|
|
38996
|
+
rate_card: z.ZodObject<{
|
|
37605
38997
|
name: z.ZodString;
|
|
37606
38998
|
description: z.ZodOptional<z.ZodString>;
|
|
37607
38999
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
37608
39000
|
key: z.ZodString;
|
|
39001
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
39002
|
+
id: z.ZodString;
|
|
39003
|
+
}, z.core.$strict>>;
|
|
39004
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
39005
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
39006
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39007
|
+
type: z.ZodLiteral<"free">;
|
|
39008
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39009
|
+
type: z.ZodLiteral<"flat">;
|
|
39010
|
+
amount: z.ZodString;
|
|
39011
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39012
|
+
type: z.ZodLiteral<"unit">;
|
|
39013
|
+
amount: z.ZodString;
|
|
39014
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39015
|
+
type: z.ZodLiteral<"graduated">;
|
|
39016
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
39017
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
39018
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
39019
|
+
type: z.ZodLiteral<"flat">;
|
|
39020
|
+
amount: z.ZodString;
|
|
39021
|
+
}, z.core.$strict>>;
|
|
39022
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
39023
|
+
type: z.ZodLiteral<"unit">;
|
|
39024
|
+
amount: z.ZodString;
|
|
39025
|
+
}, z.core.$strict>>;
|
|
39026
|
+
}, z.core.$strict>>;
|
|
39027
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39028
|
+
type: z.ZodLiteral<"volume">;
|
|
39029
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
39030
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
39031
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
39032
|
+
type: z.ZodLiteral<"flat">;
|
|
39033
|
+
amount: z.ZodString;
|
|
39034
|
+
}, z.core.$strict>>;
|
|
39035
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
39036
|
+
type: z.ZodLiteral<"unit">;
|
|
39037
|
+
amount: z.ZodString;
|
|
39038
|
+
}, z.core.$strict>>;
|
|
39039
|
+
}, z.core.$strict>>;
|
|
39040
|
+
}, z.core.$strict>], "type">;
|
|
39041
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
39042
|
+
operation: z.ZodEnum<{
|
|
39043
|
+
divide: "divide";
|
|
39044
|
+
multiply: "multiply";
|
|
39045
|
+
}>;
|
|
39046
|
+
conversion_factor: z.ZodString;
|
|
39047
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
39048
|
+
ceiling: "ceiling";
|
|
39049
|
+
floor: "floor";
|
|
39050
|
+
half_up: "half_up";
|
|
39051
|
+
none: "none";
|
|
39052
|
+
}>>;
|
|
39053
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
39054
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
39055
|
+
}, z.core.$strict>>;
|
|
39056
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
39057
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
39058
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
39059
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
39060
|
+
}, z.core.$strict>>;
|
|
39061
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
39062
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
39063
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
39064
|
+
}, z.core.$strict>>;
|
|
39065
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
39066
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
39067
|
+
exclusive: "exclusive";
|
|
39068
|
+
inclusive: "inclusive";
|
|
39069
|
+
}>>;
|
|
39070
|
+
code: z.ZodObject<{
|
|
39071
|
+
id: z.ZodString;
|
|
39072
|
+
}, z.core.$strict>;
|
|
39073
|
+
}, z.core.$strict>>;
|
|
39074
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39075
|
+
type: z.ZodLiteral<"metered">;
|
|
39076
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
39077
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
39078
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
39079
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39080
|
+
type: z.ZodLiteral<"static">;
|
|
39081
|
+
config: z.ZodUnknown;
|
|
39082
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39083
|
+
type: z.ZodLiteral<"boolean">;
|
|
39084
|
+
}, z.core.$strict>], "type">>;
|
|
39085
|
+
}, z.core.$strict>;
|
|
39086
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39087
|
+
type: z.ZodLiteral<"remove_item">;
|
|
39088
|
+
phase_key: z.ZodString;
|
|
39089
|
+
item_key: z.ZodString;
|
|
39090
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39091
|
+
type: z.ZodLiteral<"add_phase">;
|
|
39092
|
+
phase: z.ZodObject<{
|
|
39093
|
+
key: z.ZodString;
|
|
39094
|
+
name: z.ZodString;
|
|
39095
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39096
|
+
start_after: z.ZodNullable<z.ZodString>;
|
|
37609
39097
|
duration: z.ZodOptional<z.ZodString>;
|
|
37610
|
-
|
|
39098
|
+
}, z.core.$strict>;
|
|
39099
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39100
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
39101
|
+
phase_key: z.ZodString;
|
|
39102
|
+
shift: z.ZodEnum<{
|
|
39103
|
+
next: "next";
|
|
39104
|
+
prev: "prev";
|
|
39105
|
+
}>;
|
|
39106
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39107
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
39108
|
+
phase_key: z.ZodString;
|
|
39109
|
+
extend_by: z.ZodString;
|
|
39110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39111
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
39112
|
+
}, z.core.$strict>], "type">;
|
|
39113
|
+
export declare const subscriptionAddonWire: z.ZodObject<{
|
|
39114
|
+
id: z.ZodString;
|
|
39115
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39116
|
+
created_at: z.ZodString;
|
|
39117
|
+
updated_at: z.ZodString;
|
|
39118
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
39119
|
+
name: z.ZodString;
|
|
39120
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39121
|
+
addon: z.ZodObject<{
|
|
39122
|
+
id: z.ZodString;
|
|
39123
|
+
}, z.core.$strict>;
|
|
39124
|
+
quantity: z.ZodNumber;
|
|
39125
|
+
quantity_at: z.ZodString;
|
|
39126
|
+
active_from: z.ZodString;
|
|
39127
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
39128
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
39129
|
+
active_from: z.ZodString;
|
|
39130
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
39131
|
+
quantity: z.ZodNumber;
|
|
39132
|
+
}, z.core.$strict>>;
|
|
39133
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
39134
|
+
rate_card: z.ZodObject<{
|
|
37611
39135
|
name: z.ZodString;
|
|
37612
39136
|
description: z.ZodOptional<z.ZodString>;
|
|
37613
39137
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -37696,7 +39220,8 @@ export declare const upsertPlanRequestWire: z.ZodObject<{
|
|
|
37696
39220
|
}, z.core.$strict>, z.ZodObject<{
|
|
37697
39221
|
type: z.ZodLiteral<"boolean">;
|
|
37698
39222
|
}, z.core.$strict>], "type">>;
|
|
37699
|
-
}, z.core.$strict
|
|
39223
|
+
}, z.core.$strict>;
|
|
39224
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
37700
39225
|
}, z.core.$strict>>;
|
|
37701
39226
|
}, z.core.$strict>;
|
|
37702
39227
|
export declare const addonPagePaginatedResponseWire: z.ZodObject<{
|
|
@@ -38356,29 +39881,35 @@ export declare const subscriptionWire: z.ZodObject<{
|
|
|
38356
39881
|
}, z.core.$strict>>;
|
|
38357
39882
|
}, z.core.$strict>>;
|
|
38358
39883
|
}, z.core.$strict>;
|
|
38359
|
-
export declare const
|
|
38360
|
-
|
|
38361
|
-
|
|
38362
|
-
|
|
38363
|
-
|
|
38364
|
-
|
|
38365
|
-
|
|
39884
|
+
export declare const subscriptionCreateWire: z.ZodObject<{
|
|
39885
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39886
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
39887
|
+
credit_only: "credit_only";
|
|
39888
|
+
credit_then_invoice: "credit_then_invoice";
|
|
39889
|
+
}>>;
|
|
39890
|
+
customer: z.ZodObject<{
|
|
39891
|
+
id: z.ZodOptional<z.ZodString>;
|
|
39892
|
+
key: z.ZodOptional<z.ZodString>;
|
|
39893
|
+
}, z.core.$strict>;
|
|
39894
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
39895
|
+
id: z.ZodOptional<z.ZodString>;
|
|
39896
|
+
key: z.ZodOptional<z.ZodString>;
|
|
39897
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
39898
|
+
}, z.core.$strict>>;
|
|
39899
|
+
custom_plan: z.ZodOptional<z.ZodObject<{
|
|
38366
39900
|
name: z.ZodString;
|
|
38367
39901
|
description: z.ZodOptional<z.ZodString>;
|
|
38368
|
-
|
|
38369
|
-
|
|
38370
|
-
|
|
38371
|
-
|
|
38372
|
-
|
|
38373
|
-
|
|
38374
|
-
|
|
38375
|
-
|
|
38376
|
-
|
|
38377
|
-
|
|
38378
|
-
|
|
38379
|
-
}, z.core.$strict>>;
|
|
38380
|
-
rate_cards: z.ZodArray<z.ZodObject<{
|
|
38381
|
-
rate_card: z.ZodObject<{
|
|
39902
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39903
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
39904
|
+
billing_cadence: z.ZodString;
|
|
39905
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
39906
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
39907
|
+
name: z.ZodString;
|
|
39908
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39909
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39910
|
+
key: z.ZodString;
|
|
39911
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
39912
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
38382
39913
|
name: z.ZodString;
|
|
38383
39914
|
description: z.ZodOptional<z.ZodString>;
|
|
38384
39915
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -38467,40 +39998,167 @@ export declare const subscriptionAddonPagePaginatedResponseWire: z.ZodObject<{
|
|
|
38467
39998
|
}, z.core.$strict>, z.ZodObject<{
|
|
38468
39999
|
type: z.ZodLiteral<"boolean">;
|
|
38469
40000
|
}, z.core.$strict>], "type">>;
|
|
38470
|
-
}, z.core.$strict
|
|
38471
|
-
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
40001
|
+
}, z.core.$strict>>;
|
|
38472
40002
|
}, z.core.$strict>>;
|
|
38473
40003
|
}, z.core.$strict>>;
|
|
38474
|
-
|
|
38475
|
-
|
|
38476
|
-
|
|
38477
|
-
|
|
38478
|
-
|
|
38479
|
-
}, z.core.$strict>;
|
|
38480
|
-
}, z.core.$strict>;
|
|
40004
|
+
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
40005
|
+
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
40006
|
+
dynamic: "dynamic";
|
|
40007
|
+
pinned: "pinned";
|
|
40008
|
+
}>>;
|
|
38481
40009
|
}, z.core.$strict>;
|
|
38482
|
-
export declare const
|
|
38483
|
-
|
|
38484
|
-
|
|
40010
|
+
export declare const subscriptionChangeWire: z.ZodObject<{
|
|
40011
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40012
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
40013
|
+
credit_only: "credit_only";
|
|
40014
|
+
credit_then_invoice: "credit_then_invoice";
|
|
40015
|
+
}>>;
|
|
40016
|
+
customer: z.ZodObject<{
|
|
40017
|
+
id: z.ZodOptional<z.ZodString>;
|
|
40018
|
+
key: z.ZodOptional<z.ZodString>;
|
|
40019
|
+
}, z.core.$strict>;
|
|
40020
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
40021
|
+
id: z.ZodOptional<z.ZodString>;
|
|
40022
|
+
key: z.ZodOptional<z.ZodString>;
|
|
40023
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
40024
|
+
}, z.core.$strict>>;
|
|
40025
|
+
custom_plan: z.ZodOptional<z.ZodObject<{
|
|
38485
40026
|
name: z.ZodString;
|
|
38486
40027
|
description: z.ZodOptional<z.ZodString>;
|
|
38487
40028
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38488
|
-
created_at: z.ZodString;
|
|
38489
|
-
updated_at: z.ZodString;
|
|
38490
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
38491
|
-
key: z.ZodString;
|
|
38492
|
-
version: z.ZodNumber;
|
|
38493
40029
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
38494
40030
|
billing_cadence: z.ZodString;
|
|
38495
40031
|
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
38496
|
-
|
|
38497
|
-
|
|
38498
|
-
|
|
38499
|
-
|
|
38500
|
-
|
|
38501
|
-
|
|
38502
|
-
|
|
38503
|
-
|
|
40032
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
40033
|
+
name: z.ZodString;
|
|
40034
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40035
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40036
|
+
key: z.ZodString;
|
|
40037
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
40038
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
40039
|
+
name: z.ZodString;
|
|
40040
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40041
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40042
|
+
key: z.ZodString;
|
|
40043
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
40044
|
+
id: z.ZodString;
|
|
40045
|
+
}, z.core.$strict>>;
|
|
40046
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
40047
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
40048
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40049
|
+
type: z.ZodLiteral<"free">;
|
|
40050
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40051
|
+
type: z.ZodLiteral<"flat">;
|
|
40052
|
+
amount: z.ZodString;
|
|
40053
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40054
|
+
type: z.ZodLiteral<"unit">;
|
|
40055
|
+
amount: z.ZodString;
|
|
40056
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40057
|
+
type: z.ZodLiteral<"graduated">;
|
|
40058
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40059
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40060
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40061
|
+
type: z.ZodLiteral<"flat">;
|
|
40062
|
+
amount: z.ZodString;
|
|
40063
|
+
}, z.core.$strict>>;
|
|
40064
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40065
|
+
type: z.ZodLiteral<"unit">;
|
|
40066
|
+
amount: z.ZodString;
|
|
40067
|
+
}, z.core.$strict>>;
|
|
40068
|
+
}, z.core.$strict>>;
|
|
40069
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40070
|
+
type: z.ZodLiteral<"volume">;
|
|
40071
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40072
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40073
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40074
|
+
type: z.ZodLiteral<"flat">;
|
|
40075
|
+
amount: z.ZodString;
|
|
40076
|
+
}, z.core.$strict>>;
|
|
40077
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40078
|
+
type: z.ZodLiteral<"unit">;
|
|
40079
|
+
amount: z.ZodString;
|
|
40080
|
+
}, z.core.$strict>>;
|
|
40081
|
+
}, z.core.$strict>>;
|
|
40082
|
+
}, z.core.$strict>], "type">;
|
|
40083
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
40084
|
+
operation: z.ZodEnum<{
|
|
40085
|
+
divide: "divide";
|
|
40086
|
+
multiply: "multiply";
|
|
40087
|
+
}>;
|
|
40088
|
+
conversion_factor: z.ZodString;
|
|
40089
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
40090
|
+
ceiling: "ceiling";
|
|
40091
|
+
floor: "floor";
|
|
40092
|
+
half_up: "half_up";
|
|
40093
|
+
none: "none";
|
|
40094
|
+
}>>;
|
|
40095
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
40096
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
40097
|
+
}, z.core.$strict>>;
|
|
40098
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
40099
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
40100
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
40101
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
40102
|
+
}, z.core.$strict>>;
|
|
40103
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
40104
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
40105
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
40106
|
+
}, z.core.$strict>>;
|
|
40107
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
40108
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
40109
|
+
exclusive: "exclusive";
|
|
40110
|
+
inclusive: "inclusive";
|
|
40111
|
+
}>>;
|
|
40112
|
+
code: z.ZodObject<{
|
|
40113
|
+
id: z.ZodString;
|
|
40114
|
+
}, z.core.$strict>;
|
|
40115
|
+
}, z.core.$strict>>;
|
|
40116
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40117
|
+
type: z.ZodLiteral<"metered">;
|
|
40118
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
40119
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
40120
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
40121
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40122
|
+
type: z.ZodLiteral<"static">;
|
|
40123
|
+
config: z.ZodUnknown;
|
|
40124
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40125
|
+
type: z.ZodLiteral<"boolean">;
|
|
40126
|
+
}, z.core.$strict>], "type">>;
|
|
40127
|
+
}, z.core.$strict>>;
|
|
40128
|
+
}, z.core.$strict>>;
|
|
40129
|
+
}, z.core.$strict>>;
|
|
40130
|
+
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
40131
|
+
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
40132
|
+
dynamic: "dynamic";
|
|
40133
|
+
pinned: "pinned";
|
|
40134
|
+
}>>;
|
|
40135
|
+
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
40136
|
+
immediate: "immediate";
|
|
40137
|
+
next_billing_cycle: "next_billing_cycle";
|
|
40138
|
+
}>, z.ZodString]>;
|
|
40139
|
+
}, z.core.$strict>;
|
|
40140
|
+
export declare const planPagePaginatedResponseWire: z.ZodObject<{
|
|
40141
|
+
data: z.ZodArray<z.ZodObject<{
|
|
40142
|
+
id: z.ZodString;
|
|
40143
|
+
name: z.ZodString;
|
|
40144
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40145
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40146
|
+
created_at: z.ZodString;
|
|
40147
|
+
updated_at: z.ZodString;
|
|
40148
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
40149
|
+
key: z.ZodString;
|
|
40150
|
+
version: z.ZodNumber;
|
|
40151
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
40152
|
+
billing_cadence: z.ZodString;
|
|
40153
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
40154
|
+
effective_from: z.ZodOptional<z.ZodString>;
|
|
40155
|
+
effective_to: z.ZodOptional<z.ZodString>;
|
|
40156
|
+
status: z.ZodEnum<{
|
|
40157
|
+
active: "active";
|
|
40158
|
+
archived: "archived";
|
|
40159
|
+
draft: "draft";
|
|
40160
|
+
scheduled: "scheduled";
|
|
40161
|
+
}>;
|
|
38504
40162
|
phases: z.ZodArray<z.ZodObject<{
|
|
38505
40163
|
name: z.ZodString;
|
|
38506
40164
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -38617,6 +40275,255 @@ export declare const planPagePaginatedResponseWire: z.ZodObject<{
|
|
|
38617
40275
|
}, z.core.$strict>;
|
|
38618
40276
|
}, z.core.$strict>;
|
|
38619
40277
|
}, z.core.$strict>;
|
|
40278
|
+
export declare const subscriptionEditWire: z.ZodObject<{
|
|
40279
|
+
customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40280
|
+
type: z.ZodLiteral<"add_item">;
|
|
40281
|
+
phase_key: z.ZodString;
|
|
40282
|
+
rate_card: z.ZodObject<{
|
|
40283
|
+
name: z.ZodString;
|
|
40284
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40285
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40286
|
+
key: z.ZodString;
|
|
40287
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
40288
|
+
id: z.ZodString;
|
|
40289
|
+
}, z.core.$strict>>;
|
|
40290
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
40291
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
40292
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40293
|
+
type: z.ZodLiteral<"free">;
|
|
40294
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40295
|
+
type: z.ZodLiteral<"flat">;
|
|
40296
|
+
amount: z.ZodString;
|
|
40297
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40298
|
+
type: z.ZodLiteral<"unit">;
|
|
40299
|
+
amount: z.ZodString;
|
|
40300
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40301
|
+
type: z.ZodLiteral<"graduated">;
|
|
40302
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40303
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40304
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40305
|
+
type: z.ZodLiteral<"flat">;
|
|
40306
|
+
amount: z.ZodString;
|
|
40307
|
+
}, z.core.$strict>>;
|
|
40308
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40309
|
+
type: z.ZodLiteral<"unit">;
|
|
40310
|
+
amount: z.ZodString;
|
|
40311
|
+
}, z.core.$strict>>;
|
|
40312
|
+
}, z.core.$strict>>;
|
|
40313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40314
|
+
type: z.ZodLiteral<"volume">;
|
|
40315
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40316
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40317
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40318
|
+
type: z.ZodLiteral<"flat">;
|
|
40319
|
+
amount: z.ZodString;
|
|
40320
|
+
}, z.core.$strict>>;
|
|
40321
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40322
|
+
type: z.ZodLiteral<"unit">;
|
|
40323
|
+
amount: z.ZodString;
|
|
40324
|
+
}, z.core.$strict>>;
|
|
40325
|
+
}, z.core.$strict>>;
|
|
40326
|
+
}, z.core.$strict>], "type">;
|
|
40327
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
40328
|
+
operation: z.ZodEnum<{
|
|
40329
|
+
divide: "divide";
|
|
40330
|
+
multiply: "multiply";
|
|
40331
|
+
}>;
|
|
40332
|
+
conversion_factor: z.ZodString;
|
|
40333
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
40334
|
+
ceiling: "ceiling";
|
|
40335
|
+
floor: "floor";
|
|
40336
|
+
half_up: "half_up";
|
|
40337
|
+
none: "none";
|
|
40338
|
+
}>>;
|
|
40339
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
40340
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
40341
|
+
}, z.core.$strict>>;
|
|
40342
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
40343
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
40344
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
40345
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
40346
|
+
}, z.core.$strict>>;
|
|
40347
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
40348
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
40349
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
40350
|
+
}, z.core.$strict>>;
|
|
40351
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
40352
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
40353
|
+
exclusive: "exclusive";
|
|
40354
|
+
inclusive: "inclusive";
|
|
40355
|
+
}>>;
|
|
40356
|
+
code: z.ZodObject<{
|
|
40357
|
+
id: z.ZodString;
|
|
40358
|
+
}, z.core.$strict>;
|
|
40359
|
+
}, z.core.$strict>>;
|
|
40360
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40361
|
+
type: z.ZodLiteral<"metered">;
|
|
40362
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
40363
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
40364
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
40365
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40366
|
+
type: z.ZodLiteral<"static">;
|
|
40367
|
+
config: z.ZodUnknown;
|
|
40368
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40369
|
+
type: z.ZodLiteral<"boolean">;
|
|
40370
|
+
}, z.core.$strict>], "type">>;
|
|
40371
|
+
}, z.core.$strict>;
|
|
40372
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40373
|
+
type: z.ZodLiteral<"remove_item">;
|
|
40374
|
+
phase_key: z.ZodString;
|
|
40375
|
+
item_key: z.ZodString;
|
|
40376
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40377
|
+
type: z.ZodLiteral<"add_phase">;
|
|
40378
|
+
phase: z.ZodObject<{
|
|
40379
|
+
key: z.ZodString;
|
|
40380
|
+
name: z.ZodString;
|
|
40381
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40382
|
+
start_after: z.ZodNullable<z.ZodString>;
|
|
40383
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
40384
|
+
}, z.core.$strict>;
|
|
40385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40386
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
40387
|
+
phase_key: z.ZodString;
|
|
40388
|
+
shift: z.ZodEnum<{
|
|
40389
|
+
next: "next";
|
|
40390
|
+
prev: "prev";
|
|
40391
|
+
}>;
|
|
40392
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40393
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
40394
|
+
phase_key: z.ZodString;
|
|
40395
|
+
extend_by: z.ZodString;
|
|
40396
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40397
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
40398
|
+
}, z.core.$strict>], "type">>;
|
|
40399
|
+
timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
40400
|
+
immediate: "immediate";
|
|
40401
|
+
next_billing_cycle: "next_billing_cycle";
|
|
40402
|
+
}>, z.ZodString]>>;
|
|
40403
|
+
}, z.core.$strict>;
|
|
40404
|
+
export declare const subscriptionAddonPagePaginatedResponseWire: z.ZodObject<{
|
|
40405
|
+
data: z.ZodArray<z.ZodObject<{
|
|
40406
|
+
id: z.ZodString;
|
|
40407
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40408
|
+
created_at: z.ZodString;
|
|
40409
|
+
updated_at: z.ZodString;
|
|
40410
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
40411
|
+
name: z.ZodString;
|
|
40412
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40413
|
+
addon: z.ZodObject<{
|
|
40414
|
+
id: z.ZodString;
|
|
40415
|
+
}, z.core.$strict>;
|
|
40416
|
+
quantity: z.ZodNumber;
|
|
40417
|
+
quantity_at: z.ZodString;
|
|
40418
|
+
active_from: z.ZodString;
|
|
40419
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
40420
|
+
timeline: z.ZodArray<z.ZodObject<{
|
|
40421
|
+
active_from: z.ZodString;
|
|
40422
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
40423
|
+
quantity: z.ZodNumber;
|
|
40424
|
+
}, z.core.$strict>>;
|
|
40425
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
40426
|
+
rate_card: z.ZodObject<{
|
|
40427
|
+
name: z.ZodString;
|
|
40428
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40429
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40430
|
+
key: z.ZodString;
|
|
40431
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
40432
|
+
id: z.ZodString;
|
|
40433
|
+
}, z.core.$strict>>;
|
|
40434
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
40435
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
40436
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40437
|
+
type: z.ZodLiteral<"free">;
|
|
40438
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40439
|
+
type: z.ZodLiteral<"flat">;
|
|
40440
|
+
amount: z.ZodString;
|
|
40441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40442
|
+
type: z.ZodLiteral<"unit">;
|
|
40443
|
+
amount: z.ZodString;
|
|
40444
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40445
|
+
type: z.ZodLiteral<"graduated">;
|
|
40446
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40447
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40448
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40449
|
+
type: z.ZodLiteral<"flat">;
|
|
40450
|
+
amount: z.ZodString;
|
|
40451
|
+
}, z.core.$strict>>;
|
|
40452
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40453
|
+
type: z.ZodLiteral<"unit">;
|
|
40454
|
+
amount: z.ZodString;
|
|
40455
|
+
}, z.core.$strict>>;
|
|
40456
|
+
}, z.core.$strict>>;
|
|
40457
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40458
|
+
type: z.ZodLiteral<"volume">;
|
|
40459
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40460
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40461
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40462
|
+
type: z.ZodLiteral<"flat">;
|
|
40463
|
+
amount: z.ZodString;
|
|
40464
|
+
}, z.core.$strict>>;
|
|
40465
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40466
|
+
type: z.ZodLiteral<"unit">;
|
|
40467
|
+
amount: z.ZodString;
|
|
40468
|
+
}, z.core.$strict>>;
|
|
40469
|
+
}, z.core.$strict>>;
|
|
40470
|
+
}, z.core.$strict>], "type">;
|
|
40471
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
40472
|
+
operation: z.ZodEnum<{
|
|
40473
|
+
divide: "divide";
|
|
40474
|
+
multiply: "multiply";
|
|
40475
|
+
}>;
|
|
40476
|
+
conversion_factor: z.ZodString;
|
|
40477
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
40478
|
+
ceiling: "ceiling";
|
|
40479
|
+
floor: "floor";
|
|
40480
|
+
half_up: "half_up";
|
|
40481
|
+
none: "none";
|
|
40482
|
+
}>>;
|
|
40483
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
40484
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
40485
|
+
}, z.core.$strict>>;
|
|
40486
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
40487
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
40488
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
40489
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
40490
|
+
}, z.core.$strict>>;
|
|
40491
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
40492
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
40493
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
40494
|
+
}, z.core.$strict>>;
|
|
40495
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
40496
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
40497
|
+
exclusive: "exclusive";
|
|
40498
|
+
inclusive: "inclusive";
|
|
40499
|
+
}>>;
|
|
40500
|
+
code: z.ZodObject<{
|
|
40501
|
+
id: z.ZodString;
|
|
40502
|
+
}, z.core.$strict>;
|
|
40503
|
+
}, z.core.$strict>>;
|
|
40504
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40505
|
+
type: z.ZodLiteral<"metered">;
|
|
40506
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
40507
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
40508
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
40509
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40510
|
+
type: z.ZodLiteral<"static">;
|
|
40511
|
+
config: z.ZodUnknown;
|
|
40512
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40513
|
+
type: z.ZodLiteral<"boolean">;
|
|
40514
|
+
}, z.core.$strict>], "type">>;
|
|
40515
|
+
}, z.core.$strict>;
|
|
40516
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
40517
|
+
}, z.core.$strict>>;
|
|
40518
|
+
}, z.core.$strict>>;
|
|
40519
|
+
meta: z.ZodObject<{
|
|
40520
|
+
page: z.ZodObject<{
|
|
40521
|
+
number: z.ZodNumber;
|
|
40522
|
+
size: z.ZodNumber;
|
|
40523
|
+
total: z.ZodNumber;
|
|
40524
|
+
}, z.core.$strict>;
|
|
40525
|
+
}, z.core.$strict>;
|
|
40526
|
+
}, z.core.$strict>;
|
|
38620
40527
|
export declare const invoiceStandardWire: z.ZodObject<{
|
|
38621
40528
|
id: z.ZodString;
|
|
38622
40529
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -48715,11 +50622,116 @@ export declare const createSubscriptionBodyWire: z.ZodObject<{
|
|
|
48715
50622
|
id: z.ZodOptional<z.ZodString>;
|
|
48716
50623
|
key: z.ZodOptional<z.ZodString>;
|
|
48717
50624
|
}, z.core.$strict>;
|
|
48718
|
-
plan: z.ZodObject<{
|
|
50625
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
48719
50626
|
id: z.ZodOptional<z.ZodString>;
|
|
48720
50627
|
key: z.ZodOptional<z.ZodString>;
|
|
48721
50628
|
version: z.ZodOptional<z.ZodNumber>;
|
|
48722
|
-
}, z.core.$strict
|
|
50629
|
+
}, z.core.$strict>>;
|
|
50630
|
+
custom_plan: z.ZodOptional<z.ZodObject<{
|
|
50631
|
+
name: z.ZodString;
|
|
50632
|
+
description: z.ZodOptional<z.ZodString>;
|
|
50633
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
50634
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
50635
|
+
billing_cadence: z.ZodString;
|
|
50636
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
50637
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
50638
|
+
name: z.ZodString;
|
|
50639
|
+
description: z.ZodOptional<z.ZodString>;
|
|
50640
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
50641
|
+
key: z.ZodString;
|
|
50642
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
50643
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
50644
|
+
name: z.ZodString;
|
|
50645
|
+
description: z.ZodOptional<z.ZodString>;
|
|
50646
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
50647
|
+
key: z.ZodString;
|
|
50648
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
50649
|
+
id: z.ZodString;
|
|
50650
|
+
}, z.core.$strict>>;
|
|
50651
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
50652
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
50653
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50654
|
+
type: z.ZodLiteral<"free">;
|
|
50655
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50656
|
+
type: z.ZodLiteral<"flat">;
|
|
50657
|
+
amount: z.ZodString;
|
|
50658
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50659
|
+
type: z.ZodLiteral<"unit">;
|
|
50660
|
+
amount: z.ZodString;
|
|
50661
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50662
|
+
type: z.ZodLiteral<"graduated">;
|
|
50663
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
50664
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
50665
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
50666
|
+
type: z.ZodLiteral<"flat">;
|
|
50667
|
+
amount: z.ZodString;
|
|
50668
|
+
}, z.core.$strict>>;
|
|
50669
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
50670
|
+
type: z.ZodLiteral<"unit">;
|
|
50671
|
+
amount: z.ZodString;
|
|
50672
|
+
}, z.core.$strict>>;
|
|
50673
|
+
}, z.core.$strict>>;
|
|
50674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50675
|
+
type: z.ZodLiteral<"volume">;
|
|
50676
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
50677
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
50678
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
50679
|
+
type: z.ZodLiteral<"flat">;
|
|
50680
|
+
amount: z.ZodString;
|
|
50681
|
+
}, z.core.$strict>>;
|
|
50682
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
50683
|
+
type: z.ZodLiteral<"unit">;
|
|
50684
|
+
amount: z.ZodString;
|
|
50685
|
+
}, z.core.$strict>>;
|
|
50686
|
+
}, z.core.$strict>>;
|
|
50687
|
+
}, z.core.$strict>], "type">;
|
|
50688
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
50689
|
+
operation: z.ZodEnum<{
|
|
50690
|
+
divide: "divide";
|
|
50691
|
+
multiply: "multiply";
|
|
50692
|
+
}>;
|
|
50693
|
+
conversion_factor: z.ZodString;
|
|
50694
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
50695
|
+
ceiling: "ceiling";
|
|
50696
|
+
floor: "floor";
|
|
50697
|
+
half_up: "half_up";
|
|
50698
|
+
none: "none";
|
|
50699
|
+
}>>;
|
|
50700
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
50701
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
50702
|
+
}, z.core.$strict>>;
|
|
50703
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
50704
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
50705
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
50706
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
50707
|
+
}, z.core.$strict>>;
|
|
50708
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
50709
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
50710
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
50711
|
+
}, z.core.$strict>>;
|
|
50712
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
50713
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
50714
|
+
exclusive: "exclusive";
|
|
50715
|
+
inclusive: "inclusive";
|
|
50716
|
+
}>>;
|
|
50717
|
+
code: z.ZodObject<{
|
|
50718
|
+
id: z.ZodString;
|
|
50719
|
+
}, z.core.$strict>;
|
|
50720
|
+
}, z.core.$strict>>;
|
|
50721
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
50722
|
+
type: z.ZodLiteral<"metered">;
|
|
50723
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
50724
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
50725
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
50726
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50727
|
+
type: z.ZodLiteral<"static">;
|
|
50728
|
+
config: z.ZodUnknown;
|
|
50729
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
50730
|
+
type: z.ZodLiteral<"boolean">;
|
|
50731
|
+
}, z.core.$strict>], "type">>;
|
|
50732
|
+
}, z.core.$strict>>;
|
|
50733
|
+
}, z.core.$strict>>;
|
|
50734
|
+
}, z.core.$strict>>;
|
|
48723
50735
|
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
48724
50736
|
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
48725
50737
|
dynamic: "dynamic";
|
|
@@ -49587,11 +51599,116 @@ export declare const changeSubscriptionBodyWire: z.ZodObject<{
|
|
|
49587
51599
|
id: z.ZodOptional<z.ZodString>;
|
|
49588
51600
|
key: z.ZodOptional<z.ZodString>;
|
|
49589
51601
|
}, z.core.$strict>;
|
|
49590
|
-
plan: z.ZodObject<{
|
|
51602
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
49591
51603
|
id: z.ZodOptional<z.ZodString>;
|
|
49592
51604
|
key: z.ZodOptional<z.ZodString>;
|
|
49593
51605
|
version: z.ZodOptional<z.ZodNumber>;
|
|
49594
|
-
}, z.core.$strict
|
|
51606
|
+
}, z.core.$strict>>;
|
|
51607
|
+
custom_plan: z.ZodOptional<z.ZodObject<{
|
|
51608
|
+
name: z.ZodString;
|
|
51609
|
+
description: z.ZodOptional<z.ZodString>;
|
|
51610
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51611
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
51612
|
+
billing_cadence: z.ZodString;
|
|
51613
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
51614
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
51615
|
+
name: z.ZodString;
|
|
51616
|
+
description: z.ZodOptional<z.ZodString>;
|
|
51617
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51618
|
+
key: z.ZodString;
|
|
51619
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
51620
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
51621
|
+
name: z.ZodString;
|
|
51622
|
+
description: z.ZodOptional<z.ZodString>;
|
|
51623
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51624
|
+
key: z.ZodString;
|
|
51625
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
51626
|
+
id: z.ZodString;
|
|
51627
|
+
}, z.core.$strict>>;
|
|
51628
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
51629
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
51630
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51631
|
+
type: z.ZodLiteral<"free">;
|
|
51632
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51633
|
+
type: z.ZodLiteral<"flat">;
|
|
51634
|
+
amount: z.ZodString;
|
|
51635
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51636
|
+
type: z.ZodLiteral<"unit">;
|
|
51637
|
+
amount: z.ZodString;
|
|
51638
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51639
|
+
type: z.ZodLiteral<"graduated">;
|
|
51640
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
51641
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
51642
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
51643
|
+
type: z.ZodLiteral<"flat">;
|
|
51644
|
+
amount: z.ZodString;
|
|
51645
|
+
}, z.core.$strict>>;
|
|
51646
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
51647
|
+
type: z.ZodLiteral<"unit">;
|
|
51648
|
+
amount: z.ZodString;
|
|
51649
|
+
}, z.core.$strict>>;
|
|
51650
|
+
}, z.core.$strict>>;
|
|
51651
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51652
|
+
type: z.ZodLiteral<"volume">;
|
|
51653
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
51654
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
51655
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
51656
|
+
type: z.ZodLiteral<"flat">;
|
|
51657
|
+
amount: z.ZodString;
|
|
51658
|
+
}, z.core.$strict>>;
|
|
51659
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
51660
|
+
type: z.ZodLiteral<"unit">;
|
|
51661
|
+
amount: z.ZodString;
|
|
51662
|
+
}, z.core.$strict>>;
|
|
51663
|
+
}, z.core.$strict>>;
|
|
51664
|
+
}, z.core.$strict>], "type">;
|
|
51665
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
51666
|
+
operation: z.ZodEnum<{
|
|
51667
|
+
divide: "divide";
|
|
51668
|
+
multiply: "multiply";
|
|
51669
|
+
}>;
|
|
51670
|
+
conversion_factor: z.ZodString;
|
|
51671
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
51672
|
+
ceiling: "ceiling";
|
|
51673
|
+
floor: "floor";
|
|
51674
|
+
half_up: "half_up";
|
|
51675
|
+
none: "none";
|
|
51676
|
+
}>>;
|
|
51677
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
51678
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
51679
|
+
}, z.core.$strict>>;
|
|
51680
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
51681
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
51682
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
51683
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
51684
|
+
}, z.core.$strict>>;
|
|
51685
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
51686
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
51687
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
51688
|
+
}, z.core.$strict>>;
|
|
51689
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
51690
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
51691
|
+
exclusive: "exclusive";
|
|
51692
|
+
inclusive: "inclusive";
|
|
51693
|
+
}>>;
|
|
51694
|
+
code: z.ZodObject<{
|
|
51695
|
+
id: z.ZodString;
|
|
51696
|
+
}, z.core.$strict>;
|
|
51697
|
+
}, z.core.$strict>>;
|
|
51698
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51699
|
+
type: z.ZodLiteral<"metered">;
|
|
51700
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
51701
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
51702
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
51703
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51704
|
+
type: z.ZodLiteral<"static">;
|
|
51705
|
+
config: z.ZodUnknown;
|
|
51706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
51707
|
+
type: z.ZodLiteral<"boolean">;
|
|
51708
|
+
}, z.core.$strict>], "type">>;
|
|
51709
|
+
}, z.core.$strict>>;
|
|
51710
|
+
}, z.core.$strict>>;
|
|
51711
|
+
}, z.core.$strict>>;
|
|
49595
51712
|
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
49596
51713
|
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
49597
51714
|
dynamic: "dynamic";
|
|
@@ -49920,6 +52037,293 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
|
|
|
49920
52037
|
}, z.core.$strict>>;
|
|
49921
52038
|
}, z.core.$strict>;
|
|
49922
52039
|
}, z.core.$strict>;
|
|
52040
|
+
export declare const editSubscriptionPathParamsWire: z.ZodObject<{
|
|
52041
|
+
subscriptionId: z.ZodString;
|
|
52042
|
+
}, z.core.$strip>;
|
|
52043
|
+
export declare const editSubscriptionBodyWire: z.ZodObject<{
|
|
52044
|
+
customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52045
|
+
type: z.ZodLiteral<"add_item">;
|
|
52046
|
+
phase_key: z.ZodString;
|
|
52047
|
+
rate_card: z.ZodObject<{
|
|
52048
|
+
name: z.ZodString;
|
|
52049
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52050
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52051
|
+
key: z.ZodString;
|
|
52052
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
52053
|
+
id: z.ZodString;
|
|
52054
|
+
}, z.core.$strict>>;
|
|
52055
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
52056
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
52057
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52058
|
+
type: z.ZodLiteral<"free">;
|
|
52059
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52060
|
+
type: z.ZodLiteral<"flat">;
|
|
52061
|
+
amount: z.ZodString;
|
|
52062
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52063
|
+
type: z.ZodLiteral<"unit">;
|
|
52064
|
+
amount: z.ZodString;
|
|
52065
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52066
|
+
type: z.ZodLiteral<"graduated">;
|
|
52067
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
52068
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
52069
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
52070
|
+
type: z.ZodLiteral<"flat">;
|
|
52071
|
+
amount: z.ZodString;
|
|
52072
|
+
}, z.core.$strict>>;
|
|
52073
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
52074
|
+
type: z.ZodLiteral<"unit">;
|
|
52075
|
+
amount: z.ZodString;
|
|
52076
|
+
}, z.core.$strict>>;
|
|
52077
|
+
}, z.core.$strict>>;
|
|
52078
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52079
|
+
type: z.ZodLiteral<"volume">;
|
|
52080
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
52081
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
52082
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
52083
|
+
type: z.ZodLiteral<"flat">;
|
|
52084
|
+
amount: z.ZodString;
|
|
52085
|
+
}, z.core.$strict>>;
|
|
52086
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
52087
|
+
type: z.ZodLiteral<"unit">;
|
|
52088
|
+
amount: z.ZodString;
|
|
52089
|
+
}, z.core.$strict>>;
|
|
52090
|
+
}, z.core.$strict>>;
|
|
52091
|
+
}, z.core.$strict>], "type">;
|
|
52092
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
52093
|
+
operation: z.ZodEnum<{
|
|
52094
|
+
divide: "divide";
|
|
52095
|
+
multiply: "multiply";
|
|
52096
|
+
}>;
|
|
52097
|
+
conversion_factor: z.ZodString;
|
|
52098
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
52099
|
+
ceiling: "ceiling";
|
|
52100
|
+
floor: "floor";
|
|
52101
|
+
half_up: "half_up";
|
|
52102
|
+
none: "none";
|
|
52103
|
+
}>>;
|
|
52104
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
52105
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
52106
|
+
}, z.core.$strict>>;
|
|
52107
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
52108
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
52109
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
52110
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
52111
|
+
}, z.core.$strict>>;
|
|
52112
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
52113
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
52114
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
52115
|
+
}, z.core.$strict>>;
|
|
52116
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
52117
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
52118
|
+
exclusive: "exclusive";
|
|
52119
|
+
inclusive: "inclusive";
|
|
52120
|
+
}>>;
|
|
52121
|
+
code: z.ZodObject<{
|
|
52122
|
+
id: z.ZodString;
|
|
52123
|
+
}, z.core.$strict>;
|
|
52124
|
+
}, z.core.$strict>>;
|
|
52125
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52126
|
+
type: z.ZodLiteral<"metered">;
|
|
52127
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
52128
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
52129
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
52130
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52131
|
+
type: z.ZodLiteral<"static">;
|
|
52132
|
+
config: z.ZodUnknown;
|
|
52133
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52134
|
+
type: z.ZodLiteral<"boolean">;
|
|
52135
|
+
}, z.core.$strict>], "type">>;
|
|
52136
|
+
}, z.core.$strict>;
|
|
52137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52138
|
+
type: z.ZodLiteral<"remove_item">;
|
|
52139
|
+
phase_key: z.ZodString;
|
|
52140
|
+
item_key: z.ZodString;
|
|
52141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52142
|
+
type: z.ZodLiteral<"add_phase">;
|
|
52143
|
+
phase: z.ZodObject<{
|
|
52144
|
+
key: z.ZodString;
|
|
52145
|
+
name: z.ZodString;
|
|
52146
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52147
|
+
start_after: z.ZodNullable<z.ZodString>;
|
|
52148
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
52149
|
+
}, z.core.$strict>;
|
|
52150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52151
|
+
type: z.ZodLiteral<"remove_phase">;
|
|
52152
|
+
phase_key: z.ZodString;
|
|
52153
|
+
shift: z.ZodEnum<{
|
|
52154
|
+
next: "next";
|
|
52155
|
+
prev: "prev";
|
|
52156
|
+
}>;
|
|
52157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52158
|
+
type: z.ZodLiteral<"stretch_phase">;
|
|
52159
|
+
phase_key: z.ZodString;
|
|
52160
|
+
extend_by: z.ZodString;
|
|
52161
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52162
|
+
type: z.ZodLiteral<"unschedule_edit">;
|
|
52163
|
+
}, z.core.$strict>], "type">>;
|
|
52164
|
+
timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
52165
|
+
immediate: "immediate";
|
|
52166
|
+
next_billing_cycle: "next_billing_cycle";
|
|
52167
|
+
}>, z.ZodString]>>;
|
|
52168
|
+
}, z.core.$strict>;
|
|
52169
|
+
export declare const editSubscriptionResponseWire: z.ZodObject<{
|
|
52170
|
+
id: z.ZodString;
|
|
52171
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52172
|
+
created_at: z.ZodString;
|
|
52173
|
+
updated_at: z.ZodString;
|
|
52174
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
52175
|
+
name: z.ZodString;
|
|
52176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52177
|
+
active_from: z.ZodString;
|
|
52178
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
52179
|
+
customer_id: z.ZodString;
|
|
52180
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
52181
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
52182
|
+
id: z.ZodString;
|
|
52183
|
+
key: z.ZodString;
|
|
52184
|
+
version: z.ZodNumber;
|
|
52185
|
+
}, z.core.$strict>>;
|
|
52186
|
+
invoice_currency: z.ZodString;
|
|
52187
|
+
cost_basis_mode: z.ZodEnum<{
|
|
52188
|
+
dynamic: "dynamic";
|
|
52189
|
+
pinned: "pinned";
|
|
52190
|
+
}>;
|
|
52191
|
+
cost_basis_pins: z.ZodArray<z.ZodObject<{
|
|
52192
|
+
custom_currency_id: z.ZodString;
|
|
52193
|
+
invoice_currency: z.ZodString;
|
|
52194
|
+
cost_basis_id: z.ZodString;
|
|
52195
|
+
}, z.core.$strict>>;
|
|
52196
|
+
billing_cadence: z.ZodString;
|
|
52197
|
+
pro_rating_config: z.ZodOptional<z.ZodObject<{
|
|
52198
|
+
enabled: z.ZodBoolean;
|
|
52199
|
+
mode: z.ZodEnum<{
|
|
52200
|
+
no_proration: "no_proration";
|
|
52201
|
+
prorate_prices: "prorate_prices";
|
|
52202
|
+
}>;
|
|
52203
|
+
}, z.core.$strict>>;
|
|
52204
|
+
billing_anchor: z.ZodString;
|
|
52205
|
+
status: z.ZodEnum<{
|
|
52206
|
+
active: "active";
|
|
52207
|
+
canceled: "canceled";
|
|
52208
|
+
inactive: "inactive";
|
|
52209
|
+
scheduled: "scheduled";
|
|
52210
|
+
}>;
|
|
52211
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
52212
|
+
credit_only: "credit_only";
|
|
52213
|
+
credit_then_invoice: "credit_then_invoice";
|
|
52214
|
+
}>>;
|
|
52215
|
+
current_period: z.ZodOptional<z.ZodObject<{
|
|
52216
|
+
from: z.ZodString;
|
|
52217
|
+
to: z.ZodString;
|
|
52218
|
+
}, z.core.$strict>>;
|
|
52219
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
52220
|
+
id: z.ZodString;
|
|
52221
|
+
name: z.ZodString;
|
|
52222
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52223
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52224
|
+
created_at: z.ZodString;
|
|
52225
|
+
updated_at: z.ZodString;
|
|
52226
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
52227
|
+
key: z.ZodString;
|
|
52228
|
+
active_from: z.ZodString;
|
|
52229
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
52230
|
+
items: z.ZodArray<z.ZodObject<{
|
|
52231
|
+
id: z.ZodString;
|
|
52232
|
+
active_from: z.ZodString;
|
|
52233
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
52234
|
+
rate_card: z.ZodObject<{
|
|
52235
|
+
name: z.ZodString;
|
|
52236
|
+
description: z.ZodOptional<z.ZodString>;
|
|
52237
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
52238
|
+
key: z.ZodString;
|
|
52239
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
52240
|
+
id: z.ZodString;
|
|
52241
|
+
}, z.core.$strict>>;
|
|
52242
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
52243
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
52244
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52245
|
+
type: z.ZodLiteral<"free">;
|
|
52246
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52247
|
+
type: z.ZodLiteral<"flat">;
|
|
52248
|
+
amount: z.ZodString;
|
|
52249
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52250
|
+
type: z.ZodLiteral<"unit">;
|
|
52251
|
+
amount: z.ZodString;
|
|
52252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52253
|
+
type: z.ZodLiteral<"graduated">;
|
|
52254
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
52255
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
52256
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
52257
|
+
type: z.ZodLiteral<"flat">;
|
|
52258
|
+
amount: z.ZodString;
|
|
52259
|
+
}, z.core.$strict>>;
|
|
52260
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
52261
|
+
type: z.ZodLiteral<"unit">;
|
|
52262
|
+
amount: z.ZodString;
|
|
52263
|
+
}, z.core.$strict>>;
|
|
52264
|
+
}, z.core.$strict>>;
|
|
52265
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52266
|
+
type: z.ZodLiteral<"volume">;
|
|
52267
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
52268
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
52269
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
52270
|
+
type: z.ZodLiteral<"flat">;
|
|
52271
|
+
amount: z.ZodString;
|
|
52272
|
+
}, z.core.$strict>>;
|
|
52273
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
52274
|
+
type: z.ZodLiteral<"unit">;
|
|
52275
|
+
amount: z.ZodString;
|
|
52276
|
+
}, z.core.$strict>>;
|
|
52277
|
+
}, z.core.$strict>>;
|
|
52278
|
+
}, z.core.$strict>], "type">;
|
|
52279
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
52280
|
+
operation: z.ZodEnum<{
|
|
52281
|
+
divide: "divide";
|
|
52282
|
+
multiply: "multiply";
|
|
52283
|
+
}>;
|
|
52284
|
+
conversion_factor: z.ZodString;
|
|
52285
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
52286
|
+
ceiling: "ceiling";
|
|
52287
|
+
floor: "floor";
|
|
52288
|
+
half_up: "half_up";
|
|
52289
|
+
none: "none";
|
|
52290
|
+
}>>;
|
|
52291
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
52292
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
52293
|
+
}, z.core.$strict>>;
|
|
52294
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
52295
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
52296
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
52297
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
52298
|
+
}, z.core.$strict>>;
|
|
52299
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
52300
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
52301
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
52302
|
+
}, z.core.$strict>>;
|
|
52303
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
52304
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
52305
|
+
exclusive: "exclusive";
|
|
52306
|
+
inclusive: "inclusive";
|
|
52307
|
+
}>>;
|
|
52308
|
+
code: z.ZodObject<{
|
|
52309
|
+
id: z.ZodString;
|
|
52310
|
+
}, z.core.$strict>;
|
|
52311
|
+
}, z.core.$strict>>;
|
|
52312
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
52313
|
+
type: z.ZodLiteral<"metered">;
|
|
52314
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
52315
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
52316
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
52317
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52318
|
+
type: z.ZodLiteral<"static">;
|
|
52319
|
+
config: z.ZodUnknown;
|
|
52320
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
52321
|
+
type: z.ZodLiteral<"boolean">;
|
|
52322
|
+
}, z.core.$strict>], "type">>;
|
|
52323
|
+
}, z.core.$strict>;
|
|
52324
|
+
}, z.core.$strict>>;
|
|
52325
|
+
}, z.core.$strict>>;
|
|
52326
|
+
}, z.core.$strict>;
|
|
49923
52327
|
export declare const createSubscriptionAddonPathParamsWire: z.ZodObject<{
|
|
49924
52328
|
subscriptionId: z.ZodString;
|
|
49925
52329
|
}, z.core.$strip>;
|