Skip to content

Commit c3096af

Browse files
feat(Notification): Added transaction.revised event (#103)
1 parent 6468561 commit c3096af

21 files changed

+727
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a
1212

1313
This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by adding additional type guards.
1414

15+
## 2.5.0 - 2025-01-24
16+
17+
### Added
18+
19+
- Added support for `transaction.revised` notification, see [related changelog](https://developer.paddle.com/changelog/2024/revise-transaction-customer-information?utm_source=dx&utm_medium=paddle-node-sdk).
20+
21+
---
22+
1523
## 2.4.0 - 2025-01-21
1624

1725
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@paddle/paddle-node-sdk",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
55
"main": "dist/cjs/index.cjs.node.js",
66
"module": "dist/esm/index.esm.node.js",

src/__tests__/mocks/notifications/transaction-billed.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export const TransactionBilledMockExpectation = {
192192
data: {
193193
addressId: 'add_01h848pep46enq8y372x7maj0p',
194194
billedAt: '2023-08-22T07:45:54.783994887Z',
195+
revisedAt: null,
195196
billingDetails: {
196197
additionalInformation: null,
197198
enableCheckout: false,

src/__tests__/mocks/notifications/transaction-canceled.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export const TransactionCanceledMockExpectation = {
192192
data: {
193193
addressId: 'add_01h848pep46enq8y372x7maj0p',
194194
billedAt: '2023-08-22T07:45:54.783994Z',
195+
revisedAt: null,
195196
billingDetails: {
196197
additionalInformation: null,
197198
enableCheckout: false,

src/__tests__/mocks/notifications/transaction-completed.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ export const TransactionCompletedMockExpectation = {
235235
data: {
236236
addressId: 'add_01h8e18bzb5av13cd16m5gz214',
237237
billedAt: '2023-08-22T07:15:44.296865Z',
238+
revisedAt: null,
238239
billingDetails: null,
239240
billingPeriod: null,
240241
businessId: null,

src/__tests__/mocks/notifications/transaction-created.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export const TransactionCreatedMockExpectation = {
183183
data: {
184184
addressId: null,
185185
billedAt: null,
186+
revisedAt: null,
186187
billingDetails: null,
187188
billingPeriod: null,
188189
businessId: null,

src/__tests__/mocks/notifications/transaction-paid.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export const TransactionPaidMockExpectation = {
197197
data: {
198198
addressId: 'add_01gxwxqjh878r4mj3b1ex6xkxt',
199199
billedAt: null,
200+
revisedAt: null,
200201
billingDetails: null,
201202
billingPeriod: null,
202203
businessId: 'biz_01gxwxqjjwmdyd03q13aht3x1h',

src/__tests__/mocks/notifications/transaction-past-due.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export const TransactionPastDueMockExpectation = {
165165
data: {
166166
addressId: 'add_01h8e18bzb5av13cd16m5gz214',
167167
billedAt: '2023-08-22T07:37:01.353611Z',
168+
revisedAt: null,
168169
billingDetails: null,
169170
billingPeriod: {
170171
endsAt: '2023-10-22T07:15:43.792797Z',

src/__tests__/mocks/notifications/transaction-payment-failed.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export const TransactionPaymentFailedMockExpectation = {
203203
data: {
204204
addressId: 'add_01h8e18bzb5av13cd16m5gz214',
205205
billedAt: null,
206+
revisedAt: null,
206207
billingDetails: null,
207208
billingPeriod: null,
208209
businessId: null,

src/__tests__/mocks/notifications/transaction-ready.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export const TransactionReadyMockExpectation = {
188188
data: {
189189
addressId: 'add_01h8e18bzb5av13cd16m5gz214',
190190
billedAt: null,
191+
revisedAt: null,
191192
billingDetails: null,
192193
billingPeriod: null,
193194
businessId: null,

0 commit comments

Comments
 (0)