autumn-js 1.2.44 → 1.2.46
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 +179 -23
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +179 -23
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +179 -23
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +179 -23
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +179 -23
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-GRPW7PMD.mjs → chunk-564D2O3W.mjs} +1 -1
- package/dist/backend/{chunk-PKU2QG3V.mjs → chunk-KW47VZ73.mjs} +5 -5
- package/dist/backend/{chunk-UBDJHK2I.mjs → chunk-RPUV2OZA.mjs} +125 -19
- package/dist/backend/{chunk-HMEVH6GK.mjs → chunk-SBZEXVB4.mjs} +7 -7
- package/dist/backend/{chunk-43PV6A4J.mjs → chunk-TEDQUFQV.mjs} +1 -1
- package/dist/backend/{chunk-NX26QVC6.mjs → chunk-UJS4Q7J4.mjs} +54 -4
- package/dist/backend/{chunk-YOZEZHQY.mjs → chunk-WR6ZPCQG.mjs} +1 -1
- package/dist/backend/{chunk-W2L6YF67.mjs → chunk-XOAX5KAL.mjs} +1 -1
- 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 +179 -23
- 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 +179 -23
- 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 +179 -23
- 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 +179 -23
- 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 +54 -4
- 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 +54 -4
- 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 +179 -23
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-CJ1KepjZ.d.mts → routeTypes-DnUY8ksp.d.mts} +257 -8
- package/dist/backend/{routeTypes-CODz5Cb_.d.ts → routeTypes-TbN5QHEp.d.ts} +257 -8
- package/dist/better-auth/{chunk-XME6A73W.mjs → chunk-SABPXZTZ.mjs} +126 -20
- package/dist/better-auth/{chunk-W2AEIA6U.mjs → chunk-TOQRV6D7.mjs} +1 -1
- package/dist/better-auth/{chunk-7LUOWWZI.mjs → chunk-YRHQ4VL7.mjs} +54 -4
- package/dist/better-auth/index.js +179 -23
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +54 -4
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +179 -23
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +179 -23
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +7 -4
- package/dist/react/AutumnContext.d.ts +7 -4
- package/dist/react/AutumnProvider.js +1 -1
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-EE3XPYSL.mjs → chunk-2C6RX3EW.mjs} +1 -1
- package/dist/react/{chunk-SBCI4L22.mjs → chunk-2X7HXG2W.mjs} +1 -1
- package/dist/react/{chunk-7SRCZYRC.mjs → chunk-3WU4ZFXU.mjs} +1 -1
- package/dist/react/{chunk-LUBYNTYC.mjs → chunk-4HU5BGSM.mjs} +1 -1
- package/dist/react/{chunk-RTZAB46K.mjs → chunk-7RF3IGDO.mjs} +1 -1
- package/dist/react/{chunk-KCOHZSS3.mjs → chunk-C6I2RW56.mjs} +8 -8
- package/dist/react/{chunk-CQF3ER2L.mjs → chunk-NWF7OFFQ.mjs} +2 -2
- package/dist/react/{chunk-CSJHU3F2.mjs → chunk-SRSYG5ZV.mjs} +1 -1
- package/dist/react/{chunk-QUGX6XRQ.mjs → chunk-UNQZV3K5.mjs} +1 -1
- 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-2LdIXsvH.d.ts → customer-CNfSCDv_.d.ts} +1 -1
- package/dist/react/{customer-VoTRBlpB.d.mts → customer-VD6pkmpz.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/index.js +7 -7
- package/dist/react/hooks/index.mjs +8 -8
- 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 +7 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
- package/dist/react/hooks/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
- package/dist/react/hooks/useAggregateEvents.js +7 -7
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +4 -3
- package/dist/react/hooks/useCustomer.d.ts +4 -3
- package/dist/react/hooks/useCustomer.js +7 -7
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +3 -2
- package/dist/react/hooks/useEntity.d.ts +3 -2
- package/dist/react/hooks/useEntity.js +7 -7
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +5 -2
- package/dist/react/hooks/useListEvents.d.ts +5 -2
- package/dist/react/hooks/useListEvents.js +7 -7
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +6 -3
- package/dist/react/hooks/useListPlans.d.ts +6 -3
- package/dist/react/hooks/useListPlans.js +7 -7
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +3 -2
- package/dist/react/hooks/useReferrals.d.ts +3 -2
- package/dist/react/hooks/useReferrals.js +7 -7
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +7 -7
- package/dist/react/index.mjs +9 -9
- package/dist/react/{list-plans-op-Cj9hlzsX.d.mts → list-plans-op-B87IUSZR.d.ts} +9 -1
- package/dist/react/{list-plans-op-Bv7x0N22.d.ts → list-plans-op-CvGXtKAO.d.mts} +9 -1
- package/dist/react/{params-5C7THGzd.d.mts → params-BrFcJdeO.d.mts} +119 -5
- package/dist/react/{params-B1og9_ES.d.ts → params-BwHZca3H.d.ts} +119 -5
- package/dist/react/{plan-Kbxmz27V.d.mts → plan-DBswUtWr.d.mts} +8 -0
- package/dist/react/{plan-Kbxmz27V.d.ts → plan-DBswUtWr.d.ts} +8 -0
- package/dist/sdk/index.d.mts +311 -10
- package/dist/sdk/index.d.ts +311 -10
- package/dist/sdk/index.js +144 -21
- package/dist/sdk/index.mjs +133 -20
- package/package.json +1 -1
- 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-DBswUtWr.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Time range to aggregate events for. Either range or custom_range must be provided
|
|
@@ -406,6 +406,10 @@ type AttachItemPlanItem = {
|
|
|
406
406
|
* If true, customer has unlimited access to this feature.
|
|
407
407
|
*/
|
|
408
408
|
unlimited?: boolean | undefined;
|
|
409
|
+
/**
|
|
410
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
411
|
+
*/
|
|
412
|
+
pooled?: boolean | undefined;
|
|
409
413
|
/**
|
|
410
414
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
411
415
|
*/
|
|
@@ -644,6 +648,10 @@ type AttachAddItemPlanItem = {
|
|
|
644
648
|
* If true, customer has unlimited access to this feature.
|
|
645
649
|
*/
|
|
646
650
|
unlimited?: boolean | undefined;
|
|
651
|
+
/**
|
|
652
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
653
|
+
*/
|
|
654
|
+
pooled?: boolean | undefined;
|
|
647
655
|
/**
|
|
648
656
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
649
657
|
*/
|
|
@@ -1217,6 +1225,10 @@ type AttachUpsertLicensePlanItem = {
|
|
|
1217
1225
|
* If true, customer has unlimited access to this feature.
|
|
1218
1226
|
*/
|
|
1219
1227
|
unlimited?: boolean | undefined;
|
|
1228
|
+
/**
|
|
1229
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
1230
|
+
*/
|
|
1231
|
+
pooled?: boolean | undefined;
|
|
1220
1232
|
/**
|
|
1221
1233
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
1222
1234
|
*/
|
|
@@ -1935,6 +1947,10 @@ type BillingUpdateItemPlanItem = {
|
|
|
1935
1947
|
* If true, customer has unlimited access to this feature.
|
|
1936
1948
|
*/
|
|
1937
1949
|
unlimited?: boolean | undefined;
|
|
1950
|
+
/**
|
|
1951
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
1952
|
+
*/
|
|
1953
|
+
pooled?: boolean | undefined;
|
|
1938
1954
|
/**
|
|
1939
1955
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
1940
1956
|
*/
|
|
@@ -2173,6 +2189,10 @@ type BillingUpdateAddItemPlanItem = {
|
|
|
2173
2189
|
* If true, customer has unlimited access to this feature.
|
|
2174
2190
|
*/
|
|
2175
2191
|
unlimited?: boolean | undefined;
|
|
2192
|
+
/**
|
|
2193
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
2194
|
+
*/
|
|
2195
|
+
pooled?: boolean | undefined;
|
|
2176
2196
|
/**
|
|
2177
2197
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
2178
2198
|
*/
|
|
@@ -2746,6 +2766,10 @@ type BillingUpdateUpsertLicensePlanItem = {
|
|
|
2746
2766
|
* If true, customer has unlimited access to this feature.
|
|
2747
2767
|
*/
|
|
2748
2768
|
unlimited?: boolean | undefined;
|
|
2769
|
+
/**
|
|
2770
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
2771
|
+
*/
|
|
2772
|
+
pooled?: boolean | undefined;
|
|
2749
2773
|
/**
|
|
2750
2774
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
2751
2775
|
*/
|
|
@@ -5819,6 +5843,10 @@ type MultiAttachPlanItem = {
|
|
|
5819
5843
|
* If true, customer has unlimited access to this feature.
|
|
5820
5844
|
*/
|
|
5821
5845
|
unlimited?: boolean | undefined;
|
|
5846
|
+
/**
|
|
5847
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
5848
|
+
*/
|
|
5849
|
+
pooled?: boolean | undefined;
|
|
5822
5850
|
/**
|
|
5823
5851
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
5824
5852
|
*/
|
|
@@ -5837,7 +5865,7 @@ type MultiAttachPlanItem = {
|
|
|
5837
5865
|
rollover?: MultiAttachRollover | undefined;
|
|
5838
5866
|
};
|
|
5839
5867
|
/**
|
|
5840
|
-
* Customize the plan to attach. Can override
|
|
5868
|
+
* Customize the plan to attach. Can override its price or items.
|
|
5841
5869
|
*/
|
|
5842
5870
|
type MultiAttachCustomize = {
|
|
5843
5871
|
/**
|
|
@@ -5872,7 +5900,7 @@ type MultiAttachPlan = {
|
|
|
5872
5900
|
*/
|
|
5873
5901
|
planId: string;
|
|
5874
5902
|
/**
|
|
5875
|
-
* Customize the plan to attach. Can override
|
|
5903
|
+
* Customize the plan to attach. Can override its price or items.
|
|
5876
5904
|
*/
|
|
5877
5905
|
customize?: MultiAttachCustomize | undefined;
|
|
5878
5906
|
/**
|
|
@@ -5887,6 +5915,10 @@ type MultiAttachPlan = {
|
|
|
5887
5915
|
* A unique ID to identify this subscription. Useful when attaching the same plan multiple times.
|
|
5888
5916
|
*/
|
|
5889
5917
|
subscriptionId?: string | undefined;
|
|
5918
|
+
/**
|
|
5919
|
+
* The entity scope for this plan. Omit to inherit the request scope, or pass null for customer-level.
|
|
5920
|
+
*/
|
|
5921
|
+
entityId?: string | null | undefined;
|
|
5890
5922
|
};
|
|
5891
5923
|
/**
|
|
5892
5924
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -5970,6 +6002,17 @@ type MultiAttachAttachDiscount = {
|
|
|
5970
6002
|
*/
|
|
5971
6003
|
promotionCode?: string | undefined;
|
|
5972
6004
|
};
|
|
6005
|
+
/**
|
|
6006
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
6007
|
+
*/
|
|
6008
|
+
declare const MultiAttachBillingBehavior: {
|
|
6009
|
+
readonly ProrateImmediately: "prorate_immediately";
|
|
6010
|
+
readonly None: "none";
|
|
6011
|
+
};
|
|
6012
|
+
/**
|
|
6013
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
6014
|
+
*/
|
|
6015
|
+
type MultiAttachBillingBehavior = ClosedEnum<typeof MultiAttachBillingBehavior>;
|
|
5973
6016
|
/**
|
|
5974
6017
|
* Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects.
|
|
5975
6018
|
*/
|
|
@@ -6155,6 +6198,10 @@ type MultiAttachParams = {
|
|
|
6155
6198
|
* Free trial configuration applied to all plans. Pass an object to set a custom trial, or null to remove any trial.
|
|
6156
6199
|
*/
|
|
6157
6200
|
freeTrial?: MultiAttachFreeTrialParams | null | undefined;
|
|
6201
|
+
/**
|
|
6202
|
+
* Unix timestamp in milliseconds for backdating every plan in this multi-attach.
|
|
6203
|
+
*/
|
|
6204
|
+
startsAt?: number | undefined;
|
|
6158
6205
|
/**
|
|
6159
6206
|
* Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default.
|
|
6160
6207
|
*/
|
|
@@ -6167,6 +6214,10 @@ type MultiAttachParams = {
|
|
|
6167
6214
|
* List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
|
|
6168
6215
|
*/
|
|
6169
6216
|
discounts?: Array<MultiAttachAttachDiscount> | undefined;
|
|
6217
|
+
/**
|
|
6218
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
6219
|
+
*/
|
|
6220
|
+
billingBehavior?: MultiAttachBillingBehavior | undefined;
|
|
6170
6221
|
/**
|
|
6171
6222
|
* URL to redirect to after successful checkout.
|
|
6172
6223
|
*/
|
|
@@ -6584,6 +6635,10 @@ type PreviewAttachItemPlanItem = {
|
|
|
6584
6635
|
* If true, customer has unlimited access to this feature.
|
|
6585
6636
|
*/
|
|
6586
6637
|
unlimited?: boolean | undefined;
|
|
6638
|
+
/**
|
|
6639
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
6640
|
+
*/
|
|
6641
|
+
pooled?: boolean | undefined;
|
|
6587
6642
|
/**
|
|
6588
6643
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
6589
6644
|
*/
|
|
@@ -6822,6 +6877,10 @@ type PreviewAttachAddItemPlanItem = {
|
|
|
6822
6877
|
* If true, customer has unlimited access to this feature.
|
|
6823
6878
|
*/
|
|
6824
6879
|
unlimited?: boolean | undefined;
|
|
6880
|
+
/**
|
|
6881
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
6882
|
+
*/
|
|
6883
|
+
pooled?: boolean | undefined;
|
|
6825
6884
|
/**
|
|
6826
6885
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
6827
6886
|
*/
|
|
@@ -7395,6 +7454,10 @@ type PreviewAttachUpsertLicensePlanItem = {
|
|
|
7395
7454
|
* If true, customer has unlimited access to this feature.
|
|
7396
7455
|
*/
|
|
7397
7456
|
unlimited?: boolean | undefined;
|
|
7457
|
+
/**
|
|
7458
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
7459
|
+
*/
|
|
7460
|
+
pooled?: boolean | undefined;
|
|
7398
7461
|
/**
|
|
7399
7462
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
7400
7463
|
*/
|
|
@@ -8355,6 +8418,10 @@ type PreviewMultiAttachPlanItem = {
|
|
|
8355
8418
|
* If true, customer has unlimited access to this feature.
|
|
8356
8419
|
*/
|
|
8357
8420
|
unlimited?: boolean | undefined;
|
|
8421
|
+
/**
|
|
8422
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
8423
|
+
*/
|
|
8424
|
+
pooled?: boolean | undefined;
|
|
8358
8425
|
/**
|
|
8359
8426
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
8360
8427
|
*/
|
|
@@ -8373,7 +8440,7 @@ type PreviewMultiAttachPlanItem = {
|
|
|
8373
8440
|
rollover?: PreviewMultiAttachRollover | undefined;
|
|
8374
8441
|
};
|
|
8375
8442
|
/**
|
|
8376
|
-
* Customize the plan to attach. Can override
|
|
8443
|
+
* Customize the plan to attach. Can override its price or items.
|
|
8377
8444
|
*/
|
|
8378
8445
|
type PreviewMultiAttachCustomize = {
|
|
8379
8446
|
/**
|
|
@@ -8408,7 +8475,7 @@ type PreviewMultiAttachPlan = {
|
|
|
8408
8475
|
*/
|
|
8409
8476
|
planId: string;
|
|
8410
8477
|
/**
|
|
8411
|
-
* Customize the plan to attach. Can override
|
|
8478
|
+
* Customize the plan to attach. Can override its price or items.
|
|
8412
8479
|
*/
|
|
8413
8480
|
customize?: PreviewMultiAttachCustomize | undefined;
|
|
8414
8481
|
/**
|
|
@@ -8423,6 +8490,10 @@ type PreviewMultiAttachPlan = {
|
|
|
8423
8490
|
* A unique ID to identify this subscription. Useful when attaching the same plan multiple times.
|
|
8424
8491
|
*/
|
|
8425
8492
|
subscriptionId?: string | undefined;
|
|
8493
|
+
/**
|
|
8494
|
+
* The entity scope for this plan. Omit to inherit the request scope, or pass null for customer-level.
|
|
8495
|
+
*/
|
|
8496
|
+
entityId?: string | null | undefined;
|
|
8426
8497
|
};
|
|
8427
8498
|
/**
|
|
8428
8499
|
* Unit of time for the trial ('day', 'month', 'year').
|
|
@@ -8506,6 +8577,17 @@ type PreviewMultiAttachAttachDiscount = {
|
|
|
8506
8577
|
*/
|
|
8507
8578
|
promotionCode?: string | undefined;
|
|
8508
8579
|
};
|
|
8580
|
+
/**
|
|
8581
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
8582
|
+
*/
|
|
8583
|
+
declare const PreviewMultiAttachBillingBehavior: {
|
|
8584
|
+
readonly ProrateImmediately: "prorate_immediately";
|
|
8585
|
+
readonly None: "none";
|
|
8586
|
+
};
|
|
8587
|
+
/**
|
|
8588
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
8589
|
+
*/
|
|
8590
|
+
type PreviewMultiAttachBillingBehavior = ClosedEnum<typeof PreviewMultiAttachBillingBehavior>;
|
|
8509
8591
|
/**
|
|
8510
8592
|
* Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects.
|
|
8511
8593
|
*/
|
|
@@ -8691,6 +8773,10 @@ type PreviewMultiAttachParams = {
|
|
|
8691
8773
|
* Free trial configuration applied to all plans. Pass an object to set a custom trial, or null to remove any trial.
|
|
8692
8774
|
*/
|
|
8693
8775
|
freeTrial?: PreviewMultiAttachFreeTrialParams | null | undefined;
|
|
8776
|
+
/**
|
|
8777
|
+
* Unix timestamp in milliseconds for backdating every plan in this multi-attach.
|
|
8778
|
+
*/
|
|
8779
|
+
startsAt?: number | undefined;
|
|
8694
8780
|
/**
|
|
8695
8781
|
* Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default.
|
|
8696
8782
|
*/
|
|
@@ -8703,6 +8789,10 @@ type PreviewMultiAttachParams = {
|
|
|
8703
8789
|
* List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.
|
|
8704
8790
|
*/
|
|
8705
8791
|
discounts?: Array<PreviewMultiAttachAttachDiscount> | undefined;
|
|
8792
|
+
/**
|
|
8793
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
8794
|
+
*/
|
|
8795
|
+
billingBehavior?: PreviewMultiAttachBillingBehavior | undefined;
|
|
8706
8796
|
/**
|
|
8707
8797
|
* URL to redirect to after successful checkout.
|
|
8708
8798
|
*/
|
|
@@ -9360,6 +9450,10 @@ type PreviewUpdateItemPlanItem = {
|
|
|
9360
9450
|
* If true, customer has unlimited access to this feature.
|
|
9361
9451
|
*/
|
|
9362
9452
|
unlimited?: boolean | undefined;
|
|
9453
|
+
/**
|
|
9454
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
9455
|
+
*/
|
|
9456
|
+
pooled?: boolean | undefined;
|
|
9363
9457
|
/**
|
|
9364
9458
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
9365
9459
|
*/
|
|
@@ -9598,6 +9692,10 @@ type PreviewUpdateAddItemPlanItem = {
|
|
|
9598
9692
|
* If true, customer has unlimited access to this feature.
|
|
9599
9693
|
*/
|
|
9600
9694
|
unlimited?: boolean | undefined;
|
|
9695
|
+
/**
|
|
9696
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
9697
|
+
*/
|
|
9698
|
+
pooled?: boolean | undefined;
|
|
9601
9699
|
/**
|
|
9602
9700
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
9603
9701
|
*/
|
|
@@ -10171,6 +10269,10 @@ type PreviewUpdateUpsertLicensePlanItem = {
|
|
|
10171
10269
|
* If true, customer has unlimited access to this feature.
|
|
10172
10270
|
*/
|
|
10173
10271
|
unlimited?: boolean | undefined;
|
|
10272
|
+
/**
|
|
10273
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
10274
|
+
*/
|
|
10275
|
+
pooled?: boolean | undefined;
|
|
10174
10276
|
/**
|
|
10175
10277
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
10176
10278
|
*/
|
|
@@ -11135,6 +11237,10 @@ type SetupPaymentItemPlanItem = {
|
|
|
11135
11237
|
* If true, customer has unlimited access to this feature.
|
|
11136
11238
|
*/
|
|
11137
11239
|
unlimited?: boolean | undefined;
|
|
11240
|
+
/**
|
|
11241
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
11242
|
+
*/
|
|
11243
|
+
pooled?: boolean | undefined;
|
|
11138
11244
|
/**
|
|
11139
11245
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
11140
11246
|
*/
|
|
@@ -11373,6 +11479,10 @@ type SetupPaymentAddItemPlanItem = {
|
|
|
11373
11479
|
* If true, customer has unlimited access to this feature.
|
|
11374
11480
|
*/
|
|
11375
11481
|
unlimited?: boolean | undefined;
|
|
11482
|
+
/**
|
|
11483
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
11484
|
+
*/
|
|
11485
|
+
pooled?: boolean | undefined;
|
|
11376
11486
|
/**
|
|
11377
11487
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
11378
11488
|
*/
|
|
@@ -11946,6 +12056,10 @@ type SetupPaymentUpsertLicensePlanItem = {
|
|
|
11946
12056
|
* If true, customer has unlimited access to this feature.
|
|
11947
12057
|
*/
|
|
11948
12058
|
unlimited?: boolean | undefined;
|
|
12059
|
+
/**
|
|
12060
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
12061
|
+
*/
|
|
12062
|
+
pooled?: boolean | undefined;
|
|
11949
12063
|
/**
|
|
11950
12064
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
11951
12065
|
*/
|
|
@@ -591,6 +591,10 @@ type Item = {
|
|
|
591
591
|
* Whether the customer has unlimited access to this feature.
|
|
592
592
|
*/
|
|
593
593
|
unlimited: boolean;
|
|
594
|
+
/**
|
|
595
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
596
|
+
*/
|
|
597
|
+
pooled: boolean;
|
|
594
598
|
/**
|
|
595
599
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
596
600
|
*/
|
|
@@ -921,6 +925,10 @@ type PlanItem = {
|
|
|
921
925
|
* If true, customer has unlimited access to this feature.
|
|
922
926
|
*/
|
|
923
927
|
unlimited?: boolean | undefined;
|
|
928
|
+
/**
|
|
929
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
930
|
+
*/
|
|
931
|
+
pooled: boolean;
|
|
924
932
|
/**
|
|
925
933
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
926
934
|
*/
|
|
@@ -591,6 +591,10 @@ type Item = {
|
|
|
591
591
|
* Whether the customer has unlimited access to this feature.
|
|
592
592
|
*/
|
|
593
593
|
unlimited: boolean;
|
|
594
|
+
/**
|
|
595
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
596
|
+
*/
|
|
597
|
+
pooled: boolean;
|
|
594
598
|
/**
|
|
595
599
|
* Reset configuration for consumable features. Null for non-consumable features like seats where usage persists across billing cycles.
|
|
596
600
|
*/
|
|
@@ -921,6 +925,10 @@ type PlanItem = {
|
|
|
921
925
|
* If true, customer has unlimited access to this feature.
|
|
922
926
|
*/
|
|
923
927
|
unlimited?: boolean | undefined;
|
|
928
|
+
/**
|
|
929
|
+
* Whether entity-level grants contribute to a shared customer balance.
|
|
930
|
+
*/
|
|
931
|
+
pooled: boolean;
|
|
924
932
|
/**
|
|
925
933
|
* Reset configuration for consumable features. Omit for non-consumable features like seats.
|
|
926
934
|
*/
|