@aptos-scp/scp-component-store-selling-features-domain-model 2.22.1 → 2.24.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.
package/README.md CHANGED
@@ -92,3 +92,4 @@ When the build in Circle CI sees the version tag, it will publish the changes to
92
92
  ## License
93
93
 
94
94
  Please see [LICENSE.md](LICENSE.md).
95
+
@@ -105,6 +105,7 @@ export declare const PRINT_FISCAL_RECEIPT_EVENT: string;
105
105
  export declare const FISCAL_POST_VOID_NO_RECEIPT: string;
106
106
  export declare const PRINT_FISCAL_RETRY_EVENT: string;
107
107
  export declare const PRINT_FISCAL_PRINTER_CHANGE_RETRY_EVENT: string;
108
+ export declare const GET_RECEIPT_FISCAL_DOCUMENT_NUMBER_EVENT: string;
108
109
  export declare const QUANTITY_CHANGE_EVENT: string;
109
110
  export declare const RECEIPT_STATUS_EVENT: string;
110
111
  export declare const RECORD_CASH_DRAWER_STATUS_EVENT: string;
@@ -108,6 +108,7 @@ exports.PRINT_FISCAL_RECEIPT_EVENT = "PrintFiscalReceipt";
108
108
  exports.FISCAL_POST_VOID_NO_RECEIPT = "FiscalPostVoidNoReceipt";
109
109
  exports.PRINT_FISCAL_RETRY_EVENT = "PrintFiscalRetry";
110
110
  exports.PRINT_FISCAL_PRINTER_CHANGE_RETRY_EVENT = "PrintFiscalPrinterChangeRetry";
111
+ exports.GET_RECEIPT_FISCAL_DOCUMENT_NUMBER_EVENT = "GetReceiptFiscalDocumentNumber";
111
112
  exports.QUANTITY_CHANGE_EVENT = "QuantityChange";
112
113
  exports.RECEIPT_STATUS_EVENT = "ReceiptStatus";
113
114
  exports.RECORD_CASH_DRAWER_STATUS_EVENT = "RecordCashDrawerStatus";
@@ -579,6 +579,7 @@ export declare enum CollectedDataKey {
579
579
  FiscalVarianceInformation = "FiscalVarianceInformation",
580
580
  FiscalDeviceErrorCode = "fiscalDeviceErrorCode",
581
581
  FiscalDeviceErrorDescription = "fiscalDeviceErrorDescription",
582
+ FiscalErrorSource = "fiscalErrorSource",
582
583
  FiscalDeviceUserMessage = "fiscalDeviceUserMessage",
583
584
  ForcedAuthorizationApproval = "ForcedAuthorizationApproval",
584
585
  ForfeitChangeConfirmation = "ForfeitChangeConfirmation",
@@ -586,6 +586,7 @@ var CollectedDataKey;
586
586
  CollectedDataKey["FiscalVarianceInformation"] = "FiscalVarianceInformation";
587
587
  CollectedDataKey["FiscalDeviceErrorCode"] = "fiscalDeviceErrorCode";
588
588
  CollectedDataKey["FiscalDeviceErrorDescription"] = "fiscalDeviceErrorDescription";
589
+ CollectedDataKey["FiscalErrorSource"] = "fiscalErrorSource";
589
590
  CollectedDataKey["FiscalDeviceUserMessage"] = "fiscalDeviceUserMessage";
590
591
  CollectedDataKey["ForcedAuthorizationApproval"] = "ForcedAuthorizationApproval";
591
592
  CollectedDataKey["ForfeitChangeConfirmation"] = "ForfeitChangeConfirmation";
@@ -33,11 +33,13 @@ class FiscalDeviceStatusLine extends BaseTransactionLine_1.BaseTransactionLine {
33
33
  successful: false,
34
34
  errorCode: undefined,
35
35
  errorDescription: undefined,
36
+ errorSource: undefined,
36
37
  userMessage: undefined,
37
38
  };
38
39
  fiscalDeviceActivityResult.successful = (_a = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceActivitySuccessful), (_a !== null && _a !== void 0 ? _a : false));
39
40
  fiscalDeviceActivityResult.errorCode = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorCode);
40
41
  fiscalDeviceActivityResult.errorDescription = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceErrorDescription);
42
+ fiscalDeviceActivityResult.errorSource = collectedData.get(Constants_1.CollectedDataKey.FiscalErrorSource);
41
43
  fiscalDeviceActivityResult.userMessage = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceUserMessage);
42
44
  const transactionLineReference = collectedData.get(Constants_1.CollectedDataKey.TransactionLineReference);
43
45
  const fiscalDeviceInformation = collectedData.get(Constants_1.CollectedDataKey.FiscalDeviceInformation);
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.22.1",
3
+ "version": "2.24.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",
@@ -85,7 +85,7 @@
85
85
  "@aptos-scp/scp-component-user": "^1.4.0",
86
86
  "@aptos-scp/scp-types-client-registration": "^1.4.0",
87
87
  "@aptos-scp/scp-types-commerce-devices": "^6.3.0",
88
- "@aptos-scp/scp-types-commerce-transaction": "^1.83.0",
88
+ "@aptos-scp/scp-types-commerce-transaction": "^1.85.0",
89
89
  "@aptos-scp/scp-types-core": "^1.0.5",
90
90
  "@aptos-scp/scp-types-core-config": "^2.2.1",
91
91
  "@aptos-scp/scp-types-currency-conversion": "^1.2.0",