@pisell/pisellos 0.0.429 → 0.0.431

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.
@@ -1186,6 +1186,8 @@ export var PaymentModule = /*#__PURE__*/function (_BaseModule) {
1186
1186
  // 创建时间
1187
1187
  updated_at: currentTime,
1188
1188
  // 更新时间
1189
+ wallet_pass_usage_unit: paymentItem === null || paymentItem === void 0 ? void 0 : paymentItem.wallet_pass_usage_unit,
1190
+ wallet_pass_use_value: paymentItem === null || paymentItem === void 0 ? void 0 : paymentItem.wallet_pass_use_value,
1189
1191
  metadata: _objectSpread(_objectSpread({}, paymentItem.metadata), {}, {
1190
1192
  // 保留传入的所有 metadata 字段
1191
1193
  unique_payment_number: paymentUuid // 设置唯一支付号为支付项的 uuid
@@ -142,6 +142,10 @@ export interface PaymentItem {
142
142
  created_at?: string;
143
143
  /** 支付项更新时间 (格式: YYYY-MM-DD HH:mm:ss) */
144
144
  updated_at?: string;
145
+ /** 钱包支付使用金额 */
146
+ wallet_pass_use_value?: any;
147
+ /** 钱包支付使用单位 */
148
+ wallet_pass_usage_unit?: any;
145
149
  }
146
150
  /**
147
151
  * 订单信息
@@ -258,6 +262,10 @@ export interface PaymentItemInput {
258
262
  created_at?: string;
259
263
  /** 支付项更新时间 (格式: YYYY-MM-DD HH:mm:ss, 可选,不传则自动生成) */
260
264
  updated_at?: string;
265
+ /** 钱包支付使用金额 */
266
+ wallet_pass_use_value?: any;
267
+ /** 钱包支付使用单位 */
268
+ wallet_pass_usage_unit?: any;
261
269
  }
262
270
  /**
263
271
  * 推送支付项参数
@@ -295,6 +303,10 @@ export interface PaymentUpdateFields {
295
303
  statusCode?: number;
296
304
  timestamp: number;
297
305
  };
306
+ /** 钱包支付使用金额 */
307
+ wallet_pass_use_value?: any;
308
+ /** 钱包支付使用单位 */
309
+ wallet_pass_usage_unit?: any;
298
310
  }
299
311
  /**
300
312
  * 更新支付项参数
@@ -16,7 +16,7 @@ export var formatWalletPassList2PreparePayments = function formatWalletPassList2
16
16
  voucher_id: item.id || 0,
17
17
  amount: Number(item.edit_current_amount || getAvailableMaxAmount(item)) || 0,
18
18
  tag: item.tag || '',
19
- wallet_pass_use_value: item.wallet_pass_use_value,
19
+ wallet_pass_use_value: item.recommended_usage_par_value,
20
20
  wallet_pass_usage_unit: item.wallet_pass_usage_unit
21
21
  };
22
22
  });
@@ -358,7 +358,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
358
358
  };
359
359
  setOtherData(key: string, value: any): void;
360
360
  getOtherData(key: string): any;
361
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
361
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
362
362
  /**
363
363
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
364
364
  *
@@ -123,7 +123,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
123
123
  * 获取当前的客户搜索条件
124
124
  * @returns 当前搜索条件
125
125
  */
126
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
126
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
127
127
  /**
128
128
  * 获取客户列表状态(包含滚动加载相关状态)
129
129
  * @returns 客户状态
@@ -607,6 +607,8 @@ var PaymentModule = class extends import_BaseModule.BaseModule {
607
607
  // 创建时间
608
608
  updated_at: currentTime,
609
609
  // 更新时间
610
+ wallet_pass_usage_unit: paymentItem == null ? void 0 : paymentItem.wallet_pass_usage_unit,
611
+ wallet_pass_use_value: paymentItem == null ? void 0 : paymentItem.wallet_pass_use_value,
610
612
  metadata: {
611
613
  ...paymentItem.metadata,
612
614
  // 保留传入的所有 metadata 字段
@@ -142,6 +142,10 @@ export interface PaymentItem {
142
142
  created_at?: string;
143
143
  /** 支付项更新时间 (格式: YYYY-MM-DD HH:mm:ss) */
144
144
  updated_at?: string;
145
+ /** 钱包支付使用金额 */
146
+ wallet_pass_use_value?: any;
147
+ /** 钱包支付使用单位 */
148
+ wallet_pass_usage_unit?: any;
145
149
  }
146
150
  /**
147
151
  * 订单信息
@@ -258,6 +262,10 @@ export interface PaymentItemInput {
258
262
  created_at?: string;
259
263
  /** 支付项更新时间 (格式: YYYY-MM-DD HH:mm:ss, 可选,不传则自动生成) */
260
264
  updated_at?: string;
265
+ /** 钱包支付使用金额 */
266
+ wallet_pass_use_value?: any;
267
+ /** 钱包支付使用单位 */
268
+ wallet_pass_usage_unit?: any;
261
269
  }
262
270
  /**
263
271
  * 推送支付项参数
@@ -295,6 +303,10 @@ export interface PaymentUpdateFields {
295
303
  statusCode?: number;
296
304
  timestamp: number;
297
305
  };
306
+ /** 钱包支付使用金额 */
307
+ wallet_pass_use_value?: any;
308
+ /** 钱包支付使用单位 */
309
+ wallet_pass_usage_unit?: any;
298
310
  }
299
311
  /**
300
312
  * 更新支付项参数
@@ -36,7 +36,7 @@ var formatWalletPassList2PreparePayments = (list) => {
36
36
  voucher_id: item.id || 0,
37
37
  amount: Number(item.edit_current_amount || getAvailableMaxAmount(item)) || 0,
38
38
  tag: item.tag || "",
39
- wallet_pass_use_value: item.wallet_pass_use_value,
39
+ wallet_pass_use_value: item.recommended_usage_par_value,
40
40
  wallet_pass_usage_unit: item.wallet_pass_usage_unit
41
41
  };
42
42
  });
@@ -358,7 +358,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
358
358
  };
359
359
  setOtherData(key: string, value: any): void;
360
360
  getOtherData(key: string): any;
361
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
361
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
362
362
  /**
363
363
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
364
364
  *
@@ -123,7 +123,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
123
123
  * 获取当前的客户搜索条件
124
124
  * @returns 当前搜索条件
125
125
  */
126
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
126
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
127
127
  /**
128
128
  * 获取客户列表状态(包含滚动加载相关状态)
129
129
  * @returns 客户状态
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.429",
4
+ "version": "0.0.431",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",