# Changelog All notable changes to this project will be documented in this file. 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). 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. ### Versioning 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. 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. ## Unreleased --- ## 3.12.0 - 2026-11-12 ### Added - `ApiError.status`, the HTTP status code of the response that caused the error. ### Fixed - Responses that aren't JSON, such as an HTML `429` page from Cloudflare, now throw an `ApiError` instead of `SyntaxError: Unexpected token '<'`. A `429` keeps the `too_many_requests` code and `retryAfter`, so documented retry handling still works. Other unexpected responses use the `unexpected_response` code, with the HTTP status and the start of the body in `detail`. --- ## 3.11.1 - 2026-11-07 ### Fixed - `webhooks.unmarshal` and `webhooks.isSignatureValid` now reject signatures with a timestamp more than 5 seconds in the future or a non-numeric timestamp, and compare signatures in constant time. --- ## 3.11.0 - 2026-11-04 ### Added - `usageEvents` resource for usage-based billing: `create` to send usage events, plus `generateEventKey` and `deterministicEventKey` helpers for creating `event_key` values. - `create` sends a batch of 1-100 events and resolves once Paddle accepts the whole batch. There are no per-event results. - A `400` `ApiError` means Paddle recorded no event in the batch. `errors` names each failed field by its zero-based position, like `events[1].occurred_at`. - After a `429` (wait `retryAfter` seconds), a `5xx` or a timeout, some events may have been recorded. Send the same batch again, keeping `customer_id`, `action`, `event_key` and `occurred_at` unchanged, so usage is only counted once. The SDK doesn't retry for you. - `meters` resource for usage-based billing, with `list` and `get` operations. - `usageBalances` resource for usage-based billing, with `list` and `get` operations for a customer's usage balances. - `usageBalanceUnits` resource for usage-based billing, with `list` and `get` operations. - Added `meter.read`, `meter.write`, `usage_balance.read`, `usage_balance_unit.read`, `usage_balance_unit.write` and `usage_event.write` to API key permissions. - Added `unitPrice` and `unitPriceOverrides` to price `trialPeriod` in requests, responses and webhook notifications, for paid trials. See [related changelog](https://developer.paddle.com/changelog/2026/paid-trials?utm_source=dx&utm_medium=paddle-node-sdk). - Added `MoneyOptionalCurrency` and `PriceTrialUnitPriceOverride` entities, where `currencyCode` may be omitted. - Added `verifications` resource with `list` and `get` operations to check whether an account is ready for live payments and which verification steps are outstanding. - Added `countries` resource with a `list` operation for `GET /countries`, returning `CountryDefinition` entities that describe each country Paddle knows about, including its transaction and payout currencies, whether sales are allowed, and its default tax mode. - Added `currencies` resource with a `list` operation for `GET /currencies`, returning `CurrencyDefinition` entities that describe each currency Paddle supports, including decimal places, minimum payment amount, and the countries that use it for automatic price conversion. - Added `checkoutDomains` resource with `list`, `get`, `delete`, and `verifyPaymentMethod` operations for managing checkout domains and verifying them for Apple Pay. - Added `ipAddresses` resource with a `get` operation to get Paddle IP addresses, which you can add to your allowlist. - Added `CountryCodeSupported`, `CountryCodeNonSupported`, `CountryCodeIso3`, `CountryCodeIso3Supported`, `CountryCodeIso3NonSupported` and `CountryDefinitionTaxMode` types. - Added `blocked_by_policy`, `preferred_network_not_supported` and `prepaid_card_not_supported` to `ErrorCode` for transaction payment attempts. `blocked_by_policy` is returned when a payment is blocked by one of the seller's configured policy checks. - Added `viewSubscription` to subscription `managementUrls` and to customer portal session `urls.subscriptions[]`, linking to the subscription page in the customer portal with no form pre-opened. - Added `filter`, `from` and `to` query parameters to `events.list()` operation, to filter events by a Paddle ID or email address and by time range. - Added `subscriptions` report type, which contains the current state of your subscriptions, with `subscription_status`, `subscription_created_at`, `customer_country_code` and `subscription_scheduled_change_action` report filter names. - Added `checkouts` report type, which contains conversion and recovery data for each checkout session, with the `checkout_created_at` report filter name. `checkouts` reports also support `customer_country_code`. - Added `balance_movement_date` and `balance_movement_type` report filter names for use with `payout_reconciliation` reports. - Added `updatedAt` to reports and report notifications. - Added `checkout_domain.read`, `checkout_domain.write`, `metrics.read`, `subscription_history.read` and `verification.read` to `ApiKeyPermission` for `api_key.*` notifications. - Added `AUD` and `CAD` to `AdjustmentCurrencyCode` for chargeback fees. - Added `subscription_saved_during_purchase` to `SavedPaymentOrigin` for payment methods. - Added `subscription_import` to the `origin` filter when listing transactions. - Added `none` to the `scheduledChangeAction` filter when listing subscriptions, to return subscriptions without a scheduled change. - Added `taxRatesUsed` to adjustments, adjustment notifications, and adjustments included on transactions. It's `null` on adjustment notifications when no tax rates were used. - Added `type` to adjustments included on transactions. - Added `retainedFee` to `adjustmentsTotals` on transactions. - Added `consentRequirements` to subscriptions, subscription previews, and `subscription.*` notifications, listing the customer consents required for the subscription to renew. Added `SubscriptionConsentRequirementType` and `SubscriptionConsentRequirementStatus` enums. - Added `type` (`recurring` or `one-off`) to subscription `discount` on subscriptions, subscription previews, and `subscription.*` notifications. Added `SubscriptionDiscountType` enum. - Added `nextBilledAt` filter when listing subscriptions. Pass `null` to return subscriptions with no next billing date. - Added `createdAt` and `updatedAt` to `items[].price` on `subscription.*` notifications. - Added `billingCycle.interval` and `billingCycle.frequency` filters to `prices.list()`. - Added `exposedAt` to API key notifications to indicate when an API key was first exposed. - Added `paddle.metrics.explore()` to run an Explore metrics query against `POST /metrics/explore`. Pagination state is returned on `pagination`; to get the next page, pass the same request body with `{ after: pagination.after }`. - Added `paddle.metrics.listExploreEntities()` to list queryable Explore metric entities and their dimensions, measures, and allowed aggregations from `GET /metrics/explore/entities`. - Added `subscriptions.listHistory(subscriptionId, queryParams?)` to list the history of changes made to a subscription. Each `SubscriptionHistory` entry has a `detail` discriminated on `action`, mapped to a dedicated entity per action (for example `SubscriptionHistoryCreatedDetail`). Filter by `action`, `source`, `actorType`, `actorId`, `reason`, and `occurredAt` (with `[LTE]` and `[GTE]` operators). ### Changed - `UpdatePriceRequestBody.trialPeriod` now uses `ITrialPeriodUpdate`, so all trial period fields are optional when updating a price. - Widened `CountryCode` to include the country codes Paddle doesn't support sales to (`AF`, `AN`, `AQ`, `BY`, `CD`, `CF`, `CS`, `CU`, `HT`, `IR`, `KP`, `LY`, `ML`, `MM`, `NI`, `RU`, `SD`, `SO`, `SS`, `SY`, `VE`, `YE`, `ZW`), matching the public API spec. `CountryCode` is now `CountryCodeSupported | CountryCodeNonSupported`. This affects addresses, unit price overrides, and related notifications. - `creditAppliedToBalance` on adjustments, adjustment notifications, and adjustments included on transactions is now `boolean | null`, matching the API. It's only returned for `credit` adjustments. - `amount` is now optional on `CreateAdjustmentLineItem`, as it's only required for `partial` adjustment items. ### Fixed - `TransactionPreview.availablePaymentMethods` is now populated from the `available_payment_methods` list returned by the API, and is typed as `AvailablePaymentMethod[]`. It was previously read from a non-existent field and was always `null`. - Added `adjustments` as an `include` value when getting, listing, creating, and updating transactions. `adjustment` is deprecated in favor of `adjustments`. - Added `available_payment_methods` as an `include` value when getting and listing transactions. - `after` and `perPage` are now optional when listing logs for a notification. - The request body and `effectiveFrom` are now optional when resuming a subscription, so subscriptions can be resumed immediately without passing options. - `subscriptionIds` is now optional when creating a customer portal session. - All fields in `billingDetails` are now optional when updating subscriptions and transactions, and `additionalInformation` accepts `null`. - `include` is now optional when getting a simulation run. - The `action` filter when listing adjustments now accepts a list of actions. - `pnpm build` now writes `src/version.ts` with a trailing newline, so `pnpm lint` passes after building. - Added missing `updated_at` to `IProductNotificationResponse`, used by `product.*` webhook events. --- ## 3.10.0 - 2026-08-07 ### Added - Added support for the `notification_setting_cannot_be_duplicate` request error returned when creating or updating notification settings. --- ## 3.9.0 - 2026-08-06 ### Added - Added `rotatable` to API key notifications to indicate whether an API key can be rotated. --- ## 3.8.0 - 2026-04-20 ### Added - Added `paypal` object to `payment_attempts[].method_details` on transactions and transaction notifications, exposing the PayPal payer `email` and billing agreement `reference`. --- ## 3.7.0 - 2026-04-09 ### Added - `metrics` resource for timeseries metrics: `getActiveSubscribers`, `getMonthlyRecurringRevenue`, `getMonthlyRecurringRevenueChange`, `getRevenue`, `getRefunds`, `getChargebacks`, and `getCheckoutConversion`. See [related changelog](https://developer.paddle.com/changelog/2026/metrics-api?utm_source=dx&utm_medium=paddle-node-sdk). --- ## 3.6.1 - 2026-03-27 ### Added - `CLP` (Chilean peso) and `PEN` (Peruvian sol) as new currencies ## 3.6.0 - 2026-02-04 ### Added - Added support for `wechat_pay` payment method. - Added support for `api_key_exposure.created` event. See [related changelog](https://developer.paddle.com/api-reference/about/api-keys?utm_source=dx&utm_medium=paddle-node-sdk#secret-scanning). - Added `grandTotalTax` field to `totals`, `adjusted_totals`, and `payout_totals` on transactions. See [related changelog](https://developer.paddle.com/changelog/2026/grand-total-tax-field?utm_source=dx&utm_medium=paddle-node-sdk). --- ## 3.5.0 - 2025-12-16 ### Added - Added support for `location` value in `tax_mode` enum to automatically present prices as inclusive or exclusive of tax based on customer location. See [related changelog](https://developer.paddle.com/changelog/2025/default-automatic-tax-setting?utm_source=dx&utm_medium=paddle-node-sdk) - Added support for `requiresPaymentMethod` field in trial period to specify whether a payment method is required during trial - Added `remittanceReference` field to payout notification entity - Added new report filter names `remittance_reference` and `transaction_updated_at`. See [related changelog](https://developer.paddle.com/changelog/2025/payout-reconciliation-report?utm_source=dx&utm_medium=paddle-node-sdk). - Added `payout_reconciliation` report type. See [related changelog](https://developer.paddle.com/changelog/2025/payout-reconciliation-report?utm_source=dx&utm_medium=paddle-node-sdk). ### Deprecated - Deprecated `balance` report type in favor of `payout_reconciliation`. See [related changelog](https://developer.paddle.com/changelog/2025/payout-reconciliation-report?utm_source=dx&utm_medium=paddle-node-sdk). --- ## 3.4.0 - 2025-11-11 ### Added - Added additional support for local Korean payment methods. See [related changelog](https://developer.paddle.com/changelog/2025/improved-korean-payment-methods?utm_source=dx&utm_medium=paddle-node-sdk) ## 3.3.0 - 2025-10-07 ### Added - Added support for new payment methods `blik`, `mb_way`, `pix` and `upi`. See [related changelog](https://developer.paddle.com/changelog/2025/blik-mbway-payment-methods?utm_source=dx&utm_medium=paddle-node-sdk). - Non-catalog discounts on Transactions, see [changelog](https://developer.paddle.com/changelog/2025/custom-discounts?utm_source=dx&utm_medium=paddle-node-sdk) - Support `retained_fee` field on totals objects to show the fees retained by Paddle for the adjustment. - `ApiError` will now have `retryAfter` property set for [too_many_requests](https://developer.paddle.com/errors/shared/too_many_requests) errors ### Fixed - `PricingPreview`, `PricingPreviewDiscounts`, `PricingPreviewDetails`, `PricingPreviewLineItem` types are now exported ### Changed - `CustomData` type definition is now `Record` --- ## 3.2.1 - 2025-08-26 ### Fixed - Fixed a bug where `delete` operations were not returning failures correctly. --- ## 3.2.0 - 2025-08-01 ### Added - Added support for filtering events by `eventType` in `events.list()` operation, see [related changelog](https://developer.paddle.com/changelog/2025/filter-events-by-type?utm_source=dx&utm_medium=paddle-node-sdk). --- ## 3.1.0 - 2025-08-01 ### Added - Added support for discount group resources, see [related changelog](https://developer.paddle.com/changelog/2025/discount-groups-new-api-operations?utm_source=dx&utm_medium=paddle-node-sdk). - Added support for `discount_group_id` in discount resource, see [related changelog](https://developer.paddle.com/changelog/2025/discount-groups?utm_source=dx&utm_medium=paddle-node-sdk). - Added support for `exchange_rate` and `fee_rate` in transaction payout totals - Added support for client token resource, see [related changelog](https://developer.paddle.com/changelog/2025/client-side-token-api?utm_source=dx&utm_medium=paddle-node-sdk). ### Fixed - Enabled typechecking for tests and fixed type errors. --- ## 3.0.0 - 2025-07-03 > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out > below. ### Changed - **Breaking change:** Updated the minimum required Node.js version to v20. - **Breaking change:** Changed default logging level to `error`. You can change it to `verbose` or `none` in the SDK configuration. - Changed the typescript configuration to transpile into ES2022 --- ## 2.8.0 - 2025-06-18 ### Added - Added support for discount mode. - Updated `AdjustmentAction` enum to include `chargeback_warning_reverse`. - Added support for discount group resources, see [related changelog](https://developer.paddle.com/changelog/2025/discount-groups?utm_source=dx&utm_medium=paddle-node-sdk). - Added support for `balance` reports, see [related changelog](https://developer.paddle.com/changelog/2025/balance-reports?utm_source=dx&utm_medium=paddle-node-sdk). - Added support for Korean local payment methods, see [related changelog](https://developer.paddle.com/changelog/2024/korean-payment-methods?utm_source=dx&utm_medium=paddle-node-sdk). - Added support for API key events, see [related changelog](https://developer.paddle.com/changelog/2025/api-key-improvements?utm_source=dx&utm_medium=paddle-node-sdk). ## 2.7.3 - 2025-06-05 ### Fixed - Added PR labels to dependabot config. - Dependabot updates - Fixed a typo in `paddle.businesses.archive` operation. --- ## 2.7.2 - 2025-05-22 ### Fixed - Added support for `exchangeRate` and `feeRate` in transaction completed webhook event's `details.payoutTotals` --- ## 2.7.1 - 2025-05-07 ### Changed - `subscriptions.cancel` requestBody is now optional --- ## 2.7.0 - 2025-04-16 ### Added - Added support to pass custom headers to the API --- ## 2.6.0 - 2025-04-10 ### Added - Added `taxMode` property when creating an adjustment, see [related changelog](https://developer.paddle.com/changelog/2025/tax-exclusive-refunds?utm_source=dx&utm_medium=paddle-node-sdk) - Added `config` to configure simulation scenarios, see [related changelog](https://developer.paddle.com/changelog/2025/webhook-simulator-scenario-configuration?utm_source=dx&utm_medium=paddle-node-sdk) --- ## 2.5.1 - 2025-03-06 ### Added - Added exports for bun, deno and cloudflare workers --- ## 2.5.0 - 2025-01-24 ### Added - 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). --- ## 2.4.0 - 2025-01-21 ### Added - 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). ### Changed - Dependabot updates --- ## 2.3.2 - 2025-01-06 ### Fixed - Dependabot updates --- ## 2.3.1 - 2025-01-06 ### Fixed - Dependabot updates --- ## 2.3.0 - 2025-01-06 ### Added - 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) --- ## 2.2.2 - 2024-12-16 ### Fixed - `discount.startsAt` for Subscriptions can now be `null` --- ## 2.2.1 - 2024-12-16 ### Fixed - Added `proration` to transaction line items --- ## 2.2.0 - 2024-12-12 ### Added - `VND` (Vietnamese dong) as new currency - Added `adjustment.type` which is either `partial` which should include `items` or `full` where `items` are not required --- ## 2.1.3 - 2024-11-29 ### Changed - `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 --- ## 2.1.2 - 2024-11-26 ### Fixed - Updated payment-methods export to use `.js` extension ### Added - ESLint rule to ensure `.js` extension is provided --- ## 2.1.1 - 2024-11-25 ### Fixed - Updated imports to use `.js` extension ## 2.1.0 - 2024-11-21 ### Added - Added `customerPortalSessions` resources --- ## 2.0.0 - 2024-11-20 > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out > below. ### Added - Added support for edge runtime. - Added `simulationTypes` resources - Added `simulations` resources - Added `simulationRuns` resources - Added `simulationRunEvents` resources - Added the `trafficSource` filter on notification settings - Omitted the `transactionId` completely from `SubscriptionNotification` and created a separate `SubscriptionCreatedNotification` with the non-null `transactionId` - Added `paymentMethods` resources - Added `generateAuthToken` for customer ### Changed - **Breaking change:** Updated the minimum required Node.js version to v18. - **Breaking change:** `Webhooks.unmarshal` and `Webhooks.isSignatureValid` now returns a promise. - Enabled conditional exports based on runtimes. - Switched from `node-fetch` to native `fetch` API. --- ## 1.7.0 - 2024-09-18 ### Fixed - Marked `paymentMethodId` as nullable in `TransactionPaymentAttempt` as it can be `null`. --- ## 1.6.0 - 2024-09-16 ### Added - 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) - 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). - 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). - 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). ### Fixed - Marked `notification_id` as optional in `IEventsResponse` interface. - Fixed a bug where query parameters with false values were not passed correctly to the API. --- ## 1.5.1 - 2024-09-10 ### Fixed - Fixed a bug where query parameters with special characters were not passed correctly to the API. - Dependabot security updates. --- ## 1.5.0 - 2024-08-16 ### Added - 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). --- ## 1.4.1 - 2024-06-21 ### Fixed - Dependabot security updates. --- ## 1.4.0 - 2024-06-20 ### Added - 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`. --- ## 1.3.0 - 2024-04-18 ### Changed - Updated the package to export both CommonJS and ES module formats. - Updated `Collection` to return `hasMore` and `estimatedTotal` properties --- ## 1.2.2 - 2024-04-03 ### Fixed - Updated the optional properties returned by `pricingPreview.preview` operation to match the API response. --- ## 1.2.1 - 2024-03-20 ### Fixed - Handled missing `unitPriceOverrides` in the `subscriptions.getPaymentMethodChangeTransaction` operation. --- ## 1.2.0 - 2024-03-19 ### Changed - Updated `ErrorCode` enum in `TransactionPaymentAttempt` to include a new error code `declined_not_retryable` --- ## 1.1.0 - 2024-03-13 ### Added - 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). ### Changed - 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). ### Removed - Removed `ISharedProductResponse` and `ISharedPriceResponse` interfaces as they were redundant. Please use `IProductResponse` and `IPriceResponse` instead. --- ## 1.0.2 - 2024-03-12 ### Added - Exported `ApiError` class for usage in `try/catch` block. ### Changed - 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). --- ## 1.0.1 - 2024-02-20 ### Changed - Removed early access notice from README and Changelog. --- ## 1.0.0 - 2024-02-20 ### Changed - Updated Package version to `1.0.0` --- ## 0.6.0 - 2024-02-20 > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out > below. ### Removed - **Breaking change:** Removed `*Includes` entity in favour of standard entities. - Use `Price` instead of `PriceWithIncludes` - Use `Product` instead of `ProductWithIncludes` - Use `Subscription` instead of `SubscriptionIncludes` - Use `Transaction` instead of `TransactionIncludes` --- ## 0.5.0 - 2024-02-16 > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out > below. ### Changed - We removed the shared entities between API and Notification as we foresee them diverging. No Action required for this change --- ## 0.4.0 - 2024-02-14 ### Added - Added `availablePaymentMethods` as an `include` Parameter to all transaction operations. - Added `importMeta` to Subscription webhooks. ### Changed - 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). - 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). ### Fixed - Fixed `effective_from` enum in Resume subscription operations. ### Deprecated - Deprecated `storedPaymentMethodId` from transaction payments in favour of `paymentMethodId` field. --- ## 0.3.0 - 2024-01-11 ### Changed - The repo and the npm package is now generally available. --- ## 0.2.9 - 2024-01-11 ### Fixed - Marked `endsAt` as optional in discount under Subscriptions entity. --- ## 0.2.8 - 2024-01-09 ### Fixed - Marked `unitPriceOverrides` as optional in Price entity. --- ## 0.2.7 - 2024-01-04 ### Fixed - Marked all properties in `ListNotificationQueryParameters` as optional. - Removed additional `?` from URLS in List Reports and List Notifications functions. - Fixed incorrect enum in Adjustment `type` --- ## 0.2.6 - 2023-12-22 ### Added - Added support for `address.imported`, `business.imported`, `customer.imported`, `price.imported` and `product.imported` notifications. ### Changed - 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). - 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). - 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). - 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). --- ## 0.2.5 - 2023-12-15 ### Added - Added `reports.list()` to [list reports](https://developer.paddle.com/api-reference/reports/list-reports?utm_source=dx&utm_medium=paddle-node-sdk) - 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) - Added `reports.get()` to [get a report](https://developer.paddle.com/api-reference/reports/get-report?utm_source=dx&utm_medium=paddle-node-sdk) - 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) --- ## 0.2.4 - 2023-12-14 ### Changed - Added `importMeta` to address, business, customer, discount and subscription entities - Added `creditToBalance` to `transaction.details.payoutTotals` and `transaction.details.totals` - 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). --- ## 0.2.3 - 2023-12-12 ### Added - 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) - 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) - 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) - 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) - 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) - 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) - Added `notifications.list()` to [list all notifications](https://developer.paddle.com/api-reference/notifications/list-notifications?utm_source=dx&utm_medium=paddle-node-sdk) - Added `notifications.get()` to [get a notification](https://developer.paddle.com/api-reference/notifications/get-notification?utm_source=dx&utm_medium=paddle-node-sdk) - Added `notifications.replay()` to [replay a notification](https://developer.paddle.com/api-reference/notifications/replay-notification?utm_source=dx&utm_medium=paddle-node-sdk) - 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) ### Fixed - Fixed incorrect type of `action` in `subscriptions.scheduled_change` --- ## 0.2.2 - 2023-12-01 ### Added - Added `events.list()` to [list all events](https://developer.paddle.com/api-reference/events/list-events?utm_source=dx&utm_medium=paddle-node-sdk) - 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 --- ## 0.2.1 - 2023-11-29 ### Added - Added helper function to archive supported entities - 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) ### Changed - **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`. --- ## 0.2.0 - 2023-11-28 > **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out > below. ### Added - Added `lodash` as a dependency. - 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). - 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). - Added `importMeta` to product and price entities. ### Fixed - 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. - Fixed `adjustments` array in `next_transaction` object in subscription entity. ### Changed - **Breaking change:** Converted all properties from `snake_case` to `camelCase`. This matches JavaScript conventions for field names. ### Removed - **Breaking change:** Removed `toJson` function from all entities. --- ## 0.1.8 - 2023-11-24 ### Added - 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. --- ## 0.1.7 - 2023-11-23 ### Added - Added changelog. --- ## 0.1.6 - 2023-11-22 ### Fixed - Fixed optional management URL object in subscription entities. --- ## 0.1.5 - 2023-11-14 ### Added - 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. - Enabled request and response logging. --- ## 0.1.4 - 2023-11-09 ### Removed - Removed unused dependency `lodash`. --- ## 0.1.3 - 2023-11-08 ### Fixed - 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. --- ## 0.1.2 - 2023-11-06 ### Fixed - Fixed incorrect update subscription request body TypeScript definition. --- ## 0.1.1 - 2023-11-06 ### Added - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. - 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. --- ## 0.1.0 - 2023-11-03 ### Added - 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.