@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.
@@ -750,6 +750,23 @@ var Connectors = class {
750
750
  { body: params }
751
751
  );
752
752
  }
753
+ /**
754
+ * Register and verify checkout/shop domains as Whop Apple Pay payment method
755
+ * domains, so Apple Pay renders in Whop's embedded card form on those pages.
756
+ * `POST /account/{merchantId}/connectors/{connectorId}/whop/apple-pay-domains`
757
+ *
758
+ * Whop connectors only. One call registers against a single credential set
759
+ * (`environment`, default `'live'`) — call twice to cover live and sandbox.
760
+ * Idempotent: a host Whop already holds as verified comes back
761
+ * `already_verified` without a write, and a `pending` one is verified again.
762
+ */
763
+ async registerWhopApplePayDomains(merchantId, connectorId, params) {
764
+ return this.request(
765
+ "POST",
766
+ `/account/${encodeURIComponent(merchantId)}/connectors/${encodeURIComponent(connectorId)}/whop/apple-pay-domains`,
767
+ { body: params }
768
+ );
769
+ }
753
770
  /** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
754
771
  async getWebhook(merchantId, connectorId) {
755
772
  return this.request(
@@ -1513,6 +1530,41 @@ var PaypalDisputes = class {
1513
1530
  }
1514
1531
  };
1515
1532
 
1533
+ // src/resources/whopResolutionCases.ts
1534
+ var WhopResolutionCases = class {
1535
+ constructor(request) {
1536
+ this.request = request;
1537
+ }
1538
+ /** GET /disputes/whop/cases — newest first, one Whop page at a time. */
1539
+ list(params) {
1540
+ return this.request("GET", "/disputes/whop/cases", {
1541
+ query: { ...params }
1542
+ });
1543
+ }
1544
+ /** GET /disputes/whop/cases/{case_id} — the case as Whop reports it now. */
1545
+ retrieve(caseId, locator) {
1546
+ return this.request("GET", `/disputes/whop/cases/${encodeURIComponent(caseId)}`, {
1547
+ query: { ...locator }
1548
+ });
1549
+ }
1550
+ /** GET /disputes/whop/cases/{case_id}/events — the case timeline, newest first. */
1551
+ events(caseId, params) {
1552
+ return this.request("GET", `/disputes/whop/cases/${encodeURIComponent(caseId)}/events`, {
1553
+ query: { ...params }
1554
+ });
1555
+ }
1556
+ /**
1557
+ * POST /disputes/whop/cases/{case_id}/actions — accept, deny, reply or
1558
+ * request info. `accept` refunds the payment in full at Whop. An `unknown`
1559
+ * outcome is retried with the same `request_id`.
1560
+ */
1561
+ act(caseId, params) {
1562
+ return this.request("POST", `/disputes/whop/cases/${encodeURIComponent(caseId)}/actions`, {
1563
+ body: params
1564
+ });
1565
+ }
1566
+ };
1567
+
1516
1568
  // src/resources/ephemeralKeys.ts
1517
1569
  var EphemeralKeys = class {
1518
1570
  constructor(request) {
@@ -7675,6 +7727,7 @@ var Delopay = class {
7675
7727
  this.mandates = new Mandates(request);
7676
7728
  this.disputes = new Disputes(request);
7677
7729
  this.paypalDisputes = new PaypalDisputes(request);
7730
+ this.whopResolutionCases = new WhopResolutionCases(request);
7678
7731
  this.payouts = new Payouts(request);
7679
7732
  this.ephemeralKeys = new EphemeralKeys(request);
7680
7733
  this.events = new Events(request);
@@ -11757,6 +11810,7 @@ export {
11757
11810
  DelopayAuthenticationError,
11758
11811
  runExport,
11759
11812
  PaypalDisputes,
11813
+ WhopResolutionCases,
11760
11814
  Search,
11761
11815
  isSubscriptionLifecycleWebhook,
11762
11816
  isSubscriptionDisputeWebhook,
@@ -11976,4 +12030,4 @@ export {
11976
12030
  decodeNativePanes,
11977
12031
  encodeNativePanes
11978
12032
  };
11979
- //# sourceMappingURL=chunk-N2QCUNWM.js.map
12033
+ //# sourceMappingURL=chunk-VOI3NAJB.js.map