@outseta/react 0.5.0 → 0.5.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@outseta/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "React hooks and components for the Outseta API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@outseta/api-client": "0.4.
|
|
21
|
+
"@outseta/api-client": "0.4.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": "^18.0.0 || ^19.0.0"
|
|
@@ -586,6 +586,7 @@ export function useDiscountCouponGetDiscountCouponRedemptions<TData = Awaited<Re
|
|
|
586
586
|
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
|
|
589
590
|
* @summary Add a usage entry for an add-on that bills for usage at the end of the month.
|
|
590
591
|
*/
|
|
591
592
|
export const usageAddUsage = (
|
|
@@ -924,6 +925,8 @@ export function useSubscriptionAddOnGetAllSubscriptionsAddOns<TData = Awaited<Re
|
|
|
924
925
|
|
|
925
926
|
|
|
926
927
|
/**
|
|
928
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected;
|
|
929
|
+
use PUT /billing/stripe/subscriptions/{subscriptionUid}/change instead.
|
|
927
930
|
* @summary Add an add-on to a subscription.
|
|
928
931
|
*/
|
|
929
932
|
export const subscriptionAddOnAddSubscriptionAddOn = (
|
|
@@ -1123,7 +1126,9 @@ export const useSubscriptionAddOnAddSubscriptionAddOnPreview = <TError = void,
|
|
|
1123
1126
|
return useMutation(mutationOptions);
|
|
1124
1127
|
}
|
|
1125
1128
|
/**
|
|
1126
|
-
*
|
|
1129
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
|
|
1130
|
+
|
|
1131
|
+
When a subscription add-on is flagged, the next time the user authenticates the
|
|
1127
1132
|
authentication widget will prompt the user to change their add-on.
|
|
1128
1133
|
* @summary Indicate that an upgrade of an add-on is required.
|
|
1129
1134
|
*/
|
|
@@ -1189,7 +1194,10 @@ export const useSubscriptionAddOnSetAddOnUpgradeRequired = <TError = void,
|
|
|
1189
1194
|
return useMutation(mutationOptions);
|
|
1190
1195
|
}
|
|
1191
1196
|
/**
|
|
1192
|
-
*
|
|
1197
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected;
|
|
1198
|
+
use PUT /billing/stripe/subscriptions/{subscriptionUid}/change instead.
|
|
1199
|
+
|
|
1200
|
+
Removes the add-on from the subscription going forward and returns the updated
|
|
1193
1201
|
subscription.
|
|
1194
1202
|
* @summary End an add-on on a subscription.
|
|
1195
1203
|
*/
|
|
@@ -1252,6 +1260,7 @@ export const useSubscriptionAddOnEndSubscriptionAddOn = <TError = void,
|
|
|
1252
1260
|
return useMutation(mutationOptions);
|
|
1253
1261
|
}
|
|
1254
1262
|
/**
|
|
1263
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
|
|
1255
1264
|
* @summary Immediately ends an add-on.
|
|
1256
1265
|
*/
|
|
1257
1266
|
export const subscriptionAddOnExpireSubscriptionAddOn = (
|
|
@@ -1386,6 +1395,8 @@ export function useInvoiceGetAllInvoices<TData = Awaited<ReturnType<typeof invoi
|
|
|
1386
1395
|
|
|
1387
1396
|
|
|
1388
1397
|
/**
|
|
1398
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected;
|
|
1399
|
+
use POST /billing/stripe/invoices instead.
|
|
1389
1400
|
* @summary Create an ad-hoc invoice for a given account.
|
|
1390
1401
|
*/
|
|
1391
1402
|
export const invoiceAddInvoice = (
|
|
@@ -1518,7 +1529,9 @@ export function useInvoiceGetInvoice<TData = Awaited<ReturnType<typeof invoiceGe
|
|
|
1518
1529
|
|
|
1519
1530
|
|
|
1520
1531
|
/**
|
|
1521
|
-
*
|
|
1532
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
|
|
1533
|
+
|
|
1534
|
+
Only invoices created manually via the API or admin UI can be updated; invoices
|
|
1522
1535
|
generated by a subscription's billing cycle are immutable and will return a
|
|
1523
1536
|
validation error.
|
|
1524
1537
|
* @summary Update an ad-hoc (manually created) invoice.
|
|
@@ -2054,6 +2067,7 @@ export const useSubscriptionDeleteSubscription = <TError = void,
|
|
|
2054
2067
|
return useMutation(mutationOptions);
|
|
2055
2068
|
}
|
|
2056
2069
|
/**
|
|
2070
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
|
|
2057
2071
|
* @summary Add a discount to a subscription.
|
|
2058
2072
|
*/
|
|
2059
2073
|
export const subscriptionAddDiscountToSubscription = (
|
|
@@ -2182,7 +2196,9 @@ export const useSubscriptionExpireDiscountCouponSubscription = <TError = void,
|
|
|
2182
2196
|
return useMutation(mutationOptions);
|
|
2183
2197
|
}
|
|
2184
2198
|
/**
|
|
2185
|
-
*
|
|
2199
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected.
|
|
2200
|
+
|
|
2201
|
+
When a subscription is flagged, next time the user authenticates the authentication
|
|
2186
2202
|
widget will prompt the user to change plan.
|
|
2187
2203
|
* @summary Indicate that an upgrade of plan is required.
|
|
2188
2204
|
*/
|
|
@@ -2318,7 +2334,10 @@ export const useSubscriptionFirstTimeSubscriptionPreview = <TError = unknown,
|
|
|
2318
2334
|
return useMutation(mutationOptions);
|
|
2319
2335
|
}
|
|
2320
2336
|
/**
|
|
2321
|
-
*
|
|
2337
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected;
|
|
2338
|
+
use POST /billing/stripe/subscriptions instead.
|
|
2339
|
+
|
|
2340
|
+
Returns the new subscription.
|
|
2322
2341
|
|
|
2323
2342
|
Outseta sets the subscription's dates itself, except ExpirationDate:
|
|
2324
2343
|
|
|
@@ -2465,7 +2484,10 @@ export const useSubscriptionChangeSubscriptionPreview = <TError = void,
|
|
|
2465
2484
|
return useMutation(mutationOptions);
|
|
2466
2485
|
}
|
|
2467
2486
|
/**
|
|
2468
|
-
*
|
|
2487
|
+
* Applies to Outseta billing (v2) only. With Stripe Billing (v3) the request is rejected;
|
|
2488
|
+
use PUT /billing/stripe/subscriptions/{subscriptionUid}/change instead.
|
|
2489
|
+
|
|
2490
|
+
Returns the new subscription; its StartDate is when the change takes effect. When only add-ons
|
|
2469
2491
|
change, returns the existing subscription.
|
|
2470
2492
|
|
|
2471
2493
|
A change of plan, BillingRenewalTerm or quantity ends the current subscription and creates a new
|
|
@@ -167,7 +167,9 @@ export function useStripeInvoiceLineItemsGetAll<TData = Awaited<ReturnType<typeo
|
|
|
167
167
|
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
171
|
+
|
|
172
|
+
Access ends now. This sets the line item's EndDate and updates the account's products
|
|
171
173
|
and stage. The invoice is not changed.
|
|
172
174
|
* @summary End the product access that a line item gives.
|
|
173
175
|
*/
|
|
@@ -577,7 +579,10 @@ export function useStripePromotionCodesGetAll<TData = Awaited<ReturnType<typeof
|
|
|
577
579
|
|
|
578
580
|
|
|
579
581
|
/**
|
|
580
|
-
*
|
|
582
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
583
|
+
use POST /billing/discountcoupons instead.
|
|
584
|
+
|
|
585
|
+
A promotion code belongs to a coupon. The code is also created in the connected Stripe
|
|
581
586
|
account.
|
|
582
587
|
* @summary Add a new promotion code.
|
|
583
588
|
*/
|
|
@@ -711,7 +716,9 @@ export function useStripePromotionCodesGet<TData = Awaited<ReturnType<typeof str
|
|
|
711
716
|
|
|
712
717
|
|
|
713
718
|
/**
|
|
714
|
-
*
|
|
719
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
720
|
+
|
|
721
|
+
The code can no longer be redeemed. It is also ended in the connected Stripe account.
|
|
715
722
|
No other change is made. The promotion code to end is identified by the Uid in the
|
|
716
723
|
request body.
|
|
717
724
|
* @summary End a promotion code.
|
|
@@ -919,7 +926,10 @@ export function useStripeProductFamiliesGetAll<TData = Awaited<ReturnType<typeof
|
|
|
919
926
|
|
|
920
927
|
|
|
921
928
|
/**
|
|
922
|
-
*
|
|
929
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
930
|
+
use POST /billing/planfamilies instead.
|
|
931
|
+
|
|
932
|
+
A product added to this family is removed from any other family.
|
|
923
933
|
* @summary Add a new product family.
|
|
924
934
|
*/
|
|
925
935
|
export const stripeProductFamiliesPost = (
|
|
@@ -1052,7 +1062,10 @@ export function useStripeProductFamiliesGet<TData = Awaited<ReturnType<typeof st
|
|
|
1052
1062
|
|
|
1053
1063
|
|
|
1054
1064
|
/**
|
|
1055
|
-
*
|
|
1065
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
1066
|
+
use PUT /billing/planfamilies/{planFamilyUid} instead.
|
|
1067
|
+
|
|
1068
|
+
A product added to this family is removed from any other family.
|
|
1056
1069
|
* @summary Update a product family.
|
|
1057
1070
|
*/
|
|
1058
1071
|
export const stripeProductFamiliesPut = (
|
|
@@ -1248,7 +1261,10 @@ export function useStripeCouponsGetAll<TData = Awaited<ReturnType<typeof stripeC
|
|
|
1248
1261
|
|
|
1249
1262
|
|
|
1250
1263
|
/**
|
|
1251
|
-
*
|
|
1264
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
1265
|
+
use POST /billing/discountcoupons instead.
|
|
1266
|
+
|
|
1267
|
+
Set exactly one of PercentOff or CurrencyAmountOff. The coupon is also created in the
|
|
1252
1268
|
connected Stripe account.
|
|
1253
1269
|
* @summary Add a new coupon.
|
|
1254
1270
|
*/
|
|
@@ -1521,6 +1537,7 @@ export function useStripeCouponsGetRedemptions<TData = Awaited<ReturnType<typeof
|
|
|
1521
1537
|
|
|
1522
1538
|
|
|
1523
1539
|
/**
|
|
1540
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
1524
1541
|
* @summary Import all coupons and promotion codes from the connected Stripe account.
|
|
1525
1542
|
*/
|
|
1526
1543
|
export const stripeCouponsSyncCouponsFromStripe = (
|
|
@@ -1583,6 +1600,7 @@ export const useStripeCouponsSyncCouponsFromStripe = <TError = void,
|
|
|
1583
1600
|
return useMutation(mutationOptions);
|
|
1584
1601
|
}
|
|
1585
1602
|
/**
|
|
1603
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
1586
1604
|
* @summary Import a coupon from the connected Stripe account.
|
|
1587
1605
|
*/
|
|
1588
1606
|
export const stripeCouponsSyncCouponFromStripe = (
|
|
@@ -1718,7 +1736,10 @@ export function useStripeInvoicesGetAll<TData = Awaited<ReturnType<typeof stripe
|
|
|
1718
1736
|
|
|
1719
1737
|
|
|
1720
1738
|
/**
|
|
1721
|
-
*
|
|
1739
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
1740
|
+
use POST /billing/invoices instead.
|
|
1741
|
+
|
|
1742
|
+
The invoice is created for an account, and also in the connected Stripe account.
|
|
1722
1743
|
* @summary Add a new invoice.
|
|
1723
1744
|
*/
|
|
1724
1745
|
export const stripeInvoicesPost = (
|
|
@@ -1922,7 +1943,9 @@ export function useStripeInvoicesGetInvoiceAsPdf<TData = Awaited<ReturnType<type
|
|
|
1922
1943
|
|
|
1923
1944
|
|
|
1924
1945
|
/**
|
|
1925
|
-
*
|
|
1946
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
1947
|
+
|
|
1948
|
+
NewStatus is one of paid (paid outside Stripe), uncollectible or void. The change is
|
|
1926
1949
|
also made in the connected Stripe account.
|
|
1927
1950
|
* @summary Change the status of an invoice.
|
|
1928
1951
|
*/
|
|
@@ -1990,7 +2013,9 @@ export const useStripeInvoicesChangeInvoiceStatus = <TError = void,
|
|
|
1990
2013
|
return useMutation(mutationOptions);
|
|
1991
2014
|
}
|
|
1992
2015
|
/**
|
|
1993
|
-
*
|
|
2016
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2017
|
+
|
|
2018
|
+
CreditType is one of account_balance, payment_method (refund to the payment method) or
|
|
1994
2019
|
out_of_band. The credit note is created in the connected Stripe account.
|
|
1995
2020
|
* @summary Issue a credit note against an invoice.
|
|
1996
2021
|
*/
|
|
@@ -2058,6 +2083,7 @@ export const useStripeInvoicesIssueInvoiceCredit = <TError = void,
|
|
|
2058
2083
|
return useMutation(mutationOptions);
|
|
2059
2084
|
}
|
|
2060
2085
|
/**
|
|
2086
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2061
2087
|
* @summary Email an invoice to the account.
|
|
2062
2088
|
*/
|
|
2063
2089
|
export const stripeInvoicesSendInvoiceEmail = (
|
|
@@ -2121,6 +2147,7 @@ export const useStripeInvoicesSendInvoiceEmail = <TError = void,
|
|
|
2121
2147
|
return useMutation(mutationOptions);
|
|
2122
2148
|
}
|
|
2123
2149
|
/**
|
|
2150
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2124
2151
|
* @summary Import all invoices from the connected Stripe account.
|
|
2125
2152
|
*/
|
|
2126
2153
|
export const stripeInvoicesSyncInvoicesFromStripe = (
|
|
@@ -2252,7 +2279,10 @@ export function useStripeSubscriptionsGetAll<TData = Awaited<ReturnType<typeof s
|
|
|
2252
2279
|
|
|
2253
2280
|
|
|
2254
2281
|
/**
|
|
2255
|
-
*
|
|
2282
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
2283
|
+
use PUT /billing/subscriptions/firsttimesubscription instead.
|
|
2284
|
+
|
|
2285
|
+
The subscription is created for an account, and also in the connected Stripe account.
|
|
2256
2286
|
Identify each item's StripePrice by Uid or StripeId. A discount can name a
|
|
2257
2287
|
StripePromotionCode, or a StripeCoupon, in which case the first promotion code of
|
|
2258
2288
|
that coupon that the account can redeem is used.
|
|
@@ -2320,7 +2350,9 @@ export const useStripeSubscriptionsCreate = <TError = void,
|
|
|
2320
2350
|
return useMutation(mutationOptions);
|
|
2321
2351
|
}
|
|
2322
2352
|
/**
|
|
2323
|
-
*
|
|
2353
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2354
|
+
|
|
2355
|
+
By default the subscription ends at the end of the current billing period. Pass
|
|
2324
2356
|
cancelImmediately=true in the query string to end it now.
|
|
2325
2357
|
* @summary Cancel a subscription.
|
|
2326
2358
|
*/
|
|
@@ -2384,7 +2416,9 @@ export const useStripeSubscriptionsCancel = <TError = void,
|
|
|
2384
2416
|
return useMutation(mutationOptions);
|
|
2385
2417
|
}
|
|
2386
2418
|
/**
|
|
2387
|
-
*
|
|
2419
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2420
|
+
|
|
2421
|
+
Behavior is one of Stripe's pause_collection behaviors: keep_as_draft,
|
|
2388
2422
|
mark_uncollectible or void. ResumesAt is optional; without it, collection stays paused
|
|
2389
2423
|
until resumed.
|
|
2390
2424
|
* @summary Pause payment collection on a subscription.
|
|
@@ -2452,7 +2486,10 @@ export const useStripeSubscriptionsPauseCollection = <TError = void,
|
|
|
2452
2486
|
return useMutation(mutationOptions);
|
|
2453
2487
|
}
|
|
2454
2488
|
/**
|
|
2455
|
-
*
|
|
2489
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
2490
|
+
use PUT /billing/subscriptions/{subscriptionUid}/changesubscription instead.
|
|
2491
|
+
|
|
2492
|
+
Use this, for example, to move a subscription to another price. Identify each item's
|
|
2456
2493
|
StripePrice by Uid or StripeId. A user token can only change a subscription on its own
|
|
2457
2494
|
account, and only as the account's primary contact.
|
|
2458
2495
|
* @summary Change the items of a subscription.
|
|
@@ -2588,7 +2625,9 @@ export const useStripeSubscriptionsPreviewChange = <TError = void,
|
|
|
2588
2625
|
return useMutation(mutationOptions);
|
|
2589
2626
|
}
|
|
2590
2627
|
/**
|
|
2591
|
-
*
|
|
2628
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2629
|
+
|
|
2630
|
+
This sets the subscription's trial end to ToDate, without proration.
|
|
2592
2631
|
* @summary Extend the date of a subscription's next invoice.
|
|
2593
2632
|
*/
|
|
2594
2633
|
export const stripeSubscriptionsExtendTrial = (
|
|
@@ -2654,7 +2693,9 @@ export const useStripeSubscriptionsExtendTrial = <TError = void,
|
|
|
2654
2693
|
return useMutation(mutationOptions);
|
|
2655
2694
|
}
|
|
2656
2695
|
/**
|
|
2657
|
-
*
|
|
2696
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2697
|
+
|
|
2698
|
+
The scheduled changes no longer happen, and the subscription keeps its current items.
|
|
2658
2699
|
Nothing happens when there is no active schedule.
|
|
2659
2700
|
* @summary Release a subscription's active schedule.
|
|
2660
2701
|
*/
|
|
@@ -2718,6 +2759,7 @@ export const useStripeSubscriptionsReleaseSchedule = <TError = void,
|
|
|
2718
2759
|
return useMutation(mutationOptions);
|
|
2719
2760
|
}
|
|
2720
2761
|
/**
|
|
2762
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2721
2763
|
* @summary Resume payment collection on a paused subscription.
|
|
2722
2764
|
*/
|
|
2723
2765
|
export const stripeSubscriptionsResumeCollection = (
|
|
@@ -2780,7 +2822,9 @@ export const useStripeSubscriptionsResumeCollection = <TError = void,
|
|
|
2780
2822
|
return useMutation(mutationOptions);
|
|
2781
2823
|
}
|
|
2782
2824
|
/**
|
|
2783
|
-
*
|
|
2825
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2826
|
+
|
|
2827
|
+
The trial ends now, so that the subscription starts and is invoiced.
|
|
2784
2828
|
* @summary Start a trialing subscription.
|
|
2785
2829
|
*/
|
|
2786
2830
|
export const stripeSubscriptionsStart = (
|
|
@@ -2843,7 +2887,9 @@ export const useStripeSubscriptionsStart = <TError = void,
|
|
|
2843
2887
|
return useMutation(mutationOptions);
|
|
2844
2888
|
}
|
|
2845
2889
|
/**
|
|
2846
|
-
*
|
|
2890
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2891
|
+
|
|
2892
|
+
Pass productUid in the query string to import only the subscriptions to that
|
|
2847
2893
|
product's prices. The response is an import result wrapped in a Count property.
|
|
2848
2894
|
* @summary Import subscriptions from the connected Stripe account.
|
|
2849
2895
|
*/
|
|
@@ -2908,7 +2954,9 @@ export const useStripeSubscriptionsSyncSubscriptionsFromStripe = <TError = void,
|
|
|
2908
2954
|
return useMutation(mutationOptions);
|
|
2909
2955
|
}
|
|
2910
2956
|
/**
|
|
2911
|
-
*
|
|
2957
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
2958
|
+
|
|
2959
|
+
A subscription set to end at the end of its billing period renews instead.
|
|
2912
2960
|
* @summary Remove a subscription's pending cancellation.
|
|
2913
2961
|
*/
|
|
2914
2962
|
export const stripeSubscriptionsUncancel = (
|
|
@@ -3040,7 +3088,10 @@ export function useStripeProductsGetAll<TData = Awaited<ReturnType<typeof stripe
|
|
|
3040
3088
|
|
|
3041
3089
|
|
|
3042
3090
|
/**
|
|
3043
|
-
*
|
|
3091
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
3092
|
+
use POST /billing/plans or POST /billing/addons instead.
|
|
3093
|
+
|
|
3094
|
+
The product is also created in the connected Stripe account.
|
|
3044
3095
|
* @summary Add a new product.
|
|
3045
3096
|
*/
|
|
3046
3097
|
export const stripeProductsPost = (
|
|
@@ -3105,6 +3156,7 @@ export const useStripeProductsPost = <TError = void,
|
|
|
3105
3156
|
return useMutation(mutationOptions);
|
|
3106
3157
|
}
|
|
3107
3158
|
/**
|
|
3159
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
3108
3160
|
* @summary Import all products and their prices from the connected Stripe account.
|
|
3109
3161
|
*/
|
|
3110
3162
|
export const stripeProductsSyncProductsFromStripe = (
|
|
@@ -3235,7 +3287,10 @@ export function useStripeProductsGet<TData = Awaited<ReturnType<typeof stripePro
|
|
|
3235
3287
|
|
|
3236
3288
|
|
|
3237
3289
|
/**
|
|
3238
|
-
*
|
|
3290
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected;
|
|
3291
|
+
use PUT /billing/plans/{planUid} or PUT /billing/addons/{addOnUid} instead.
|
|
3292
|
+
|
|
3293
|
+
The changes are also sent to the connected Stripe account.
|
|
3239
3294
|
* @summary Update a product.
|
|
3240
3295
|
*/
|
|
3241
3296
|
export const stripeProductsPut = (
|
|
@@ -3300,6 +3355,7 @@ export const useStripeProductsPut = <TError = void,
|
|
|
3300
3355
|
return useMutation(mutationOptions);
|
|
3301
3356
|
}
|
|
3302
3357
|
/**
|
|
3358
|
+
* Applies to Stripe Billing (v3) only. With Outseta billing (v2) the request is rejected.
|
|
3303
3359
|
* @summary Import a product and its prices from the connected Stripe account.
|
|
3304
3360
|
*/
|
|
3305
3361
|
export const stripeProductsSyncProductFromStripe = (
|
|
@@ -821,6 +821,8 @@ export type StripeInvoiceAllOf = {
|
|
|
821
821
|
/** @nullable */
|
|
822
822
|
CustomerId?: string | null;
|
|
823
823
|
/** @nullable */
|
|
824
|
+
EffectiveDate?: string | null;
|
|
825
|
+
/** @nullable */
|
|
824
826
|
PaymentStatus?: string | null;
|
|
825
827
|
/** @nullable */
|
|
826
828
|
StripeCreditNotes?: StripeCreditNote[] | null;
|
|
@@ -1405,6 +1407,12 @@ export type StripeProductFamilyAllOf = {
|
|
|
1405
1407
|
IsActive?: boolean;
|
|
1406
1408
|
IsDefault?: boolean;
|
|
1407
1409
|
/** @nullable */
|
|
1410
|
+
BillingCycleAnchorDayOfMonth?: number | null;
|
|
1411
|
+
/** @nullable */
|
|
1412
|
+
BillingCycleAnchorHour?: number | null;
|
|
1413
|
+
/** @nullable */
|
|
1414
|
+
BillingCycleAnchorMonth?: number | null;
|
|
1415
|
+
/** @nullable */
|
|
1408
1416
|
StripeProducts?: StripeProduct[] | null;
|
|
1409
1417
|
[key: string]: unknown | null;
|
|
1410
1418
|
};
|
|
@@ -1503,6 +1511,8 @@ export type StripeSubscriptionAllOf = {
|
|
|
1503
1511
|
/** @nullable */
|
|
1504
1512
|
ApplicationFeePercent?: number | null;
|
|
1505
1513
|
/** @nullable */
|
|
1514
|
+
BillingCycleAnchor?: string | null;
|
|
1515
|
+
/** @nullable */
|
|
1506
1516
|
CancelAt?: string | null;
|
|
1507
1517
|
CancelAtPeriodEnd?: boolean;
|
|
1508
1518
|
/** @nullable */
|
|
@@ -1540,14 +1550,14 @@ export type StripeSubscriptionAllOf = {
|
|
|
1540
1550
|
/** @nullable */
|
|
1541
1551
|
AccountUid?: string | null;
|
|
1542
1552
|
/** @nullable */
|
|
1543
|
-
BillingCycleAnchor?: string | null;
|
|
1544
|
-
/** @nullable */
|
|
1545
1553
|
CollectionMethod?: string | null;
|
|
1546
1554
|
/** @nullable */
|
|
1547
1555
|
CustomerId?: string | null;
|
|
1548
1556
|
/** @nullable */
|
|
1549
1557
|
DaysUntilDue?: number | null;
|
|
1550
1558
|
/** @nullable */
|
|
1559
|
+
PaymentUrl?: string | null;
|
|
1560
|
+
/** @nullable */
|
|
1551
1561
|
ScheduleId?: string | null;
|
|
1552
1562
|
/** @nullable */
|
|
1553
1563
|
StripeDiscountIds?: string[] | null;
|
|
@@ -3555,6 +3565,11 @@ export const QcountConfigSettingType = {
|
|
|
3555
3565
|
StripeMigration_LastPreCutoverExportSubscriptionId: 579,
|
|
3556
3566
|
} as const;
|
|
3557
3567
|
|
|
3568
|
+
export interface TeamTwoFactorSettings {
|
|
3569
|
+
Enabled?: boolean;
|
|
3570
|
+
Required?: boolean;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3558
3573
|
export type DiscordServerAllOf = {
|
|
3559
3574
|
/**
|
|
3560
3575
|
* @maxLength 250
|
|
@@ -5728,6 +5743,8 @@ export type AccountWebhookEntityStripeInvoicesItem = {
|
|
|
5728
5743
|
/** @nullable */
|
|
5729
5744
|
CustomerId?: string | null;
|
|
5730
5745
|
/** @nullable */
|
|
5746
|
+
EffectiveDate?: string | null;
|
|
5747
|
+
/** @nullable */
|
|
5731
5748
|
PaymentStatus?: string | null;
|
|
5732
5749
|
/** @nullable */
|
|
5733
5750
|
StripePaymentMethodId?: string | null;
|
|
@@ -5790,6 +5807,8 @@ export type AccountWebhookEntityStripeSubscriptionsItem = {
|
|
|
5790
5807
|
/** @nullable */
|
|
5791
5808
|
ApplicationFeePercent?: number | null;
|
|
5792
5809
|
/** @nullable */
|
|
5810
|
+
BillingCycleAnchor?: string | null;
|
|
5811
|
+
/** @nullable */
|
|
5793
5812
|
CancelAt?: string | null;
|
|
5794
5813
|
CancelAtPeriodEnd?: boolean;
|
|
5795
5814
|
/**
|
|
@@ -5817,14 +5836,14 @@ export type AccountWebhookEntityStripeSubscriptionsItem = {
|
|
|
5817
5836
|
/** @nullable */
|
|
5818
5837
|
AccountUid?: string | null;
|
|
5819
5838
|
/** @nullable */
|
|
5820
|
-
BillingCycleAnchor?: string | null;
|
|
5821
|
-
/** @nullable */
|
|
5822
5839
|
CollectionMethod?: string | null;
|
|
5823
5840
|
/** @nullable */
|
|
5824
5841
|
CustomerId?: string | null;
|
|
5825
5842
|
/** @nullable */
|
|
5826
5843
|
DaysUntilDue?: number | null;
|
|
5827
5844
|
/** @nullable */
|
|
5845
|
+
PaymentUrl?: string | null;
|
|
5846
|
+
/** @nullable */
|
|
5828
5847
|
ScheduleId?: string | null;
|
|
5829
5848
|
/** @nullable */
|
|
5830
5849
|
StripeDiscountIds?: string[] | null;
|
|
@@ -7543,6 +7562,8 @@ export type AccountWebhookEntityPrimaryStripeSubscription = {
|
|
|
7543
7562
|
/** @nullable */
|
|
7544
7563
|
ApplicationFeePercent?: number | null;
|
|
7545
7564
|
/** @nullable */
|
|
7565
|
+
BillingCycleAnchor?: string | null;
|
|
7566
|
+
/** @nullable */
|
|
7546
7567
|
CancelAt?: string | null;
|
|
7547
7568
|
CancelAtPeriodEnd?: boolean;
|
|
7548
7569
|
/**
|
|
@@ -7570,14 +7591,14 @@ export type AccountWebhookEntityPrimaryStripeSubscription = {
|
|
|
7570
7591
|
/** @nullable */
|
|
7571
7592
|
AccountUid?: string | null;
|
|
7572
7593
|
/** @nullable */
|
|
7573
|
-
BillingCycleAnchor?: string | null;
|
|
7574
|
-
/** @nullable */
|
|
7575
7594
|
CollectionMethod?: string | null;
|
|
7576
7595
|
/** @nullable */
|
|
7577
7596
|
CustomerId?: string | null;
|
|
7578
7597
|
/** @nullable */
|
|
7579
7598
|
DaysUntilDue?: number | null;
|
|
7580
7599
|
/** @nullable */
|
|
7600
|
+
PaymentUrl?: string | null;
|
|
7601
|
+
/** @nullable */
|
|
7581
7602
|
ScheduleId?: string | null;
|
|
7582
7603
|
/** @nullable */
|
|
7583
7604
|
StripeDiscountIds?: string[] | null;
|