@pisell/pisellos 2.3.232 → 2.3.234
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 -0
- package/dist/modules/Order/index.js +1392 -1157
- 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.d.ts +1 -0
- package/dist/modules/Order/utils.js +12 -6
- package/dist/shared/payment/loadPaymentMethods.d.ts +5 -1
- package/dist/shared/payment/loadPaymentMethods.js +36 -2
- package/dist/solution/BaseSales/index.d.ts +4 -0
- package/dist/solution/BaseSales/index.js +571 -435
- package/dist/solution/BookingTicket/index.d.ts +3 -1
- package/dist/solution/BookingTicket/index.js +49 -43
- package/dist/solution/BookingTicket/utils/redeemArrival.d.ts +1 -0
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts +1 -1
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.js +69 -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 +3 -0
- package/dist/utils/platform.js +8 -0
- package/lib/modules/Customer/types.d.ts +4 -0
- package/lib/modules/Order/index.d.ts +10 -0
- package/lib/modules/Order/index.js +155 -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.d.ts +1 -0
- package/lib/modules/Order/utils.js +14 -5
- package/lib/shared/payment/loadPaymentMethods.d.ts +5 -1
- package/lib/shared/payment/loadPaymentMethods.js +14 -0
- package/lib/solution/BaseSales/index.d.ts +4 -0
- package/lib/solution/BaseSales/index.js +78 -16
- package/lib/solution/BookingTicket/index.d.ts +3 -1
- package/lib/solution/BookingTicket/index.js +4 -1
- package/lib/solution/BookingTicket/utils/redeemArrival.d.ts +1 -0
- package/lib/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts +1 -1
- package/lib/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.js +44 -5
- 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 +3 -0
- package/lib/utils/platform.js +10 -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,8 @@ 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 TerminalVirtualCurrencyChannel } from '../../utils/platform';
|
|
11
|
+
import type { PaymentMethod } from '../Payment/types';
|
|
10
12
|
import type { Discount } from '../Discount/types';
|
|
11
13
|
import { UnavailableReason } from '../Rules/types';
|
|
12
14
|
export declare class OrderModule extends BaseModule implements Module, OrderModuleAPI {
|
|
@@ -35,6 +37,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
35
37
|
private moduleHooksOverride?;
|
|
36
38
|
private orderHooks?;
|
|
37
39
|
private cartCommandQueue;
|
|
40
|
+
private terminalVirtualPaymentRevision;
|
|
41
|
+
private terminalVirtualPaymentSnapshots;
|
|
38
42
|
private queueCartCommand;
|
|
39
43
|
/** Use the exact Order normalizers/merge rules on a private draft, not a second projection. */
|
|
40
44
|
private beginCartMutation;
|
|
@@ -477,6 +481,12 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
477
481
|
*/
|
|
478
482
|
private hasLinkedBookingUid;
|
|
479
483
|
private isMultiCurrencySettlementEnabled;
|
|
484
|
+
private getVirtualCurrencyPaymentChannel;
|
|
485
|
+
private getVirtualPaymentShopId;
|
|
486
|
+
syncTerminalVirtualCurrencyPaymentMethods(channel: TerminalVirtualCurrencyChannel, methods: readonly PaymentMethod[]): void;
|
|
487
|
+
getTerminalVirtualCurrencyPaymentMethod(channel: TerminalVirtualCurrencyChannel, initialMethods?: readonly PaymentMethod[]): PaymentMethod;
|
|
488
|
+
refreshTerminalVirtualCurrencyPaymentMethod(channel: TerminalVirtualCurrencyChannel): Promise<PaymentMethod>;
|
|
489
|
+
private validateTerminalVirtualCurrencyCart;
|
|
480
490
|
private isActiveVirtualSettlementOrder;
|
|
481
491
|
private shouldUseVirtualSettlementSummary;
|
|
482
492
|
private normalizeVirtualSettlementProductIfEnabled;
|