backend-manager 5.0.141 → 5.0.142
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
CHANGED
|
@@ -14,6 +14,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
# [5.0.140] - 2026-03-12
|
|
18
|
+
### Fixed
|
|
19
|
+
- Chargebee meta_data backfill not including `orderId`, causing `getOrderId()` to fail on future webhooks
|
|
20
|
+
- `orderId` resolution now falls back to `pass_thru_content` orderId when `getOrderId()` returns null
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- `setMetaData()` API simplified to accept `(resource, meta)` instead of individual params, writing the full meta object to both subscription and customer
|
|
24
|
+
|
|
17
25
|
# [5.0.139] - 2026-03-12
|
|
18
26
|
### Fixed
|
|
19
27
|
- Chargebee hosted page checkout failing to resolve UID from webhooks because `subscription[meta_data]` is not supported by Chargebee's hosted page API
|
package/package.json
CHANGED
|
@@ -74,6 +74,7 @@ module.exports = async ({ Manager, assistant, context, libraries }) => {
|
|
|
74
74
|
categories: ['order/abandoned-cart', `order/abandoned-cart/reminder-${reminderIndex + 1}`],
|
|
75
75
|
userDoc,
|
|
76
76
|
assistant,
|
|
77
|
+
copy: false,
|
|
77
78
|
data: {
|
|
78
79
|
abandonedCart: {
|
|
79
80
|
productId: data.productId,
|
|
@@ -15,7 +15,7 @@ const moment = require('moment');
|
|
|
15
15
|
* @param {object} options.userDoc - User document data (already fetched by on-write.js)
|
|
16
16
|
* @param {object} options.assistant - Assistant instance
|
|
17
17
|
*/
|
|
18
|
-
function sendOrderEmail({ template, subject, categories, data, userDoc, assistant }) {
|
|
18
|
+
function sendOrderEmail({ template, subject, categories, data, userDoc, assistant, copy }) {
|
|
19
19
|
const email = assistant.Manager.Email(assistant);
|
|
20
20
|
|
|
21
21
|
const userEmail = userDoc?.auth?.email;
|
|
@@ -41,7 +41,7 @@ function sendOrderEmail({ template, subject, categories, data, userDoc, assistan
|
|
|
41
41
|
subject,
|
|
42
42
|
template,
|
|
43
43
|
categories,
|
|
44
|
-
copy:
|
|
44
|
+
copy: copy !== false,
|
|
45
45
|
user: safeUser,
|
|
46
46
|
data,
|
|
47
47
|
};
|