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.
- package/CHANGELOG.md +29 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- 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 +10 -0
- package/resources/checkout-sessions.d.mts.map +1 -1
- package/resources/checkout-sessions.d.ts +10 -0
- package/resources/checkout-sessions.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- 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 +10 -7
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +10 -7
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js +3 -0
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs +3 -0
- package/resources/payments.mjs.map +1 -1
- package/resources/subscriptions.d.mts +110 -1
- package/resources/subscriptions.d.mts.map +1 -1
- package/resources/subscriptions.d.ts +110 -1
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +9 -0
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +9 -0
- package/resources/subscriptions.mjs.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 +61 -3
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +61 -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 +6 -0
- package/src/resources/checkout-sessions.ts +12 -0
- package/src/resources/index.ts +3 -0
- package/src/resources/payments.ts +10 -7
- package/src/resources/subscriptions.ts +177 -0
- package/src/resources/webhook-events.ts +1 -0
- package/src/resources/webhooks/index.ts +1 -0
- package/src/resources/webhooks/webhooks.ts +73 -2
- 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
|
@@ -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.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "2.8.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.
|
|
1
|
+
export const VERSION = '2.8.2'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|