@ikas/storefront-model-functions 4.15.0-beta.40 → 4.15.0-beta.42
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{IkasCartCreatedBy as t,IkasOrderPaymentStatus as r,IkasPaymentGatewayAdditionalPriceType as n}from"@ikas/storefront-models";import{getCalculatedAdditionalPrices as o}from"../payment-gateway/index.js";function e(n){return n.createdBy===t.ADMIN?n.orderPaymentStatus===r.PAID:!!n.orderNumber}function a(t,r){var e=r?o(r,t.totalFinalPrice||0,t.shippingLines||null):void 0,a=t.totalFinalPrice||0;return null==e||e.forEach((function(t){t.type===n.DECREMENT?a-=t.amount:a+=t.amount})),a}export{a as getTotalFinalPrice,e as isComplete};
|
|
1
|
+
import{IkasCartCreatedBy as t,IkasOrderPaymentStatus as r,IkasPaymentGatewayAdditionalPriceType as n}from"@ikas/storefront-models";import{getCalculatedAdditionalPrices as o}from"../payment-gateway/index.js";function e(n){return n.createdBy===t.ADMIN?n.orderPaymentStatus===r.PAID:!!n.orderNumber}function a(t,r){var e=r?o(r,t.totalFinalPrice||0,t.shippingLines||null):void 0,a=t.totalFinalPrice||0;return null==e||e.forEach((function(t){t.type===n.DECREMENT?a-=t.amount:a+=t.amount})),a<0?0:a}export{a as getTotalFinalPrice,e as isComplete};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikas/storefront-model-functions",
|
|
3
|
-
"version": "4.15.0-beta.
|
|
3
|
+
"version": "4.15.0-beta.42",
|
|
4
4
|
"description": "Functions for ikas storefront models.",
|
|
5
5
|
"author": "ikas",
|
|
6
6
|
"license": "ISC",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"build": "rm -rf build && rollup -c"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@ikas/storefront-config": "^4.15.0-beta.
|
|
20
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
19
|
+
"@ikas/storefront-config": "^4.15.0-beta.42",
|
|
20
|
+
"@ikas/storefront-models": "^4.15.0-beta.42",
|
|
21
21
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
22
22
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
23
23
|
"rollup-plugin-rename-node-modules": "^1.2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"lodash": "^4.17.21"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@ikas/storefront-config": "^4.15.0-beta.
|
|
37
|
-
"@ikas/storefront-models": "^4.15.0-beta.
|
|
36
|
+
"@ikas/storefront-config": "^4.15.0-beta.42",
|
|
37
|
+
"@ikas/storefront-models": "^4.15.0-beta.42",
|
|
38
38
|
"lodash": "^4.17.21"
|
|
39
39
|
}
|
|
40
40
|
}
|