autumn-js 1.3.2 → 1.3.3
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/backend/adapters/express.js +6018 -6627
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +6018 -6627
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +6018 -6627
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +6019 -6628
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +6018 -6627
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-P3NB2TPD.mjs → chunk-65W4TZTS.mjs} +1 -1
- package/dist/backend/{chunk-U3XVAFP3.mjs → chunk-7KCCF4EQ.mjs} +1 -1
- package/dist/backend/{chunk-BN2RKNWA.mjs → chunk-7M2QJK3F.mjs} +1 -1
- package/dist/backend/{chunk-WBVNGT6C.mjs → chunk-ALCYAWIU.mjs} +5615 -5173
- package/dist/backend/{chunk-UFFJTOUP.mjs → chunk-DMYETTMK.mjs} +1 -1
- package/dist/backend/{chunk-O2FNE4BV.mjs → chunk-ECPEYFTT.mjs} +7 -7
- package/dist/backend/{chunk-MMTTJRJ7.mjs → chunk-QTW6YBAQ.mjs} +790 -1841
- package/dist/backend/{chunk-2WFPFKXF.mjs → chunk-UCE7X36J.mjs} +5 -5
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +6018 -6627
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +6018 -6627
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +6018 -6627
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +6018 -6627
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +790 -1841
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +790 -1841
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +6018 -6627
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-B4IhP62O.d.mts → routeTypes-CIyvTbT-.d.mts} +933 -268
- package/dist/backend/{routeTypes-Clg-tGZs.d.ts → routeTypes-Dovw-kXS.d.ts} +933 -268
- package/dist/better-auth/{chunk-QRHWL7PJ.mjs → chunk-AYUZ7BAL.mjs} +1 -1
- package/dist/better-auth/{chunk-ZSPHK3QP.mjs → chunk-MAM2SPNT.mjs} +790 -1841
- package/dist/better-auth/{chunk-GHX3KM47.mjs → chunk-RXQY5TZP.mjs} +5616 -5174
- package/dist/better-auth/index.js +6247 -6856
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +790 -1841
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +6018 -6627
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +6247 -6856
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-7v3j-HM8.d.ts → customer-Bp7Npmb4.d.ts} +1 -5
- package/dist/react/{customer-B1dHh-Kx.d.mts → customer-Ho7hCUyc.d.mts} +1 -5
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/index.mjs +5 -5
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.mjs +5 -5
- package/dist/react/{list-plans-response-BdNdM3Qx.d.ts → list-plans-response-CN5npYlB.d.mts} +126 -5
- package/dist/react/{list-plans-response-CH1VbFIg.d.mts → list-plans-response-ZA4i4qbk.d.ts} +126 -5
- package/dist/react/{params-ClWEGYj-.d.mts → params-ChTAunjw.d.ts} +344 -25
- package/dist/react/{params-cj_zZr99.d.ts → params-xlsDk_Hb.d.mts} +344 -25
- package/dist/react/{plan-Dq6s6t9I.d.mts → plan-CrpW2EZo.d.mts} +52 -5
- package/dist/react/{plan-Dq6s6t9I.d.ts → plan-CrpW2EZo.d.ts} +52 -5
- package/dist/sdk/index.d.mts +4387 -3312
- package/dist/sdk/index.d.ts +4387 -3312
- package/dist/sdk/index.js +19203 -18287
- package/dist/sdk/index.mjs +19003 -18271
- package/package.json +3 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, a as Balance, P as Plan } from './plan-CrpW2EZo.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -527,6 +527,20 @@ type AttachItemRollover = {
|
|
|
527
527
|
*/
|
|
528
528
|
expiryDurationLength?: number | undefined;
|
|
529
529
|
};
|
|
530
|
+
declare const AttachItemDuration: {
|
|
531
|
+
readonly Day: "day";
|
|
532
|
+
readonly Week: "week";
|
|
533
|
+
readonly Month: "month";
|
|
534
|
+
readonly Year: "year";
|
|
535
|
+
};
|
|
536
|
+
type AttachItemDuration = ClosedEnum<typeof AttachItemDuration>;
|
|
537
|
+
/**
|
|
538
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
539
|
+
*/
|
|
540
|
+
type AttachItemExpiry = {
|
|
541
|
+
duration: AttachItemDuration;
|
|
542
|
+
length: number;
|
|
543
|
+
};
|
|
530
544
|
type AttachDimensionsItem4 = {
|
|
531
545
|
/**
|
|
532
546
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -793,6 +807,10 @@ type AttachItemPlanItem = {
|
|
|
793
807
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
794
808
|
*/
|
|
795
809
|
rollover?: AttachItemRollover | undefined;
|
|
810
|
+
/**
|
|
811
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
812
|
+
*/
|
|
813
|
+
expiry?: AttachItemExpiry | undefined;
|
|
796
814
|
/**
|
|
797
815
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
798
816
|
*/
|
|
@@ -1006,6 +1024,20 @@ type AttachAddItemRollover = {
|
|
|
1006
1024
|
*/
|
|
1007
1025
|
expiryDurationLength?: number | undefined;
|
|
1008
1026
|
};
|
|
1027
|
+
declare const AttachAddItemDuration: {
|
|
1028
|
+
readonly Day: "day";
|
|
1029
|
+
readonly Week: "week";
|
|
1030
|
+
readonly Month: "month";
|
|
1031
|
+
readonly Year: "year";
|
|
1032
|
+
};
|
|
1033
|
+
type AttachAddItemDuration = ClosedEnum<typeof AttachAddItemDuration>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
1036
|
+
*/
|
|
1037
|
+
type AttachAddItemExpiry = {
|
|
1038
|
+
duration: AttachAddItemDuration;
|
|
1039
|
+
length: number;
|
|
1040
|
+
};
|
|
1009
1041
|
type AttachDimensionsAddItem4 = {
|
|
1010
1042
|
/**
|
|
1011
1043
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -1272,6 +1304,10 @@ type AttachAddItemPlanItem = {
|
|
|
1272
1304
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
1273
1305
|
*/
|
|
1274
1306
|
rollover?: AttachAddItemRollover | undefined;
|
|
1307
|
+
/**
|
|
1308
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
1309
|
+
*/
|
|
1310
|
+
expiry?: AttachAddItemExpiry | undefined;
|
|
1275
1311
|
/**
|
|
1276
1312
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
1277
1313
|
*/
|
|
@@ -1882,6 +1918,21 @@ type AttachUpsertLicenseRollover = {
|
|
|
1882
1918
|
*/
|
|
1883
1919
|
expiryDurationLength?: number | undefined;
|
|
1884
1920
|
};
|
|
1921
|
+
|
|
1922
|
+
declare const AttachUpsertLicenseDuration: {
|
|
1923
|
+
readonly Day: "day";
|
|
1924
|
+
readonly Week: "week";
|
|
1925
|
+
readonly Month: "month";
|
|
1926
|
+
readonly Year: "year";
|
|
1927
|
+
};
|
|
1928
|
+
type AttachUpsertLicenseDuration = ClosedEnum<typeof AttachUpsertLicenseDuration>;
|
|
1929
|
+
/**
|
|
1930
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
1931
|
+
*/
|
|
1932
|
+
type AttachUpsertLicenseExpiry = {
|
|
1933
|
+
duration: AttachUpsertLicenseDuration;
|
|
1934
|
+
length: number;
|
|
1935
|
+
};
|
|
1885
1936
|
type AttachDimensionsUpsertLicense4 = {
|
|
1886
1937
|
/**
|
|
1887
1938
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -1898,12 +1949,10 @@ type AttachDimensionsUpsertLicense4 = {
|
|
|
1898
1949
|
*/
|
|
1899
1950
|
creditCost: number;
|
|
1900
1951
|
};
|
|
1901
|
-
type AttachDimensionsUpsertLicenseMatch3 = string | number | boolean;
|
|
1902
1952
|
declare const AttachDimensionsToUpsertLicenseEnum2: {
|
|
1903
1953
|
readonly Inf: "inf";
|
|
1904
1954
|
};
|
|
1905
1955
|
type AttachDimensionsToUpsertLicenseEnum2 = ClosedEnum<typeof AttachDimensionsToUpsertLicenseEnum2>;
|
|
1906
|
-
|
|
1907
1956
|
type AttachDimensionsUpsertLicenseTier2 = {
|
|
1908
1957
|
/**
|
|
1909
1958
|
* Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'.
|
|
@@ -1919,7 +1968,7 @@ type AttachDimensionsUpsertLicense3 = {
|
|
|
1919
1968
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
1920
1969
|
*/
|
|
1921
1970
|
match: {
|
|
1922
|
-
[k: string]:
|
|
1971
|
+
[k: string]: string | number | boolean;
|
|
1923
1972
|
};
|
|
1924
1973
|
/**
|
|
1925
1974
|
* Breaks ties between dimensions that match the same number of keys. Higher wins.
|
|
@@ -2150,6 +2199,10 @@ type AttachUpsertLicensePlanItem = {
|
|
|
2150
2199
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
2151
2200
|
*/
|
|
2152
2201
|
rollover?: AttachUpsertLicenseRollover | undefined;
|
|
2202
|
+
/**
|
|
2203
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
2204
|
+
*/
|
|
2205
|
+
expiry?: AttachUpsertLicenseExpiry | undefined;
|
|
2153
2206
|
/**
|
|
2154
2207
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
2155
2208
|
*/
|
|
@@ -2907,6 +2960,20 @@ type BillingUpdateItemRollover = {
|
|
|
2907
2960
|
*/
|
|
2908
2961
|
expiryDurationLength?: number | undefined;
|
|
2909
2962
|
};
|
|
2963
|
+
declare const BillingUpdateItemDuration: {
|
|
2964
|
+
readonly Day: "day";
|
|
2965
|
+
readonly Week: "week";
|
|
2966
|
+
readonly Month: "month";
|
|
2967
|
+
readonly Year: "year";
|
|
2968
|
+
};
|
|
2969
|
+
type BillingUpdateItemDuration = ClosedEnum<typeof BillingUpdateItemDuration>;
|
|
2970
|
+
/**
|
|
2971
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
2972
|
+
*/
|
|
2973
|
+
type BillingUpdateItemExpiry = {
|
|
2974
|
+
duration: BillingUpdateItemDuration;
|
|
2975
|
+
length: number;
|
|
2976
|
+
};
|
|
2910
2977
|
type BillingUpdateDimensionsItem4 = {
|
|
2911
2978
|
/**
|
|
2912
2979
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3173,6 +3240,10 @@ type BillingUpdateItemPlanItem = {
|
|
|
3173
3240
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
3174
3241
|
*/
|
|
3175
3242
|
rollover?: BillingUpdateItemRollover | undefined;
|
|
3243
|
+
/**
|
|
3244
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
3245
|
+
*/
|
|
3246
|
+
expiry?: BillingUpdateItemExpiry | undefined;
|
|
3176
3247
|
/**
|
|
3177
3248
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
3178
3249
|
*/
|
|
@@ -3386,6 +3457,20 @@ type BillingUpdateAddItemRollover = {
|
|
|
3386
3457
|
*/
|
|
3387
3458
|
expiryDurationLength?: number | undefined;
|
|
3388
3459
|
};
|
|
3460
|
+
declare const BillingUpdateAddItemDuration: {
|
|
3461
|
+
readonly Day: "day";
|
|
3462
|
+
readonly Week: "week";
|
|
3463
|
+
readonly Month: "month";
|
|
3464
|
+
readonly Year: "year";
|
|
3465
|
+
};
|
|
3466
|
+
type BillingUpdateAddItemDuration = ClosedEnum<typeof BillingUpdateAddItemDuration>;
|
|
3467
|
+
/**
|
|
3468
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
3469
|
+
*/
|
|
3470
|
+
type BillingUpdateAddItemExpiry = {
|
|
3471
|
+
duration: BillingUpdateAddItemDuration;
|
|
3472
|
+
length: number;
|
|
3473
|
+
};
|
|
3389
3474
|
type BillingUpdateDimensionsAddItem4 = {
|
|
3390
3475
|
/**
|
|
3391
3476
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -3652,6 +3737,10 @@ type BillingUpdateAddItemPlanItem = {
|
|
|
3652
3737
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
3653
3738
|
*/
|
|
3654
3739
|
rollover?: BillingUpdateAddItemRollover | undefined;
|
|
3740
|
+
/**
|
|
3741
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
3742
|
+
*/
|
|
3743
|
+
expiry?: BillingUpdateAddItemExpiry | undefined;
|
|
3655
3744
|
/**
|
|
3656
3745
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
3657
3746
|
*/
|
|
@@ -4262,6 +4351,21 @@ type BillingUpdateUpsertLicenseRollover = {
|
|
|
4262
4351
|
*/
|
|
4263
4352
|
expiryDurationLength?: number | undefined;
|
|
4264
4353
|
};
|
|
4354
|
+
|
|
4355
|
+
declare const BillingUpdateUpsertLicenseDuration: {
|
|
4356
|
+
readonly Day: "day";
|
|
4357
|
+
readonly Week: "week";
|
|
4358
|
+
readonly Month: "month";
|
|
4359
|
+
readonly Year: "year";
|
|
4360
|
+
};
|
|
4361
|
+
type BillingUpdateUpsertLicenseDuration = ClosedEnum<typeof BillingUpdateUpsertLicenseDuration>;
|
|
4362
|
+
/**
|
|
4363
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
4364
|
+
*/
|
|
4365
|
+
type BillingUpdateUpsertLicenseExpiry = {
|
|
4366
|
+
duration: BillingUpdateUpsertLicenseDuration;
|
|
4367
|
+
length: number;
|
|
4368
|
+
};
|
|
4265
4369
|
type BillingUpdateDimensionsUpsertLicense4 = {
|
|
4266
4370
|
/**
|
|
4267
4371
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -4278,12 +4382,10 @@ type BillingUpdateDimensionsUpsertLicense4 = {
|
|
|
4278
4382
|
*/
|
|
4279
4383
|
creditCost: number;
|
|
4280
4384
|
};
|
|
4281
|
-
type BillingUpdateDimensionsUpsertLicenseMatch3 = string | number | boolean;
|
|
4282
4385
|
declare const BillingUpdateDimensionsToUpsertLicenseEnum2: {
|
|
4283
4386
|
readonly Inf: "inf";
|
|
4284
4387
|
};
|
|
4285
4388
|
type BillingUpdateDimensionsToUpsertLicenseEnum2 = ClosedEnum<typeof BillingUpdateDimensionsToUpsertLicenseEnum2>;
|
|
4286
|
-
|
|
4287
4389
|
type BillingUpdateDimensionsUpsertLicenseTier2 = {
|
|
4288
4390
|
/**
|
|
4289
4391
|
* Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'.
|
|
@@ -4299,7 +4401,7 @@ type BillingUpdateDimensionsUpsertLicense3 = {
|
|
|
4299
4401
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
4300
4402
|
*/
|
|
4301
4403
|
match: {
|
|
4302
|
-
[k: string]:
|
|
4404
|
+
[k: string]: string | number | boolean;
|
|
4303
4405
|
};
|
|
4304
4406
|
/**
|
|
4305
4407
|
* Breaks ties between dimensions that match the same number of keys. Higher wins.
|
|
@@ -4530,6 +4632,10 @@ type BillingUpdateUpsertLicensePlanItem = {
|
|
|
4530
4632
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
4531
4633
|
*/
|
|
4532
4634
|
rollover?: BillingUpdateUpsertLicenseRollover | undefined;
|
|
4635
|
+
/**
|
|
4636
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
4637
|
+
*/
|
|
4638
|
+
expiry?: BillingUpdateUpsertLicenseExpiry | undefined;
|
|
4533
4639
|
/**
|
|
4534
4640
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
4535
4641
|
*/
|
|
@@ -4708,6 +4814,16 @@ type BillingUpdateAttachDiscount = {
|
|
|
4708
4814
|
*/
|
|
4709
4815
|
promotionCode?: string | undefined;
|
|
4710
4816
|
};
|
|
4817
|
+
type BillingUpdateCustomLineItem = {
|
|
4818
|
+
/**
|
|
4819
|
+
* Amount in dollars for this line item (e.g. 10.50). Can be negative for credits.
|
|
4820
|
+
*/
|
|
4821
|
+
amount: number;
|
|
4822
|
+
/**
|
|
4823
|
+
* Description for the line item.
|
|
4824
|
+
*/
|
|
4825
|
+
description: string;
|
|
4826
|
+
};
|
|
4711
4827
|
/**
|
|
4712
4828
|
* Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation.
|
|
4713
4829
|
*/
|
|
@@ -4812,6 +4928,10 @@ type UpdateSubscriptionParams = {
|
|
|
4812
4928
|
* List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
|
|
4813
4929
|
*/
|
|
4814
4930
|
discounts?: Array<BillingUpdateAttachDiscount> | undefined;
|
|
4931
|
+
/**
|
|
4932
|
+
* Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.
|
|
4933
|
+
*/
|
|
4934
|
+
customLineItems?: Array<BillingUpdateCustomLineItem> | undefined;
|
|
4815
4935
|
/**
|
|
4816
4936
|
* Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation.
|
|
4817
4937
|
*/
|
|
@@ -5337,10 +5457,6 @@ type CheckFeature2 = {
|
|
|
5337
5457
|
* For classic credit systems: maps metered features to flat or graduated credit costs.
|
|
5338
5458
|
*/
|
|
5339
5459
|
creditSchema?: Array<CheckCreditSchema4 | CheckCreditSchema5 | CheckCreditSchema6> | undefined;
|
|
5340
|
-
/**
|
|
5341
|
-
* Whether usage of this classic credit system should be itemized as invoice credits.
|
|
5342
|
-
*/
|
|
5343
|
-
invoiceCredit?: boolean | undefined;
|
|
5344
5460
|
/**
|
|
5345
5461
|
* Per-model markup overrides for AI credit systems.
|
|
5346
5462
|
*/
|
|
@@ -6358,10 +6474,6 @@ type CheckFeature1 = {
|
|
|
6358
6474
|
* For classic credit systems: maps metered features to flat or graduated credit costs.
|
|
6359
6475
|
*/
|
|
6360
6476
|
creditSchema?: Array<CheckCreditSchema1 | CheckCreditSchema2 | CheckCreditSchema3> | undefined;
|
|
6361
|
-
/**
|
|
6362
|
-
* Whether usage of this classic credit system should be itemized as invoice credits.
|
|
6363
|
-
*/
|
|
6364
|
-
invoiceCredit?: boolean | undefined;
|
|
6365
6477
|
/**
|
|
6366
6478
|
* Per-model markup overrides for AI credit systems.
|
|
6367
6479
|
*/
|
|
@@ -7860,10 +7972,6 @@ type GetEntityFeature = {
|
|
|
7860
7972
|
* For classic credit systems: maps metered features to flat or graduated credit costs.
|
|
7861
7973
|
*/
|
|
7862
7974
|
creditSchema?: Array<GetEntityCreditSchema1 | GetEntityCreditSchema2 | GetEntityCreditSchema3> | undefined;
|
|
7863
|
-
/**
|
|
7864
|
-
* Whether usage of this classic credit system should be itemized as invoice credits.
|
|
7865
|
-
*/
|
|
7866
|
-
invoiceCredit?: boolean | undefined;
|
|
7867
7975
|
/**
|
|
7868
7976
|
* Per-model markup overrides for AI credit systems.
|
|
7869
7977
|
*/
|
|
@@ -8643,6 +8751,20 @@ type MultiAttachRollover = {
|
|
|
8643
8751
|
*/
|
|
8644
8752
|
expiryDurationLength?: number | undefined;
|
|
8645
8753
|
};
|
|
8754
|
+
declare const MultiAttachDuration: {
|
|
8755
|
+
readonly Day: "day";
|
|
8756
|
+
readonly Week: "week";
|
|
8757
|
+
readonly Month: "month";
|
|
8758
|
+
readonly Year: "year";
|
|
8759
|
+
};
|
|
8760
|
+
type MultiAttachDuration = ClosedEnum<typeof MultiAttachDuration>;
|
|
8761
|
+
/**
|
|
8762
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
8763
|
+
*/
|
|
8764
|
+
type MultiAttachExpiry = {
|
|
8765
|
+
duration: MultiAttachDuration;
|
|
8766
|
+
length: number;
|
|
8767
|
+
};
|
|
8646
8768
|
type MultiAttachDimensions4 = {
|
|
8647
8769
|
/**
|
|
8648
8770
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -8909,6 +9031,10 @@ type MultiAttachPlanItem = {
|
|
|
8909
9031
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
8910
9032
|
*/
|
|
8911
9033
|
rollover?: MultiAttachRollover | undefined;
|
|
9034
|
+
/**
|
|
9035
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
9036
|
+
*/
|
|
9037
|
+
expiry?: MultiAttachExpiry | undefined;
|
|
8912
9038
|
/**
|
|
8913
9039
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
8914
9040
|
*/
|
|
@@ -9764,6 +9890,20 @@ type PreviewAttachItemRollover = {
|
|
|
9764
9890
|
*/
|
|
9765
9891
|
expiryDurationLength?: number | undefined;
|
|
9766
9892
|
};
|
|
9893
|
+
declare const PreviewAttachItemDuration: {
|
|
9894
|
+
readonly Day: "day";
|
|
9895
|
+
readonly Week: "week";
|
|
9896
|
+
readonly Month: "month";
|
|
9897
|
+
readonly Year: "year";
|
|
9898
|
+
};
|
|
9899
|
+
type PreviewAttachItemDuration = ClosedEnum<typeof PreviewAttachItemDuration>;
|
|
9900
|
+
/**
|
|
9901
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
9902
|
+
*/
|
|
9903
|
+
type PreviewAttachItemExpiry = {
|
|
9904
|
+
duration: PreviewAttachItemDuration;
|
|
9905
|
+
length: number;
|
|
9906
|
+
};
|
|
9767
9907
|
type PreviewAttachDimensionsItem4 = {
|
|
9768
9908
|
/**
|
|
9769
9909
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -10030,6 +10170,10 @@ type PreviewAttachItemPlanItem = {
|
|
|
10030
10170
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
10031
10171
|
*/
|
|
10032
10172
|
rollover?: PreviewAttachItemRollover | undefined;
|
|
10173
|
+
/**
|
|
10174
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
10175
|
+
*/
|
|
10176
|
+
expiry?: PreviewAttachItemExpiry | undefined;
|
|
10033
10177
|
/**
|
|
10034
10178
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
10035
10179
|
*/
|
|
@@ -10243,6 +10387,20 @@ type PreviewAttachAddItemRollover = {
|
|
|
10243
10387
|
*/
|
|
10244
10388
|
expiryDurationLength?: number | undefined;
|
|
10245
10389
|
};
|
|
10390
|
+
declare const PreviewAttachAddItemDuration: {
|
|
10391
|
+
readonly Day: "day";
|
|
10392
|
+
readonly Week: "week";
|
|
10393
|
+
readonly Month: "month";
|
|
10394
|
+
readonly Year: "year";
|
|
10395
|
+
};
|
|
10396
|
+
type PreviewAttachAddItemDuration = ClosedEnum<typeof PreviewAttachAddItemDuration>;
|
|
10397
|
+
/**
|
|
10398
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
10399
|
+
*/
|
|
10400
|
+
type PreviewAttachAddItemExpiry = {
|
|
10401
|
+
duration: PreviewAttachAddItemDuration;
|
|
10402
|
+
length: number;
|
|
10403
|
+
};
|
|
10246
10404
|
type PreviewAttachDimensionsAddItem4 = {
|
|
10247
10405
|
/**
|
|
10248
10406
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -10509,6 +10667,10 @@ type PreviewAttachAddItemPlanItem = {
|
|
|
10509
10667
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
10510
10668
|
*/
|
|
10511
10669
|
rollover?: PreviewAttachAddItemRollover | undefined;
|
|
10670
|
+
/**
|
|
10671
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
10672
|
+
*/
|
|
10673
|
+
expiry?: PreviewAttachAddItemExpiry | undefined;
|
|
10512
10674
|
/**
|
|
10513
10675
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
10514
10676
|
*/
|
|
@@ -11119,6 +11281,21 @@ type PreviewAttachUpsertLicenseRollover = {
|
|
|
11119
11281
|
*/
|
|
11120
11282
|
expiryDurationLength?: number | undefined;
|
|
11121
11283
|
};
|
|
11284
|
+
|
|
11285
|
+
declare const PreviewAttachUpsertLicenseDuration: {
|
|
11286
|
+
readonly Day: "day";
|
|
11287
|
+
readonly Week: "week";
|
|
11288
|
+
readonly Month: "month";
|
|
11289
|
+
readonly Year: "year";
|
|
11290
|
+
};
|
|
11291
|
+
type PreviewAttachUpsertLicenseDuration = ClosedEnum<typeof PreviewAttachUpsertLicenseDuration>;
|
|
11292
|
+
/**
|
|
11293
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
11294
|
+
*/
|
|
11295
|
+
type PreviewAttachUpsertLicenseExpiry = {
|
|
11296
|
+
duration: PreviewAttachUpsertLicenseDuration;
|
|
11297
|
+
length: number;
|
|
11298
|
+
};
|
|
11122
11299
|
type PreviewAttachDimensionsUpsertLicense4 = {
|
|
11123
11300
|
/**
|
|
11124
11301
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -11135,12 +11312,10 @@ type PreviewAttachDimensionsUpsertLicense4 = {
|
|
|
11135
11312
|
*/
|
|
11136
11313
|
creditCost: number;
|
|
11137
11314
|
};
|
|
11138
|
-
type PreviewAttachDimensionsUpsertLicenseMatch3 = string | number | boolean;
|
|
11139
11315
|
declare const PreviewAttachDimensionsToUpsertLicenseEnum2: {
|
|
11140
11316
|
readonly Inf: "inf";
|
|
11141
11317
|
};
|
|
11142
11318
|
type PreviewAttachDimensionsToUpsertLicenseEnum2 = ClosedEnum<typeof PreviewAttachDimensionsToUpsertLicenseEnum2>;
|
|
11143
|
-
|
|
11144
11319
|
type PreviewAttachDimensionsUpsertLicenseTier2 = {
|
|
11145
11320
|
/**
|
|
11146
11321
|
* Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'.
|
|
@@ -11156,7 +11331,7 @@ type PreviewAttachDimensionsUpsertLicense3 = {
|
|
|
11156
11331
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
11157
11332
|
*/
|
|
11158
11333
|
match: {
|
|
11159
|
-
[k: string]:
|
|
11334
|
+
[k: string]: string | number | boolean;
|
|
11160
11335
|
};
|
|
11161
11336
|
/**
|
|
11162
11337
|
* Breaks ties between dimensions that match the same number of keys. Higher wins.
|
|
@@ -11387,6 +11562,10 @@ type PreviewAttachUpsertLicensePlanItem = {
|
|
|
11387
11562
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
11388
11563
|
*/
|
|
11389
11564
|
rollover?: PreviewAttachUpsertLicenseRollover | undefined;
|
|
11565
|
+
/**
|
|
11566
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
11567
|
+
*/
|
|
11568
|
+
expiry?: PreviewAttachUpsertLicenseExpiry | undefined;
|
|
11390
11569
|
/**
|
|
11391
11570
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
11392
11571
|
*/
|
|
@@ -12355,6 +12534,20 @@ type PreviewMultiAttachRollover = {
|
|
|
12355
12534
|
*/
|
|
12356
12535
|
expiryDurationLength?: number | undefined;
|
|
12357
12536
|
};
|
|
12537
|
+
declare const PreviewMultiAttachDuration: {
|
|
12538
|
+
readonly Day: "day";
|
|
12539
|
+
readonly Week: "week";
|
|
12540
|
+
readonly Month: "month";
|
|
12541
|
+
readonly Year: "year";
|
|
12542
|
+
};
|
|
12543
|
+
type PreviewMultiAttachDuration = ClosedEnum<typeof PreviewMultiAttachDuration>;
|
|
12544
|
+
/**
|
|
12545
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
12546
|
+
*/
|
|
12547
|
+
type PreviewMultiAttachExpiry = {
|
|
12548
|
+
duration: PreviewMultiAttachDuration;
|
|
12549
|
+
length: number;
|
|
12550
|
+
};
|
|
12358
12551
|
type PreviewMultiAttachDimensions4 = {
|
|
12359
12552
|
/**
|
|
12360
12553
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -12621,6 +12814,10 @@ type PreviewMultiAttachPlanItem = {
|
|
|
12621
12814
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
12622
12815
|
*/
|
|
12623
12816
|
rollover?: PreviewMultiAttachRollover | undefined;
|
|
12817
|
+
/**
|
|
12818
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
12819
|
+
*/
|
|
12820
|
+
expiry?: PreviewMultiAttachExpiry | undefined;
|
|
12624
12821
|
/**
|
|
12625
12822
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
12626
12823
|
*/
|
|
@@ -13720,6 +13917,20 @@ type PreviewUpdateItemRollover = {
|
|
|
13720
13917
|
*/
|
|
13721
13918
|
expiryDurationLength?: number | undefined;
|
|
13722
13919
|
};
|
|
13920
|
+
declare const PreviewUpdateItemDuration: {
|
|
13921
|
+
readonly Day: "day";
|
|
13922
|
+
readonly Week: "week";
|
|
13923
|
+
readonly Month: "month";
|
|
13924
|
+
readonly Year: "year";
|
|
13925
|
+
};
|
|
13926
|
+
type PreviewUpdateItemDuration = ClosedEnum<typeof PreviewUpdateItemDuration>;
|
|
13927
|
+
/**
|
|
13928
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
13929
|
+
*/
|
|
13930
|
+
type PreviewUpdateItemExpiry = {
|
|
13931
|
+
duration: PreviewUpdateItemDuration;
|
|
13932
|
+
length: number;
|
|
13933
|
+
};
|
|
13723
13934
|
type PreviewUpdateDimensionsItem4 = {
|
|
13724
13935
|
/**
|
|
13725
13936
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -13986,6 +14197,10 @@ type PreviewUpdateItemPlanItem = {
|
|
|
13986
14197
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
13987
14198
|
*/
|
|
13988
14199
|
rollover?: PreviewUpdateItemRollover | undefined;
|
|
14200
|
+
/**
|
|
14201
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
14202
|
+
*/
|
|
14203
|
+
expiry?: PreviewUpdateItemExpiry | undefined;
|
|
13989
14204
|
/**
|
|
13990
14205
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
13991
14206
|
*/
|
|
@@ -14199,6 +14414,20 @@ type PreviewUpdateAddItemRollover = {
|
|
|
14199
14414
|
*/
|
|
14200
14415
|
expiryDurationLength?: number | undefined;
|
|
14201
14416
|
};
|
|
14417
|
+
declare const PreviewUpdateAddItemDuration: {
|
|
14418
|
+
readonly Day: "day";
|
|
14419
|
+
readonly Week: "week";
|
|
14420
|
+
readonly Month: "month";
|
|
14421
|
+
readonly Year: "year";
|
|
14422
|
+
};
|
|
14423
|
+
type PreviewUpdateAddItemDuration = ClosedEnum<typeof PreviewUpdateAddItemDuration>;
|
|
14424
|
+
/**
|
|
14425
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
14426
|
+
*/
|
|
14427
|
+
type PreviewUpdateAddItemExpiry = {
|
|
14428
|
+
duration: PreviewUpdateAddItemDuration;
|
|
14429
|
+
length: number;
|
|
14430
|
+
};
|
|
14202
14431
|
type PreviewUpdateDimensionsAddItem4 = {
|
|
14203
14432
|
/**
|
|
14204
14433
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -14465,6 +14694,10 @@ type PreviewUpdateAddItemPlanItem = {
|
|
|
14465
14694
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
14466
14695
|
*/
|
|
14467
14696
|
rollover?: PreviewUpdateAddItemRollover | undefined;
|
|
14697
|
+
/**
|
|
14698
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
14699
|
+
*/
|
|
14700
|
+
expiry?: PreviewUpdateAddItemExpiry | undefined;
|
|
14468
14701
|
/**
|
|
14469
14702
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
14470
14703
|
*/
|
|
@@ -15075,6 +15308,21 @@ type PreviewUpdateUpsertLicenseRollover = {
|
|
|
15075
15308
|
*/
|
|
15076
15309
|
expiryDurationLength?: number | undefined;
|
|
15077
15310
|
};
|
|
15311
|
+
|
|
15312
|
+
declare const PreviewUpdateUpsertLicenseDuration: {
|
|
15313
|
+
readonly Day: "day";
|
|
15314
|
+
readonly Week: "week";
|
|
15315
|
+
readonly Month: "month";
|
|
15316
|
+
readonly Year: "year";
|
|
15317
|
+
};
|
|
15318
|
+
type PreviewUpdateUpsertLicenseDuration = ClosedEnum<typeof PreviewUpdateUpsertLicenseDuration>;
|
|
15319
|
+
/**
|
|
15320
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
15321
|
+
*/
|
|
15322
|
+
type PreviewUpdateUpsertLicenseExpiry = {
|
|
15323
|
+
duration: PreviewUpdateUpsertLicenseDuration;
|
|
15324
|
+
length: number;
|
|
15325
|
+
};
|
|
15078
15326
|
type PreviewUpdateDimensionsUpsertLicense4 = {
|
|
15079
15327
|
/**
|
|
15080
15328
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -15091,12 +15339,10 @@ type PreviewUpdateDimensionsUpsertLicense4 = {
|
|
|
15091
15339
|
*/
|
|
15092
15340
|
creditCost: number;
|
|
15093
15341
|
};
|
|
15094
|
-
type PreviewUpdateDimensionsUpsertLicenseMatch3 = string | number | boolean;
|
|
15095
15342
|
declare const PreviewUpdateDimensionsToUpsertLicenseEnum2: {
|
|
15096
15343
|
readonly Inf: "inf";
|
|
15097
15344
|
};
|
|
15098
15345
|
type PreviewUpdateDimensionsToUpsertLicenseEnum2 = ClosedEnum<typeof PreviewUpdateDimensionsToUpsertLicenseEnum2>;
|
|
15099
|
-
|
|
15100
15346
|
type PreviewUpdateDimensionsUpsertLicenseTier2 = {
|
|
15101
15347
|
/**
|
|
15102
15348
|
* Inclusive upper usage boundary for this graduated tier. The final tier must be 'inf'.
|
|
@@ -15112,7 +15358,7 @@ type PreviewUpdateDimensionsUpsertLicense3 = {
|
|
|
15112
15358
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
15113
15359
|
*/
|
|
15114
15360
|
match: {
|
|
15115
|
-
[k: string]:
|
|
15361
|
+
[k: string]: string | number | boolean;
|
|
15116
15362
|
};
|
|
15117
15363
|
/**
|
|
15118
15364
|
* Breaks ties between dimensions that match the same number of keys. Higher wins.
|
|
@@ -15343,6 +15589,10 @@ type PreviewUpdateUpsertLicensePlanItem = {
|
|
|
15343
15589
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
15344
15590
|
*/
|
|
15345
15591
|
rollover?: PreviewUpdateUpsertLicenseRollover | undefined;
|
|
15592
|
+
/**
|
|
15593
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
15594
|
+
*/
|
|
15595
|
+
expiry?: PreviewUpdateUpsertLicenseExpiry | undefined;
|
|
15346
15596
|
/**
|
|
15347
15597
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
15348
15598
|
*/
|
|
@@ -15521,6 +15771,16 @@ type PreviewUpdateAttachDiscount = {
|
|
|
15521
15771
|
*/
|
|
15522
15772
|
promotionCode?: string | undefined;
|
|
15523
15773
|
};
|
|
15774
|
+
type PreviewUpdateCustomLineItem = {
|
|
15775
|
+
/**
|
|
15776
|
+
* Amount in dollars for this line item (e.g. 10.50). Can be negative for credits.
|
|
15777
|
+
*/
|
|
15778
|
+
amount: number;
|
|
15779
|
+
/**
|
|
15780
|
+
* Description for the line item.
|
|
15781
|
+
*/
|
|
15782
|
+
description: string;
|
|
15783
|
+
};
|
|
15524
15784
|
/**
|
|
15525
15785
|
* Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation.
|
|
15526
15786
|
*/
|
|
@@ -15625,6 +15885,10 @@ type PreviewUpdateParams = {
|
|
|
15625
15885
|
* List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
|
|
15626
15886
|
*/
|
|
15627
15887
|
discounts?: Array<PreviewUpdateAttachDiscount> | undefined;
|
|
15888
|
+
/**
|
|
15889
|
+
* Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.
|
|
15890
|
+
*/
|
|
15891
|
+
customLineItems?: Array<PreviewUpdateCustomLineItem> | undefined;
|
|
15628
15892
|
/**
|
|
15629
15893
|
* Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation.
|
|
15630
15894
|
*/
|
|
@@ -16352,6 +16616,20 @@ type SetupPaymentItemRollover = {
|
|
|
16352
16616
|
*/
|
|
16353
16617
|
expiryDurationLength?: number | undefined;
|
|
16354
16618
|
};
|
|
16619
|
+
declare const SetupPaymentItemDuration: {
|
|
16620
|
+
readonly Day: "day";
|
|
16621
|
+
readonly Week: "week";
|
|
16622
|
+
readonly Month: "month";
|
|
16623
|
+
readonly Year: "year";
|
|
16624
|
+
};
|
|
16625
|
+
type SetupPaymentItemDuration = ClosedEnum<typeof SetupPaymentItemDuration>;
|
|
16626
|
+
/**
|
|
16627
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
16628
|
+
*/
|
|
16629
|
+
type SetupPaymentItemExpiry = {
|
|
16630
|
+
duration: SetupPaymentItemDuration;
|
|
16631
|
+
length: number;
|
|
16632
|
+
};
|
|
16355
16633
|
type SetupPaymentDimensionsItem4 = {
|
|
16356
16634
|
/**
|
|
16357
16635
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -16618,6 +16896,10 @@ type SetupPaymentItemPlanItem = {
|
|
|
16618
16896
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
16619
16897
|
*/
|
|
16620
16898
|
rollover?: SetupPaymentItemRollover | undefined;
|
|
16899
|
+
/**
|
|
16900
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
16901
|
+
*/
|
|
16902
|
+
expiry?: SetupPaymentItemExpiry | undefined;
|
|
16621
16903
|
/**
|
|
16622
16904
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
16623
16905
|
*/
|
|
@@ -16831,6 +17113,20 @@ type SetupPaymentAddItemRollover = {
|
|
|
16831
17113
|
*/
|
|
16832
17114
|
expiryDurationLength?: number | undefined;
|
|
16833
17115
|
};
|
|
17116
|
+
declare const SetupPaymentAddItemDuration: {
|
|
17117
|
+
readonly Day: "day";
|
|
17118
|
+
readonly Week: "week";
|
|
17119
|
+
readonly Month: "month";
|
|
17120
|
+
readonly Year: "year";
|
|
17121
|
+
};
|
|
17122
|
+
type SetupPaymentAddItemDuration = ClosedEnum<typeof SetupPaymentAddItemDuration>;
|
|
17123
|
+
/**
|
|
17124
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
17125
|
+
*/
|
|
17126
|
+
type SetupPaymentAddItemExpiry = {
|
|
17127
|
+
duration: SetupPaymentAddItemDuration;
|
|
17128
|
+
length: number;
|
|
17129
|
+
};
|
|
16834
17130
|
type SetupPaymentDimensionsAddItem4 = {
|
|
16835
17131
|
/**
|
|
16836
17132
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -17097,6 +17393,10 @@ type SetupPaymentAddItemPlanItem = {
|
|
|
17097
17393
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
17098
17394
|
*/
|
|
17099
17395
|
rollover?: SetupPaymentAddItemRollover | undefined;
|
|
17396
|
+
/**
|
|
17397
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
17398
|
+
*/
|
|
17399
|
+
expiry?: SetupPaymentAddItemExpiry | undefined;
|
|
17100
17400
|
/**
|
|
17101
17401
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
17102
17402
|
*/
|
|
@@ -17707,6 +18007,21 @@ type SetupPaymentUpsertLicenseRollover = {
|
|
|
17707
18007
|
*/
|
|
17708
18008
|
expiryDurationLength?: number | undefined;
|
|
17709
18009
|
};
|
|
18010
|
+
|
|
18011
|
+
declare const SetupPaymentUpsertLicenseDuration: {
|
|
18012
|
+
readonly Day: "day";
|
|
18013
|
+
readonly Week: "week";
|
|
18014
|
+
readonly Month: "month";
|
|
18015
|
+
readonly Year: "year";
|
|
18016
|
+
};
|
|
18017
|
+
type SetupPaymentUpsertLicenseDuration = ClosedEnum<typeof SetupPaymentUpsertLicenseDuration>;
|
|
18018
|
+
/**
|
|
18019
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
18020
|
+
*/
|
|
18021
|
+
type SetupPaymentUpsertLicenseExpiry = {
|
|
18022
|
+
duration: SetupPaymentUpsertLicenseDuration;
|
|
18023
|
+
length: number;
|
|
18024
|
+
};
|
|
17710
18025
|
type SetupPaymentDimensionsUpsertLicense4 = {
|
|
17711
18026
|
/**
|
|
17712
18027
|
* Event properties this entry applies to. Every key must equal the tracked property, compared as strings.
|
|
@@ -17973,6 +18288,10 @@ type SetupPaymentUpsertLicensePlanItem = {
|
|
|
17973
18288
|
* Rollover config for unused units. If set, unused included units carry over.
|
|
17974
18289
|
*/
|
|
17975
18290
|
rollover?: SetupPaymentUpsertLicenseRollover | undefined;
|
|
18291
|
+
/**
|
|
18292
|
+
* Purchased units expire this long after each purchase. One-off prepaid consumable items only.
|
|
18293
|
+
*/
|
|
18294
|
+
expiry?: SetupPaymentUpsertLicenseExpiry | undefined;
|
|
17976
18295
|
/**
|
|
17977
18296
|
* Overrides fields of this item's feature for customers on this plan (e.g. a credit system's credit_schema).
|
|
17978
18297
|
*/
|