@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mft/moneyhub-api-client",
3
- "version": "4.12.1",
3
+ "version": "4.13.0",
4
4
  "description": "Node.JS client for the Moneyhub API",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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
  })
@@ -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
@@ -51,8 +51,6 @@ module.exports = async (apiClientConfig) => {
51
51
  timeout,
52
52
  })
53
53
 
54
- Issuer.defaultHttpOptions = {timeout}
55
-
56
54
  const moneyhubIssuer = await Issuer.discover(identityServiceUrl + "/oidc")
57
55
 
58
56
  const client = new moneyhubIssuer.Client(