@aptos-scp/scp-component-store-selling-features-domain-model 2.32.0 → 2.33.1
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/lib/domain/model/Constants.d.ts +4 -1
- package/lib/domain/model/Constants.js +3 -0
- package/lib/domain/model/fulfillmentAuthorization/FulfillmentAuthorizationStatusLine.d.ts +14 -0
- package/lib/domain/model/fulfillmentAuthorization/FulfillmentAuthorizationStatusLine.js +37 -0
- package/lib/domain/model/fulfillmentAuthorization/index.d.ts +1 -0
- package/lib/domain/model/fulfillmentAuthorization/index.js +7 -0
- package/lib/domain/model/index.d.ts +1 -0
- package/lib/domain/model/index.js +1 -0
- package/lib/domain/model/tender/TenderAuthorizationStatusLine.d.ts +0 -2
- package/lib/domain/model/tender/TenderAuthorizationStatusLine.js +0 -6
- package/package.json +5 -5
|
@@ -327,6 +327,7 @@ export declare enum UiInputKey {
|
|
|
327
327
|
IS_TENDER_FALLBACK = "input_isTenderFallback",
|
|
328
328
|
MAPPED_REFUND_TENDER_TYPE_NAME = "input_mappedRefundTenderTypeName",
|
|
329
329
|
MAPPED_REFUND_CARD_TYPE_NAME = "input_mappedRefundCardTypeName",
|
|
330
|
+
PRE_AUTH = "input_preAuth",
|
|
330
331
|
EXCLUDED_REFUND_CARD_TYPE_NAMES = "input_excludedRefundCardTypeNames",
|
|
331
332
|
TRANSACTION_NUMBER_FIELD = "input_transactionNumberField",
|
|
332
333
|
TRANSACTION_REFERENCE_NUMBER_FIELD = "input_referenceNumberField",
|
|
@@ -592,6 +593,7 @@ export declare enum CollectedDataKey {
|
|
|
592
593
|
ForfeitChangeConfirmation = "ForfeitChangeConfirmation",
|
|
593
594
|
FooterScanCodes = "FooterScanCodes",
|
|
594
595
|
FulfillmentType = "fulfillmentType",
|
|
596
|
+
FulfillmentAuthorizationStatus = "FulfillmentAuthorizationStatus",
|
|
595
597
|
FullPageInvoice = "fullPageInvoice",
|
|
596
598
|
BarcodeFormats = "BarcodeFormats",
|
|
597
599
|
GiftCardIssueResponse = "GiftCardIssueResponse",
|
|
@@ -999,7 +1001,8 @@ export declare enum CollectedDataKey {
|
|
|
999
1001
|
TerminalForceClosed = "TerminalForceClosed",
|
|
1000
1002
|
TotalLineTax = "totalLineTax",
|
|
1001
1003
|
CustomerInputScreens = "customerInputScreens",
|
|
1002
|
-
CustomerInputMode = "customerInputMode"
|
|
1004
|
+
CustomerInputMode = "customerInputMode",
|
|
1005
|
+
PreAuthCapture = "preAuthCapture"
|
|
1003
1006
|
}
|
|
1004
1007
|
export declare enum ItemLookupType {
|
|
1005
1008
|
ProductInquiryDetail = "ProductInquiryDetail",
|
|
@@ -328,6 +328,7 @@ var UiInputKey;
|
|
|
328
328
|
UiInputKey["IS_TENDER_FALLBACK"] = "input_isTenderFallback";
|
|
329
329
|
UiInputKey["MAPPED_REFUND_TENDER_TYPE_NAME"] = "input_mappedRefundTenderTypeName";
|
|
330
330
|
UiInputKey["MAPPED_REFUND_CARD_TYPE_NAME"] = "input_mappedRefundCardTypeName";
|
|
331
|
+
UiInputKey["PRE_AUTH"] = "input_preAuth";
|
|
331
332
|
UiInputKey["EXCLUDED_REFUND_CARD_TYPE_NAMES"] = "input_excludedRefundCardTypeNames";
|
|
332
333
|
UiInputKey["TRANSACTION_NUMBER_FIELD"] = "input_transactionNumberField";
|
|
333
334
|
UiInputKey["TRANSACTION_REFERENCE_NUMBER_FIELD"] = "input_referenceNumberField";
|
|
@@ -599,6 +600,7 @@ var CollectedDataKey;
|
|
|
599
600
|
CollectedDataKey["ForfeitChangeConfirmation"] = "ForfeitChangeConfirmation";
|
|
600
601
|
CollectedDataKey["FooterScanCodes"] = "FooterScanCodes";
|
|
601
602
|
CollectedDataKey["FulfillmentType"] = "fulfillmentType";
|
|
603
|
+
CollectedDataKey["FulfillmentAuthorizationStatus"] = "FulfillmentAuthorizationStatus";
|
|
602
604
|
CollectedDataKey["FullPageInvoice"] = "fullPageInvoice";
|
|
603
605
|
CollectedDataKey["BarcodeFormats"] = "BarcodeFormats";
|
|
604
606
|
CollectedDataKey["GiftCardIssueResponse"] = "GiftCardIssueResponse";
|
|
@@ -1007,6 +1009,7 @@ var CollectedDataKey;
|
|
|
1007
1009
|
CollectedDataKey["TotalLineTax"] = "totalLineTax";
|
|
1008
1010
|
CollectedDataKey["CustomerInputScreens"] = "customerInputScreens";
|
|
1009
1011
|
CollectedDataKey["CustomerInputMode"] = "customerInputMode";
|
|
1012
|
+
CollectedDataKey["PreAuthCapture"] = "preAuthCapture";
|
|
1010
1013
|
})(CollectedDataKey = exports.CollectedDataKey || (exports.CollectedDataKey = {}));
|
|
1011
1014
|
var ItemLookupType;
|
|
1012
1015
|
(function (ItemLookupType) {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ITransactionLine, UiBusinessEvent } from "@aptos-scp/scp-component-store-selling-core";
|
|
2
|
+
import { FulfillmentAuthorizationStatus } from "@aptos-scp/scp-types-commerce-transaction";
|
|
3
|
+
import { BaseTransactionLine } from "../BaseTransactionLine";
|
|
4
|
+
export declare const FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE: string;
|
|
5
|
+
export declare class FulfillmentAuthorizationStatusLine extends BaseTransactionLine {
|
|
6
|
+
private _status;
|
|
7
|
+
static create(lineNumber: number, lineType: string, uiBusinessEvent: UiBusinessEvent, collectedData: Readonly<Map<string, any>>): FulfillmentAuthorizationStatusLine;
|
|
8
|
+
static createFromJsonObject(transactionLineJsonObj: any): FulfillmentAuthorizationStatusLine;
|
|
9
|
+
get status(): FulfillmentAuthorizationStatus;
|
|
10
|
+
get couldAffectPricing(): boolean;
|
|
11
|
+
protected constructor(lineNumber: number, lineType: string, status: FulfillmentAuthorizationStatus);
|
|
12
|
+
protected newTransactionLine(): FulfillmentAuthorizationStatusLine;
|
|
13
|
+
}
|
|
14
|
+
export declare const isFulfillmentAuthorizationStatusLine: (transactionLine: ITransactionLine) => transactionLine is FulfillmentAuthorizationStatusLine;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const BaseTransactionLine_1 = require("../BaseTransactionLine");
|
|
4
|
+
const Constants_1 = require("../Constants");
|
|
5
|
+
exports.FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE = "FulfillmentAuthorizationStatus";
|
|
6
|
+
class FulfillmentAuthorizationStatusLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
7
|
+
constructor(lineNumber, lineType, status) {
|
|
8
|
+
super(lineNumber, lineType);
|
|
9
|
+
this._status = status;
|
|
10
|
+
}
|
|
11
|
+
static create(lineNumber, lineType, uiBusinessEvent, collectedData) {
|
|
12
|
+
const status = collectedData.get(Constants_1.CollectedDataKey.FulfillmentAuthorizationStatus);
|
|
13
|
+
return new FulfillmentAuthorizationStatusLine(lineNumber, lineType, status);
|
|
14
|
+
}
|
|
15
|
+
static createFromJsonObject(transactionLineJsonObj) {
|
|
16
|
+
const lineNumber = BaseTransactionLine_1.BaseTransactionLine.lineNumberFromJsonObject(transactionLineJsonObj);
|
|
17
|
+
const lineType = BaseTransactionLine_1.BaseTransactionLine.lineTypeFromJsonObject(transactionLineJsonObj);
|
|
18
|
+
const status = transactionLineJsonObj._status;
|
|
19
|
+
const fulfillmentAuthorizationStatusLine = new FulfillmentAuthorizationStatusLine(lineNumber, lineType, status);
|
|
20
|
+
fulfillmentAuthorizationStatusLine.loadFromJsonObject(transactionLineJsonObj);
|
|
21
|
+
return fulfillmentAuthorizationStatusLine;
|
|
22
|
+
}
|
|
23
|
+
get status() {
|
|
24
|
+
return this._status;
|
|
25
|
+
}
|
|
26
|
+
get couldAffectPricing() {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
newTransactionLine() {
|
|
30
|
+
return new FulfillmentAuthorizationStatusLine(this.lineNumber, this.lineType, this.status);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.FulfillmentAuthorizationStatusLine = FulfillmentAuthorizationStatusLine;
|
|
34
|
+
exports.isFulfillmentAuthorizationStatusLine = (transactionLine) => {
|
|
35
|
+
return transactionLine && transactionLine.lineType === exports.FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=FulfillmentAuthorizationStatusLine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FulfillmentAuthorizationStatusLine";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
__export(require("./FulfillmentAuthorizationStatusLine"));
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -58,6 +58,7 @@ export * from "./Organization";
|
|
|
58
58
|
export * from "./geoLocation";
|
|
59
59
|
export * from "./giftCard/";
|
|
60
60
|
export * from "./fee/";
|
|
61
|
+
export * from "./fulfillmentAuthorization/";
|
|
61
62
|
export * from "./fiscalDevice/";
|
|
62
63
|
export * from "./donation/";
|
|
63
64
|
export * from "./employeeCustomer/";
|
|
@@ -58,6 +58,7 @@ __export(require("./UserTransaction"));
|
|
|
58
58
|
__export(require("./VoidInterfaces"));
|
|
59
59
|
__export(require("./giftCard/"));
|
|
60
60
|
__export(require("./fee/"));
|
|
61
|
+
__export(require("./fulfillmentAuthorization/"));
|
|
61
62
|
__export(require("./fiscalDevice/"));
|
|
62
63
|
__export(require("./donation/"));
|
|
63
64
|
__export(require("./employeeCustomer/"));
|
|
@@ -7,7 +7,6 @@ import { BaseTransactionLine } from "../BaseTransactionLine";
|
|
|
7
7
|
import { TenderAuthCategory } from "../Constants";
|
|
8
8
|
import { TenderType } from "../TenderType";
|
|
9
9
|
export declare const TENDER_AUTH_STATUS_LINE_TYPE: string;
|
|
10
|
-
export declare const FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE: string;
|
|
11
10
|
export declare class TenderAuthorizationStatusLine extends BaseTransactionLine implements ITransactionLineReference {
|
|
12
11
|
private _status;
|
|
13
12
|
private _tenderAmount;
|
|
@@ -76,6 +75,5 @@ export declare class TenderAuthorizationStatusLine extends BaseTransactionLine i
|
|
|
76
75
|
protected newTransactionLine(): TenderAuthorizationStatusLine;
|
|
77
76
|
}
|
|
78
77
|
export declare const isTenderAuthorizationLine: (transactionLine: ITransactionLine) => transactionLine is TenderAuthorizationStatusLine;
|
|
79
|
-
export declare const isFulfillmentAuthorizationStatusLine: (transactionLine: ITransactionLine) => transactionLine is TenderAuthorizationStatusLine;
|
|
80
78
|
export declare function isTenderAuthorizationStatusLine(transactionLine: ITransactionLine): transactionLine is TenderAuthorizationStatusLine;
|
|
81
79
|
export declare function isTimeoutStatusLine(transactionLine: TenderAuthorizationStatusLine): boolean;
|
|
@@ -8,7 +8,6 @@ const BaseTransactionLine_1 = require("../BaseTransactionLine");
|
|
|
8
8
|
const Constants_1 = require("../Constants");
|
|
9
9
|
const TenderType_1 = require("../TenderType");
|
|
10
10
|
exports.TENDER_AUTH_STATUS_LINE_TYPE = "TenderAuthorizationStatus";
|
|
11
|
-
exports.FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE = "FulfillmentAuthorizationStatus";
|
|
12
11
|
class TenderAuthorizationStatusLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
13
12
|
constructor(lineNumber, lineType, status, tenderAmount, amountDue, authResponse, failureReasonCode, authorizationDeviceId, transactionLineReference, forcedAuthorizationApproval, cardNumber, giftCardPin, valueCertificateNumber, offlineAuthorizationCode, offlineApprovalCode, tenderAuthCategory, tenderType, tenderTypeName, entryMethod, tenderReversalFailed, originalTenderLineReferences, actionType, mappedRefundTenderTypeName, mappedRefundCardTypeName, excludedRefundCardTypeNames, subType, isChangeProcessing, isTenderAuthorizationFallback, payByLinkCustomer, storeLanguage, isRewardCardAutoApplied) {
|
|
14
13
|
super(lineNumber, lineType);
|
|
@@ -235,11 +234,6 @@ exports.TenderAuthorizationStatusLine = TenderAuthorizationStatusLine;
|
|
|
235
234
|
exports.isTenderAuthorizationLine = (transactionLine) => {
|
|
236
235
|
return transactionLine && transactionLine.lineType === exports.TENDER_AUTH_STATUS_LINE_TYPE;
|
|
237
236
|
};
|
|
238
|
-
exports.isFulfillmentAuthorizationStatusLine = (transactionLine) => {
|
|
239
|
-
return (transactionLine &&
|
|
240
|
-
transactionLine.lineType === exports.FULFILLMENT_AUTHORIZATION_STATUS_LINE_TYPE &&
|
|
241
|
-
transactionLine.status === scp_types_commerce_transaction_1.TenderAuthorizationStatus.Success);
|
|
242
|
-
};
|
|
243
237
|
function mapInputSourceToEntryMethod(inputSource) {
|
|
244
238
|
let entryMethod;
|
|
245
239
|
switch (inputSource) {
|
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.33.1",
|
|
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",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@aptos-scp/scp-component-user": "^1.4.0",
|
|
63
63
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
64
64
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|
|
65
|
-
"@aptos-scp/scp-types-commerce-devices": "^6.
|
|
66
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
65
|
+
"@aptos-scp/scp-types-commerce-devices": "^6.9.2",
|
|
66
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.89.1",
|
|
67
67
|
"@aptos-scp/scp-types-customer": "^3.7.0",
|
|
68
68
|
"@aptos-scp/scp-types-einvoice": "^1.17.0",
|
|
69
69
|
"@aptos-scp/scp-types-inventory": "^2.0.0",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"@aptos-scp/scp-component-taxation": "^5.28.0",
|
|
85
85
|
"@aptos-scp/scp-component-user": "^1.4.0",
|
|
86
86
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
87
|
-
"@aptos-scp/scp-types-commerce-devices": "^6.
|
|
88
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
87
|
+
"@aptos-scp/scp-types-commerce-devices": "^6.9.2",
|
|
88
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.89.1",
|
|
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",
|