@delopay/sdk 0.218.0 → 0.220.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/index.cjs CHANGED
@@ -134,6 +134,7 @@ __export(index_exports, {
134
134
  WCAG_AA_TEXT: () => WCAG_AA_TEXT,
135
135
  WCAG_AA_UI: () => WCAG_AA_UI,
136
136
  Webhooks: () => Webhooks,
137
+ WhopResolutionCases: () => WhopResolutionCases,
137
138
  airwallexCardLayout: () => airwallexCardLayout,
138
139
  airwallexCardLayoutIsCoherent: () => airwallexCardLayoutIsCoherent,
139
140
  airwallexCellWeight: () => airwallexCellWeight,
@@ -996,6 +997,23 @@ var Connectors = class {
996
997
  { body: params }
997
998
  );
998
999
  }
1000
+ /**
1001
+ * Register and verify checkout/shop domains as Whop Apple Pay payment method
1002
+ * domains, so Apple Pay renders in Whop's embedded card form on those pages.
1003
+ * `POST /account/{merchantId}/connectors/{connectorId}/whop/apple-pay-domains`
1004
+ *
1005
+ * Whop connectors only. One call registers against a single credential set
1006
+ * (`environment`, default `'live'`) — call twice to cover live and sandbox.
1007
+ * Idempotent: a host Whop already holds as verified comes back
1008
+ * `already_verified` without a write, and a `pending` one is verified again.
1009
+ */
1010
+ async registerWhopApplePayDomains(merchantId, connectorId, params) {
1011
+ return this.request(
1012
+ "POST",
1013
+ `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/whop/apple-pay-domains`,
1014
+ { body: params }
1015
+ );
1016
+ }
999
1017
  /** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
1000
1018
  async getWebhook(merchantId, connectorId) {
1001
1019
  return this.request(
@@ -1759,6 +1777,41 @@ var PaypalDisputes = class {
1759
1777
  }
1760
1778
  };
1761
1779
 
1780
+ // src/resources/whopResolutionCases.ts
1781
+ var WhopResolutionCases = class {
1782
+ constructor(request) {
1783
+ this.request = request;
1784
+ }
1785
+ /** GET /disputes/whop/cases — newest first, one Whop page at a time. */
1786
+ list(params) {
1787
+ return this.request("GET", "/disputes/whop/cases", {
1788
+ query: { ...params }
1789
+ });
1790
+ }
1791
+ /** GET /disputes/whop/cases/{case_id} — the case as Whop reports it now. */
1792
+ retrieve(caseId, locator) {
1793
+ return this.request("GET", `/disputes/whop/cases/${encodeURIComponent(caseId)}`, {
1794
+ query: { ...locator }
1795
+ });
1796
+ }
1797
+ /** GET /disputes/whop/cases/{case_id}/events — the case timeline, newest first. */
1798
+ events(caseId, params) {
1799
+ return this.request("GET", `/disputes/whop/cases/${encodeURIComponent(caseId)}/events`, {
1800
+ query: { ...params }
1801
+ });
1802
+ }
1803
+ /**
1804
+ * POST /disputes/whop/cases/{case_id}/actions — accept, deny, reply or
1805
+ * request info. `accept` refunds the payment in full at Whop. An `unknown`
1806
+ * outcome is retried with the same `request_id`.
1807
+ */
1808
+ act(caseId, params) {
1809
+ return this.request("POST", `/disputes/whop/cases/${encodeURIComponent(caseId)}/actions`, {
1810
+ body: params
1811
+ });
1812
+ }
1813
+ };
1814
+
1762
1815
  // src/resources/ephemeralKeys.ts
1763
1816
  var EphemeralKeys = class {
1764
1817
  constructor(request) {
@@ -7921,6 +7974,7 @@ var Delopay = class {
7921
7974
  this.mandates = new Mandates(request);
7922
7975
  this.disputes = new Disputes(request);
7923
7976
  this.paypalDisputes = new PaypalDisputes(request);
7977
+ this.whopResolutionCases = new WhopResolutionCases(request);
7924
7978
  this.payouts = new Payouts(request);
7925
7979
  this.ephemeralKeys = new EphemeralKeys(request);
7926
7980
  this.events = new Events(request);
@@ -12113,6 +12167,7 @@ var encodeNativePanes = encodePanes;
12113
12167
  WCAG_AA_TEXT,
12114
12168
  WCAG_AA_UI,
12115
12169
  Webhooks,
12170
+ WhopResolutionCases,
12116
12171
  airwallexCardLayout,
12117
12172
  airwallexCardLayoutIsCoherent,
12118
12173
  airwallexCellWeight,