@delopay/sdk 0.130.0 → 0.131.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-HMYRBVUT.js → chunk-I2YGFOLA.js} +36 -4
- package/dist/chunk-I2YGFOLA.js.map +1 -0
- package/dist/index.cjs +35 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +120 -4
- package/dist/index.d.ts +120 -4
- package/dist/index.js +1 -1
- package/dist/internal.cjs +35 -3
- 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-HMYRBVUT.js.map +0 -1
|
@@ -700,6 +700,23 @@ var Connectors = class {
|
|
|
700
700
|
{ body: params }
|
|
701
701
|
);
|
|
702
702
|
}
|
|
703
|
+
/**
|
|
704
|
+
* Register checkout/shop domains as Airwallex Apple Pay domains, so Apple Pay
|
|
705
|
+
* renders on those pages.
|
|
706
|
+
* `POST /account/{merchantId}/connectors/{connectorId}/airwallex/apple-pay-domains`
|
|
707
|
+
*
|
|
708
|
+
* Airwallex connectors only. One call registers against a single credential
|
|
709
|
+
* set (`environment`, default `'live'`) — call twice to cover live and
|
|
710
|
+
* sandbox. Idempotent: a host already on the account comes back
|
|
711
|
+
* `already_registered` without a write.
|
|
712
|
+
*/
|
|
713
|
+
async registerAirwallexApplePayDomains(merchantId, connectorId, params) {
|
|
714
|
+
return this.request(
|
|
715
|
+
"POST",
|
|
716
|
+
`/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/airwallex/apple-pay-domains`,
|
|
717
|
+
{ body: params }
|
|
718
|
+
);
|
|
719
|
+
}
|
|
703
720
|
/** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
|
|
704
721
|
async getWebhook(merchantId, connectorId) {
|
|
705
722
|
return this.request(
|
|
@@ -7116,6 +7133,14 @@ var PANE_VISIBILITIES = ["always", "embedded_only", "external_only"];
|
|
|
7116
7133
|
function parseVisibility(raw) {
|
|
7117
7134
|
return PANE_VISIBILITIES.find((value) => value === raw) ?? "always";
|
|
7118
7135
|
}
|
|
7136
|
+
var PANE_NATIVE_ELEMENTS = [
|
|
7137
|
+
"everywhere",
|
|
7138
|
+
"embedded_only",
|
|
7139
|
+
"external_only"
|
|
7140
|
+
];
|
|
7141
|
+
function parseNativeElement(raw) {
|
|
7142
|
+
return PANE_NATIVE_ELEMENTS.find((value) => value === raw) ?? "everywhere";
|
|
7143
|
+
}
|
|
7119
7144
|
function paneViewVisibility(view) {
|
|
7120
7145
|
const declared = PANE_VISIBILITIES.find((value) => value === view.visibility);
|
|
7121
7146
|
if (declared) return declared;
|
|
@@ -7347,7 +7372,8 @@ function defaultPane(method, catalog = STRIPE_FALLBACK_PANE_CATALOG) {
|
|
|
7347
7372
|
iconSvg: "",
|
|
7348
7373
|
displayOrder: 0,
|
|
7349
7374
|
visibility: "always",
|
|
7350
|
-
openIn: "tab"
|
|
7375
|
+
openIn: "tab",
|
|
7376
|
+
nativeElement: "everywhere"
|
|
7351
7377
|
};
|
|
7352
7378
|
}
|
|
7353
7379
|
function clonePane(pane) {
|
|
@@ -7393,7 +7419,8 @@ function decodePanes(raw) {
|
|
|
7393
7419
|
// Anything unrecognised degrades to `always` rather than dropping the row.
|
|
7394
7420
|
visibility: parseVisibility(entry["visibility"]),
|
|
7395
7421
|
// Same tolerance: an unknown value degrades to the default `tab`.
|
|
7396
|
-
openIn: entry["open_in"] === "popup" ? "popup" : "tab"
|
|
7422
|
+
openIn: entry["open_in"] === "popup" ? "popup" : "tab",
|
|
7423
|
+
nativeElement: parseNativeElement(entry["native_element"])
|
|
7397
7424
|
});
|
|
7398
7425
|
const indexByMethod = /* @__PURE__ */ new Map();
|
|
7399
7426
|
const out = [];
|
|
@@ -7445,7 +7472,12 @@ function encodePanes(panes) {
|
|
|
7445
7472
|
// never went through `decodePanes`. A decoded pane always holds a valid
|
|
7446
7473
|
// value, so this is a no-op on the round-trip path.
|
|
7447
7474
|
visibility: parseVisibility(pane.visibility),
|
|
7448
|
-
open_in: pane.openIn === "popup" ? "popup" : "tab"
|
|
7475
|
+
open_in: pane.openIn === "popup" ? "popup" : "tab",
|
|
7476
|
+
// Omitted at the default: `everywhere` is what the router decodes an
|
|
7477
|
+
// absent key to, so leaving it out changes nothing — and keeps a blob
|
|
7478
|
+
// stored before the field existed byte-identical on re-encode, which
|
|
7479
|
+
// is what the wire-compatibility test pins.
|
|
7480
|
+
...parseNativeElement(pane.nativeElement) === "everywhere" ? {} : { native_element: parseNativeElement(pane.nativeElement) }
|
|
7449
7481
|
};
|
|
7450
7482
|
});
|
|
7451
7483
|
}
|
|
@@ -7641,4 +7673,4 @@ export {
|
|
|
7641
7673
|
decodeNativePanes,
|
|
7642
7674
|
encodeNativePanes
|
|
7643
7675
|
};
|
|
7644
|
-
//# sourceMappingURL=chunk-
|
|
7676
|
+
//# sourceMappingURL=chunk-I2YGFOLA.js.map
|