@aptos-scp/scp-component-store-selling-features-domain-model 1.41.0 → 1.41.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.
@@ -929,7 +929,9 @@ export declare enum CollectedDataKey {
929
929
  MembershipTypeDescription = "membershipTypeDescription",
930
930
  IsPermanentMembershipDiscount = "isPermanentMembershipDiscount",
931
931
  TerminalForceClosed = "TerminalForceClosed",
932
- TotalLineTax = "totalLineTax"
932
+ TotalLineTax = "totalLineTax",
933
+ EmployeeFlag = "employeeFlag",
934
+ TriggeredByLoyaltyAwards = "triggeredByLoyaltyAwards"
933
935
  }
934
936
  export declare enum ItemLookupType {
935
937
  ProductInquiryDetail = "ProductInquiryDetail",
@@ -939,6 +939,8 @@ var CollectedDataKey;
939
939
  CollectedDataKey["IsPermanentMembershipDiscount"] = "isPermanentMembershipDiscount";
940
940
  CollectedDataKey["TerminalForceClosed"] = "TerminalForceClosed";
941
941
  CollectedDataKey["TotalLineTax"] = "totalLineTax";
942
+ CollectedDataKey["EmployeeFlag"] = "employeeFlag";
943
+ CollectedDataKey["TriggeredByLoyaltyAwards"] = "triggeredByLoyaltyAwards";
942
944
  })(CollectedDataKey = exports.CollectedDataKey || (exports.CollectedDataKey = {}));
943
945
  var ItemLookupType;
944
946
  (function (ItemLookupType) {
@@ -284,6 +284,9 @@ class BaseManualDiscountLine extends BaseTransactionLine_1.BaseTransactionLine {
284
284
  if (collectedData.has(Constants_1.CollectedDataKey.EmployeeId)) {
285
285
  this._isEmployeeDiscount = !!collectedData.get(Constants_1.CollectedDataKey.EmployeeId);
286
286
  }
287
+ else {
288
+ this._isEmployeeDiscount = !!collectedData.get(Constants_1.CollectedDataKey.EmployeeFlag);
289
+ }
287
290
  }
288
291
  loadAutoAppliedFromCollectedData(collectedData) {
289
292
  if (collectedData.has(Constants_1.CollectedDataKey.AutoApplied)) {
@@ -313,10 +316,12 @@ class BaseManualDiscountLine extends BaseTransactionLine_1.BaseTransactionLine {
313
316
  }
314
317
  loadLoyaltyDiscountFromCollectedData(collectedData) {
315
318
  if (collectedData.has(Constants_1.CollectedDataKey.LoyaltyPlanKey) ||
316
- collectedData.has(Constants_1.CollectedDataKey.MembershipTypeKey)) {
319
+ collectedData.has(Constants_1.CollectedDataKey.MembershipTypeKey) ||
320
+ collectedData.has(Constants_1.CollectedDataKey.TriggeredByLoyaltyAwards)) {
317
321
  this._isLoyaltyDiscount =
318
322
  !!collectedData.get(Constants_1.CollectedDataKey.LoyaltyPlanKey) ||
319
- !!collectedData.get(Constants_1.CollectedDataKey.MembershipTypeKey);
323
+ !!collectedData.get(Constants_1.CollectedDataKey.MembershipTypeKey) ||
324
+ !!collectedData.get(Constants_1.CollectedDataKey.TriggeredByLoyaltyAwards);
320
325
  }
321
326
  }
322
327
  loadAmountFromJsonObject(transactionLineJsonObj) {
@@ -283,6 +283,7 @@ export interface IOriginalLoyaltyInformation {
283
283
  readonly originalDiscountlineNumber?: number;
284
284
  readonly discountProratedByService?: boolean;
285
285
  readonly itemLineReferences?: IProratedItemLineReference[];
286
+ readonly triggeredByLoyaltyAwards?: boolean;
286
287
  }
287
288
  export interface IOriginalCompetitivePriceInformation {
288
289
  readonly pricingRuleId?: string;
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.41.0",
3
+ "version": "1.41.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",
@@ -54,7 +54,7 @@
54
54
  "peerDependencies": {
55
55
  "@aptos-scp/scp-component-business-core": "^1.12.7",
56
56
  "@aptos-scp/scp-component-logging": "^2.1.16",
57
- "@aptos-scp/scp-component-pricing": "^7.57.0",
57
+ "@aptos-scp/scp-component-pricing": "^7.61.0",
58
58
  "@aptos-scp/scp-component-store-items": "^1.19.0",
59
59
  "@aptos-scp/scp-component-store-selling-core": "^18.9.3",
60
60
  "@aptos-scp/scp-component-taxation": "^5.27.3",
@@ -62,7 +62,7 @@
62
62
  "@aptos-scp/scp-types-client-registration": "^1.4.0",
63
63
  "@aptos-scp/scp-types-core-config": "^2.2.1",
64
64
  "@aptos-scp/scp-types-commerce-devices": "^3.9.0",
65
- "@aptos-scp/scp-types-commerce-transaction": "^1.67.0",
65
+ "@aptos-scp/scp-types-commerce-transaction": "^1.69.1",
66
66
  "@aptos-scp/scp-types-customer": "^3.7.0",
67
67
  "@aptos-scp/scp-types-einvoice": "^1.17.0",
68
68
  "@aptos-scp/scp-types-inventory": "^2.0.0",
@@ -76,7 +76,7 @@
76
76
  "@aptos-scp/scp-component-business-core": "^1.12.7",
77
77
  "@aptos-scp/scp-component-commit-configs": "^4.1.3",
78
78
  "@aptos-scp/scp-component-logging": "^2.1.16",
79
- "@aptos-scp/scp-component-pricing": "^7.57.0",
79
+ "@aptos-scp/scp-component-pricing": "^7.61.0",
80
80
  "@aptos-scp/scp-component-rn-circuit-breaker": "^1.0.15",
81
81
  "@aptos-scp/scp-component-store-items": "^1.19.0",
82
82
  "@aptos-scp/scp-component-store-selling-core": "^18.9.3",
@@ -84,7 +84,7 @@
84
84
  "@aptos-scp/scp-component-user": "^1.4.0",
85
85
  "@aptos-scp/scp-types-client-registration": "^1.4.0",
86
86
  "@aptos-scp/scp-types-commerce-devices": "^3.9.0",
87
- "@aptos-scp/scp-types-commerce-transaction": "^1.67.0",
87
+ "@aptos-scp/scp-types-commerce-transaction": "^1.69.1",
88
88
  "@aptos-scp/scp-types-core": "^1.0.5",
89
89
  "@aptos-scp/scp-types-core-config": "^2.2.1",
90
90
  "@aptos-scp/scp-types-currency-conversion": "^1.2.0",
@@ -94,7 +94,7 @@
94
94
  "@aptos-scp/scp-types-inventory": "^2.0.0",
95
95
  "@aptos-scp/scp-types-loyalty-memberships": "^2.3.0",
96
96
  "@aptos-scp/scp-types-orders": "^4.11.0",
97
- "@aptos-scp/scp-types-pricing": "^4.25.0",
97
+ "@aptos-scp/scp-types-pricing": "^4.26.0",
98
98
  "@aptos-scp/scp-types-ss-transaction-history": "^1.6.0",
99
99
  "@aptos-scp/scp-types-store-items": "^1.23.0",
100
100
  "@aptos-scp/scp-types-terminal-settings": "^1.3.0",