@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/{chunk-33ZLHH3I.js → chunk-45OPT3EW.js} +11 -5
- package/dist/chunk-45OPT3EW.js.map +1 -0
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- 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.d.cts
CHANGED
|
@@ -3229,7 +3229,7 @@ declare class RoutingDecisionManager {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
3231
|
/** Index discriminator returned for each search result group. */
|
|
3232
|
-
type SearchIndex = 'payment_attempts' | 'payment_intents' | 'refunds' | 'disputes' | 'payouts' | 'sessionizer_payment_attempts' | 'sessionizer_payment_intents' | 'sessionizer_refunds' | 'sessionizer_disputes';
|
|
3232
|
+
type SearchIndex = 'payment_attempts' | 'payment_intents' | 'refunds' | 'disputes' | 'payouts' | 'sessionizer_payment_attempts' | 'sessionizer_payment_intents' | 'sessionizer_refunds' | 'sessionizer_disputes' | 'routing_rules' | 'webhook_events' | 'audit_logs' | 'subscriptions';
|
|
3233
3233
|
type SearchStatus = 'Success' | 'Failure';
|
|
3234
3234
|
/** One result group (per index) in the response array. */
|
|
3235
3235
|
interface SearchGroupResponse {
|
|
@@ -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
|
-
/**
|
|
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
|
@@ -3229,7 +3229,7 @@ declare class RoutingDecisionManager {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
|
|
3231
3231
|
/** Index discriminator returned for each search result group. */
|
|
3232
|
-
type SearchIndex = 'payment_attempts' | 'payment_intents' | 'refunds' | 'disputes' | 'payouts' | 'sessionizer_payment_attempts' | 'sessionizer_payment_intents' | 'sessionizer_refunds' | 'sessionizer_disputes';
|
|
3232
|
+
type SearchIndex = 'payment_attempts' | 'payment_intents' | 'refunds' | 'disputes' | 'payouts' | 'sessionizer_payment_attempts' | 'sessionizer_payment_intents' | 'sessionizer_refunds' | 'sessionizer_disputes' | 'routing_rules' | 'webhook_events' | 'audit_logs' | 'subscriptions';
|
|
3233
3233
|
type SearchStatus = 'Success' | 'Failure';
|
|
3234
3234
|
/** One result group (per index) in the response array. */
|
|
3235
3235
|
interface SearchGroupResponse {
|
|
@@ -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
|
-
/**
|
|
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
package/dist/internal.cjs
CHANGED
|
@@ -2664,24 +2664,30 @@ var Subscriptions = class {
|
|
|
2664
2664
|
...options
|
|
2665
2665
|
});
|
|
2666
2666
|
}
|
|
2667
|
-
/**
|
|
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
|
}
|