@paddle/paddle-node-sdk 2.5.0 → 2.6.0

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 (85) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/entities/simulation/index.js +1 -0
  3. package/dist/cjs/entities/simulation/simulation-scenario-config/index.js +22 -0
  4. package/dist/cjs/entities/simulation/simulation-scenario-config/simulation-scenario-config.js +28 -0
  5. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-details.js +12 -0
  6. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.js +10 -0
  7. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-cancellation-options.js +11 -0
  8. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-details.js +12 -0
  9. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-entities.js +17 -0
  10. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-item.js +10 -0
  11. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-creation-options.js +12 -0
  12. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-details.js +12 -0
  13. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-entities.js +10 -0
  14. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-pause-options.js +11 -0
  15. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-details.js +12 -0
  16. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-entities.js +10 -0
  17. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-renewal-options.js +11 -0
  18. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-details.js +12 -0
  19. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-entities.js +10 -0
  20. package/dist/cjs/entities/simulation/simulation-scenario-config/subscription-resume-options.js +11 -0
  21. package/dist/cjs/entities/simulation/simulation.js +2 -0
  22. package/dist/cjs/enums/adjustment/adjustment-tax-mode.js +2 -0
  23. package/dist/cjs/enums/adjustment/index.js +1 -0
  24. package/dist/cjs/types/simulation/index.js +1 -0
  25. package/dist/cjs/types/simulation/simulation-scenario-config.js +2 -0
  26. package/dist/cjs/version.js +1 -1
  27. package/dist/esm/entities/simulation/index.js +1 -0
  28. package/dist/esm/entities/simulation/simulation-scenario-config/index.js +6 -0
  29. package/dist/esm/entities/simulation/simulation-scenario-config/simulation-scenario-config.js +24 -0
  30. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-details.js +8 -0
  31. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.js +6 -0
  32. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-cancellation-options.js +7 -0
  33. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-details.js +8 -0
  34. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-entities.js +13 -0
  35. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-item.js +6 -0
  36. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-creation-options.js +8 -0
  37. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-details.js +8 -0
  38. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-entities.js +6 -0
  39. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-pause-options.js +7 -0
  40. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-details.js +8 -0
  41. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-entities.js +6 -0
  42. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-renewal-options.js +7 -0
  43. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-details.js +8 -0
  44. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-entities.js +6 -0
  45. package/dist/esm/entities/simulation/simulation-scenario-config/subscription-resume-options.js +7 -0
  46. package/dist/esm/entities/simulation/simulation.js +2 -0
  47. package/dist/esm/enums/adjustment/adjustment-tax-mode.js +1 -0
  48. package/dist/esm/enums/adjustment/index.js +1 -0
  49. package/dist/esm/types/simulation/index.js +1 -0
  50. package/dist/esm/types/simulation/simulation-scenario-config.js +1 -0
  51. package/dist/esm/version.js +1 -1
  52. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  53. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  54. package/dist/tsconfig.types.tsbuildinfo +1 -1
  55. package/dist/types/entities/simulation/index.d.ts +1 -0
  56. package/dist/types/entities/simulation/simulation-scenario-config/index.d.ts +6 -0
  57. package/dist/types/entities/simulation/simulation-scenario-config/simulation-scenario-config.d.ts +14 -0
  58. package/dist/types/entities/simulation/simulation-scenario-config/subscription-cancellation-details.d.ts +8 -0
  59. package/dist/types/entities/simulation/simulation-scenario-config/subscription-cancellation-entities.d.ts +5 -0
  60. package/dist/types/entities/simulation/simulation-scenario-config/subscription-cancellation-options.d.ts +7 -0
  61. package/dist/types/entities/simulation/simulation-scenario-config/subscription-creation-details.d.ts +8 -0
  62. package/dist/types/entities/simulation/simulation-scenario-config/subscription-creation-entities.d.ts +12 -0
  63. package/dist/types/entities/simulation/simulation-scenario-config/subscription-creation-item.d.ts +8 -0
  64. package/dist/types/entities/simulation/simulation-scenario-config/subscription-creation-options.d.ts +8 -0
  65. package/dist/types/entities/simulation/simulation-scenario-config/subscription-pause-details.d.ts +8 -0
  66. package/dist/types/entities/simulation/simulation-scenario-config/subscription-pause-entities.d.ts +5 -0
  67. package/dist/types/entities/simulation/simulation-scenario-config/subscription-pause-options.d.ts +7 -0
  68. package/dist/types/entities/simulation/simulation-scenario-config/subscription-renewal-details.d.ts +8 -0
  69. package/dist/types/entities/simulation/simulation-scenario-config/subscription-renewal-entities.d.ts +5 -0
  70. package/dist/types/entities/simulation/simulation-scenario-config/subscription-renewal-options.d.ts +7 -0
  71. package/dist/types/entities/simulation/simulation-scenario-config/subscription-resume-details.d.ts +8 -0
  72. package/dist/types/entities/simulation/simulation-scenario-config/subscription-resume-entities.d.ts +5 -0
  73. package/dist/types/entities/simulation/simulation-scenario-config/subscription-resume-options.d.ts +7 -0
  74. package/dist/types/entities/simulation/simulation.d.ts +2 -0
  75. package/dist/types/enums/adjustment/adjustment-tax-mode.d.ts +1 -0
  76. package/dist/types/enums/adjustment/index.d.ts +1 -0
  77. package/dist/types/enums/simulation/simulation-scenario-type.d.ts +6 -0
  78. package/dist/types/resources/adjustments/operations/create-adjustment-request-body.d.ts +3 -1
  79. package/dist/types/types/shared/simulation-payload.d.ts +9 -0
  80. package/dist/types/types/simulation/index.d.ts +1 -0
  81. package/dist/types/types/simulation/simulation-response.d.ts +2 -0
  82. package/dist/types/types/simulation/simulation-scenario-config.d.ts +70 -0
  83. package/dist/types/version.d.ts +1 -1
  84. package/package.json +35 -21
  85. package/CHANGELOG.md +0 -540
package/CHANGELOG.md DELETED
@@ -1,540 +0,0 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
-
7
- Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-node-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.
8
-
9
- ### Versioning
10
-
11
- When we make [non-breaking changes](https://developer.paddle.com/api-reference/about/versioning?utm_source=dx&utm_medium=paddle-node-sdk#non-breaking-change) to the Paddle API, we'll only release a new major version of the Node.js SDK when it causes problems at runtime. We won't release a new version of the SDK when we weaken TypeScript types in a way that doesn't cause existing implementations to break or malfunction. For example, if we add a new field to a request or an allowed value for a field in a response, this weakens the Typescript type but does not cause existing usages to stop working.
12
-
13
- 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.
14
-
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
-
23
- ## 2.4.0 - 2025-01-21
24
-
25
- ### Added
26
-
27
- - Added `transactions.revise` operation to revise a transaction and added `revisedAt` to `Transaction` entity, see [related changelog](https://developer.paddle.com/changelog/2024/revise-transaction-customer-information?utm_source=dx&utm_medium=paddle-node-sdk).
28
-
29
- ### Changed
30
-
31
- - Dependabot updates
32
-
33
- ---
34
-
35
- ## 2.3.2 - 2025-01-06
36
-
37
- ### Fixed
38
-
39
- - Dependabot updates
40
-
41
- ---
42
-
43
- ## 2.3.1 - 2025-01-06
44
-
45
- ### Fixed
46
-
47
- - Dependabot updates
48
-
49
- ---
50
-
51
- ## 2.3.0 - 2025-01-06
52
-
53
- ### Added
54
-
55
- - Added `onResume` property to subscription resume and pause operations to [control billing for subscriptions when resuming](https://developer.paddle.com/changelog/2024/resume-subscription-billing-period-options)
56
-
57
- ---
58
-
59
- ## 2.2.2 - 2024-12-16
60
-
61
- ### Fixed
62
-
63
- - `discount.startsAt` for Subscriptions can now be `null`
64
-
65
- ---
66
-
67
- ## 2.2.1 - 2024-12-16
68
-
69
- ### Fixed
70
-
71
- - Added `proration` to transaction line items
72
-
73
- ---
74
-
75
- ## 2.2.0 - 2024-12-12
76
-
77
- ### Added
78
-
79
- - `VND` (Vietnamese dong) as new currency
80
- - Added `adjustment.type` which is either `partial` which should include `items` or `full` where `items` are not required
81
-
82
- ---
83
-
84
- ## 2.1.3 - 2024-11-29
85
-
86
- ### Changed
87
-
88
- - `paddle.webhooks.unmarshal` will now return an event for unhandled event types instead of `null` this is only possible for legacy/no longer supported events or for new events that have not been added to the sdk yet
89
-
90
- ---
91
-
92
- ## 2.1.2 - 2024-11-26
93
-
94
- ### Fixed
95
-
96
- - Updated payment-methods export to use `.js` extension
97
-
98
- ### Added
99
-
100
- - ESLint rule to ensure `.js` extension is provided
101
-
102
- ---
103
-
104
- ## 2.1.1 - 2024-11-25
105
-
106
- ### Fixed
107
-
108
- - Updated imports to use `.js` extension
109
-
110
- ## 2.1.0 - 2024-11-21
111
-
112
- ### Added
113
-
114
- - Added `customerPortalSessions` resources
115
-
116
- ---
117
-
118
- ## 2.0.0 - 2024-11-20
119
-
120
- > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
121
-
122
- ### Added
123
-
124
- - Added support for edge runtime.
125
- - Added `simulationTypes` resources
126
- - Added `simulations` resources
127
- - Added `simulationRuns` resources
128
- - Added `simulationRunEvents` resources
129
- - Added the `trafficSource` filter on notification settings
130
- - Omitted the `transactionId` completely from `SubscriptionNotification` and created a separate `SubscriptionCreatedNotification` with the non-null `transactionId`
131
- - Added `paymentMethods` resources
132
- - Added `generateAuthToken` for customer
133
-
134
- ### Changed
135
-
136
- - **Breaking change:** Updated the minimum required Node.js version to v18.
137
- - **Breaking change:** `Webhooks.unmarshal` and `Webhooks.isSignatureValid` now returns a promise.
138
- - Enabled conditional exports based on runtimes.
139
- - Switched from `node-fetch` to native `fetch` API.
140
-
141
- ---
142
-
143
- ## 1.7.0 - 2024-09-18
144
-
145
- ### Fixed
146
-
147
- - Marked `paymentMethodId` as nullable in `TransactionPaymentAttempt` as it can be `null`.
148
-
149
- ---
150
-
151
- ## 1.6.0 - 2024-09-16
152
-
153
- ### Added
154
-
155
- - Added `adjustments.getCreditNotePDF()` to [get a credit note for an adjustment](https://developer.paddle.com/api-reference/adjustments/get-credit-note-pdf?utm_source=dx&utm_medium=paddle-node-sdk)
156
- - Added `disposition` query parameter to `adjustments.getCreditNotePDF()` and `transactions.getInvoicePDF()` operations, see [related changelog](https://developer.paddle.com/changelog/2024/invoice-pdf-open-in-browser?utm_source=dx&utm_medium=paddle-node-sdk).
157
- - Added pagination support to `notificationSettings.list()` operation, see [related changelog](https://developer.paddle.com/changelog/2024/notification-settings-pagination?utm_source=dx&utm_medium=paddle-node-sdk).
158
- - Added support for Non-catalog products and prices to the `subscriptions.update()` and `subscriptions.previewUpdate()` operations, see [related changelog](https://developer.paddle.com/changelog/2024/add-custom-items-subscription?utm_source=dx&utm_medium=paddle-node-sdk).
159
-
160
- ### Fixed
161
-
162
- - Marked `notification_id` as optional in `IEventsResponse` interface.
163
- - Fixed a bug where query parameters with false values were not passed correctly to the API.
164
-
165
- ---
166
-
167
- ## 1.5.1 - 2024-09-10
168
-
169
- ### Fixed
170
-
171
- - Fixed a bug where query parameters with special characters were not passed correctly to the API.
172
- - Dependabot security updates.
173
-
174
- ---
175
-
176
- ## 1.5.0 - 2024-08-16
177
-
178
- ### Added
179
-
180
- - Updated subscription items model to include `product`. See [related changelog](https://developer.paddle.com/changelog/2024/subscription-items-product?utm_source=dx&utm_medium=paddle-node-sdk).
181
-
182
- ---
183
-
184
- ## 1.4.1 - 2024-06-21
185
-
186
- ### Fixed
187
-
188
- - Dependabot security updates.
189
-
190
- ---
191
-
192
- ## 1.4.0 - 2024-06-20
193
-
194
- ### Added
195
-
196
- - Added a new option to change the logging level of the SDK. You can now set the logging level to `verbose`, `warn`, `error` or `none`. The default logging level is `verbose`.
197
-
198
- ---
199
-
200
- ## 1.3.0 - 2024-04-18
201
-
202
- ### Changed
203
-
204
- - Updated the package to export both CommonJS and ES module formats.
205
- - Updated `Collection` to return `hasMore` and `estimatedTotal` properties
206
-
207
- ---
208
-
209
- ## 1.2.2 - 2024-04-03
210
-
211
- ### Fixed
212
-
213
- - Updated the optional properties returned by `pricingPreview.preview` operation to match the API response.
214
-
215
- ---
216
-
217
- ## 1.2.1 - 2024-03-20
218
-
219
- ### Fixed
220
-
221
- - Handled missing `unitPriceOverrides` in the `subscriptions.getPaymentMethodChangeTransaction` operation.
222
-
223
- ---
224
-
225
- ## 1.2.0 - 2024-03-19
226
-
227
- ### Changed
228
-
229
- - Updated `ErrorCode` enum in `TransactionPaymentAttempt` to include a new error code `declined_not_retryable`
230
-
231
- ---
232
-
233
- ## 1.1.0 - 2024-03-13
234
-
235
- ### Added
236
-
237
- - Added `createdAt` and `updatedAt` to product and price entities, see [related changelog](https://developer.paddle.com/changelog/2024/product-price-dates?utm_source=dx&utm_medium=paddle-node-sdk).
238
-
239
- ### Changed
240
-
241
- - Updated [report API](https://developer.paddle.com/api-reference/reports/create-report?utm_source=dx&utm_medium=paddle-node-sdk) to support `discounts` and `product_prices` report, see [related changelog](https://developer.paddle.com/changelog/2024/product-prices-discounts-reports?utm_source=dx&utm_medium=paddle-node-sdk).
242
-
243
- ### Removed
244
-
245
- - Removed `ISharedProductResponse` and `ISharedPriceResponse` interfaces as they were redundant. Please use `IProductResponse` and `IPriceResponse` instead.
246
-
247
- ---
248
-
249
- ## 1.0.2 - 2024-03-12
250
-
251
- ### Added
252
-
253
- - Exported `ApiError` class for usage in `try/catch` block.
254
-
255
- ### Changed
256
-
257
- - Added `customerId` property to `Address` and `Business` entities, see [related changelog](https://developer.paddle.com/changelog/2024/address-business-webhooks-customer-id?utm_source=dx&utm_medium=paddle-node-sdk).
258
-
259
- ---
260
-
261
- ## 1.0.1 - 2024-02-20
262
-
263
- ### Changed
264
-
265
- - Removed early access notice from README and Changelog.
266
-
267
- ---
268
-
269
- ## 1.0.0 - 2024-02-20
270
-
271
- ### Changed
272
-
273
- - Updated Package version to `1.0.0`
274
-
275
- ---
276
-
277
- ## 0.6.0 - 2024-02-20
278
-
279
- > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
280
-
281
- ### Removed
282
-
283
- - **Breaking change:** Removed `*Includes` entity in favour of standard entities.
284
-
285
- - Use `Price` instead of `PriceWithIncludes`
286
- - Use `Product` instead of `ProductWithIncludes`
287
- - Use `Subscription` instead of `SubscriptionIncludes`
288
- - Use `Transaction` instead of `TransactionIncludes`
289
-
290
- ---
291
-
292
- ## 0.5.0 - 2024-02-16
293
-
294
- > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
295
-
296
- ### Changed
297
-
298
- - We removed the shared entities between API and Notification as we foresee them diverging. No Action required for this change
299
-
300
- ---
301
-
302
- ## 0.4.0 - 2024-02-14
303
-
304
- ### Added
305
-
306
- - Added `availablePaymentMethods` as an `include` Parameter to all transaction operations.
307
- - Added `importMeta` to Subscription webhooks.
308
-
309
- ### Changed
310
-
311
- - Filter customers by email address in `customers.list()` operation, see [related changelog](https://developer.paddle.com/changelog/2024/filter-customers-email?utm_source=dx&utm_medium=paddle-node-sdk).
312
- - New payment method ID field for transaction payments, see [related changelog](https://developer.paddle.com/changelog/2024/payment-method-paddle-id?utm_source=dx&utm_medium=paddle-node-sdk).
313
-
314
- ### Fixed
315
-
316
- - Fixed `effective_from` enum in Resume subscription operations.
317
-
318
- ### Deprecated
319
-
320
- - Deprecated `storedPaymentMethodId` from transaction payments in favour of `paymentMethodId` field.
321
-
322
- ---
323
-
324
- ## 0.3.0 - 2024-01-11
325
-
326
- ### Changed
327
-
328
- - The repo and the npm package is now generally available.
329
-
330
- ---
331
-
332
- ## 0.2.9 - 2024-01-11
333
-
334
- ### Fixed
335
-
336
- - Marked `endsAt` as optional in discount under Subscriptions entity.
337
-
338
- ---
339
-
340
- ## 0.2.8 - 2024-01-09
341
-
342
- ### Fixed
343
-
344
- - Marked `unitPriceOverrides` as optional in Price entity.
345
-
346
- ---
347
-
348
- ## 0.2.7 - 2024-01-04
349
-
350
- ### Fixed
351
-
352
- - Marked all properties in `ListNotificationQueryParameters` as optional.
353
- - Removed additional `?` from URLS in List Reports and List Notifications functions.
354
- - Fixed incorrect enum in Adjustment `type`
355
-
356
- ---
357
-
358
- ## 0.2.6 - 2023-12-22
359
-
360
- ### Added
361
-
362
- - Added support for `address.imported`, `business.imported`, `customer.imported`, `price.imported` and `product.imported` notifications.
363
-
364
- ### Changed
365
-
366
- - Added support to get available payment methods when previewing prices or transactions, see [related changelog](https://developer.paddle.com/changelog/2023/available-payment-methods?utm_source=dx&utm_medium=paddle-node-sdk).
367
- - Added support to bill a one time non-catalog products and prices to subscription, see [related changelog](https://developer.paddle.com/changelog/2023/bill-custom-items-one-time-subscription-charge?utm_source=dx&utm_medium=paddle-node-sdk).
368
- - Added support for non-catalog products and prices to transaction, see [related changelog](https://developer.paddle.com/changelog/2023/add-custom-items-transaction?utm_source=dx&utm_medium=paddle-node-sdk).
369
- - Added `subscription.onPaymentFailure` to update subscriptions and preview update subscription operations, see [related changelog](https://developer.paddle.com/changelog/2023/payment-failure-behavior-update-subscription?utm_source=dx&utm_medium=paddle-node-sdk).
370
-
371
- ---
372
-
373
- ## 0.2.5 - 2023-12-15
374
-
375
- ### Added
376
-
377
- - Added `reports.list()` to [list reports](https://developer.paddle.com/api-reference/reports/list-reports?utm_source=dx&utm_medium=paddle-node-sdk)
378
- - Added `reports.create()` to [create a new report](https://developer.paddle.com/api-reference/reports/create-report?utm_source=dx&utm_medium=paddle-node-sdk)
379
- - Added `reports.get()` to [get a report](https://developer.paddle.com/api-reference/reports/get-report?utm_source=dx&utm_medium=paddle-node-sdk)
380
- - Added `reports.getReportCsv()` to [get a CSV file for a report](https://developer.paddle.com/api-reference/reports/get-report-csv?utm_source=dx&utm_medium=paddle-node-sdk)
381
-
382
- ---
383
-
384
- ## 0.2.4 - 2023-12-14
385
-
386
- ### Changed
387
-
388
- - Added `importMeta` to address, business, customer, discount and subscription entities
389
- - Added `creditToBalance` to `transaction.details.payoutTotals` and `transaction.details.totals`
390
- - Added `origin` query parameter to list transactions, see [related changelog](https://developer.paddle.com/changelog/2023/filter-transactions-origin?utm_source=dx&utm_medium=paddle-node-sdk).
391
-
392
- ---
393
-
394
- ## 0.2.3 - 2023-12-12
395
-
396
- ### Added
397
-
398
- - Added `eventTypes.list()` to [list all event types](https://developer.paddle.com/api-reference/event-types/list-event-types?utm_source=dx&utm_medium=paddle-node-sdk)
399
- - Added `notificationSettings.list()` to [list all notification settings](https://developer.paddle.com/api-reference/notification-settings/list-notification-settings?utm_source=dx&utm_medium=paddle-node-sdk)
400
- - Added `notificationSettings.create()` to [create a notification settings](https://developer.paddle.com/api-reference/notification-settings/create-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
401
- - Added `notificationSettings.get()` to [get a notification settings](https://developer.paddle.com/api-reference/notification-settings/get-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
402
- - Added `notificationSettings.update()` to [update a notification settings](https://developer.paddle.com/api-reference/notification-settings/update-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
403
- - Added `notificationSettings.delete()` to [delete a notification settings](https://developer.paddle.com/api-reference/notification-settings/delete-notification-setting?utm_source=dx&utm_medium=paddle-node-sdk)
404
- - Added `notifications.list()` to [list all notifications](https://developer.paddle.com/api-reference/notifications/list-notifications?utm_source=dx&utm_medium=paddle-node-sdk)
405
- - Added `notifications.get()` to [get a notification](https://developer.paddle.com/api-reference/notifications/get-notification?utm_source=dx&utm_medium=paddle-node-sdk)
406
- - Added `notifications.replay()` to [replay a notification](https://developer.paddle.com/api-reference/notifications/replay-notification?utm_source=dx&utm_medium=paddle-node-sdk)
407
- - Added `notifications.getLogs()` to [get all logs for a notification](https://developer.paddle.com/api-reference/notification-logs/list-notification-logs?utm_source=dx&utm_medium=paddle-node-sdk)
408
-
409
- ### Fixed
410
-
411
- - Fixed incorrect type of `action` in `subscriptions.scheduled_change`
412
-
413
- ---
414
-
415
- ## 0.2.2 - 2023-12-01
416
-
417
- ### Added
418
-
419
- - Added `events.list()` to [list all events](https://developer.paddle.com/api-reference/events/list-events?utm_source=dx&utm_medium=paddle-node-sdk)
420
- - Added helper function `paddle.webhooks.unmarshal` to [validate](https://developer.paddle.com/webhooks/signature-verification?utm_source=dx&utm_medium=paddle-node-sdk) and parse webhook events
421
-
422
- ---
423
-
424
- ## 0.2.1 - 2023-11-29
425
-
426
- ### Added
427
-
428
- - Added helper function to archive supported entities
429
- - Added `pricingPreview.preview()` to [preview calculations for one or more prices](https://developer.paddle.com/api-reference/pricing-preview/preview-prices?utm_source=dx&utm_medium=paddle-node-sdk)
430
-
431
- ### Changed
432
-
433
- - **Breaking change:** Converted all `list` operations to be synchronous. They did not have any async operation within them, and it was incorrectly typed to return a `Promise`.
434
-
435
- ---
436
-
437
- ## 0.2.0 - 2023-11-28
438
-
439
- > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.
440
-
441
- ### Added
442
-
443
- - Added `lodash` as a dependency.
444
- - Added `customData` to discount entity, see: [related changelog](https://developer.paddle.com/changelog/2023/custom-data-discounts?utm_source=dx&utm_medium=paddle-node-sdk).
445
- - Added `name` to price entity, see [related changelog](https://developer.paddle.com/changelog/2023/price-name-description?utm_source=dx&utm_medium=paddle-node-sdk).
446
- - Added `importMeta` to product and price entities.
447
-
448
- ### Fixed
449
-
450
- - Fixed [list credit balances for a customer](https://developer.paddle.com/api-reference/customers/list-credit-balances?utm_source=dx&utm_medium=paddle-node-sdk) response entity.
451
- - Fixed `adjustments` array in `next_transaction` object in subscription entity.
452
-
453
- ### Changed
454
-
455
- - **Breaking change:** Converted all properties from `snake_case` to `camelCase`. This matches JavaScript conventions for field names.
456
-
457
- ### Removed
458
-
459
- - **Breaking change:** Removed `toJson` function from all entities.
460
-
461
- ---
462
-
463
- ## 0.1.8 - 2023-11-24
464
-
465
- ### Added
466
-
467
- - Added `transactions.preview()` to [preview a transaction](https://developer.paddle.com/api-reference/transactions/preview-transaction?utm_source=dx&utm_medium=paddle-node-sdk) operation.
468
-
469
- ---
470
-
471
- ## 0.1.7 - 2023-11-23
472
-
473
- ### Added
474
-
475
- - Added changelog.
476
-
477
- ---
478
-
479
- ## 0.1.6 - 2023-11-22
480
-
481
- ### Fixed
482
-
483
- - Fixed optional management URL object in subscription entities.
484
-
485
- ---
486
-
487
- ## 0.1.5 - 2023-11-14
488
-
489
- ### Added
490
-
491
- - Added `transactions.getInvoicePDF()` for the [get a PDF invoice for a transaction](https://developer.paddle.com/api-reference/transactions/get-invoice-pdf?utm_source=dx&utm_medium=paddle-node-sdk) operation.
492
- - Enabled request and response logging.
493
-
494
- ---
495
-
496
- ## 0.1.4 - 2023-11-09
497
-
498
- ### Removed
499
-
500
- - Removed unused dependency `lodash`.
501
-
502
- ---
503
-
504
- ## 0.1.3 - 2023-11-08
505
-
506
- ### Fixed
507
-
508
- - Added missing query parameters for the [list transactions](https://developer.paddle.com/api-reference/transactions/list-transactions?utm_source=dx&utm_medium=paddle-node-sdk) operation.
509
-
510
- ---
511
-
512
- ## 0.1.2 - 2023-11-06
513
-
514
- ### Fixed
515
-
516
- - Fixed incorrect update subscription request body TypeScript definition.
517
-
518
- ---
519
-
520
- ## 0.1.1 - 2023-11-06
521
-
522
- ### Added
523
-
524
- - Added `customers.getCreditBalance()` for the [list credit balances for a customer](https://developer.paddle.com/api-reference/customers/list-credit-balances?utm_source=dx&utm_medium=paddle-node-sdk) operation.
525
- - Added `subscriptions.previewUpdate()` for the [preview an update to a subscription](https://developer.paddle.com/api-reference/subscriptions/preview-subscription?utm_source=dx&utm_medium=paddle-node-sdk) operation.
526
- - Added `subscriptions.activate()` for the [activate a trialing subscription](https://developer.paddle.com/api-reference/subscriptions/activate-subscription?utm_source=dx&utm_medium=paddle-node-sdk) operation.
527
- - Added `subscriptions.pause()` for the [pause a subscription](https://developer.paddle.com/api-reference/subscriptions/pause-subscription?utm_source=dx&utm_medium=paddle-node-sdk) operation.
528
- - Added `subscriptions.resume()` for the [resume a paused subscription](https://developer.paddle.com/api-reference/subscriptions/resume-subscription?utm_source=dx&utm_medium=paddle-node-sdk) operation.
529
- - Added `subscriptions.cancel()` for the [cancel a subscription](https://developer.paddle.com/api-reference/subscriptions/cancel-subscription?utm_source=dx&utm_medium=paddle-node-sdk) operation.
530
- - Added `subscriptions.createOneTimeCharge()` for the [create a one-time charge for a subscription](https://developer.paddle.com/api-reference/subscriptions/create-one-time-charge?utm_source=dx&utm_medium=paddle-node-sdk) operation.
531
- - Added `subscriptions.previewOneTimeCharge()` for the [preview a one-time charge for a subscription](https://developer.paddle.com/api-reference/subscriptions/preview-subscription-charge?utm_source=dx&utm_medium=paddle-node-sdk) operation.
532
- - Added `subscriptions.getPaymentMethodChangeTransaction()` for the [get a transaction to update payment method](https://developer.paddle.com/api-reference/subscriptions/update-payment-method?utm_source=dx&utm_medium=paddle-node-sdk) operation.
533
-
534
- ---
535
-
536
- ## 0.1.0 - 2023-11-03
537
-
538
- ### Added
539
-
540
- - Initial early access release. Added support for the most frequently used Paddle Billing entities and API operations. Check the [README](./README.md) for more information.