@aptos-scp/scp-component-store-selling-features-domain-model 1.10.0 → 1.10.2

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.
@@ -282,7 +282,7 @@ export declare const TAX_REFUND_VOID_EVENT: string;
282
282
  export declare const START_TAX_REFUND_DEFERRED_EVENT: string;
283
283
  export declare const TAX_REFUND_DEFERRED_EVENT: string;
284
284
  export declare const START_OPEN_CASH_DRAWER_EVENT: string;
285
- export declare const START_OPEN_TENDER_EXCHANGE_CASH_DRAWER_EVENT: string;
285
+ export declare const TENDER_EXCHANGE_VALIDATE_CASH_DRAWER_EVENT: string;
286
286
  export declare const CAPTURE_LOTTERY_CODE_EVENT: string;
287
287
  export declare const APPLY_ITEM_SUBSCRIPTION_EVENT: string;
288
288
  export declare const ADD_ITEM_SUBSCRIPTION_EVENT: string;
@@ -289,7 +289,7 @@ exports.TAX_REFUND_VOID_EVENT = "TaxRefundVoid";
289
289
  exports.START_TAX_REFUND_DEFERRED_EVENT = "StartTaxRefundDeferred";
290
290
  exports.TAX_REFUND_DEFERRED_EVENT = "TaxRefundDeferred";
291
291
  exports.START_OPEN_CASH_DRAWER_EVENT = "StartOpenCashDrawer";
292
- exports.START_OPEN_TENDER_EXCHANGE_CASH_DRAWER_EVENT = "StartOpenTenderExchangeCashDrawer";
292
+ exports.TENDER_EXCHANGE_VALIDATE_CASH_DRAWER_EVENT = "TenderExchangeValidateCashDrawer";
293
293
  exports.CAPTURE_LOTTERY_CODE_EVENT = "CaptureLotteryCode";
294
294
  exports.APPLY_ITEM_SUBSCRIPTION_EVENT = "ApplyItemSubscription";
295
295
  exports.ADD_ITEM_SUBSCRIPTION_EVENT = "AddItemSubscription";
@@ -923,6 +923,7 @@ export declare const TRANSACTION_RESUMING_ON_STARTUP_EVENT: string;
923
923
  export declare const STORED_VALUE_REVERSAL_COMPLETED_EVENT_TYPE: string;
924
924
  export declare const STORED_VALUE_CERTIFICATE_REVERSAL_COMPLETED_EVENT_TYPE: string;
925
925
  export declare const TENDER_CHANGE_CANCEL_EVENT_TYPE: string;
926
+ export declare const CASH_DRAWER_SELECTED_EVENT: string;
926
927
  export declare const CASH_DRAWER_OPEN_REQUESTED_EVENT: string;
927
928
  export interface ICashDrawerEventData {
928
929
  cashDrawerKey: string;
@@ -936,6 +936,7 @@ exports.TRANSACTION_RESUMING_ON_STARTUP_EVENT = "Transaction.ResumingOnStartup";
936
936
  exports.STORED_VALUE_REVERSAL_COMPLETED_EVENT_TYPE = "StoredValue.ReversalCompleted";
937
937
  exports.STORED_VALUE_CERTIFICATE_REVERSAL_COMPLETED_EVENT_TYPE = "StoredValueCertificate.ReversalCompleted";
938
938
  exports.TENDER_CHANGE_CANCEL_EVENT_TYPE = "TenderChange.Cancel";
939
+ exports.CASH_DRAWER_SELECTED_EVENT = "CashDrawer.Selected";
939
940
  exports.CASH_DRAWER_OPEN_REQUESTED_EVENT = "CashDrawer.OpenRequested";
940
941
  exports.ITEM_QUANTITY_CHANGE_EVENT = "Item.QuantityChange";
941
942
  exports.CANCEL_TRANSACTION_ITEM_EVENT = "Item.CancelTransaction";
@@ -39,6 +39,7 @@ export declare class CashDrawerSession implements IState {
39
39
  recordIsForGiftCertificate(giftCertState: GiftCertificateState): CashDrawerSession;
40
40
  confirmingCashDrawerClosed(cashDrawerKey: string, lineNumber: number): CashDrawerSession;
41
41
  skipConfirmCashDrawerClosed(): CashDrawerSession;
42
+ selectCashDrawer(cashDrawerKey: string, inputSource: string): CashDrawerSession;
42
43
  openingCashDrawer(cashDrawerKey: string, inputSource: string, lineNumber: number): CashDrawerSession;
43
44
  promptUserInteractionToSelectCashDrawer(): CashDrawerSession;
44
45
  recordStatusCode(incomingStatusCode: CashDrawerStatusCode): CashDrawerSession;
@@ -85,6 +85,10 @@ class CashDrawerSession {
85
85
  logger.traceEntry("checkDrawerClosedRequestSent");
86
86
  return new CashDrawerSession(CashDrawerSessionState.Closed, this._cashDrawerStatusCode, this.cashDrawerKey, this._expectedAmounts, this._inputSource, undefined, true, this._giftCertificateState, this._expectedFloatAmounts);
87
87
  }
88
+ selectCashDrawer(cashDrawerKey, inputSource) {
89
+ logger.traceEntry("selectCashDrawer");
90
+ return new CashDrawerSession(CashDrawerSessionState.Closed, this._cashDrawerStatusCode, cashDrawerKey, this._expectedAmounts, inputSource, undefined, this._skipConfirmClose, this._giftCertificateState, this._expectedFloatAmounts);
91
+ }
88
92
  openingCashDrawer(cashDrawerKey, inputSource, lineNumber) {
89
93
  logger.traceEntry("openCashDrawerRequestSent");
90
94
  return new CashDrawerSession(CashDrawerSessionState.WaitingForOpenDrawerResponse, this._cashDrawerStatusCode, cashDrawerKey, this._expectedAmounts, inputSource, lineNumber, this._skipConfirmClose, this._giftCertificateState, this._expectedFloatAmounts);
@@ -58,7 +58,7 @@ export interface IFeatureAccessConfig {
58
58
  preconfiguredOverrides?: PreconfiguredDiscountOverrides;
59
59
  byFeeType?: IFeeType;
60
60
  defaultSelection?: IDefaultSelectionForManualDiscount;
61
- addAttachments?: Attachments;
61
+ addAttachments?: IAttachmentSettings;
62
62
  }
63
63
  export interface ITranslatableMessage {
64
64
  [locale: string]: string;
@@ -170,7 +170,7 @@ export interface SubscriptionSavings {
170
170
  value: string;
171
171
  reason: Reason;
172
172
  }
173
- export interface Attachments {
173
+ export interface IAttachmentSettings {
174
174
  enabled?: boolean;
175
175
  required?: boolean;
176
176
  maximumAttachments?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "This component library provides the common components to handle the coordination of processing the business events from the UI.",
5
5
  "private": false,
6
6
  "license": "SEE LICENSE IN LICENSE.md",