@pisell/pisellos 2.3.218 → 2.3.220

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.
Files changed (32) hide show
  1. package/dist/modules/OpenData/types.d.ts +3 -0
  2. package/dist/modules/Order/index.d.ts +1 -1
  3. package/dist/modules/Order/index.js +6 -3
  4. package/dist/modules/Order/types.d.ts +1 -1
  5. package/dist/modules/Order/utils.d.ts +4 -0
  6. package/dist/modules/Order/utils.js +105 -53
  7. package/dist/modules/Product/index.d.ts +1 -1
  8. package/dist/solution/BaseSales/index.d.ts +2 -0
  9. package/dist/solution/BaseSales/index.js +65 -37
  10. package/dist/solution/BaseSales/types.d.ts +2 -0
  11. package/dist/solution/BookingByStep/index.d.ts +1 -1
  12. package/dist/solution/BookingTicket/index.d.ts +16 -0
  13. package/dist/solution/BookingTicket/index.js +679 -332
  14. package/dist/solution/BookingTicket/utils/redeemArrival.d.ts +78 -0
  15. package/dist/solution/BookingTicket/utils/redeemArrival.js +175 -0
  16. package/lib/model/strategy/adapter/promotion/index.js +46 -1
  17. package/lib/modules/OpenData/types.d.ts +3 -0
  18. package/lib/modules/Order/index.d.ts +1 -1
  19. package/lib/modules/Order/index.js +4 -1
  20. package/lib/modules/Order/types.d.ts +1 -1
  21. package/lib/modules/Order/utils.d.ts +4 -0
  22. package/lib/modules/Order/utils.js +45 -1
  23. package/lib/modules/Product/index.d.ts +1 -1
  24. package/lib/solution/BaseSales/index.d.ts +2 -0
  25. package/lib/solution/BaseSales/index.js +27 -6
  26. package/lib/solution/BaseSales/types.d.ts +2 -0
  27. package/lib/solution/BookingByStep/index.d.ts +1 -1
  28. package/lib/solution/BookingTicket/index.d.ts +16 -0
  29. package/lib/solution/BookingTicket/index.js +171 -5
  30. package/lib/solution/BookingTicket/utils/redeemArrival.d.ts +78 -0
  31. package/lib/solution/BookingTicket/utils/redeemArrival.js +156 -0
  32. package/package.json +1 -1
@@ -305,6 +305,8 @@ export interface BaseSalesQuotationDurationConfig {
305
305
  }
306
306
  export interface BaseSalesCalculateProductBookingPriceParams {
307
307
  product: Record<string, any>;
308
+ /** Fail closed when the current customer price cannot be resolved; no old-line fallback. */
309
+ requireAuthoritativePrice?: boolean;
308
310
  booking?: {
309
311
  start_date?: string;
310
312
  start_time?: string;
@@ -342,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
342
342
  date: string;
343
343
  status: string;
344
344
  week: string;
345
- weekNum: 0 | 1 | 2 | 3 | 5 | 6 | 4;
345
+ weekNum: 0 | 1 | 2 | 6 | 4 | 5 | 3;
346
346
  }[]>;
347
347
  submitTimeSlot(timeSlots: TimeSliceItem): void;
348
348
  private getScheduleDataByIds;
@@ -32,6 +32,8 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
32
32
  private orderCustomerDiscountRefreshCustomerId;
33
33
  private orderCustomerDiscountRefreshTarget;
34
34
  private orderCustomerPromotionRefreshInFlight;
35
+ private orderCustomerRefreshTask;
36
+ private orderCustomerRefreshRevision;
35
37
  private orderCustomerContactRequest;
36
38
  private readonly customerResolveRequests;
37
39
  protected loadOpenDataInFlight: Promise<OpenDataConfig> | null;
@@ -283,6 +285,9 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
283
285
  setOrderCustomer(customer: ICustomer | null, options?: {
284
286
  source?: OrderCustomerChangePayload['source'];
285
287
  }): void;
288
+ /** Shared by customer changes and an explicit retry; keep the selected customer/cart intact. */
289
+ private refreshMemberCartContext;
290
+ retryOrderCustomerRefresh(): Promise<void>;
286
291
  private resetOrderCustomerContactInfo;
287
292
  /** Explicit edits, including clearing the contact, must win over a pending default. */
288
293
  updateTempOrderContactsInfo(contact: Record<string, any> | null): Record<string, any> | null;
@@ -321,6 +326,8 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
321
326
  private buildOrderCustomerPayload;
322
327
  protected refreshDiscountConfigAfterOrderCustomerChange(customerId: number | null): Promise<void>;
323
328
  protected waitForOrderCustomerPromotionRefresh(): Promise<void>;
329
+ /** Wait before reading cart rows: member coupons can split or consolidate them. */
330
+ waitForOrderCustomerRefresh(): Promise<void>;
324
331
  protected prepareProductPriceQueryContext(customerId?: number | string): Promise<void>;
325
332
  protected preferAuthoritativeProductQueryPrice(): boolean;
326
333
  /**
@@ -600,11 +607,20 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
600
607
  private getDeviceTaskPlugin;
601
608
  handlePrintWristband(params: {
602
609
  voucher_ids: number[];
610
+ voucher_times?: Record<string, {
611
+ start_time: string;
612
+ end_time: string;
613
+ }>;
603
614
  }): Promise<void>;
615
+ private redeemStatusWrite?;
616
+ private arrivalQueue;
617
+ private getRedeemArrivalWindow;
618
+ isRedeemArrivalEnabled(): boolean;
604
619
  handleRedeem(params: {
605
620
  voucher_ids: number[];
606
621
  is_checkin: boolean;
607
622
  }): Promise<any>;
623
+ updateTicketArrival(voucherIds: Array<string | number>): Promise<any>;
608
624
  /**
609
625
  * 销毁模块:先调用父类(销毁所有 store 内子模块 + emit destroy + super.destroy()),
610
626
  * 再清理 BookingTicket 自有资源(scan 监听 + scan 内存缓存)。