@ikas/storefront 0.0.168-alpha.14 → 0.0.168-alpha.16
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/build/index.es.js +9 -4
- package/build/index.js +9 -4
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -24149,7 +24149,10 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24149
24149
|
if (!this.checkout.selectedPaymentGateway)
|
|
24150
24150
|
return [2 /*return*/];
|
|
24151
24151
|
return [4 /*yield*/, IkasCheckoutAPI.createSaleTransactionWithCheckout(this.checkout.id, this.checkout.selectedPaymentGateway.id, this.checkout.selectedPaymentGateway.paymentMethodType ===
|
|
24152
|
-
IkasPaymentMethodType.CREDIT_CARD &&
|
|
24152
|
+
IkasPaymentMethodType.CREDIT_CARD &&
|
|
24153
|
+
this.checkout.selectedPaymentGateway.type ===
|
|
24154
|
+
IkasPaymentGatewayType.INTERNAL &&
|
|
24155
|
+
this.cardData
|
|
24153
24156
|
? this.cardData.toInput()
|
|
24154
24157
|
: undefined)];
|
|
24155
24158
|
case 1:
|
|
@@ -24228,7 +24231,9 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24228
24231
|
var paymentGateway = _this.paymentGateways[index];
|
|
24229
24232
|
_this.checkout.selectedPaymentGateway = paymentGateway;
|
|
24230
24233
|
if (_this.step !== CheckoutStep.SUCCESS) {
|
|
24231
|
-
if (paymentGateway.paymentMethodType ===
|
|
24234
|
+
if (paymentGateway.paymentMethodType ===
|
|
24235
|
+
IkasPaymentMethodType.CREDIT_CARD &&
|
|
24236
|
+
paymentGateway.type === IkasPaymentGatewayType.INTERNAL) {
|
|
24232
24237
|
_this.cardData = new CreditCardData();
|
|
24233
24238
|
}
|
|
24234
24239
|
_this.installmentInfo = undefined;
|
|
@@ -38699,9 +38704,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
38699
38704
|
this._searchKeyword = "";
|
|
38700
38705
|
if (this._pageType !== IkasThemePageType.CATEGORY) {
|
|
38701
38706
|
this._filterCategoryId = undefined;
|
|
38702
|
-
//@ts-ignore
|
|
38703
|
-
(_b = this._filterCategories) === null || _b === void 0 ? void 0 : _b.forEach(function (fc) { return (fc._isSelected = false); });
|
|
38704
38707
|
}
|
|
38708
|
+
//@ts-ignore
|
|
38709
|
+
(_b = this._filterCategories) === null || _b === void 0 ? void 0 : _b.forEach(function (fc) { return (fc._isSelected = false); });
|
|
38705
38710
|
this.applyFilters();
|
|
38706
38711
|
};
|
|
38707
38712
|
IkasProductList.prototype.setSortType = function (sortType) {
|
package/build/index.js
CHANGED
|
@@ -24156,7 +24156,10 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24156
24156
|
if (!this.checkout.selectedPaymentGateway)
|
|
24157
24157
|
return [2 /*return*/];
|
|
24158
24158
|
return [4 /*yield*/, IkasCheckoutAPI.createSaleTransactionWithCheckout(this.checkout.id, this.checkout.selectedPaymentGateway.id, this.checkout.selectedPaymentGateway.paymentMethodType ===
|
|
24159
|
-
IkasPaymentMethodType.CREDIT_CARD &&
|
|
24159
|
+
IkasPaymentMethodType.CREDIT_CARD &&
|
|
24160
|
+
this.checkout.selectedPaymentGateway.type ===
|
|
24161
|
+
IkasPaymentGatewayType.INTERNAL &&
|
|
24162
|
+
this.cardData
|
|
24160
24163
|
? this.cardData.toInput()
|
|
24161
24164
|
: undefined)];
|
|
24162
24165
|
case 1:
|
|
@@ -24235,7 +24238,9 @@ var CheckoutViewModel = /** @class */ (function () {
|
|
|
24235
24238
|
var paymentGateway = _this.paymentGateways[index];
|
|
24236
24239
|
_this.checkout.selectedPaymentGateway = paymentGateway;
|
|
24237
24240
|
if (_this.step !== CheckoutStep.SUCCESS) {
|
|
24238
|
-
if (paymentGateway.paymentMethodType ===
|
|
24241
|
+
if (paymentGateway.paymentMethodType ===
|
|
24242
|
+
IkasPaymentMethodType.CREDIT_CARD &&
|
|
24243
|
+
paymentGateway.type === IkasPaymentGatewayType.INTERNAL) {
|
|
24239
24244
|
_this.cardData = new CreditCardData();
|
|
24240
24245
|
}
|
|
24241
24246
|
_this.installmentInfo = undefined;
|
|
@@ -38681,9 +38686,9 @@ var IkasProductList = /** @class */ (function () {
|
|
|
38681
38686
|
this._searchKeyword = "";
|
|
38682
38687
|
if (this._pageType !== exports.IkasThemePageType.CATEGORY) {
|
|
38683
38688
|
this._filterCategoryId = undefined;
|
|
38684
|
-
//@ts-ignore
|
|
38685
|
-
(_b = this._filterCategories) === null || _b === void 0 ? void 0 : _b.forEach(function (fc) { return (fc._isSelected = false); });
|
|
38686
38689
|
}
|
|
38690
|
+
//@ts-ignore
|
|
38691
|
+
(_b = this._filterCategories) === null || _b === void 0 ? void 0 : _b.forEach(function (fc) { return (fc._isSelected = false); });
|
|
38687
38692
|
this.applyFilters();
|
|
38688
38693
|
};
|
|
38689
38694
|
IkasProductList.prototype.setSortType = function (sortType) {
|