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.
Files changed (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/checkout-sessions.d.mts +7 -0
  10. package/resources/checkout-sessions.d.mts.map +1 -1
  11. package/resources/checkout-sessions.d.ts +7 -0
  12. package/resources/checkout-sessions.d.ts.map +1 -1
  13. package/resources/index.d.mts +1 -1
  14. package/resources/index.d.mts.map +1 -1
  15. package/resources/index.d.ts +1 -1
  16. package/resources/index.d.ts.map +1 -1
  17. package/resources/index.js.map +1 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/payments.d.mts +9 -0
  20. package/resources/payments.d.mts.map +1 -1
  21. package/resources/payments.d.ts +9 -0
  22. package/resources/payments.d.ts.map +1 -1
  23. package/resources/subscriptions.d.mts +4 -0
  24. package/resources/subscriptions.d.mts.map +1 -1
  25. package/resources/subscriptions.d.ts +4 -0
  26. package/resources/subscriptions.d.ts.map +1 -1
  27. package/resources/webhook-events.d.mts +1 -1
  28. package/resources/webhook-events.d.mts.map +1 -1
  29. package/resources/webhook-events.d.ts +1 -1
  30. package/resources/webhook-events.d.ts.map +1 -1
  31. package/resources/webhooks/index.d.mts +1 -1
  32. package/resources/webhooks/index.d.mts.map +1 -1
  33. package/resources/webhooks/index.d.ts +1 -1
  34. package/resources/webhooks/index.d.ts.map +1 -1
  35. package/resources/webhooks/index.js.map +1 -1
  36. package/resources/webhooks/index.mjs.map +1 -1
  37. package/resources/webhooks/webhooks.d.mts +39 -3
  38. package/resources/webhooks/webhooks.d.mts.map +1 -1
  39. package/resources/webhooks/webhooks.d.ts +39 -3
  40. package/resources/webhooks/webhooks.d.ts.map +1 -1
  41. package/resources/webhooks/webhooks.js.map +1 -1
  42. package/resources/webhooks/webhooks.mjs.map +1 -1
  43. package/src/client.ts +2 -0
  44. package/src/resources/checkout-sessions.ts +8 -0
  45. package/src/resources/index.ts +1 -0
  46. package/src/resources/payments.ts +11 -0
  47. package/src/resources/subscriptions.ts +5 -0
  48. package/src/resources/webhook-events.ts +1 -0
  49. package/src/resources/webhooks/index.ts +1 -0
  50. package/src/resources/webhooks/webhooks.ts +47 -0
  51. package/src/version.ts +1 -1
  52. package/version.d.mts +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
  55. 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'; // x-release-please-version
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";
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";
1
+ export declare const VERSION = "2.42.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '2.42.1'; // x-release-please-version
4
+ exports.VERSION = '2.42.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.42.1'; // x-release-please-version
1
+ export const VERSION = '2.42.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map