@aptos-scp/scp-component-store-selling-features-domain-model 3.5.0 → 3.6.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/lib/domain/model/item/ISerializedPriceCalculationResultsWithSource.d.ts +1 -0
- package/lib/domain/model/item/ItemLineBaseDiscountDecorator.d.ts +3 -1
- package/lib/domain/model/item/ItemLineBaseDiscountDecorator.js +7 -2
- package/lib/domain/model/item/ItemLineManualDiscountDecorator.d.ts +1 -1
- package/lib/domain/model/item/ItemLineManualDiscountDecorator.js +5 -4
- package/lib/domain/model/item/ItemLinePromotionDecorator.d.ts +1 -1
- package/lib/domain/model/item/ItemLinePromotionDecorator.js +3 -3
- package/package.json +3 -3
|
@@ -36,6 +36,7 @@ export interface ISerializedSublineQuantityWithSource {
|
|
|
36
36
|
export interface ISerializedSublinePricingAdjustmentWithSource extends ISerializedSublinePricingAdjustment {
|
|
37
37
|
sourceIndicator?: SourceIndicator;
|
|
38
38
|
isEmployeeDiscount?: boolean;
|
|
39
|
+
isMembershipProrationDiscount?: boolean;
|
|
39
40
|
}
|
|
40
41
|
export interface ISublinePricingAdjustmentWithSource extends ISublinePricingAdjustment {
|
|
41
42
|
adjustmentScope?: PricingAdjustmentScope;
|
|
@@ -24,7 +24,8 @@ export declare class ItemLineBaseDiscountDecorator extends BaseItemLineDecorator
|
|
|
24
24
|
private _isFastDiscount;
|
|
25
25
|
private _presentation;
|
|
26
26
|
private _aggregationId;
|
|
27
|
-
|
|
27
|
+
private _isMembershipProrationDiscount;
|
|
28
|
+
constructor(decoratorType: string, replacementUnitPrice: Price, newExtendedAmount: Money, itemLine: IItemLine, lineSavings: Money, adjustmentAmount: Money, annotationDescription: string, annotationSourceType: string, discountAmount?: Money, percent?: string, discountName?: string, discountDescription?: string, discountType?: VerboseDiscountType, sublines?: IItemSubline[], replacementAmount?: Money, isEmployeeDiscount?: boolean, ruleId?: string, extendedAmountBeforeAdjustment?: Money, isFastDiscount?: boolean, presentation?: IItemLine, aggregationId?: string, isMembershipProrationDiscount?: boolean);
|
|
28
29
|
get unitPriceBeforeDiscounts(): Price;
|
|
29
30
|
/**
|
|
30
31
|
* Percent adjustment if a percentage was applied
|
|
@@ -54,6 +55,7 @@ export declare class ItemLineBaseDiscountDecorator extends BaseItemLineDecorator
|
|
|
54
55
|
get ruleId(): string;
|
|
55
56
|
get isEmployeeDiscount(): boolean;
|
|
56
57
|
get isFastDiscount(): boolean;
|
|
58
|
+
get isMembershipProrationDiscount(): boolean;
|
|
57
59
|
/**
|
|
58
60
|
* Extended amount of the line before this pricing adjustment.
|
|
59
61
|
*/
|
|
@@ -5,7 +5,7 @@ const ErrorCodes_1 = require("../../../config/ErrorCodes");
|
|
|
5
5
|
const BaseLineDecorator_1 = require("../BaseLineDecorator");
|
|
6
6
|
const BaseItemLineDecorator_1 = require("./BaseItemLineDecorator");
|
|
7
7
|
class ItemLineBaseDiscountDecorator extends BaseItemLineDecorator_1.BaseItemLineDecorator {
|
|
8
|
-
constructor(decoratorType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, sublines, replacementAmount, isEmployeeDiscount, ruleId, extendedAmountBeforeAdjustment, isFastDiscount, presentation, aggregationId) {
|
|
8
|
+
constructor(decoratorType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, sublines, replacementAmount, isEmployeeDiscount, ruleId, extendedAmountBeforeAdjustment, isFastDiscount, presentation, aggregationId, isMembershipProrationDiscount) {
|
|
9
9
|
super(lineSavings, decoratorType, itemLine, annotationDescription, annotationSourceType, undefined);
|
|
10
10
|
if (!replacementUnitPrice) {
|
|
11
11
|
throw new scp_component_store_selling_core_1.PosError(`The replacement unit price is required on ItemLineBaseDiscountDecorator.`, ErrorCodes_1.SSF_DECORATOR_ERROR_CODE);
|
|
@@ -34,6 +34,7 @@ class ItemLineBaseDiscountDecorator extends BaseItemLineDecorator_1.BaseItemLine
|
|
|
34
34
|
this._isFastDiscount = isFastDiscount;
|
|
35
35
|
this._presentation = presentation;
|
|
36
36
|
this._aggregationId = aggregationId;
|
|
37
|
+
this._isMembershipProrationDiscount = isMembershipProrationDiscount;
|
|
37
38
|
}
|
|
38
39
|
get unitPriceBeforeDiscounts() {
|
|
39
40
|
if (this.decoratedTransactionLine instanceof ItemLineBaseDiscountDecorator) {
|
|
@@ -116,6 +117,9 @@ class ItemLineBaseDiscountDecorator extends BaseItemLineDecorator_1.BaseItemLine
|
|
|
116
117
|
get isFastDiscount() {
|
|
117
118
|
return this._isFastDiscount;
|
|
118
119
|
}
|
|
120
|
+
get isMembershipProrationDiscount() {
|
|
121
|
+
return this._isMembershipProrationDiscount;
|
|
122
|
+
}
|
|
119
123
|
/**
|
|
120
124
|
* Extended amount of the line before this pricing adjustment.
|
|
121
125
|
*/
|
|
@@ -168,10 +172,11 @@ class ItemLineBaseDiscountDecorator extends BaseItemLineDecorator_1.BaseItemLine
|
|
|
168
172
|
newItemLineBaseDiscountDecorator._isFastDiscount = this._isFastDiscount;
|
|
169
173
|
newItemLineBaseDiscountDecorator._presentation = this._presentation;
|
|
170
174
|
newItemLineBaseDiscountDecorator._aggregationId = this._aggregationId;
|
|
175
|
+
newItemLineBaseDiscountDecorator._isMembershipProrationDiscount = this._isMembershipProrationDiscount;
|
|
171
176
|
return newItemLineBaseDiscountDecorator;
|
|
172
177
|
}
|
|
173
178
|
newTransactionLine() {
|
|
174
|
-
return new ItemLineBaseDiscountDecorator(this.lineDecoratorType, this._replacementUnitPrice, this._newExtendedAmount, this.decoratedTransactionLine, this.lineSavings, this.adjustmentAmount, this.annotationDescription, this.annotationSourceType, this._discountAmount, this._percent, this._discountName, this._discountDescription, this._discountType, this._sublines, this._replacementAmount, this._isEmployeeDiscount, this._ruleId, this._extendedAmountBeforeAdjustment, this._isFastDiscount, this._presentation, this._aggregationId);
|
|
179
|
+
return new ItemLineBaseDiscountDecorator(this.lineDecoratorType, this._replacementUnitPrice, this._newExtendedAmount, this.decoratedTransactionLine, this.lineSavings, this.adjustmentAmount, this.annotationDescription, this.annotationSourceType, this._discountAmount, this._percent, this._discountName, this._discountDescription, this._discountType, this._sublines, this._replacementAmount, this._isEmployeeDiscount, this._ruleId, this._extendedAmountBeforeAdjustment, this._isFastDiscount, this._presentation, this._aggregationId, this._isMembershipProrationDiscount);
|
|
175
180
|
}
|
|
176
181
|
}
|
|
177
182
|
exports.ItemLineBaseDiscountDecorator = ItemLineBaseDiscountDecorator;
|
|
@@ -29,7 +29,7 @@ export declare class ItemLineManualDiscountDecorator extends ItemLineBaseDiscoun
|
|
|
29
29
|
private _baseExtendedAmount?;
|
|
30
30
|
private _baseLineSavings?;
|
|
31
31
|
static createFromJsonObject(transactionLineJsonObj: any, transactionLineFactory: ITransactionLineFactory): ItemLineManualDiscountDecorator;
|
|
32
|
-
constructor(decoratorType: string, replacementUnitPrice: Price, newExtendedAmount: Money, itemLine: IItemLine, lineSavings: Money, adjustmentAmount: Money, annotationDescription: string, annotationSourceType: string, discountAmount?: Money, percent?: string, discountName?: string, discountDescription?: string, discountType?: VerboseDiscountType, couponCode?: string, sublines?: IItemSubline[], replacementAmount?: Money, reasonCode?: string, reasonDescription?: string, discountLineNumber?: ISameTransactionLineReference, isEmployeeDiscount?: boolean, isFastDiscount?: boolean, ruleId?: string, extendedAmountBeforeAdjustment?: Money, isSubscriptionDiscount?: boolean, isCompetitiveDiscount?: boolean, selectedUnitPrice?: SelectedUnitPrice, presentation?: IItemLine, aggregationId?: string, isLoyaltyDiscount?: boolean, isPermanentMembershipDiscount?: boolean, membershipTypeKey?: string, membershipTypeName?: string, membershipTypeDescription?: string);
|
|
32
|
+
constructor(decoratorType: string, replacementUnitPrice: Price, newExtendedAmount: Money, itemLine: IItemLine, lineSavings: Money, adjustmentAmount: Money, annotationDescription: string, annotationSourceType: string, discountAmount?: Money, percent?: string, discountName?: string, discountDescription?: string, discountType?: VerboseDiscountType, couponCode?: string, sublines?: IItemSubline[], replacementAmount?: Money, reasonCode?: string, reasonDescription?: string, discountLineNumber?: ISameTransactionLineReference, isEmployeeDiscount?: boolean, isFastDiscount?: boolean, ruleId?: string, extendedAmountBeforeAdjustment?: Money, isSubscriptionDiscount?: boolean, isCompetitiveDiscount?: boolean, selectedUnitPrice?: SelectedUnitPrice, presentation?: IItemLine, aggregationId?: string, isLoyaltyDiscount?: boolean, isPermanentMembershipDiscount?: boolean, membershipTypeKey?: string, membershipTypeName?: string, membershipTypeDescription?: string, isMembershipProrationDiscount?: boolean);
|
|
33
33
|
/**
|
|
34
34
|
* the ID of the coupon that triggered the discount
|
|
35
35
|
* @returns {string}
|
|
@@ -30,8 +30,8 @@ function isItemLineManualTransactionDiscountDecorator(transactionLine) {
|
|
|
30
30
|
}
|
|
31
31
|
exports.isItemLineManualTransactionDiscountDecorator = isItemLineManualTransactionDiscountDecorator;
|
|
32
32
|
class ItemLineManualDiscountDecorator extends ItemLineBaseDiscountDecorator_1.ItemLineBaseDiscountDecorator {
|
|
33
|
-
constructor(decoratorType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, couponCode, sublines, replacementAmount, reasonCode, reasonDescription, discountLineNumber, isEmployeeDiscount, isFastDiscount, ruleId, extendedAmountBeforeAdjustment, isSubscriptionDiscount, isCompetitiveDiscount, selectedUnitPrice, presentation, aggregationId, isLoyaltyDiscount, isPermanentMembershipDiscount, membershipTypeKey, membershipTypeName, membershipTypeDescription) {
|
|
34
|
-
super(decoratorType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, sublines, replacementAmount, isEmployeeDiscount, ruleId, extendedAmountBeforeAdjustment, isFastDiscount, presentation, aggregationId);
|
|
33
|
+
constructor(decoratorType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, couponCode, sublines, replacementAmount, reasonCode, reasonDescription, discountLineNumber, isEmployeeDiscount, isFastDiscount, ruleId, extendedAmountBeforeAdjustment, isSubscriptionDiscount, isCompetitiveDiscount, selectedUnitPrice, presentation, aggregationId, isLoyaltyDiscount, isPermanentMembershipDiscount, membershipTypeKey, membershipTypeName, membershipTypeDescription, isMembershipProrationDiscount) {
|
|
34
|
+
super(decoratorType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, sublines, replacementAmount, isEmployeeDiscount, ruleId, extendedAmountBeforeAdjustment, isFastDiscount, presentation, aggregationId, isMembershipProrationDiscount);
|
|
35
35
|
this._couponCode = couponCode;
|
|
36
36
|
this._reasonCode = reasonCode;
|
|
37
37
|
this._reasonDescription = reasonDescription;
|
|
@@ -98,12 +98,13 @@ class ItemLineManualDiscountDecorator extends ItemLineBaseDiscountDecorator_1.It
|
|
|
98
98
|
const membershipTypeKey = transactionLineJsonObj._membershipTypeKey;
|
|
99
99
|
const membershipTypeName = transactionLineJsonObj._membershipTypeName;
|
|
100
100
|
const membershipTypeDescription = transactionLineJsonObj._membershipTypeDescription;
|
|
101
|
+
const isMembershipProrationDiscount = transactionLineJsonObj._isMembershipProrationDiscount;
|
|
101
102
|
const selectedUnitPrice = transactionLineJsonObj._selectedUnitPrice;
|
|
102
103
|
const presentation = transactionLineJsonObj._presentation
|
|
103
104
|
? ItemLineManualDiscountDecorator.createFromJsonObject(transactionLineJsonObj._presentation, transactionLineFactory)
|
|
104
105
|
: undefined;
|
|
105
106
|
const aggregationId = transactionLineJsonObj._aggregationId;
|
|
106
|
-
const manualDiscountsDecorator = new ItemLineManualDiscountDecorator(lineDecoratorType, replacementUnitPrice, newExtendedAmount, decoratedItemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, couponCode, sublines, replacementAmount, reasonCode, reasonDescription, discountLineNumber, isEmployeeDiscount, isFastDiscount, ruleId, extendedAmountBeforeAdjustment, isSubscriptionDiscount, isCompetitiveDiscount, selectedUnitPrice, presentation, aggregationId, isLoyaltyDiscount, isPermanentMembershipDiscount, membershipTypeKey, membershipTypeName, membershipTypeDescription);
|
|
107
|
+
const manualDiscountsDecorator = new ItemLineManualDiscountDecorator(lineDecoratorType, replacementUnitPrice, newExtendedAmount, decoratedItemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, couponCode, sublines, replacementAmount, reasonCode, reasonDescription, discountLineNumber, isEmployeeDiscount, isFastDiscount, ruleId, extendedAmountBeforeAdjustment, isSubscriptionDiscount, isCompetitiveDiscount, selectedUnitPrice, presentation, aggregationId, isLoyaltyDiscount, isPermanentMembershipDiscount, membershipTypeKey, membershipTypeName, membershipTypeDescription, isMembershipProrationDiscount);
|
|
107
108
|
return manualDiscountsDecorator;
|
|
108
109
|
}
|
|
109
110
|
/**
|
|
@@ -194,7 +195,7 @@ class ItemLineManualDiscountDecorator extends ItemLineBaseDiscountDecorator_1.It
|
|
|
194
195
|
return newItemLineManualDiscountDecorator;
|
|
195
196
|
}
|
|
196
197
|
newTransactionLine() {
|
|
197
|
-
return new ItemLineManualDiscountDecorator(this.lineDecoratorType, this.replacementUnitPrice, this.newExtendedAmount, this.decoratedTransactionLine, this.lineSavings, this.adjustmentAmount, this.annotationDescription, this.annotationSourceType, this.discountAmount, this.percent, this.discountName, this.discountDescription, this.discountType, this._couponCode, this.sublines, this.replacementAmount, this._reasonCode, this._reasonDescription, this._discountLineNumber, this.isEmployeeDiscount, this.isFastDiscount, this.ruleId, this.extendedAmountBeforeAdjustment, this.isSubscriptionDiscount, this.isCompetitiveDiscount, this.itemSelectedUnitPrice, this.presentation, this.aggregationId, this.isLoyaltyDiscount, this.isPermanentMembershipDiscount, this.membershipTypeKey, this.membershipTypeName, this.membershipTypeDescription);
|
|
198
|
+
return new ItemLineManualDiscountDecorator(this.lineDecoratorType, this.replacementUnitPrice, this.newExtendedAmount, this.decoratedTransactionLine, this.lineSavings, this.adjustmentAmount, this.annotationDescription, this.annotationSourceType, this.discountAmount, this.percent, this.discountName, this.discountDescription, this.discountType, this._couponCode, this.sublines, this.replacementAmount, this._reasonCode, this._reasonDescription, this._discountLineNumber, this.isEmployeeDiscount, this.isFastDiscount, this.ruleId, this.extendedAmountBeforeAdjustment, this.isSubscriptionDiscount, this.isCompetitiveDiscount, this.itemSelectedUnitPrice, this.presentation, this.aggregationId, this.isLoyaltyDiscount, this.isPermanentMembershipDiscount, this.membershipTypeKey, this.membershipTypeName, this.membershipTypeDescription, this.isMembershipProrationDiscount);
|
|
198
199
|
}
|
|
199
200
|
}
|
|
200
201
|
exports.ItemLineManualDiscountDecorator = ItemLineManualDiscountDecorator;
|
|
@@ -25,7 +25,7 @@ export declare class ItemLinePromotionDecorator extends ItemLineBaseDiscountDeco
|
|
|
25
25
|
private _rewardCouponId;
|
|
26
26
|
private _sourceIndicator;
|
|
27
27
|
static createFromJsonObject(transactionLineJsonObj: any, transactionLineFactory: ITransactionLineFactory): ItemLinePromotionDecorator;
|
|
28
|
-
constructor(ruleId: string, promotionType: string, replacementUnitPrice: Price, newExtendedAmount: Money, itemLine: IItemLine, lineSavings: Money, adjustmentAmount: Money, annotationDescription: string, annotationSourceType: string, promoName?: string, promoDescription?: string, promotionId?: string, discountAmount?: Money, percent?: string, discountName?: string, discountDescription?: string, discountType?: DiscountType, rewardCouponId?: string, sublines?: IItemSubline[], replacementAmount?: Money, couponCode?: string, isAutoCoupon?: boolean, sourceIndicator?: SourceIndicator, extendedAmountBeforeAdjustment?: Money, singleUseCoupon?: string, selectedUnitPrice?: SelectedUnitPrice, presentation?: IItemLine, aggregationId?: string, isEmployeeDiscount?: boolean, campaign?: ICampaignInformation, priceCalculatedOnUnitPrice?: Price, priceCalculatedOnExtendedAmount?: Money);
|
|
28
|
+
constructor(ruleId: string, promotionType: string, replacementUnitPrice: Price, newExtendedAmount: Money, itemLine: IItemLine, lineSavings: Money, adjustmentAmount: Money, annotationDescription: string, annotationSourceType: string, promoName?: string, promoDescription?: string, promotionId?: string, discountAmount?: Money, percent?: string, discountName?: string, discountDescription?: string, discountType?: DiscountType, rewardCouponId?: string, sublines?: IItemSubline[], replacementAmount?: Money, couponCode?: string, isAutoCoupon?: boolean, sourceIndicator?: SourceIndicator, extendedAmountBeforeAdjustment?: Money, singleUseCoupon?: string, selectedUnitPrice?: SelectedUnitPrice, presentation?: IItemLine, aggregationId?: string, isEmployeeDiscount?: boolean, campaign?: ICampaignInformation, priceCalculatedOnUnitPrice?: Price, priceCalculatedOnExtendedAmount?: Money, isMembershipProrationDiscount?: boolean);
|
|
29
29
|
get sourceIndicator(): SourceIndicator;
|
|
30
30
|
get promoName(): string;
|
|
31
31
|
get promoDescription(): string;
|
|
@@ -9,8 +9,8 @@ function isItemLinePromotionDecorator(transactionLine) {
|
|
|
9
9
|
}
|
|
10
10
|
exports.isItemLinePromotionDecorator = isItemLinePromotionDecorator;
|
|
11
11
|
class ItemLinePromotionDecorator extends ItemLineBaseDiscountDecorator_1.ItemLineBaseDiscountDecorator {
|
|
12
|
-
constructor(ruleId, promotionType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, promoName, promoDescription, promotionId, discountAmount, percent, discountName, discountDescription, discountType, rewardCouponId, sublines, replacementAmount, couponCode, isAutoCoupon, sourceIndicator, extendedAmountBeforeAdjustment, singleUseCoupon, selectedUnitPrice, presentation, aggregationId, isEmployeeDiscount, campaign, priceCalculatedOnUnitPrice, priceCalculatedOnExtendedAmount) {
|
|
13
|
-
super(exports.DECORATOR_TYPE_ITEM_LINE_PROMO, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, sublines, replacementAmount, isEmployeeDiscount, ruleId, extendedAmountBeforeAdjustment, undefined, presentation, aggregationId);
|
|
12
|
+
constructor(ruleId, promotionType, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, promoName, promoDescription, promotionId, discountAmount, percent, discountName, discountDescription, discountType, rewardCouponId, sublines, replacementAmount, couponCode, isAutoCoupon, sourceIndicator, extendedAmountBeforeAdjustment, singleUseCoupon, selectedUnitPrice, presentation, aggregationId, isEmployeeDiscount, campaign, priceCalculatedOnUnitPrice, priceCalculatedOnExtendedAmount, isMembershipProrationDiscount) {
|
|
13
|
+
super(exports.DECORATOR_TYPE_ITEM_LINE_PROMO, replacementUnitPrice, newExtendedAmount, itemLine, lineSavings, adjustmentAmount, annotationDescription, annotationSourceType, discountAmount, percent, discountName, discountDescription, discountType, sublines, replacementAmount, isEmployeeDiscount, ruleId, extendedAmountBeforeAdjustment, undefined, presentation, aggregationId, isMembershipProrationDiscount);
|
|
14
14
|
this.adjustmentAmount = adjustmentAmount;
|
|
15
15
|
this._promoName = promoName;
|
|
16
16
|
this._promoDescription = promoDescription;
|
|
@@ -159,7 +159,7 @@ class ItemLinePromotionDecorator extends ItemLineBaseDiscountDecorator_1.ItemLin
|
|
|
159
159
|
return newItemLinePromotionDecorator;
|
|
160
160
|
}
|
|
161
161
|
newTransactionLine() {
|
|
162
|
-
return new ItemLinePromotionDecorator(this.ruleId, this._promotionType, this.replacementUnitPrice, this.newExtendedAmount, this.decoratedTransactionLine, this.lineSavings, this.adjustmentAmount, this.annotationDescription, this.annotationSourceType, this._promoName, this._promoDescription, this._promotionId, this.discountAmount, this.percent, this.discountName, this.discountDescription, this.discountType, this._rewardCouponId, this.sublines, this.replacementAmount, this.couponCode, this.isAutoCoupon, this.sourceIndicator, this.extendedAmountBeforeAdjustment, this.singleUseCoupon, this.itemSelectedUnitPrice, this.presentation, this.aggregationId, this.isEmployeeDiscount, this.campaign, this.priceCalculatedOnUnitPrice, this.priceCalculatedOnExtendedAmount);
|
|
162
|
+
return new ItemLinePromotionDecorator(this.ruleId, this._promotionType, this.replacementUnitPrice, this.newExtendedAmount, this.decoratedTransactionLine, this.lineSavings, this.adjustmentAmount, this.annotationDescription, this.annotationSourceType, this._promoName, this._promoDescription, this._promotionId, this.discountAmount, this.percent, this.discountName, this.discountDescription, this.discountType, this._rewardCouponId, this.sublines, this.replacementAmount, this.couponCode, this.isAutoCoupon, this.sourceIndicator, this.extendedAmountBeforeAdjustment, this.singleUseCoupon, this.itemSelectedUnitPrice, this.presentation, this.aggregationId, this.isEmployeeDiscount, this.campaign, this.priceCalculatedOnUnitPrice, this.priceCalculatedOnExtendedAmount, this.isMembershipProrationDiscount);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
exports.ItemLinePromotionDecorator = ItemLinePromotionDecorator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aptos-scp/scp-component-store-selling-features-domain-model",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
65
65
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|
|
66
66
|
"@aptos-scp/scp-types-commerce-devices": "^6.10.0",
|
|
67
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
67
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.100.0",
|
|
68
68
|
"@aptos-scp/scp-types-customer": "^3.7.0",
|
|
69
69
|
"@aptos-scp/scp-types-einvoice": "^1.17.0",
|
|
70
70
|
"@aptos-scp/scp-types-inventory": "^2.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@aptos-scp/scp-component-user": "^1.4.0",
|
|
87
87
|
"@aptos-scp/scp-types-client-registration": "^1.4.0",
|
|
88
88
|
"@aptos-scp/scp-types-commerce-devices": "^6.12.0",
|
|
89
|
-
"@aptos-scp/scp-types-commerce-transaction": "^1.
|
|
89
|
+
"@aptos-scp/scp-types-commerce-transaction": "^1.100.0",
|
|
90
90
|
"@aptos-scp/scp-types-core": "^1.0.5",
|
|
91
91
|
"@aptos-scp/scp-types-core-config": "^2.2.1",
|
|
92
92
|
"@aptos-scp/scp-types-currency-conversion": "^1.2.0",
|