@pisell/pisellos 2.2.134 → 2.2.135

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.
@@ -1574,12 +1574,12 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
1574
1574
  });
1575
1575
  return _context16.abrupt("continue", 50);
1576
1576
  case 46:
1577
- console.log("[PaymentModule] \u6DFB\u52A0\u4EE3\u91D1\u5238\u652F\u4ED8\u9879:", {
1577
+ console.log("[PaymentModule] \u6DFB\u52A0\u4EE3\u91D1\u5238\u652F\u4ED8\u9879:", _objectSpread(_objectSpread({}, _voucherItem), {}, {
1578
1578
  code: _voucherItem.code,
1579
1579
  amount: _voucherItem.amount,
1580
1580
  voucher_id: _voucherItem.voucher_id,
1581
1581
  order_payment_type: orderPaymentType
1582
- });
1582
+ }));
1583
1583
  _context16.next = 49;
1584
1584
  return _this5.addPaymentItemAsync(orderUuid, _voucherItem);
1585
1585
  case 49:
@@ -7,6 +7,8 @@ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
7
7
  voucher_id: any;
8
8
  amount: number;
9
9
  tag: any;
10
+ wallet_pass_usage_unit: any;
11
+ wallet_pass_use_value: any;
10
12
  }[];
11
13
  /**
12
14
  * 对用户识别码列表进行排序
@@ -15,7 +15,9 @@ export var formatWalletPassList2PreparePayments = function formatWalletPassList2
15
15
  return {
16
16
  voucher_id: item.id || 0,
17
17
  amount: Number(item.edit_current_amount || getAvailableMaxAmount(item)) || 0,
18
- tag: item.tag || ''
18
+ tag: item.tag || '',
19
+ wallet_pass_usage_unit: item.wallet_pass_usage_unit || {},
20
+ wallet_pass_use_value: item.wallet_pass_use_value || undefined
19
21
  };
20
22
  });
21
23
  };
@@ -828,6 +828,7 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
828
828
  continue;
829
829
  }
830
830
  console.log(`[PaymentModule] 添加代金券支付项:`, {
831
+ ...voucherItem,
831
832
  code: voucherItem.code,
832
833
  amount: voucherItem.amount,
833
834
  voucher_id: voucherItem.voucher_id,
@@ -7,6 +7,8 @@ export declare const formatWalletPassList2PreparePayments: (list?: any[]) => {
7
7
  voucher_id: any;
8
8
  amount: number;
9
9
  tag: any;
10
+ wallet_pass_usage_unit: any;
11
+ wallet_pass_use_value: any;
10
12
  }[];
11
13
  /**
12
14
  * 对用户识别码列表进行排序
@@ -35,7 +35,9 @@ var formatWalletPassList2PreparePayments = (list) => {
35
35
  return {
36
36
  voucher_id: item.id || 0,
37
37
  amount: Number(item.edit_current_amount || getAvailableMaxAmount(item)) || 0,
38
- tag: item.tag || ""
38
+ tag: item.tag || "",
39
+ wallet_pass_usage_unit: item.wallet_pass_usage_unit || {},
40
+ wallet_pass_use_value: item.wallet_pass_use_value || void 0
39
41
  };
40
42
  });
41
43
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.134",
4
+ "version": "2.2.135",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",