@aptos-scp/scp-component-store-selling-features-domain-model 1.58.0 → 1.60.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.
|
@@ -193,6 +193,7 @@ export declare enum UiInputKey {
|
|
|
193
193
|
ORIGINAL_RECEIPT_CATEGORY = "input_originalReceiptCategory",
|
|
194
194
|
ORIGINAL_TRANSACTION = "input_originalTransaction",
|
|
195
195
|
ORIGINAL_TRANSACTION_ID = "input_originalTransactionId",
|
|
196
|
+
COMPOSITE_TRANSACTION_ID = "input_compositeTransactionId",
|
|
196
197
|
RETURNING_ITEM = "input_returningItem",
|
|
197
198
|
RETURNING_ITEM_FEE = "input_returningItemFee",
|
|
198
199
|
REFUND_ITEM_FEE_ITEM_LINE_REFERENCE = "input_refundFeeItemItemLineReference",
|
|
@@ -195,6 +195,7 @@ var UiInputKey;
|
|
|
195
195
|
UiInputKey["ORIGINAL_RECEIPT_CATEGORY"] = "input_originalReceiptCategory";
|
|
196
196
|
UiInputKey["ORIGINAL_TRANSACTION"] = "input_originalTransaction";
|
|
197
197
|
UiInputKey["ORIGINAL_TRANSACTION_ID"] = "input_originalTransactionId";
|
|
198
|
+
UiInputKey["COMPOSITE_TRANSACTION_ID"] = "input_compositeTransactionId";
|
|
198
199
|
UiInputKey["RETURNING_ITEM"] = "input_returningItem";
|
|
199
200
|
UiInputKey["RETURNING_ITEM_FEE"] = "input_returningItemFee";
|
|
200
201
|
UiInputKey["REFUND_ITEM_FEE_ITEM_LINE_REFERENCE"] = "input_refundFeeItemItemLineReference";
|
|
@@ -340,7 +340,7 @@ class TenderType {
|
|
|
340
340
|
let sigRequired = false;
|
|
341
341
|
switch (this.signatureCapturePolicy) {
|
|
342
342
|
case TenderSignatureCapturePolicy.AuthResponseOnly:
|
|
343
|
-
sigRequired = authResponse.signatureRequired;
|
|
343
|
+
sigRequired = !!(authResponse.signatureRequired || authResponse.signatureCaptureSupported);
|
|
344
344
|
break;
|
|
345
345
|
case TenderSignatureCapturePolicy.ConfigurationOnly:
|
|
346
346
|
if (this.signatureCaptureFloorLimit) {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ITransactionLine, UiBusinessEvent } from "@aptos-scp/scp-component-store-selling-core";
|
|
2
|
+
import { SignatureCaptureSource } from "@aptos-scp/scp-types-commerce-devices";
|
|
2
3
|
import { BaseTransactionLine } from "../BaseTransactionLine";
|
|
3
4
|
export declare const TENDER_SIGNATURE_LINE_TYPE = "TenderSignature";
|
|
4
5
|
export declare class TenderSignatureLine extends BaseTransactionLine {
|
|
5
6
|
private _tenderLineNumber;
|
|
6
7
|
private _signature;
|
|
7
8
|
private _signaturePoints;
|
|
9
|
+
private _source;
|
|
8
10
|
/**
|
|
9
11
|
* The create method is called by the transaction line factory to create an instance and initialize it from the
|
|
10
12
|
* data collected during the qualification process.
|
|
@@ -23,7 +25,8 @@ export declare class TenderSignatureLine extends BaseTransactionLine {
|
|
|
23
25
|
get tenderLineNumber(): number;
|
|
24
26
|
get signature(): string;
|
|
25
27
|
get signaturePoints(): string;
|
|
26
|
-
|
|
28
|
+
get source(): SignatureCaptureSource;
|
|
29
|
+
protected constructor(lineNumber: number, lineType: string, tenderLineNumber: number, signature: string, signaturePoints: string, source: SignatureCaptureSource);
|
|
27
30
|
protected newTransactionLine(): BaseTransactionLine;
|
|
28
31
|
}
|
|
29
32
|
export declare function isTenderSignatureLine(transactionLine: ITransactionLine): transactionLine is TenderSignatureLine;
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const BaseTransactionLine_1 = require("../BaseTransactionLine");
|
|
4
4
|
exports.TENDER_SIGNATURE_LINE_TYPE = "TenderSignature";
|
|
5
5
|
class TenderSignatureLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
6
|
-
constructor(lineNumber, lineType, tenderLineNumber, signature, signaturePoints) {
|
|
6
|
+
constructor(lineNumber, lineType, tenderLineNumber, signature, signaturePoints, source) {
|
|
7
7
|
super(lineNumber, lineType);
|
|
8
8
|
this._tenderLineNumber = tenderLineNumber;
|
|
9
9
|
this._signature = signature;
|
|
10
10
|
this._signaturePoints = signaturePoints;
|
|
11
|
+
this._source = source;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* The create method is called by the transaction line factory to create an instance and initialize it from the
|
|
@@ -24,7 +25,8 @@ class TenderSignatureLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
24
25
|
const tenderLineNumber = collectedData.get("tenderLineNumber");
|
|
25
26
|
const signature = collectedData.get("signature");
|
|
26
27
|
const signaturePoints = collectedData.get("signaturePoints");
|
|
27
|
-
|
|
28
|
+
const source = collectedData.get("source");
|
|
29
|
+
return new TenderSignatureLine(lineNumber, lineType, tenderLineNumber, signature, signaturePoints, source);
|
|
28
30
|
}
|
|
29
31
|
static createFromJsonObject(transactionLineJsonObj) {
|
|
30
32
|
const lineNumber = BaseTransactionLine_1.BaseTransactionLine.lineNumberFromJsonObject(transactionLineJsonObj);
|
|
@@ -32,7 +34,8 @@ class TenderSignatureLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
32
34
|
const tenderLineNumber = transactionLineJsonObj._tenderLineNumber;
|
|
33
35
|
const signature = transactionLineJsonObj._signature;
|
|
34
36
|
const signaturePoints = transactionLineJsonObj._signaturePoints;
|
|
35
|
-
const
|
|
37
|
+
const source = transactionLineJsonObj._source;
|
|
38
|
+
const tenderSignatureLine = new TenderSignatureLine(lineNumber, lineType, tenderLineNumber, signature, signaturePoints, source);
|
|
36
39
|
tenderSignatureLine.loadFromJsonObject(transactionLineJsonObj);
|
|
37
40
|
return tenderSignatureLine;
|
|
38
41
|
}
|
|
@@ -51,8 +54,11 @@ class TenderSignatureLine extends BaseTransactionLine_1.BaseTransactionLine {
|
|
|
51
54
|
get signaturePoints() {
|
|
52
55
|
return this._signaturePoints;
|
|
53
56
|
}
|
|
57
|
+
get source() {
|
|
58
|
+
return this._source;
|
|
59
|
+
}
|
|
54
60
|
newTransactionLine() {
|
|
55
|
-
return new TenderSignatureLine(this.lineNumber, this.lineType, this._tenderLineNumber, this._signature, this._signaturePoints);
|
|
61
|
+
return new TenderSignatureLine(this.lineNumber, this.lineType, this._tenderLineNumber, this._signature, this._signaturePoints, this._source);
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
exports.TenderSignatureLine = TenderSignatureLine;
|
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.
|
|
3
|
+
"version": "1.60.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",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@aptos-scp/scp-component-taxation": "^5.27.3",
|
|
84
84
|
"@aptos-scp/scp-component-user": "^1.4.0",
|
|
85
85
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
86
|
-
"@aptos-scp/scp-types-commerce-devices": "^5.
|
|
86
|
+
"@aptos-scp/scp-types-commerce-devices": "^5.2.0",
|
|
87
87
|
"@aptos-scp/scp-types-commerce-transaction": "^1.77.0",
|
|
88
88
|
"@aptos-scp/scp-types-core": "^1.0.5",
|
|
89
89
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|