@frontegg/redux-store 5.27.0 → 5.28.0
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.
|
@@ -442,7 +442,7 @@ function* cancelSubscription() {
|
|
|
442
442
|
if (isCancellable) {
|
|
443
443
|
try {
|
|
444
444
|
yield effects.put(actions$6.setCancellationLoading(true));
|
|
445
|
-
yield effects.call(restApi.api.subscriptions.
|
|
445
|
+
yield effects.call(restApi.api.subscriptions.cancelManagedSubscription, subscriptionId);
|
|
446
446
|
yield effects.put(actions$6.setBillingInformation({
|
|
447
447
|
subscription: Object.assign(Object.assign({}, overview.subscription), { cancellation: {
|
|
448
448
|
policy: exports.SubscriptionCancellationPolicy.AT_PERIOD_END,
|
|
@@ -469,7 +469,7 @@ function* renewSubscription() {
|
|
|
469
469
|
if (renewable) {
|
|
470
470
|
try {
|
|
471
471
|
yield effects.put(actions$6.setRenewalLoading(true));
|
|
472
|
-
yield effects.call(restApi.api.subscriptions.
|
|
472
|
+
yield effects.call(restApi.api.subscriptions.renewManagedSubscription, subscriptionId);
|
|
473
473
|
yield effects.put(actions$6.setBillingInformation({
|
|
474
474
|
subscription: Object.assign(Object.assign({}, overview.subscription), { cancellation: null }),
|
|
475
475
|
}));
|
|
@@ -697,8 +697,7 @@ function* confirmPlan({ payload: paymentMethodId }) {
|
|
|
697
697
|
try {
|
|
698
698
|
yield effects.call(restApi.api.subscriptions.updateManagedSubscription, subscription.id, {
|
|
699
699
|
paymentMethodId,
|
|
700
|
-
planId
|
|
701
|
-
items: []
|
|
700
|
+
planId
|
|
702
701
|
});
|
|
703
702
|
yield effects.put(actions$3.setState({
|
|
704
703
|
checkoutPlanId: null,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/redux-store",
|
|
3
3
|
"libName": "FronteggReduxStore",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.28.0",
|
|
5
5
|
"author": "Frontegg LTD",
|
|
6
6
|
"main": "./node/index.js",
|
|
7
7
|
"module": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@frontegg/rest-api": "2.10.
|
|
10
|
+
"@frontegg/rest-api": "2.10.61",
|
|
11
11
|
"@reduxjs/toolkit": "^1.5.0",
|
|
12
12
|
"redux-saga": "^1.1.0",
|
|
13
13
|
"tslib": "^2.3.1",
|
package/subscriptions/index.js
CHANGED
|
@@ -439,7 +439,7 @@ function* cancelSubscription() {
|
|
|
439
439
|
if (isCancellable) {
|
|
440
440
|
try {
|
|
441
441
|
yield put(actions$6.setCancellationLoading(true));
|
|
442
|
-
yield call(api.subscriptions.
|
|
442
|
+
yield call(api.subscriptions.cancelManagedSubscription, subscriptionId);
|
|
443
443
|
yield put(actions$6.setBillingInformation({
|
|
444
444
|
subscription: Object.assign(Object.assign({}, overview.subscription), { cancellation: {
|
|
445
445
|
policy: SubscriptionCancellationPolicy.AT_PERIOD_END,
|
|
@@ -466,7 +466,7 @@ function* renewSubscription() {
|
|
|
466
466
|
if (renewable) {
|
|
467
467
|
try {
|
|
468
468
|
yield put(actions$6.setRenewalLoading(true));
|
|
469
|
-
yield call(api.subscriptions.
|
|
469
|
+
yield call(api.subscriptions.renewManagedSubscription, subscriptionId);
|
|
470
470
|
yield put(actions$6.setBillingInformation({
|
|
471
471
|
subscription: Object.assign(Object.assign({}, overview.subscription), { cancellation: null }),
|
|
472
472
|
}));
|
|
@@ -694,8 +694,7 @@ function* confirmPlan({ payload: paymentMethodId }) {
|
|
|
694
694
|
try {
|
|
695
695
|
yield call(api.subscriptions.updateManagedSubscription, subscription.id, {
|
|
696
696
|
paymentMethodId,
|
|
697
|
-
planId
|
|
698
|
-
items: []
|
|
697
|
+
planId
|
|
699
698
|
});
|
|
700
699
|
yield put(actions$3.setState({
|
|
701
700
|
checkoutPlanId: null,
|