@delopay/sdk 0.79.0 → 0.80.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.
@@ -483,6 +483,23 @@ var Connectors = class {
483
483
  if (params === void 0) return this.request("POST", path);
484
484
  return this.request("POST", path, { body: params });
485
485
  }
486
+ /**
487
+ * Register checkout/shop domains as Stripe payment method domains, so Apple
488
+ * Pay renders on those pages.
489
+ * `POST /account/{merchantId}/connectors/{connectorId}/stripe/payment-method-domains`
490
+ *
491
+ * Stripe connectors only. One call registers against a single credential set
492
+ * (`environment`, default `'live'`) — call twice to cover live and sandbox.
493
+ * Per-URL outcomes come back in `results`; a missing sandbox credential set
494
+ * is a request-level 400.
495
+ */
496
+ async registerStripePaymentMethodDomains(merchantId, connectorId, params) {
497
+ return this.request(
498
+ "POST",
499
+ `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/stripe/payment-method-domains`,
500
+ { body: params }
501
+ );
502
+ }
486
503
  /** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
487
504
  async getWebhook(merchantId, connectorId) {
488
505
  return this.request(
@@ -4831,7 +4848,8 @@ function defaultNativePane(method) {
4831
4848
  icon: info?.defaultIcon ?? "",
4832
4849
  iconSvg: "",
4833
4850
  displayOrder: 0,
4834
- visibility: "always"
4851
+ visibility: "always",
4852
+ openIn: "tab"
4835
4853
  };
4836
4854
  }
4837
4855
  function cloneNativePane(pane) {
@@ -4875,7 +4893,9 @@ function decodeNativePanes(raw) {
4875
4893
  iconSvg: str(entry["icon_svg"]),
4876
4894
  displayOrder: clampDisplayOrder(Number(entry["display_order"])),
4877
4895
  // Anything unrecognised degrades to `always` rather than dropping the row.
4878
- visibility: entry["visibility"] === "embedded_only" ? "embedded_only" : "always"
4896
+ visibility: entry["visibility"] === "embedded_only" ? "embedded_only" : "always",
4897
+ // Same tolerance: an unknown value degrades to the default `tab`.
4898
+ openIn: entry["open_in"] === "popup" ? "popup" : "tab"
4879
4899
  });
4880
4900
  const indexByMethod = /* @__PURE__ */ new Map();
4881
4901
  const out = [];
@@ -4921,7 +4941,8 @@ function encodeNativePanes(panes) {
4921
4941
  // writing e.g. 3.5 or Date.now() verbatim would silently delete the
4922
4942
  // pane at render while every read surface shows it healthy.
4923
4943
  display_order: clampDisplayOrder(pane.displayOrder),
4924
- visibility: pane.visibility
4944
+ visibility: pane.visibility,
4945
+ open_in: pane.openIn
4925
4946
  };
4926
4947
  });
4927
4948
  }
@@ -4939,7 +4960,8 @@ var CHECKOUT_EVENT_KINDS = [
4939
4960
  "native_pane_selected",
4940
4961
  "native_pane_tab_opened",
4941
4962
  "native_pane_tab_blocked",
4942
- "native_pane_abandoned"
4963
+ "native_pane_abandoned",
4964
+ "native_pane_returned"
4943
4965
  ];
4944
4966
 
4945
4967
  export {
@@ -5030,4 +5052,4 @@ export {
5030
5052
  focusedCheckoutUrl,
5031
5053
  CHECKOUT_EVENT_KINDS
5032
5054
  };
5033
- //# sourceMappingURL=chunk-TV4YASDP.js.map
5055
+ //# sourceMappingURL=chunk-PHKXFVHZ.js.map