dodopayments 2.7.0 → 2.8.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 (63) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  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 +10 -0
  10. package/resources/checkout-sessions.d.mts.map +1 -1
  11. package/resources/checkout-sessions.d.ts +10 -0
  12. package/resources/checkout-sessions.d.ts.map +1 -1
  13. package/resources/index.d.mts +2 -2
  14. package/resources/index.d.mts.map +1 -1
  15. package/resources/index.d.ts +2 -2
  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 +10 -7
  20. package/resources/payments.d.mts.map +1 -1
  21. package/resources/payments.d.ts +10 -7
  22. package/resources/payments.d.ts.map +1 -1
  23. package/resources/payments.js +3 -0
  24. package/resources/payments.js.map +1 -1
  25. package/resources/payments.mjs +3 -0
  26. package/resources/payments.mjs.map +1 -1
  27. package/resources/subscriptions.d.mts +110 -1
  28. package/resources/subscriptions.d.mts.map +1 -1
  29. package/resources/subscriptions.d.ts +110 -1
  30. package/resources/subscriptions.d.ts.map +1 -1
  31. package/resources/subscriptions.js +9 -0
  32. package/resources/subscriptions.js.map +1 -1
  33. package/resources/subscriptions.mjs +9 -0
  34. package/resources/subscriptions.mjs.map +1 -1
  35. package/resources/webhook-events.d.mts +1 -1
  36. package/resources/webhook-events.d.mts.map +1 -1
  37. package/resources/webhook-events.d.ts +1 -1
  38. package/resources/webhook-events.d.ts.map +1 -1
  39. package/resources/webhooks/index.d.mts +1 -1
  40. package/resources/webhooks/index.d.mts.map +1 -1
  41. package/resources/webhooks/index.d.ts +1 -1
  42. package/resources/webhooks/index.d.ts.map +1 -1
  43. package/resources/webhooks/index.js.map +1 -1
  44. package/resources/webhooks/index.mjs.map +1 -1
  45. package/resources/webhooks/webhooks.d.mts +61 -3
  46. package/resources/webhooks/webhooks.d.mts.map +1 -1
  47. package/resources/webhooks/webhooks.d.ts +61 -3
  48. package/resources/webhooks/webhooks.d.ts.map +1 -1
  49. package/resources/webhooks/webhooks.js.map +1 -1
  50. package/resources/webhooks/webhooks.mjs.map +1 -1
  51. package/src/client.ts +6 -0
  52. package/src/resources/checkout-sessions.ts +12 -0
  53. package/src/resources/index.ts +3 -0
  54. package/src/resources/payments.ts +10 -7
  55. package/src/resources/subscriptions.ts +177 -0
  56. package/src/resources/webhook-events.ts +1 -0
  57. package/src/resources/webhooks/index.ts +1 -0
  58. package/src/resources/webhooks/webhooks.ts +73 -2
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
@@ -856,6 +856,40 @@ export namespace SubscriptionRenewedWebhookEvent {
856
856
  }
857
857
  }
858
858
 
859
+ export interface SubscriptionUpdatedWebhookEvent {
860
+ /**
861
+ * The business identifier
862
+ */
863
+ business_id: string;
864
+
865
+ /**
866
+ * Event-specific data
867
+ */
868
+ data: SubscriptionUpdatedWebhookEvent.Data;
869
+
870
+ /**
871
+ * The timestamp of when the event occurred
872
+ */
873
+ timestamp: string;
874
+
875
+ /**
876
+ * The event type
877
+ */
878
+ type: 'subscription.updated';
879
+ }
880
+
881
+ export namespace SubscriptionUpdatedWebhookEvent {
882
+ /**
883
+ * Event-specific data
884
+ */
885
+ export interface Data extends SubscriptionsAPI.Subscription {
886
+ /**
887
+ * The type of payload in the data field
888
+ */
889
+ payload_type?: 'Subscription';
890
+ }
891
+ }
892
+
859
893
  export interface DisputeAcceptedWebhookEvent {
860
894
  /**
861
895
  * The business identifier
@@ -1570,6 +1604,40 @@ export namespace SubscriptionRenewedWebhookEvent {
1570
1604
  }
1571
1605
  }
1572
1606
 
1607
+ export interface SubscriptionUpdatedWebhookEvent {
1608
+ /**
1609
+ * The business identifier
1610
+ */
1611
+ business_id: string;
1612
+
1613
+ /**
1614
+ * Event-specific data
1615
+ */
1616
+ data: SubscriptionUpdatedWebhookEvent.Data;
1617
+
1618
+ /**
1619
+ * The timestamp of when the event occurred
1620
+ */
1621
+ timestamp: string;
1622
+
1623
+ /**
1624
+ * The event type
1625
+ */
1626
+ type: 'subscription.updated';
1627
+ }
1628
+
1629
+ export namespace SubscriptionUpdatedWebhookEvent {
1630
+ /**
1631
+ * Event-specific data
1632
+ */
1633
+ export interface Data extends SubscriptionsAPI.Subscription {
1634
+ /**
1635
+ * The type of payload in the data field
1636
+ */
1637
+ payload_type?: 'Subscription';
1638
+ }
1639
+ }
1640
+
1573
1641
  export type UnsafeUnwrapWebhookEvent =
1574
1642
  | DisputeAcceptedWebhookEvent
1575
1643
  | DisputeCancelledWebhookEvent
@@ -1591,7 +1659,8 @@ export type UnsafeUnwrapWebhookEvent =
1591
1659
  | SubscriptionFailedWebhookEvent
1592
1660
  | SubscriptionOnHoldWebhookEvent
1593
1661
  | SubscriptionPlanChangedWebhookEvent
1594
- | SubscriptionRenewedWebhookEvent;
1662
+ | SubscriptionRenewedWebhookEvent
1663
+ | SubscriptionUpdatedWebhookEvent;
1595
1664
 
1596
1665
  export type UnwrapWebhookEvent =
1597
1666
  | DisputeAcceptedWebhookEvent
@@ -1614,7 +1683,8 @@ export type UnwrapWebhookEvent =
1614
1683
  | SubscriptionFailedWebhookEvent
1615
1684
  | SubscriptionOnHoldWebhookEvent
1616
1685
  | SubscriptionPlanChangedWebhookEvent
1617
- | SubscriptionRenewedWebhookEvent;
1686
+ | SubscriptionRenewedWebhookEvent
1687
+ | SubscriptionUpdatedWebhookEvent;
1618
1688
 
1619
1689
  export interface WebhookCreateParams {
1620
1690
  /**
@@ -1719,6 +1789,7 @@ export declare namespace Webhooks {
1719
1789
  type SubscriptionOnHoldWebhookEvent as SubscriptionOnHoldWebhookEvent,
1720
1790
  type SubscriptionPlanChangedWebhookEvent as SubscriptionPlanChangedWebhookEvent,
1721
1791
  type SubscriptionRenewedWebhookEvent as SubscriptionRenewedWebhookEvent,
1792
+ type SubscriptionUpdatedWebhookEvent as SubscriptionUpdatedWebhookEvent,
1722
1793
  type UnsafeUnwrapWebhookEvent as UnsafeUnwrapWebhookEvent,
1723
1794
  type UnwrapWebhookEvent as UnwrapWebhookEvent,
1724
1795
  type WebhookDetailsCursorPagePagination as WebhookDetailsCursorPagePagination,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '2.7.0'; // x-release-please-version
1
+ export const VERSION = '2.8.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.7.0";
1
+ export declare const VERSION = "2.8.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.7.0";
1
+ export declare const VERSION = "2.8.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.7.0'; // x-release-please-version
4
+ exports.VERSION = '2.8.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.7.0'; // x-release-please-version
1
+ export const VERSION = '2.8.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map