@pisell/private-materials 6.8.83 → 6.8.84
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/checkout/PaymentModal.js +4 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.js +1 -1
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.js +120 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/es/components/eftposPay/aggregatePayment/index.js +3 -0
- package/es/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/es/components/eftposPay/aggregatePayment/service.js +69 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/es/components/eftposPay/aggregatePayment/types.js +65 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/es/components/eftposPay/aggregatePayment/utils/logs.js +371 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +1138 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/app.js +5 -0
- package/es/components/eftposPay/component/fail/failCustom.js +16 -12
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/const.d.ts +6 -1
- package/es/components/eftposPay/const.js +3 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +3 -2
- package/es/components/eftposPay/hooks.js +12 -0
- package/es/components/eftposPay/huifu/Action.d.ts +8 -0
- package/es/components/eftposPay/huifu/Action.js +146 -0
- package/es/components/eftposPay/huifu/const.d.ts +5 -0
- package/es/components/eftposPay/huifu/const.js +70 -0
- package/es/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/es/components/eftposPay/huifu/hooks.js +184 -0
- package/es/components/eftposPay/huifu/index.d.ts +5 -0
- package/es/components/eftposPay/huifu/index.js +196 -0
- package/es/components/eftposPay/huifu/index.less +180 -0
- package/es/components/eftposPay/huifu/types.d.ts +14 -0
- package/es/components/eftposPay/huifu/types.js +1 -0
- package/es/components/eftposPay/index.js +5 -1
- package/es/components/eftposPay/locales.d.ts +36 -0
- package/es/components/eftposPay/locales.js +42 -3
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +5 -0
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +11 -4
- package/es/components/kioskSkuDetail/index.d.ts +3 -0
- package/es/components/kioskSkuDetail/index.js +266 -173
- package/es/components/kioskSkuDetail/index.less +49 -7
- package/es/components/kioskSkuDetail/locales.d.ts +6 -0
- package/es/components/kioskSkuDetail/locales.js +9 -3
- package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/es/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/es/components/pay/toB/types/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentList/serve.js +14 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +16 -0
- package/es/plus/skuOptionsSelection/components/VariantCard/index.js +1 -1
- package/es/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/es/plus/skuOptionsSelection/locales.js +3 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/checkout/PaymentModal.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +7 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.js +133 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +3 -0
- package/lib/components/eftposPay/aggregatePayment/index.js +42 -0
- package/lib/components/eftposPay/aggregatePayment/service.d.ts +24 -0
- package/lib/components/eftposPay/aggregatePayment/service.js +81 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +106 -0
- package/lib/components/eftposPay/aggregatePayment/types.js +74 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.d.ts +110 -0
- package/lib/components/eftposPay/aggregatePayment/utils/logs.js +294 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +139 -0
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +752 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/app.js +5 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +15 -9
- package/lib/components/eftposPay/component/fail/index.js +4 -1
- package/lib/components/eftposPay/const.d.ts +6 -1
- package/lib/components/eftposPay/const.js +3 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +3 -2
- package/lib/components/eftposPay/hooks.js +16 -0
- package/lib/components/eftposPay/huifu/Action.d.ts +8 -0
- package/lib/components/eftposPay/huifu/Action.js +174 -0
- package/lib/components/eftposPay/huifu/const.d.ts +5 -0
- package/lib/components/eftposPay/huifu/const.js +86 -0
- package/lib/components/eftposPay/huifu/hooks.d.ts +25 -0
- package/lib/components/eftposPay/huifu/hooks.js +186 -0
- package/lib/components/eftposPay/huifu/index.d.ts +5 -0
- package/lib/components/eftposPay/huifu/index.js +200 -0
- package/lib/components/eftposPay/huifu/index.less +180 -0
- package/lib/components/eftposPay/huifu/types.d.ts +14 -0
- package/lib/components/eftposPay/huifu/types.js +17 -0
- package/lib/components/eftposPay/index.js +5 -1
- package/lib/components/eftposPay/locales.d.ts +36 -0
- package/lib/components/eftposPay/locales.js +42 -3
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +7 -0
- package/lib/components/eftposPay/pay.js +3 -2
- package/lib/components/eftposPay/store/index.d.ts +11 -4
- package/lib/components/kioskSkuDetail/index.d.ts +3 -0
- package/lib/components/kioskSkuDetail/index.js +180 -113
- package/lib/components/kioskSkuDetail/index.less +49 -7
- package/lib/components/kioskSkuDetail/locales.d.ts +6 -0
- package/lib/components/kioskSkuDetail/locales.js +9 -3
- package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
- package/lib/components/pay/toB/components/EFTPOS/index.js +8 -1
- package/lib/components/pay/toB/types/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentList/serve.js +15 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +7 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +16 -0
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.js +2 -0
- package/lib/plus/skuOptionsSelection/locales.d.ts +3 -0
- package/lib/plus/skuOptionsSelection/locales.js +3 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/lowcode/kiosk-sku-detail/meta.ts +229 -94
- package/package.json +1 -1
|
@@ -149,7 +149,20 @@ export default {
|
|
|
149
149
|
},
|
|
150
150
|
'page.eftpos-pay.text.tyro': function pageEftposPayTextTyro(key) {
|
|
151
151
|
return key;
|
|
152
|
-
}
|
|
152
|
+
},
|
|
153
|
+
// 汇付天下定制文案
|
|
154
|
+
'page.eftpos-pay.text.huifu.scan.title': 'Scan to Pay (Alipay · WeChat Pay · UnionPay)',
|
|
155
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected': 'Scanner Connected',
|
|
156
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': 'Scan the customer’s payment code to collect payment',
|
|
157
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected': 'Scanner Not Connected',
|
|
158
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': 'Connect the scanner to scan the customer’s payment code',
|
|
159
|
+
'page.eftpos-pay.text.huifu.scan.camera-title': 'Click to use the camera',
|
|
160
|
+
'page.eftpos-pay.text.huifu.scan.camera-desc': 'Align the customer’s payment code within the frame',
|
|
161
|
+
'page.eftpos-pay.text.huifu.scan.input-title': 'Or enter the payment code manually',
|
|
162
|
+
'page.eftpos-pay.text.huifu.scan.input-placeholder': 'Enter payment code',
|
|
163
|
+
'page.eftpos-pay.text.huifu.scan.input-tip': 'Tip: The payment code is 18 digits',
|
|
164
|
+
'page.eftpos-pay.text.huifu.scan.cancel': 'Cancel',
|
|
165
|
+
'page.eftpos-pay.text.huifu.scan.confirm': 'Confirm Payment'
|
|
153
166
|
},
|
|
154
167
|
'zh-CN': {
|
|
155
168
|
'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
|
|
@@ -447,7 +460,20 @@ export default {
|
|
|
447
460
|
return '请使用以下选项之一回答此问题';
|
|
448
461
|
}
|
|
449
462
|
return key;
|
|
450
|
-
}
|
|
463
|
+
},
|
|
464
|
+
// 汇付天下定制文案
|
|
465
|
+
'page.eftpos-pay.text.huifu.scan.title': '扫码支付(支付宝 · 微信支付 · 银联)',
|
|
466
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected': '扫码枪已连接',
|
|
467
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': '直接扫描消费者付款码即可',
|
|
468
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected': '未连接扫码枪',
|
|
469
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': '连接扫码枪后可直接扫码消费者付款码',
|
|
470
|
+
'page.eftpos-pay.text.huifu.scan.camera-title': '点击可使用设备摄像头',
|
|
471
|
+
'page.eftpos-pay.text.huifu.scan.camera-desc': '将消费者付款码对准扫描框',
|
|
472
|
+
'page.eftpos-pay.text.huifu.scan.input-title': '或手动输入付款码',
|
|
473
|
+
'page.eftpos-pay.text.huifu.scan.input-placeholder': '请输入',
|
|
474
|
+
'page.eftpos-pay.text.huifu.scan.input-tip': '提示:付款码为18位数字',
|
|
475
|
+
'page.eftpos-pay.text.huifu.scan.cancel': '取消',
|
|
476
|
+
'page.eftpos-pay.text.huifu.scan.confirm': '确认支付'
|
|
451
477
|
},
|
|
452
478
|
'zh-HK': {
|
|
453
479
|
'page.eftpos-pay.text.loading': function pageEftposPayTextLoading(mode) {
|
|
@@ -745,6 +771,19 @@ export default {
|
|
|
745
771
|
return '請使用以下選項之一回答此問題';
|
|
746
772
|
}
|
|
747
773
|
return key;
|
|
748
|
-
}
|
|
774
|
+
},
|
|
775
|
+
// 汇付天下定制文案
|
|
776
|
+
'page.eftpos-pay.text.huifu.scan.title': '掃碼支付(支付寶 · 微信支付 · 銀聯)',
|
|
777
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected': '掃碼槍已連接',
|
|
778
|
+
'page.eftpos-pay.text.huifu.scan.gun.connected-desc': '直接掃描消費者付款碼即可',
|
|
779
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected': '未連接掃碼槍',
|
|
780
|
+
'page.eftpos-pay.text.huifu.scan.gun.not-connected-desc': '連接掃碼槍後可直接掃碼消費者付款碼',
|
|
781
|
+
'page.eftpos-pay.text.huifu.scan.camera-title': '點擊可使用設備攝像頭',
|
|
782
|
+
'page.eftpos-pay.text.huifu.scan.camera-desc': '將消費者付款碼對準掃描框',
|
|
783
|
+
'page.eftpos-pay.text.huifu.scan.input-title': '或手動輸入付款碼',
|
|
784
|
+
'page.eftpos-pay.text.huifu.scan.input-placeholder': '請輸入',
|
|
785
|
+
'page.eftpos-pay.text.huifu.scan.input-tip': '提示:付款碼為18位數字',
|
|
786
|
+
'page.eftpos-pay.text.huifu.scan.cancel': '取消',
|
|
787
|
+
'page.eftpos-pay.text.huifu.scan.confirm': '確認支付'
|
|
749
788
|
}
|
|
750
789
|
};
|
|
@@ -4,4 +4,5 @@ export { default as Payo } from './payo';
|
|
|
4
4
|
export { default as Windcave } from './windcave/windcave';
|
|
5
5
|
export { default as Tyro } from './tyro';
|
|
6
6
|
export { default as Linkly } from './linkly';
|
|
7
|
+
export { default as Huifu } from './huifu';
|
|
7
8
|
export declare const getInitState: (type: string, params?: any) => State;
|
|
@@ -3,12 +3,15 @@ import getPayoInitState from "./payo/const";
|
|
|
3
3
|
import getTyroInitState from "./tyro/const";
|
|
4
4
|
import getWindcaveInitState from "./windcave/const";
|
|
5
5
|
import getLinklyInitState from "./linkly/const";
|
|
6
|
+
import getHuifuInitState from "./huifu/const";
|
|
6
7
|
export { getAmonunt } from "./helper";
|
|
7
8
|
export { default as Payo } from "./payo";
|
|
8
9
|
export { default as Windcave } from "./windcave/windcave";
|
|
9
10
|
export { default as Tyro } from "./tyro";
|
|
10
11
|
export { default as Linkly } from "./linkly";
|
|
12
|
+
export { default as Huifu } from "./huifu";
|
|
11
13
|
export var getInitState = function getInitState(type, params) {
|
|
14
|
+
console.log('type = ', type);
|
|
12
15
|
switch (type) {
|
|
13
16
|
case EftposEnum.Payo:
|
|
14
17
|
return getPayoInitState(params);
|
|
@@ -18,6 +21,8 @@ export var getInitState = function getInitState(type, params) {
|
|
|
18
21
|
return getTyroInitState(params);
|
|
19
22
|
case EftposEnum.Linkly:
|
|
20
23
|
return getLinklyInitState(params);
|
|
24
|
+
case EftposEnum.Huifu:
|
|
25
|
+
return getHuifuInitState(params);
|
|
21
26
|
default:
|
|
22
27
|
throw new Error('未知的厂商类型');
|
|
23
28
|
}
|
|
@@ -10,7 +10,7 @@ import { getPayParams } from "./helper";
|
|
|
10
10
|
import Manual from "./component/manual";
|
|
11
11
|
import Signature from "./component/signature";
|
|
12
12
|
import { StatusEnum, PayRouteEnum, ClientEnum } from "./const";
|
|
13
|
-
import { Payo, Windcave, Tyro, Linkly } from "./manufacturer";
|
|
13
|
+
import { Payo, Windcave, Tyro, Linkly, Huifu } from "./manufacturer";
|
|
14
14
|
import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, backUpFree, updateState } from "./store";
|
|
15
15
|
import "./index.less";
|
|
16
16
|
|
|
@@ -156,7 +156,7 @@ var Pay = function Pay(_ref) {
|
|
|
156
156
|
style: data.type === 'step' ? {} : {
|
|
157
157
|
display: 'none'
|
|
158
158
|
}
|
|
159
|
-
}, /*#__PURE__*/React.createElement(Header, {
|
|
159
|
+
}, data.status !== StatusEnum.Init && /*#__PURE__*/React.createElement(Header, {
|
|
160
160
|
status: data.status,
|
|
161
161
|
title: data.title,
|
|
162
162
|
subTitle: data.subTitle
|
|
@@ -182,6 +182,10 @@ var Pay = function Pay(_ref) {
|
|
|
182
182
|
key: data.key,
|
|
183
183
|
api: api,
|
|
184
184
|
onChange: onChange
|
|
185
|
+
}) : null, data.eftpos === 'huifu' ? /*#__PURE__*/React.createElement(Huifu, {
|
|
186
|
+
key: data.key,
|
|
187
|
+
onChange: onChange,
|
|
188
|
+
isNativeApp: isMobile
|
|
185
189
|
}) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
|
|
186
190
|
onChange: onChange,
|
|
187
191
|
api: api,
|
|
@@ -91,6 +91,10 @@ export declare type State = {
|
|
|
91
91
|
};
|
|
92
92
|
backup?: Omit<State, 'backup'>;
|
|
93
93
|
client: ClientEnum;
|
|
94
|
+
/** 原始参数 - 用于 retry 时完整恢复 */
|
|
95
|
+
originalParams?: {
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
};
|
|
94
98
|
};
|
|
95
99
|
export declare type Action = {
|
|
96
100
|
type: EActionTypes;
|
|
@@ -174,7 +178,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
178
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
179
|
type: EActionTypes;
|
|
176
180
|
payload: {
|
|
177
|
-
status: "
|
|
181
|
+
status: "loading" | "warn" | "fail" | "success" | "question";
|
|
178
182
|
};
|
|
179
183
|
};
|
|
180
184
|
/**
|
|
@@ -297,8 +301,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
301
|
amount?: string | number | undefined;
|
|
298
302
|
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
299
303
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | undefined;
|
|
301
|
-
action?: "
|
|
304
|
+
eftpos?: "payo" | "tyro" | "windcave" | "stripe" | "linkly" | "huifu" | undefined;
|
|
305
|
+
action?: "pay" | "amount" | "deviceList" | undefined;
|
|
302
306
|
key?: number | undefined;
|
|
303
307
|
step?: number | undefined;
|
|
304
308
|
title?: string | undefined;
|
|
@@ -308,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
312
|
net?: boolean | undefined;
|
|
309
313
|
component?: string | undefined;
|
|
310
314
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
315
|
+
status?: "init" | "loading" | "warn" | "fail" | "success" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
316
|
warn?: string | undefined;
|
|
313
317
|
steps?: {
|
|
314
318
|
/** 用于重置当前步骤 */
|
|
@@ -344,6 +348,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
344
348
|
} | undefined;
|
|
345
349
|
backup?: Omit<State, "backup"> | undefined;
|
|
346
350
|
client?: ClientEnum | undefined;
|
|
351
|
+
originalParams?: {
|
|
352
|
+
[key: string]: unknown;
|
|
353
|
+
} | undefined;
|
|
347
354
|
};
|
|
348
355
|
};
|
|
349
356
|
export declare function reducers(state: State, action: Action): State;
|
|
@@ -9,6 +9,9 @@ import './index.less';
|
|
|
9
9
|
*/
|
|
10
10
|
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
11
11
|
export default KioskSkuDetail;
|
|
12
|
+
/**
|
|
13
|
+
* @description 从原生回调 payload 中提取 productId
|
|
14
|
+
*/
|
|
12
15
|
export interface KioskSkuDetailProps {
|
|
13
16
|
/** 商品 id(可选:目前默认从 URL 读取,props 仅作为兜底以兼容老用法) */
|
|
14
17
|
productId?: number | string;
|