@pisell/pisellos 2.3.233 → 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/Order/index.d.ts +9 -8
- package/dist/modules/Order/index.js +273 -255
- package/dist/modules/Order/utils.d.ts +1 -0
- package/dist/modules/Order/utils.js +3 -2
- package/dist/shared/payment/loadPaymentMethods.d.ts +2 -1
- package/dist/shared/payment/loadPaymentMethods.js +13 -12
- package/dist/solution/BaseSales/index.d.ts +3 -0
- package/dist/solution/BaseSales/index.js +445 -402
- package/dist/solution/BookingTicket/index.d.ts +3 -1
- package/dist/solution/BookingTicket/index.js +49 -43
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts +1 -1
- package/dist/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.js +69 -13
- package/dist/utils/platform.d.ts +2 -0
- package/dist/utils/platform.js +4 -0
- package/lib/model/strategy/adapter/promotion/index.js +1 -46
- package/lib/modules/Order/index.d.ts +9 -8
- package/lib/modules/Order/index.js +57 -43
- package/lib/modules/Order/utils.d.ts +1 -0
- package/lib/modules/Order/utils.js +2 -1
- package/lib/shared/payment/loadPaymentMethods.d.ts +2 -1
- package/lib/shared/payment/loadPaymentMethods.js +10 -9
- package/lib/solution/BaseSales/index.d.ts +3 -0
- package/lib/solution/BaseSales/index.js +45 -22
- package/lib/solution/BookingTicket/index.d.ts +3 -1
- package/lib/solution/BookingTicket/index.js +4 -1
- package/lib/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.d.ts +1 -1
- package/lib/solution/BookingTicket/utils/scan/applyProductVoucherCollectionScan.js +44 -5
- package/lib/utils/platform.d.ts +2 -0
- package/lib/utils/platform.js +5 -0
- package/package.json +1 -1
|
@@ -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 TerminalVirtualCurrencyChannel } from '../../utils/platform';
|
|
10
11
|
import type { PaymentMethod } from '../Payment/types';
|
|
11
12
|
import type { Discount } from '../Discount/types';
|
|
12
13
|
import { UnavailableReason } from '../Rules/types';
|
|
@@ -36,8 +37,8 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
36
37
|
private moduleHooksOverride?;
|
|
37
38
|
private orderHooks?;
|
|
38
39
|
private cartCommandQueue;
|
|
39
|
-
private
|
|
40
|
-
private
|
|
40
|
+
private terminalVirtualPaymentRevision;
|
|
41
|
+
private terminalVirtualPaymentSnapshots;
|
|
41
42
|
private queueCartCommand;
|
|
42
43
|
/** Use the exact Order normalizers/merge rules on a private draft, not a second projection. */
|
|
43
44
|
private beginCartMutation;
|
|
@@ -480,12 +481,12 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
480
481
|
*/
|
|
481
482
|
private hasLinkedBookingUid;
|
|
482
483
|
private isMultiCurrencySettlementEnabled;
|
|
483
|
-
private
|
|
484
|
-
private
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
private
|
|
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;
|
|
489
490
|
private isActiveVirtualSettlementOrder;
|
|
490
491
|
private shouldUseVirtualSettlementSummary;
|
|
491
492
|
private normalizeVirtualSettlementProductIfEnabled;
|