@openmeter/client 1.0.0-beta-75dd3b9ccc98 → 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/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/schemas.d.ts +1970 -920
- package/dist/models/schemas.js +267 -212
- package/dist/models/types.d.ts +426 -310
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -1478,27 +1478,6 @@ export declare const rateCardProrationConfiguration: z.ZodObject<{
|
|
|
1478
1478
|
prorate_prices: "prorate_prices";
|
|
1479
1479
|
}>;
|
|
1480
1480
|
}, z.core.$strip>;
|
|
1481
|
-
export declare const subscriptionCreate: z.ZodObject<{
|
|
1482
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1483
|
-
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
1484
|
-
credit_only: "credit_only";
|
|
1485
|
-
credit_then_invoice: "credit_then_invoice";
|
|
1486
|
-
}>>;
|
|
1487
|
-
customer: z.ZodObject<{
|
|
1488
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1489
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1490
|
-
}, z.core.$strip>;
|
|
1491
|
-
plan: z.ZodObject<{
|
|
1492
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1493
|
-
key: z.ZodOptional<z.ZodString>;
|
|
1494
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
1495
|
-
}, z.core.$strip>;
|
|
1496
|
-
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
1497
|
-
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
1498
|
-
dynamic: "dynamic";
|
|
1499
|
-
pinned: "pinned";
|
|
1500
|
-
}>>>;
|
|
1501
|
-
}, z.core.$strip>;
|
|
1502
1481
|
export declare const unitConfig: z.ZodObject<{
|
|
1503
1482
|
operation: z.ZodEnum<{
|
|
1504
1483
|
divide: "divide";
|
|
@@ -3065,31 +3044,6 @@ export declare const subscriptionCancel: z.ZodObject<{
|
|
|
3065
3044
|
next_billing_cycle: "next_billing_cycle";
|
|
3066
3045
|
}>, z.ZodDate]>>>;
|
|
3067
3046
|
}, z.core.$strip>;
|
|
3068
|
-
export declare const subscriptionChange: z.ZodObject<{
|
|
3069
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3070
|
-
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
3071
|
-
credit_only: "credit_only";
|
|
3072
|
-
credit_then_invoice: "credit_then_invoice";
|
|
3073
|
-
}>>;
|
|
3074
|
-
customer: z.ZodObject<{
|
|
3075
|
-
id: z.ZodOptional<z.ZodString>;
|
|
3076
|
-
key: z.ZodOptional<z.ZodString>;
|
|
3077
|
-
}, z.core.$strip>;
|
|
3078
|
-
plan: z.ZodObject<{
|
|
3079
|
-
id: z.ZodOptional<z.ZodString>;
|
|
3080
|
-
key: z.ZodOptional<z.ZodString>;
|
|
3081
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
3082
|
-
}, z.core.$strip>;
|
|
3083
|
-
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
3084
|
-
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
3085
|
-
dynamic: "dynamic";
|
|
3086
|
-
pinned: "pinned";
|
|
3087
|
-
}>>>;
|
|
3088
|
-
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
3089
|
-
immediate: "immediate";
|
|
3090
|
-
next_billing_cycle: "next_billing_cycle";
|
|
3091
|
-
}>, z.ZodDate]>;
|
|
3092
|
-
}, z.core.$strip>;
|
|
3093
3047
|
export declare const createSubscriptionAddonRequest: z.ZodObject<{
|
|
3094
3048
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3095
3049
|
addon: z.ZodObject<{
|
|
@@ -6972,193 +6926,6 @@ export declare const subscriptionItem: z.ZodObject<{
|
|
|
6972
6926
|
}, z.core.$strip>], "type">>;
|
|
6973
6927
|
}, z.core.$strip>;
|
|
6974
6928
|
}, z.core.$strip>;
|
|
6975
|
-
export declare const subscriptionEditAddItem: z.ZodObject<{
|
|
6976
|
-
type: z.ZodLiteral<"add_item">;
|
|
6977
|
-
phaseKey: z.ZodString;
|
|
6978
|
-
rateCard: z.ZodObject<{
|
|
6979
|
-
name: z.ZodString;
|
|
6980
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6981
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
6982
|
-
key: z.ZodString;
|
|
6983
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
6984
|
-
id: z.ZodString;
|
|
6985
|
-
}, z.core.$strip>>;
|
|
6986
|
-
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
6987
|
-
billingCadence: z.ZodOptional<z.ZodString>;
|
|
6988
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6989
|
-
type: z.ZodLiteral<"free">;
|
|
6990
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6991
|
-
type: z.ZodLiteral<"flat">;
|
|
6992
|
-
amount: z.ZodString;
|
|
6993
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6994
|
-
type: z.ZodLiteral<"unit">;
|
|
6995
|
-
amount: z.ZodString;
|
|
6996
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6997
|
-
type: z.ZodLiteral<"graduated">;
|
|
6998
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
6999
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7000
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7001
|
-
type: z.ZodLiteral<"flat">;
|
|
7002
|
-
amount: z.ZodString;
|
|
7003
|
-
}, z.core.$strip>>;
|
|
7004
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7005
|
-
type: z.ZodLiteral<"unit">;
|
|
7006
|
-
amount: z.ZodString;
|
|
7007
|
-
}, z.core.$strip>>;
|
|
7008
|
-
}, z.core.$strip>>;
|
|
7009
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7010
|
-
type: z.ZodLiteral<"volume">;
|
|
7011
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7012
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7013
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7014
|
-
type: z.ZodLiteral<"flat">;
|
|
7015
|
-
amount: z.ZodString;
|
|
7016
|
-
}, z.core.$strip>>;
|
|
7017
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7018
|
-
type: z.ZodLiteral<"unit">;
|
|
7019
|
-
amount: z.ZodString;
|
|
7020
|
-
}, z.core.$strip>>;
|
|
7021
|
-
}, z.core.$strip>>;
|
|
7022
|
-
}, z.core.$strip>], "type">;
|
|
7023
|
-
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
7024
|
-
operation: z.ZodEnum<{
|
|
7025
|
-
divide: "divide";
|
|
7026
|
-
multiply: "multiply";
|
|
7027
|
-
}>;
|
|
7028
|
-
conversionFactor: z.ZodString;
|
|
7029
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7030
|
-
ceiling: "ceiling";
|
|
7031
|
-
floor: "floor";
|
|
7032
|
-
half_up: "half_up";
|
|
7033
|
-
none: "none";
|
|
7034
|
-
}>>>;
|
|
7035
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7036
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
7037
|
-
}, z.core.$strip>>;
|
|
7038
|
-
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7039
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
7040
|
-
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
7041
|
-
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
7042
|
-
}, z.core.$strip>>;
|
|
7043
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
7044
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7045
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
7046
|
-
}, z.core.$strip>>;
|
|
7047
|
-
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
7048
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7049
|
-
exclusive: "exclusive";
|
|
7050
|
-
inclusive: "inclusive";
|
|
7051
|
-
}>>;
|
|
7052
|
-
code: z.ZodObject<{
|
|
7053
|
-
id: z.ZodString;
|
|
7054
|
-
}, z.core.$strip>;
|
|
7055
|
-
}, z.core.$strip>>;
|
|
7056
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7057
|
-
type: z.ZodLiteral<"metered">;
|
|
7058
|
-
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7059
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7060
|
-
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
7061
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7062
|
-
type: z.ZodLiteral<"static">;
|
|
7063
|
-
config: z.ZodUnknown;
|
|
7064
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7065
|
-
type: z.ZodLiteral<"boolean">;
|
|
7066
|
-
}, z.core.$strip>], "type">>;
|
|
7067
|
-
}, z.core.$strip>;
|
|
7068
|
-
}, z.core.$strip>;
|
|
7069
|
-
export declare const subscriptionAddonRateCard: z.ZodObject<{
|
|
7070
|
-
rateCard: z.ZodObject<{
|
|
7071
|
-
name: z.ZodString;
|
|
7072
|
-
description: z.ZodOptional<z.ZodString>;
|
|
7073
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7074
|
-
key: z.ZodString;
|
|
7075
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
7076
|
-
id: z.ZodString;
|
|
7077
|
-
}, z.core.$strip>>;
|
|
7078
|
-
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
7079
|
-
billingCadence: z.ZodOptional<z.ZodString>;
|
|
7080
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7081
|
-
type: z.ZodLiteral<"free">;
|
|
7082
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7083
|
-
type: z.ZodLiteral<"flat">;
|
|
7084
|
-
amount: z.ZodString;
|
|
7085
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7086
|
-
type: z.ZodLiteral<"unit">;
|
|
7087
|
-
amount: z.ZodString;
|
|
7088
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7089
|
-
type: z.ZodLiteral<"graduated">;
|
|
7090
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7091
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7092
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7093
|
-
type: z.ZodLiteral<"flat">;
|
|
7094
|
-
amount: z.ZodString;
|
|
7095
|
-
}, z.core.$strip>>;
|
|
7096
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7097
|
-
type: z.ZodLiteral<"unit">;
|
|
7098
|
-
amount: z.ZodString;
|
|
7099
|
-
}, z.core.$strip>>;
|
|
7100
|
-
}, z.core.$strip>>;
|
|
7101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7102
|
-
type: z.ZodLiteral<"volume">;
|
|
7103
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7104
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7105
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7106
|
-
type: z.ZodLiteral<"flat">;
|
|
7107
|
-
amount: z.ZodString;
|
|
7108
|
-
}, z.core.$strip>>;
|
|
7109
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7110
|
-
type: z.ZodLiteral<"unit">;
|
|
7111
|
-
amount: z.ZodString;
|
|
7112
|
-
}, z.core.$strip>>;
|
|
7113
|
-
}, z.core.$strip>>;
|
|
7114
|
-
}, z.core.$strip>], "type">;
|
|
7115
|
-
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
7116
|
-
operation: z.ZodEnum<{
|
|
7117
|
-
divide: "divide";
|
|
7118
|
-
multiply: "multiply";
|
|
7119
|
-
}>;
|
|
7120
|
-
conversionFactor: z.ZodString;
|
|
7121
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7122
|
-
ceiling: "ceiling";
|
|
7123
|
-
floor: "floor";
|
|
7124
|
-
half_up: "half_up";
|
|
7125
|
-
none: "none";
|
|
7126
|
-
}>>>;
|
|
7127
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7128
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
7129
|
-
}, z.core.$strip>>;
|
|
7130
|
-
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7131
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
7132
|
-
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
7133
|
-
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
7134
|
-
}, z.core.$strip>>;
|
|
7135
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
7136
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7137
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
7138
|
-
}, z.core.$strip>>;
|
|
7139
|
-
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
7140
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7141
|
-
exclusive: "exclusive";
|
|
7142
|
-
inclusive: "inclusive";
|
|
7143
|
-
}>>;
|
|
7144
|
-
code: z.ZodObject<{
|
|
7145
|
-
id: z.ZodString;
|
|
7146
|
-
}, z.core.$strip>;
|
|
7147
|
-
}, z.core.$strip>>;
|
|
7148
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7149
|
-
type: z.ZodLiteral<"metered">;
|
|
7150
|
-
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7151
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
7152
|
-
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
7153
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7154
|
-
type: z.ZodLiteral<"static">;
|
|
7155
|
-
config: z.ZodUnknown;
|
|
7156
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7157
|
-
type: z.ZodLiteral<"boolean">;
|
|
7158
|
-
}, z.core.$strip>], "type">>;
|
|
7159
|
-
}, z.core.$strip>;
|
|
7160
|
-
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
7161
|
-
}, z.core.$strip>;
|
|
7162
6929
|
export declare const planPhase: z.ZodObject<{
|
|
7163
6930
|
name: z.ZodString;
|
|
7164
6931
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -7256,29 +7023,216 @@ export declare const planPhase: z.ZodObject<{
|
|
|
7256
7023
|
}, z.core.$strip>], "type">>;
|
|
7257
7024
|
}, z.core.$strip>>;
|
|
7258
7025
|
}, z.core.$strip>;
|
|
7259
|
-
export declare const
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
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>;
|
|
7120
|
+
export declare const subscriptionAddonRateCard: z.ZodObject<{
|
|
7121
|
+
rateCard: z.ZodObject<{
|
|
7122
|
+
name: z.ZodString;
|
|
7123
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7124
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7125
|
+
key: z.ZodString;
|
|
7126
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
7127
|
+
id: z.ZodString;
|
|
7128
|
+
}, z.core.$strip>>;
|
|
7129
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
7130
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
7131
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7132
|
+
type: z.ZodLiteral<"free">;
|
|
7133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7134
|
+
type: z.ZodLiteral<"flat">;
|
|
7135
|
+
amount: z.ZodString;
|
|
7136
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7137
|
+
type: z.ZodLiteral<"unit">;
|
|
7138
|
+
amount: z.ZodString;
|
|
7139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7140
|
+
type: z.ZodLiteral<"graduated">;
|
|
7141
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7142
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7143
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7144
|
+
type: z.ZodLiteral<"flat">;
|
|
7145
|
+
amount: z.ZodString;
|
|
7146
|
+
}, z.core.$strip>>;
|
|
7147
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7148
|
+
type: z.ZodLiteral<"unit">;
|
|
7149
|
+
amount: z.ZodString;
|
|
7150
|
+
}, z.core.$strip>>;
|
|
7151
|
+
}, z.core.$strip>>;
|
|
7152
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7153
|
+
type: z.ZodLiteral<"volume">;
|
|
7154
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7155
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
7156
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
7157
|
+
type: z.ZodLiteral<"flat">;
|
|
7158
|
+
amount: z.ZodString;
|
|
7159
|
+
}, z.core.$strip>>;
|
|
7160
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
7161
|
+
type: z.ZodLiteral<"unit">;
|
|
7162
|
+
amount: z.ZodString;
|
|
7163
|
+
}, z.core.$strip>>;
|
|
7164
|
+
}, z.core.$strip>>;
|
|
7165
|
+
}, z.core.$strip>], "type">;
|
|
7166
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
7167
|
+
operation: z.ZodEnum<{
|
|
7168
|
+
divide: "divide";
|
|
7169
|
+
multiply: "multiply";
|
|
7170
|
+
}>;
|
|
7171
|
+
conversionFactor: z.ZodString;
|
|
7172
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
7173
|
+
ceiling: "ceiling";
|
|
7174
|
+
floor: "floor";
|
|
7175
|
+
half_up: "half_up";
|
|
7176
|
+
none: "none";
|
|
7177
|
+
}>>>;
|
|
7178
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7179
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
7180
|
+
}, z.core.$strip>>;
|
|
7181
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
7182
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
7183
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
7184
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
7185
|
+
}, z.core.$strip>>;
|
|
7186
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
7187
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
7188
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
7189
|
+
}, z.core.$strip>>;
|
|
7190
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
7191
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
7192
|
+
exclusive: "exclusive";
|
|
7193
|
+
inclusive: "inclusive";
|
|
7194
|
+
}>>;
|
|
7195
|
+
code: z.ZodObject<{
|
|
7196
|
+
id: z.ZodString;
|
|
7197
|
+
}, z.core.$strip>;
|
|
7198
|
+
}, z.core.$strip>>;
|
|
7199
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7200
|
+
type: z.ZodLiteral<"metered">;
|
|
7201
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
7202
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
7203
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
7204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7205
|
+
type: z.ZodLiteral<"static">;
|
|
7206
|
+
config: z.ZodUnknown;
|
|
7207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7208
|
+
type: z.ZodLiteral<"boolean">;
|
|
7209
|
+
}, z.core.$strip>], "type">>;
|
|
7210
|
+
}, z.core.$strip>;
|
|
7211
|
+
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
7212
|
+
}, z.core.$strip>;
|
|
7213
|
+
export declare const addon: z.ZodObject<{
|
|
7214
|
+
id: z.ZodString;
|
|
7215
|
+
name: z.ZodString;
|
|
7216
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7217
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7218
|
+
createdAt: z.ZodDate;
|
|
7219
|
+
updatedAt: z.ZodDate;
|
|
7220
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
7221
|
+
key: z.ZodString;
|
|
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
|
+
}>;
|
|
7235
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
7282
7236
|
name: z.ZodString;
|
|
7283
7237
|
description: z.ZodOptional<z.ZodString>;
|
|
7284
7238
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -8615,148 +8569,20 @@ export declare const subscriptionPhase: z.ZodObject<{
|
|
|
8615
8569
|
}, z.core.$strip>;
|
|
8616
8570
|
}, z.core.$strip>>;
|
|
8617
8571
|
}, z.core.$strip>;
|
|
8618
|
-
export declare const
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
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<{
|
|
8622
8580
|
name: z.ZodString;
|
|
8623
8581
|
description: z.ZodOptional<z.ZodString>;
|
|
8624
8582
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8625
8583
|
key: z.ZodString;
|
|
8626
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
8627
|
-
id: z.ZodString;
|
|
8628
|
-
}, z.core.$strip>>;
|
|
8629
|
-
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
8630
|
-
billingCadence: z.ZodOptional<z.ZodString>;
|
|
8631
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8632
|
-
type: z.ZodLiteral<"free">;
|
|
8633
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8634
|
-
type: z.ZodLiteral<"flat">;
|
|
8635
|
-
amount: z.ZodString;
|
|
8636
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8637
|
-
type: z.ZodLiteral<"unit">;
|
|
8638
|
-
amount: z.ZodString;
|
|
8639
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8640
|
-
type: z.ZodLiteral<"graduated">;
|
|
8641
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
8642
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
8643
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
8644
|
-
type: z.ZodLiteral<"flat">;
|
|
8645
|
-
amount: z.ZodString;
|
|
8646
|
-
}, z.core.$strip>>;
|
|
8647
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
8648
|
-
type: z.ZodLiteral<"unit">;
|
|
8649
|
-
amount: z.ZodString;
|
|
8650
|
-
}, z.core.$strip>>;
|
|
8651
|
-
}, z.core.$strip>>;
|
|
8652
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8653
|
-
type: z.ZodLiteral<"volume">;
|
|
8654
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
8655
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
8656
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
8657
|
-
type: z.ZodLiteral<"flat">;
|
|
8658
|
-
amount: z.ZodString;
|
|
8659
|
-
}, z.core.$strip>>;
|
|
8660
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
8661
|
-
type: z.ZodLiteral<"unit">;
|
|
8662
|
-
amount: z.ZodString;
|
|
8663
|
-
}, z.core.$strip>>;
|
|
8664
|
-
}, z.core.$strip>>;
|
|
8665
|
-
}, z.core.$strip>], "type">;
|
|
8666
|
-
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
8667
|
-
operation: z.ZodEnum<{
|
|
8668
|
-
divide: "divide";
|
|
8669
|
-
multiply: "multiply";
|
|
8670
|
-
}>;
|
|
8671
|
-
conversionFactor: z.ZodString;
|
|
8672
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
8673
|
-
ceiling: "ceiling";
|
|
8674
|
-
floor: "floor";
|
|
8675
|
-
half_up: "half_up";
|
|
8676
|
-
none: "none";
|
|
8677
|
-
}>>>;
|
|
8678
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8679
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
8680
|
-
}, z.core.$strip>>;
|
|
8681
|
-
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
8682
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
8683
|
-
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
8684
|
-
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
8685
|
-
}, z.core.$strip>>;
|
|
8686
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
8687
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8688
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
8689
|
-
}, z.core.$strip>>;
|
|
8690
|
-
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
8691
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8692
|
-
exclusive: "exclusive";
|
|
8693
|
-
inclusive: "inclusive";
|
|
8694
|
-
}>>;
|
|
8695
|
-
code: z.ZodObject<{
|
|
8696
|
-
id: z.ZodString;
|
|
8697
|
-
}, z.core.$strip>;
|
|
8698
|
-
}, z.core.$strip>>;
|
|
8699
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8700
|
-
type: z.ZodLiteral<"metered">;
|
|
8701
|
-
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
8702
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
8703
|
-
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
8704
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8705
|
-
type: z.ZodLiteral<"static">;
|
|
8706
|
-
config: z.ZodUnknown;
|
|
8707
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8708
|
-
type: z.ZodLiteral<"boolean">;
|
|
8709
|
-
}, z.core.$strip>], "type">>;
|
|
8710
|
-
}, z.core.$strip>;
|
|
8711
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8712
|
-
type: z.ZodLiteral<"remove_item">;
|
|
8713
|
-
phaseKey: z.ZodString;
|
|
8714
|
-
itemKey: z.ZodString;
|
|
8715
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8716
|
-
type: z.ZodLiteral<"add_phase">;
|
|
8717
|
-
phase: z.ZodObject<{
|
|
8718
|
-
key: z.ZodString;
|
|
8719
|
-
name: z.ZodString;
|
|
8720
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8721
|
-
startAfter: z.ZodNullable<z.ZodString>;
|
|
8722
8584
|
duration: z.ZodOptional<z.ZodString>;
|
|
8723
|
-
|
|
8724
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8725
|
-
type: z.ZodLiteral<"remove_phase">;
|
|
8726
|
-
phaseKey: z.ZodString;
|
|
8727
|
-
shift: z.ZodEnum<{
|
|
8728
|
-
next: "next";
|
|
8729
|
-
prev: "prev";
|
|
8730
|
-
}>;
|
|
8731
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8732
|
-
type: z.ZodLiteral<"stretch_phase">;
|
|
8733
|
-
phaseKey: z.ZodString;
|
|
8734
|
-
extendBy: z.ZodString;
|
|
8735
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
8736
|
-
type: z.ZodLiteral<"unschedule_edit">;
|
|
8737
|
-
}, z.core.$strip>], "type">;
|
|
8738
|
-
export declare const subscriptionAddon: z.ZodObject<{
|
|
8739
|
-
id: z.ZodString;
|
|
8740
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8741
|
-
createdAt: z.ZodDate;
|
|
8742
|
-
updatedAt: z.ZodDate;
|
|
8743
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
8744
|
-
name: z.ZodString;
|
|
8745
|
-
description: z.ZodOptional<z.ZodString>;
|
|
8746
|
-
addon: z.ZodObject<{
|
|
8747
|
-
id: z.ZodString;
|
|
8748
|
-
}, z.core.$strip>;
|
|
8749
|
-
quantity: z.ZodNumber;
|
|
8750
|
-
quantityAt: z.ZodDate;
|
|
8751
|
-
activeFrom: z.ZodDate;
|
|
8752
|
-
activeTo: z.ZodOptional<z.ZodDate>;
|
|
8753
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
8754
|
-
activeFrom: z.ZodDate;
|
|
8755
|
-
activeTo: z.ZodOptional<z.ZodDate>;
|
|
8756
|
-
quantity: z.ZodNumber;
|
|
8757
|
-
}, z.core.$strip>>;
|
|
8758
|
-
rateCards: z.ZodArray<z.ZodObject<{
|
|
8759
|
-
rateCard: z.ZodObject<{
|
|
8585
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
8760
8586
|
name: z.ZodString;
|
|
8761
8587
|
description: z.ZodOptional<z.ZodString>;
|
|
8762
8588
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -8845,8 +8671,7 @@ export declare const subscriptionAddon: z.ZodObject<{
|
|
|
8845
8671
|
}, z.core.$strip>, z.ZodObject<{
|
|
8846
8672
|
type: z.ZodLiteral<"boolean">;
|
|
8847
8673
|
}, z.core.$strip>], "type">>;
|
|
8848
|
-
}, z.core.$strip
|
|
8849
|
-
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
8674
|
+
}, z.core.$strip>>;
|
|
8850
8675
|
}, z.core.$strip>>;
|
|
8851
8676
|
}, z.core.$strip>;
|
|
8852
8677
|
export declare const plan: z.ZodObject<{
|
|
@@ -9187,6 +9012,240 @@ export declare const upsertPlanRequest: z.ZodObject<{
|
|
|
9187
9012
|
}, z.core.$strip>>;
|
|
9188
9013
|
}, z.core.$strip>>;
|
|
9189
9014
|
}, z.core.$strip>;
|
|
9015
|
+
export declare const subscriptionEditOperation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9016
|
+
type: z.ZodLiteral<"add_item">;
|
|
9017
|
+
phaseKey: z.ZodString;
|
|
9018
|
+
rateCard: z.ZodObject<{
|
|
9019
|
+
name: z.ZodString;
|
|
9020
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9021
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
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>;
|
|
9119
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
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<{
|
|
9157
|
+
name: z.ZodString;
|
|
9158
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9159
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9160
|
+
key: z.ZodString;
|
|
9161
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
9162
|
+
id: z.ZodString;
|
|
9163
|
+
}, z.core.$strip>>;
|
|
9164
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
9165
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
9166
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9167
|
+
type: z.ZodLiteral<"free">;
|
|
9168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9169
|
+
type: z.ZodLiteral<"flat">;
|
|
9170
|
+
amount: z.ZodString;
|
|
9171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9172
|
+
type: z.ZodLiteral<"unit">;
|
|
9173
|
+
amount: z.ZodString;
|
|
9174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9175
|
+
type: z.ZodLiteral<"graduated">;
|
|
9176
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
9177
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
9178
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
9179
|
+
type: z.ZodLiteral<"flat">;
|
|
9180
|
+
amount: z.ZodString;
|
|
9181
|
+
}, z.core.$strip>>;
|
|
9182
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
9183
|
+
type: z.ZodLiteral<"unit">;
|
|
9184
|
+
amount: z.ZodString;
|
|
9185
|
+
}, z.core.$strip>>;
|
|
9186
|
+
}, z.core.$strip>>;
|
|
9187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9188
|
+
type: z.ZodLiteral<"volume">;
|
|
9189
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
9190
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
9191
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
9192
|
+
type: z.ZodLiteral<"flat">;
|
|
9193
|
+
amount: z.ZodString;
|
|
9194
|
+
}, z.core.$strip>>;
|
|
9195
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
9196
|
+
type: z.ZodLiteral<"unit">;
|
|
9197
|
+
amount: z.ZodString;
|
|
9198
|
+
}, z.core.$strip>>;
|
|
9199
|
+
}, z.core.$strip>>;
|
|
9200
|
+
}, z.core.$strip>], "type">;
|
|
9201
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
9202
|
+
operation: z.ZodEnum<{
|
|
9203
|
+
divide: "divide";
|
|
9204
|
+
multiply: "multiply";
|
|
9205
|
+
}>;
|
|
9206
|
+
conversionFactor: z.ZodString;
|
|
9207
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
9208
|
+
ceiling: "ceiling";
|
|
9209
|
+
floor: "floor";
|
|
9210
|
+
half_up: "half_up";
|
|
9211
|
+
none: "none";
|
|
9212
|
+
}>>>;
|
|
9213
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9214
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
9215
|
+
}, z.core.$strip>>;
|
|
9216
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
9217
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
9218
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
9219
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
9220
|
+
}, z.core.$strip>>;
|
|
9221
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
9222
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
9223
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
9224
|
+
}, z.core.$strip>>;
|
|
9225
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
9226
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
9227
|
+
exclusive: "exclusive";
|
|
9228
|
+
inclusive: "inclusive";
|
|
9229
|
+
}>>;
|
|
9230
|
+
code: z.ZodObject<{
|
|
9231
|
+
id: z.ZodString;
|
|
9232
|
+
}, z.core.$strip>;
|
|
9233
|
+
}, z.core.$strip>>;
|
|
9234
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9235
|
+
type: z.ZodLiteral<"metered">;
|
|
9236
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9237
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
9238
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
9239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9240
|
+
type: z.ZodLiteral<"static">;
|
|
9241
|
+
config: z.ZodUnknown;
|
|
9242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9243
|
+
type: z.ZodLiteral<"boolean">;
|
|
9244
|
+
}, z.core.$strip>], "type">>;
|
|
9245
|
+
}, z.core.$strip>;
|
|
9246
|
+
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
9247
|
+
}, z.core.$strip>>;
|
|
9248
|
+
}, z.core.$strip>;
|
|
9190
9249
|
export declare const addonPagePaginatedResponse: z.ZodObject<{
|
|
9191
9250
|
data: z.ZodArray<z.ZodObject<{
|
|
9192
9251
|
id: z.ZodString;
|
|
@@ -9844,155 +9903,35 @@ export declare const subscription: z.ZodObject<{
|
|
|
9844
9903
|
}, z.core.$strip>>;
|
|
9845
9904
|
}, z.core.$strip>>;
|
|
9846
9905
|
}, z.core.$strip>;
|
|
9847
|
-
export declare const
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
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<{
|
|
9922
|
+
name: z.ZodString;
|
|
9923
|
+
description: z.ZodOptional<z.ZodString>;
|
|
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<{
|
|
9852
9929
|
name: z.ZodString;
|
|
9853
9930
|
description: z.ZodOptional<z.ZodString>;
|
|
9854
9931
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9855
9932
|
key: z.ZodString;
|
|
9856
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
9857
|
-
id: z.ZodString;
|
|
9858
|
-
}, z.core.$strip>>;
|
|
9859
|
-
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
9860
|
-
billingCadence: z.ZodOptional<z.ZodString>;
|
|
9861
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9862
|
-
type: z.ZodLiteral<"free">;
|
|
9863
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9864
|
-
type: z.ZodLiteral<"flat">;
|
|
9865
|
-
amount: z.ZodString;
|
|
9866
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9867
|
-
type: z.ZodLiteral<"unit">;
|
|
9868
|
-
amount: z.ZodString;
|
|
9869
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9870
|
-
type: z.ZodLiteral<"graduated">;
|
|
9871
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
9872
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
9873
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
9874
|
-
type: z.ZodLiteral<"flat">;
|
|
9875
|
-
amount: z.ZodString;
|
|
9876
|
-
}, z.core.$strip>>;
|
|
9877
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
9878
|
-
type: z.ZodLiteral<"unit">;
|
|
9879
|
-
amount: z.ZodString;
|
|
9880
|
-
}, z.core.$strip>>;
|
|
9881
|
-
}, z.core.$strip>>;
|
|
9882
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9883
|
-
type: z.ZodLiteral<"volume">;
|
|
9884
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
9885
|
-
upToAmount: z.ZodOptional<z.ZodString>;
|
|
9886
|
-
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
9887
|
-
type: z.ZodLiteral<"flat">;
|
|
9888
|
-
amount: z.ZodString;
|
|
9889
|
-
}, z.core.$strip>>;
|
|
9890
|
-
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
9891
|
-
type: z.ZodLiteral<"unit">;
|
|
9892
|
-
amount: z.ZodString;
|
|
9893
|
-
}, z.core.$strip>>;
|
|
9894
|
-
}, z.core.$strip>>;
|
|
9895
|
-
}, z.core.$strip>], "type">;
|
|
9896
|
-
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
9897
|
-
operation: z.ZodEnum<{
|
|
9898
|
-
divide: "divide";
|
|
9899
|
-
multiply: "multiply";
|
|
9900
|
-
}>;
|
|
9901
|
-
conversionFactor: z.ZodString;
|
|
9902
|
-
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
9903
|
-
ceiling: "ceiling";
|
|
9904
|
-
floor: "floor";
|
|
9905
|
-
half_up: "half_up";
|
|
9906
|
-
none: "none";
|
|
9907
|
-
}>>>;
|
|
9908
|
-
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9909
|
-
displayUnit: z.ZodOptional<z.ZodString>;
|
|
9910
|
-
}, z.core.$strip>>;
|
|
9911
|
-
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
9912
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
9913
|
-
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
9914
|
-
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
9915
|
-
}, z.core.$strip>>;
|
|
9916
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
9917
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
9918
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
9919
|
-
}, z.core.$strip>>;
|
|
9920
|
-
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
9921
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
9922
|
-
exclusive: "exclusive";
|
|
9923
|
-
inclusive: "inclusive";
|
|
9924
|
-
}>>;
|
|
9925
|
-
code: z.ZodObject<{
|
|
9926
|
-
id: z.ZodString;
|
|
9927
|
-
}, z.core.$strip>;
|
|
9928
|
-
}, z.core.$strip>>;
|
|
9929
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
9930
|
-
type: z.ZodLiteral<"metered">;
|
|
9931
|
-
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
9932
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
9933
|
-
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
9934
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9935
|
-
type: z.ZodLiteral<"static">;
|
|
9936
|
-
config: z.ZodUnknown;
|
|
9937
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9938
|
-
type: z.ZodLiteral<"boolean">;
|
|
9939
|
-
}, z.core.$strip>], "type">>;
|
|
9940
|
-
}, z.core.$strip>;
|
|
9941
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9942
|
-
type: z.ZodLiteral<"remove_item">;
|
|
9943
|
-
phaseKey: z.ZodString;
|
|
9944
|
-
itemKey: z.ZodString;
|
|
9945
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9946
|
-
type: z.ZodLiteral<"add_phase">;
|
|
9947
|
-
phase: z.ZodObject<{
|
|
9948
|
-
key: z.ZodString;
|
|
9949
|
-
name: z.ZodString;
|
|
9950
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9951
|
-
startAfter: z.ZodNullable<z.ZodString>;
|
|
9952
9933
|
duration: z.ZodOptional<z.ZodString>;
|
|
9953
|
-
|
|
9954
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9955
|
-
type: z.ZodLiteral<"remove_phase">;
|
|
9956
|
-
phaseKey: z.ZodString;
|
|
9957
|
-
shift: z.ZodEnum<{
|
|
9958
|
-
next: "next";
|
|
9959
|
-
prev: "prev";
|
|
9960
|
-
}>;
|
|
9961
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9962
|
-
type: z.ZodLiteral<"stretch_phase">;
|
|
9963
|
-
phaseKey: z.ZodString;
|
|
9964
|
-
extendBy: z.ZodString;
|
|
9965
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9966
|
-
type: z.ZodLiteral<"unschedule_edit">;
|
|
9967
|
-
}, z.core.$strip>], "type">>;
|
|
9968
|
-
timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
9969
|
-
immediate: "immediate";
|
|
9970
|
-
next_billing_cycle: "next_billing_cycle";
|
|
9971
|
-
}>, z.ZodDate]>>>;
|
|
9972
|
-
}, z.core.$strip>;
|
|
9973
|
-
export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
|
|
9974
|
-
data: z.ZodArray<z.ZodObject<{
|
|
9975
|
-
id: z.ZodString;
|
|
9976
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
9977
|
-
createdAt: z.ZodDate;
|
|
9978
|
-
updatedAt: z.ZodDate;
|
|
9979
|
-
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
9980
|
-
name: z.ZodString;
|
|
9981
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9982
|
-
addon: z.ZodObject<{
|
|
9983
|
-
id: z.ZodString;
|
|
9984
|
-
}, z.core.$strip>;
|
|
9985
|
-
quantity: z.ZodNumber;
|
|
9986
|
-
quantityAt: z.ZodDate;
|
|
9987
|
-
activeFrom: z.ZodDate;
|
|
9988
|
-
activeTo: z.ZodOptional<z.ZodDate>;
|
|
9989
|
-
timeline: z.ZodArray<z.ZodObject<{
|
|
9990
|
-
activeFrom: z.ZodDate;
|
|
9991
|
-
activeTo: z.ZodOptional<z.ZodDate>;
|
|
9992
|
-
quantity: z.ZodNumber;
|
|
9993
|
-
}, z.core.$strip>>;
|
|
9994
|
-
rateCards: z.ZodArray<z.ZodObject<{
|
|
9995
|
-
rateCard: z.ZodObject<{
|
|
9934
|
+
rateCards: z.ZodArray<z.ZodObject<{
|
|
9996
9935
|
name: z.ZodString;
|
|
9997
9936
|
description: z.ZodOptional<z.ZodString>;
|
|
9998
9937
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -10081,17 +10020,144 @@ export declare const subscriptionAddonPagePaginatedResponse: z.ZodObject<{
|
|
|
10081
10020
|
}, z.core.$strip>, z.ZodObject<{
|
|
10082
10021
|
type: z.ZodLiteral<"boolean">;
|
|
10083
10022
|
}, z.core.$strip>], "type">>;
|
|
10084
|
-
}, z.core.$strip
|
|
10085
|
-
affectedSubscriptionItemIds: z.ZodArray<z.ZodString>;
|
|
10023
|
+
}, z.core.$strip>>;
|
|
10086
10024
|
}, z.core.$strip>>;
|
|
10087
10025
|
}, z.core.$strip>>;
|
|
10088
|
-
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10026
|
+
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
10027
|
+
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
10028
|
+
dynamic: "dynamic";
|
|
10029
|
+
pinned: "pinned";
|
|
10030
|
+
}>>>;
|
|
10031
|
+
}, z.core.$strip>;
|
|
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>;
|
|
10094
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<{
|
|
10048
|
+
name: z.ZodString;
|
|
10049
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10050
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10051
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
10052
|
+
billingCadence: z.ZodString;
|
|
10053
|
+
proRatingEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
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]>;
|
|
10095
10161
|
}, z.core.$strip>;
|
|
10096
10162
|
export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
10097
10163
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -10231,6 +10297,255 @@ export declare const planPagePaginatedResponse: z.ZodObject<{
|
|
|
10231
10297
|
}, z.core.$strip>;
|
|
10232
10298
|
}, z.core.$strip>;
|
|
10233
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>;
|
|
10234
10549
|
export declare const invoiceStandard: z.ZodObject<{
|
|
10235
10550
|
id: z.ZodString;
|
|
10236
10551
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -20341,11 +20656,116 @@ export declare const createSubscriptionBody: z.ZodObject<{
|
|
|
20341
20656
|
id: z.ZodOptional<z.ZodString>;
|
|
20342
20657
|
key: z.ZodOptional<z.ZodString>;
|
|
20343
20658
|
}, z.core.$strip>;
|
|
20344
|
-
plan: z.ZodObject<{
|
|
20659
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
20345
20660
|
id: z.ZodOptional<z.ZodString>;
|
|
20346
20661
|
key: z.ZodOptional<z.ZodString>;
|
|
20347
20662
|
version: z.ZodOptional<z.ZodNumber>;
|
|
20348
|
-
}, 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>>;
|
|
20349
20769
|
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
20350
20770
|
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20351
20771
|
dynamic: "dynamic";
|
|
@@ -21216,11 +21636,116 @@ export declare const changeSubscriptionBody: z.ZodObject<{
|
|
|
21216
21636
|
id: z.ZodOptional<z.ZodString>;
|
|
21217
21637
|
key: z.ZodOptional<z.ZodString>;
|
|
21218
21638
|
}, z.core.$strip>;
|
|
21219
|
-
plan: z.ZodObject<{
|
|
21639
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
21220
21640
|
id: z.ZodOptional<z.ZodString>;
|
|
21221
21641
|
key: z.ZodOptional<z.ZodString>;
|
|
21222
21642
|
version: z.ZodOptional<z.ZodNumber>;
|
|
21223
|
-
}, 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>>;
|
|
21224
21749
|
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
21225
21750
|
costBasisMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
21226
21751
|
dynamic: "dynamic";
|
|
@@ -30931,27 +31456,6 @@ export declare const rateCardProrationConfigurationWire: z.ZodObject<{
|
|
|
30931
31456
|
prorate_prices: "prorate_prices";
|
|
30932
31457
|
}>;
|
|
30933
31458
|
}, z.core.$strict>;
|
|
30934
|
-
export declare const subscriptionCreateWire: z.ZodObject<{
|
|
30935
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30936
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
30937
|
-
credit_only: "credit_only";
|
|
30938
|
-
credit_then_invoice: "credit_then_invoice";
|
|
30939
|
-
}>>;
|
|
30940
|
-
customer: z.ZodObject<{
|
|
30941
|
-
id: z.ZodOptional<z.ZodString>;
|
|
30942
|
-
key: z.ZodOptional<z.ZodString>;
|
|
30943
|
-
}, z.core.$strict>;
|
|
30944
|
-
plan: z.ZodObject<{
|
|
30945
|
-
id: z.ZodOptional<z.ZodString>;
|
|
30946
|
-
key: z.ZodOptional<z.ZodString>;
|
|
30947
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
30948
|
-
}, z.core.$strict>;
|
|
30949
|
-
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
30950
|
-
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
30951
|
-
dynamic: "dynamic";
|
|
30952
|
-
pinned: "pinned";
|
|
30953
|
-
}>>;
|
|
30954
|
-
}, z.core.$strict>;
|
|
30955
31459
|
export declare const unitConfigWire: z.ZodObject<{
|
|
30956
31460
|
operation: z.ZodEnum<{
|
|
30957
31461
|
divide: "divide";
|
|
@@ -32518,31 +33022,6 @@ export declare const subscriptionCancelWire: z.ZodObject<{
|
|
|
32518
33022
|
next_billing_cycle: "next_billing_cycle";
|
|
32519
33023
|
}>, z.ZodString]>>;
|
|
32520
33024
|
}, z.core.$strict>;
|
|
32521
|
-
export declare const subscriptionChangeWire: z.ZodObject<{
|
|
32522
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32523
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
32524
|
-
credit_only: "credit_only";
|
|
32525
|
-
credit_then_invoice: "credit_then_invoice";
|
|
32526
|
-
}>>;
|
|
32527
|
-
customer: z.ZodObject<{
|
|
32528
|
-
id: z.ZodOptional<z.ZodString>;
|
|
32529
|
-
key: z.ZodOptional<z.ZodString>;
|
|
32530
|
-
}, z.core.$strict>;
|
|
32531
|
-
plan: z.ZodObject<{
|
|
32532
|
-
id: z.ZodOptional<z.ZodString>;
|
|
32533
|
-
key: z.ZodOptional<z.ZodString>;
|
|
32534
|
-
version: z.ZodOptional<z.ZodNumber>;
|
|
32535
|
-
}, z.core.$strict>;
|
|
32536
|
-
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
32537
|
-
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
32538
|
-
dynamic: "dynamic";
|
|
32539
|
-
pinned: "pinned";
|
|
32540
|
-
}>>;
|
|
32541
|
-
timing: z.ZodUnion<readonly [z.ZodEnum<{
|
|
32542
|
-
immediate: "immediate";
|
|
32543
|
-
next_billing_cycle: "next_billing_cycle";
|
|
32544
|
-
}>, z.ZodString]>;
|
|
32545
|
-
}, z.core.$strict>;
|
|
32546
33025
|
export declare const createSubscriptionAddonRequestWire: z.ZodObject<{
|
|
32547
33026
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
32548
33027
|
addon: z.ZodObject<{
|
|
@@ -36425,10 +36904,13 @@ export declare const subscriptionItemWire: z.ZodObject<{
|
|
|
36425
36904
|
}, z.core.$strict>], "type">>;
|
|
36426
36905
|
}, z.core.$strict>;
|
|
36427
36906
|
}, z.core.$strict>;
|
|
36428
|
-
export declare const
|
|
36429
|
-
|
|
36430
|
-
|
|
36431
|
-
|
|
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<{
|
|
36432
36914
|
name: z.ZodString;
|
|
36433
36915
|
description: z.ZodOptional<z.ZodString>;
|
|
36434
36916
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -36517,9 +36999,11 @@ export declare const subscriptionEditAddItemWire: z.ZodObject<{
|
|
|
36517
36999
|
}, z.core.$strict>, z.ZodObject<{
|
|
36518
37000
|
type: z.ZodLiteral<"boolean">;
|
|
36519
37001
|
}, z.core.$strict>], "type">>;
|
|
36520
|
-
}, z.core.$strict
|
|
37002
|
+
}, z.core.$strict>>;
|
|
36521
37003
|
}, z.core.$strict>;
|
|
36522
|
-
export declare const
|
|
37004
|
+
export declare const subscriptionEditAddItemWire: z.ZodObject<{
|
|
37005
|
+
type: z.ZodLiteral<"add_item">;
|
|
37006
|
+
phase_key: z.ZodString;
|
|
36523
37007
|
rate_card: z.ZodObject<{
|
|
36524
37008
|
name: z.ZodString;
|
|
36525
37009
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -36610,15 +37094,9 @@ export declare const subscriptionAddonRateCardWire: z.ZodObject<{
|
|
|
36610
37094
|
type: z.ZodLiteral<"boolean">;
|
|
36611
37095
|
}, z.core.$strict>], "type">>;
|
|
36612
37096
|
}, z.core.$strict>;
|
|
36613
|
-
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
36614
37097
|
}, z.core.$strict>;
|
|
36615
|
-
export declare const
|
|
36616
|
-
|
|
36617
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36618
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36619
|
-
key: z.ZodString;
|
|
36620
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
36621
|
-
rate_cards: z.ZodArray<z.ZodObject<{
|
|
37098
|
+
export declare const subscriptionAddonRateCardWire: z.ZodObject<{
|
|
37099
|
+
rate_card: z.ZodObject<{
|
|
36622
37100
|
name: z.ZodString;
|
|
36623
37101
|
description: z.ZodOptional<z.ZodString>;
|
|
36624
37102
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -36707,7 +37185,8 @@ export declare const planPhaseWire: z.ZodObject<{
|
|
|
36707
37185
|
}, z.core.$strict>, z.ZodObject<{
|
|
36708
37186
|
type: z.ZodLiteral<"boolean">;
|
|
36709
37187
|
}, z.core.$strict>], "type">>;
|
|
36710
|
-
}, z.core.$strict
|
|
37188
|
+
}, z.core.$strict>;
|
|
37189
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
36711
37190
|
}, z.core.$strict>;
|
|
36712
37191
|
export declare const addonWire: z.ZodObject<{
|
|
36713
37192
|
id: z.ZodString;
|
|
@@ -38068,148 +38547,139 @@ export declare const subscriptionPhaseWire: z.ZodObject<{
|
|
|
38068
38547
|
}, z.core.$strict>;
|
|
38069
38548
|
}, z.core.$strict>>;
|
|
38070
38549
|
}, z.core.$strict>;
|
|
38071
|
-
export declare const
|
|
38072
|
-
|
|
38073
|
-
|
|
38074
|
-
|
|
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<{
|
|
38075
38558
|
name: z.ZodString;
|
|
38076
38559
|
description: z.ZodOptional<z.ZodString>;
|
|
38077
38560
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38078
38561
|
key: z.ZodString;
|
|
38079
|
-
|
|
38080
|
-
|
|
38081
|
-
|
|
38082
|
-
|
|
38083
|
-
|
|
38084
|
-
|
|
38085
|
-
|
|
38086
|
-
|
|
38087
|
-
type: z.ZodLiteral<"flat">;
|
|
38088
|
-
amount: z.ZodString;
|
|
38089
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38090
|
-
type: z.ZodLiteral<"unit">;
|
|
38091
|
-
amount: z.ZodString;
|
|
38092
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38093
|
-
type: z.ZodLiteral<"graduated">;
|
|
38094
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
38095
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
38096
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
38097
|
-
type: z.ZodLiteral<"flat">;
|
|
38098
|
-
amount: z.ZodString;
|
|
38099
|
-
}, z.core.$strict>>;
|
|
38100
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
38101
|
-
type: z.ZodLiteral<"unit">;
|
|
38102
|
-
amount: z.ZodString;
|
|
38103
|
-
}, z.core.$strict>>;
|
|
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;
|
|
38104
38570
|
}, z.core.$strict>>;
|
|
38105
|
-
|
|
38106
|
-
|
|
38107
|
-
|
|
38108
|
-
|
|
38109
|
-
|
|
38110
|
-
|
|
38111
|
-
|
|
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>>;
|
|
38112
38593
|
}, z.core.$strict>>;
|
|
38113
|
-
|
|
38114
|
-
|
|
38115
|
-
|
|
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>>;
|
|
38116
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>;
|
|
38117
38622
|
}, z.core.$strict>>;
|
|
38118
|
-
|
|
38119
|
-
|
|
38120
|
-
|
|
38121
|
-
|
|
38122
|
-
|
|
38123
|
-
|
|
38124
|
-
|
|
38125
|
-
|
|
38126
|
-
|
|
38127
|
-
|
|
38128
|
-
|
|
38129
|
-
|
|
38130
|
-
|
|
38131
|
-
|
|
38132
|
-
|
|
38133
|
-
|
|
38134
|
-
|
|
38135
|
-
|
|
38136
|
-
|
|
38137
|
-
|
|
38138
|
-
|
|
38139
|
-
|
|
38140
|
-
|
|
38141
|
-
|
|
38142
|
-
|
|
38143
|
-
|
|
38144
|
-
|
|
38145
|
-
|
|
38146
|
-
|
|
38147
|
-
}>>;
|
|
38148
|
-
code: z.ZodObject<{
|
|
38149
|
-
id: z.ZodString;
|
|
38150
|
-
}, 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">>;
|
|
38151
38652
|
}, z.core.$strict>>;
|
|
38152
|
-
|
|
38153
|
-
|
|
38154
|
-
|
|
38155
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
38156
|
-
usage_period: z.ZodOptional<z.ZodString>;
|
|
38157
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38158
|
-
type: z.ZodLiteral<"static">;
|
|
38159
|
-
config: z.ZodUnknown;
|
|
38160
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38161
|
-
type: z.ZodLiteral<"boolean">;
|
|
38162
|
-
}, z.core.$strict>], "type">>;
|
|
38163
|
-
}, z.core.$strict>;
|
|
38164
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38165
|
-
type: z.ZodLiteral<"remove_item">;
|
|
38166
|
-
phase_key: z.ZodString;
|
|
38167
|
-
item_key: z.ZodString;
|
|
38168
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38169
|
-
type: z.ZodLiteral<"add_phase">;
|
|
38170
|
-
phase: z.ZodObject<{
|
|
38171
|
-
key: z.ZodString;
|
|
38172
|
-
name: z.ZodString;
|
|
38173
|
-
description: z.ZodOptional<z.ZodString>;
|
|
38174
|
-
start_after: z.ZodNullable<z.ZodString>;
|
|
38175
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
38176
|
-
}, z.core.$strict>;
|
|
38177
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38178
|
-
type: z.ZodLiteral<"remove_phase">;
|
|
38179
|
-
phase_key: z.ZodString;
|
|
38180
|
-
shift: z.ZodEnum<{
|
|
38181
|
-
next: "next";
|
|
38182
|
-
prev: "prev";
|
|
38183
|
-
}>;
|
|
38184
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38185
|
-
type: z.ZodLiteral<"stretch_phase">;
|
|
38186
|
-
phase_key: z.ZodString;
|
|
38187
|
-
extend_by: z.ZodString;
|
|
38188
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
38189
|
-
type: z.ZodLiteral<"unschedule_edit">;
|
|
38190
|
-
}, z.core.$strict>], "type">;
|
|
38191
|
-
export declare const subscriptionAddonWire: z.ZodObject<{
|
|
38653
|
+
}, z.core.$strict>>;
|
|
38654
|
+
}, z.core.$strict>;
|
|
38655
|
+
export declare const planWire: z.ZodObject<{
|
|
38192
38656
|
id: z.ZodString;
|
|
38657
|
+
name: z.ZodString;
|
|
38658
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38193
38659
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38194
38660
|
created_at: z.ZodString;
|
|
38195
38661
|
updated_at: z.ZodString;
|
|
38196
38662
|
deleted_at: z.ZodOptional<z.ZodString>;
|
|
38197
|
-
|
|
38198
|
-
|
|
38199
|
-
|
|
38200
|
-
|
|
38201
|
-
|
|
38202
|
-
|
|
38203
|
-
|
|
38204
|
-
|
|
38205
|
-
|
|
38206
|
-
|
|
38207
|
-
|
|
38208
|
-
|
|
38209
|
-
|
|
38210
|
-
|
|
38211
|
-
|
|
38212
|
-
|
|
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<{
|
|
38213
38683
|
name: z.ZodString;
|
|
38214
38684
|
description: z.ZodOptional<z.ZodString>;
|
|
38215
38685
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -38298,31 +38768,27 @@ export declare const subscriptionAddonWire: z.ZodObject<{
|
|
|
38298
38768
|
}, z.core.$strict>, z.ZodObject<{
|
|
38299
38769
|
type: z.ZodLiteral<"boolean">;
|
|
38300
38770
|
}, z.core.$strict>], "type">>;
|
|
38301
|
-
}, z.core.$strict
|
|
38302
|
-
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
38771
|
+
}, z.core.$strict>>;
|
|
38303
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>>>;
|
|
38304
38783
|
}, z.core.$strict>;
|
|
38305
|
-
export declare const
|
|
38306
|
-
id: z.ZodString;
|
|
38784
|
+
export declare const createPlanRequestWire: z.ZodObject<{
|
|
38307
38785
|
name: z.ZodString;
|
|
38308
38786
|
description: z.ZodOptional<z.ZodString>;
|
|
38309
38787
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38310
|
-
created_at: z.ZodString;
|
|
38311
|
-
updated_at: z.ZodString;
|
|
38312
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
38313
38788
|
key: z.ZodString;
|
|
38314
|
-
version: z.ZodNumber;
|
|
38315
38789
|
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
38316
38790
|
billing_cadence: z.ZodString;
|
|
38317
38791
|
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
38318
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
38319
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
38320
|
-
status: z.ZodEnum<{
|
|
38321
|
-
active: "active";
|
|
38322
|
-
archived: "archived";
|
|
38323
|
-
draft: "draft";
|
|
38324
|
-
scheduled: "scheduled";
|
|
38325
|
-
}>;
|
|
38326
38792
|
phases: z.ZodArray<z.ZodObject<{
|
|
38327
38793
|
name: z.ZodString;
|
|
38328
38794
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -38420,24 +38886,11 @@ export declare const planWire: z.ZodObject<{
|
|
|
38420
38886
|
}, z.core.$strict>], "type">>;
|
|
38421
38887
|
}, z.core.$strict>>;
|
|
38422
38888
|
}, z.core.$strict>>;
|
|
38423
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
38424
|
-
credit_only: "credit_only";
|
|
38425
|
-
credit_then_invoice: "credit_then_invoice";
|
|
38426
|
-
}>>;
|
|
38427
|
-
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38428
|
-
code: z.ZodString;
|
|
38429
|
-
message: z.ZodString;
|
|
38430
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
38431
|
-
field: z.ZodString;
|
|
38432
|
-
}, z.core.$strict>>>;
|
|
38433
38889
|
}, z.core.$strict>;
|
|
38434
|
-
export declare const
|
|
38890
|
+
export declare const upsertPlanRequestWire: z.ZodObject<{
|
|
38435
38891
|
name: z.ZodString;
|
|
38436
38892
|
description: z.ZodOptional<z.ZodString>;
|
|
38437
38893
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38438
|
-
key: z.ZodString;
|
|
38439
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
38440
|
-
billing_cadence: z.ZodString;
|
|
38441
38894
|
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
38442
38895
|
phases: z.ZodArray<z.ZodObject<{
|
|
38443
38896
|
name: z.ZodString;
|
|
@@ -38537,18 +38990,148 @@ export declare const createPlanRequestWire: z.ZodObject<{
|
|
|
38537
38990
|
}, z.core.$strict>>;
|
|
38538
38991
|
}, z.core.$strict>>;
|
|
38539
38992
|
}, z.core.$strict>;
|
|
38540
|
-
export declare const
|
|
38541
|
-
|
|
38542
|
-
|
|
38543
|
-
|
|
38544
|
-
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
38545
|
-
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<{
|
|
38546
38997
|
name: z.ZodString;
|
|
38547
38998
|
description: z.ZodOptional<z.ZodString>;
|
|
38548
38999
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
38549
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>;
|
|
38550
39097
|
duration: z.ZodOptional<z.ZodString>;
|
|
38551
|
-
|
|
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<{
|
|
38552
39135
|
name: z.ZodString;
|
|
38553
39136
|
description: z.ZodOptional<z.ZodString>;
|
|
38554
39137
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -38637,7 +39220,8 @@ export declare const upsertPlanRequestWire: z.ZodObject<{
|
|
|
38637
39220
|
}, z.core.$strict>, z.ZodObject<{
|
|
38638
39221
|
type: z.ZodLiteral<"boolean">;
|
|
38639
39222
|
}, z.core.$strict>], "type">>;
|
|
38640
|
-
}, z.core.$strict
|
|
39223
|
+
}, z.core.$strict>;
|
|
39224
|
+
affected_subscription_item_ids: z.ZodArray<z.ZodString>;
|
|
38641
39225
|
}, z.core.$strict>>;
|
|
38642
39226
|
}, z.core.$strict>;
|
|
38643
39227
|
export declare const addonPagePaginatedResponseWire: z.ZodObject<{
|
|
@@ -39297,6 +39881,400 @@ export declare const subscriptionWire: z.ZodObject<{
|
|
|
39297
39881
|
}, z.core.$strict>>;
|
|
39298
39882
|
}, z.core.$strict>>;
|
|
39299
39883
|
}, z.core.$strict>;
|
|
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<{
|
|
39900
|
+
name: z.ZodString;
|
|
39901
|
+
description: z.ZodOptional<z.ZodString>;
|
|
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<{
|
|
39913
|
+
name: z.ZodString;
|
|
39914
|
+
description: z.ZodOptional<z.ZodString>;
|
|
39915
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39916
|
+
key: z.ZodString;
|
|
39917
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
39918
|
+
id: z.ZodString;
|
|
39919
|
+
}, z.core.$strict>>;
|
|
39920
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
39921
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
39922
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39923
|
+
type: z.ZodLiteral<"free">;
|
|
39924
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39925
|
+
type: z.ZodLiteral<"flat">;
|
|
39926
|
+
amount: z.ZodString;
|
|
39927
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39928
|
+
type: z.ZodLiteral<"unit">;
|
|
39929
|
+
amount: z.ZodString;
|
|
39930
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39931
|
+
type: z.ZodLiteral<"graduated">;
|
|
39932
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
39933
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
39934
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
39935
|
+
type: z.ZodLiteral<"flat">;
|
|
39936
|
+
amount: z.ZodString;
|
|
39937
|
+
}, z.core.$strict>>;
|
|
39938
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
39939
|
+
type: z.ZodLiteral<"unit">;
|
|
39940
|
+
amount: z.ZodString;
|
|
39941
|
+
}, z.core.$strict>>;
|
|
39942
|
+
}, z.core.$strict>>;
|
|
39943
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39944
|
+
type: z.ZodLiteral<"volume">;
|
|
39945
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
39946
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
39947
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
39948
|
+
type: z.ZodLiteral<"flat">;
|
|
39949
|
+
amount: z.ZodString;
|
|
39950
|
+
}, z.core.$strict>>;
|
|
39951
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
39952
|
+
type: z.ZodLiteral<"unit">;
|
|
39953
|
+
amount: z.ZodString;
|
|
39954
|
+
}, z.core.$strict>>;
|
|
39955
|
+
}, z.core.$strict>>;
|
|
39956
|
+
}, z.core.$strict>], "type">;
|
|
39957
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
39958
|
+
operation: z.ZodEnum<{
|
|
39959
|
+
divide: "divide";
|
|
39960
|
+
multiply: "multiply";
|
|
39961
|
+
}>;
|
|
39962
|
+
conversion_factor: z.ZodString;
|
|
39963
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
39964
|
+
ceiling: "ceiling";
|
|
39965
|
+
floor: "floor";
|
|
39966
|
+
half_up: "half_up";
|
|
39967
|
+
none: "none";
|
|
39968
|
+
}>>;
|
|
39969
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
39970
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
39971
|
+
}, z.core.$strict>>;
|
|
39972
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
39973
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
39974
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
39975
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
39976
|
+
}, z.core.$strict>>;
|
|
39977
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
39978
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
39979
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
39980
|
+
}, z.core.$strict>>;
|
|
39981
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
39982
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
39983
|
+
exclusive: "exclusive";
|
|
39984
|
+
inclusive: "inclusive";
|
|
39985
|
+
}>>;
|
|
39986
|
+
code: z.ZodObject<{
|
|
39987
|
+
id: z.ZodString;
|
|
39988
|
+
}, z.core.$strict>;
|
|
39989
|
+
}, z.core.$strict>>;
|
|
39990
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39991
|
+
type: z.ZodLiteral<"metered">;
|
|
39992
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
39993
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
39994
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
39995
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39996
|
+
type: z.ZodLiteral<"static">;
|
|
39997
|
+
config: z.ZodUnknown;
|
|
39998
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
39999
|
+
type: z.ZodLiteral<"boolean">;
|
|
40000
|
+
}, z.core.$strict>], "type">>;
|
|
40001
|
+
}, z.core.$strict>>;
|
|
40002
|
+
}, z.core.$strict>>;
|
|
40003
|
+
}, 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
|
+
}>>;
|
|
40009
|
+
}, z.core.$strict>;
|
|
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<{
|
|
40026
|
+
name: z.ZodString;
|
|
40027
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40028
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40029
|
+
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
40030
|
+
billing_cadence: z.ZodString;
|
|
40031
|
+
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
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
|
+
}>;
|
|
40162
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
40163
|
+
name: z.ZodString;
|
|
40164
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40165
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40166
|
+
key: z.ZodString;
|
|
40167
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
40168
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
40169
|
+
name: z.ZodString;
|
|
40170
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40171
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
40172
|
+
key: z.ZodString;
|
|
40173
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
40174
|
+
id: z.ZodString;
|
|
40175
|
+
}, z.core.$strict>>;
|
|
40176
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
40177
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
40178
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40179
|
+
type: z.ZodLiteral<"free">;
|
|
40180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40181
|
+
type: z.ZodLiteral<"flat">;
|
|
40182
|
+
amount: z.ZodString;
|
|
40183
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40184
|
+
type: z.ZodLiteral<"unit">;
|
|
40185
|
+
amount: z.ZodString;
|
|
40186
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40187
|
+
type: z.ZodLiteral<"graduated">;
|
|
40188
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40189
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40190
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40191
|
+
type: z.ZodLiteral<"flat">;
|
|
40192
|
+
amount: z.ZodString;
|
|
40193
|
+
}, z.core.$strict>>;
|
|
40194
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40195
|
+
type: z.ZodLiteral<"unit">;
|
|
40196
|
+
amount: z.ZodString;
|
|
40197
|
+
}, z.core.$strict>>;
|
|
40198
|
+
}, z.core.$strict>>;
|
|
40199
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40200
|
+
type: z.ZodLiteral<"volume">;
|
|
40201
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
40202
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
40203
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
40204
|
+
type: z.ZodLiteral<"flat">;
|
|
40205
|
+
amount: z.ZodString;
|
|
40206
|
+
}, z.core.$strict>>;
|
|
40207
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
40208
|
+
type: z.ZodLiteral<"unit">;
|
|
40209
|
+
amount: z.ZodString;
|
|
40210
|
+
}, z.core.$strict>>;
|
|
40211
|
+
}, z.core.$strict>>;
|
|
40212
|
+
}, z.core.$strict>], "type">;
|
|
40213
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
40214
|
+
operation: z.ZodEnum<{
|
|
40215
|
+
divide: "divide";
|
|
40216
|
+
multiply: "multiply";
|
|
40217
|
+
}>;
|
|
40218
|
+
conversion_factor: z.ZodString;
|
|
40219
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
40220
|
+
ceiling: "ceiling";
|
|
40221
|
+
floor: "floor";
|
|
40222
|
+
half_up: "half_up";
|
|
40223
|
+
none: "none";
|
|
40224
|
+
}>>;
|
|
40225
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
40226
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
40227
|
+
}, z.core.$strict>>;
|
|
40228
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
40229
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
40230
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
40231
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
40232
|
+
}, z.core.$strict>>;
|
|
40233
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
40234
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
40235
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
40236
|
+
}, z.core.$strict>>;
|
|
40237
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
40238
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
40239
|
+
exclusive: "exclusive";
|
|
40240
|
+
inclusive: "inclusive";
|
|
40241
|
+
}>>;
|
|
40242
|
+
code: z.ZodObject<{
|
|
40243
|
+
id: z.ZodString;
|
|
40244
|
+
}, z.core.$strict>;
|
|
40245
|
+
}, z.core.$strict>>;
|
|
40246
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40247
|
+
type: z.ZodLiteral<"metered">;
|
|
40248
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
40249
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
40250
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
40251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40252
|
+
type: z.ZodLiteral<"static">;
|
|
40253
|
+
config: z.ZodUnknown;
|
|
40254
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
40255
|
+
type: z.ZodLiteral<"boolean">;
|
|
40256
|
+
}, z.core.$strict>], "type">>;
|
|
40257
|
+
}, z.core.$strict>>;
|
|
40258
|
+
}, z.core.$strict>>;
|
|
40259
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
40260
|
+
credit_only: "credit_only";
|
|
40261
|
+
credit_then_invoice: "credit_then_invoice";
|
|
40262
|
+
}>>;
|
|
40263
|
+
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
40264
|
+
code: z.ZodString;
|
|
40265
|
+
message: z.ZodString;
|
|
40266
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
40267
|
+
field: z.ZodString;
|
|
40268
|
+
}, z.core.$strict>>>;
|
|
40269
|
+
}, z.core.$strict>>;
|
|
40270
|
+
meta: z.ZodObject<{
|
|
40271
|
+
page: z.ZodObject<{
|
|
40272
|
+
number: z.ZodNumber;
|
|
40273
|
+
size: z.ZodNumber;
|
|
40274
|
+
total: z.ZodNumber;
|
|
40275
|
+
}, z.core.$strict>;
|
|
40276
|
+
}, z.core.$strict>;
|
|
40277
|
+
}, z.core.$strict>;
|
|
39300
40278
|
export declare const subscriptionEditWire: z.ZodObject<{
|
|
39301
40279
|
customizations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39302
40280
|
type: z.ZodLiteral<"add_item">;
|
|
@@ -39546,144 +40524,6 @@ export declare const subscriptionAddonPagePaginatedResponseWire: z.ZodObject<{
|
|
|
39546
40524
|
}, z.core.$strict>;
|
|
39547
40525
|
}, z.core.$strict>;
|
|
39548
40526
|
}, z.core.$strict>;
|
|
39549
|
-
export declare const planPagePaginatedResponseWire: z.ZodObject<{
|
|
39550
|
-
data: z.ZodArray<z.ZodObject<{
|
|
39551
|
-
id: z.ZodString;
|
|
39552
|
-
name: z.ZodString;
|
|
39553
|
-
description: z.ZodOptional<z.ZodString>;
|
|
39554
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39555
|
-
created_at: z.ZodString;
|
|
39556
|
-
updated_at: z.ZodString;
|
|
39557
|
-
deleted_at: z.ZodOptional<z.ZodString>;
|
|
39558
|
-
key: z.ZodString;
|
|
39559
|
-
version: z.ZodNumber;
|
|
39560
|
-
currency: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
39561
|
-
billing_cadence: z.ZodString;
|
|
39562
|
-
pro_rating_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
39563
|
-
effective_from: z.ZodOptional<z.ZodString>;
|
|
39564
|
-
effective_to: z.ZodOptional<z.ZodString>;
|
|
39565
|
-
status: z.ZodEnum<{
|
|
39566
|
-
active: "active";
|
|
39567
|
-
archived: "archived";
|
|
39568
|
-
draft: "draft";
|
|
39569
|
-
scheduled: "scheduled";
|
|
39570
|
-
}>;
|
|
39571
|
-
phases: z.ZodArray<z.ZodObject<{
|
|
39572
|
-
name: z.ZodString;
|
|
39573
|
-
description: z.ZodOptional<z.ZodString>;
|
|
39574
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39575
|
-
key: z.ZodString;
|
|
39576
|
-
duration: z.ZodOptional<z.ZodString>;
|
|
39577
|
-
rate_cards: z.ZodArray<z.ZodObject<{
|
|
39578
|
-
name: z.ZodString;
|
|
39579
|
-
description: z.ZodOptional<z.ZodString>;
|
|
39580
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
39581
|
-
key: z.ZodString;
|
|
39582
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
39583
|
-
id: z.ZodString;
|
|
39584
|
-
}, z.core.$strict>>;
|
|
39585
|
-
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
39586
|
-
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
39587
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39588
|
-
type: z.ZodLiteral<"free">;
|
|
39589
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39590
|
-
type: z.ZodLiteral<"flat">;
|
|
39591
|
-
amount: z.ZodString;
|
|
39592
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39593
|
-
type: z.ZodLiteral<"unit">;
|
|
39594
|
-
amount: z.ZodString;
|
|
39595
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39596
|
-
type: z.ZodLiteral<"graduated">;
|
|
39597
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
39598
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
39599
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
39600
|
-
type: z.ZodLiteral<"flat">;
|
|
39601
|
-
amount: z.ZodString;
|
|
39602
|
-
}, z.core.$strict>>;
|
|
39603
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
39604
|
-
type: z.ZodLiteral<"unit">;
|
|
39605
|
-
amount: z.ZodString;
|
|
39606
|
-
}, z.core.$strict>>;
|
|
39607
|
-
}, z.core.$strict>>;
|
|
39608
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39609
|
-
type: z.ZodLiteral<"volume">;
|
|
39610
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
39611
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
39612
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
39613
|
-
type: z.ZodLiteral<"flat">;
|
|
39614
|
-
amount: z.ZodString;
|
|
39615
|
-
}, z.core.$strict>>;
|
|
39616
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
39617
|
-
type: z.ZodLiteral<"unit">;
|
|
39618
|
-
amount: z.ZodString;
|
|
39619
|
-
}, z.core.$strict>>;
|
|
39620
|
-
}, z.core.$strict>>;
|
|
39621
|
-
}, z.core.$strict>], "type">;
|
|
39622
|
-
unit_config: z.ZodOptional<z.ZodObject<{
|
|
39623
|
-
operation: z.ZodEnum<{
|
|
39624
|
-
divide: "divide";
|
|
39625
|
-
multiply: "multiply";
|
|
39626
|
-
}>;
|
|
39627
|
-
conversion_factor: z.ZodString;
|
|
39628
|
-
rounding: z.ZodOptional<z.ZodEnum<{
|
|
39629
|
-
ceiling: "ceiling";
|
|
39630
|
-
floor: "floor";
|
|
39631
|
-
half_up: "half_up";
|
|
39632
|
-
none: "none";
|
|
39633
|
-
}>>;
|
|
39634
|
-
precision: z.ZodOptional<z.ZodNumber>;
|
|
39635
|
-
display_unit: z.ZodOptional<z.ZodString>;
|
|
39636
|
-
}, z.core.$strict>>;
|
|
39637
|
-
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
39638
|
-
commitments: z.ZodOptional<z.ZodObject<{
|
|
39639
|
-
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
39640
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
39641
|
-
}, z.core.$strict>>;
|
|
39642
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
39643
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
39644
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
39645
|
-
}, z.core.$strict>>;
|
|
39646
|
-
tax_config: z.ZodOptional<z.ZodObject<{
|
|
39647
|
-
behavior: z.ZodOptional<z.ZodEnum<{
|
|
39648
|
-
exclusive: "exclusive";
|
|
39649
|
-
inclusive: "inclusive";
|
|
39650
|
-
}>>;
|
|
39651
|
-
code: z.ZodObject<{
|
|
39652
|
-
id: z.ZodString;
|
|
39653
|
-
}, z.core.$strict>;
|
|
39654
|
-
}, z.core.$strict>>;
|
|
39655
|
-
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39656
|
-
type: z.ZodLiteral<"metered">;
|
|
39657
|
-
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
39658
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
39659
|
-
usage_period: z.ZodOptional<z.ZodString>;
|
|
39660
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39661
|
-
type: z.ZodLiteral<"static">;
|
|
39662
|
-
config: z.ZodUnknown;
|
|
39663
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
39664
|
-
type: z.ZodLiteral<"boolean">;
|
|
39665
|
-
}, z.core.$strict>], "type">>;
|
|
39666
|
-
}, z.core.$strict>>;
|
|
39667
|
-
}, z.core.$strict>>;
|
|
39668
|
-
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
39669
|
-
credit_only: "credit_only";
|
|
39670
|
-
credit_then_invoice: "credit_then_invoice";
|
|
39671
|
-
}>>;
|
|
39672
|
-
validation_errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39673
|
-
code: z.ZodString;
|
|
39674
|
-
message: z.ZodString;
|
|
39675
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
39676
|
-
field: z.ZodString;
|
|
39677
|
-
}, z.core.$strict>>>;
|
|
39678
|
-
}, z.core.$strict>>;
|
|
39679
|
-
meta: z.ZodObject<{
|
|
39680
|
-
page: z.ZodObject<{
|
|
39681
|
-
number: z.ZodNumber;
|
|
39682
|
-
size: z.ZodNumber;
|
|
39683
|
-
total: z.ZodNumber;
|
|
39684
|
-
}, z.core.$strict>;
|
|
39685
|
-
}, z.core.$strict>;
|
|
39686
|
-
}, z.core.$strict>;
|
|
39687
40527
|
export declare const invoiceStandardWire: z.ZodObject<{
|
|
39688
40528
|
id: z.ZodString;
|
|
39689
40529
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -49782,11 +50622,116 @@ export declare const createSubscriptionBodyWire: z.ZodObject<{
|
|
|
49782
50622
|
id: z.ZodOptional<z.ZodString>;
|
|
49783
50623
|
key: z.ZodOptional<z.ZodString>;
|
|
49784
50624
|
}, z.core.$strict>;
|
|
49785
|
-
plan: z.ZodObject<{
|
|
50625
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
49786
50626
|
id: z.ZodOptional<z.ZodString>;
|
|
49787
50627
|
key: z.ZodOptional<z.ZodString>;
|
|
49788
50628
|
version: z.ZodOptional<z.ZodNumber>;
|
|
49789
|
-
}, 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>>;
|
|
49790
50735
|
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
49791
50736
|
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
49792
50737
|
dynamic: "dynamic";
|
|
@@ -50654,11 +51599,116 @@ export declare const changeSubscriptionBodyWire: z.ZodObject<{
|
|
|
50654
51599
|
id: z.ZodOptional<z.ZodString>;
|
|
50655
51600
|
key: z.ZodOptional<z.ZodString>;
|
|
50656
51601
|
}, z.core.$strict>;
|
|
50657
|
-
plan: z.ZodObject<{
|
|
51602
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
50658
51603
|
id: z.ZodOptional<z.ZodString>;
|
|
50659
51604
|
key: z.ZodOptional<z.ZodString>;
|
|
50660
51605
|
version: z.ZodOptional<z.ZodNumber>;
|
|
50661
|
-
}, 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>>;
|
|
50662
51712
|
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
50663
51713
|
cost_basis_mode: z.ZodOptional<z.ZodEnum<{
|
|
50664
51714
|
dynamic: "dynamic";
|