@pisell/pisellos 0.0.238 → 0.0.239

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.
@@ -1059,7 +1059,7 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
1059
1059
  type: paymentItem.type,
1060
1060
  amount: formatAmount(paymentItem.amount),
1061
1061
  voucher_id: paymentItem.voucher_id || '',
1062
- rounding_amount: '0.00',
1062
+ rounding_amount: paymentItem.rounding_amount || '0.00',
1063
1063
  service_charge: paymentItem.service_charge,
1064
1064
  status: 'active',
1065
1065
  // 新支付项默认为活跃状态
@@ -216,6 +216,8 @@ export interface PaymentItemInput {
216
216
  percentage?: string;
217
217
  amount?: string;
218
218
  };
219
+ /** 舍入金额 */
220
+ rounding_amount?: string;
219
221
  }
220
222
  /**
221
223
  * 推送支付项参数
@@ -111,7 +111,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
111
111
  * 获取当前的客户搜索条件
112
112
  * @returns 当前搜索条件
113
113
  */
114
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
114
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
115
115
  /**
116
116
  * 获取客户列表状态(包含滚动加载相关状态)
117
117
  * @returns 客户状态
@@ -1659,7 +1659,9 @@ export var CheckoutImpl = /*#__PURE__*/function (_BaseModule) {
1659
1659
  name: paymentItem.name,
1660
1660
  type: paymentItem.type,
1661
1661
  amount: paymentItem.amount,
1662
- service_charge: paymentItem.service_charge
1662
+ service_charge: paymentItem.service_charge,
1663
+ rounding_amount: paymentItem.rounding_amount,
1664
+ voucher_id: paymentItem.voucher_id
1663
1665
  }
1664
1666
  });
1665
1667
 
@@ -524,7 +524,7 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
524
524
  type: paymentItem.type,
525
525
  amount: formatAmount(paymentItem.amount),
526
526
  voucher_id: paymentItem.voucher_id || "",
527
- rounding_amount: "0.00",
527
+ rounding_amount: paymentItem.rounding_amount || "0.00",
528
528
  service_charge: paymentItem.service_charge,
529
529
  status: "active",
530
530
  // 新支付项默认为活跃状态
@@ -216,6 +216,8 @@ export interface PaymentItemInput {
216
216
  percentage?: string;
217
217
  amount?: string;
218
218
  };
219
+ /** 舍入金额 */
220
+ rounding_amount?: string;
219
221
  }
220
222
  /**
221
223
  * 推送支付项参数
@@ -111,7 +111,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
111
111
  * 获取当前的客户搜索条件
112
112
  * @returns 当前搜索条件
113
113
  */
114
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
114
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
115
115
  /**
116
116
  * 获取客户列表状态(包含滚动加载相关状态)
117
117
  * @returns 客户状态
@@ -923,7 +923,9 @@ var CheckoutImpl = class extends import_BaseModule.BaseModule {
923
923
  name: paymentItem.name,
924
924
  type: paymentItem.type,
925
925
  amount: paymentItem.amount,
926
- service_charge: paymentItem.service_charge
926
+ service_charge: paymentItem.service_charge,
927
+ rounding_amount: paymentItem.rounding_amount,
928
+ voucher_id: paymentItem.voucher_id
927
929
  }
928
930
  });
929
931
  await this.payment.addPaymentItemAsync(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.238",
4
+ "version": "0.0.239",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",