@aptos-scp/scp-component-store-selling-features-domain-model 1.15.0 → 1.15.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.
@@ -181,6 +181,12 @@ function combineUnreferenceOriginalTenders(originalTenders, tenderLine, addition
181
181
  });
182
182
  if (originalTenderAmount && matchingTender.originalTenderAmount) {
183
183
  matchingTender.originalTenderAmount = matchingTender.originalTenderAmount.plus(originalTenderAmount);
184
+ // Add the original tender amount to the refundable amount for transaction
185
+ if (!_.isEmpty(matchingTender.originalTransactionReferences)) {
186
+ const transactionReference = matchingTender.originalTransactionReferences[0];
187
+ transactionReference.refundableAmount =
188
+ transactionReference.refundableAmount.plus(originalTenderAmount);
189
+ }
184
190
  }
185
191
  if (matchingTender.previouslyRefundedAmount && previouslyRefundedAmount) {
186
192
  matchingTender.previouslyRefundedAmount =
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.15.0",
3
+ "version": "1.15.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",
@@ -52,12 +52,12 @@
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "peerDependencies": {
55
- "@aptos-scp/scp-component-business-core": "^1.12.2",
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.54.1",
57
+ "@aptos-scp/scp-component-pricing": "^7.54.5",
58
58
  "@aptos-scp/scp-component-store-items": "^1.19.0",
59
- "@aptos-scp/scp-component-store-selling-core": "^18.8.2",
60
- "@aptos-scp/scp-component-taxation": "^5.27.2",
59
+ "@aptos-scp/scp-component-store-selling-core": "^18.9.3",
60
+ "@aptos-scp/scp-component-taxation": "^5.27.3",
61
61
  "@aptos-scp/scp-component-user": "^1.4.0",
62
62
  "@aptos-scp/scp-types-client-registration": "^1.4.0",
63
63
  "@aptos-scp/scp-types-core-config": "^2.2.1",
@@ -73,14 +73,14 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@aptos-scp/eslint-config-scp": "^1.1.15",
76
- "@aptos-scp/scp-component-business-core": "^1.12.2",
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.54.1",
79
+ "@aptos-scp/scp-component-pricing": "^7.54.5",
80
80
  "@aptos-scp/scp-component-rn-circuit-breaker": "^1.0.15",
81
81
  "@aptos-scp/scp-component-store-items": "^1.19.0",
82
- "@aptos-scp/scp-component-store-selling-core": "^18.8.2",
83
- "@aptos-scp/scp-component-taxation": "^5.25.0",
82
+ "@aptos-scp/scp-component-store-selling-core": "^18.9.3",
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
86
  "@aptos-scp/scp-types-commerce-devices": "^3.3.0",