@pisell/pisellos 0.0.235 → 0.0.236

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.
@@ -10,7 +10,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
10
10
  constructor(name?: string, version?: string);
11
11
  initialize(core: PisellCore, options: ModuleOptions): Promise<void>;
12
12
  createOrder(params: CommitOrderParams['query']): {
13
- type: "virtual" | "appointment_booking";
13
+ type: "appointment_booking" | "virtual";
14
14
  platform: string;
15
15
  sales_channel: string;
16
16
  order_sales_channel: string;
@@ -311,7 +311,7 @@ export var WalletPassPaymentImpl = /*#__PURE__*/function () {
311
311
  walletDetailParams = {
312
312
  code: code,
313
313
  with_customer: 1,
314
- with: ['latestWalletDetail.wallet']
314
+ with: ['wallet']
315
315
  };
316
316
  _context5.next = 8;
317
317
  return this.paymentModule.request.post('/wallet/detail/search', walletDetailParams);
@@ -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 客户状态
@@ -185,7 +185,8 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
185
185
  /**
186
186
  * 获取支付方式列表
187
187
  *
188
- * 直接调用 Payment 模块的 getPayMethodListAsync 方法
188
+ * 优先使用 store 中的缓存数据,避免重复接口调用。
189
+ * 如果 store 中没有数据,则调用 Payment 模块的方法获取。
189
190
  *
190
191
  * @returns 支付方式列表
191
192
  */
@@ -476,4 +477,25 @@ export declare class CheckoutImpl extends BaseModule implements Module, Checkout
476
477
  roundingDifference: string;
477
478
  }>;
478
479
  destroy(): Promise<void>;
480
+ /**
481
+ * 重置 store 状态
482
+ *
483
+ * 在创建新订单前调用,确保状态完全干净
484
+ */
485
+ private resetStoreStateAsync;
486
+ /**
487
+ * 手动清理已完成的订单状态(公开方法)
488
+ *
489
+ * 供UI层调用的公开方法,用于手动清理订单状态
490
+ *
491
+ * @returns 清理结果
492
+ */
493
+ clearCompletedOrderAsync(): Promise<{
494
+ success: boolean;
495
+ message?: string;
496
+ clearedOrder?: {
497
+ uuid: string;
498
+ orderId: string;
499
+ } | null;
500
+ }>;
479
501
  }