@aptos-scp/scp-component-store-selling-features-domain-model 2.10.6 → 2.12.0

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.
@@ -18,6 +18,7 @@ export interface IFeatureAccessConfig {
18
18
  printCustomerReceipt?: boolean;
19
19
  allowPostVoidOnAnyTerminal?: boolean;
20
20
  denominationCountRequired?: boolean;
21
+ promptWhenTillNotPresent?: boolean;
21
22
  allowedTimeAfterTransactionStart?: number;
22
23
  maximumReprintsAllowed?: number;
23
24
  allowBlindCount?: boolean;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const scp_types_commerce_devices_1 = require("@aptos-scp/scp-types-commerce-devices");
4
3
  const BaseTransactionLine_1 = require("../BaseTransactionLine");
5
4
  const Constants_1 = require("../Constants");
6
5
  exports.FISCAL_DEVICE_STATUS_LINE_TYPE = "FiscalDeviceStatus";
@@ -36,12 +35,9 @@ class FiscalDeviceStatusLine extends BaseTransactionLine_1.BaseTransactionLine {
36
35
  userMessage: undefined,
37
36
  };
38
37
  fiscalDeviceActivityResult.successful = (_a = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceActivitySuccessful), (_a !== null && _a !== void 0 ? _a : false));
39
- if (!fiscalDeviceActivityResult.successful ||
40
- collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorCode) === scp_types_commerce_devices_1.FiscalResponseCode.Warning) {
41
- fiscalDeviceActivityResult.errorCode = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorCode);
42
- fiscalDeviceActivityResult.errorDescription = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorDescription);
43
- fiscalDeviceActivityResult.userMessage = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceUserMessage);
44
- }
38
+ fiscalDeviceActivityResult.errorCode = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorCode);
39
+ fiscalDeviceActivityResult.errorDescription = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorDescription);
40
+ fiscalDeviceActivityResult.userMessage = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceUserMessage);
45
41
  const transactionLineReference = collectedData.get(Constants_1.CollectedDataKey.TransactionLineReference);
46
42
  const fiscalDeviceInformation = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceInformation);
47
43
  const fiscalTransactionInformation = collectedData.get(Constants_1.CollectedDataKey.FiscalTransactionInformation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-scp/scp-component-store-selling-features-domain-model",
3
- "version": "2.10.6",
3
+ "version": "2.12.0",
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",