@pisell/pisellos 2.3.232 → 2.3.233

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 (42) hide show
  1. package/dist/modules/Customer/types.d.ts +4 -0
  2. package/dist/modules/Order/index.d.ts +9 -0
  3. package/dist/modules/Order/index.js +1350 -1133
  4. package/dist/modules/Order/types.d.ts +3 -0
  5. package/dist/modules/Order/utils/bookingUuid.d.ts +4 -0
  6. package/dist/modules/Order/utils/bookingUuid.js +24 -0
  7. package/dist/modules/Order/utils/virtualSettlement.d.ts +4 -0
  8. package/dist/modules/Order/utils/virtualSettlement.js +13 -0
  9. package/dist/modules/Order/utils.js +11 -6
  10. package/dist/shared/payment/loadPaymentMethods.d.ts +4 -1
  11. package/dist/shared/payment/loadPaymentMethods.js +35 -2
  12. package/dist/solution/BaseSales/index.d.ts +1 -0
  13. package/dist/solution/BaseSales/index.js +516 -423
  14. package/dist/solution/BookingTicket/utils/redeemArrival.d.ts +1 -0
  15. package/dist/solution/Checkout/index.js +104 -69
  16. package/dist/solution/Checkout/types.d.ts +1 -0
  17. package/dist/solution/ScanOrder/index.js +10 -2
  18. package/dist/solution/VenueBooking/index.js +522 -490
  19. package/dist/utils/platform.d.ts +1 -0
  20. package/dist/utils/platform.js +4 -0
  21. package/lib/model/strategy/adapter/promotion/index.js +46 -1
  22. package/lib/modules/Customer/types.d.ts +4 -0
  23. package/lib/modules/Order/index.d.ts +9 -0
  24. package/lib/modules/Order/index.js +141 -20
  25. package/lib/modules/Order/types.d.ts +3 -0
  26. package/lib/modules/Order/utils/bookingUuid.d.ts +4 -0
  27. package/lib/modules/Order/utils/bookingUuid.js +25 -0
  28. package/lib/modules/Order/utils/virtualSettlement.d.ts +4 -0
  29. package/lib/modules/Order/utils/virtualSettlement.js +9 -1
  30. package/lib/modules/Order/utils.js +13 -5
  31. package/lib/shared/payment/loadPaymentMethods.d.ts +4 -1
  32. package/lib/shared/payment/loadPaymentMethods.js +13 -0
  33. package/lib/solution/BaseSales/index.d.ts +1 -0
  34. package/lib/solution/BaseSales/index.js +49 -10
  35. package/lib/solution/BookingTicket/utils/redeemArrival.d.ts +1 -0
  36. package/lib/solution/Checkout/index.js +21 -0
  37. package/lib/solution/Checkout/types.d.ts +1 -0
  38. package/lib/solution/ScanOrder/index.js +6 -0
  39. package/lib/solution/VenueBooking/index.js +6 -1
  40. package/lib/utils/platform.d.ts +1 -0
  41. package/lib/utils/platform.js +5 -0
  42. package/package.json +1 -1
@@ -44,6 +44,10 @@ export interface ShopGetCustomerListParams {
44
44
  num?: number;
45
45
  /** 搜索关键词 */
46
46
  search?: string;
47
+ /** Full national phone number, without the international calling code. */
48
+ phone?: string;
49
+ /** Exact email lookup, independent from the generic search keyword. */
50
+ email?: string;
47
51
  /** 关联查询参数 */
48
52
  with?: CustomerWith[];
49
53
  /** wallet搜索标识 */
@@ -7,6 +7,7 @@ import { type PickupTimingBooking, type PickupTimingBookingInput } from './picku
7
7
  import { type ProductVoucherGroup } from './utils/productVoucherGroups';
8
8
  import type { OrderAmountSnapshot, AddProductBookingInput, AddProductToOrderOptions, ReplaceBookingProductWithRelatedRetailParams, OrderIdentitySnapshot, OrderPaymentSource, OrderSnapshot, OrderSyncState, SyncPaymentsToOrderParams, SyncPaymentsToOrderResult, SubmitSalesOrderParams, OrderProduct, OrderProductIdentity, OrderSummary, OrderTempOrder, OrderPaymentData, OrderPaymentUpdateOptions, OrderPaymentUpdateResult, SendCustomerPayLinkParams, UpdateTempOrderCustomerInput, OrderCustomerPatch, OrderCustomerView, OrderHooksConfig, OrderCartIntentCommitContext, ReplaceTempOrderOptions, HydrateTempOrderOptions, OrderPromotionEvaluator, OrderGiftSelectResolver, OrderUnfulfilledPromotion, OrderLastGiftActions, RemoveProductsFromOrderOptions, SalesNote, SalesNotesMutationSnapshot, SetSalesNoteInput, PickupReferenceMode, PointCardSnapshotMergeContext, PointCardSnapshotItem, ShopServiceData, ShopServiceType } from './types';
9
9
  import type { ICustomer } from '../AccountList/types';
10
+ import type { PaymentMethod } from '../Payment/types';
10
11
  import type { Discount } from '../Discount/types';
11
12
  import { UnavailableReason } from '../Rules/types';
12
13
  export declare class OrderModule extends BaseModule implements Module, OrderModuleAPI {
@@ -35,6 +36,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
35
36
  private moduleHooksOverride?;
36
37
  private orderHooks?;
37
38
  private cartCommandQueue;
39
+ private posVirtualPaymentRevision;
40
+ private posVirtualPaymentSnapshot?;
38
41
  private queueCartCommand;
39
42
  /** Use the exact Order normalizers/merge rules on a private draft, not a second projection. */
40
43
  private beginCartMutation;
@@ -477,6 +480,12 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
477
480
  */
478
481
  private hasLinkedBookingUid;
479
482
  private isMultiCurrencySettlementEnabled;
483
+ private requiresPosVirtualCurrencyPayment;
484
+ private getPosVirtualPaymentShopId;
485
+ syncPosVirtualCurrencyPaymentMethods(methods: readonly PaymentMethod[]): void;
486
+ getPosVirtualCurrencyPaymentMethod(initialMethods?: readonly PaymentMethod[]): PaymentMethod;
487
+ refreshPosVirtualCurrencyPaymentMethod(): Promise<PaymentMethod>;
488
+ private validatePosVirtualCurrencyCart;
480
489
  private isActiveVirtualSettlementOrder;
481
490
  private shouldUseVirtualSettlementSummary;
482
491
  private normalizeVirtualSettlementProductIfEnabled;