@pisell/pisellos 2.2.196 → 2.2.198
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/dist/modules/Order/index.d.ts +16 -0
- package/dist/modules/Order/index.js +1176 -563
- package/dist/modules/Payment/walletpass.js +14 -7
- package/dist/modules/SalesSummary/utils.js +344 -133
- package/dist/server/index.js +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/lib/model/strategy/adapter/promotion/index.js +0 -49
- package/lib/modules/Order/index.d.ts +16 -0
- package/lib/modules/Order/index.js +468 -13
- package/lib/modules/Payment/walletpass.js +7 -3
- package/lib/modules/SalesSummary/utils.js +255 -42
- package/lib/server/index.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -416,12 +416,19 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
416
416
|
key: "getUserIdentificationCodeListAsync",
|
|
417
417
|
value: function () {
|
|
418
418
|
var _getUserIdentificationCodeListAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(params) {
|
|
419
|
-
var _newParams$prepare_pa, _this$walletParams2, newParams, response, sortedData;
|
|
419
|
+
var _newParams$products, _newParams$prepare_pa, _this$walletParams2, newParams, response, sortedData;
|
|
420
420
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
421
421
|
while (1) switch (_context5.prev = _context5.next) {
|
|
422
422
|
case 0:
|
|
423
423
|
_context5.prev = 0;
|
|
424
424
|
newParams = _objectSpread(_objectSpread({}, this.walletParams), params);
|
|
425
|
+
if ((_newParams$products = newParams.products) !== null && _newParams$products !== void 0 && _newParams$products.length) {
|
|
426
|
+
_context5.next = 5;
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
this.paymentModule.logInfo('[WalletPass] 商品列表为空,跳过获取用户识别码列表');
|
|
430
|
+
return _context5.abrupt("return", []);
|
|
431
|
+
case 5:
|
|
425
432
|
this.paymentModule.logInfo('[WalletPass] 开始获取用户识别码列表', {
|
|
426
433
|
customer_id: newParams.customer_id,
|
|
427
434
|
available: newParams.available,
|
|
@@ -429,9 +436,9 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
429
436
|
filter_prepare_wallet_pass: newParams.filter_prepare_wallet_pass,
|
|
430
437
|
payment_order_id: (_this$walletParams2 = this.walletParams) === null || _this$walletParams2 === void 0 ? void 0 : _this$walletParams2.payment_order_id
|
|
431
438
|
});
|
|
432
|
-
_context5.next =
|
|
439
|
+
_context5.next = 8;
|
|
433
440
|
return this.paymentModule.request.post('/machinecode/prepare/deduction', newParams);
|
|
434
|
-
case
|
|
441
|
+
case 8:
|
|
435
442
|
response = _context5.sent;
|
|
436
443
|
// 对获取到的数据进行排序,将错误码为 500100、500200、500300 的项目排到最后
|
|
437
444
|
sortedData = sortUserIdentificationCodeList((response === null || response === void 0 ? void 0 : response.data) || []);
|
|
@@ -452,19 +459,19 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
|
|
|
452
459
|
})
|
|
453
460
|
});
|
|
454
461
|
return _context5.abrupt("return", this.userIdentificationCodes);
|
|
455
|
-
case
|
|
456
|
-
_context5.prev =
|
|
462
|
+
case 16:
|
|
463
|
+
_context5.prev = 16;
|
|
457
464
|
_context5.t0 = _context5["catch"](0);
|
|
458
465
|
this.paymentModule.logError('[WalletPass] 获取用户识别码列表失败', _context5.t0, {
|
|
459
466
|
customer_id: params.customer_id,
|
|
460
467
|
available: params.available
|
|
461
468
|
});
|
|
462
469
|
return _context5.abrupt("return", []);
|
|
463
|
-
case
|
|
470
|
+
case 20:
|
|
464
471
|
case "end":
|
|
465
472
|
return _context5.stop();
|
|
466
473
|
}
|
|
467
|
-
}, _callee5, this, [[0,
|
|
474
|
+
}, _callee5, this, [[0, 16]]);
|
|
468
475
|
}));
|
|
469
476
|
function getUserIdentificationCodeListAsync(_x5) {
|
|
470
477
|
return _getUserIdentificationCodeListAsync.apply(this, arguments);
|