@pisell/private-materials 3.0.190 → 3.0.192
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/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/eftposPay/payo/config.js +4 -3
- package/lib/components/eftposPay/payo/config.js +5 -4
- package/package.json +4 -4
|
@@ -69,12 +69,13 @@ export var POS = function POS(_ref) {
|
|
|
69
69
|
* @Date: 2024-01-30 16:34
|
|
70
70
|
*/
|
|
71
71
|
var success = function success(res) {
|
|
72
|
+
var _res$data;
|
|
72
73
|
dispatch(updateNextStep());
|
|
73
74
|
dispatch(updateCustom({
|
|
74
|
-
card_reader_surcharge: (res === null || res === void 0 ? void 0 : res.card_reader_surcharge) || 0
|
|
75
|
+
card_reader_surcharge: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.card_reader_surcharge) || 0
|
|
75
76
|
}));
|
|
76
77
|
clearRef.current = setTimeout(function () {
|
|
77
|
-
var _deviceRef$current, _deviceRef$current$se;
|
|
78
|
+
var _res$data2, _deviceRef$current, _deviceRef$current$se;
|
|
78
79
|
var params = getPayParams({
|
|
79
80
|
mode: modeRef.current,
|
|
80
81
|
amount: amountRef.current,
|
|
@@ -83,7 +84,7 @@ export var POS = function POS(_ref) {
|
|
|
83
84
|
device: deviceRef.current,
|
|
84
85
|
pay: payRef.current,
|
|
85
86
|
custom: {
|
|
86
|
-
card_reader_surcharge: (res === null || res === void 0 ? void 0 : res.card_reader_surcharge) || 0
|
|
87
|
+
card_reader_surcharge: (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.card_reader_surcharge) || 0
|
|
87
88
|
}
|
|
88
89
|
}, 'success');
|
|
89
90
|
var receipt = Array.isArray(res.receipt) ? res.receipt : [res.receipt];
|
|
@@ -71,14 +71,15 @@ var POS = ({
|
|
|
71
71
|
failRef.current = fail;
|
|
72
72
|
}, [fail]);
|
|
73
73
|
const success = (res) => {
|
|
74
|
+
var _a;
|
|
74
75
|
dispatch((0, import_store.updateNextStep)());
|
|
75
76
|
dispatch(
|
|
76
77
|
(0, import_store.updateCustom)({
|
|
77
|
-
card_reader_surcharge: (res == null ? void 0 : res.card_reader_surcharge) || 0
|
|
78
|
+
card_reader_surcharge: ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.card_reader_surcharge) || 0
|
|
78
79
|
})
|
|
79
80
|
);
|
|
80
81
|
clearRef.current = setTimeout(() => {
|
|
81
|
-
var
|
|
82
|
+
var _a2, _b, _c;
|
|
82
83
|
const params = (0, import_helper.getPayParams)(
|
|
83
84
|
{
|
|
84
85
|
mode: modeRef.current,
|
|
@@ -88,7 +89,7 @@ var POS = ({
|
|
|
88
89
|
device: deviceRef.current,
|
|
89
90
|
pay: payRef.current,
|
|
90
91
|
custom: {
|
|
91
|
-
card_reader_surcharge: (res == null ? void 0 : res.card_reader_surcharge) || 0
|
|
92
|
+
card_reader_surcharge: ((_a2 = res == null ? void 0 : res.data) == null ? void 0 : _a2.card_reader_surcharge) || 0
|
|
92
93
|
}
|
|
93
94
|
},
|
|
94
95
|
"success"
|
|
@@ -96,7 +97,7 @@ var POS = ({
|
|
|
96
97
|
const receipt = Array.isArray(res.receipt) ? res.receipt : [res.receipt];
|
|
97
98
|
onChange("success", {
|
|
98
99
|
...params,
|
|
99
|
-
receipt: ((
|
|
100
|
+
receipt: ((_c = (_b = deviceRef.current) == null ? void 0 : _b.setting) == null ? void 0 : _c.receipts) ? [] : receipt
|
|
100
101
|
});
|
|
101
102
|
}, 1e3);
|
|
102
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.192",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
|
-
"@pisell/materials": "3.0.
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/
|
|
63
|
+
"@pisell/materials": "3.0.55",
|
|
64
|
+
"@pisell/date-picker": "1.0.100",
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|