Skip to content

Commit

Permalink
Merge pull request #10 from longxice/feature/disbursement-api
Browse files Browse the repository at this point in the history
Add disbursement api
  • Loading branch information
qtdan authored May 15, 2023
2 parents b32296a + c5273dc commit adb5eb0
Show file tree
Hide file tree
Showing 28 changed files with 1,960 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,20 @@
/node_modules
package-lock.json

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# TypeScript v1 declaration files
types/

# TypeScript cache
*.tsbuildinfo

# production
/build
/lib
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
To adding a new api, for example TokenizationAPI
- Update Open API specification in `specs` folder to latest.
- Generate request, response models by run the script in `scripts/generate.sh`
- In the generated request files, find and replace `app_id`, `payment_id`, `mac`, `sig` required fields to optional by using the `?` syntax. Because those fields are added in the service file. For example, from `app_id` to `app_id:?` .
- Add new service and related resources in `services` folder.
- Update `services/index.ts` to expose new service API to client.
- Add unit tests for new service in `__tests__` folder and verify by run `npm run test`.
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@zalopay-oss/zalopay-nodejs",
"version": "0.1.2",
"version": "0.2.0",
"description": "",
"main": "./lib/ZaloPay.js",
"types": "./types/ZaloPay.d.ts",
"main": "./lib/src/zalopay/index.js",
"types": "./types/src/zalopay/index.d.ts",
"files": [
"lib",
"types",
Expand All @@ -24,6 +24,7 @@
"@types/jest": "^29.5.0",
"@types/node": "^18.15.5",
"@types/qs": "^6.9.7",
"@types/node-rsa": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"eslint": "^8.39.0",
Expand All @@ -35,6 +36,7 @@
"dependencies": {
"axios": "^1.3.4",
"crypto-js": "^4.1.1",
"node-rsa": "^1.1.1",
"qs": "^6.11.1"
},
"repository": {
Expand Down
Loading

0 comments on commit adb5eb0

Please sign in to comment.