@pisell/private-materials 6.3.38 → 6.3.39
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +165 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/pay/toC/index.js +10 -10
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/pay/toC/index.js +8 -6
- package/package.json +3 -3
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "stripe" | "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -286,9 +286,9 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
286
286
|
_ref4 = data || {}, _ref4$remain_amount = _ref4.remain_amount, remain_amount = _ref4$remain_amount === void 0 ? 0 : _ref4$remain_amount, wallet_pass_recommend_list = _ref4.wallet_pass_recommend_list, wallet_pass_amount = _ref4.wallet_pass_amount, payment_list = _ref4.payment_list, walletPass = _ref4.walletPass; // 记录获取到的数据
|
|
287
287
|
paymentLogger.addLog({
|
|
288
288
|
key: '支付数据获取',
|
|
289
|
-
value:
|
|
289
|
+
value: ''
|
|
290
290
|
});
|
|
291
|
-
withCustomerIdList = wallet_pass_recommend_list.map(function (item) {
|
|
291
|
+
withCustomerIdList = (wallet_pass_recommend_list || []).map(function (item) {
|
|
292
292
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
293
293
|
customer_id: customer_id || item.customer_id
|
|
294
294
|
});
|
|
@@ -324,7 +324,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
324
324
|
// 记录获取支付列表成功
|
|
325
325
|
paymentLogger.addLog({
|
|
326
326
|
key: '获取支付列表成功',
|
|
327
|
-
value:
|
|
327
|
+
value: ''
|
|
328
328
|
});
|
|
329
329
|
_context3.next = 21;
|
|
330
330
|
break;
|
|
@@ -383,7 +383,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
383
383
|
currentPayGroup = payGroup || state.payGroup; // 记录开始处理支付
|
|
384
384
|
paymentLogger.addLog({
|
|
385
385
|
key: '开始支付处理',
|
|
386
|
-
value:
|
|
386
|
+
value: ''
|
|
387
387
|
});
|
|
388
388
|
_context4.prev = 3;
|
|
389
389
|
// 打开loading
|
|
@@ -399,7 +399,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
399
399
|
// 记录支付方法调用成功
|
|
400
400
|
paymentLogger.addLog({
|
|
401
401
|
key: '支付方法调用成功',
|
|
402
|
-
value:
|
|
402
|
+
value: ''
|
|
403
403
|
});
|
|
404
404
|
paymentLogger.sendLogs('支付方法调用成功');
|
|
405
405
|
|
|
@@ -455,7 +455,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
455
455
|
orderId = newOrderId || ((_state$payGroup4 = state.payGroup) === null || _state$payGroup4 === void 0 ? void 0 : _state$payGroup4.order_id); // 记录开始创建交易组
|
|
456
456
|
paymentLogger.addLog({
|
|
457
457
|
key: '开始创建交易组',
|
|
458
|
-
value:
|
|
458
|
+
value: ''
|
|
459
459
|
});
|
|
460
460
|
setSubmitLoading(true);
|
|
461
461
|
_context5.prev = 3;
|
|
@@ -480,7 +480,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
480
480
|
// 记录创建交易组成功
|
|
481
481
|
paymentLogger.addLog({
|
|
482
482
|
key: '创建交易组成功',
|
|
483
|
-
value:
|
|
483
|
+
value: ''
|
|
484
484
|
});
|
|
485
485
|
return _context5.abrupt("return", _objectSpread(_objectSpread({}, state.payGroup), {}, {
|
|
486
486
|
order_id: orderId,
|
|
@@ -630,7 +630,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
630
630
|
}
|
|
631
631
|
paymentLogger.addLog({
|
|
632
632
|
key: '无痕模式检测',
|
|
633
|
-
value:
|
|
633
|
+
value: ''
|
|
634
634
|
});
|
|
635
635
|
setShowDetectIncognitoConfirm(true);
|
|
636
636
|
return _context7.abrupt("return");
|
|
@@ -641,7 +641,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
641
641
|
}
|
|
642
642
|
paymentLogger.addLog({
|
|
643
643
|
key: '需要创建交易组',
|
|
644
|
-
value:
|
|
644
|
+
value: ''
|
|
645
645
|
});
|
|
646
646
|
_context7.next = 14;
|
|
647
647
|
return paymentInit(newOrderId);
|
|
@@ -658,7 +658,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
658
658
|
// 记录提交成功(这里是调用成功,实际支付结果在payCallback中处理)
|
|
659
659
|
paymentLogger.addLog({
|
|
660
660
|
key: '支付提交调用成功',
|
|
661
|
-
value:
|
|
661
|
+
value: ''
|
|
662
662
|
});
|
|
663
663
|
_context7.next = 25;
|
|
664
664
|
break;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "stripe" | "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -178,12 +178,14 @@ var ToCPay = (props, ref) => {
|
|
|
178
178
|
key: "支付数据获取",
|
|
179
179
|
value: ""
|
|
180
180
|
});
|
|
181
|
-
const withCustomerIdList = wallet_pass_recommend_list.map(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
181
|
+
const withCustomerIdList = (wallet_pass_recommend_list || []).map(
|
|
182
|
+
(item) => {
|
|
183
|
+
return {
|
|
184
|
+
...item,
|
|
185
|
+
customer_id: customer_id || item.customer_id
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
);
|
|
187
189
|
dispatch({
|
|
188
190
|
type: "setPayGroup",
|
|
189
191
|
payload: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.39",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
64
|
"@pisell/utils": "3.0.1",
|
|
65
|
-
"@pisell/icon": "0.0.11",
|
|
66
65
|
"@pisell/materials": "6.3.10",
|
|
67
|
-
"@pisell/date-picker": "3.0.4"
|
|
66
|
+
"@pisell/date-picker": "3.0.4",
|
|
67
|
+
"@pisell/icon": "0.0.11"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|