dodopayments 2.45.1 → 2.46.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/CHANGELOG.md +8 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/subscriptions.d.mts +17 -2
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +17 -2
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/webhook-events.d.mts +1 -1
- package/resources/webhook-events.d.mts.map +1 -1
- package/resources/webhook-events.d.ts +1 -1
- package/resources/webhook-events.d.ts.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +75 -3
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +75 -3
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +4 -0
- package/src/resources/index.ts +2 -0
- package/src/resources/subscriptions.ts +27 -2
- package/src/resources/webhook-events.ts +1 -0
- package/src/resources/webhooks/index.ts +2 -0
- package/src/resources/webhooks/webhooks.ts +94 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1573,6 +1573,28 @@ export interface SubscriptionOnHoldWebhookEvent {
|
|
|
1573
1573
|
type: 'subscription.on_hold';
|
|
1574
1574
|
}
|
|
1575
1575
|
|
|
1576
|
+
export interface SubscriptionPausedWebhookEvent {
|
|
1577
|
+
/**
|
|
1578
|
+
* The business identifier
|
|
1579
|
+
*/
|
|
1580
|
+
business_id: string;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Response struct representing subscription details
|
|
1584
|
+
*/
|
|
1585
|
+
data: SubscriptionsAPI.Subscription;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* The timestamp of when the event occurred
|
|
1589
|
+
*/
|
|
1590
|
+
timestamp: string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* The event type
|
|
1594
|
+
*/
|
|
1595
|
+
type: 'subscription.paused';
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1576
1598
|
export interface SubscriptionPlanChangedWebhookEvent {
|
|
1577
1599
|
/**
|
|
1578
1600
|
* The business identifier
|
|
@@ -1617,6 +1639,28 @@ export interface SubscriptionRenewedWebhookEvent {
|
|
|
1617
1639
|
type: 'subscription.renewed';
|
|
1618
1640
|
}
|
|
1619
1641
|
|
|
1642
|
+
export interface SubscriptionUnpausedWebhookEvent {
|
|
1643
|
+
/**
|
|
1644
|
+
* The business identifier
|
|
1645
|
+
*/
|
|
1646
|
+
business_id: string;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Response struct representing subscription details
|
|
1650
|
+
*/
|
|
1651
|
+
data: SubscriptionsAPI.Subscription;
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* The timestamp of when the event occurred
|
|
1655
|
+
*/
|
|
1656
|
+
timestamp: string;
|
|
1657
|
+
|
|
1658
|
+
/**
|
|
1659
|
+
* The event type
|
|
1660
|
+
*/
|
|
1661
|
+
type: 'subscription.unpaused';
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1620
1664
|
export interface SubscriptionUpdatePaymentMethodWebhookEvent {
|
|
1621
1665
|
/**
|
|
1622
1666
|
* The business identifier
|
|
@@ -3048,6 +3092,28 @@ export interface SubscriptionOnHoldWebhookEvent {
|
|
|
3048
3092
|
type: 'subscription.on_hold';
|
|
3049
3093
|
}
|
|
3050
3094
|
|
|
3095
|
+
export interface SubscriptionPausedWebhookEvent {
|
|
3096
|
+
/**
|
|
3097
|
+
* The business identifier
|
|
3098
|
+
*/
|
|
3099
|
+
business_id: string;
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Response struct representing subscription details
|
|
3103
|
+
*/
|
|
3104
|
+
data: SubscriptionsAPI.Subscription;
|
|
3105
|
+
|
|
3106
|
+
/**
|
|
3107
|
+
* The timestamp of when the event occurred
|
|
3108
|
+
*/
|
|
3109
|
+
timestamp: string;
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* The event type
|
|
3113
|
+
*/
|
|
3114
|
+
type: 'subscription.paused';
|
|
3115
|
+
}
|
|
3116
|
+
|
|
3051
3117
|
export interface SubscriptionPlanChangedWebhookEvent {
|
|
3052
3118
|
/**
|
|
3053
3119
|
* The business identifier
|
|
@@ -3092,6 +3158,28 @@ export interface SubscriptionRenewedWebhookEvent {
|
|
|
3092
3158
|
type: 'subscription.renewed';
|
|
3093
3159
|
}
|
|
3094
3160
|
|
|
3161
|
+
export interface SubscriptionUnpausedWebhookEvent {
|
|
3162
|
+
/**
|
|
3163
|
+
* The business identifier
|
|
3164
|
+
*/
|
|
3165
|
+
business_id: string;
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* Response struct representing subscription details
|
|
3169
|
+
*/
|
|
3170
|
+
data: SubscriptionsAPI.Subscription;
|
|
3171
|
+
|
|
3172
|
+
/**
|
|
3173
|
+
* The timestamp of when the event occurred
|
|
3174
|
+
*/
|
|
3175
|
+
timestamp: string;
|
|
3176
|
+
|
|
3177
|
+
/**
|
|
3178
|
+
* The event type
|
|
3179
|
+
*/
|
|
3180
|
+
type: 'subscription.unpaused';
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3095
3183
|
export interface SubscriptionUpdatePaymentMethodWebhookEvent {
|
|
3096
3184
|
/**
|
|
3097
3185
|
* The business identifier
|
|
@@ -3178,8 +3266,10 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
3178
3266
|
| SubscriptionExpiredWebhookEvent
|
|
3179
3267
|
| SubscriptionFailedWebhookEvent
|
|
3180
3268
|
| SubscriptionOnHoldWebhookEvent
|
|
3269
|
+
| SubscriptionPausedWebhookEvent
|
|
3181
3270
|
| SubscriptionPlanChangedWebhookEvent
|
|
3182
3271
|
| SubscriptionRenewedWebhookEvent
|
|
3272
|
+
| SubscriptionUnpausedWebhookEvent
|
|
3183
3273
|
| SubscriptionUpdatePaymentMethodWebhookEvent
|
|
3184
3274
|
| SubscriptionUpdatedWebhookEvent;
|
|
3185
3275
|
|
|
@@ -3225,8 +3315,10 @@ export type UnwrapWebhookEvent =
|
|
|
3225
3315
|
| SubscriptionExpiredWebhookEvent
|
|
3226
3316
|
| SubscriptionFailedWebhookEvent
|
|
3227
3317
|
| SubscriptionOnHoldWebhookEvent
|
|
3318
|
+
| SubscriptionPausedWebhookEvent
|
|
3228
3319
|
| SubscriptionPlanChangedWebhookEvent
|
|
3229
3320
|
| SubscriptionRenewedWebhookEvent
|
|
3321
|
+
| SubscriptionUnpausedWebhookEvent
|
|
3230
3322
|
| SubscriptionUpdatePaymentMethodWebhookEvent
|
|
3231
3323
|
| SubscriptionUpdatedWebhookEvent;
|
|
3232
3324
|
|
|
@@ -3353,8 +3445,10 @@ export declare namespace Webhooks {
|
|
|
3353
3445
|
type SubscriptionExpiredWebhookEvent as SubscriptionExpiredWebhookEvent,
|
|
3354
3446
|
type SubscriptionFailedWebhookEvent as SubscriptionFailedWebhookEvent,
|
|
3355
3447
|
type SubscriptionOnHoldWebhookEvent as SubscriptionOnHoldWebhookEvent,
|
|
3448
|
+
type SubscriptionPausedWebhookEvent as SubscriptionPausedWebhookEvent,
|
|
3356
3449
|
type SubscriptionPlanChangedWebhookEvent as SubscriptionPlanChangedWebhookEvent,
|
|
3357
3450
|
type SubscriptionRenewedWebhookEvent as SubscriptionRenewedWebhookEvent,
|
|
3451
|
+
type SubscriptionUnpausedWebhookEvent as SubscriptionUnpausedWebhookEvent,
|
|
3358
3452
|
type SubscriptionUpdatePaymentMethodWebhookEvent as SubscriptionUpdatePaymentMethodWebhookEvent,
|
|
3359
3453
|
type SubscriptionUpdatedWebhookEvent as SubscriptionUpdatedWebhookEvent,
|
|
3360
3454
|
type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.46.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.46.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.46.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.46.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|