Skip to content

feat: transform xmoney sdk into modern typescript api client with full resource coverage #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
11e078d
refactor: convert classes to interfaces and update code style
asonnleitner May 28, 2025
821842a
feat: add resources for cards, customers, orders, transactions, and n…
asonnleitner May 29, 2025
8e9cb01
feat: add DateTransformer class and update date fields in customers, …
asonnleitner May 30, 2025
a4b2b26
feat: update customer and order parameters, refactor date handling, a…
asonnleitner May 30, 2025
30e6191
feat: update transaction capture method to accept amount as an object
asonnleitner May 30, 2025
1227438
refactor: streamline imports and update test data structures across m…
asonnleitner May 30, 2025
9613621
test: update mock responses and validation errors in test files
asonnleitner May 30, 2025
867cb8c
test: enhance fetch client tests to handle abort scenarios and verify…
asonnleitner May 30, 2025
ae5e00a
feat: refactor client configuration to support protocol and port hand…
asonnleitner May 30, 2025
2572c20
feat: add CheckoutResource for handling payment requests and responses
asonnleitner May 30, 2025
b706e69
feat: add comprehensive tests for CheckoutResource including create, …
asonnleitner May 30, 2025
0299153
feat: add LICENSE and update README with enhanced features, usage exa…
asonnleitner May 30, 2025
aea7011
feat: enhance CheckoutResponse structure in tests with additional fie…
asonnleitner Jun 2, 2025
6ea2327
feat: enhance documentation with detailed JSDoc comments for SDK func…
asonnleitner Jun 2, 2025
c01b880
feat: update example code to use createXMoneyClient and enhance searc…
asonnleitner Jun 2, 2025
ef89103
feat: update date handling in notifications and tests with new Date t…
asonnleitner Jun 2, 2025
256080f
feat: update customData type in CheckoutResponse and add documentatio…
asonnleitner Jun 4, 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
12 changes: 6 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: 18.x
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 17 additions & 17 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: PR Checks

on:
pull_request:
branches: [ main ]
branches: [main]
types: [opened, synchronize, reopened]

jobs:
Expand All @@ -13,19 +13,19 @@ jobs:
node-version: [18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- uses: actions/checkout@v3

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

- name: Install dependencies
run: npm ci

- name: Run linter
run: npm run lint

- name: Run tests
run: npm test
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.cache
.DS_Store
.idea
*.log
*.tgz
coverage
dist
lib-cov
logs
node_modules
lib
temp
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore-workspace-root-check = true
shell-emulator = true
6 changes: 0 additions & 6 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

Empty file added CONTRIBUTING.md
Empty file.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025-PRESENT xMoney <https://www.xmoney.com/>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading