@rebilly/instruments 12.90.0 → 12.92.0
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 +2 -2
- package/dist/index.js +9 -8
- package/dist/index.min.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [12.
|
|
1
|
+
## [12.92.0](https://github.com/Rebilly/rebilly/compare/instruments/core-v12.91.0...instruments/core-v12.92.0) (2025-07-14)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **instruments:** allow custom fields key in purchase endpoint ([#13481](https://github.com/Rebilly/rebilly/issues/13481)) ([caf2c1f](https://github.com/Rebilly/rebilly/commit/caf2c1fb797bf8e8fa9f1730a425f4cd9e8dd276))
|
package/dist/index.js
CHANGED
|
@@ -6463,7 +6463,7 @@ function C$1({ options: e2 }) {
|
|
|
6463
6463
|
}
|
|
6464
6464
|
function o2() {
|
|
6465
6465
|
const i = {
|
|
6466
|
-
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@
|
|
6466
|
+
"REB-API-CONSUMER": `${["Rebilly", e2.appName, "js-sdk"].filter((g) => g).join("/")}@caf2c1f`
|
|
6467
6467
|
};
|
|
6468
6468
|
return e2.apiKey && (i["REB-APIKEY"] = e2.apiKey), i;
|
|
6469
6469
|
}
|
|
@@ -23602,14 +23602,15 @@ async function postPurchase({ data }) {
|
|
|
23602
23602
|
"couponIds",
|
|
23603
23603
|
"password",
|
|
23604
23604
|
"redirectUrl",
|
|
23605
|
-
"poNumber"
|
|
23605
|
+
"poNumber",
|
|
23606
|
+
"customFields"
|
|
23606
23607
|
];
|
|
23607
|
-
Object.
|
|
23608
|
-
|
|
23609
|
-
|
|
23610
|
-
|
|
23611
|
-
|
|
23612
|
-
return state.storefront.purchase.purchase({ data });
|
|
23608
|
+
const filteredData = Object.fromEntries(
|
|
23609
|
+
Object.entries(data).filter(
|
|
23610
|
+
([key]) => purchaseSchemaKeys.includes(key)
|
|
23611
|
+
)
|
|
23612
|
+
);
|
|
23613
|
+
return state.storefront.purchase.purchase({ data: filteredData });
|
|
23613
23614
|
});
|
|
23614
23615
|
}
|
|
23615
23616
|
async function postPayment({ data }) {
|