@delopay/sdk 0.33.1 → 0.33.2
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-33ZLHH3I.js → chunk-ET3F5U37.js} +11 -5
- package/dist/chunk-ET3F5U37.js.map +1 -0
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +10 -4
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-33ZLHH3I.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -2653,24 +2653,30 @@ var Subscriptions = class {
|
|
|
2653
2653
|
...options
|
|
2654
2654
|
});
|
|
2655
2655
|
}
|
|
2656
|
-
/**
|
|
2656
|
+
/**
|
|
2657
|
+
* Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
|
|
2658
|
+
*
|
|
2659
|
+
* The body defaults to `{}` so the request still carries
|
|
2660
|
+
* `Content-Type: application/json` even when no params are passed — the
|
|
2661
|
+
* backend rejects the POST otherwise ("Unsupported content type").
|
|
2662
|
+
*/
|
|
2657
2663
|
async pause(subscriptionId, params, options) {
|
|
2658
2664
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/pause`, {
|
|
2659
|
-
body: params,
|
|
2665
|
+
body: params ?? {},
|
|
2660
2666
|
...options
|
|
2661
2667
|
});
|
|
2662
2668
|
}
|
|
2663
2669
|
/** Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume` */
|
|
2664
2670
|
async resume(subscriptionId, params, options) {
|
|
2665
2671
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {
|
|
2666
|
-
body: params,
|
|
2672
|
+
body: params ?? {},
|
|
2667
2673
|
...options
|
|
2668
2674
|
});
|
|
2669
2675
|
}
|
|
2670
2676
|
/** Cancel a subscription. `POST /subscriptions/{subscriptionId}/cancel` */
|
|
2671
2677
|
async cancel(subscriptionId, params, options) {
|
|
2672
2678
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {
|
|
2673
|
-
body: params,
|
|
2679
|
+
body: params ?? {},
|
|
2674
2680
|
...options
|
|
2675
2681
|
});
|
|
2676
2682
|
}
|