@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.
@@ -2586,24 +2586,30 @@ var Subscriptions = class {
2586
2586
  ...options
2587
2587
  });
2588
2588
  }
2589
- /** Pause a subscription. `POST /subscriptions/{subscriptionId}/pause` */
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-33ZLHH3I.js.map
3695
+ //# sourceMappingURL=chunk-ET3F5U37.js.map