@aptos-scp/scp-component-store-selling-features-domain-model 1.53.3-patch.1 → 1.53.3

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.
@@ -614,7 +614,6 @@ export declare enum CollectedDataKey {
614
614
  ExtendedAmountFromExternalItem = "extendedAmountFromExternalItem",
615
615
  ExtendedAmountIncludingTaxFromExternalItem = "extendedAmountIncludingTaxFromExternalItem",
616
616
  ExtendedAmountExcludingTaxFromExternalItem = "extendedAmountExcludingTaxFromExternalItem",
617
- OriginalAdjustments = "originalAdjustments",
618
617
  OriginalTenderLineReferences = "originalTenderLineReferences",
619
618
  OriginalTenderReferences = "originalTenderReferences",
620
619
  OriginalTransactionReference = "originalTransactionReference",
@@ -623,7 +623,6 @@ var CollectedDataKey;
623
623
  CollectedDataKey["ExtendedAmountFromExternalItem"] = "extendedAmountFromExternalItem";
624
624
  CollectedDataKey["ExtendedAmountIncludingTaxFromExternalItem"] = "extendedAmountIncludingTaxFromExternalItem";
625
625
  CollectedDataKey["ExtendedAmountExcludingTaxFromExternalItem"] = "extendedAmountExcludingTaxFromExternalItem";
626
- CollectedDataKey["OriginalAdjustments"] = "originalAdjustments";
627
626
  CollectedDataKey["OriginalTenderLineReferences"] = "originalTenderLineReferences";
628
627
  CollectedDataKey["OriginalTenderReferences"] = "originalTenderReferences";
629
628
  CollectedDataKey["OriginalTransactionReference"] = "originalTransactionReference";
@@ -1,6 +1,6 @@
1
1
  import { IPricingMetadataPersistanceObject, ISerializedLinePricingAdjustment, ISerializedSubline, ISerializedSublinePricingAdjustment, ISublinePricingAdjustment, RewardIssue } from "@aptos-scp/scp-component-pricing";
2
2
  import { ISerializedNonFinancialReward } from "@aptos-scp/scp-component-pricing/lib/interfaces/ILineNonFinancialReward";
3
- import { ICompetitivePriceInformation, ILoyaltyInformation, ISupervisorOverrideInformation, PricingAdjustmentScope, SourceIndicator } from "@aptos-scp/scp-types-commerce-transaction";
3
+ import { ICompetitivePriceInformation, ILoyaltyInformation, ISupervisorOverrideInformation, SourceIndicator } from "@aptos-scp/scp-types-commerce-transaction";
4
4
  import { PotentialPromotion } from "@aptos-scp/scp-types-pricing";
5
5
  export interface ISerializedPriceCalculationResultsWithSource {
6
6
  readonly lineAdjustments: ISerializedLinePricingAdjustmentWithSource[];
@@ -34,7 +34,6 @@ export interface ISerializedSublinePricingAdjustmentWithSource extends ISerializ
34
34
  isEmployeeDiscount?: boolean;
35
35
  }
36
36
  export interface ISublinePricingAdjustmentWithSource extends ISublinePricingAdjustment {
37
- adjustmentScope?: PricingAdjustmentScope;
38
37
  sourceIndicator?: SourceIndicator;
39
38
  reasonCode?: string;
40
39
  reasonListType?: string;
@@ -109,7 +109,6 @@ export declare class ItemLine extends BaseTransactionLine implements IItemLine,
109
109
  private _originalRedemptionLoyaltyTransactionKeys?;
110
110
  private _originalSaleLoyaltyTransactionKeys?;
111
111
  private _originalDiscountReason?;
112
- private _originalAdjustments?;
113
112
  private _taxIndicatorOnReceipt?;
114
113
  /**
115
114
  * The create method is called by the transaction line factory to create an instance and initialize it from the
@@ -54,7 +54,6 @@ class ItemLine extends BaseTransactionLine_1.BaseTransactionLine {
54
54
  const lineNumberFromOrder = collectedData.get(Constants_1.CollectedDataKey.LineNumberFromOrder);
55
55
  const lineSavings = collectedData.get(Constants_1.CollectedDataKey.LineSavings);
56
56
  const sendSaleLine = collectedData.get(Constants_1.CollectedDataKey.SendSaleItem);
57
- const originalAdjustments = collectedData.get(Constants_1.CollectedDataKey.OriginalAdjustments);
58
57
  accountingCurrency = (storeItem.price && storeItem.price.amount.currency) || accountingCurrency;
59
58
  let itemLine = new ItemLine(lineNumber, lineType, (storeItem.price && storeItem.price.amount.currency) || accountingCurrency, lineSavings);
60
59
  if (additionalItemInfo) {
@@ -234,11 +233,6 @@ class ItemLine extends BaseTransactionLine_1.BaseTransactionLine {
234
233
  itemLine._preTaxOverrideDetails = originalTaxOverride.preTaxOverrideDetails;
235
234
  }
236
235
  }
237
- if (((lineType === exports.ITEM_SALE_LINE_TYPE && uiBusinessEvent.type === UIBusinessEventTypes_1.ORDER_ITEM_PICKUP_EVENT) ||
238
- (lineType === exports.ITEM_CANCEL_LINE_TYPE && uiBusinessEvent.type === UIBusinessEventTypes_1.ORDER_ITEM_CANCELLATION_EVENT)) &&
239
- originalAdjustments) {
240
- itemLine._originalAdjustments = originalAdjustments;
241
- }
242
236
  const originalRedemptionLoyaltyTransactionKeys = collectedData.get(Constants_1.CollectedDataKey.OriginalRedemptionLoyaltyTransactionKeys);
243
237
  if (((_f = originalRedemptionLoyaltyTransactionKeys) === null || _f === void 0 ? void 0 : _f.length) > 0) {
244
238
  itemLine._originalRedemptionLoyaltyTransactionKeys = originalRedemptionLoyaltyTransactionKeys;
@@ -617,7 +611,7 @@ class ItemLine extends BaseTransactionLine_1.BaseTransactionLine {
617
611
  return this._originalTaxOverride;
618
612
  }
619
613
  get originalAdjustments() {
620
- return this._originalAdjustments;
614
+ return undefined;
621
615
  }
622
616
  get eligibleForSubscription() {
623
617
  return this._eligibleForSubscription;
@@ -942,7 +936,6 @@ class ItemLine extends BaseTransactionLine_1.BaseTransactionLine {
942
936
  newItemLine._extendedRegularAmount = this._extendedRegularAmount;
943
937
  newItemLine._originalRedemptionLoyaltyTransactionKeys = this._originalRedemptionLoyaltyTransactionKeys;
944
938
  newItemLine._originalSaleLoyaltyTransactionKeys = this._originalSaleLoyaltyTransactionKeys;
945
- newItemLine._originalAdjustments = this._originalAdjustments;
946
939
  return newItemLine;
947
940
  }
948
941
  // eslint-disable-next-line complexity
@@ -1085,7 +1078,6 @@ class ItemLine extends BaseTransactionLine_1.BaseTransactionLine {
1085
1078
  transactionLineJsonObj._originalRedemptionLoyaltyTransactionKeys;
1086
1079
  this._originalSaleLoyaltyTransactionKeys = transactionLineJsonObj._originalSaleLoyaltyTransactionKeys;
1087
1080
  this._originalDiscountReason = transactionLineJsonObj.originalDiscountReason;
1088
- this._originalAdjustments = transactionLineJsonObj._originalAdjustments;
1089
1081
  }
1090
1082
  newTransactionLine() {
1091
1083
  return new ItemLine(this.lineNumber, this.lineType, this._accountingCurrency);
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const scp_component_business_core_1 = require("@aptos-scp/scp-component-business-core");
4
4
  const StoreItem_1 = require("../StoreItem");
5
5
  const BaseItemLineDecorator_1 = require("./BaseItemLineDecorator");
6
- const ItemLine_1 = require("./ItemLine");
7
6
  const ItemLineBaseDiscountDecorator_1 = require("./ItemLineBaseDiscountDecorator");
8
7
  exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_ITEM_DISCOUNT = "ITEM_LINE_MANUAL_ITEM_DISCOUNT_DECORATOR";
9
8
  exports.DECORATOR_TYPE_ITEM_LINE_EMPLOYEE_ITEM_DISCOUNT = "ITEM_LINE_EMPLOYEE_ITEM_DISCOUNT_DECORATOR";
@@ -168,9 +167,7 @@ class ItemLineManualDiscountDecorator extends ItemLineBaseDiscountDecorator_1.It
168
167
  : this.unitPrice;
169
168
  }
170
169
  get extendedAmountExcludingTransactionDiscounts() {
171
- return this.lineDecoratorType === exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_TRANSACTION_DISCOUNT &&
172
- !ItemLine_1.isFulfillmentLine(this.decoratedTransactionLine) &&
173
- !ItemLine_1.isCancelLine(this.decoratedTransactionLine)
170
+ return this.lineDecoratorType === exports.DECORATOR_TYPE_ITEM_LINE_MANUAL_TRANSACTION_DISCOUNT
174
171
  ? this.decoratedTransactionLine.extendedAmountExcludingTransactionDiscounts
175
172
  : this.decoratedTransactionLine.extendedAmountExcludingTransactionDiscounts.minus(this.adjustmentAmount);
176
173
  }
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.53.3-patch.1",
3
+ "version": "1.53.3",
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",