@aptos-scp/scp-component-store-selling-features-domain-model 1.45.0-patch.1 → 1.45.0-patch.2
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.
|
@@ -8,10 +8,8 @@ export declare const ITEM_TOTAL_DISCOUNT_ANNOTATION_SOURCE: string;
|
|
|
8
8
|
export declare const TRANS_TOTAL_DISCOUNT_ANNOTATION_SOURCE: string;
|
|
9
9
|
export declare class ManualDiscountLineTotalDecorator extends BaseManualDiscountLineDecorator {
|
|
10
10
|
private _totalDiscount;
|
|
11
|
-
private _amount;
|
|
12
11
|
static createFromJsonObject(transactionLineJsonObj: any, transactionLineFactory: ITransactionLineFactory): ManualDiscountLineTotalDecorator;
|
|
13
12
|
get totalDiscount(): Money;
|
|
14
|
-
get amount(): Money;
|
|
15
13
|
constructor(decoratorLineType: string, decoratedTransactionLine: IManualDiscountLine, annotationDescription: string, annotationSourceType: string, totalDiscount: Money, annotationSourceLineNumber?: number);
|
|
16
14
|
protected newTransactionLine(): BaseManualDiscountLineDecorator;
|
|
17
15
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const scp_component_business_core_1 = require("@aptos-scp/scp-component-business-core");
|
|
4
4
|
const BaseManualDiscountLineDecorator_1 = require("./BaseManualDiscountLineDecorator");
|
|
5
|
-
const scp_types_commerce_transaction_1 = require("@aptos-scp/scp-types-commerce-transaction");
|
|
6
5
|
exports.DECORATOR_TYPE_TRANSACTION_DISCOUNT_TOTAL = "TRANSACTION_DISCOUNT_TOTAL_DECORATOR";
|
|
7
6
|
exports.DECORATOR_TYPE_ITEM_DISCOUNT_TOTAL = "ITEM_DISCOUNT_TOTAL_DECORATOR";
|
|
8
7
|
exports.ITEM_TOTAL_DISCOUNT_ANNOTATION_SOURCE = "ITEM_TOTAL_DISCOUNT";
|
|
@@ -11,9 +10,6 @@ class ManualDiscountLineTotalDecorator extends BaseManualDiscountLineDecorator_1
|
|
|
11
10
|
constructor(decoratorLineType, decoratedTransactionLine, annotationDescription, annotationSourceType, totalDiscount, annotationSourceLineNumber) {
|
|
12
11
|
super(decoratorLineType, decoratedTransactionLine, annotationDescription, annotationSourceType, annotationSourceLineNumber);
|
|
13
12
|
this._totalDiscount = totalDiscount;
|
|
14
|
-
if (decoratedTransactionLine.discountType === scp_types_commerce_transaction_1.ManualDiscountType.AmountOff) {
|
|
15
|
-
this._amount = totalDiscount;
|
|
16
|
-
}
|
|
17
13
|
}
|
|
18
14
|
static createFromJsonObject(transactionLineJsonObj, transactionLineFactory) {
|
|
19
15
|
const decoratedTransactionLineJsonObj = this.getDecoratedTransactionLineJsonObjectFromJsonObject(transactionLineJsonObj);
|
|
@@ -28,9 +24,6 @@ class ManualDiscountLineTotalDecorator extends BaseManualDiscountLineDecorator_1
|
|
|
28
24
|
get totalDiscount() {
|
|
29
25
|
return this._totalDiscount;
|
|
30
26
|
}
|
|
31
|
-
get amount() {
|
|
32
|
-
return this._amount;
|
|
33
|
-
}
|
|
34
27
|
newTransactionLine() {
|
|
35
28
|
return new ManualDiscountLineTotalDecorator(this.lineDecoratorType, this.decoratedTransactionLine, this.annotationDescription, this.annotationSourceType, this.totalDiscount, this.annotationSourceLineNumber);
|
|
36
29
|
}
|
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.45.0-patch.
|
|
3
|
+
"version": "1.45.0-patch.2",
|
|
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",
|