@mft/moneyhub-api-client 4.12.1 → 4.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yml +24 -0
- package/package.json +1 -1
- package/readme.md +1 -0
- package/src/get-auth-urls.js +2 -0
- package/src/index.js +0 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: npm audit
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
schedule:
|
|
8
|
+
- cron: '0 10 * * *'
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
scan:
|
|
12
|
+
name: npm audit
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
- name: install dependencies
|
|
17
|
+
run: npm ci
|
|
18
|
+
- uses: oke-py/npm-audit-action@v1.8.4
|
|
19
|
+
with:
|
|
20
|
+
audit_level: moderate
|
|
21
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
22
|
+
issue_assignees: oke-py
|
|
23
|
+
issue_labels: vulnerability,test
|
|
24
|
+
dedupe_issues: true
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1153,6 +1153,7 @@ const url = await moneyhub.getReversePaymentAuthorizeUrl({
|
|
|
1153
1153
|
bankId: "Bank id to authorise payment from",
|
|
1154
1154
|
paymentId: "Id of payment to reverse",
|
|
1155
1155
|
state: "your state value",
|
|
1156
|
+
amount: "reverse payment amount" // optional
|
|
1156
1157
|
nonce: "your nonce value", // optional
|
|
1157
1158
|
claims: claimsObject, // optional
|
|
1158
1159
|
})
|
package/src/get-auth-urls.js
CHANGED
|
@@ -281,6 +281,7 @@ module.exports = ({client, config}) => {
|
|
|
281
281
|
paymentId,
|
|
282
282
|
state,
|
|
283
283
|
nonce,
|
|
284
|
+
amount,
|
|
284
285
|
claims = {},
|
|
285
286
|
}) => {
|
|
286
287
|
if (!state) {
|
|
@@ -303,6 +304,7 @@ module.exports = ({client, config}) => {
|
|
|
303
304
|
essential: true,
|
|
304
305
|
value: {
|
|
305
306
|
paymentId,
|
|
307
|
+
amount,
|
|
306
308
|
},
|
|
307
309
|
},
|
|
308
310
|
"mh:payment": {
|
package/src/index.js
CHANGED