@openmeter/client 1.0.0-beta-14ec9d225214 → 1.0.0-beta-80ea9ac3b74b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -15
- package/dist/funcs/subscriptions.d.ts +16 -1
- package/dist/funcs/subscriptions.js +46 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/subscriptions.d.ts +6 -1
- package/dist/models/schemas.d.ts +964 -0
- package/dist/models/schemas.js +124 -0
- package/dist/models/types.d.ts +222 -0
- package/dist/sdk/subscriptions.d.ts +16 -1
- package/dist/sdk/subscriptions.js +18 -1
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -3102,6 +3102,53 @@ export declare const workflowCollectionAlignmentAnchored: z.ZodObject<{
|
|
|
3102
3102
|
interval: z.ZodString;
|
|
3103
3103
|
}, z.core.$strip>;
|
|
3104
3104
|
}, z.core.$strip>;
|
|
3105
|
+
export declare const subscriptionBase: z.ZodObject<{
|
|
3106
|
+
id: z.ZodString;
|
|
3107
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3108
|
+
createdAt: z.ZodDate;
|
|
3109
|
+
updatedAt: z.ZodDate;
|
|
3110
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
3111
|
+
name: z.ZodString;
|
|
3112
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3113
|
+
activeFrom: z.ZodDate;
|
|
3114
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
3115
|
+
customerId: z.ZodString;
|
|
3116
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
3117
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
3118
|
+
id: z.ZodString;
|
|
3119
|
+
key: z.ZodString;
|
|
3120
|
+
version: z.ZodNumber;
|
|
3121
|
+
}, z.core.$strip>>;
|
|
3122
|
+
invoiceCurrency: z.ZodString;
|
|
3123
|
+
costBasisMode: z.ZodDefault<z.ZodEnum<{
|
|
3124
|
+
dynamic: "dynamic";
|
|
3125
|
+
pinned: "pinned";
|
|
3126
|
+
}>>;
|
|
3127
|
+
costBasisPins: z.ZodArray<z.ZodObject<{
|
|
3128
|
+
customCurrencyId: z.ZodString;
|
|
3129
|
+
invoiceCurrency: z.ZodString;
|
|
3130
|
+
costBasisId: z.ZodString;
|
|
3131
|
+
}, z.core.$strip>>;
|
|
3132
|
+
billingCadence: z.ZodString;
|
|
3133
|
+
proRatingConfig: z.ZodOptional<z.ZodObject<{
|
|
3134
|
+
enabled: z.ZodBoolean;
|
|
3135
|
+
mode: z.ZodEnum<{
|
|
3136
|
+
no_proration: "no_proration";
|
|
3137
|
+
prorate_prices: "prorate_prices";
|
|
3138
|
+
}>;
|
|
3139
|
+
}, z.core.$strip>>;
|
|
3140
|
+
billingAnchor: z.ZodDate;
|
|
3141
|
+
status: z.ZodEnum<{
|
|
3142
|
+
active: "active";
|
|
3143
|
+
canceled: "canceled";
|
|
3144
|
+
inactive: "inactive";
|
|
3145
|
+
scheduled: "scheduled";
|
|
3146
|
+
}>;
|
|
3147
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
3148
|
+
credit_only: "credit_only";
|
|
3149
|
+
credit_then_invoice: "credit_then_invoice";
|
|
3150
|
+
}>>;
|
|
3151
|
+
}, z.core.$strip>;
|
|
3105
3152
|
export declare const invoiceStatusDetails: z.ZodObject<{
|
|
3106
3153
|
immutable: z.ZodBoolean;
|
|
3107
3154
|
failed: z.ZodBoolean;
|
|
@@ -3143,6 +3190,15 @@ export declare const subscriptionCancel: z.ZodObject<{
|
|
|
3143
3190
|
next_billing_cycle: "next_billing_cycle";
|
|
3144
3191
|
}>, z.ZodDate]>>>;
|
|
3145
3192
|
}, z.core.$strip>;
|
|
3193
|
+
export declare const subscriptionMigrate: z.ZodObject<{
|
|
3194
|
+
timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3195
|
+
immediate: "immediate";
|
|
3196
|
+
next_billing_cycle: "next_billing_cycle";
|
|
3197
|
+
}>, z.ZodDate]>>>;
|
|
3198
|
+
targetVersion: z.ZodOptional<z.ZodNumber>;
|
|
3199
|
+
startingPhase: z.ZodOptional<z.ZodString>;
|
|
3200
|
+
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
3201
|
+
}, z.core.$strip>;
|
|
3146
3202
|
export declare const createSubscriptionAddonRequest: z.ZodObject<{
|
|
3147
3203
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3148
3204
|
addon: z.ZodObject<{
|
|
@@ -11868,6 +11924,213 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
|
|
|
11868
11924
|
}, z.core.$strip>>;
|
|
11869
11925
|
}, z.core.$strip>;
|
|
11870
11926
|
}, z.core.$strip>;
|
|
11927
|
+
export declare const subscriptionMigrateResponse: z.ZodObject<{
|
|
11928
|
+
current: z.ZodObject<{
|
|
11929
|
+
id: z.ZodString;
|
|
11930
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11931
|
+
createdAt: z.ZodDate;
|
|
11932
|
+
updatedAt: z.ZodDate;
|
|
11933
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
11934
|
+
name: z.ZodString;
|
|
11935
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11936
|
+
activeFrom: z.ZodDate;
|
|
11937
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
11938
|
+
customerId: z.ZodString;
|
|
11939
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
11940
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
11941
|
+
id: z.ZodString;
|
|
11942
|
+
key: z.ZodString;
|
|
11943
|
+
version: z.ZodNumber;
|
|
11944
|
+
}, z.core.$strip>>;
|
|
11945
|
+
invoiceCurrency: z.ZodString;
|
|
11946
|
+
costBasisMode: z.ZodDefault<z.ZodEnum<{
|
|
11947
|
+
dynamic: "dynamic";
|
|
11948
|
+
pinned: "pinned";
|
|
11949
|
+
}>>;
|
|
11950
|
+
costBasisPins: z.ZodArray<z.ZodObject<{
|
|
11951
|
+
customCurrencyId: z.ZodString;
|
|
11952
|
+
invoiceCurrency: z.ZodString;
|
|
11953
|
+
costBasisId: z.ZodString;
|
|
11954
|
+
}, z.core.$strip>>;
|
|
11955
|
+
billingCadence: z.ZodString;
|
|
11956
|
+
proRatingConfig: z.ZodOptional<z.ZodObject<{
|
|
11957
|
+
enabled: z.ZodBoolean;
|
|
11958
|
+
mode: z.ZodEnum<{
|
|
11959
|
+
no_proration: "no_proration";
|
|
11960
|
+
prorate_prices: "prorate_prices";
|
|
11961
|
+
}>;
|
|
11962
|
+
}, z.core.$strip>>;
|
|
11963
|
+
billingAnchor: z.ZodDate;
|
|
11964
|
+
status: z.ZodEnum<{
|
|
11965
|
+
active: "active";
|
|
11966
|
+
canceled: "canceled";
|
|
11967
|
+
inactive: "inactive";
|
|
11968
|
+
scheduled: "scheduled";
|
|
11969
|
+
}>;
|
|
11970
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
11971
|
+
credit_only: "credit_only";
|
|
11972
|
+
credit_then_invoice: "credit_then_invoice";
|
|
11973
|
+
}>>;
|
|
11974
|
+
}, z.core.$strip>;
|
|
11975
|
+
next: z.ZodObject<{
|
|
11976
|
+
id: z.ZodString;
|
|
11977
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
11978
|
+
createdAt: z.ZodDate;
|
|
11979
|
+
updatedAt: z.ZodDate;
|
|
11980
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
11981
|
+
name: z.ZodString;
|
|
11982
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11983
|
+
activeFrom: z.ZodDate;
|
|
11984
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
11985
|
+
customerId: z.ZodString;
|
|
11986
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
11987
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
11988
|
+
id: z.ZodString;
|
|
11989
|
+
key: z.ZodString;
|
|
11990
|
+
version: z.ZodNumber;
|
|
11991
|
+
}, z.core.$strip>>;
|
|
11992
|
+
invoiceCurrency: z.ZodString;
|
|
11993
|
+
costBasisMode: z.ZodDefault<z.ZodEnum<{
|
|
11994
|
+
dynamic: "dynamic";
|
|
11995
|
+
pinned: "pinned";
|
|
11996
|
+
}>>;
|
|
11997
|
+
costBasisPins: z.ZodArray<z.ZodObject<{
|
|
11998
|
+
customCurrencyId: z.ZodString;
|
|
11999
|
+
invoiceCurrency: z.ZodString;
|
|
12000
|
+
costBasisId: z.ZodString;
|
|
12001
|
+
}, z.core.$strip>>;
|
|
12002
|
+
billingCadence: z.ZodString;
|
|
12003
|
+
proRatingConfig: z.ZodOptional<z.ZodObject<{
|
|
12004
|
+
enabled: z.ZodBoolean;
|
|
12005
|
+
mode: z.ZodEnum<{
|
|
12006
|
+
no_proration: "no_proration";
|
|
12007
|
+
prorate_prices: "prorate_prices";
|
|
12008
|
+
}>;
|
|
12009
|
+
}, z.core.$strip>>;
|
|
12010
|
+
billingAnchor: z.ZodDate;
|
|
12011
|
+
status: z.ZodEnum<{
|
|
12012
|
+
active: "active";
|
|
12013
|
+
canceled: "canceled";
|
|
12014
|
+
inactive: "inactive";
|
|
12015
|
+
scheduled: "scheduled";
|
|
12016
|
+
}>;
|
|
12017
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
12018
|
+
credit_only: "credit_only";
|
|
12019
|
+
credit_then_invoice: "credit_then_invoice";
|
|
12020
|
+
}>>;
|
|
12021
|
+
currentPeriod: z.ZodOptional<z.ZodObject<{
|
|
12022
|
+
from: z.ZodDate;
|
|
12023
|
+
to: z.ZodDate;
|
|
12024
|
+
}, z.core.$strip>>;
|
|
12025
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
12026
|
+
id: z.ZodString;
|
|
12027
|
+
name: z.ZodString;
|
|
12028
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12029
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12030
|
+
createdAt: z.ZodDate;
|
|
12031
|
+
updatedAt: z.ZodDate;
|
|
12032
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
12033
|
+
key: z.ZodString;
|
|
12034
|
+
activeFrom: z.ZodDate;
|
|
12035
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
12036
|
+
items: z.ZodArray<z.ZodObject<{
|
|
12037
|
+
id: z.ZodString;
|
|
12038
|
+
activeFrom: z.ZodDate;
|
|
12039
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
12040
|
+
rateCard: z.ZodObject<{
|
|
12041
|
+
name: z.ZodString;
|
|
12042
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12043
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12044
|
+
key: z.ZodString;
|
|
12045
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
12046
|
+
id: z.ZodString;
|
|
12047
|
+
}, z.core.$strip>>;
|
|
12048
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
12049
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
12050
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12051
|
+
type: z.ZodLiteral<"free">;
|
|
12052
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12053
|
+
type: z.ZodLiteral<"flat">;
|
|
12054
|
+
amount: z.ZodString;
|
|
12055
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12056
|
+
type: z.ZodLiteral<"unit">;
|
|
12057
|
+
amount: z.ZodString;
|
|
12058
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12059
|
+
type: z.ZodLiteral<"graduated">;
|
|
12060
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12061
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
12062
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
12063
|
+
type: z.ZodLiteral<"flat">;
|
|
12064
|
+
amount: z.ZodString;
|
|
12065
|
+
}, z.core.$strip>>;
|
|
12066
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
12067
|
+
type: z.ZodLiteral<"unit">;
|
|
12068
|
+
amount: z.ZodString;
|
|
12069
|
+
}, z.core.$strip>>;
|
|
12070
|
+
}, z.core.$strip>>;
|
|
12071
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12072
|
+
type: z.ZodLiteral<"volume">;
|
|
12073
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
12074
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
12075
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
12076
|
+
type: z.ZodLiteral<"flat">;
|
|
12077
|
+
amount: z.ZodString;
|
|
12078
|
+
}, z.core.$strip>>;
|
|
12079
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
12080
|
+
type: z.ZodLiteral<"unit">;
|
|
12081
|
+
amount: z.ZodString;
|
|
12082
|
+
}, z.core.$strip>>;
|
|
12083
|
+
}, z.core.$strip>>;
|
|
12084
|
+
}, z.core.$strip>], "type">;
|
|
12085
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
12086
|
+
operation: z.ZodEnum<{
|
|
12087
|
+
divide: "divide";
|
|
12088
|
+
multiply: "multiply";
|
|
12089
|
+
}>;
|
|
12090
|
+
conversionFactor: z.ZodString;
|
|
12091
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
12092
|
+
ceiling: "ceiling";
|
|
12093
|
+
floor: "floor";
|
|
12094
|
+
half_up: "half_up";
|
|
12095
|
+
none: "none";
|
|
12096
|
+
}>>>;
|
|
12097
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
12098
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
12099
|
+
}, z.core.$strip>>;
|
|
12100
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
12101
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
12102
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
12103
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
12104
|
+
}, z.core.$strip>>;
|
|
12105
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
12106
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
12107
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
12108
|
+
}, z.core.$strip>>;
|
|
12109
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
12110
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
12111
|
+
exclusive: "exclusive";
|
|
12112
|
+
inclusive: "inclusive";
|
|
12113
|
+
}>>;
|
|
12114
|
+
code: z.ZodObject<{
|
|
12115
|
+
id: z.ZodString;
|
|
12116
|
+
}, z.core.$strip>;
|
|
12117
|
+
}, z.core.$strip>>;
|
|
12118
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12119
|
+
type: z.ZodLiteral<"metered">;
|
|
12120
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12121
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
12122
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
12123
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12124
|
+
type: z.ZodLiteral<"static">;
|
|
12125
|
+
config: z.ZodUnknown;
|
|
12126
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12127
|
+
type: z.ZodLiteral<"boolean">;
|
|
12128
|
+
}, z.core.$strip>], "type">>;
|
|
12129
|
+
}, z.core.$strip>;
|
|
12130
|
+
}, z.core.$strip>>;
|
|
12131
|
+
}, z.core.$strip>>;
|
|
12132
|
+
}, z.core.$strip>;
|
|
12133
|
+
}, z.core.$strip>;
|
|
11871
12134
|
export declare const invoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
11872
12135
|
id: z.ZodString;
|
|
11873
12136
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -22666,6 +22929,225 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
|
|
|
22666
22929
|
}, z.core.$strip>>;
|
|
22667
22930
|
}, z.core.$strip>;
|
|
22668
22931
|
}, z.core.$strip>;
|
|
22932
|
+
export declare const migrateSubscriptionPathParams: z.ZodObject<{
|
|
22933
|
+
subscriptionId: z.ZodString;
|
|
22934
|
+
}, z.core.$strip>;
|
|
22935
|
+
export declare const migrateSubscriptionBody: z.ZodObject<{
|
|
22936
|
+
timing: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
22937
|
+
immediate: "immediate";
|
|
22938
|
+
next_billing_cycle: "next_billing_cycle";
|
|
22939
|
+
}>, z.ZodDate]>>>;
|
|
22940
|
+
targetVersion: z.ZodOptional<z.ZodNumber>;
|
|
22941
|
+
startingPhase: z.ZodOptional<z.ZodString>;
|
|
22942
|
+
billingAnchor: z.ZodOptional<z.ZodDate>;
|
|
22943
|
+
}, z.core.$strip>;
|
|
22944
|
+
export declare const migrateSubscriptionResponse: z.ZodObject<{
|
|
22945
|
+
current: z.ZodObject<{
|
|
22946
|
+
id: z.ZodString;
|
|
22947
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22948
|
+
createdAt: z.ZodDate;
|
|
22949
|
+
updatedAt: z.ZodDate;
|
|
22950
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
22951
|
+
name: z.ZodString;
|
|
22952
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22953
|
+
activeFrom: z.ZodDate;
|
|
22954
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
22955
|
+
customerId: z.ZodString;
|
|
22956
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
22957
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
22958
|
+
id: z.ZodString;
|
|
22959
|
+
key: z.ZodString;
|
|
22960
|
+
version: z.ZodNumber;
|
|
22961
|
+
}, z.core.$strip>>;
|
|
22962
|
+
invoiceCurrency: z.ZodString;
|
|
22963
|
+
costBasisMode: z.ZodDefault<z.ZodEnum<{
|
|
22964
|
+
dynamic: "dynamic";
|
|
22965
|
+
pinned: "pinned";
|
|
22966
|
+
}>>;
|
|
22967
|
+
costBasisPins: z.ZodArray<z.ZodObject<{
|
|
22968
|
+
customCurrencyId: z.ZodString;
|
|
22969
|
+
invoiceCurrency: z.ZodString;
|
|
22970
|
+
costBasisId: z.ZodString;
|
|
22971
|
+
}, z.core.$strip>>;
|
|
22972
|
+
billingCadence: z.ZodString;
|
|
22973
|
+
proRatingConfig: z.ZodOptional<z.ZodObject<{
|
|
22974
|
+
enabled: z.ZodBoolean;
|
|
22975
|
+
mode: z.ZodEnum<{
|
|
22976
|
+
no_proration: "no_proration";
|
|
22977
|
+
prorate_prices: "prorate_prices";
|
|
22978
|
+
}>;
|
|
22979
|
+
}, z.core.$strip>>;
|
|
22980
|
+
billingAnchor: z.ZodDate;
|
|
22981
|
+
status: z.ZodEnum<{
|
|
22982
|
+
active: "active";
|
|
22983
|
+
canceled: "canceled";
|
|
22984
|
+
inactive: "inactive";
|
|
22985
|
+
scheduled: "scheduled";
|
|
22986
|
+
}>;
|
|
22987
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
22988
|
+
credit_only: "credit_only";
|
|
22989
|
+
credit_then_invoice: "credit_then_invoice";
|
|
22990
|
+
}>>;
|
|
22991
|
+
}, z.core.$strip>;
|
|
22992
|
+
next: z.ZodObject<{
|
|
22993
|
+
id: z.ZodString;
|
|
22994
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
22995
|
+
createdAt: z.ZodDate;
|
|
22996
|
+
updatedAt: z.ZodDate;
|
|
22997
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
22998
|
+
name: z.ZodString;
|
|
22999
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23000
|
+
activeFrom: z.ZodDate;
|
|
23001
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
23002
|
+
customerId: z.ZodString;
|
|
23003
|
+
planId: z.ZodOptional<z.ZodString>;
|
|
23004
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
23005
|
+
id: z.ZodString;
|
|
23006
|
+
key: z.ZodString;
|
|
23007
|
+
version: z.ZodNumber;
|
|
23008
|
+
}, z.core.$strip>>;
|
|
23009
|
+
invoiceCurrency: z.ZodString;
|
|
23010
|
+
costBasisMode: z.ZodDefault<z.ZodEnum<{
|
|
23011
|
+
dynamic: "dynamic";
|
|
23012
|
+
pinned: "pinned";
|
|
23013
|
+
}>>;
|
|
23014
|
+
costBasisPins: z.ZodArray<z.ZodObject<{
|
|
23015
|
+
customCurrencyId: z.ZodString;
|
|
23016
|
+
invoiceCurrency: z.ZodString;
|
|
23017
|
+
costBasisId: z.ZodString;
|
|
23018
|
+
}, z.core.$strip>>;
|
|
23019
|
+
billingCadence: z.ZodString;
|
|
23020
|
+
proRatingConfig: z.ZodOptional<z.ZodObject<{
|
|
23021
|
+
enabled: z.ZodBoolean;
|
|
23022
|
+
mode: z.ZodEnum<{
|
|
23023
|
+
no_proration: "no_proration";
|
|
23024
|
+
prorate_prices: "prorate_prices";
|
|
23025
|
+
}>;
|
|
23026
|
+
}, z.core.$strip>>;
|
|
23027
|
+
billingAnchor: z.ZodDate;
|
|
23028
|
+
status: z.ZodEnum<{
|
|
23029
|
+
active: "active";
|
|
23030
|
+
canceled: "canceled";
|
|
23031
|
+
inactive: "inactive";
|
|
23032
|
+
scheduled: "scheduled";
|
|
23033
|
+
}>;
|
|
23034
|
+
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
23035
|
+
credit_only: "credit_only";
|
|
23036
|
+
credit_then_invoice: "credit_then_invoice";
|
|
23037
|
+
}>>;
|
|
23038
|
+
currentPeriod: z.ZodOptional<z.ZodObject<{
|
|
23039
|
+
from: z.ZodDate;
|
|
23040
|
+
to: z.ZodDate;
|
|
23041
|
+
}, z.core.$strip>>;
|
|
23042
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
23043
|
+
id: z.ZodString;
|
|
23044
|
+
name: z.ZodString;
|
|
23045
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23046
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
23047
|
+
createdAt: z.ZodDate;
|
|
23048
|
+
updatedAt: z.ZodDate;
|
|
23049
|
+
deletedAt: z.ZodOptional<z.ZodDate>;
|
|
23050
|
+
key: z.ZodString;
|
|
23051
|
+
activeFrom: z.ZodDate;
|
|
23052
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
23053
|
+
items: z.ZodArray<z.ZodObject<{
|
|
23054
|
+
id: z.ZodString;
|
|
23055
|
+
activeFrom: z.ZodDate;
|
|
23056
|
+
activeTo: z.ZodOptional<z.ZodDate>;
|
|
23057
|
+
rateCard: z.ZodObject<{
|
|
23058
|
+
name: z.ZodString;
|
|
23059
|
+
description: z.ZodOptional<z.ZodString>;
|
|
23060
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
23061
|
+
key: z.ZodString;
|
|
23062
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
23063
|
+
id: z.ZodString;
|
|
23064
|
+
}, z.core.$strip>>;
|
|
23065
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
23066
|
+
billingCadence: z.ZodOptional<z.ZodString>;
|
|
23067
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23068
|
+
type: z.ZodLiteral<"free">;
|
|
23069
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23070
|
+
type: z.ZodLiteral<"flat">;
|
|
23071
|
+
amount: z.ZodString;
|
|
23072
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23073
|
+
type: z.ZodLiteral<"unit">;
|
|
23074
|
+
amount: z.ZodString;
|
|
23075
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23076
|
+
type: z.ZodLiteral<"graduated">;
|
|
23077
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
23078
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
23079
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
23080
|
+
type: z.ZodLiteral<"flat">;
|
|
23081
|
+
amount: z.ZodString;
|
|
23082
|
+
}, z.core.$strip>>;
|
|
23083
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
23084
|
+
type: z.ZodLiteral<"unit">;
|
|
23085
|
+
amount: z.ZodString;
|
|
23086
|
+
}, z.core.$strip>>;
|
|
23087
|
+
}, z.core.$strip>>;
|
|
23088
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23089
|
+
type: z.ZodLiteral<"volume">;
|
|
23090
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
23091
|
+
upToAmount: z.ZodOptional<z.ZodString>;
|
|
23092
|
+
flatPrice: z.ZodOptional<z.ZodObject<{
|
|
23093
|
+
type: z.ZodLiteral<"flat">;
|
|
23094
|
+
amount: z.ZodString;
|
|
23095
|
+
}, z.core.$strip>>;
|
|
23096
|
+
unitPrice: z.ZodOptional<z.ZodObject<{
|
|
23097
|
+
type: z.ZodLiteral<"unit">;
|
|
23098
|
+
amount: z.ZodString;
|
|
23099
|
+
}, z.core.$strip>>;
|
|
23100
|
+
}, z.core.$strip>>;
|
|
23101
|
+
}, z.core.$strip>], "type">;
|
|
23102
|
+
unitConfig: z.ZodOptional<z.ZodObject<{
|
|
23103
|
+
operation: z.ZodEnum<{
|
|
23104
|
+
divide: "divide";
|
|
23105
|
+
multiply: "multiply";
|
|
23106
|
+
}>;
|
|
23107
|
+
conversionFactor: z.ZodString;
|
|
23108
|
+
rounding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
23109
|
+
ceiling: "ceiling";
|
|
23110
|
+
floor: "floor";
|
|
23111
|
+
half_up: "half_up";
|
|
23112
|
+
none: "none";
|
|
23113
|
+
}>>>;
|
|
23114
|
+
precision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
23115
|
+
displayUnit: z.ZodOptional<z.ZodString>;
|
|
23116
|
+
}, z.core.$strip>>;
|
|
23117
|
+
paymentTerm: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
23118
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
23119
|
+
minimumAmount: z.ZodOptional<z.ZodString>;
|
|
23120
|
+
maximumAmount: z.ZodOptional<z.ZodString>;
|
|
23121
|
+
}, z.core.$strip>>;
|
|
23122
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
23123
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
23124
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
23125
|
+
}, z.core.$strip>>;
|
|
23126
|
+
taxConfig: z.ZodOptional<z.ZodObject<{
|
|
23127
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
23128
|
+
exclusive: "exclusive";
|
|
23129
|
+
inclusive: "inclusive";
|
|
23130
|
+
}>>;
|
|
23131
|
+
code: z.ZodObject<{
|
|
23132
|
+
id: z.ZodString;
|
|
23133
|
+
}, z.core.$strip>;
|
|
23134
|
+
}, z.core.$strip>>;
|
|
23135
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
23136
|
+
type: z.ZodLiteral<"metered">;
|
|
23137
|
+
isSoftLimit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
23138
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
23139
|
+
usagePeriod: z.ZodOptional<z.ZodString>;
|
|
23140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23141
|
+
type: z.ZodLiteral<"static">;
|
|
23142
|
+
config: z.ZodUnknown;
|
|
23143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23144
|
+
type: z.ZodLiteral<"boolean">;
|
|
23145
|
+
}, z.core.$strip>], "type">>;
|
|
23146
|
+
}, z.core.$strip>;
|
|
23147
|
+
}, z.core.$strip>>;
|
|
23148
|
+
}, z.core.$strip>>;
|
|
23149
|
+
}, z.core.$strip>;
|
|
23150
|
+
}, z.core.$strip>;
|
|
22669
23151
|
export declare const editSubscriptionPathParams: z.ZodObject<{
|
|
22670
23152
|
subscriptionId: z.ZodString;
|
|
22671
23153
|
}, z.core.$strip>;
|
|
@@ -35266,6 +35748,53 @@ export declare const workflowCollectionAlignmentAnchoredWire: z.ZodObject<{
|
|
|
35266
35748
|
interval: z.ZodString;
|
|
35267
35749
|
}, z.core.$strict>;
|
|
35268
35750
|
}, z.core.$strict>;
|
|
35751
|
+
export declare const subscriptionBaseWire: z.ZodObject<{
|
|
35752
|
+
id: z.ZodString;
|
|
35753
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35754
|
+
created_at: z.ZodString;
|
|
35755
|
+
updated_at: z.ZodString;
|
|
35756
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
35757
|
+
name: z.ZodString;
|
|
35758
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35759
|
+
active_from: z.ZodString;
|
|
35760
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
35761
|
+
customer_id: z.ZodString;
|
|
35762
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
35763
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
35764
|
+
id: z.ZodString;
|
|
35765
|
+
key: z.ZodString;
|
|
35766
|
+
version: z.ZodNumber;
|
|
35767
|
+
}, z.core.$strict>>;
|
|
35768
|
+
invoice_currency: z.ZodString;
|
|
35769
|
+
cost_basis_mode: z.ZodEnum<{
|
|
35770
|
+
dynamic: "dynamic";
|
|
35771
|
+
pinned: "pinned";
|
|
35772
|
+
}>;
|
|
35773
|
+
cost_basis_pins: z.ZodArray<z.ZodObject<{
|
|
35774
|
+
custom_currency_id: z.ZodString;
|
|
35775
|
+
invoice_currency: z.ZodString;
|
|
35776
|
+
cost_basis_id: z.ZodString;
|
|
35777
|
+
}, z.core.$strict>>;
|
|
35778
|
+
billing_cadence: z.ZodString;
|
|
35779
|
+
pro_rating_config: z.ZodOptional<z.ZodObject<{
|
|
35780
|
+
enabled: z.ZodBoolean;
|
|
35781
|
+
mode: z.ZodEnum<{
|
|
35782
|
+
no_proration: "no_proration";
|
|
35783
|
+
prorate_prices: "prorate_prices";
|
|
35784
|
+
}>;
|
|
35785
|
+
}, z.core.$strict>>;
|
|
35786
|
+
billing_anchor: z.ZodString;
|
|
35787
|
+
status: z.ZodEnum<{
|
|
35788
|
+
active: "active";
|
|
35789
|
+
canceled: "canceled";
|
|
35790
|
+
inactive: "inactive";
|
|
35791
|
+
scheduled: "scheduled";
|
|
35792
|
+
}>;
|
|
35793
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
35794
|
+
credit_only: "credit_only";
|
|
35795
|
+
credit_then_invoice: "credit_then_invoice";
|
|
35796
|
+
}>>;
|
|
35797
|
+
}, z.core.$strict>;
|
|
35269
35798
|
export declare const invoiceStatusDetailsWire: z.ZodObject<{
|
|
35270
35799
|
immutable: z.ZodBoolean;
|
|
35271
35800
|
failed: z.ZodBoolean;
|
|
@@ -35307,6 +35836,15 @@ export declare const subscriptionCancelWire: z.ZodObject<{
|
|
|
35307
35836
|
next_billing_cycle: "next_billing_cycle";
|
|
35308
35837
|
}>, z.ZodString]>>;
|
|
35309
35838
|
}, z.core.$strict>;
|
|
35839
|
+
export declare const subscriptionMigrateWire: z.ZodObject<{
|
|
35840
|
+
timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
35841
|
+
immediate: "immediate";
|
|
35842
|
+
next_billing_cycle: "next_billing_cycle";
|
|
35843
|
+
}>, z.ZodString]>>;
|
|
35844
|
+
target_version: z.ZodOptional<z.ZodNumber>;
|
|
35845
|
+
starting_phase: z.ZodOptional<z.ZodString>;
|
|
35846
|
+
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
35847
|
+
}, z.core.$strict>;
|
|
35310
35848
|
export declare const createSubscriptionAddonRequestWire: z.ZodObject<{
|
|
35311
35849
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
35312
35850
|
addon: z.ZodObject<{
|
|
@@ -44032,6 +44570,213 @@ export declare const subscriptionChangeResponseWire: z.ZodObject<{
|
|
|
44032
44570
|
}, z.core.$strict>>;
|
|
44033
44571
|
}, z.core.$strict>;
|
|
44034
44572
|
}, z.core.$strict>;
|
|
44573
|
+
export declare const subscriptionMigrateResponseWire: z.ZodObject<{
|
|
44574
|
+
current: z.ZodObject<{
|
|
44575
|
+
id: z.ZodString;
|
|
44576
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44577
|
+
created_at: z.ZodString;
|
|
44578
|
+
updated_at: z.ZodString;
|
|
44579
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
44580
|
+
name: z.ZodString;
|
|
44581
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44582
|
+
active_from: z.ZodString;
|
|
44583
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
44584
|
+
customer_id: z.ZodString;
|
|
44585
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
44586
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
44587
|
+
id: z.ZodString;
|
|
44588
|
+
key: z.ZodString;
|
|
44589
|
+
version: z.ZodNumber;
|
|
44590
|
+
}, z.core.$strict>>;
|
|
44591
|
+
invoice_currency: z.ZodString;
|
|
44592
|
+
cost_basis_mode: z.ZodEnum<{
|
|
44593
|
+
dynamic: "dynamic";
|
|
44594
|
+
pinned: "pinned";
|
|
44595
|
+
}>;
|
|
44596
|
+
cost_basis_pins: z.ZodArray<z.ZodObject<{
|
|
44597
|
+
custom_currency_id: z.ZodString;
|
|
44598
|
+
invoice_currency: z.ZodString;
|
|
44599
|
+
cost_basis_id: z.ZodString;
|
|
44600
|
+
}, z.core.$strict>>;
|
|
44601
|
+
billing_cadence: z.ZodString;
|
|
44602
|
+
pro_rating_config: z.ZodOptional<z.ZodObject<{
|
|
44603
|
+
enabled: z.ZodBoolean;
|
|
44604
|
+
mode: z.ZodEnum<{
|
|
44605
|
+
no_proration: "no_proration";
|
|
44606
|
+
prorate_prices: "prorate_prices";
|
|
44607
|
+
}>;
|
|
44608
|
+
}, z.core.$strict>>;
|
|
44609
|
+
billing_anchor: z.ZodString;
|
|
44610
|
+
status: z.ZodEnum<{
|
|
44611
|
+
active: "active";
|
|
44612
|
+
canceled: "canceled";
|
|
44613
|
+
inactive: "inactive";
|
|
44614
|
+
scheduled: "scheduled";
|
|
44615
|
+
}>;
|
|
44616
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
44617
|
+
credit_only: "credit_only";
|
|
44618
|
+
credit_then_invoice: "credit_then_invoice";
|
|
44619
|
+
}>>;
|
|
44620
|
+
}, z.core.$strict>;
|
|
44621
|
+
next: z.ZodObject<{
|
|
44622
|
+
id: z.ZodString;
|
|
44623
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44624
|
+
created_at: z.ZodString;
|
|
44625
|
+
updated_at: z.ZodString;
|
|
44626
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
44627
|
+
name: z.ZodString;
|
|
44628
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44629
|
+
active_from: z.ZodString;
|
|
44630
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
44631
|
+
customer_id: z.ZodString;
|
|
44632
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
44633
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
44634
|
+
id: z.ZodString;
|
|
44635
|
+
key: z.ZodString;
|
|
44636
|
+
version: z.ZodNumber;
|
|
44637
|
+
}, z.core.$strict>>;
|
|
44638
|
+
invoice_currency: z.ZodString;
|
|
44639
|
+
cost_basis_mode: z.ZodEnum<{
|
|
44640
|
+
dynamic: "dynamic";
|
|
44641
|
+
pinned: "pinned";
|
|
44642
|
+
}>;
|
|
44643
|
+
cost_basis_pins: z.ZodArray<z.ZodObject<{
|
|
44644
|
+
custom_currency_id: z.ZodString;
|
|
44645
|
+
invoice_currency: z.ZodString;
|
|
44646
|
+
cost_basis_id: z.ZodString;
|
|
44647
|
+
}, z.core.$strict>>;
|
|
44648
|
+
billing_cadence: z.ZodString;
|
|
44649
|
+
pro_rating_config: z.ZodOptional<z.ZodObject<{
|
|
44650
|
+
enabled: z.ZodBoolean;
|
|
44651
|
+
mode: z.ZodEnum<{
|
|
44652
|
+
no_proration: "no_proration";
|
|
44653
|
+
prorate_prices: "prorate_prices";
|
|
44654
|
+
}>;
|
|
44655
|
+
}, z.core.$strict>>;
|
|
44656
|
+
billing_anchor: z.ZodString;
|
|
44657
|
+
status: z.ZodEnum<{
|
|
44658
|
+
active: "active";
|
|
44659
|
+
canceled: "canceled";
|
|
44660
|
+
inactive: "inactive";
|
|
44661
|
+
scheduled: "scheduled";
|
|
44662
|
+
}>;
|
|
44663
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
44664
|
+
credit_only: "credit_only";
|
|
44665
|
+
credit_then_invoice: "credit_then_invoice";
|
|
44666
|
+
}>>;
|
|
44667
|
+
current_period: z.ZodOptional<z.ZodObject<{
|
|
44668
|
+
from: z.ZodString;
|
|
44669
|
+
to: z.ZodString;
|
|
44670
|
+
}, z.core.$strict>>;
|
|
44671
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
44672
|
+
id: z.ZodString;
|
|
44673
|
+
name: z.ZodString;
|
|
44674
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44675
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44676
|
+
created_at: z.ZodString;
|
|
44677
|
+
updated_at: z.ZodString;
|
|
44678
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
44679
|
+
key: z.ZodString;
|
|
44680
|
+
active_from: z.ZodString;
|
|
44681
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
44682
|
+
items: z.ZodArray<z.ZodObject<{
|
|
44683
|
+
id: z.ZodString;
|
|
44684
|
+
active_from: z.ZodString;
|
|
44685
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
44686
|
+
rate_card: z.ZodObject<{
|
|
44687
|
+
name: z.ZodString;
|
|
44688
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44689
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44690
|
+
key: z.ZodString;
|
|
44691
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
44692
|
+
id: z.ZodString;
|
|
44693
|
+
}, z.core.$strict>>;
|
|
44694
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
44695
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
44696
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44697
|
+
type: z.ZodLiteral<"free">;
|
|
44698
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44699
|
+
type: z.ZodLiteral<"flat">;
|
|
44700
|
+
amount: z.ZodString;
|
|
44701
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44702
|
+
type: z.ZodLiteral<"unit">;
|
|
44703
|
+
amount: z.ZodString;
|
|
44704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44705
|
+
type: z.ZodLiteral<"graduated">;
|
|
44706
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
44707
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
44708
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
44709
|
+
type: z.ZodLiteral<"flat">;
|
|
44710
|
+
amount: z.ZodString;
|
|
44711
|
+
}, z.core.$strict>>;
|
|
44712
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
44713
|
+
type: z.ZodLiteral<"unit">;
|
|
44714
|
+
amount: z.ZodString;
|
|
44715
|
+
}, z.core.$strict>>;
|
|
44716
|
+
}, z.core.$strict>>;
|
|
44717
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44718
|
+
type: z.ZodLiteral<"volume">;
|
|
44719
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
44720
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
44721
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
44722
|
+
type: z.ZodLiteral<"flat">;
|
|
44723
|
+
amount: z.ZodString;
|
|
44724
|
+
}, z.core.$strict>>;
|
|
44725
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
44726
|
+
type: z.ZodLiteral<"unit">;
|
|
44727
|
+
amount: z.ZodString;
|
|
44728
|
+
}, z.core.$strict>>;
|
|
44729
|
+
}, z.core.$strict>>;
|
|
44730
|
+
}, z.core.$strict>], "type">;
|
|
44731
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
44732
|
+
operation: z.ZodEnum<{
|
|
44733
|
+
divide: "divide";
|
|
44734
|
+
multiply: "multiply";
|
|
44735
|
+
}>;
|
|
44736
|
+
conversion_factor: z.ZodString;
|
|
44737
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
44738
|
+
ceiling: "ceiling";
|
|
44739
|
+
floor: "floor";
|
|
44740
|
+
half_up: "half_up";
|
|
44741
|
+
none: "none";
|
|
44742
|
+
}>>;
|
|
44743
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
44744
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
44745
|
+
}, z.core.$strict>>;
|
|
44746
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
44747
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
44748
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
44749
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
44750
|
+
}, z.core.$strict>>;
|
|
44751
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
44752
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
44753
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
44754
|
+
}, z.core.$strict>>;
|
|
44755
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
44756
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
44757
|
+
exclusive: "exclusive";
|
|
44758
|
+
inclusive: "inclusive";
|
|
44759
|
+
}>>;
|
|
44760
|
+
code: z.ZodObject<{
|
|
44761
|
+
id: z.ZodString;
|
|
44762
|
+
}, z.core.$strict>;
|
|
44763
|
+
}, z.core.$strict>>;
|
|
44764
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44765
|
+
type: z.ZodLiteral<"metered">;
|
|
44766
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
44767
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
44768
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
44769
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44770
|
+
type: z.ZodLiteral<"static">;
|
|
44771
|
+
config: z.ZodUnknown;
|
|
44772
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44773
|
+
type: z.ZodLiteral<"boolean">;
|
|
44774
|
+
}, z.core.$strict>], "type">>;
|
|
44775
|
+
}, z.core.$strict>;
|
|
44776
|
+
}, z.core.$strict>>;
|
|
44777
|
+
}, z.core.$strict>>;
|
|
44778
|
+
}, z.core.$strict>;
|
|
44779
|
+
}, z.core.$strict>;
|
|
44035
44780
|
export declare const invoiceWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
44036
44781
|
id: z.ZodString;
|
|
44037
44782
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -54815,6 +55560,225 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
|
|
|
54815
55560
|
}, z.core.$strict>>;
|
|
54816
55561
|
}, z.core.$strict>;
|
|
54817
55562
|
}, z.core.$strict>;
|
|
55563
|
+
export declare const migrateSubscriptionPathParamsWire: z.ZodObject<{
|
|
55564
|
+
subscriptionId: z.ZodString;
|
|
55565
|
+
}, z.core.$strip>;
|
|
55566
|
+
export declare const migrateSubscriptionBodyWire: z.ZodObject<{
|
|
55567
|
+
timing: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
55568
|
+
immediate: "immediate";
|
|
55569
|
+
next_billing_cycle: "next_billing_cycle";
|
|
55570
|
+
}>, z.ZodString]>>;
|
|
55571
|
+
target_version: z.ZodOptional<z.ZodNumber>;
|
|
55572
|
+
starting_phase: z.ZodOptional<z.ZodString>;
|
|
55573
|
+
billing_anchor: z.ZodOptional<z.ZodString>;
|
|
55574
|
+
}, z.core.$strict>;
|
|
55575
|
+
export declare const migrateSubscriptionResponseWire: z.ZodObject<{
|
|
55576
|
+
current: z.ZodObject<{
|
|
55577
|
+
id: z.ZodString;
|
|
55578
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
55579
|
+
created_at: z.ZodString;
|
|
55580
|
+
updated_at: z.ZodString;
|
|
55581
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
55582
|
+
name: z.ZodString;
|
|
55583
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55584
|
+
active_from: z.ZodString;
|
|
55585
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
55586
|
+
customer_id: z.ZodString;
|
|
55587
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
55588
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
55589
|
+
id: z.ZodString;
|
|
55590
|
+
key: z.ZodString;
|
|
55591
|
+
version: z.ZodNumber;
|
|
55592
|
+
}, z.core.$strict>>;
|
|
55593
|
+
invoice_currency: z.ZodString;
|
|
55594
|
+
cost_basis_mode: z.ZodEnum<{
|
|
55595
|
+
dynamic: "dynamic";
|
|
55596
|
+
pinned: "pinned";
|
|
55597
|
+
}>;
|
|
55598
|
+
cost_basis_pins: z.ZodArray<z.ZodObject<{
|
|
55599
|
+
custom_currency_id: z.ZodString;
|
|
55600
|
+
invoice_currency: z.ZodString;
|
|
55601
|
+
cost_basis_id: z.ZodString;
|
|
55602
|
+
}, z.core.$strict>>;
|
|
55603
|
+
billing_cadence: z.ZodString;
|
|
55604
|
+
pro_rating_config: z.ZodOptional<z.ZodObject<{
|
|
55605
|
+
enabled: z.ZodBoolean;
|
|
55606
|
+
mode: z.ZodEnum<{
|
|
55607
|
+
no_proration: "no_proration";
|
|
55608
|
+
prorate_prices: "prorate_prices";
|
|
55609
|
+
}>;
|
|
55610
|
+
}, z.core.$strict>>;
|
|
55611
|
+
billing_anchor: z.ZodString;
|
|
55612
|
+
status: z.ZodEnum<{
|
|
55613
|
+
active: "active";
|
|
55614
|
+
canceled: "canceled";
|
|
55615
|
+
inactive: "inactive";
|
|
55616
|
+
scheduled: "scheduled";
|
|
55617
|
+
}>;
|
|
55618
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
55619
|
+
credit_only: "credit_only";
|
|
55620
|
+
credit_then_invoice: "credit_then_invoice";
|
|
55621
|
+
}>>;
|
|
55622
|
+
}, z.core.$strict>;
|
|
55623
|
+
next: z.ZodObject<{
|
|
55624
|
+
id: z.ZodString;
|
|
55625
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
55626
|
+
created_at: z.ZodString;
|
|
55627
|
+
updated_at: z.ZodString;
|
|
55628
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
55629
|
+
name: z.ZodString;
|
|
55630
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55631
|
+
active_from: z.ZodString;
|
|
55632
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
55633
|
+
customer_id: z.ZodString;
|
|
55634
|
+
plan_id: z.ZodOptional<z.ZodString>;
|
|
55635
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
55636
|
+
id: z.ZodString;
|
|
55637
|
+
key: z.ZodString;
|
|
55638
|
+
version: z.ZodNumber;
|
|
55639
|
+
}, z.core.$strict>>;
|
|
55640
|
+
invoice_currency: z.ZodString;
|
|
55641
|
+
cost_basis_mode: z.ZodEnum<{
|
|
55642
|
+
dynamic: "dynamic";
|
|
55643
|
+
pinned: "pinned";
|
|
55644
|
+
}>;
|
|
55645
|
+
cost_basis_pins: z.ZodArray<z.ZodObject<{
|
|
55646
|
+
custom_currency_id: z.ZodString;
|
|
55647
|
+
invoice_currency: z.ZodString;
|
|
55648
|
+
cost_basis_id: z.ZodString;
|
|
55649
|
+
}, z.core.$strict>>;
|
|
55650
|
+
billing_cadence: z.ZodString;
|
|
55651
|
+
pro_rating_config: z.ZodOptional<z.ZodObject<{
|
|
55652
|
+
enabled: z.ZodBoolean;
|
|
55653
|
+
mode: z.ZodEnum<{
|
|
55654
|
+
no_proration: "no_proration";
|
|
55655
|
+
prorate_prices: "prorate_prices";
|
|
55656
|
+
}>;
|
|
55657
|
+
}, z.core.$strict>>;
|
|
55658
|
+
billing_anchor: z.ZodString;
|
|
55659
|
+
status: z.ZodEnum<{
|
|
55660
|
+
active: "active";
|
|
55661
|
+
canceled: "canceled";
|
|
55662
|
+
inactive: "inactive";
|
|
55663
|
+
scheduled: "scheduled";
|
|
55664
|
+
}>;
|
|
55665
|
+
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
55666
|
+
credit_only: "credit_only";
|
|
55667
|
+
credit_then_invoice: "credit_then_invoice";
|
|
55668
|
+
}>>;
|
|
55669
|
+
current_period: z.ZodOptional<z.ZodObject<{
|
|
55670
|
+
from: z.ZodString;
|
|
55671
|
+
to: z.ZodString;
|
|
55672
|
+
}, z.core.$strict>>;
|
|
55673
|
+
phases: z.ZodArray<z.ZodObject<{
|
|
55674
|
+
id: z.ZodString;
|
|
55675
|
+
name: z.ZodString;
|
|
55676
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55677
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
55678
|
+
created_at: z.ZodString;
|
|
55679
|
+
updated_at: z.ZodString;
|
|
55680
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
55681
|
+
key: z.ZodString;
|
|
55682
|
+
active_from: z.ZodString;
|
|
55683
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
55684
|
+
items: z.ZodArray<z.ZodObject<{
|
|
55685
|
+
id: z.ZodString;
|
|
55686
|
+
active_from: z.ZodString;
|
|
55687
|
+
active_to: z.ZodOptional<z.ZodString>;
|
|
55688
|
+
rate_card: z.ZodObject<{
|
|
55689
|
+
name: z.ZodString;
|
|
55690
|
+
description: z.ZodOptional<z.ZodString>;
|
|
55691
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
55692
|
+
key: z.ZodString;
|
|
55693
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
55694
|
+
id: z.ZodString;
|
|
55695
|
+
}, z.core.$strict>>;
|
|
55696
|
+
currency: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
55697
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
55698
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55699
|
+
type: z.ZodLiteral<"free">;
|
|
55700
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55701
|
+
type: z.ZodLiteral<"flat">;
|
|
55702
|
+
amount: z.ZodString;
|
|
55703
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55704
|
+
type: z.ZodLiteral<"unit">;
|
|
55705
|
+
amount: z.ZodString;
|
|
55706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55707
|
+
type: z.ZodLiteral<"graduated">;
|
|
55708
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
55709
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
55710
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
55711
|
+
type: z.ZodLiteral<"flat">;
|
|
55712
|
+
amount: z.ZodString;
|
|
55713
|
+
}, z.core.$strict>>;
|
|
55714
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
55715
|
+
type: z.ZodLiteral<"unit">;
|
|
55716
|
+
amount: z.ZodString;
|
|
55717
|
+
}, z.core.$strict>>;
|
|
55718
|
+
}, z.core.$strict>>;
|
|
55719
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55720
|
+
type: z.ZodLiteral<"volume">;
|
|
55721
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
55722
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
55723
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
55724
|
+
type: z.ZodLiteral<"flat">;
|
|
55725
|
+
amount: z.ZodString;
|
|
55726
|
+
}, z.core.$strict>>;
|
|
55727
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
55728
|
+
type: z.ZodLiteral<"unit">;
|
|
55729
|
+
amount: z.ZodString;
|
|
55730
|
+
}, z.core.$strict>>;
|
|
55731
|
+
}, z.core.$strict>>;
|
|
55732
|
+
}, z.core.$strict>], "type">;
|
|
55733
|
+
unit_config: z.ZodOptional<z.ZodObject<{
|
|
55734
|
+
operation: z.ZodEnum<{
|
|
55735
|
+
divide: "divide";
|
|
55736
|
+
multiply: "multiply";
|
|
55737
|
+
}>;
|
|
55738
|
+
conversion_factor: z.ZodString;
|
|
55739
|
+
rounding: z.ZodOptional<z.ZodEnum<{
|
|
55740
|
+
ceiling: "ceiling";
|
|
55741
|
+
floor: "floor";
|
|
55742
|
+
half_up: "half_up";
|
|
55743
|
+
none: "none";
|
|
55744
|
+
}>>;
|
|
55745
|
+
precision: z.ZodOptional<z.ZodNumber>;
|
|
55746
|
+
display_unit: z.ZodOptional<z.ZodString>;
|
|
55747
|
+
}, z.core.$strict>>;
|
|
55748
|
+
payment_term: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>;
|
|
55749
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
55750
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
55751
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
55752
|
+
}, z.core.$strict>>;
|
|
55753
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
55754
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
55755
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
55756
|
+
}, z.core.$strict>>;
|
|
55757
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
55758
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
55759
|
+
exclusive: "exclusive";
|
|
55760
|
+
inclusive: "inclusive";
|
|
55761
|
+
}>>;
|
|
55762
|
+
code: z.ZodObject<{
|
|
55763
|
+
id: z.ZodString;
|
|
55764
|
+
}, z.core.$strict>;
|
|
55765
|
+
}, z.core.$strict>>;
|
|
55766
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55767
|
+
type: z.ZodLiteral<"metered">;
|
|
55768
|
+
is_soft_limit: z.ZodOptional<z.ZodBoolean>;
|
|
55769
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
55770
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
55771
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55772
|
+
type: z.ZodLiteral<"static">;
|
|
55773
|
+
config: z.ZodUnknown;
|
|
55774
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
55775
|
+
type: z.ZodLiteral<"boolean">;
|
|
55776
|
+
}, z.core.$strict>], "type">>;
|
|
55777
|
+
}, z.core.$strict>;
|
|
55778
|
+
}, z.core.$strict>>;
|
|
55779
|
+
}, z.core.$strict>>;
|
|
55780
|
+
}, z.core.$strict>;
|
|
55781
|
+
}, z.core.$strict>;
|
|
54818
55782
|
export declare const editSubscriptionPathParamsWire: z.ZodObject<{
|
|
54819
55783
|
subscriptionId: z.ZodString;
|
|
54820
55784
|
}, z.core.$strip>;
|