Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
cdc609c
PAY-34: Move samples to root directory
Xammie Aug 21, 2025
f443b67
PAY-34: Add ESLint and prettier
Xammie Aug 21, 2025
5a2bf60
PAY-34: Formatting and ignoring of existing errors
Xammie Aug 21, 2025
0e11ec0
PAY-34: Add basic CONTRIBUTING.md with instructions on ESLint
Xammie Aug 21, 2025
3c29742
PAY-34: Update tsconfig.json
Xammie Aug 21, 2025
84e1c02
PAY-34: Rename samples to examples
Xammie Aug 21, 2025
0f5c725
Add commands to build the package
Xammie Aug 21, 2025
bcf3186
Add node engine to package.json
Xammie Aug 21, 2025
6a758a5
Merge pull request #1 from Enrise/PAY-34
Xammie Aug 22, 2025
5245697
add jest for testing
Jeroen-G Aug 21, 2025
4435a47
PR template
Jeroen-G Aug 21, 2025
3d44d3b
🔧 jest config updates
Jeroen-G Aug 21, 2025
e643f28
update jest and eslint configurations, add ts-node dependency, and ch…
Xammie Aug 22, 2025
7b90d61
Merge pull request #5 from Enrise/PAY-36
Xammie Aug 22, 2025
7cac66a
setup connect API client
Jeroen-G Aug 21, 2025
2a82fb8
Added github actions setup
Xammie Aug 22, 2025
7fad8f8
Merge pull request #6 from Enrise/PAY-38
Jeroen-G Aug 22, 2025
89286be
Moved test files to sub directory
Xammie Aug 25, 2025
5b887f7
Merge pull request #4 from Enrise/PAY-37
Xammie Aug 25, 2025
c74922e
Fix typescript not publishing sub-directories
Xammie Aug 25, 2025
b9d801a
Add order create endpoint
Xammie Aug 25, 2025
5a2d6bb
Split order create types and cleanup code
Xammie Aug 26, 2025
5ec2000
Add more tests and cleanup types
Xammie Aug 26, 2025
22e562f
Remove side effects from ApiError and use Date objects in request
Xammie Aug 27, 2025
642d2a0
Refactor API requests
Xammie Aug 27, 2025
315b835
remove dependency on date-fns
Jeroen-G Aug 27, 2025
84e112f
Merge pull request #7 from Enrise/PAY-35
Jeroen-G Aug 27, 2025
7c79dd9
Update lock file
Xammie Aug 28, 2025
520467d
Order status
Jeroen-G Aug 26, 2025
550e1bb
Update order endpoint
Jeroen-G Aug 26, 2025
ef9d9e5
approve, decline, capture order that requires verification
Jeroen-G Aug 26, 2025
22cab0a
Use request object for endpoints
Xammie Aug 27, 2025
73bbda6
reorganise types
Jeroen-G Aug 27, 2025
12cdc0a
Merge pull request #12 from Enrise/PAY-35-feature
Xammie Sep 1, 2025
7f90ebe
add payment endpoint
Jeroen-G Aug 27, 2025
a2d2900
add capture amount endpoint
Jeroen-G Aug 28, 2025
c3e6b55
add capture with products endpoint
Jeroen-G Sep 1, 2025
275b65a
add void and abort endpoints
Jeroen-G Sep 1, 2025
5724a95
Merge pull request #15 from Enrise/PAY-47
Jeroen-G Sep 1, 2025
827b457
Merge pull request #14 from Enrise/PAY-45
Jeroen-G Sep 1, 2025
393e886
Add JSdocs to order endpoints
Xammie Sep 1, 2025
a90a36b
Add products to create order example
Xammie Sep 1, 2025
51c8c0d
Add type checking to test and example files
Xammie Aug 26, 2025
85e102e
rename cancel to void
Jeroen-G Sep 1, 2025
b192b6e
Merge pull request #13 from Enrise/PAY-41
Xammie Sep 1, 2025
7c3f909
Merge pull request #10 from Enrise/add-tsc-to-tests
Jeroen-G Sep 1, 2025
c932bfe
changelog and upgrade guide
Jeroen-G Sep 1, 2025
301769a
fix 3 out of 6 vulnerabilities
Jeroen-G Sep 1, 2025
535bf91
mark as deprecated
Jeroen-G Sep 2, 2025
93a8ddf
Merge pull request #2 from Enrise/PAY-49
Xammie Sep 2, 2025
7765396
Update lock file
Xammie Sep 2, 2025
0930d05
PAY-53: Improve api tests
Xammie Sep 2, 2025
d280a26
Merge pull request #3 from Enrise/PAY-53
Jeroen-G Sep 2, 2025
bb62042
update readme with orders
Jeroen-G Sep 2, 2025
1b0d505
Apply suggestion from @Xammie
Jeroen-G Sep 2, 2025
996f864
Apply suggestion from @Xammie
Jeroen-G Sep 2, 2025
7f51b60
Apply suggestion from @Xammie
Jeroen-G Sep 2, 2025
6686922
apply suggestion; update lockfile
Jeroen-G Sep 2, 2025
92f7e4f
Merge pull request #1 from Enrise/PAY-50
Xammie Sep 2, 2025
d34942c
Make sure orderId is used instead of order ID for backward compatability
Jeroen-G Sep 3, 2025
6d952d6
Merge pull request #4 from Enrise/PAY-51
Xammie Sep 3, 2025
d00a816
Merge pull request #7 from Enrise/orderid
Xammie Sep 3, 2025
4f08432
remove openapi spec file, not needed
Jeroen-G Sep 4, 2025
25a885a
setup rest api request
Jeroen-G Sep 2, 2025
a9a24dd
refactor to use newer REST API
Jeroen-G Sep 3, 2025
d7ad68d
refactor payment methods to newer REST API
Jeroen-G Sep 3, 2025
b8f5ee0
PR feedback: rename isOldOrder check, change types
Jeroen-G Sep 3, 2025
48c2666
refactor directdebit to newer REST API
Jeroen-G Sep 4, 2025
05d4071
move type to shared folder
Jeroen-G Sep 4, 2025
bd58df3
remove old examples
Jeroen-G Sep 4, 2025
ffe90f0
reorder files
Jeroen-G Sep 5, 2025
873d0b5
Merge pull request #8 from Enrise/PAY-56
Xammie Sep 5, 2025
3c23b37
Remove unused files and move other files
Xammie Sep 5, 2025
46cc08f
Remove unused dependencies
Xammie Sep 5, 2025
a769870
Merge pull request #9 from Enrise/PAY-55
Jeroen-G Sep 5, 2025
4405392
remove unused types
Jeroen-G Sep 5, 2025
11ab4a6
bump version, update readme and changelog, upgrade guide for v2
Jeroen-G Sep 5, 2025
ecc2c88
Merge pull request #10 from Enrise/PAY-58
Xammie Sep 9, 2025
6a608e3
add service config API
Jeroen-G Sep 12, 2025
e397742
Move service ID to order create params
Xammie Sep 18, 2025
950490d
Move payment methods to core namespace
Xammie Sep 18, 2025
cdb577b
Merge pull request #12 from Enrise/PAY-63
Xammie Sep 18, 2025
b200ed9
Update client create options
Xammie Sep 18, 2025
71d8dc8
Fixed jest test not failing with error code
Xammie Sep 18, 2025
8cb5dc5
Merge pull request #11 from Enrise/PAY-61
Jeroen-G Sep 18, 2025
b9a541f
Merge branch 'v2' into develop
Jeroen-G Sep 18, 2025
4d15606
Merge pull request #15 from Enrise/fix-jest-not-failing
Jeroen-G Sep 18, 2025
468a1b9
Merge pull request #14 from Enrise/PAY-64
Jeroen-G Sep 18, 2025
06a3275
Merge branch 'develop' into PAY-62
Jeroen-G Sep 18, 2025
27d1f93
Fix merge conflict
Jeroen-G Sep 18, 2025
ad42d44
Merge pull request #13 from Enrise/PAY-62
Jeroen-G Sep 18, 2025
7ab7152
Merge branch 'master' into develop
Jeroen-G Oct 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->
-

## How to test
<!--- Create a list of steps people can take to test the changes -->
- [ ] `npm install`
- [ ] ...
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI

on:
push:
branches: [ main, v2 ]
pull_request:

jobs:
lint-and-type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Check linting and types
run: npm run lint

test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22, 24]

steps:
- uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ build/*
lib/*
.idea/
*.d.ts
*.js
coverage/
17 changes: 17 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"bracketSpacing": true,
"bracketSameLine": true,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "all",
"tabWidth": 4,
"printWidth": 100,
"overrides": [
{
"files": ["*.yml", "*.yaml", "*.json"],
"options": {
"tabWidth": 2
}
}
]
}
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## [2.0.0]

### Changed
- Refactored DirectDebit to new REST API.

### Removed
- Deprecated endpoints and dependencies, see UPGRADING.md for details.

## [1.2.0]

### Added
- New order API endpoints.

### Deprecated
- All transaction endpoints, except for the status endpoint (see UPGRADING.md)

### Changed
- Package overhead maintenance (CI, linting, etc.).

### Security
- CVE-2023-28155: Updated `request` package.

## [1.1.4]

No changelog was recorded up to this release.
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contributing

Thank you for considering contributing to this project! We welcome contributions from the community. Please follow the
guidelines below to ensure a smooth contribution process.

## Code style and formatting

We use ESLint to enforce code style and formatting. To ensure your code adheres to the project's standards, please run
the following command before submitting a pull request:

```bash
npm run lint
// or
npm run fix
```

## Running tests

We use Jest for testing. To run the tests, run the following command:

```bash
npm run test
```
Loading