@delopay/sdk 0.193.0 → 0.198.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-72DLUJCI.js → chunk-AUVCCOH6.js} +59 -7
- package/dist/chunk-AUVCCOH6.js.map +1 -0
- package/dist/index.cjs +58 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +267 -28
- package/dist/index.d.ts +267 -28
- package/dist/index.js +1 -1
- package/dist/internal.cjs +70 -6
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +33 -3
- package/dist/internal.d.ts +33 -3
- package/dist/internal.js +13 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-72DLUJCI.js.map +0 -1
|
@@ -3658,6 +3658,31 @@ var Users = class {
|
|
|
3658
3658
|
async signIn(params) {
|
|
3659
3659
|
return this.request("POST", "/user/signin", { body: params });
|
|
3660
3660
|
}
|
|
3661
|
+
/** Providers currently configured for dashboard sign-in. */
|
|
3662
|
+
async listOAuthProviders() {
|
|
3663
|
+
return this.request("GET", "/user/oauth/providers");
|
|
3664
|
+
}
|
|
3665
|
+
/** Current account's links; disabled providers remain visible. */
|
|
3666
|
+
async listLinkedOAuthProviders() {
|
|
3667
|
+
return this.request("GET", "/user/oauth/linked");
|
|
3668
|
+
}
|
|
3669
|
+
async startOAuthSignIn(params) {
|
|
3670
|
+
return this.request("POST", "/user/oauth/start", { body: params });
|
|
3671
|
+
}
|
|
3672
|
+
async startOAuthLink(params) {
|
|
3673
|
+
return this.request("POST", "/user/oauth/link/start", { body: params });
|
|
3674
|
+
}
|
|
3675
|
+
async completeOAuthSignIn(params) {
|
|
3676
|
+
return this.request("POST", "/user/oauth/complete", { body: params });
|
|
3677
|
+
}
|
|
3678
|
+
async completeOAuthLink(params) {
|
|
3679
|
+
return this.request("POST", "/user/oauth/link/complete", { body: params });
|
|
3680
|
+
}
|
|
3681
|
+
async disconnectOAuthProvider(provider, params) {
|
|
3682
|
+
return this.request("DELETE", `/user/oauth/linked/${encodeURIComponent(provider)}`, {
|
|
3683
|
+
body: params
|
|
3684
|
+
});
|
|
3685
|
+
}
|
|
3661
3686
|
async signOut() {
|
|
3662
3687
|
return this.request("POST", "/user/signout");
|
|
3663
3688
|
}
|
|
@@ -5736,7 +5761,13 @@ var Subscriptions = class {
|
|
|
5736
5761
|
...options
|
|
5737
5762
|
});
|
|
5738
5763
|
}
|
|
5739
|
-
/**
|
|
5764
|
+
/**
|
|
5765
|
+
* Update a subscription's plan/price. `PUT /subscriptions/{subscriptionId}/update`
|
|
5766
|
+
*
|
|
5767
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
5768
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
5769
|
+
* the processor. Calls made with an API key are not limited.
|
|
5770
|
+
*/
|
|
5740
5771
|
async update(subscriptionId, params, options) {
|
|
5741
5772
|
return this.request("PUT", `/subscriptions/${encodeURIComponent(subscriptionId)}/update`, {
|
|
5742
5773
|
body: params,
|
|
@@ -5792,6 +5823,10 @@ var Subscriptions = class {
|
|
|
5792
5823
|
/**
|
|
5793
5824
|
* Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
|
|
5794
5825
|
*
|
|
5826
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
5827
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
5828
|
+
* the processor. Calls made with an API key are not limited.
|
|
5829
|
+
*
|
|
5795
5830
|
* The body defaults to `{}` so the request still carries
|
|
5796
5831
|
* `Content-Type: application/json` even when no params are passed — the
|
|
5797
5832
|
* backend rejects the POST otherwise ("Unsupported content type").
|
|
@@ -5802,7 +5837,13 @@ var Subscriptions = class {
|
|
|
5802
5837
|
...options
|
|
5803
5838
|
});
|
|
5804
5839
|
}
|
|
5805
|
-
/**
|
|
5840
|
+
/**
|
|
5841
|
+
* Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume`
|
|
5842
|
+
*
|
|
5843
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
5844
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
5845
|
+
* the processor. Calls made with an API key are not limited.
|
|
5846
|
+
*/
|
|
5806
5847
|
async resume(subscriptionId, params, options) {
|
|
5807
5848
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {
|
|
5808
5849
|
body: params ?? {},
|
|
@@ -5814,6 +5855,10 @@ var Subscriptions = class {
|
|
|
5814
5855
|
*
|
|
5815
5856
|
* A subscription in a state it cannot be cancelled from is refused with
|
|
5816
5857
|
* `DE_11`; `error.data.reason` then names why (`SubscriptionActionRefusal`).
|
|
5858
|
+
*
|
|
5859
|
+
* From the dashboard this counts against the caller's `subscription_change`
|
|
5860
|
+
* operation limit; an over-limit call fails with `DE_01` and nothing reaches
|
|
5861
|
+
* the processor. Calls made with an API key are not limited.
|
|
5817
5862
|
*/
|
|
5818
5863
|
async cancel(subscriptionId, params, options) {
|
|
5819
5864
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {
|
|
@@ -6318,10 +6363,13 @@ var Settlement = class {
|
|
|
6318
6363
|
* Add a manual adjustment to a statement. Positive `amount_usd` charges
|
|
6319
6364
|
* the shop (reducing their payout); negative credits them.
|
|
6320
6365
|
*
|
|
6321
|
-
* Subject to the caller's `settlement_adjustment` operation limit
|
|
6322
|
-
*
|
|
6323
|
-
*
|
|
6324
|
-
*
|
|
6366
|
+
* Subject to the caller's `settlement_adjustment` operation limit: an
|
|
6367
|
+
* over-limit call fails with `DE_01` and no adjustment is added. Both
|
|
6368
|
+
* windows count every add, and a credit counts at its magnitude. A
|
|
6369
|
+
* settlement rule can only block — approval is refund-only, for the reason
|
|
6370
|
+
* given on `updateStatementPayout()`. When another add by the same user
|
|
6371
|
+
* changes the window while this one is being admitted, the call fails with
|
|
6372
|
+
* HTTP 412 and nothing is written; retrying the same request is safe.
|
|
6325
6373
|
*
|
|
6326
6374
|
* `POST /settlement/statements/{statementId}/adjustments`
|
|
6327
6375
|
*/
|
|
@@ -6335,6 +6383,10 @@ var Settlement = class {
|
|
|
6335
6383
|
/**
|
|
6336
6384
|
* Remove a manual adjustment from a statement.
|
|
6337
6385
|
*
|
|
6386
|
+
* The adjustment still counts against the caller's `settlement_adjustment`
|
|
6387
|
+
* limit window it was added in: removing it does not give back its count or
|
|
6388
|
+
* amount.
|
|
6389
|
+
*
|
|
6338
6390
|
* `DELETE /settlement/statements/{statementId}/adjustments/{adjustmentId}`
|
|
6339
6391
|
*/
|
|
6340
6392
|
async deleteStatementAdjustment(statementId, adjustmentId, options) {
|
|
@@ -11125,4 +11177,4 @@ export {
|
|
|
11125
11177
|
decodeNativePanes,
|
|
11126
11178
|
encodeNativePanes
|
|
11127
11179
|
};
|
|
11128
|
-
//# sourceMappingURL=chunk-
|
|
11180
|
+
//# sourceMappingURL=chunk-AUVCCOH6.js.map
|