dodopayments 2.42.1 → 2.42.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/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/checkout-sessions.d.mts +7 -0
- package/resources/checkout-sessions.d.mts.map +1 -1
- package/resources/checkout-sessions.d.ts +7 -0
- package/resources/checkout-sessions.d.ts.map +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/payments.d.mts +9 -0
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +9 -0
- package/resources/payments.d.ts.map +1 -1
- package/resources/subscriptions.d.mts +4 -0
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +4 -0
- 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 +39 -3
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +39 -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 +2 -0
- package/src/resources/checkout-sessions.ts +8 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/payments.ts +11 -0
- package/src/resources/subscriptions.ts +5 -0
- package/src/resources/webhook-events.ts +1 -0
- package/src/resources/webhooks/index.ts +1 -0
- package/src/resources/webhooks/webhooks.ts +47 -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
|
@@ -1111,6 +1111,28 @@ export interface SubscriptionRenewedWebhookEvent {
|
|
|
1111
1111
|
type: 'subscription.renewed';
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
|
+
export interface SubscriptionUpdatePaymentMethodWebhookEvent {
|
|
1115
|
+
/**
|
|
1116
|
+
* The business identifier
|
|
1117
|
+
*/
|
|
1118
|
+
business_id: string;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* Response struct representing subscription details
|
|
1122
|
+
*/
|
|
1123
|
+
data: SubscriptionsAPI.Subscription;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* The timestamp of when the event occurred
|
|
1127
|
+
*/
|
|
1128
|
+
timestamp: string;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* The event type
|
|
1132
|
+
*/
|
|
1133
|
+
type: 'subscription.update_payment_method';
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1114
1136
|
export interface SubscriptionUpdatedWebhookEvent {
|
|
1115
1137
|
/**
|
|
1116
1138
|
* The business identifier
|
|
@@ -2059,6 +2081,28 @@ export interface SubscriptionRenewedWebhookEvent {
|
|
|
2059
2081
|
type: 'subscription.renewed';
|
|
2060
2082
|
}
|
|
2061
2083
|
|
|
2084
|
+
export interface SubscriptionUpdatePaymentMethodWebhookEvent {
|
|
2085
|
+
/**
|
|
2086
|
+
* The business identifier
|
|
2087
|
+
*/
|
|
2088
|
+
business_id: string;
|
|
2089
|
+
|
|
2090
|
+
/**
|
|
2091
|
+
* Response struct representing subscription details
|
|
2092
|
+
*/
|
|
2093
|
+
data: SubscriptionsAPI.Subscription;
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
* The timestamp of when the event occurred
|
|
2097
|
+
*/
|
|
2098
|
+
timestamp: string;
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* The event type
|
|
2102
|
+
*/
|
|
2103
|
+
type: 'subscription.update_payment_method';
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2062
2106
|
export interface SubscriptionUpdatedWebhookEvent {
|
|
2063
2107
|
/**
|
|
2064
2108
|
* The business identifier
|
|
@@ -2120,6 +2164,7 @@ export type UnsafeUnwrapWebhookEvent =
|
|
|
2120
2164
|
| SubscriptionOnHoldWebhookEvent
|
|
2121
2165
|
| SubscriptionPlanChangedWebhookEvent
|
|
2122
2166
|
| SubscriptionRenewedWebhookEvent
|
|
2167
|
+
| SubscriptionUpdatePaymentMethodWebhookEvent
|
|
2123
2168
|
| SubscriptionUpdatedWebhookEvent;
|
|
2124
2169
|
|
|
2125
2170
|
export type UnwrapWebhookEvent =
|
|
@@ -2161,6 +2206,7 @@ export type UnwrapWebhookEvent =
|
|
|
2161
2206
|
| SubscriptionOnHoldWebhookEvent
|
|
2162
2207
|
| SubscriptionPlanChangedWebhookEvent
|
|
2163
2208
|
| SubscriptionRenewedWebhookEvent
|
|
2209
|
+
| SubscriptionUpdatePaymentMethodWebhookEvent
|
|
2164
2210
|
| SubscriptionUpdatedWebhookEvent;
|
|
2165
2211
|
|
|
2166
2212
|
export interface WebhookListParams extends CursorPagePaginationParams {}
|
|
@@ -2283,6 +2329,7 @@ export declare namespace Webhooks {
|
|
|
2283
2329
|
type SubscriptionOnHoldWebhookEvent as SubscriptionOnHoldWebhookEvent,
|
|
2284
2330
|
type SubscriptionPlanChangedWebhookEvent as SubscriptionPlanChangedWebhookEvent,
|
|
2285
2331
|
type SubscriptionRenewedWebhookEvent as SubscriptionRenewedWebhookEvent,
|
|
2332
|
+
type SubscriptionUpdatePaymentMethodWebhookEvent as SubscriptionUpdatePaymentMethodWebhookEvent,
|
|
2286
2333
|
type SubscriptionUpdatedWebhookEvent as SubscriptionUpdatedWebhookEvent,
|
|
2287
2334
|
type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
|
|
2288
2335
|
type UnwrapWebhookEvent as UnwrapWebhookEvent,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.42.
|
|
1
|
+
export const VERSION = '2.42.2'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.42.
|
|
1
|
+
export declare const VERSION = "2.42.2";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.42.
|
|
1
|
+
export declare const VERSION = "2.42.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.42.
|
|
1
|
+
export const VERSION = '2.42.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|