@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
|
@@ -2586,24 +2586,30 @@ var Subscriptions = class {
|
|
|
2586
2586
|
...options
|
|
2587
2587
|
});
|
|
2588
2588
|
}
|
|
2589
|
-
/**
|
|
2589
|
+
/**
|
|
2590
|
+
* Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
|
|
2591
|
+
*
|
|
2592
|
+
* The body defaults to `{}` so the request still carries
|
|
2593
|
+
* `Content-Type: application/json` even when no params are passed — the
|
|
2594
|
+
* backend rejects the POST otherwise ("Unsupported content type").
|
|
2595
|
+
*/
|
|
2590
2596
|
async pause(subscriptionId, params, options) {
|
|
2591
2597
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/pause`, {
|
|
2592
|
-
body: params,
|
|
2598
|
+
body: params ?? {},
|
|
2593
2599
|
...options
|
|
2594
2600
|
});
|
|
2595
2601
|
}
|
|
2596
2602
|
/** Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume` */
|
|
2597
2603
|
async resume(subscriptionId, params, options) {
|
|
2598
2604
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {
|
|
2599
|
-
body: params,
|
|
2605
|
+
body: params ?? {},
|
|
2600
2606
|
...options
|
|
2601
2607
|
});
|
|
2602
2608
|
}
|
|
2603
2609
|
/** Cancel a subscription. `POST /subscriptions/{subscriptionId}/cancel` */
|
|
2604
2610
|
async cancel(subscriptionId, params, options) {
|
|
2605
2611
|
return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {
|
|
2606
|
-
body: params,
|
|
2612
|
+
body: params ?? {},
|
|
2607
2613
|
...options
|
|
2608
2614
|
});
|
|
2609
2615
|
}
|
|
@@ -3686,4 +3692,4 @@ export {
|
|
|
3686
3692
|
applyBrandingVariables,
|
|
3687
3693
|
shadowFor
|
|
3688
3694
|
};
|
|
3689
|
-
//# sourceMappingURL=chunk-
|
|
3695
|
+
//# sourceMappingURL=chunk-ET3F5U37.js.map
|