Skip to content

Commit

Permalink
Updated ErrorCode enum in TransactionPaymentAttempt to include a …
Browse files Browse the repository at this point in the history
…new error code `declined_not_retryable` (#17)
  • Loading branch information
vijayasingam-paddle authored Mar 19, 2024
1 parent 42cd44f commit a8e934e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a

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.

## 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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paddle/paddle-node-sdk",
"version": "1.1.0",
"version": "1.2.0",
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions src/enums/shared/error-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type ErrorCode =
| 'blocked_card'
| 'canceled'
| 'declined'
| 'declined_not_retryable'
| 'expired_card'
| 'fraud'
| 'invalid_amount'
Expand Down

0 comments on commit a8e934e

Please sign in to comment.