Skip to content

Commit a8e934e

Browse files
Updated ErrorCode enum in TransactionPaymentAttempt to include a new error code declined_not_retryable (#17)
1 parent 42cd44f commit a8e934e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ 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+
## 1.2.0 - 2024-03-19
16+
17+
### Changed
18+
19+
- Updated `ErrorCode` enum in `TransactionPaymentAttempt` to include a new error code `declined_not_retryable`
20+
21+
---
1522

1623
## 1.1.0 - 2024-03-13
1724

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": "1.1.0",
3+
"version": "1.2.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/index.js",
66
"types": "./dist/index.d.ts",

src/enums/shared/error-code.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export type ErrorCode =
1111
| 'blocked_card'
1212
| 'canceled'
1313
| 'declined'
14+
| 'declined_not_retryable'
1415
| 'expired_card'
1516
| 'fraud'
1617
| 'invalid_amount'

0 commit comments

Comments
 (0)