@rebilly/instruments 12.71.0 → 12.71.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.
- package/CHANGELOG.md +3 -3
- package/dist/index.js +3 -2
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [12.71.
|
|
1
|
+
## [12.71.1](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.71.0...instruments/core-v12.71.1) (2025-06-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **instruments:**
|
|
6
|
+
* **instruments:** Use correct discount amount value for invoice payments flow ([#12656](https://github.com/Rebilly/rebilly/issues/12656)) ([d027353](https://github.com/Rebilly/rebilly/commit/d027353c60d229ef287b08a5aed3bcbe9f0a0cac))
|
package/dist/index.js
CHANGED
|
@@ -6328,7 +6328,7 @@ function C$1({ options: e2 }) {
|
|
|
6328
6328
|
}
|
|
6329
6329
|
function o2() {
|
|
6330
6330
|
const i = {
|
|
6331
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6331
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@d027353`
|
|
6332
6332
|
};
|
|
6333
6333
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
6334
6334
|
}
|
|
@@ -17121,12 +17121,13 @@ class DataInstance {
|
|
|
17121
17121
|
);
|
|
17122
17122
|
}
|
|
17123
17123
|
get summaryItems() {
|
|
17124
|
+
var _a, _b;
|
|
17124
17125
|
const {
|
|
17125
|
-
discountsAmount = null,
|
|
17126
17126
|
shippingAmount = null,
|
|
17127
17127
|
subtotalAmount = null,
|
|
17128
17128
|
taxAmount = null
|
|
17129
17129
|
} = this.previewPurchase || this.invoice || {};
|
|
17130
|
+
const discountsAmount = ((_a = this.previewPurchase) == null ? void 0 : _a.discountsAmount) ?? ((_b = this.invoice) == null ? void 0 : _b.discountAmount) ?? null;
|
|
17130
17131
|
return {
|
|
17131
17132
|
discountsAmount,
|
|
17132
17133
|
shippingAmount,
|