@pisell/pisellos 2.3.231 → 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.
- package/dist/modules/Customer/types.d.ts +4 -0
- package/dist/modules/Order/index.d.ts +10 -1
- package/dist/modules/Order/index.js +1350 -1133
- package/dist/modules/Order/types.d.ts +3 -0
- package/dist/modules/Order/utils/bookingUuid.d.ts +4 -0
- package/dist/modules/Order/utils/bookingUuid.js +24 -0
- package/dist/modules/Order/utils/virtualSettlement.d.ts +4 -0
- package/dist/modules/Order/utils/virtualSettlement.js +13 -0
- package/dist/modules/Order/utils.js +11 -6
- package/dist/modules/Product/index.d.ts +1 -1
- package/dist/shared/payment/loadPaymentMethods.d.ts +4 -1
- package/dist/shared/payment/loadPaymentMethods.js +35 -2
- package/dist/solution/BaseSales/index.d.ts +1 -0
- package/dist/solution/BaseSales/index.js +516 -423
- package/dist/solution/BookingByStep/index.d.ts +2 -2
- package/dist/solution/BookingTicket/utils/redeemArrival.d.ts +14 -13
- package/dist/solution/Checkout/index.js +104 -69
- package/dist/solution/Checkout/types.d.ts +1 -0
- package/dist/solution/ScanOrder/index.js +10 -2
- package/dist/solution/VenueBooking/index.js +522 -490
- package/dist/utils/platform.d.ts +1 -0
- package/dist/utils/platform.js +4 -0
- package/lib/model/strategy/adapter/promotion/index.js +46 -1
- package/lib/modules/Customer/types.d.ts +4 -0
- package/lib/modules/Order/index.d.ts +10 -1
- package/lib/modules/Order/index.js +141 -20
- package/lib/modules/Order/types.d.ts +3 -0
- package/lib/modules/Order/utils/bookingUuid.d.ts +4 -0
- package/lib/modules/Order/utils/bookingUuid.js +25 -0
- package/lib/modules/Order/utils/virtualSettlement.d.ts +4 -0
- package/lib/modules/Order/utils/virtualSettlement.js +9 -1
- package/lib/modules/Order/utils.js +13 -5
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/shared/payment/loadPaymentMethods.d.ts +4 -1
- package/lib/shared/payment/loadPaymentMethods.js +13 -0
- package/lib/solution/BaseSales/index.d.ts +1 -0
- package/lib/solution/BaseSales/index.js +49 -10
- package/lib/solution/BookingByStep/index.d.ts +2 -2
- package/lib/solution/BookingTicket/utils/redeemArrival.d.ts +14 -13
- package/lib/solution/Checkout/index.js +21 -0
- package/lib/solution/Checkout/types.d.ts +1 -0
- package/lib/solution/ScanOrder/index.js +6 -0
- package/lib/solution/VenueBooking/index.js +6 -1
- package/lib/utils/platform.d.ts +1 -0
- package/lib/utils/platform.js +5 -0
- 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;
|
|
@@ -644,7 +653,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
644
653
|
generateIdempotencyToken(): string;
|
|
645
654
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
646
655
|
createOrder(params: CommitOrderParams['query']): {
|
|
647
|
-
type: "
|
|
656
|
+
type: "appointment_booking" | "virtual";
|
|
648
657
|
platform: string;
|
|
649
658
|
sales_channel: string;
|
|
650
659
|
order_sales_channel: string;
|