@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/index.d.cts CHANGED
@@ -3746,7 +3746,13 @@ declare class Subscriptions {
3746
3746
  getEstimate(params: SubscriptionEstimateParams, options?: RequestExtras): Promise<SubscriptionEstimateResponse>;
3747
3747
  /** List purchasable subscription items (plans/addons). `GET /subscriptions/items` */
3748
3748
  getItems(params: GetSubscriptionItemsParams, options?: RequestExtras): Promise<GetSubscriptionItemsResponse[]>;
3749
- /** Pause a subscription. `POST /subscriptions/{subscriptionId}/pause` */
3749
+ /**
3750
+ * Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
3751
+ *
3752
+ * The body defaults to `{}` so the request still carries
3753
+ * `Content-Type: application/json` even when no params are passed — the
3754
+ * backend rejects the POST otherwise ("Unsupported content type").
3755
+ */
3750
3756
  pause(subscriptionId: string, params?: PauseSubscriptionRequest, options?: RequestExtras): Promise<PauseSubscriptionResponse>;
3751
3757
  /** Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume` */
3752
3758
  resume(subscriptionId: string, params?: ResumeSubscriptionRequest, options?: RequestExtras): Promise<ResumeSubscriptionResponse>;
package/dist/index.d.ts CHANGED
@@ -3746,7 +3746,13 @@ declare class Subscriptions {
3746
3746
  getEstimate(params: SubscriptionEstimateParams, options?: RequestExtras): Promise<SubscriptionEstimateResponse>;
3747
3747
  /** List purchasable subscription items (plans/addons). `GET /subscriptions/items` */
3748
3748
  getItems(params: GetSubscriptionItemsParams, options?: RequestExtras): Promise<GetSubscriptionItemsResponse[]>;
3749
- /** Pause a subscription. `POST /subscriptions/{subscriptionId}/pause` */
3749
+ /**
3750
+ * Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
3751
+ *
3752
+ * The body defaults to `{}` so the request still carries
3753
+ * `Content-Type: application/json` even when no params are passed — the
3754
+ * backend rejects the POST otherwise ("Unsupported content type").
3755
+ */
3750
3756
  pause(subscriptionId: string, params?: PauseSubscriptionRequest, options?: RequestExtras): Promise<PauseSubscriptionResponse>;
3751
3757
  /** Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume` */
3752
3758
  resume(subscriptionId: string, params?: ResumeSubscriptionRequest, options?: RequestExtras): Promise<ResumeSubscriptionResponse>;
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  shadowFor,
42
42
  surfacePadValue,
43
43
  verticalGapValue
44
- } from "./chunk-33ZLHH3I.js";
44
+ } from "./chunk-ET3F5U37.js";
45
45
  export {
46
46
  Analytics,
47
47
  AnalyticsDashboard,
package/dist/internal.cjs CHANGED
@@ -2664,24 +2664,30 @@ var Subscriptions = class {
2664
2664
  ...options
2665
2665
  });
2666
2666
  }
2667
- /** Pause a subscription. `POST /subscriptions/{subscriptionId}/pause` */
2667
+ /**
2668
+ * Pause a subscription. `POST /subscriptions/{subscriptionId}/pause`
2669
+ *
2670
+ * The body defaults to `{}` so the request still carries
2671
+ * `Content-Type: application/json` even when no params are passed — the
2672
+ * backend rejects the POST otherwise ("Unsupported content type").
2673
+ */
2668
2674
  async pause(subscriptionId, params, options) {
2669
2675
  return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/pause`, {
2670
- body: params,
2676
+ body: params ?? {},
2671
2677
  ...options
2672
2678
  });
2673
2679
  }
2674
2680
  /** Resume a paused subscription. `POST /subscriptions/{subscriptionId}/resume` */
2675
2681
  async resume(subscriptionId, params, options) {
2676
2682
  return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/resume`, {
2677
- body: params,
2683
+ body: params ?? {},
2678
2684
  ...options
2679
2685
  });
2680
2686
  }
2681
2687
  /** Cancel a subscription. `POST /subscriptions/{subscriptionId}/cancel` */
2682
2688
  async cancel(subscriptionId, params, options) {
2683
2689
  return this.request("POST", `/subscriptions/${encodeURIComponent(subscriptionId)}/cancel`, {
2684
- body: params,
2690
+ body: params ?? {},
2685
2691
  ...options
2686
2692
  });
2687
2693
  }