@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
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) {
|
|
@@ -3349,6 +3402,44 @@ var Routing = class {
|
|
|
3349
3402
|
async connectorCaps(profileId) {
|
|
3350
3403
|
return this.request("GET", `/routing/connector-caps/${encodeURIComponent(profileId)}`);
|
|
3351
3404
|
}
|
|
3405
|
+
/** Read a shop's dated limit overrides. `GET /routing/connector-cap-schedules/{profileId}` */
|
|
3406
|
+
async connectorCapSchedules(profileId) {
|
|
3407
|
+
return this.request("GET", `/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`);
|
|
3408
|
+
}
|
|
3409
|
+
/**
|
|
3410
|
+
* Replace a shop's complete schedule using its last-read revision.
|
|
3411
|
+
* Remove an entry to cancel it; ordinary configured caps are unchanged.
|
|
3412
|
+
* Instants require explicit offsets, and overlapping entries for the same
|
|
3413
|
+
* account and unit are refused by the server. Capability preflight refuses
|
|
3414
|
+
* unsupported backends before submitting any schedule.
|
|
3415
|
+
*
|
|
3416
|
+
* `PUT /routing/connector-cap-schedules/{profileId}`
|
|
3417
|
+
*/
|
|
3418
|
+
async setConnectorCapSchedules(profileId, params) {
|
|
3419
|
+
const caps = await this.connectorCaps(profileId);
|
|
3420
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3421
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3422
|
+
}
|
|
3423
|
+
return this.request(
|
|
3424
|
+
"PUT",
|
|
3425
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}`,
|
|
3426
|
+
{
|
|
3427
|
+
body: params
|
|
3428
|
+
}
|
|
3429
|
+
);
|
|
3430
|
+
}
|
|
3431
|
+
/** Change the drawn value of an active scheduled range; preserves all usage. */
|
|
3432
|
+
async shuffleConnectorCapSchedule(profileId, params) {
|
|
3433
|
+
const caps = await this.connectorCaps(profileId);
|
|
3434
|
+
if (!caps.features?.includes("limit_schedules")) {
|
|
3435
|
+
throw new Error("Connector limit schedules are unsupported by the serving backend");
|
|
3436
|
+
}
|
|
3437
|
+
return this.request(
|
|
3438
|
+
"POST",
|
|
3439
|
+
`/routing/connector-cap-schedules/${encodeURIComponent(profileId)}/shuffle`,
|
|
3440
|
+
{ body: params }
|
|
3441
|
+
);
|
|
3442
|
+
}
|
|
3352
3443
|
/**
|
|
3353
3444
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
3354
3445
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -7883,6 +7974,7 @@ var Delopay = class {
|
|
|
7883
7974
|
this.mandates = new Mandates(request);
|
|
7884
7975
|
this.disputes = new Disputes(request);
|
|
7885
7976
|
this.paypalDisputes = new PaypalDisputes(request);
|
|
7977
|
+
this.whopResolutionCases = new WhopResolutionCases(request);
|
|
7886
7978
|
this.payouts = new Payouts(request);
|
|
7887
7979
|
this.ephemeralKeys = new EphemeralKeys(request);
|
|
7888
7980
|
this.events = new Events(request);
|
|
@@ -12075,6 +12167,7 @@ var encodeNativePanes = encodePanes;
|
|
|
12075
12167
|
WCAG_AA_TEXT,
|
|
12076
12168
|
WCAG_AA_UI,
|
|
12077
12169
|
Webhooks,
|
|
12170
|
+
WhopResolutionCases,
|
|
12078
12171
|
airwallexCardLayout,
|
|
12079
12172
|
airwallexCardLayoutIsCoherent,
|
|
12080
12173
|
airwallexCellWeight,
|