@quintype/components 3.4.2-accesstype-integration.0 → 3.4.3-access-token-api.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.
package/dist/cjs/index.js
CHANGED
|
@@ -5159,7 +5159,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5159
5159
|
return null;
|
|
5160
5160
|
};
|
|
5161
5161
|
_context8.next = 3;
|
|
5162
|
-
return fetch("/api/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
5162
|
+
return fetch("/api/auth/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
5163
5163
|
|
|
5164
5164
|
case 3:
|
|
5165
5165
|
jwtResponse = _context8.sent;
|
|
@@ -5252,6 +5252,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5252
5252
|
_this.loadScript(function () {
|
|
5253
5253
|
// dont try to initialize accessType if integration id is not available
|
|
5254
5254
|
if (accessTypeBkIntegrationId === undefined) {
|
|
5255
|
+
console.warn("AccessType: Integration Id is undefined");
|
|
5255
5256
|
return false;
|
|
5256
5257
|
}
|
|
5257
5258
|
|
|
@@ -5318,7 +5319,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
5318
5319
|
paymentOptions = data;
|
|
5319
5320
|
|
|
5320
5321
|
case 18:
|
|
5321
|
-
planObject["paymentType"] = paymentType || (get__default["default"](planObject
|
|
5322
|
+
planObject["paymentType"] = paymentType || (get__default["default"](planObject, ["selectedPlan", "recurring"]) ? "razorpay_recurring" : "razorpay");
|
|
5322
5323
|
paymentObject = _this.makePaymentObject(_objectSpread(_objectSpread({}, planObject), {}, {
|
|
5323
5324
|
couponCode: selectedPlanObj.coupon_code
|
|
5324
5325
|
}));
|
|
@@ -429,7 +429,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
429
429
|
return null;
|
|
430
430
|
};
|
|
431
431
|
_context8.next = 3;
|
|
432
|
-
return fetch("/api/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
432
|
+
return fetch("/api/auth/v1/access-token/integrations/".concat(_this.props.accessTypeBkIntegrationId));
|
|
433
433
|
|
|
434
434
|
case 3:
|
|
435
435
|
jwtResponse = _context8.sent;
|
|
@@ -522,6 +522,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
522
522
|
_this.loadScript(function () {
|
|
523
523
|
// dont try to initialize accessType if integration id is not available
|
|
524
524
|
if (accessTypeBkIntegrationId === undefined) {
|
|
525
|
+
console.warn("AccessType: Integration Id is undefined");
|
|
525
526
|
return false;
|
|
526
527
|
}
|
|
527
528
|
|
|
@@ -588,7 +589,7 @@ var AccessTypeBase = /*#__PURE__*/function (_React$Component) {
|
|
|
588
589
|
paymentOptions = data;
|
|
589
590
|
|
|
590
591
|
case 18:
|
|
591
|
-
planObject["paymentType"] = paymentType || (get(planObject
|
|
592
|
+
planObject["paymentType"] = paymentType || (get(planObject, ["selectedPlan", "recurring"]) ? "razorpay_recurring" : "razorpay");
|
|
592
593
|
paymentObject = _this.makePaymentObject(_objectSpread(_objectSpread({}, planObject), {}, {
|
|
593
594
|
couponCode: selectedPlanObj.coupon_code
|
|
594
595
|
}));
|
package/package.json
CHANGED