@aptos-scp/scp-component-store-selling-features-domain-model 2.4.1 → 2.5.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.
|
@@ -94,6 +94,7 @@ export declare const PRICE_CHANGE_EVENT: string;
|
|
|
94
94
|
export declare const CREATE_EINVOICE_EVENT: string;
|
|
95
95
|
export declare const PRINT_RECEIPT_EVENT: string;
|
|
96
96
|
export declare const PRINT_PENDING_RECEIPT_LINES: string;
|
|
97
|
+
export declare const PRINT_PAYMENT_ACCOUNT_RECEIPT_EVENT: string;
|
|
97
98
|
export declare const PRINT_FISCAL_RECEIPT_EVENT: string;
|
|
98
99
|
export declare const FISCAL_POST_VOID_NO_RECEIPT: string;
|
|
99
100
|
export declare const PRINT_FISCAL_RETRY_EVENT: string;
|
|
@@ -97,6 +97,7 @@ exports.PRICE_CHANGE_EVENT = "PriceChange";
|
|
|
97
97
|
exports.CREATE_EINVOICE_EVENT = "CreateEInvoice";
|
|
98
98
|
exports.PRINT_RECEIPT_EVENT = "PrintReceipt";
|
|
99
99
|
exports.PRINT_PENDING_RECEIPT_LINES = "PrintPendingReceipts";
|
|
100
|
+
exports.PRINT_PAYMENT_ACCOUNT_RECEIPT_EVENT = "PrintPaymentAccountReceipt";
|
|
100
101
|
exports.PRINT_FISCAL_RECEIPT_EVENT = "PrintFiscalReceipt";
|
|
101
102
|
exports.FISCAL_POST_VOID_NO_RECEIPT = "FiscalPostVoidNoReceipt";
|
|
102
103
|
exports.PRINT_FISCAL_RETRY_EVENT = "PrintFiscalRetry";
|
|
@@ -22,6 +22,7 @@ export declare class TenderControlTransaction extends RetailTransaction {
|
|
|
22
22
|
get referenceNumber(): string;
|
|
23
23
|
get isTenderExchangeTransaction(): boolean;
|
|
24
24
|
get isAccountPaymentTransaction(): boolean;
|
|
25
|
+
get hasAccountLookupLines(): boolean;
|
|
25
26
|
get isCompleteTenderExchangeTransaction(): boolean;
|
|
26
27
|
get isCompleteAccountPaymentTransaction(): boolean;
|
|
27
28
|
get transactionStateValues(): Readonly<Map<string, any>>;
|
|
@@ -8,6 +8,7 @@ const scp_types_commerce_transaction_1 = require("@aptos-scp/scp-types-commerce-
|
|
|
8
8
|
const config_1 = require("../../config");
|
|
9
9
|
const RetailTransaction_1 = require("./RetailTransaction");
|
|
10
10
|
const tender_1 = require("./tender");
|
|
11
|
+
const account_1 = require("./account");
|
|
11
12
|
exports.TENDER_CONTROL_TRANSACTION_TYPE = "TenderControlTransaction";
|
|
12
13
|
class TenderControlTransaction extends RetailTransaction_1.RetailTransaction {
|
|
13
14
|
constructor(deviceIdentity, businessDayDate, transactionNumber, user, transactionId, accountingCurrency, transactionReferenceFormatter, fiscalTransactionNumber, fiscalSignature) {
|
|
@@ -76,6 +77,10 @@ class TenderControlTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
76
77
|
var _a;
|
|
77
78
|
return !!((_a = this.lines) === null || _a === void 0 ? void 0 : _a.some((line) => tender_1.isTenderAuthorizationStatusLine(line) && line.status === scp_types_commerce_transaction_1.TenderAuthorizationStatus.PayOnAccountStarted));
|
|
78
79
|
}
|
|
80
|
+
get hasAccountLookupLines() {
|
|
81
|
+
var _a;
|
|
82
|
+
return !!((_a = this.lines) === null || _a === void 0 ? void 0 : _a.some((line) => account_1.isPaymentAccountLookupLine(line)));
|
|
83
|
+
}
|
|
79
84
|
get isCompleteTenderExchangeTransaction() {
|
|
80
85
|
return (this.isTenderExchangeTransaction &&
|
|
81
86
|
!!(this.lines.find((line) => tender_1.isTenderExchangeLine && line.lineType === tender_1.TENDER_EXCHANGE_IN_LINE_TYPE) &&
|
|
@@ -93,6 +98,7 @@ class TenderControlTransaction extends RetailTransaction_1.RetailTransaction {
|
|
|
93
98
|
["transaction.accountingCurrency", this._accountingCurrency],
|
|
94
99
|
["transaction.isTenderExchangeTransaction", this.isTenderExchangeTransaction],
|
|
95
100
|
["transaction.isAccountPaymentTransaction", this.isAccountPaymentTransaction],
|
|
101
|
+
["transaction.hasAccountLookupLines", this.hasAccountLookupLines],
|
|
96
102
|
["transaction.fiscalError", this._fiscalError],
|
|
97
103
|
]);
|
|
98
104
|
}
|
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.
|
|
3
|
+
"version": "2.5.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",
|