@delopay/sdk 0.79.0 → 0.81.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/dist/{chunk-TV4YASDP.js → chunk-PHKXFVHZ.js} +27 -5
- package/dist/chunk-PHKXFVHZ.js.map +1 -0
- package/dist/index.cjs +26 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -2
- package/dist/index.d.ts +81 -2
- package/dist/index.js +1 -1
- package/dist/internal.cjs +26 -4
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-TV4YASDP.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -594,6 +594,23 @@ var Connectors = class {
|
|
|
594
594
|
if (params === void 0) return this.request("POST", path);
|
|
595
595
|
return this.request("POST", path, { body: params });
|
|
596
596
|
}
|
|
597
|
+
/**
|
|
598
|
+
* Register checkout/shop domains as Stripe payment method domains, so Apple
|
|
599
|
+
* Pay renders on those pages.
|
|
600
|
+
* `POST /account/{merchantId}/connectors/{connectorId}/stripe/payment-method-domains`
|
|
601
|
+
*
|
|
602
|
+
* Stripe connectors only. One call registers against a single credential set
|
|
603
|
+
* (`environment`, default `'live'`) — call twice to cover live and sandbox.
|
|
604
|
+
* Per-URL outcomes come back in `results`; a missing sandbox credential set
|
|
605
|
+
* is a request-level 400.
|
|
606
|
+
*/
|
|
607
|
+
async registerStripePaymentMethodDomains(merchantId, connectorId, params) {
|
|
608
|
+
return this.request(
|
|
609
|
+
"POST",
|
|
610
|
+
`/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/stripe/payment-method-domains`,
|
|
611
|
+
{ body: params }
|
|
612
|
+
);
|
|
613
|
+
}
|
|
597
614
|
/** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
|
|
598
615
|
async getWebhook(merchantId, connectorId) {
|
|
599
616
|
return this.request(
|
|
@@ -4942,7 +4959,8 @@ function defaultNativePane(method) {
|
|
|
4942
4959
|
icon: info?.defaultIcon ?? "",
|
|
4943
4960
|
iconSvg: "",
|
|
4944
4961
|
displayOrder: 0,
|
|
4945
|
-
visibility: "always"
|
|
4962
|
+
visibility: "always",
|
|
4963
|
+
openIn: "tab"
|
|
4946
4964
|
};
|
|
4947
4965
|
}
|
|
4948
4966
|
function cloneNativePane(pane) {
|
|
@@ -4986,7 +5004,9 @@ function decodeNativePanes(raw) {
|
|
|
4986
5004
|
iconSvg: str(entry["icon_svg"]),
|
|
4987
5005
|
displayOrder: clampDisplayOrder(Number(entry["display_order"])),
|
|
4988
5006
|
// Anything unrecognised degrades to `always` rather than dropping the row.
|
|
4989
|
-
visibility: entry["visibility"] === "embedded_only" ? "embedded_only" : "always"
|
|
5007
|
+
visibility: entry["visibility"] === "embedded_only" ? "embedded_only" : "always",
|
|
5008
|
+
// Same tolerance: an unknown value degrades to the default `tab`.
|
|
5009
|
+
openIn: entry["open_in"] === "popup" ? "popup" : "tab"
|
|
4990
5010
|
});
|
|
4991
5011
|
const indexByMethod = /* @__PURE__ */ new Map();
|
|
4992
5012
|
const out = [];
|
|
@@ -5032,7 +5052,8 @@ function encodeNativePanes(panes) {
|
|
|
5032
5052
|
// writing e.g. 3.5 or Date.now() verbatim would silently delete the
|
|
5033
5053
|
// pane at render while every read surface shows it healthy.
|
|
5034
5054
|
display_order: clampDisplayOrder(pane.displayOrder),
|
|
5035
|
-
visibility: pane.visibility
|
|
5055
|
+
visibility: pane.visibility,
|
|
5056
|
+
open_in: pane.openIn
|
|
5036
5057
|
};
|
|
5037
5058
|
});
|
|
5038
5059
|
}
|
|
@@ -5050,7 +5071,8 @@ var CHECKOUT_EVENT_KINDS = [
|
|
|
5050
5071
|
"native_pane_selected",
|
|
5051
5072
|
"native_pane_tab_opened",
|
|
5052
5073
|
"native_pane_tab_blocked",
|
|
5053
|
-
"native_pane_abandoned"
|
|
5074
|
+
"native_pane_abandoned",
|
|
5075
|
+
"native_pane_returned"
|
|
5054
5076
|
];
|
|
5055
5077
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5056
5078
|
0 && (module.exports = {
|