@delopay/sdk 0.33.1 → 0.34.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/index.cjs CHANGED
@@ -2653,24 +2653,30 @@ var Subscriptions = class {
2653
2653
  ...options
2654
2654
  });
2655
2655
  }
2656
- /** Pause a subscription. `POST /subscriptions/{subscriptionId}/pause` */
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
  }