@delopay/sdk 0.217.0 → 0.219.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-TNEV5OYF.js → chunk-VOI3NAJB.js} +93 -1
- package/dist/chunk-VOI3NAJB.js.map +1 -0
- package/dist/index.cjs +93 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +250 -3
- package/dist/index.d.ts +250 -3
- package/dist/index.js +3 -1
- package/dist/internal.cjs +93 -0
- 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 +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-TNEV5OYF.js.map +0 -1
|
@@ -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) {
|
|
@@ -3103,6 +3155,44 @@ var Routing = class {
|
|
|
3103
3155
|
async connectorCaps(profileId) {
|
|
3104
3156
|
return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
|
|
3105
3157
|
}
|
|
3158
|
+
/** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */
|
|
3159
|
+
async connectorCapSchedules(profileId) {
|
|
3160
|
+
return this.request("GET", `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);
|
|
3161
|
+
}
|
|
3162
|
+
/**
|
|
3163
|
+
* Replace a shop's complete schedule using its last-read revision.
|
|
3164
|
+
* Remove an entry to cancel it; ordinary configured caps are unchanged.
|
|
3165
|
+
* Instants require explicit offsets, and overlapping entries for the same
|
|
3166
|
+
* account and unit are refused by the server. Capability preflight refuses
|
|
3167
|
+
* unsupported backends before submitting any schedule.
|
|
3168
|
+
*
|
|
3169
|
+
* `PUT /routing/connector-cap-schedules/{profileId}`
|
|
3170
|
+
*/
|
|
3171
|
+
async setConnectorCapSchedules(profileId, params) {
|
|
3172
|
+
const caps = await this.connectorCaps(profileId);
|
|
3173
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3174
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3175
|
+
}
|
|
3176
|
+
return this.request(
|
|
3177
|
+
"PUT",
|
|
3178
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,
|
|
3179
|
+
{
|
|
3180
|
+
body: params
|
|
3181
|
+
}
|
|
3182
|
+
);
|
|
3183
|
+
}
|
|
3184
|
+
/** Change the drawn value of an active scheduled range; preserves all usage. */
|
|
3185
|
+
async shuffleConnectorCapSchedule(profileId, params) {
|
|
3186
|
+
const caps = await this.connectorCaps(profileId);
|
|
3187
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3188
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3189
|
+
}
|
|
3190
|
+
return this.request(
|
|
3191
|
+
"POST",
|
|
3192
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,
|
|
3193
|
+
{ body: params }
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3106
3196
|
/**
|
|
3107
3197
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
3108
3198
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -7637,6 +7727,7 @@ var Delopay = class {
|
|
|
7637
7727
|
this.mandates = new Mandates(request);
|
|
7638
7728
|
this.disputes = new Disputes(request);
|
|
7639
7729
|
this.paypalDisputes = new PaypalDisputes(request);
|
|
7730
|
+
this.whopResolutionCases = new WhopResolutionCases(request);
|
|
7640
7731
|
this.payouts = new Payouts(request);
|
|
7641
7732
|
this.ephemeralKeys = new EphemeralKeys(request);
|
|
7642
7733
|
this.events = new Events(request);
|
|
@@ -11719,6 +11810,7 @@ export {
|
|
|
11719
11810
|
DelopayAuthenticationError,
|
|
11720
11811
|
runExport,
|
|
11721
11812
|
PaypalDisputes,
|
|
11813
|
+
WhopResolutionCases,
|
|
11722
11814
|
Search,
|
|
11723
11815
|
isSubscriptionLifecycleWebhook,
|
|
11724
11816
|
isSubscriptionDisputeWebhook,
|
|
@@ -11938,4 +12030,4 @@ export {
|
|
|
11938
12030
|
decodeNativePanes,
|
|
11939
12031
|
encodeNativePanes
|
|
11940
12032
|
};
|
|
11941
|
-
//# sourceMappingURL=chunk-
|
|
12033
|
+
//# sourceMappingURL=chunk-VOI3NAJB.js.map
|