Compare commits

...

1071 Commits

Author SHA1 Message Date
jillingk
b76846c031 Update package.json (#1084) 2023-01-20 09:15:22 +01:00
jillingk
bf1e643973 [PW-7765] add create/disablePermit and simple UT (#1082)
* add create/disablePermit and simple UT

* Add serializer for Date objects and quick test

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2023-01-19 16:57:26 +01:00
Michael Paul
316542a166 PW-7514: Fully Generated Management API client (#1064)
* PW-7514: Update models

* PW-7514: Switch to JAR based installation

* PW-7514: Default API template

* PW-7514: Customize API template

* PW-7514: Serialize request

* PW-7514: Query string

* PW-7514: Fix version patch

* PW-7514: Client generated

* PW-7514: Export class by default

* PW-7514: Make path and body params required

* PW-7514: Dynamic service name

* PW-7514: Link all classes into one parent

* PW-7514: Dynamic method names

* PW-7514: Fix merge issues

* PW-7514: Generate using latest specs

Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
2023-01-19 15:59:16 +01:00
Wouter Boereboom
8c451502e3 Remove LGTM badges from README (#1080) 2023-01-19 15:46:05 +01:00
Wouter Boereboom
bd70b93c08 update unit tests to test uniform error handling over APIs (#1079)
Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
2023-01-13 15:54:15 +01:00
renovate[bot]
fd7b05ab09 chore(deps): update dependency nock to v13.3.0 (#1081)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-12 09:49:03 +01:00
renovate[bot]
4ed7e77d0e chore(deps): update dependency @types/node to v14.18.36 (#1044)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-03 08:20:22 +01:00
Michael Paul
a289846a16 PW-7502: Bind QueryString type to URLSearchParams (#1077) 2022-12-30 13:22:21 +01:00
Wouter Boereboom
277edb212c remove API calls from unit tests. Remove ASCII headers from test files, use typings index in test classes. add missing entries to typings index class (#1075) 2022-12-23 10:05:52 +01:00
Wouter Boereboom
be9194fafe add basic auth option to the client (#1076) 2022-12-22 10:38:07 +01:00
renovate[bot]
f210123964 Update dependency typescript to v4.9.4 (#1073)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-22 10:18:50 +01:00
Wouter Boereboom
872f86064f Add banner to README (#1074) 2022-12-14 11:07:55 +01:00
Wouter Boereboom
ba18fcb181 Pw 7156/update readme (#1069)
* update README

* fix link to integration section

* add webhooks to README.md

* fix bullet lists in README

* minor code example fix

* process feedback

* Update README.md

Co-authored-by: Jeantwan Teuma <Morerice@users.noreply.github.com>

* Update README.md

Co-authored-by: Jeantwan Teuma <Morerice@users.noreply.github.com>

* Grammar

Co-authored-by: Jeantwan Teuma <Morerice@users.noreply.github.com>
2022-12-05 16:04:59 +01:00
Wouter Boereboom
79aaf6580e update .npmignore (#1072) 2022-12-05 15:37:44 +01:00
renovate[bot]
2d6330b552 Update dependency ts-loader to v9 (#1055)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-02 09:27:55 +01:00
renovate[bot]
ad540c8964 Update dependency typescript to v4.9.3 (#1050)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-30 14:01:37 +01:00
renovate[bot]
e10cd25364 Update dependency eslint to v8.28.0 (#1057)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-30 13:28:37 +01:00
Wouter Boereboom
7ed7299480 Delete dependabot.yml (#1059) 2022-11-30 13:07:43 +01:00
Wouter Boereboom
c8220fe6d4 fix: add balancePlatform to services index (#1068) 2022-11-30 12:58:05 +01:00
Wouter Boereboom
790c880eef add dataProtection service to library (#1063)
* add dataProtection service to library

* add missing import

* fix mock class for unit test
2022-11-30 12:51:27 +01:00
renovate[bot]
e3a2918fa9 Update actions/checkout action to v3 (#1052)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-11-30 08:46:33 +01:00
dependabot[bot]
aa35700e88 Bump @typescript-eslint/parser from 5.43.0 to 5.45.0 (#1067)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.43.0 to 5.45.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.45.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 08:39:45 +01:00
renovate[bot]
7a8ef2bc40 Update actions/setup-node action to v3 (#1053)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-21 15:25:07 +01:00
jillingk
791f68163a Changed name of Value to BarcodeValue corresponding to docs(and API) (#1051) 2022-11-18 14:50:54 +01:00
renovate[bot]
91306b86d3 Update dependency @typescript-eslint/parser to v5.43.0 (#1046)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-18 09:09:18 +01:00
renovate[bot]
086b8bc929 Update dependency eslint to v8.27.0 (#1047)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-18 09:05:23 +01:00
Eoin Falconer
8aa158b943 Arribatec/fix terminal comms typo (#1029)
* Fix the namings of CommunicationOKFlag

* Revert "Fix the namings of CommunicationOKFlag"

This reverts commit 15e85c2665947a87ce7cfd8b6dae5df0fde16cb1.

* Updated with correct linting

* Update pOIStatus.ts

Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-11-18 08:47:40 +01:00
renovate[bot]
4ac101a30c Update dependency @types/jest to v27.5.2 (#1043)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-18 08:33:35 +01:00
renovate[bot]
533a07c87e Add renovate.json (#1042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-18 08:30:51 +01:00
dependabot[bot]
37b752de49 Bump @typescript-eslint/eslint-plugin from 5.41.0 to 5.43.0 (#1039)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.41.0 to 5.43.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.43.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-15 17:07:59 +01:00
wouterboe
59ce9c5d37 bump version for release 12.1.0 2022-10-28 16:47:02 +02:00
Wouter Boereboom
f5efb595ef Merge branch 'main' into develop 2022-10-28 16:32:33 +02:00
AdyenAutomationBot
50548c1857 [create-pull-request] automated change (#980) 2022-10-28 16:28:50 +02:00
dependabot[bot]
a298fa84fb Bump eslint from 8.25.0 to 8.26.0 (#1023)
Bumps [eslint](https://github.com/eslint/eslint) from 8.25.0 to 8.26.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.25.0...v8.26.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-10-28 08:50:06 +02:00
dependabot[bot]
e6d369506e Bump acorn from 8.8.0 to 8.8.1 (#1024)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.8.0 to 8.8.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.8.0...8.8.1)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-10-28 08:49:37 +02:00
dependabot[bot]
e084599757 Bump @typescript-eslint/parser from 5.40.1 to 5.41.0 (#1025)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.40.1 to 5.41.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.41.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-28 08:49:19 +02:00
dependabot[bot]
4246674d29 Bump @typescript-eslint/eslint-plugin from 5.40.1 to 5.41.0 (#1026)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.40.1 to 5.41.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.41.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-10-28 08:45:12 +02:00
Wouter Boereboom
ffbf955b95 Pw 6850/bank issueing fund transfers (#1027)
* add TransferService to Makefile

* add transfers API to library

* update typings and add unit tests
2022-10-27 16:45:47 +02:00
Wouter Boereboom
0d6535f32c Merge pull request #1020 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.40.1
Bump @typescript-eslint/eslint-plugin from 5.40.0 to 5.40.1
2022-10-19 08:57:15 +02:00
dependabot[bot]
343e04f475 Bump @typescript-eslint/eslint-plugin from 5.40.0 to 5.40.1
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.40.0 to 5.40.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 06:53:34 +00:00
Wouter Boereboom
f1f8161f2a Merge pull request #1021 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-5.40.1
Bump @typescript-eslint/parser from 5.40.0 to 5.40.1
2022-10-19 08:52:05 +02:00
dependabot[bot]
ba8f2b44f3 Bump @typescript-eslint/parser from 5.40.0 to 5.40.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.40.0 to 5.40.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-18 04:02:07 +00:00
Wouter Boereboom
898be12d1c Merge pull request #1014 from Adyen/fix/LEM_service_index
add LEM service to services index
2022-10-14 08:56:33 +02:00
Wouter Boereboom
d0ba69a3a8 Merge branch 'develop' into fix/LEM_service_index 2022-10-14 08:52:59 +02:00
Wouter Boereboom
83662185f8 Merge pull request #1015 from Adyen/dependabot/npm_and_yarn/eslint-8.25.0
Bump eslint from 8.24.0 to 8.25.0
2022-10-14 08:51:59 +02:00
Wouter Boereboom
9eb30e7a25 Merge branch 'develop' into dependabot/npm_and_yarn/eslint-8.25.0 2022-10-14 08:51:52 +02:00
Wouter Boereboom
2d3eccf188 Merge pull request #1017 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.40.0
Bump @typescript-eslint/eslint-plugin from 5.39.0 to 5.40.0
2022-10-14 08:51:42 +02:00
dependabot[bot]
962c8d62cd Bump @typescript-eslint/eslint-plugin from 5.39.0 to 5.40.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.39.0 to 5.40.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 06:27:51 +00:00
dependabot[bot]
3e134634c0 Bump eslint from 8.24.0 to 8.25.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.24.0 to 8.25.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.24.0...v8.25.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-14 06:27:04 +00:00
Wouter Boereboom
8d7fec9d21 Merge pull request #1018 from Adyen/dependabot/npm_and_yarn/minimist-1.2.7
Bump minimist from 1.2.6 to 1.2.7
2022-10-14 08:24:26 +02:00
Wouter Boereboom
02996d6b9c Merge branch 'develop' into dependabot/npm_and_yarn/minimist-1.2.7 2022-10-14 08:24:03 +02:00
Wouter Boereboom
a3ac8b1144 Merge pull request #1019 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-5.40.0
Bump @typescript-eslint/parser from 5.39.0 to 5.40.0
2022-10-14 08:23:52 +02:00
dependabot[bot]
7e790b6bfb Bump @typescript-eslint/parser from 5.39.0 to 5.40.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.39.0 to 5.40.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 04:02:43 +00:00
dependabot[bot]
3b24e07cd3 Bump minimist from 1.2.6 to 1.2.7
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.6 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.6...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-11 04:02:26 +00:00
Ángel Campos
f382796730 Replace individual codeowners with Adyen JS Github team (#1016) 2022-10-10 13:58:40 +02:00
Wouter Boereboom
1e83db3465 add LEM service to services index 2022-10-06 13:01:02 +02:00
Wouter Boereboom
72d856d1d6 Merge pull request #1013 from Adyen/dependabot/npm_and_yarn/release-it-15.5.0
Bump release-it from 15.4.1 to 15.5.0
2022-10-04 10:25:38 +02:00
Wouter Boereboom
b13a666a84 Merge branch 'develop' into dependabot/npm_and_yarn/release-it-15.5.0 2022-10-04 10:21:38 +02:00
Wouter Boereboom
6f8389e6cc Merge pull request #1011 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-5.39.0
Bump @typescript-eslint/parser from 5.36.2 to 5.39.0
2022-10-04 10:21:28 +02:00
Wouter Boereboom
b15ccd88cb Merge branch 'develop' into dependabot/npm_and_yarn/typescript-eslint/parser-5.39.0 2022-10-04 10:21:21 +02:00
Wouter Boereboom
d9574bcfea Merge pull request #1009 from Adyen/dependabot/npm_and_yarn/dotenv-16.0.3
Bump dotenv from 16.0.1 to 16.0.3
2022-10-04 10:21:12 +02:00
Wouter Boereboom
677fe3cc8e Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-16.0.3 2022-10-04 10:21:05 +02:00
Wouter Boereboom
983f8777e6 Merge pull request #1008 from Adyen/dependabot/npm_and_yarn/vm2-3.9.11
Bump vm2 from 3.9.10 to 3.9.11
2022-10-04 10:20:55 +02:00
Wouter Boereboom
81e4ee018e Merge branch 'develop' into dependabot/npm_and_yarn/vm2-3.9.11 2022-10-04 10:20:44 +02:00
Wouter Boereboom
163446bfab Merge pull request #1007 from Adyen/dependabot/npm_and_yarn/typescript-4.8.4
Bump typescript from 4.8.2 to 4.8.4
2022-10-04 10:20:33 +02:00
dependabot[bot]
0fda83998f Bump release-it from 15.4.1 to 15.5.0
Bumps [release-it](https://github.com/release-it/release-it) from 15.4.1 to 15.5.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.4.1...15.5.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 07:12:53 +00:00
dependabot[bot]
f9ee123b7d Bump dotenv from 16.0.1 to 16.0.3
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.0.1 to 16.0.3.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.0.1...v16.0.3)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 07:12:34 +00:00
dependabot[bot]
ca0d866c18 Bump @typescript-eslint/parser from 5.36.2 to 5.39.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.36.2 to 5.39.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.39.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 07:12:29 +00:00
dependabot[bot]
a3683f6192 Bump typescript from 4.8.2 to 4.8.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.2 to 4.8.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.2...v4.8.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 07:12:14 +00:00
dependabot[bot]
d33a206543 Bump vm2 from 3.9.10 to 3.9.11
Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.10 to 3.9.11.
- [Release notes](https://github.com/patriksimek/vm2/releases)
- [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/patriksimek/vm2/compare/3.9.10...3.9.11)

---
updated-dependencies:
- dependency-name: vm2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 07:11:00 +00:00
Wouter Boereboom
e28a72a6fa Merge pull request #1003 from Adyen/dependabot/npm_and_yarn/eslint-8.24.0
Bump eslint from 8.23.0 to 8.24.0
2022-10-04 09:10:06 +02:00
dependabot[bot]
01503307d0 Bump eslint from 8.23.0 to 8.24.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.23.0 to 8.24.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.23.0...v8.24.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 07:09:18 +00:00
Wouter Boereboom
2b1d2266f3 Merge pull request #1012 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-5.39.0
Bump @typescript-eslint/eslint-plugin from 5.35.1 to 5.39.0
2022-10-04 09:05:50 +02:00
dependabot[bot]
9021e205fc Bump @typescript-eslint/eslint-plugin from 5.35.1 to 5.39.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.35.1 to 5.39.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.39.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 04:03:10 +00:00
jillingk
ad5559c55a [PW-6847] Add support for LEM endpoints (#999)
* Generate models and add services

* Makefile changes and document

* PW-6847: Mocks

* Update src/__tests__/legalEntityManagement.spec.ts

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>

* small fix and renames

* Update src/__tests__/balancePlatform.spec.ts

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>

* modified README and index

* Update src/services/resource/legalEntityManagementResource.ts

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>

* Update src/services/resource/legalEntityManagementResource.ts

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>

Co-authored-by: michaelpa <michael.paul@adyen.com>
Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-09-30 13:48:35 +02:00
jillingk
61a634def0 Merge pull request #997 from Adyen/fix/abort
[PW-7079] fix abort request localterminal API
2022-09-30 11:42:43 +02:00
jillingk
078b120725 Merge branch 'develop' into fix/abort 2022-09-30 11:11:20 +02:00
Michael Paul
0138e148e7 PW-7094: Dynamic title and body for automatic PR (#1006) 2022-09-28 15:34:33 +02:00
Jilling Kingma
aefb0e5e19 made simple if statement instead of catch block 2022-09-28 11:05:55 +02:00
Jilling Kingma
692a133058 return undefined response item 2022-09-19 14:18:46 +02:00
Jilling Kingma
e36af2f7c7 add catch block for nexocryptoexception 2022-09-19 13:28:56 +02:00
Jilling Kingma
9a12c9e46b Changed solution to try catch block and custom error 2022-09-19 11:20:46 +02:00
Jilling Kingma
1d365df9c8 Added jsonResponse empty string catch 2022-09-14 09:34:55 +02:00
Wouter Boereboom
bcdc42bd7a Merge pull request #989 from Adyen/dependabot/npm_and_yarn/release-it-15.4.1
Bump release-it from 15.4.0 to 15.4.1
2022-09-06 08:23:29 +02:00
Wouter Boereboom
d6ae7af069 Merge branch 'develop' into dependabot/npm_and_yarn/release-it-15.4.1 2022-09-06 08:21:21 +02:00
Wouter Boereboom
35542e5bce Merge pull request #991 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-5.36.2
Bump @typescript-eslint/parser from 5.35.1 to 5.36.2
2022-09-06 08:21:06 +02:00
dependabot[bot]
b955690774 Bump @typescript-eslint/parser from 5.35.1 to 5.36.2
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.35.1 to 5.36.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.36.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 04:02:44 +00:00
dependabot[bot]
022f85b343 Bump release-it from 15.4.0 to 15.4.1
Bumps [release-it](https://github.com/release-it/release-it) from 15.4.0 to 15.4.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.4.0...15.4.1)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-01 04:02:28 +00:00
Kilian Brachtendorf
e1f05edba1 update readme links to point to currently supported version of api docs (#982)
update support address pointing to 301 redirect address with invalid certificate
2022-08-29 11:49:05 +02:00
Wouter Boereboom
b8407eac70 Merge pull request #979 from Adyen/dependabot/npm_and_yarn/typescript-4.8.2
Bump typescript from 4.7.4 to 4.8.2
2022-08-29 09:33:19 +02:00
Wouter Boereboom
1f8b6351ce Merge branch 'develop' into dependabot/npm_and_yarn/typescript-4.8.2 2022-08-29 09:30:15 +02:00
Wouter Boereboom
93dad27fca Merge pull request #983 from Adyen/dependabot/npm_and_yarn/eslint-8.23.0
Bump eslint from 8.22.0 to 8.23.0
2022-08-29 09:29:56 +02:00
dependabot[bot]
1b42fa2125 Bump eslint from 8.22.0 to 8.23.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.22.0 to 8.23.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.22.0...v8.23.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-29 04:01:21 +00:00
Michael Paul
d47a876123 Bump Node version for the release workflow (#981) 2022-08-26 14:23:55 +02:00
Wouter Boereboom
20097e6a62 Merge pull request #975 from Adyen/develop
Release 12.0.0
2022-08-26 13:02:42 +02:00
dependabot[bot]
fb170c2f88 Bump typescript from 4.7.4 to 4.8.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 04:01:25 +00:00
dependabot[bot]
b22502026a Bump @typescript-eslint/eslint-plugin from 5.34.0 to 5.35.1 (#977)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.34.0 to 5.35.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.35.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-25 09:10:03 +02:00
dependabot[bot]
18c0498e27 Bump release-it from 15.3.0 to 15.4.0 (#976)
Bumps [release-it](https://github.com/release-it/release-it) from 15.3.0 to 15.4.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.3.0...15.4.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-25 08:30:07 +02:00
dependabot[bot]
e6a03d7483 Bump @typescript-eslint/parser from 5.34.0 to 5.35.1 (#978)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.34.0 to 5.35.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.35.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-25 08:29:50 +02:00
Wouter Boereboom
d9480ffbb9 Merge branch 'main' into develop 2022-08-24 17:07:18 +02:00
Wouter Boereboom
4a6c1218ea Bump version and pre-release fixes (#974)
* Update README.md

* update client API version constant used by payouts

* update package version and remove client js header

* remove some obsolete blank lines
2022-08-24 17:06:07 +02:00
AdyenAutomationBot
26803de094 [create-pull-request] automated change (#973) 2022-08-24 14:25:31 +02:00
AdyenAutomationBot
f6d61eae30 [create-pull-request] automated change (#969)
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-23 11:36:41 +02:00
Wouter Boereboom
41f58990b4 fix unit tests (#972) 2022-08-23 11:29:17 +02:00
dependabot[bot]
15799bbd5b Bump @typescript-eslint/parser from 5.33.1 to 5.34.0 (#970)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.33.1 to 5.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.34.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-23 09:33:46 +02:00
dependabot[bot]
d69ead8926 Bump @typescript-eslint/eslint-plugin from 5.33.1 to 5.34.0 (#971)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.33.1 to 5.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.34.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-23 08:23:29 +02:00
Steeven Labelle
a250acfa21 allow splits terminal for marketplace (#967)
* allow splits terminal for marketplace

* fix: SaleToAcquirerData accept SaleToAcquirerData type or string
2022-08-23 08:23:02 +02:00
Ángel Campos
0b75b1d8f7 updating dependabot reviewers (#966)
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-19 16:34:27 +02:00
Wouter Boereboom
13309b073a remove binlookup interface in favor of generated models (#965)
* remove binlookup interface in favor of generated models

* Update src/typings/index.ts

Fix typo in  typings index.ts

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
Co-authored-by: jillingk <93914435+jillingk@users.noreply.github.com>
2022-08-19 13:56:48 +02:00
jillingk
71c697e102 Merge pull request #955 from Adyen/fix/metadata
added metadata to attribute map
2022-08-18 17:18:31 +02:00
jillingk
e4c7c62807 Merge branch 'develop' into fix/metadata 2022-08-18 17:08:36 +02:00
Michael Paul
de7cd45027 PW-6940: Management API merchant endpoints (#953)
* PW-6940: Update CI workflows

Remove redundant reviewers and push event. Upgrade Node for coverage report.

* PW-6940: Upgrade CodeQL

* PW-6940: Update models

* PW-6940: Add merchant level endpoints

* Revert "PW-6940: Update models"

This reverts commit 1044f2ab1b2ab90fd980588ba35ba5fb6b55d93e.

* PW-6940: Linking services

* PW-6940: Add documentation

* PW-6940: Add unit tests

* PW-6940: Fix delete methods return value

Co-authored-by: Ángel Campos <angel.campos@adyen.com>
Co-authored-by: Alexandros Moraitis <amoraitis@outlook.com>
2022-08-18 13:24:37 +02:00
Alexandros Moraitis
219f51620a Merge branch 'develop' into fix/metadata 2022-08-18 11:55:56 +02:00
dependabot[bot]
371d910fb6 Bump eslint from 8.21.0 to 8.22.0 (#959)
Bumps [eslint](https://github.com/eslint/eslint) from 8.21.0 to 8.22.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.21.0...v8.22.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-18 11:48:58 +02:00
AdyenAutomationBot
e76c16e540 [create-pull-request] automated change (#958)
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-18 11:18:42 +02:00
Wouter Boereboom
45ec478631 Merge branch 'develop' into fix/metadata 2022-08-18 10:40:41 +02:00
dependabot[bot]
390d447093 Bump @typescript-eslint/parser from 5.33.0 to 5.33.1 (#960)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.33.0 to 5.33.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.33.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-08-18 10:40:04 +02:00
Wouter Boereboom
df7f3ad6c5 add BinLookup to model generator pipeline (#963)
* add BinLookup to model generator pipeline

* add binlookup to services list
2022-08-18 09:38:42 +02:00
Wouter Boereboom
d7f5a17296 move payouts from interface models to generated models (#962)
* update makefile so payouts models will be generated

* remove existing interface and use models directory

* reversed duplicate payouts entry
2022-08-18 09:31:55 +02:00
Wouter Boereboom
747f369aa5 Merge branch 'develop' into fix/metadata 2022-08-17 08:42:31 +02:00
dependabot[bot]
86d64e8343 Bump @typescript-eslint/eslint-plugin from 5.33.0 to 5.33.1 (#961)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.33.0 to 5.33.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.33.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-17 08:41:23 +02:00
AdyenAutomationBot
085ac91bf3 [create-pull-request] automated change (#956) 2022-08-10 17:51:04 +02:00
Jilling Kingma
f742cbe542 added metadata to attribute map 2022-08-10 10:06:48 +02:00
dependabot[bot]
19ccff04e5 Bump release-it from 15.2.0 to 15.3.0 (#954)
Bumps [release-it](https://github.com/release-it/release-it) from 15.2.0 to 15.3.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.2.0...15.3.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-10 08:37:07 +02:00
dependabot[bot]
b4b702b1be Bump @typescript-eslint/eslint-plugin from 5.32.0 to 5.33.0 (#952)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.32.0 to 5.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.33.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 11:39:05 +02:00
dependabot[bot]
00acf4841f Bump @typescript-eslint/parser from 5.32.0 to 5.33.0 (#951)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.32.0 to 5.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.33.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-09 11:16:12 +02:00
Michael Paul
7300b9e37b PW-6846: Platforms and financial products - Configuration (#949)
* PW-6846: Add Balance Platform to generator

* PW-6846: Models

* PW-6846: Add configuration options

* PW-6846: Account holders

* PW-6846: Add AccountHolders tests

* PW-6846: Add query string parameters

* PW-6846: Make `AccountHolder.id` optional

The `AccountHolder.id` field is required at the specs level.

It should be optional (or not exist) when sending an update request.

* PW-6846: Add Balance accounts endpoints

* PW-6846: General endpoints

* PW-6846: Add Payment Instruments endpoints

* PW-6846: Add Payment Instrument Groups endpoints

* PW-6846: Add Transaction Rules endpoints

* PW-6846: Fix linting issues
2022-08-09 11:10:53 +02:00
dependabot[bot]
e347851506 Bump @typescript-eslint/eslint-plugin from 5.30.7 to 5.32.0 (#946)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.30.7 to 5.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.32.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 16:02:47 +02:00
dependabot[bot]
c2daccdf56 Bump eslint from 8.20.0 to 8.21.0 (#948)
Bumps [eslint](https://github.com/eslint/eslint) from 8.20.0 to 8.21.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.20.0...v8.21.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 15:44:17 +02:00
dependabot[bot]
a6785cab12 Bump @typescript-eslint/parser from 5.31.0 to 5.32.0 (#947)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.31.0 to 5.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.32.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-04 15:21:13 +02:00
Michael Paul
1b636e98a3 PW-6668: POS Terminal Management API (#922)
* PW-6668: Add resources

* PW-6668: Add models

* PW-6668: Add service

* PW-6668: Add unit tests

* PW-6668: Update readme

* PW-6668: Import models from models.ts

* PW-6668: Deserialize terminal management responses
2022-08-04 15:10:54 +02:00
dependabot[bot]
dd9eca1ede Bump release-it from 15.1.4 to 15.2.0 (#944)
Bumps [release-it](https://github.com/release-it/release-it) from 15.1.4 to 15.2.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.1.4...15.2.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-27 08:19:06 +02:00
Wouter Boereboom
706201f0e2 fix linting warnings for using "any" as type (#927) 2022-07-26 16:05:08 +02:00
Wouter Boereboom
5d00b0cba1 add requestoptions to all checkout requests in order to use idempotency key. update paymentlinks resource creation to prevent code bleed in unit tests (#943) 2022-07-26 14:27:16 +02:00
dependabot[bot]
ca2515ae37 Bump release-it from 15.1.3 to 15.1.4 (#940)
Bumps [release-it](https://github.com/release-it/release-it) from 15.1.3 to 15.1.4.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.1.3...15.1.4)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 13:34:11 +02:00
dependabot[bot]
72f167c36a Bump @typescript-eslint/parser from 5.30.7 to 5.31.0 (#941)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.7 to 5.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.31.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-26 11:34:45 +02:00
Michael Paul
5631c99d12 PW-6832: Parse datetime fields as Date (#936)
* PW-6832: Parse Date for sessions endpoint

* PW-6832: Fix integration test

* PW-6832: Deserialize all Checkout endpoints
2022-07-25 17:12:16 +02:00
Michael Paul
e06f45ed49 PW-6843: Add /debitAccountHolder endpoint (#938)
* PW-6843: Add /debitAccountHolder endpoint

* PW-6843: Fix imports

Co-authored-by: Alexandros Moraitis <amoraitis@outlook.com>
2022-07-25 16:52:24 +02:00
Michael Paul
63c768ee45 PW-6903: Add more services to model generator (#934)
* PW-6903: Add Platforms Account

* PW-6903: Add Payouts

* PW-6903: Add Platforms Fund

* PW-6903: Add Platforms Notification Configuration

* PW-6903: Add Platforms Hosted Onboarding Page

* PW-6903: Add Management API
2022-07-25 11:14:56 +02:00
dependabot[bot]
d7602095b3 Bump acorn from 8.7.1 to 8.8.0 (#937)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.7.1 to 8.8.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.7.1...8.8.0)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-25 09:03:11 +02:00
Wouter Boereboom
c4e1c96736 Pw 6904/management api (#926)
* create first version of management api structure and
"me" endpoints

* change me/allowedOrigins response to fix bug in API Spec file
2022-07-25 08:57:09 +02:00
dependabot[bot]
c335e29869 Bump eslint from 8.19.0 to 8.20.0 (#929)
Bumps [eslint](https://github.com/eslint/eslint) from 8.19.0 to 8.20.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.19.0...v8.20.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 14:30:50 +02:00
dependabot[bot]
1b095f8e7e Bump @typescript-eslint/parser from 5.30.6 to 5.30.7 (#930)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.6 to 5.30.7.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.7/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 14:20:44 +02:00
dependabot[bot]
9505a49ea7 Bump @typescript-eslint/eslint-plugin from 5.30.6 to 5.30.7 (#931)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.30.6 to 5.30.7.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.7/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 14:12:44 +02:00
dependabot[bot]
8eb1708b03 Bump nock from 13.2.8 to 13.2.9 (#933)
Bumps [nock](https://github.com/nock/nock) from 13.2.8 to 13.2.9.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.8...v13.2.9)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 14:05:47 +02:00
dependabot[bot]
7861a0bf0c Bump release-it from 15.1.1 to 15.1.3 (#935)
Bumps [release-it](https://github.com/release-it/release-it) from 15.1.1 to 15.1.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.1.1...15.1.3)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 13:57:38 +02:00
AdyenAutomationBot
6c049d8b0d [create-pull-request] automated change (#932) 2022-07-21 11:59:30 +02:00
Michael Paul
b1f58c3ab1 PW-6881: Generate more models (#915)
* PW-6881: Base generation on checked out branch

* Base the new PR on the current PR's branch

* PW-6881: Set base on checkout

* PW-6881: Generate Stored Value models

* PW-6881: Permission issue

* PW-6881: Run container without root

* PW-6881: Supporting files are required

* PW-6881: Remove debugging event

* PW-6881: Add POS Terminal Management

* PW-6881: Add Classic integration

* PW-6881: Generate Recurring models

* Update README.md

Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-07-19 13:55:16 +02:00
dependabot[bot]
95d4894cab Bump nock from 13.2.7 to 13.2.8 (#910)
Bumps [nock](https://github.com/nock/nock) from 13.2.7 to 13.2.8.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.7...v13.2.8)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-14 16:15:06 +02:00
dependabot[bot]
5d1f89b76a Bump release-it from 15.1.0 to 15.1.1 (#908)
Bumps [release-it](https://github.com/release-it/release-it) from 15.1.0 to 15.1.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.1.0...15.1.1)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-14 15:58:58 +02:00
dependabot[bot]
f868a8027a Bump eslint from 8.16.0 to 8.19.0 (#923)
Bumps [eslint](https://github.com/eslint/eslint) from 8.16.0 to 8.19.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.16.0...v8.19.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-14 15:55:33 +02:00
dependabot[bot]
e31d10504f Bump @typescript-eslint/parser from 5.17.0 to 5.30.6 (#924)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.17.0 to 5.30.6.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.6/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-13 12:08:43 +02:00
dependabot[bot]
612b95437d Bump @typescript-eslint/eslint-plugin from 5.17.0 to 5.30.6 (#925)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.17.0 to 5.30.6.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.6/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-13 11:47:45 +02:00
Wouter Boereboom
0bb8963d94 update HOP API (#921)
* update HOP API

* update typings index

* add storedValue to typings index
2022-07-12 16:39:21 +02:00
Wouter Boereboom
0a835c55be update recurringService to v68 (#919)
* update recurringService to v68

* remove actual api calls from unit tests and remove superfluous file headers
2022-07-12 10:47:09 +02:00
Wouter Boereboom
aba0c19859 Pw 6826/storedvalue api (#918)
* merge modifications service with checkout service and add cardDetails endpoint to checkout service

* add classic integration/payment API types and service to library

* add unit test for cardDetails endpoint

* fix unit tests for binlookup

* PW-6663: Do not run model generation on every PR

* remove inconsistent e2e/unit hybrid test for binlookup

* add storedValue API

* upgrade linter packages and fix linting issues in repo

* add storedValue API to Readme

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-07-12 10:44:19 +02:00
jillingk
1e60855be9 set value of qrcode to proper value stated in docs (#900)
Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-07-11 15:09:48 +02:00
AdyenAutomationBot
9943b41589 [create-pull-request] automated change (#917) 2022-07-08 14:51:48 +02:00
Wouter Boereboom
a479c38bf1 Pw 6663/fix checkout + payments services (#903)
* merge modifications service with checkout service and add cardDetails endpoint to checkout service

* add classic integration/payment API types and service to library

* add unit test for cardDetails endpoint

* fix unit tests for binlookup

* PW-6663: Do not run model generation on every PR

* remove inconsistent e2e/unit hybrid test for binlookup

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-07-06 09:51:49 +02:00
Michael Paul
55c924f925 PW-6591: Add new job to generate models (#902)
* PW-6591: Add new job to generate models

* PW-6591: Point to checkout spec

* PW-6591: Use generator from Docker image

* PW-6591: Reset templates to defaults

* PW-6591: Updating templates

* PW-6591: Propose changes via PR

* PW-6591: PR via external action

* PW-6591: Based on develop

* PW-6591: Update PR details

* PW-6591: Pin generator to v5.4.0

* PW-6591: Updating templates

Keep previous property template and move custom SaleToAcquirerData serializer to template.

* PW-6591: Author PR as Adyen bot

* PW-6591: Update author
2022-06-30 10:57:01 +02:00
dependabot[bot]
020a392239 Bump release-it from 15.0.0 to 15.1.0 (#904)
Bumps [release-it](https://github.com/release-it/release-it) from 15.0.0 to 15.1.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/15.0.0...15.1.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 13:57:30 +02:00
dependabot[bot]
47f587d43b Bump typescript from 4.7.3 to 4.7.4 (#901)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.3...v4.7.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-06-21 16:45:05 +02:00
dependabot[bot]
a60f810c8f Bump nock from 13.2.6 to 13.2.7 (#897)
Bumps [nock](https://github.com/nock/nock) from 13.2.6 to 13.2.7.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.6...v13.2.7)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-06-21 16:42:14 +02:00
Michael Paul
e52ac64370 Merge pull request #896 from Adyen/PW-6592
PW-6592: Publish on NPM automatically
2022-06-21 10:19:42 +02:00
Michael Paul
f579c306b1 Merge branch 'develop' into PW-6592 2022-06-21 10:11:40 +02:00
Michael Paul
f236355f7c Merge pull request #899 from Adyen/PW-6628
PW-6628: Update ReversalRequest model
2022-06-21 10:11:27 +02:00
Michael Paul
5a5a3c618a Merge branch 'develop' into PW-6628 2022-06-20 13:28:36 +02:00
Michael Paul
7b23bcd23c Merge branch 'develop' into PW-6592 2022-06-20 11:33:38 +02:00
Wouter Boereboom
dc8499f13c add openapi templates to repo (#890)
* add openapi templates to repo

* remove ASCII header from template
2022-06-20 11:31:07 +02:00
Michael Paul
75243ebd6e PW-6628: Serialize SaleToAcquirerData
Using same option (base64 encoded JSON string) on all terminal requests.
2022-06-17 08:20:55 +00:00
Michael Paul
e3f8eef013 PW-6628: Test adding currency to a refund request
Remove duplicated data provider when running on CI. Make it a single
control variable.
2022-06-16 13:30:27 +00:00
Michael Paul
0f9ec5d59d PW-6628: Update ReversalRequest model 2022-06-15 13:24:05 +00:00
Michael Paul
cc2811555b PW-6592: Publish on NPM automatically 2022-06-14 17:15:58 +02:00
Zaid Dreakh
58673103cd Merge pull request #894 from Adyen/develop
Release 11.0.0
2022-06-13 16:00:24 +02:00
Zaid Dreakh
467a04b215 Merge pull request #895 from Adyen/updateVersionNumbers
updated version numbers
2022-06-13 14:55:49 +02:00
zaid
097cd658e5 updated v numbers 2022-06-13 14:54:30 +02:00
Zaid Dreakh
699e1e52ea Merge pull request #893 from Adyen/dependabot/npm_and_yarn/typescript-4.7.3
Bump typescript from 4.6.3 to 4.7.3
2022-06-13 14:39:18 +02:00
Zaid Dreakh
c1ab1018b8 Merge pull request #892 from Adyen/dependabot/npm_and_yarn/nock-13.2.6
Bump nock from 13.2.4 to 13.2.6
2022-06-13 14:39:02 +02:00
Zaid Dreakh
3c4f9409e5 Merge pull request #884 from Adyen/dependabot/npm_and_yarn/ts-auto-mock-3.6.2
Bump ts-auto-mock from 3.5.1 to 3.6.2
2022-06-13 14:38:50 +02:00
Zaid Dreakh
57b658c917 Merge branch 'develop' into dependabot/npm_and_yarn/nock-13.2.6 2022-06-13 14:37:25 +02:00
Zaid Dreakh
f3e24c0ebc Merge branch 'develop' into dependabot/npm_and_yarn/typescript-4.7.3 2022-06-13 14:37:17 +02:00
Zaid Dreakh
040002305c Merge pull request #885 from Adyen/dependabot/npm_and_yarn/dotenv-16.0.1
Bump dotenv from 16.0.0 to 16.0.1
2022-06-13 14:37:06 +02:00
Zaid Dreakh
78782a8fa6 Merge branch 'develop' into dependabot/npm_and_yarn/ts-auto-mock-3.6.2 2022-06-13 14:36:58 +02:00
Zaid Dreakh
f16612a3ba Merge pull request #881 from Adyen/dependabot/npm_and_yarn/types/jest-27.5.0
Bump @types/jest from 27.4.1 to 27.5.0
2022-06-13 14:36:42 +02:00
dependabot[bot]
9fe7879b35 Bump ts-auto-mock from 3.5.1 to 3.6.2
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 3.5.1 to 3.6.2.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/3.5.1...3.6.2)

---
updated-dependencies:
- dependency-name: ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 09:19:07 +00:00
dependabot[bot]
b075c7a1f6 Bump typescript from 4.6.3 to 4.7.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.7.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 09:18:42 +00:00
dependabot[bot]
25cfb74feb Bump nock from 13.2.4 to 13.2.6
Bumps [nock](https://github.com/nock/nock) from 13.2.4 to 13.2.6.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.4...v13.2.6)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-13 09:18:30 +00:00
Zaid Dreakh
d34a08303a Merge pull request #889 from Adyen/main-test-ci 2022-06-13 11:16:36 +02:00
Zaid Dreakh
9f3ee679e8 Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-16.0.1 2022-06-13 11:15:23 +02:00
Zaid Dreakh
25f31ca4c1 Merge branch 'develop' into dependabot/npm_and_yarn/types/jest-27.5.0 2022-06-13 11:14:41 +02:00
Zaid Dreakh
48419f14d9 Merge pull request #880 from Adyen/dependabot/npm_and_yarn/release-it-15.0.0
Bump release-it from 14.14.2 to 15.0.0
2022-06-13 11:14:24 +02:00
Zaid Dreakh
86191a0669 Merge branch 'develop' into main-test-ci 2022-06-13 11:09:55 +02:00
Zaid Dreakh
05345cdbd8 Merge branch 'develop' into dependabot/npm_and_yarn/types/jest-27.5.0 2022-06-13 11:09:26 +02:00
Zaid Dreakh
55418abc73 Merge branch 'develop' into dependabot/npm_and_yarn/release-it-15.0.0 2022-06-13 11:09:06 +02:00
Zaid Dreakh
c746566a20 Merge pull request #891 from Adyen/PW-6674
PW-6674/upgrade Checkout API to v69
2022-06-10 13:45:32 +02:00
zaid
9494be4675 test 12, 14, 16 2022-06-03 12:19:25 +02:00
zaid
ad756cd558 test v14 2022-06-03 12:16:48 +02:00
zaid
65b2ed0875 added any back to catch clauses 2022-06-03 11:23:49 +02:00
zaid
32adeb6dc0 attempt to resolve test errors on Github, object of type unknown error 2022-06-03 10:52:25 +02:00
zaid
e6e948ea79 regenerated with license info template added 2022-06-02 23:10:41 +02:00
zaid
4820b13a98 WIP 2022-06-02 22:48:14 +02:00
Wouter Boereboom
c65c440cf7 Merge branch 'develop' into main-test-ci 2022-05-25 11:47:52 +02:00
Wouter Boereboom
bd3df0bef3 update node compatibility 2022-05-24 08:52:47 +02:00
wouterboe
2b0bbd969a remove node 10 from ci workflow 2022-05-23 15:19:33 +02:00
Ángel Campos
ac9dfd99eb Adding exemptLabels to stalebot (#882)
Issues with these labels won't be closed by stalebot:

  - Validating request
  - Bug report
  - Bug
  - Enhancement
  - feature
2022-05-19 14:53:15 +02:00
dependabot[bot]
a2e8fe796b Bump dotenv from 16.0.0 to 16.0.1
Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.0.0 to 16.0.1.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v16.0.0...v16.0.1)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-11 04:02:56 +00:00
dependabot[bot]
79320f3782 Bump @types/jest from 27.4.1 to 27.5.0
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.4.1 to 27.5.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 04:03:01 +00:00
dependabot[bot]
d67047c9b6 Bump release-it from 14.14.2 to 15.0.0
Bumps [release-it](https://github.com/release-it/release-it) from 14.14.2 to 15.0.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.14.2...15.0.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 04:03:36 +00:00
Wouter Boereboom
73adc4cc07 Merge pull request #877 from Adyen/develop
Release 10.3.0
2022-04-28 15:17:20 +02:00
Wouter Boereboom
788d96caa3 Merge branch 'main' into develop 2022-04-28 12:32:08 +02:00
Wouter Boereboom
4235c68811 bump version for release (#876) 2022-04-28 12:30:52 +02:00
Wouter Boereboom
05fefe611a add getTaxForm endpoint to Platform Accounts API (#872) 2022-04-28 12:13:57 +02:00
dependabot[bot]
260ccfcb23 Bump acorn from 8.7.0 to 8.7.1 (#873)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.7.0 to 8.7.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.7.0...8.7.1)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:38:37 +02:00
dependabot[bot]
1b1e5c313f Bump ts-auto-mock from 3.5.0 to 3.5.1 (#874)
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/3.5.0...3.5.1)

---
updated-dependencies:
- dependency-name: ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:34:35 +02:00
dependabot[bot]
29f98d0d04 Bump https-proxy-agent from 5.0.0 to 5.0.1 (#870)
Bumps [https-proxy-agent](https://github.com/TooTallNate/node-https-proxy-agent) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/TooTallNate/node-https-proxy-agent/releases)
- [Commits](https://github.com/TooTallNate/node-https-proxy-agent/compare/5.0.0...5.0.1)

---
updated-dependencies:
- dependency-name: https-proxy-agent
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:25:59 +02:00
dependabot[bot]
55ccd7be5e Bump release-it from 14.12.5 to 14.14.2 (#867)
Bumps [release-it](https://github.com/release-it/release-it) from 14.12.5 to 14.14.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.12.5...14.14.2)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:19:01 +02:00
dependabot[bot]
610b2d044a Bump async from 3.2.1 to 3.2.3 (#875)
Bumps [async](https://github.com/caolan/async) from 3.2.1 to 3.2.3.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/master/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v3.2.1...v3.2.3)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:15:51 +02:00
dependabot[bot]
74885378da Bump typescript from 4.6.2 to 4.6.3 (#863)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.2 to 4.6.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.2...v4.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:14:22 +02:00
dependabot[bot]
a29eab08c8 Bump ts-jest from 27.1.3 to 27.1.4 (#862)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.1.3 to 27.1.4.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/v27.1.4/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.1.3...v27.1.4)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-28 11:06:57 +02:00
dependabot[bot]
d301b91dec Bump minimist from 1.2.5 to 1.2.6 (#861)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-04-01 08:26:38 +02:00
dependabot[bot]
25a4e12335 Bump jest-ts-auto-mock from 2.0.0 to 2.1.0 (#857)
Bumps [jest-ts-auto-mock](https://github.com/Typescript-TDD/jest-ts-auto-mock) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/Typescript-TDD/jest-ts-auto-mock/releases)
- [Commits](https://github.com/Typescript-TDD/jest-ts-auto-mock/commits)

---
updated-dependencies:
- dependency-name: jest-ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-01 08:26:12 +02:00
dependabot[bot]
66764d762f Bump typescript from 4.5.5 to 4.6.2 (#856)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.5 to 4.6.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.5...v4.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-03 14:40:31 +01:00
dependabot[bot]
5dd32b61a0 Bump @types/jest from 27.4.0 to 27.4.1 (#855)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.4.0 to 27.4.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 08:11:45 +01:00
dependabot[bot]
a37613ee48 Bump release-it from 14.12.4 to 14.12.5 (#854)
Bumps [release-it](https://github.com/release-it/release-it) from 14.12.4 to 14.12.5.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.12.4...14.12.5)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 08:09:32 +01:00
dependabot[bot]
aa4a6c283c Bump jest from 27.5.0 to 27.5.1 (#851)
Bumps [jest](https://github.com/facebook/jest) from 27.5.0 to 27.5.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.5.0...v27.5.1)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-09 08:28:14 +01:00
dependabot[bot]
3c7db932d5 Bump nock from 13.2.3 to 13.2.4 (#848)
Bumps [nock](https://github.com/nock/nock) from 13.2.3 to 13.2.4.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.3...v13.2.4)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-02-08 08:18:27 +01:00
dependabot[bot]
a68a494875 Bump jest from 27.4.7 to 27.5.0 (#847)
Bumps [jest](https://github.com/facebook/jest) from 27.4.7 to 27.5.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.7...v27.5.0)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2022-02-08 08:18:08 +01:00
Wouter Boereboom
79aec0524d fix maskedPAN (#849)
Changed maskedPAN field name to MaskedPan
2022-02-07 10:01:39 +01:00
dependabot[bot]
35b4d4ddfc Bump nock from 13.2.2 to 13.2.3 (#845)
Bumps [nock](https://github.com/nock/nock) from 13.2.2 to 13.2.3.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.2...v13.2.3)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-04 11:09:23 +01:00
dependabot[bot]
3c425fd918 Bump dotenv from 15.0.0 to 16.0.0 (#844)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 15.0.0 to 16.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v15.0.0...v16.0.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-03 10:12:23 +01:00
Wouter Boereboom
7df995e632 Merge pull request #843 from Adyen/develop
Release 10.2.0
2022-02-03 10:07:39 +01:00
Wouter Boereboom
0cd8da6dea Merge branch 'main' into develop 2022-02-01 13:44:10 +01:00
wouterboe
dc1f8352d1 update package version to 10.2.0 2022-02-01 13:41:12 +01:00
Wouter Boereboom
df2b42f252 add SaleToPOIResponse as field for terminalApiResponse (#842) 2022-02-01 13:36:48 +01:00
Wouter Boereboom
dd3b4eec1b Fix/recurring detail container (#808)
* introduced container class for RecurringDetail

* added test for recurring container

* Update src/__tests__/recurring.spec.ts

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>

* Update src/typings/recurring/recurringDetailContainer.ts

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>

* Update test

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
2022-02-01 08:30:47 +01:00
dependabot[bot]
fba3731f48 Bump dotenv from 14.2.0 to 15.0.0 (#841)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 14.2.0 to 15.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v14.2.0...v15.0.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-01 08:22:25 +01:00
dependabot[bot]
f285a6b079 Bump node-fetch from 2.6.5 to 2.6.7 (#840)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.5 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.5...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-31 13:42:47 +01:00
dependabot[bot]
a7bbdcfd5d Bump release-it from 14.12.3 to 14.12.4 (#835)
Bumps [release-it](https://github.com/release-it/release-it) from 14.12.3 to 14.12.4.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.12.3...14.12.4)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-31 13:41:33 +01:00
dependabot[bot]
c725323592 Bump typescript from 4.5.4 to 4.5.5 (#834)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.5.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 08:12:50 +01:00
dependabot[bot]
18608d624e Bump dotenv from 14.1.0 to 14.2.0 (#832)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 14.1.0 to 14.2.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v14.1.0...v14.2.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-18 13:07:17 +01:00
dependabot[bot]
8389edec56 Bump dotenv from 10.0.0 to 14.1.0 (#831)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 10.0.0 to 14.1.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v10.0.0...v14.1.0)

---
updated-dependencies:
- dependency-name: dotenv
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-17 08:47:07 +01:00
dependabot[bot]
2c29b5ee23 Bump ts-jest from 27.1.2 to 27.1.3 (#830)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.1.2 to 27.1.3.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.1.2...v27.1.3)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-17 08:42:34 +01:00
dependabot[bot]
b535b4037a Bump release-it from 14.12.1 to 14.12.3 (#828)
Bumps [release-it](https://github.com/release-it/release-it) from 14.12.1 to 14.12.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.12.1...14.12.3)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-17 08:38:13 +01:00
dependabot[bot]
1c844faca1 Bump nock from 13.2.1 to 13.2.2 (#826)
Bumps [nock](https://github.com/nock/nock) from 13.2.1 to 13.2.2.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.1...v13.2.2)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-11 08:27:45 +01:00
dependabot[bot]
57890b8921 Bump release-it from 14.11.8 to 14.12.1 (#825)
Bumps [release-it](https://github.com/release-it/release-it) from 14.11.8 to 14.12.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.11.8...14.12.1)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-11 08:21:18 +01:00
dependabot[bot]
31eec15b6f Bump jest from 27.4.6 to 27.4.7 (#824)
Bumps [jest](https://github.com/facebook/jest) from 27.4.6 to 27.4.7.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.6...v27.4.7)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-06 08:10:23 +01:00
dependabot[bot]
63e9db934c Bump jest from 27.4.5 to 27.4.6 (#823)
Bumps [jest](https://github.com/facebook/jest) from 27.4.5 to 27.4.6.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.5...v27.4.6)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-05 08:12:47 +01:00
dependabot[bot]
bf1b43dc10 Bump acorn from 8.6.0 to 8.7.0 (#821)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.6.0 to 8.7.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.6.0...8.7.0)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-31 08:21:46 +01:00
dependabot[bot]
2d4b7bad90 Bump @types/jest from 27.0.3 to 27.4.0 (#822)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.3 to 27.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-31 08:19:06 +01:00
dependabot[bot]
c4eabd0f12 Bump ts-jest from 27.1.1 to 27.1.2 (#820)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.1.1 to 27.1.2.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.1.1...v27.1.2)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-12-20 07:58:46 +01:00
dependabot[bot]
89eb4dc9c4 Bump jest from 27.4.4 to 27.4.5 (#819)
Bumps [jest](https://github.com/facebook/jest) from 27.4.4 to 27.4.5.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.4...v27.4.5)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-20 07:58:17 +01:00
dependabot[bot]
14839a0cf0 Bump typescript from 4.5.3 to 4.5.4 (#818)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.3...v4.5.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-14 07:56:18 +01:00
dependabot[bot]
dec39db6f9 Bump jest from 27.4.3 to 27.4.4 (#817)
Bumps [jest](https://github.com/facebook/jest) from 27.4.3 to 27.4.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.3...v27.4.4)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-13 08:09:24 +01:00
dependabot[bot]
7ad73abab1 Bump typescript from 4.5.2 to 4.5.3 (#816)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.2 to 4.5.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-10 07:30:54 +01:00
dependabot[bot]
e17a22db15 Bump ts-jest from 27.1.0 to 27.1.1 (#815)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.1.0 to 27.1.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.1.0...v27.1.1)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-09 07:47:50 +01:00
dependabot[bot]
89a613ada7 Bump ts-jest from 27.0.7 to 27.1.0 (#814)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.7 to 27.1.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.7...v27.1.0)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 08:15:46 +01:00
Ángel Campos
bb294b9bfd Renaming master to main in README.md (#810)
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-12-02 08:49:04 +01:00
dependabot[bot]
f2bcb49e79 Bump jest from 27.4.0 to 27.4.3 (#813)
Bumps [jest](https://github.com/facebook/jest) from 27.4.0 to 27.4.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.0...v27.4.3)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 08:41:46 +01:00
dependabot[bot]
aeb40ff24c Bump jest from 27.3.1 to 27.4.0 (#811)
Bumps [jest](https://github.com/facebook/jest) from 27.3.1 to 27.4.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.3.1...v27.4.0)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-30 07:58:15 +01:00
Wouter Boereboom
a43dd78955 Update CODEOWNERS (#809)
added @michaelpaul  to codeowners
2021-11-29 08:37:04 +01:00
dependabot[bot]
bc9a87fccd Bump ttypescript from 1.5.12 to 1.5.13 (#807)
Bumps [ttypescript](https://github.com/cevek/ttypescript) from 1.5.12 to 1.5.13.
- [Release notes](https://github.com/cevek/ttypescript/releases)
- [Commits](https://github.com/cevek/ttypescript/commits)

---
updated-dependencies:
- dependency-name: ttypescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-26 07:59:20 +01:00
dependabot[bot]
41ad8f5ecc Bump release-it from 14.11.7 to 14.11.8 (#806)
Bumps [release-it](https://github.com/release-it/release-it) from 14.11.7 to 14.11.8.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.11.7...14.11.8)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-22 08:21:26 +01:00
dependabot[bot]
10c3ae21dd Bump nock from 13.2.0 to 13.2.1 (#801)
Bumps [nock](https://github.com/nock/nock) from 13.2.0 to 13.2.1.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.2.0...v13.2.1)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-19 09:20:55 +01:00
dependabot[bot]
a5acf3dfc5 Bump release-it from 14.11.6 to 14.11.7 (#802)
Bumps [release-it](https://github.com/release-it/release-it) from 14.11.6 to 14.11.7.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.11.6...14.11.7)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-11-19 07:58:29 +01:00
dependabot[bot]
d900d83063 Bump typescript from 4.4.4 to 4.5.2 (#803)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.4 to 4.5.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.4...v4.5.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-11-19 07:58:09 +01:00
dependabot[bot]
a43e4d16fd Bump @types/jest from 27.0.2 to 27.0.3 (#804)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.2 to 27.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-11-19 07:57:52 +01:00
dependabot[bot]
93ee32094d Bump acorn from 8.5.0 to 8.6.0 (#805)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.5.0 to 8.6.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.5.0...8.6.0)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-19 07:57:29 +01:00
Wouter Boereboom
1b697c993e Merge pull request #800 from Adyen/develop
Release 10.1.0
2021-11-10 08:08:39 +01:00
Wouter Boereboom
829ecbdbf8 Merge branch 'master' into develop 2021-11-09 10:16:24 +01:00
Wouter Boereboom
a857cde90c bumped to version 10.1.0 (#799) 2021-11-09 10:15:17 +01:00
dependabot[bot]
ee68e81587 Bump @typescript-eslint/eslint-plugin from 4.31.2 to 4.33.0 (#797)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.31.2 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 08:02:05 +01:00
dependabot[bot]
af6b48fa44 Bump @typescript-eslint/parser from 4.31.2 to 4.33.0 (#798)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.31.2 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 07:59:27 +01:00
dependabot[bot]
aa75019671 Bump nock from 13.1.4 to 13.2.0 (#796)
Bumps [nock](https://github.com/nock/nock) from 13.1.4 to 13.2.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.1.4...v13.2.0)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-11-08 08:06:12 +01:00
Wouter Boereboom
f7d158b7e1 updated platforms notification types (#795)
* updated platforms notification types

* fixed bug in generated types

* fixed bug in businessDetails listedUltimateParentCompany array
2021-11-08 08:05:44 +01:00
Bas Maassen
26fcf54030 Merge pull request #794 from Adyen/develop
Release 10.0.0
2021-10-28 13:23:04 +02:00
Wouter Boereboom
1b0a89cf68 Merge branch 'master' into develop 2021-10-21 15:01:32 +02:00
Wouter Boereboom
8691fc9bdf Merge pull request #793 from Adyen/fix_merge_conflicts
fix merge conflicts with master
2021-10-21 14:54:11 +02:00
Wouter Boereboom
dd35012405 fix merge conflicts with master 2021-10-21 12:53:04 +00:00
Bas Maassen
c710018feb Bumped the versions (#792) 2021-10-21 14:44:27 +02:00
Sergio Bergamini
932b5e6659 Fix #787 (https://github.com/Adyen/adyen-node-api-library/issues/787) (#788) 2021-10-21 12:08:43 +02:00
Bas Maassen
cea53fbc7c PW 5483 Checkout Sessions and Donations(#789)
* added sessions and donations endpoint
* Added test and mock
2021-10-20 11:29:38 +02:00
dependabot[bot]
7809c5b3d5 Bump jest from 27.3.0 to 27.3.1 (#790)
Bumps [jest](https://github.com/facebook/jest) from 27.3.0 to 27.3.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.3.0...v27.3.1)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 09:55:56 +02:00
dependabot[bot]
d9e5046320 Bump nock from 13.1.3 to 13.1.4 (#791)
Bumps [nock](https://github.com/nock/nock) from 13.1.3 to 13.1.4.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.1.3...v13.1.4)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 09:40:46 +02:00
dependabot[bot]
1b0995b75a Bump ts-jest from 27.0.5 to 27.0.7 (#786)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.5 to 27.0.7.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.5...v27.0.7)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 08:35:59 +02:00
dependabot[bot]
3d0ad7922c Bump jest from 27.2.5 to 27.3.0 (#785)
Bumps [jest](https://github.com/facebook/jest) from 27.2.5 to 27.3.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.2.5...v27.3.0)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 08:17:28 +02:00
dependabot[bot]
c2ea07f5a7 Bump typescript from 4.4.3 to 4.4.4 (#782)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.3...v4.4.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-14 08:37:26 +02:00
dependabot[bot]
24050833e0 Bump jest from 27.2.4 to 27.2.5 (#781)
Bumps [jest](https://github.com/facebook/jest) from 27.2.4 to 27.2.5.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.2.4...v27.2.5)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-11 07:50:05 +02:00
dependabot[bot]
0f5be9dc1a Bump @typescript-eslint/parser from 4.32.0 to 4.33.0 (#780)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.32.0 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 08:09:05 +02:00
dependabot[bot]
482a3c09d6 Bump @typescript-eslint/eslint-plugin from 4.32.0 to 4.33.0 (#779)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.32.0 to 4.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.33.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 08:05:49 +02:00
dependabot[bot]
f660e40545 Bump @typescript-eslint/eslint-plugin from 4.31.2 to 4.32.0 (#776)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.31.2 to 4.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.32.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-30 14:23:49 +02:00
dependabot[bot]
c04567a9f8 Bump jest from 27.2.2 to 27.2.4 (#778)
Bumps [jest](https://github.com/facebook/jest) from 27.2.2 to 27.2.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.2.2...v27.2.4)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-30 07:55:26 +02:00
dependabot[bot]
7fce7e7d65 Bump @typescript-eslint/parser from 4.31.2 to 4.32.0 (#775)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.31.2 to 4.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.32.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-30 07:54:47 +02:00
Wouter Boereboom
7b72a28dea Release version 9.1.0 (#772)
Release v9.1.0
2021-09-28 07:54:40 +02:00
Wouter Boereboom
87ffe8f7bc Merge pull request #774 from Adyen/fix/release
Fix/release
2021-09-27 15:34:50 +02:00
Wouter Boereboom
873faa548b Merge branch 'develop' into fix/release 2021-09-27 15:32:18 +02:00
Wouter Boereboom
1f37bc34d2 merge master back into develop 2021-09-27 15:30:52 +02:00
Wouter Boereboom
12067aa15a Merge pull request #773 from Adyen/fix/release
fixed merge conflicts with master
2021-09-27 15:24:20 +02:00
Wouter Boereboom
c88e2a8515 fixed merge conflicts with master 2021-09-27 15:20:48 +02:00
Wouter Boereboom
ec673c5608 Fixed version in package.json 2021-09-27 14:57:47 +02:00
Wouter Boereboom
751a71cc09 bumped version for release, last typo catch (#771) 2021-09-27 14:54:54 +02:00
Wouter Boereboom
e4de89f4bc Pw 5326/update notification models (#751)
* updated notification types & fixed eslint updates

* updated lockfile
2021-09-27 14:36:28 +02:00
Wouter Boereboom
9d464a83d6 added type exports to root file (#755)
* added type exports to root file

* added type exports to root file

* changed structure of typing imports thus fixing linting errors

* removed hard-coded merchant account to fix checkout tests
2021-09-27 14:22:44 +02:00
Wouter Boereboom
eee36893a9 Fix/local terminal api bug (#769)
* removed hard-coded merchant account to fix checkout tests

* fixed case mismatch on saleToPOIRequest serialization

* fix unit tests due to org secret changes
2021-09-27 14:13:24 +02:00
dependabot[bot]
5f5892b6a0 Bump jest from 27.2.1 to 27.2.2 (#770)
Bumps [jest](https://github.com/facebook/jest) from 27.2.1 to 27.2.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.2.1...v27.2.2)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 08:02:52 +02:00
dependabot[bot]
b24e0ffd0b Bump @typescript-eslint/eslint-plugin from 4.31.0 to 4.31.2 (#764)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.31.0 to 4.31.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.2/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 09:36:53 +02:00
dependabot[bot]
e89583b2d3 Bump jest from 27.1.1 to 27.2.1 (#765)
Bumps [jest](https://github.com/facebook/jest) from 27.1.1 to 27.2.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.1.1...v27.2.1)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 09:09:33 +02:00
dependabot[bot]
4c346e291c Bump tmpl from 1.0.4 to 1.0.5 (#767)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-23 09:00:38 +02:00
dependabot[bot]
767c209212 Bump release-it from 14.11.5 to 14.11.6 (#768)
Bumps [release-it](https://github.com/release-it/release-it) from 14.11.5 to 14.11.6.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.11.5...14.11.6)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-23 09:00:17 +02:00
dependabot[bot]
6645a508e1 Bump @typescript-eslint/parser from 4.31.0 to 4.31.2 (#766)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.31.0 to 4.31.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-23 08:59:51 +02:00
dependabot[bot]
7d69afd91b Bump @types/jest from 27.0.1 to 27.0.2 (#763)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.1 to 27.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-23 08:58:57 +02:00
dependabot[bot]
a536c09784 Bump ts-auto-mock from 3.4.0 to 3.5.0 (#757)
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/3.4.0...3.5.0)

---
updated-dependencies:
- dependency-name: ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-23 08:58:22 +02:00
dependabot[bot]
1aa67b715e Bump typescript from 4.4.2 to 4.4.3 (#756)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.4.2...v4.4.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-23 08:55:55 +02:00
dependabot[bot]
d421fc586e Bump typescript from 4.3.5 to 4.4.2 (#742)
* Bump typescript from 4.3.5 to 4.4.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump typescript from 4.3.5 to 4.4.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix types for updated version of typescript

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <wouter.boereboom@adyen.com>
2021-09-10 08:10:56 +02:00
dependabot[bot]
1954248804 Bump @typescript-eslint/parser from 4.30.0 to 4.31.0 (#750)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.30.0 to 4.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 07:57:54 +02:00
dependabot[bot]
cd1d460b95 Bump jest from 27.1.0 to 27.1.1 (#753)
Bumps [jest](https://github.com/facebook/jest) from 27.1.0 to 27.1.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.1.0...v27.1.1)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 07:53:36 +02:00
dependabot[bot]
306156af83 Bump @typescript-eslint/eslint-plugin from 4.30.0 to 4.31.0 (#749)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.30.0 to 4.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.31.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-09-07 07:52:39 +02:00
dependabot[bot]
648e4bb055 Bump acorn from 8.4.1 to 8.5.0 (#748)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.4.1 to 8.5.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.4.1...8.5.0)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-07 07:52:03 +02:00
dependabot[bot]
091c237d06 Bump ts-auto-mock from 3.3.6 to 3.4.0 (#747)
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 3.3.6 to 3.4.0.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/3.3.6...3.4.0)

---
updated-dependencies:
- dependency-name: ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-03 16:59:31 +02:00
dependabot[bot]
a40925de1c Bump @typescript-eslint/eslint-plugin from 4.29.3 to 4.30.0 (#746)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.3 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-31 08:07:20 +02:00
dependabot[bot]
1ae41e1e02 Bump @typescript-eslint/parser from 4.29.3 to 4.30.0 (#745)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.3 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-31 07:59:48 +02:00
dependabot[bot]
b94647b060 Bump jest from 27.0.6 to 27.1.0 (#744)
Bumps [jest](https://github.com/facebook/jest) from 27.0.6 to 27.1.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.0.6...v27.1.0)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 08:43:51 +02:00
dependabot[bot]
14570afa70 Bump ts-auto-mock from 3.3.5 to 3.3.6 (#743)
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 3.3.5 to 3.3.6.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/3.3.5...3.3.6)

---
updated-dependencies:
- dependency-name: ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 08:28:31 +02:00
dependabot[bot]
a2195b0384 Bump nock from 13.1.2 to 13.1.3 (#741)
Bumps [nock](https://github.com/nock/nock) from 13.1.2 to 13.1.3.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.1.2...v13.1.3)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-26 07:52:12 +02:00
dependabot[bot]
30ddae4cee Bump @typescript-eslint/eslint-plugin from 4.29.2 to 4.29.3 (#738)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.29.2 to 4.29.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.3/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-24 08:48:02 +02:00
dependabot[bot]
e398942fbf Bump eslint from 6.8.0 to 7.32.0 (#737)
Bumps [eslint](https://github.com/eslint/eslint) from 6.8.0 to 7.32.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v6.8.0...v7.32.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-08-24 07:47:47 +02:00
dependabot[bot]
4e24fd0de9 Bump @typescript-eslint/parser from 4.29.2 to 4.29.3 (#739)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.2 to 4.29.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.3/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-24 07:46:58 +02:00
Wouter Boereboom
f533ef9e28 update package.json (#736)
* update package.json

* fix linting
2021-08-23 09:38:07 +02:00
dependabot[bot]
a26d599503 Bump typescript and ts-auto-mock (#733)
Bumps [typescript](https://github.com/Microsoft/TypeScript) and [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock). These dependencies needed to be updated together.

Updates `typescript` from 3.9.10 to 4.3.5
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.10...v4.3.5)

Updates `ts-auto-mock` from 2.7.0 to 3.3.5
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/2.7.0...3.3.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: ts-auto-mock
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-08-23 07:47:41 +02:00
dependabot[bot]
e19c944644 Bump ts-jest from 27.0.4 to 27.0.5 (#734)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.4 to 27.0.5.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.4...v27.0.5)

---
updated-dependencies:
- dependency-name: ts-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-08-23 07:45:02 +02:00
dependabot[bot]
e7cd862d0d Bump nock from 13.1.1 to 13.1.2 (#735)
Bumps [nock](https://github.com/nock/nock) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.1.1...v13.1.2)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 07:44:31 +02:00
Wouter Boereboom
7d562d6ecf updated jest (#732)
* updated jest

* removed yarn from dependencies

* removed package-lock file in favor of yarn.lock

* fixed bug caught by jest upgrade
2021-08-20 11:50:30 +02:00
dependabot[bot]
1d084469ce Bump release-it from 14.11.3 to 14.11.5 (#731)
Bumps [release-it](https://github.com/release-it/release-it) from 14.11.3 to 14.11.5.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.11.3...14.11.5)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 07:38:22 +02:00
dependabot[bot]
294e1e2e74 Bump @types/jest from 27.0.0 to 27.0.1 (#730)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.0 to 27.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 07:42:02 +02:00
dependabot[bot]
99a525a97a Bump path-parse from 1.0.6 to 1.0.7 (#729)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-11 07:53:39 +02:00
dependabot[bot]
89e0d37108 Bump @types/jest from 26.0.24 to 27.0.0 (#728)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.24 to 27.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-11 07:51:14 +02:00
dependabot[bot]
3b3f68604c Bump release-it from 14.11.0 to 14.11.3 (#727)
Bumps [release-it](https://github.com/release-it/release-it) from 14.11.0 to 14.11.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.11.0...14.11.3)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-10 07:49:37 +02:00
dependabot[bot]
04a6260f97 Bump release-it from 14.10.1 to 14.11.0 (#726)
Bumps [release-it](https://github.com/release-it/release-it) from 14.10.1 to 14.11.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.10.1...14.11.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-09 07:53:28 +02:00
Wouter Boereboom
1d5afb8ab6 Update package.json
Bump version
2021-08-04 17:53:31 +02:00
Wouter Boereboom
bcd0724873 Release v9.0.0 (#724)
- Regenerate Terminal Cloud Types
- Updated Modifications service to use the checkout modification endpoints in favor of the classic integration modification endpoints.
2021-08-04 17:41:13 +02:00
Wouter Boereboom
9d3f345b57 Merge branch 'master' into develop 2021-08-02 17:01:18 +02:00
Wouter Boereboom
4f3a84c63e Merge pull request #720 from Adyen/PW-5161/update_terminal_api
Pw 5161/update terminal api
2021-08-02 16:50:15 +02:00
Wouter Boereboom
b0f21188a0 Merge branch 'develop' into PW-5161/update_terminal_api 2021-08-02 16:45:40 +02:00
Wouter Boereboom
ef94f38cc7 Merge pull request #722 from Adyen/PW-5177/update_modifications_api
Pw 5177/update modifications api
2021-08-02 16:44:24 +02:00
Wouter Boereboom
2c34316e04 added file headers to all typings files 2021-07-30 17:00:37 +02:00
Wouter Boereboom
d36b1d2d14 Merge branch 'PW-5161/update_terminal_api' of github.com:Adyen/adyen-node-api-library into PW-5161/update_terminal_api 2021-07-30 16:53:53 +02:00
Wouter Boereboom
437ad21add reintroduced + updated file headers 2021-07-30 16:53:30 +02:00
Wouter Boereboom
d2922e4e22 Merge branch 'develop' into PW-5161/update_terminal_api 2021-07-28 15:54:25 +02:00
Wouter Boereboom
e71dc9e033 Merge branch 'develop' into PW-5177/update_modifications_api 2021-07-27 08:49:24 +02:00
Wouter Boereboom
48fafea931 unit test fixes 2021-07-26 16:26:16 +02:00
Wouter Boereboom
a850d88462 removed applicationInfo from modification requests + updated isCI parameter for modification tests 2021-07-26 16:18:03 +02:00
Wouter Boereboom
9521f2093c regenerated Checkout Models + implemented updated modifications API in favor of classic integration 2021-07-26 15:55:35 +02:00
Wouter Boereboom
cef63a9e95 Merge pull request #721 from Adyen/dependabot/npm_and_yarn/release-it-14.10.1
Bump release-it from 14.10.0 to 14.10.1
2021-07-26 07:41:33 +02:00
dependabot[bot]
8143e0fec6 Bump release-it from 14.10.0 to 14.10.1
Bumps [release-it](https://github.com/release-it/release-it) from 14.10.0 to 14.10.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.10.0...14.10.1)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 04:03:46 +00:00
Wouter Boereboom
0ebdaa6a49 Merge branch 'PW-4977/regenerate_platforms_account_types' into develop 2021-07-21 14:02:35 +02:00
Wouter Boereboom
a21f14e143 updated terminal api types. fixed capitalization in service classes 2021-07-21 14:01:10 +02:00
Wouter Boereboom
b55d576e82 Merge pull request #718 from Adyen/dependabot/npm_and_yarn/types/jest-26.0.24
Bump @types/jest from 26.0.23 to 26.0.24
2021-07-07 07:45:13 +02:00
dependabot[bot]
b168f928bb Bump @types/jest from 26.0.23 to 26.0.24
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.23 to 26.0.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-07 04:02:54 +00:00
Wouter Boereboom
74966689d9 Merge pull request #717 from Adyen/dependabot/npm_and_yarn/nock-13.1.1
Bump nock from 13.1.0 to 13.1.1
2021-07-05 07:47:40 +02:00
dependabot[bot]
b287026a3c Bump nock from 13.1.0 to 13.1.1
Bumps [nock](https://github.com/nock/nock) from 13.1.0 to 13.1.1.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.1.0...v13.1.1)

---
updated-dependencies:
- dependency-name: nock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-05 04:05:29 +00:00
Wouter Boereboom
6e14b3068c Merge pull request #716 from Adyen/dependabot/npm_and_yarn/coveralls-3.1.1
Bump coveralls from 3.1.0 to 3.1.1
2021-06-29 07:46:47 +02:00
dependabot[bot]
1227acadc0 Bump coveralls from 3.1.0 to 3.1.1
Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](https://github.com/nickmerwin/node-coveralls/compare/v3.1.0...3.1.1)

---
updated-dependencies:
- dependency-name: coveralls
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-29 04:04:53 +00:00
Wouter Boereboom
bc441b3158 Merge pull request #714 from Adyen/develop
Release v8.2.0
2021-06-25 13:39:00 +02:00
Wouter Boereboom
37951acdca Merge branch 'master' into develop 2021-06-25 11:55:16 +02:00
Wouter Boereboom
c43335c06a Merge pull request #715 from Adyen/dependabot/npm_and_yarn/acorn-8.4.1
Bump acorn from 8.4.0 to 8.4.1
2021-06-25 07:55:54 +02:00
dependabot[bot]
01ff16c725 Bump acorn from 8.4.0 to 8.4.1
Bumps [acorn](https://github.com/acornjs/acorn) from 8.4.0 to 8.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.4.0...8.4.1)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-25 04:04:12 +00:00
Wouter Boereboom
a18bb1aff9 Merge pull request #713 from Adyen/dependabot/npm_and_yarn/color-string-1.5.5
Bump color-string from 1.5.3 to 1.5.5
2021-06-24 07:52:57 +02:00
dependabot[bot]
572a66ede6 Bump color-string from 1.5.3 to 1.5.5
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-24 05:51:45 +00:00
Wouter Boereboom
e4b8084351 Bump version for release 2021-06-24 07:51:00 +02:00
Wouter Boereboom
662e6b66bd Merge pull request #712 from Adyen/PW-4977/regenerate_platforms_account_types
updated platformAccounts API types
2021-06-23 12:11:41 +02:00
Attila Kiss
c82ea29d48 Merge branch 'develop' into PW-4977/regenerate_platforms_account_types 2021-06-21 10:01:19 +02:00
dependabot[bot]
96a319f2dd Bump typescript from 3.9.9 to 3.9.10 (#710)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.9 to 3.9.10.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.9...v3.9.10)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Attila Kiss <42297201+cyattilakiss@users.noreply.github.com>
2021-06-21 10:01:07 +02:00
dependabot[bot]
b509a7abbb Bump release-it from 14.9.0 to 14.10.0 (#711)
Bumps [release-it](https://github.com/release-it/release-it) from 14.9.0 to 14.10.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.9.0...14.10.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-21 09:56:15 +02:00
wouterboe
4882931b1f updated platformAccounts API types 2021-06-21 08:54:25 +02:00
Wouter Boereboom
0c856c7e2e Merge pull request #707 from Adyen/dependabot/npm_and_yarn/glob-parent-5.1.2
Bump glob-parent from 5.1.1 to 5.1.2
2021-06-15 15:38:06 +02:00
Wouter Boereboom
5e3648a588 Merge branch 'develop' into dependabot/npm_and_yarn/glob-parent-5.1.2 2021-06-15 15:36:07 +02:00
Wouter Boereboom
28e73ec578 Merge pull request #708 from Adyen/dependabot/npm_and_yarn/release-it-14.9.0
Bump release-it from 14.7.0 to 14.9.0
2021-06-15 15:35:54 +02:00
dependabot[bot]
b907389641 Bump glob-parent from 5.1.1 to 5.1.2
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-15 13:34:02 +00:00
Wouter Boereboom
6e147a6319 Merge branch 'develop' into dependabot/npm_and_yarn/release-it-14.9.0 2021-06-15 15:33:18 +02:00
Wouter Boereboom
0dc23ad151 Merge pull request #709 from Adyen/dependabot/npm_and_yarn/acorn-8.4.0
Bump acorn from 8.3.0 to 8.4.0
2021-06-15 15:32:57 +02:00
dependabot[bot]
99453af227 Bump acorn from 8.3.0 to 8.4.0
Bumps [acorn](https://github.com/acornjs/acorn) from 8.3.0 to 8.4.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.3.0...8.4.0)

---
updated-dependencies:
- dependency-name: acorn
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 04:05:27 +00:00
dependabot[bot]
7fe303e5f1 Bump release-it from 14.7.0 to 14.9.0
Bumps [release-it](https://github.com/release-it/release-it) from 14.7.0 to 14.9.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.7.0...14.9.0)

---
updated-dependencies:
- dependency-name: release-it
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 04:04:46 +00:00
Wouter Boereboom
f5f220bfb9 Merge pull request #705 from Adyen/develop
Release 8.1.1
2021-06-04 16:31:00 +02:00
Wouter Boereboom
2656571798 Merge branch 'master' into develop 2021-06-04 16:14:44 +02:00
Wouter Boereboom
06e82d3ea2 Bump version for release 2021-06-04 16:01:43 +02:00
Wouter Boereboom
8e2591e8b4 Merge pull request #704 from Adyen/PW-4817/update_terminalApi
updated saleToAcquirerData type
2021-06-04 16:00:57 +02:00
Wouter Boereboom
bd2efdc25f Merge branch 'develop' into PW-4817/update_terminalApi 2021-06-04 15:58:38 +02:00
Wouter Boereboom
7271586f83 Merge pull request #702 from Adyen/dependabot/npm_and_yarn/acorn-8.3.0
Bump acorn from 8.2.4 to 8.3.0
2021-06-04 15:58:27 +02:00
Wouter Boereboom
3b7473089c Merge branch 'develop' into dependabot/npm_and_yarn/acorn-8.3.0 2021-06-04 15:54:06 +02:00
Wouter Boereboom
6dfb8c4608 Merge pull request #701 from Adyen/dependabot/npm_and_yarn/nock-13.1.0
Bump nock from 13.0.11 to 13.1.0
2021-06-04 15:53:55 +02:00
wouterboe
1d1b139170 updated saleToAcquirerData type and added metadata fields to mock object to confirm they can be added 2021-06-03 17:07:03 +02:00
dependabot[bot]
85844dca28 Bump acorn from 8.2.4 to 8.3.0
Bumps [acorn](https://github.com/acornjs/acorn) from 8.2.4 to 8.3.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.2.4...8.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-01 04:04:35 +00:00
dependabot[bot]
4ae97882eb Bump nock from 13.0.11 to 13.1.0
Bumps [nock](https://github.com/nock/nock) from 13.0.11 to 13.1.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.11...v13.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-01 04:04:00 +00:00
Wouter Boereboom
a426257011 Merge pull request #699 from samcottle/readme-update
Changed PHP > NodeJS in readme.md
2021-05-31 09:35:43 +02:00
Wouter Boereboom
115e156039 Merge branch 'develop' into readme-update 2021-05-31 09:34:15 +02:00
Wouter Boereboom
f9c140e5ad Merge pull request #700 from Adyen/dependabot/npm_and_yarn/ws-7.4.6
Bump ws from 7.3.1 to 7.4.6
2021-05-31 09:33:59 +02:00
dependabot[bot]
348747c5cf Bump ws from 7.3.1 to 7.4.6
Bumps [ws](https://github.com/websockets/ws) from 7.3.1 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.3.1...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-30 18:36:48 +00:00
Sam Cottle
6a235ea765 Changed PHP > NodeJS in readme.md 2021-05-29 11:28:21 +02:00
Wouter Boereboom
7879c61e20 Merge pull request #695 from dmfilipenko/patch-1
Exclude .github from npm package
2021-05-28 10:33:44 +02:00
Wouter Boereboom
fdb6c9a9d5 Merge branch 'develop' into patch-1 2021-05-28 10:20:26 +02:00
Wouter Boereboom
64168e81f3 Merge pull request #697 from Adyen/dependabot/npm_and_yarn/dotenv-10.0.0
Bump dotenv from 9.0.2 to 10.0.0
2021-05-28 10:20:07 +02:00
Attila Kiss
9df9d65ede Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-10.0.0 2021-05-28 09:43:10 +02:00
dependabot[bot]
ceb2a7024f Bump release-it from 14.6.2 to 14.7.0 (#698)
Bumps [release-it](https://github.com/release-it/release-it) from 14.6.2 to 14.7.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.6.2...14.7.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com>
2021-05-28 09:42:48 +02:00
Wouter Boereboom
4fc117b83b Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-10.0.0 2021-05-26 14:29:22 +02:00
Wouter Boereboom
1a9b686f92 Merge pull request #696 from Adyen/msilvagarcia-patch-1
My people need me
2021-05-26 14:29:01 +02:00
dependabot[bot]
7d0accca2d Bump dotenv from 9.0.2 to 10.0.0
Bumps [dotenv](https://github.com/motdotla/dotenv) from 9.0.2 to 10.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v9.0.2...v10.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-24 04:06:00 +00:00
Marcos Garcia
33e02dda69 My people need me
👾
2021-05-21 13:43:50 +02:00
Dmytro Filipenko
ef5ac43290 Exclude .github from npm package 2021-05-20 17:24:33 +08:00
dependabot[bot]
c9ab19fa02 Bump dotenv from 9.0.0 to 9.0.2 (#693)
Bumps [dotenv](https://github.com/motdotla/dotenv) from 9.0.0 to 9.0.2.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v9.0.0...v9.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-14 10:18:36 +02:00
Wouter Boereboom
5af7223368 Merge pull request #690 from Adyen/dependabot/npm_and_yarn/dotenv-9.0.1
Bump dotenv from 9.0.0 to 9.0.1
2021-05-11 17:10:03 +02:00
Wouter Boereboom
ef25f08907 Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-9.0.1 2021-05-11 17:08:01 +02:00
Wouter Boereboom
38664eb805 Merge pull request #692 from Adyen/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.8.8 to 2.8.9
2021-05-11 17:07:38 +02:00
Wouter Boereboom
1bccc3669a Merge branch 'develop' into dependabot/npm_and_yarn/hosted-git-info-2.8.9 2021-05-11 17:04:32 +02:00
Wouter Boereboom
6fa60b78a3 Merge pull request #685 from Adyen/pw-4640/modification_service_tests
Pw 4640/modification service tests
2021-05-11 17:03:36 +02:00
Wouter Boereboom
6ccee7a97c Merge branch 'develop' into pw-4640/modification_service_tests 2021-05-10 16:56:21 +02:00
dependabot[bot]
d914354d2b Bump hosted-git-info from 2.8.8 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.8.8...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 14:56:15 +00:00
Wouter Boereboom
f5191e1ca0 Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-9.0.1 2021-05-10 16:55:29 +02:00
Wouter Boereboom
78c2762639 Merge pull request #688 from Adyen/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.19 to 4.17.21
2021-05-10 16:55:10 +02:00
dependabot[bot]
4711ca629a Bump dotenv from 9.0.0 to 9.0.1
Bumps [dotenv](https://github.com/motdotla/dotenv) from 9.0.0 to 9.0.1.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 11:45:03 +00:00
Wouter Boereboom
3cde27162d Merge branch 'develop' into dependabot/npm_and_yarn/lodash-4.17.21 2021-05-10 13:30:24 +02:00
dependabot[bot]
34da0e2344 Bump release-it from 14.6.1 to 14.6.2 (#691)
Bumps [release-it](https://github.com/release-it/release-it) from 14.6.1 to 14.6.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.6.1...14.6.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 12:01:37 +02:00
Wouter Boereboom
d51209559d Merge branch 'develop' into pw-4640/modification_service_tests 2021-05-10 08:50:46 +02:00
wouterboe
5ed145542a added unhappy flow tests to modification service spec 2021-05-10 08:49:45 +02:00
Wouter Boereboom
a2b4465f66 Merge pull request #689 from Adyen/develop
Release 8.1.0
2021-05-10 07:59:04 +02:00
Wouter Boereboom
b226ea13bb Merge branch 'master' into develop 2021-05-07 15:01:09 +02:00
dependabot[bot]
fb5bca50ff Bump lodash from 4.17.19 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.19...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-07 12:57:41 +00:00
Wouter Boereboom
40e1ae5708 Version bump for release 2021-05-07 14:55:21 +02:00
Wouter Boereboom
e3e95a0449 Merge pull request #684 from Adyen/dependabot/npm_and_yarn/dotenv-9.0.0
Bump dotenv from 8.4.0 to 9.0.0
2021-05-07 14:46:26 +02:00
Wouter Boereboom
72348de349 Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-9.0.0 2021-05-07 14:35:50 +02:00
Wouter Boereboom
83eb23be6e Merge pull request #683 from Adyen/pw-4466/notifyShopper_endpoint
added notifyShopper endpoint to recurring API service
2021-05-07 14:35:34 +02:00
Wouter Boereboom
348077d331 Merge branch 'develop' into pw-4466/notifyShopper_endpoint 2021-05-07 14:11:48 +02:00
Wouter Boereboom
cad082a28e Merge pull request #686 from Adyen/pw-4625/nexocrypto_special_characters
Pw 4625/nexocrypto special characters
2021-05-07 14:11:16 +02:00
wouterboe
96f4875a60 Revert "implemented tests for print receipt request with special characters"
This reverts commit 6b17d1e8cb.
2021-05-06 17:09:07 +02:00
Wouter Boereboom
744a6b3326 Merge pull request #657 from LukeNorris/pos-encoding
Changed encoding from 'ascii' to 'utf-8' to accommodate German special cha…
2021-05-06 16:37:01 +02:00
wouterboe
58734d04a0 Merge branch 'pw-4625/nexocrypto_special_characters' of github.com:Adyen/adyen-node-api-library into pw-4625/nexocrypto_special_characters 2021-05-06 16:34:00 +02:00
wouterboe
b91f9100b2 implemented tests for print receipt request with special characters 2021-05-06 16:33:16 +02:00
Wouter Boereboom
2ab7c65096 Merge branch 'develop' into pos-encoding 2021-05-06 16:13:00 +02:00
LukeNorris
1a265f2e54 changed encodeing to utf-8 in the decrypt function 2021-05-06 15:36:06 +02:00
wouterboe
4c6978cf94 added tests for modification service 2021-05-06 11:27:35 +02:00
wouterboe
9db8ea9399 initial setup modifications tests 2021-05-06 11:27:35 +02:00
dependabot[bot]
2def262914 Bump dotenv from 8.4.0 to 9.0.0
Bumps [dotenv](https://github.com/motdotla/dotenv) from 8.4.0 to 9.0.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v8.4.0...v9.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-06 04:03:44 +00:00
Wouter Boereboom
9f67aef570 Merge branch 'develop' into pw-4466/notifyShopper_endpoint 2021-05-05 15:27:11 +02:00
Wouter Boereboom
cb16293fd2 Merge pull request #682 from Adyen/pw-4628/terminal_live_endpoint
set live endpoint for terminal API in Client
2021-05-05 13:53:46 +02:00
Wouter Boereboom
1150dfdc2b Merge branch 'develop' into pw-4628/terminal_live_endpoint 2021-05-05 13:05:36 +02:00
Wouter Boereboom
a809b74daf Merge pull request #678 from Adyen/pw-4466/recurring_api_update
updated Recurring API types for notifyShopper endpoint
2021-05-05 13:05:16 +02:00
Wouter Boereboom
48699e7e77 Merge branch 'develop' into pw-4466/recurring_api_update 2021-05-05 11:15:36 +02:00
Wouter Boereboom
df9a81cf6c Merge pull request #681 from Adyen/dependabot/npm_and_yarn/dotenv-8.4.0
Bump dotenv from 8.2.0 to 8.4.0
2021-05-05 10:24:03 +02:00
Wouter Boereboom
bf5a6697e1 Merge branch 'develop' into dependabot/npm_and_yarn/dotenv-8.4.0 2021-05-05 10:20:04 +02:00
Wouter Boereboom
3b11ec3cfb Merge pull request #680 from Adyen/dependabot/npm_and_yarn/acorn-8.2.4
Bump acorn from 8.2.2 to 8.2.4
2021-05-05 10:19:47 +02:00
Wouter Boereboom
843d33f5fd Merge branch 'develop' into dependabot/npm_and_yarn/acorn-8.2.4 2021-05-05 10:16:19 +02:00
Wouter Boereboom
41dbb590e0 Merge pull request #679 from Adyen/PW-4626/hotfix_checkout_v67
bug fix in PaymentCompletionDetails
2021-05-05 10:15:47 +02:00
wouterboe
5fa5c33d6b set live endpoint for terminal API in Client 2021-05-05 10:10:42 +02:00
Wouter Boereboom
989e8a3032 Merge branch 'develop' into PW-4626/hotfix_checkout_v67 2021-05-05 10:06:07 +02:00
dependabot[bot]
835638351f Bump dotenv from 8.2.0 to 8.4.0
Bumps [dotenv](https://github.com/motdotla/dotenv) from 8.2.0 to 8.4.0.
- [Release notes](https://github.com/motdotla/dotenv/releases)
- [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md)
- [Commits](https://github.com/motdotla/dotenv/compare/v8.2.0...v8.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-05 04:06:17 +00:00
dependabot[bot]
c4d8acd8e7 Bump acorn from 8.2.2 to 8.2.4
Bumps [acorn](https://github.com/acornjs/acorn) from 8.2.2 to 8.2.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.2.2...8.2.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-05 04:03:33 +00:00
Wouter Boereboom
7b49208071 Merge pull request #676 from Adyen/pw-4389/update_readme
README updated to new template
2021-05-04 16:51:35 +02:00
wouterboe
54bbb3858e bug fix in PaymentCompletionDetails 2021-05-04 16:46:19 +02:00
wouterboe
6b17d1e8cb implemented tests for print receipt request with special characters 2021-05-04 15:28:08 +02:00
wouterboe
32c40b652d added notifyShopper endpoint to recurring API service 2021-05-04 13:21:20 +02:00
wouterboe
601e45d6fe updated Recurring API types for notifyShopper endpoint 2021-05-04 12:44:25 +02:00
wouterboe
19646f7c47 README updated to new template 2021-04-30 17:05:08 +02:00
Wouter Boereboom
db5d40910c Merge pull request #674 from Adyen/develop
Release 8.0.0
2021-04-30 15:59:36 +02:00
Wouter Boereboom
867649debf Update .github/dependabot.yml
wboereboom added

Co-authored-by: Peter Ojo <peterojo@users.noreply.github.com>
2021-04-30 14:51:56 +02:00
Wouter Boereboom
ecbc706777 Merge pull request #675 from Adyen/update_sonarcloud_exlusions
Update sonar-project.properties
2021-04-30 13:03:35 +02:00
Wouter Boereboom
9090dd5746 Update sonar-project.properties
removed test files from Sonarcloud analysis
2021-04-30 12:56:38 +02:00
Wouter Boereboom
4c84199bcf Merge pull request #673 from Adyen/dependabot/npm_and_yarn/acorn-8.2.2
Bump acorn from 8.2.1 to 8.2.2
2021-04-30 12:47:00 +02:00
Wouter Boereboom
207d66b915 Merge branch 'develop' into dependabot/npm_and_yarn/acorn-8.2.2 2021-04-30 11:55:40 +02:00
Wouter Boereboom
642988a892 Merge pull request #672 from samcottle/readme-terminal-api
Added Terminal API to supported APIs
2021-04-30 11:22:36 +02:00
Wouter Boereboom
70756a512e Merge branch 'develop' into dependabot/npm_and_yarn/acorn-8.2.2 2021-04-30 11:22:06 +02:00
Wouter Boereboom
000c3f8a8b Merge branch 'develop' into readme-terminal-api 2021-04-30 11:18:56 +02:00
Wouter Boereboom
92a5495fd8 shopperlocale added to GetOnboardingUrlRequest (#670)
Co-authored-by: wouterboe <wouter.boereboom@adyen.com>
2021-04-30 11:07:53 +02:00
dependabot[bot]
086cf3767a Bump acorn from 8.2.1 to 8.2.2
Bumps [acorn](https://github.com/acornjs/acorn) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.2.1...8.2.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 04:04:31 +00:00
Sam Cottle
7e1010f0e0 Added Terminal API to supported APIs 2021-04-29 20:48:47 +02:00
Wouter Boereboom
67cad90a22 Pw 4327/checkout api v67 (#671)
* update checkout API version

* removed lingering comment

* bump package version

Co-authored-by: wouterboe <wouter.boereboom@adyen.com>
2021-04-29 16:18:32 +02:00
Wouter Boereboom
75cbe49d79 Merge pull request #667 from Adyen/dependabot/npm_and_yarn/acorn-8.2.1
Bump acorn from 8.1.1 to 8.2.1
2021-04-28 14:44:55 +02:00
Wouter Boereboom
aac4537961 Merge branch 'develop' into dependabot/npm_and_yarn/acorn-8.2.1 2021-04-28 14:39:41 +02:00
Wouter Boereboom
b31dc8e237 Merge pull request #669 from Adyen/dependabot/npm_and_yarn/types/jest-26.0.23
Bump @types/jest from 26.0.22 to 26.0.23
2021-04-28 14:30:01 +02:00
dependabot[bot]
e43f264e5d Bump @types/jest from 26.0.22 to 26.0.23
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.22 to 26.0.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-27 04:03:55 +00:00
Wouter Boereboom
14fd047ca6 Merge branch 'develop' into dependabot/npm_and_yarn/acorn-8.2.1 2021-04-26 14:39:49 +02:00
Wouter Boereboom
cf6fd2b4f7 Merge pull request #668 from Adyen/fix/wboereboom_to_codeowners
Update CODEOWNERS
2021-04-26 14:39:34 +02:00
Wouter Boereboom
05c39c762c Update CODEOWNERS 2021-04-26 08:56:54 +02:00
dependabot[bot]
db9362d69a Bump acorn from 8.1.1 to 8.2.1
Bumps [acorn](https://github.com/acornjs/acorn) from 8.1.1 to 8.2.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.1.1...8.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 04:03:17 +00:00
Wouter Boereboom
62dcb76dfe Merge pull request #665 from Adyen/fix/sonarcloud
updated SonarCloud workflow
2021-04-23 11:57:25 +02:00
wouterboe
d10588026c newlines added to new files 2021-04-23 10:15:36 +02:00
wouterboe
84b3cc3405 updated SonarCloud workflow 2021-04-23 10:09:50 +02:00
Wouter Boereboom
f1e13cf374 Merge pull request #661 from Adyen/pw-4382/timesafe_comparison
Pw 4382/timesafe comparison
2021-04-22 16:23:08 +02:00
wouterboe
0f50ac7fdb optional chaining used to increase readability 2021-04-22 16:16:17 +02:00
Wouter Boereboom
63acc897a6 Merge pull request #635 from Adyen/dependabot/npm_and_yarn/jest-ts-auto-mock-2.0.0
Bump jest-ts-auto-mock from 1.0.12 to 2.0.0
2021-04-22 14:58:09 +02:00
dependabot[bot]
a97e9cb9e4 Bump jest-ts-auto-mock from 1.0.12 to 2.0.0
Bumps [jest-ts-auto-mock](https://github.com/Typescript-TDD/jest-ts-auto-mock) from 1.0.12 to 2.0.0.
- [Release notes](https://github.com/Typescript-TDD/jest-ts-auto-mock/releases)
- [Commits](https://github.com/Typescript-TDD/jest-ts-auto-mock/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-22 12:49:06 +00:00
Wouter Boereboom
2fe5954559 Merge pull request #647 from Adyen/dependabot/npm_and_yarn/nock-13.0.11
Bump nock from 13.0.7 to 13.0.11
2021-04-22 14:45:39 +02:00
dependabot[bot]
85a3cab5e1 Bump nock from 13.0.7 to 13.0.11
Bumps [nock](https://github.com/nock/nock) from 13.0.7 to 13.0.11.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.7...v13.0.11)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-22 12:32:54 +00:00
Wouter Boereboom
975cd6d020 Merge pull request #653 from Adyen/dependabot/npm_and_yarn/types/jest-26.0.22
Bump @types/jest from 26.0.20 to 26.0.22
2021-04-22 14:29:33 +02:00
dependabot[bot]
112d9063e7 Bump @types/jest from 26.0.20 to 26.0.22
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.20 to 26.0.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-22 11:33:05 +00:00
Wouter Boereboom
10ce6dff7b Merge pull request #658 from Adyen/dependabot/npm_and_yarn/release-it-14.6.1
Bump release-it from 14.2.2 to 14.6.1
2021-04-22 13:30:07 +02:00
dependabot[bot]
ea80034a46 Bump release-it from 14.2.2 to 14.6.1
Bumps [release-it](https://github.com/release-it/release-it) from 14.2.2 to 14.6.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.2.2...14.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-22 11:23:01 +00:00
Wouter Boereboom
8dc1c0eb60 Merge pull request #663 from Adyen/dependabot/npm_and_yarn/y18n-4.0.3
Bump y18n from 4.0.0 to 4.0.3
2021-04-22 13:20:06 +02:00
dependabot[bot]
8c7e045c17 Bump y18n from 4.0.0 to 4.0.3
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-22 10:59:07 +00:00
Wouter Boereboom
fab95af3ea Merge pull request #659 from Adyen/dependabot/npm_and_yarn/acorn-8.1.1
Bump acorn from 8.0.5 to 8.1.1
2021-04-22 12:58:00 +02:00
wouterboe
1908978e03 increased readability of hmac comparison input conditions 2021-04-21 17:13:24 +02:00
wouterboe
fda407dc93 removed checkout head^2 from codeQL build 2021-04-21 16:37:09 +02:00
dependabot[bot]
92b9f346b7 Bump acorn from 8.0.5 to 8.1.1
Bumps [acorn](https://github.com/acornjs/acorn) from 8.0.5 to 8.1.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.0.5...8.1.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-21 14:33:27 +00:00
wouterboe
0d36b0c140 test added for missing hmac signature 2021-04-21 16:16:59 +02:00
wouterboe
c289d31469 Merge branch 'develop' into pw-4382/timesafe_comparison 2021-04-21 15:24:21 +02:00
wouterboe
b94018e6e3 Merge branch 'pw-4382/timesafe_comparison' of github.com:Adyen/adyen-node-api-library into pw-4382/timesafe_comparison 2021-04-21 15:17:51 +02:00
wouterboe
da147aafa5 added time-safe hmac validation to the hmacValidator utils class 2021-04-21 15:17:02 +02:00
wouterboe
a11a62eb10 implemented timing safe hmac comparison 2021-04-21 15:17:02 +02:00
Wouter Boereboom
a49d273ea0 Merge pull request #660 from Adyen/pw-4240/restore_develop
overwritten develop with current master source
2021-04-21 15:05:00 +02:00
wouterboe
c5d4a200c8 updated github checkout action to v2 to fix coveralls parallel action 2021-04-20 15:36:43 +02:00
wouterboe
b61624b392 overwritten develop with current master source 2021-04-20 13:23:17 +02:00
wouterboe
4a3fb1b2bb implemented timing safe hmac comparison 2021-04-19 17:13:41 +02:00
LukeNorris
3de6af6cdf Changed encoding from ascii to utf-8 to accomodate German special characters in POS print receipt request 2021-04-11 21:45:24 +02:00
Ricardo Ambrogi
54edffa5e3 Update feature_request.md 2021-03-25 09:36:36 +01:00
Ricardo Ambrogi
033b5628f1 Update bug_report.md 2021-03-13 08:16:33 +01:00
Ricardo Ambrogi
31437be75d Update dependabot.yml 2021-02-25 08:04:13 +01:00
dependabot[bot]
a201f7e59a Bump typescript from 3.9.7 to 3.9.9 (#641)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.7 to 3.9.9.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.7...v3.9.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-12 15:12:15 +01:00
dependabot[bot]
66bfceceec Bump nock from 13.0.6 to 13.0.7 (#632)
Bumps [nock](https://github.com/nock/nock) from 13.0.6 to 13.0.7.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.6...v13.0.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcos Garcia <marcos.asgarcia@gmail.com>
2021-02-12 10:45:13 +01:00
peterojo
e676298654 Merge branch 'master' into develop 2021-02-11 11:00:24 +01:00
Peter Ojo
5bd522b80f Merge pull request #640 from Adyen/PW-3895v2
Release v7.0.0
2021-02-10 16:47:13 +01:00
peterojo
bd3c8a0f6b [PW-3895] fix broken test 2021-02-10 16:43:38 +01:00
peterojo
21892df7ff add peterojo to code owners 2021-02-10 16:43:28 +01:00
Peter Ojo
1721ab770f [PW-3895] update checkout API version 2021-02-10 16:43:15 +01:00
Peter Ojo
b671d126ac [PW-3895] update checkout API version (#638)
* [PW-3895] update checkout API version

* add peterojo to code owners

* [PW-3895] fix broken test
2021-02-10 16:25:34 +01:00
dependabot[bot]
7170189560 Bump acorn from 8.0.4 to 8.0.5 (#631)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.0.4 to 8.0.5.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.0.4...8.0.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 09:16:34 +01:00
Ricardo Ambrogi
95f0c56564 Update README.md 2021-01-25 13:38:53 +01:00
dependabot[bot]
760807d978 Bump nock from 13.0.5 to 13.0.6 (#630)
Bumps [nock](https://github.com/nock/nock) from 13.0.5 to 13.0.6.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.5...v13.0.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-22 11:46:39 +01:00
dependabot[bot]
a43473da45 Bump @types/jest from 26.0.19 to 26.0.20 (#628)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.19 to 26.0.20.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-08 06:08:38 +01:00
dependabot[bot]
d63d9fc8c6 Bump jest-ts-auto-mock from 1.0.11 to 1.0.12 (#624)
Bumps [jest-ts-auto-mock](https://github.com/Typescript-TDD/jest-ts-auto-mock) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/Typescript-TDD/jest-ts-auto-mock/releases)
- [Commits](https://github.com/Typescript-TDD/jest-ts-auto-mock/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 10:33:42 +01:00
Ricardo Ambrogi
28b52ecbb0 Pw 3583/http methods (#625)
* updates checkout

* adds support for different http methods and update existing

* rename _request to request. make request private

* rename payout o payouts

* improve how http methods are handled
2021-01-04 08:37:29 +01:00
Ricardo Ambrogi
450c2c77cb [PW-3583]/http methods (#621)
* updates checkout

* adds support for different http methods and update existing

* rename _request to request. make request private

* rename payout o payouts
2020-12-11 08:35:51 +01:00
dependabot[bot]
8464c72aa4 Bump ini from 1.3.5 to 1.3.7 (#623)
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 08:29:54 +01:00
dependabot[bot]
3f1962c5e6 Bump @types/jest from 26.0.18 to 26.0.19 (#622)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.18 to 26.0.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-11 08:20:02 +01:00
dependabot[bot]
d01555af69 Bump @types/jest from 26.0.16 to 26.0.18 (#620)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.16 to 26.0.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-09 09:02:41 +01:00
dependabot[bot]
4f5e9ff799 Bump ts-auto-mock from 2.6.5 to 2.7.0 (#619)
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 2.6.5 to 2.7.0.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/2.6.5...2.7.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-09 08:41:29 +01:00
dependabot[bot]
1cdc125263 Bump @types/jest from 26.0.15 to 26.0.16 (#618)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.15 to 26.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-02 06:02:54 +01:00
dependabot[bot]
57b06ee000 Bump release-it from 14.2.1 to 14.2.2 (#617)
Bumps [release-it](https://github.com/release-it/release-it) from 14.2.1 to 14.2.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.2.1...14.2.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-27 07:35:02 +01:00
Ricardo Ambrogi
a1977ff4c5 Release v6.0.3 2020-11-16 07:26:12 +01:00
Ricardo Ambrogi
2b2cfaa61e Merge branch 'master' into develop 2020-11-16 07:23:48 +01:00
Ricardo Ambrogi
bae6ff9f25 Release v6.0.3
Revert removal of `merchantAccount` from config
2020-11-16 07:22:29 +01:00
KadoBOT
d459f00871 Revert "Remove merchantAccount from Config. (#590)"
This reverts commit 21700d8bb6.
2020-11-16 07:18:17 +01:00
Ricardo Ambrogi
ddf56999b4 Release v6.0.2 2020-11-13 15:00:36 +01:00
Ricardo Ambrogi
0322f35e6b Merge branch 'master' into develop 2020-11-13 14:58:17 +01:00
Ricardo Ambrogi
c35bd577a4 Revert "Release v6.0.2" (#594)
This reverts commit e2bb647e13.
2020-11-13 14:56:54 +01:00
Ricardo Ambrogi
e2bb647e13 Release v6.0.2 (#591)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
Co-authored-by: fredriksmaamo <fredrik.smaamo@sonat.no>
Co-authored-by: Fredrik <46444770+smafre@users.noreply.github.com>
2020-11-13 14:51:06 +01:00
Ricardo Ambrogi
0debcaa793 Merge branch 'master' into develop 2020-11-13 12:40:53 +01:00
Ricardo Ambrogi
9d0be96d8c Release v6.0.2 2020-11-13 12:39:13 +01:00
Ricardo Ambrogi
a27b9b4c45 fix saletoacquirerdata being changed to uppercase (#589) 2020-11-13 12:38:03 +01:00
Fredrik
21700d8bb6 Remove merchantAccount from Config. (#590)
Co-authored-by: fredriksmaamo <fredrik.smaamo@sonat.no>
2020-11-13 12:32:45 +01:00
dependabot[bot]
46a4918b6b Bump nock from 13.0.3 to 13.0.5 (#587)
Bumps [nock](https://github.com/nock/nock) from 13.0.3 to 13.0.5.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.3...v13.0.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-11 07:48:22 +01:00
dependabot[bot]
06d46f81dd Bump ts-loader from 8.0.9 to 8.0.10 (#584)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.9 to 8.0.10.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.9...v8.0.10)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 06:51:55 +01:00
dependabot[bot]
cf4e81a43b Bump ts-loader from 8.0.7 to 8.0.9 (#583)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.7 to 8.0.9.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.7...v8.0.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-05 05:50:43 +01:00
dependabot[bot]
71306af9f8 Bump release-it from 14.2.0 to 14.2.1 (#580)
Bumps [release-it](https://github.com/release-it/release-it) from 14.2.0 to 14.2.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.2.0...14.2.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 09:44:28 +01:00
dependabot[bot]
32e9c38079 Bump ts-loader from 8.0.6 to 8.0.7 (#577)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.6 to 8.0.7.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.6...v8.0.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 07:18:10 +01:00
dependabot[bot]
b4e5165e33 Bump ts-auto-mock from 1.6.2 to 2.6.5 (#576)
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 1.6.2 to 2.6.5.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/1.6.2...2.6.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-22 08:07:06 +02:00
dependabot[bot]
56646c2525 Bump ts-loader from 8.0.5 to 8.0.6 (#575)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.5 to 8.0.6.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.5...v8.0.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-10-21 10:53:35 +02:00
dependabot[bot]
93e69d9255 Bump @types/jest from 26.0.14 to 26.0.15 (#574)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.14 to 26.0.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-21 07:29:13 +02:00
dependabot[bot]
6056b1f0be Bump release-it from 14.1.0 to 14.2.0 (#573)
Bumps [release-it](https://github.com/release-it/release-it) from 14.1.0 to 14.2.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.1.0...14.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-19 08:29:32 +02:00
dependabot[bot]
ec4f46aaf5 Bump ts-loader from 8.0.4 to 8.0.5 (#572)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.4 to 8.0.5.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/8.0.4...v8.0.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-14 07:01:31 +02:00
dependabot[bot]
557d6893ba Bump release-it from 14.0.4 to 14.1.0 (#571)
Bumps [release-it](https://github.com/release-it/release-it) from 14.0.4 to 14.1.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.0.4...14.1.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-12 07:35:48 +02:00
dependabot[bot]
5ed66fd7eb Bump release-it from 14.0.3 to 14.0.4 (#570)
Bumps [release-it](https://github.com/release-it/release-it) from 14.0.3 to 14.0.4.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.0.3...14.0.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-08 07:25:32 +02:00
dependabot[bot]
ba2e24ebe5 Bump acorn from 8.0.3 to 8.0.4 (#568)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.0.3 to 8.0.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.0.3...8.0.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-06 07:32:12 +02:00
dependabot[bot]
514da2cab0 Bump acorn from 8.0.2 to 8.0.3 (#567)
Bumps [acorn](https://github.com/acornjs/acorn) from 8.0.2 to 8.0.3.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.0.2...8.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-05 07:14:40 +02:00
Ricardo Ambrogi
ec35545de0 Merge pull request #566 from Adyen/dependabot/npm_and_yarn/acorn-8.0.2
Bump acorn from 8.0.1 to 8.0.2
2020-10-01 08:04:53 +02:00
dependabot[bot]
830c87d61f Bump acorn from 8.0.1 to 8.0.2
Bumps [acorn](https://github.com/acornjs/acorn) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/8.0.1...8.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-01 04:05:39 +00:00
Ricardo Ambrogi
c37f6f95df Update package.json 2020-09-25 09:45:35 +02:00
Ricardo Ambrogi
487edf3164 Update package.json 2020-09-25 09:45:22 +02:00
Ricardo Ambrogi
5003e70bf5 Update npmpublish.yml 2020-09-25 09:42:26 +02:00
Ricardo Ambrogi
dd7be92a94 Update npmpublish.yml 2020-09-25 09:39:36 +02:00
Ricardo Ambrogi
6e7e62b240 Update npmpublish.yml 2020-09-25 09:37:11 +02:00
Ricardo Ambrogi
ea1da161d0 Merge pull request #565 from Adyen/develop 2020-09-25 09:21:01 +02:00
Ricardo Ambrogi
2ebd05f593 Merge branch 'master' into develop 2020-09-25 09:20:21 +02:00
Ricardo Ambrogi
4128891d4e Update package.json 2020-09-25 09:19:31 +02:00
Ricardo Ambrogi
d8dbb2ebf0 Update .release-it.json 2020-09-25 09:14:34 +02:00
Ricardo Ambrogi
a72692a82e Update npmpublish.yml 2020-09-25 09:11:53 +02:00
Ricardo Ambrogi
6a9987d3e6 Merge pull request #561 from Adyen/develop 2020-09-25 08:58:57 +02:00
KadoBOT
53815b0c43 merge master 2020-09-25 08:49:36 +02:00
Ricardo Ambrogi
b20f579cf0 update API versions (#560) 2020-09-25 08:29:15 +02:00
dependabot[bot]
5f54866a26 Bump ts-loader from 8.0.3 to 8.0.4 (#559)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.3 to 8.0.4.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.3...8.0.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-21 07:45:29 +02:00
dependabot[bot]
c3cc2d9773 Bump @types/jest from 26.0.13 to 26.0.14 (#558)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.13 to 26.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-17 06:51:01 +02:00
dependabot[bot]
7838bd06e5 Bump release-it from 14.0.2 to 14.0.3 (#557)
Bumps [release-it](https://github.com/release-it/release-it) from 14.0.2 to 14.0.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.0.2...14.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-15 07:39:52 +02:00
dependabot[bot]
df64578bd3 Bump acorn from 7.4.0 to 8.0.1 (#556)
Bumps [acorn](https://github.com/acornjs/acorn) from 7.4.0 to 8.0.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/7.4.0...8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-08 08:33:25 +02:00
dependabot[bot]
3d4de26368 Bump ttypescript from 1.5.11 to 1.5.12 (#555)
Bumps [ttypescript](https://github.com/cevek/ttypescript) from 1.5.11 to 1.5.12.
- [Release notes](https://github.com/cevek/ttypescript/releases)
- [Commits](https://github.com/cevek/ttypescript/compare/1.5.11...1.5.12)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-08 08:08:29 +02:00
dependabot[bot]
c873bd4e57 Bump release-it from 14.0.1 to 14.0.2 (#554)
Bumps [release-it](https://github.com/release-it/release-it) from 14.0.1 to 14.0.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/14.0.1...14.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-07 08:09:37 +02:00
dependabot[bot]
57b7b6caff Bump release-it from 13.7.0 to 14.0.1 (#553)
Bumps [release-it](https://github.com/release-it/release-it) from 13.7.0 to 14.0.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.7.0...14.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-04 07:31:48 +02:00
dependabot[bot]
fea4634fce Bump @types/jest from 26.0.12 to 26.0.13 (#550)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.12 to 26.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-03 07:17:15 +02:00
dependabot[bot]
98b1da396d Bump @types/jest from 26.0.10 to 26.0.12 (#548)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-01 08:53:49 +02:00
Ricardo Ambrogi
872f2302cd Revert "Bump @types/node from 14.0.9 to 14.6.1" (#549) 2020-09-01 07:18:06 +02:00
Ricardo Ambrogi
e9e75c379c Merge pull request #546 from Adyen/dependabot/npm_and_yarn/types/node-14.6.1
Bump @types/node from 14.0.9 to 14.6.1
2020-08-28 06:19:08 +02:00
dependabot[bot]
8b63c8fe21 Bump @types/node from 14.0.9 to 14.6.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.9 to 14.6.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-28 04:03:54 +00:00
dependabot[bot]
6f13cfcb50 Bump release-it from 13.6.9 to 13.7.0 (#544)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.9 to 13.7.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.9...13.7.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 08:41:43 +02:00
dependabot[bot]
d33b46c6a2 Bump ttypescript from 1.5.10 to 1.5.11 (#545)
Bumps [ttypescript](https://github.com/cevek/ttypescript) from 1.5.10 to 1.5.11.
- [Release notes](https://github.com/cevek/ttypescript/releases)
- [Commits](https://github.com/cevek/ttypescript/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-26 07:45:53 +02:00
dependabot[bot]
663a8cc6a6 Bump ts-loader from 8.0.2 to 8.0.3 (#543)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.2 to 8.0.3.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.2...v8.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-25 12:35:53 +02:00
dependabot[bot]
009bc4db00 Bump release-it from 13.6.8 to 13.6.9 (#542)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.8 to 13.6.9.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.8...13.6.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-24 07:17:20 +02:00
dependabot[bot]
42a4958ae3 Bump release-it from 13.6.7 to 13.6.8 (#540)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-20 07:56:32 +02:00
dependabot[bot]
783df311ec Bump release-it from 13.6.6 to 13.6.7 (#538)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.6 to 13.6.7.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.6...13.6.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-08-17 09:23:13 +02:00
dependabot[bot]
84d1932e97 Bump @types/jest from 26.0.9 to 26.0.10 (#537)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.9 to 26.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-08-17 08:44:58 +02:00
KadoBOT
8c469e886d fix unit test 2020-08-17 08:08:49 +02:00
KadoBOT
c5dcad9271 fix unit test 2020-08-17 08:07:02 +02:00
Ricardo Ambrogi
368db4455f Update npmpublish.yml (#533) 2020-08-07 06:24:47 +02:00
dependabot[bot]
40b6cd5f1e Bump @types/jest from 26.0.8 to 26.0.9 (#532)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.8 to 26.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-06 06:37:25 +02:00
Ricardo Ambrogi
c60c4b7520 Release 5.0.2-beta.0 2020-08-05 14:32:45 +00:00
Ricardo Ambrogi
e391d8d995 Merge pull request #531 from Adyen/develop
Code cleanup
2020-08-05 16:04:31 +02:00
Ricardo Ambrogi
955aea532c Merge branch 'master' into develop 2020-08-05 13:16:00 +02:00
Ricardo Ambrogi
fb5128c636 Feat/impr release (#530) 2020-08-05 13:13:27 +02:00
dependabot[bot]
164f6ca2b3 Bump @types/jest from 26.0.7 to 26.0.8 (#529)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.7 to 26.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-04 07:44:10 +02:00
dependabot[bot]
1d7c8edefe Bump ts-loader from 8.0.1 to 8.0.2 (#528)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.1...v8.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 07:50:47 +02:00
dependabot[bot]
64c2f008c7 Bump webpack from 4.44.0 to 4.44.1 (#527)
Bumps [webpack](https://github.com/webpack/webpack) from 4.44.0 to 4.44.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.44.0...v4.44.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 07:28:26 +02:00
dependabot[bot]
12223da1a3 Bump nock from 13.0.2 to 13.0.3 (#525)
Bumps [nock](https://github.com/nock/nock) from 13.0.2 to 13.0.3.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.2...v13.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-28 07:03:27 +02:00
dependabot[bot]
9faef744ed Bump release-it from 13.6.5 to 13.6.6 (#523)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.5 to 13.6.6.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.5...13.6.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 07:02:59 +02:00
dependabot[bot]
17a60f6c1f Bump webpack from 4.43.0 to 4.44.0 (#522)
Bumps [webpack](https://github.com/webpack/webpack) from 4.43.0 to 4.44.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.43.0...v4.44.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-27 06:15:04 +02:00
dependabot[bot]
db422acc71 Bump @types/jest from 26.0.5 to 26.0.7 (#521)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.5 to 26.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-24 08:01:16 +02:00
dependabot[bot]
e206679d45 Bump @types/jest from 26.0.4 to 26.0.5 (#518)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.4 to 26.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-20 07:24:02 +02:00
dependabot[bot]
fbe97cf919 Bump typescript from 3.9.6 to 3.9.7 (#516)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-07-17 07:30:04 +02:00
dependabot[bot]
e276cb8e24 Bump ts-loader from 8.0.0 to 8.0.1 (#517)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.0...v8.0.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-17 07:19:35 +02:00
dependabot[bot]
b471905ac3 Bump release-it from 13.6.4 to 13.6.5 (#513)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.4 to 13.6.5.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.4...13.6.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-10 07:46:03 +02:00
dependabot[bot]
86b78c3f92 Bump ts-loader from 7.0.5 to 8.0.0 (#511)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.5 to 8.0.0.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.5...v8.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-09 08:26:03 +02:00
dependabot[bot]
cfd92b904b Bump @types/jest from 26.0.3 to 26.0.4 (#509)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.3 to 26.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-07 06:54:59 +02:00
dependabot[bot]
e3cc8a6c00 Bump webpack-cli from 3.3.11 to 3.3.12 (#505)
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.11 to 3.3.12.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/v3.3.12/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.11...v3.3.12)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-02 08:04:46 +02:00
dependabot[bot]
60704022a1 Bump nock from 13.0.1 to 13.0.2 (#506)
Bumps [nock](https://github.com/nock/nock) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v13.0.1...v13.0.2)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-02 06:56:56 +02:00
dependabot[bot]
a416d7b14a Bump typescript from 3.9.5 to 3.9.6 (#507)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.5 to 3.9.6.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-02 06:56:26 +02:00
dependabot-preview[bot]
77d1cc7751 Create Dependabot config file (#503)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-01 16:59:37 +02:00
dependabot-preview[bot]
d56423560f Bump nock from 13.0.0 to 13.0.1 (#502)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-01 08:30:28 +02:00
dependabot-preview[bot]
ae2031fc5d Bump nock from 12.0.3 to 13.0.0 (#501)
Bumps [nock](https://github.com/nock/nock) from 12.0.3 to 13.0.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v12.0.3...v13.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 08:43:40 +02:00
dependabot-preview[bot]
1499559123 Bump release-it from 13.6.3 to 13.6.4 (#500)
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.3 to 13.6.4.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.3...13.6.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-29 08:09:31 +02:00
dependabot-preview[bot]
d003c45f85 Bump @types/jest from 26.0.1 to 26.0.3 (#498)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.1 to 26.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-26 08:30:17 +02:00
Rik ter Beek
eb13940cb5 Create codeql-analysis.yml 2020-06-26 08:03:15 +02:00
dependabot-preview[bot]
ce91c512ae Bump @types/jest from 26.0.0 to 26.0.1 (#496)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.0 to 26.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-25 06:19:13 +02:00
Ricardo Ambrogi
3a2b899136 Merge pull request #493 from Adyen/dependabot/npm_and_yarn/release-it-13.6.3
Bump release-it from 13.6.2 to 13.6.3
2020-06-15 09:20:28 +02:00
dependabot-preview[bot]
36eb1476ac Bump release-it from 13.6.2 to 13.6.3
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.2 to 13.6.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.2...13.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 06:08:54 +00:00
Ricardo Ambrogi
6b2e2dfb48 Merge pull request #490 from Adyen/develop 2020-06-11 09:51:53 +02:00
Ricardo Ambrogi
d1bd508ea8 Update package.json 2020-06-11 09:51:10 +02:00
Ricardo Ambrogi
69fbcb1f8c Merge pull request #488 from Adyen/hotfix/terminal 2020-06-11 09:48:57 +02:00
Ricardo Ambrogi
7f171af2e1 Merge pull request #489 from Adyen/hotfix/terminal 2020-06-11 09:48:27 +02:00
Ricardo Ambrogi
71748ed815 Merge branch 'develop' into hotfix/terminal 2020-06-11 09:46:07 +02:00
Ricardo Ambrogi
f3cb4cc120 Merge branch 'master' into hotfix/terminal 2020-06-11 09:45:07 +02:00
Ricardo Ambrogi
2ce6878456 Update CODEOWNERS 2020-06-11 09:06:21 +02:00
Ricardo Ambrogi
8ba580b119 Update CODEOWNERS 2020-06-11 09:06:03 +02:00
Ricardo Ambrogi
ae45b10082 Distribution files 2020-06-11 08:49:34 +02:00
Ricardo Ambrogi
050763be7f Changes 2020-06-11 08:49:04 +02:00
Ricardo Ambrogi
eeaae2228a Merge pull request #483 from Adyen/dependabot/npm_and_yarn/types/jest-26.0.0
Bump @types/jest from 25.2.3 to 26.0.0
2020-06-10 08:24:25 +02:00
dependabot-preview[bot]
d0da1382f6 Bump @types/jest from 25.2.3 to 26.0.0
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.3 to 26.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 05:55:50 +00:00
Ricardo Ambrogi
74c6f119a5 Merge pull request #482 from Adyen/develop 2020-06-09 07:56:41 +02:00
Ricardo Ambrogi
65d81d21ff Merge branch 'master' into develop 2020-06-09 07:50:51 +02:00
KadoBOT
e789cfe47e update distribution folder 2020-06-09 07:42:18 +02:00
Ricardo Ambrogi
be6fc4dd3b Update package.json 2020-06-08 09:07:47 +02:00
Ricardo Ambrogi
0157efa658 Merge pull request #472 from Adyen/PW-2466/sale-to-acquirer-data 2020-06-08 09:06:33 +02:00
Ricardo Ambrogi
c13abc979c Merge branch 'develop' into PW-2466/sale-to-acquirer-data 2020-06-08 07:15:46 +02:00
Ricardo Ambrogi
293f7aab74 Merge pull request #478 from Adyen/v4.0.3 2020-06-05 15:29:13 +02:00
Ricardo Ambrogi
e8dc5a7030 Merge branch 'develop' into v4.0.3 2020-06-05 15:26:56 +02:00
Ricardo Ambrogi
09184486f5 Merge pull request #480 from Adyen/v4.0.3
distribution folder
2020-06-05 15:26:42 +02:00
Ricardo Ambrogi
4d34d3da6a distribution folder 2020-06-05 15:23:29 +02:00
Ricardo Ambrogi
51b998a933 Merge pull request #477 from Adyen/hotfix/res-body 2020-06-05 13:32:10 +02:00
Ricardo Ambrogi
b1bc56ebba Merge pull request #476 from Adyen/hotfix/res-body 2020-06-05 13:32:00 +02:00
Ricardo Ambrogi
b5b947af89 Merge branch 'master' into hotfix/res-body 2020-06-05 13:29:50 +02:00
Ricardo Ambrogi
93c5dcde70 Merge branch 'develop' into hotfix/res-body 2020-06-05 13:29:39 +02:00
Ricardo Ambrogi
a9aedd1f41 Change res.body to string 2020-06-05 13:25:34 +02:00
Ricardo Ambrogi
a6008cf52e Merge pull request #475 from Adyen/dependabot/npm_and_yarn/typescript-3.9.5
Bump typescript from 3.9.3 to 3.9.5
2020-06-05 07:50:53 +02:00
dependabot-preview[bot]
ba24d1b634 Bump typescript from 3.9.3 to 3.9.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.3 to 3.9.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.3...v3.9.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-05 05:48:35 +00:00
Ricardo Ambrogi
bca3432865 Terminal type definition files 2020-06-04 11:20:04 +02:00
Ricardo Ambrogi
f21d26680d Refactoring of terminal services to conform new types. 2020-06-04 11:18:39 +02:00
Ricardo Ambrogi
2bc18ccf0f Merge pull request #470 from Adyen/dependabot/npm_and_yarn/types/node-14.0.9
Bump @types/node from 14.0.6 to 14.0.9
2020-06-02 10:37:55 +02:00
dependabot-preview[bot]
1482aeecad Bump @types/node from 14.0.6 to 14.0.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.6 to 14.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 08:28:54 +00:00
Ricardo Ambrogi
6f562cfb32 Merge pull request #469 from Adyen/dependabot/npm_and_yarn/release-it-13.6.2
Bump release-it from 13.6.1 to 13.6.2
2020-06-02 10:26:52 +02:00
dependabot-preview[bot]
077822ea5c Bump release-it from 13.6.1 to 13.6.2
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.1 to 13.6.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.1...13.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 08:24:04 +00:00
Ricardo Ambrogi
45e1d2d5ab Merge pull request #468 from Adyen/dependabot/npm_and_yarn/types/node-14.0.6
Bump @types/node from 14.0.5 to 14.0.6
2020-06-02 06:04:14 +02:00
dependabot-preview[bot]
9f6e891c57 Bump @types/node from 14.0.5 to 14.0.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.5 to 14.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 05:58:29 +00:00
Ricardo Ambrogi
b637febde5 Merge pull request #466 from Adyen/hotfix/hmac 2020-05-27 12:39:11 +02:00
Ricardo Ambrogi
7456025d40 Merge pull request #467 from Adyen/hotfix/hmac 2020-05-27 12:38:58 +02:00
Ricardo Ambrogi
c8d2882299 distribution files 2020-05-27 11:01:00 +02:00
Ricardo Ambrogi
ef490a5cdf Add HmacSignature to additionalData.ts and improve hmac validation tests 2020-05-27 10:58:31 +02:00
Ricardo Ambrogi
650e7dc0a5 Release v4.0.0 2020-05-26 06:37:03 +02:00
Ricardo Ambrogi
156d7fa8ea Merge branch 'develop' of https://github.com/Adyen/adyen-node-api-library into develop 2020-05-26 06:34:14 +02:00
Ricardo Ambrogi
ec16ee9f79 Merge branch 'develop' of https://github.com/Adyen/adyen-node-api-library into develop 2020-05-26 06:33:34 +02:00
Ricardo Ambrogi
74d6da71f8 Merge branch 'develop' of https://github.com/Adyen/adyen-node-api-library into develop 2020-05-26 06:22:02 +02:00
Ricardo Ambrogi
c16c6eb367 Release v4.0.0 2020-05-26 06:19:46 +02:00
Ricardo Ambrogi
ed2e6c62d9 Merge branch 'master' into develop 2020-05-26 06:09:22 +02:00
Ricardo Ambrogi
041587e1bb Release v4.0.0 2020-05-26 06:07:05 +02:00
Ricardo Ambrogi
02bab06c16 Merge pull request #460 from Adyen/PW-2436/Notification 2020-05-25 14:32:39 +02:00
Ricardo Ambrogi
ca7ba4e7de Merge branch 'develop' into PW-2436/Notification 2020-05-25 08:29:14 +02:00
Ricardo Ambrogi
30b0a52802 Merge pull request #463 from Adyen/dependabot/npm_and_yarn/ts-loader-7.0.5 2020-05-25 08:05:06 +02:00
dependabot-preview[bot]
2531290761 Bump ts-loader from 7.0.4 to 7.0.5
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.4 to 7.0.5.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.4...v7.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-25 05:58:09 +00:00
Ricardo Ambrogi
62e83058da Merge pull request #461 from Adyen/hotfix/copyright-header 2020-05-22 13:03:46 +02:00
Ricardo Ambrogi
9b6469a228 Merge branch 'PW-2436/Notification' into hotfix/copyright-header 2020-05-22 13:00:27 +02:00
Ricardo Ambrogi
b62e12da1c Merge pull request #462 from Adyen/hotfix/remove-bundle-comments 2020-05-22 12:59:40 +02:00
Ricardo Ambrogi
ddc9e58f72 Remove comments from bundle to reduce size 2020-05-22 12:56:56 +02:00
Ricardo Ambrogi
0ef9b49c5d Update LICENSE 2020-05-22 12:53:54 +02:00
Ricardo Ambrogi
1a96f42b4e Merge branch 'develop' into PW-2436/Notification 2020-05-22 12:44:25 +02:00
Ricardo Ambrogi
4f810936fe Update copyright header 2020-05-22 12:42:48 +02:00
Ricardo Ambrogi
364da4ffde Refactoring of Notification type definitions and Object.serializer 2020-05-22 12:22:04 +02:00
Ricardo Ambrogi
1f24e2a25b Merge pull request #459 from Adyen/dependabot/npm_and_yarn/types/node-14.0.5 2020-05-22 09:19:47 +02:00
dependabot-preview[bot]
725c6d1395 Bump @types/node from 14.0.4 to 14.0.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.4 to 14.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-22 05:40:21 +00:00
Ricardo Ambrogi
771037b40f Merge pull request #458 from Adyen/dependabot/npm_and_yarn/typescript-3.9.3 2020-05-20 08:44:42 +02:00
dependabot-preview[bot]
5e2094cac7 Bump typescript from 3.9.2 to 3.9.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.2 to 3.9.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.9.2...v3.9.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 06:40:59 +00:00
Ricardo Ambrogi
47515994ee Merge pull request #457 from Adyen/dependabot/npm_and_yarn/types/node-14.0.4 2020-05-20 08:39:07 +02:00
dependabot-preview[bot]
f6b065c02e Bump @types/node from 14.0.1 to 14.0.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.0.1 to 14.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-20 05:50:35 +00:00
Ricardo Ambrogi
2c6a23522e Create PULL_REQUEST_TEMPLATE.md 2020-05-19 08:58:16 +02:00
Ricardo Ambrogi
c5cbda16c0 Merge pull request #453 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.34.0 2020-05-19 08:35:00 +02:00
dependabot-preview[bot]
2dccd236f0 Bump @typescript-eslint/parser from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 06:31:30 +00:00
Ricardo Ambrogi
9a9168582f Merge pull request #454 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.34.0 2020-05-19 08:29:41 +02:00
dependabot-preview[bot]
c48a39edfb Bump @typescript-eslint/eslint-plugin from 2.33.0 to 2.34.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.33.0 to 2.34.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.34.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 06:19:25 +00:00
Ricardo Ambrogi
4275dd882b Merge pull request #455 from Adyen/dependabot/npm_and_yarn/types/jest-25.2.3 2020-05-19 08:17:34 +02:00
dependabot-preview[bot]
2a86b795a0 Bump @types/jest from 25.2.2 to 25.2.3
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.2 to 25.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 06:11:06 +00:00
Ricardo Ambrogi
c4c8a61db5 Merge pull request #452 from Adyen/dependabot/npm_and_yarn/release-it-13.6.1 2020-05-18 08:30:08 +02:00
dependabot-preview[bot]
c66137c2eb Bump release-it from 13.6.0 to 13.6.1
Bumps [release-it](https://github.com/release-it/release-it) from 13.6.0 to 13.6.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.6.0...13.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 05:46:27 +00:00
Ricardo Ambrogi
3b2d20b38d Merge pull request #448 from Adyen/dependabot/npm_and_yarn/release-it-13.6.0 2020-05-15 10:57:54 +02:00
dependabot-preview[bot]
657626a0d2 Bump release-it from 13.5.8 to 13.6.0
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.8 to 13.6.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.8...13.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-15 05:33:00 +00:00
Ricardo Ambrogi
c0b8d3112b Merge pull request #447 from Adyen/dependabot/npm_and_yarn/types/jest-25.2.2 2020-05-14 08:07:28 +02:00
dependabot-preview[bot]
494f706b4c Bump @types/jest from 25.2.1 to 25.2.2
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.2.1 to 25.2.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 05:33:56 +00:00
Ricardo Ambrogi
d39753c4e0 Merge pull request #443 from Adyen/dependabot/npm_and_yarn/types/node-14.0.1 2020-05-13 08:12:18 +02:00
dependabot-preview[bot]
4b27e6a4ca Bump @types/node from 13.13.5 to 14.0.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.5 to 14.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 06:00:30 +00:00
Ricardo Ambrogi
2b98915e7f Merge pull request #445 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.33.0 2020-05-13 07:58:47 +02:00
dependabot-preview[bot]
4805613d6f Bump @typescript-eslint/eslint-plugin from 2.32.0 to 2.33.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 05:50:58 +00:00
Ricardo Ambrogi
4f7a05591f Merge pull request #444 from Adyen/dependabot/npm_and_yarn/typescript-3.9.2 2020-05-13 07:49:22 +02:00
dependabot-preview[bot]
c8b00bdce3 Bump typescript from 3.8.3 to 3.9.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.3 to 3.9.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.3...v3.9.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 05:47:34 +00:00
Ricardo Ambrogi
afdd88979a Merge pull request #446 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.33.0 2020-05-13 07:46:00 +02:00
dependabot-preview[bot]
45f5622dcf Bump @typescript-eslint/parser from 2.32.0 to 2.33.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.32.0 to 2.33.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.33.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 05:34:03 +00:00
Rik ter Beek
1972bc281b update readme with a link to contact support 2020-05-13 07:20:37 +02:00
Ricardo Ambrogi
d7314fc765 Merge pull request #442 from Adyen/hotfix/flaky-tests 2020-05-12 15:00:24 +02:00
Ricardo Ambrogi
9a2ea8293c Merge branch 'develop' into hotfix/flaky-tests 2020-05-12 08:32:06 +02:00
Ricardo Ambrogi
ec9d41b047 disable flaky e2e tests 2020-05-12 08:31:16 +02:00
Ricardo Ambrogi
b48722a59f disable flaky e2e tests 2020-05-12 08:24:19 +02:00
Ricardo Ambrogi
f5e73fdff8 Merge pull request #441 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.32.0
Bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0
2020-05-12 07:55:40 +02:00
dependabot-preview[bot]
99ae41c77e Bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.32.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.32.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 05:48:27 +00:00
Ricardo Ambrogi
2617e732d3 Merge pull request #440 from Adyen/dependabot/npm_and_yarn/ts-auto-mock-1.6.2
Bump ts-auto-mock from 1.6.0 to 1.6.2
2020-05-12 07:46:40 +02:00
dependabot-preview[bot]
6299ec0029 Bump ts-auto-mock from 1.6.0 to 1.6.2
Bumps [ts-auto-mock](https://github.com/Typescript-TDD/ts-auto-mock) from 1.6.0 to 1.6.2.
- [Release notes](https://github.com/Typescript-TDD/ts-auto-mock/releases)
- [Changelog](https://github.com/Typescript-TDD/ts-auto-mock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Typescript-TDD/ts-auto-mock/compare/1.6.0...1.6.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 05:44:00 +00:00
Ricardo Ambrogi
9cdb45ba14 Merge pull request #439 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.32.0
Bump @typescript-eslint/parser from 2.31.0 to 2.32.0
2020-05-12 07:42:20 +02:00
dependabot-preview[bot]
098aaeba7d Bump @typescript-eslint/parser from 2.31.0 to 2.32.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.31.0 to 2.32.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.32.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 05:40:15 +00:00
Ricardo Ambrogi
3a174185b4 Merge pull request #438 from Adyen/dependabot/npm_and_yarn/ts-loader-7.0.4
Bump ts-loader from 7.0.3 to 7.0.4
2020-05-12 07:38:45 +02:00
dependabot-preview[bot]
989dc92583 Bump ts-loader from 7.0.3 to 7.0.4
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.3 to 7.0.4.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.3...v7.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 05:36:30 +00:00
Ricardo Ambrogi
2fe10e48f2 Merge pull request #436 from Adyen/dependabot/npm_and_yarn/ts-jest-25.5.1 2020-05-11 07:59:42 +02:00
dependabot-preview[bot]
f91f2b8833 Bump ts-jest from 25.5.0 to 25.5.1
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.5.0 to 25.5.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v25.5.0...v25.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 05:51:50 +00:00
Ricardo Ambrogi
aff77ebe50 Merge pull request #437 from Adyen/dependabot/npm_and_yarn/acorn-7.2.0 2020-05-11 07:49:54 +02:00
dependabot-preview[bot]
6079f82c2b Bump acorn from 7.1.1 to 7.2.0
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.1 to 7.2.0.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/7.1.1...7.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-11 05:40:23 +00:00
Ricardo Ambrogi
10b3d148cb Merge pull request #435 from Adyen/dependabot/npm_and_yarn/ts-loader-7.0.3 2020-05-08 09:18:30 +02:00
dependabot-preview[bot]
8cd4ffe093 Bump ts-loader from 7.0.2 to 7.0.3
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.2 to 7.0.3.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.2...v7.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-08 05:37:01 +00:00
Ricardo Ambrogi
f71b1004d2 Merge pull request #434 from Adyen/develop 2020-05-07 14:19:56 +02:00
Ricardo Ambrogi
1c961eac10 Merge branch 'master' into develop 2020-05-07 14:17:54 +02:00
Ricardo Ambrogi
4ebc4caa53 Release v3.3.0 2020-05-07 14:16:53 +02:00
Ricardo Ambrogi
8c6e961bc4 Merge pull request #433 from Adyen/develop 2020-05-07 14:01:12 +02:00
Ricardo Ambrogi
e00c43c4ae Release v3.2.3 2020-05-07 13:52:18 +02:00
Ricardo Ambrogi
dda64f60bd Merge branch 'develop' of https://github.com/Adyen/adyen-node-api-library into develop 2020-05-07 13:27:04 +02:00
KadoBOT
f0e93cfaa1 Release v3.2.3 2020-05-07 13:21:30 +02:00
KadoBOT
43898a2006 Release v3.2.3 2020-05-07 13:17:32 +02:00
Ricardo Ambrogi
26b8ace53f Merge pull request #419 from Adyen/PW2313/e2e-tests 2020-05-07 13:05:27 +02:00
Ricardo Ambrogi
6746ce7234 Merge branch 'develop' into PW2313/e2e-tests 2020-05-07 08:50:26 +02:00
Ricardo Ambrogi
da8bbd1e4a Merge pull request #432 from Adyen/dependabot/npm_and_yarn/ts-jest-25.5.0 2020-05-07 08:04:18 +02:00
dependabot-preview[bot]
fbab4a3976 Bump ts-jest from 25.4.0 to 25.5.0
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.4.0 to 25.5.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v25.4.0...v25.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-07 05:45:37 +00:00
Ricardo Ambrogi
fd76bdcbea clean platforms.ts 2020-05-06 13:45:01 +02:00
Ricardo Ambrogi
848a655210 Merge pull request #431 from Adyen/PW-2351 2020-05-06 13:29:04 +02:00
Zaid Dreakh
21295f907b merged PW-2313 e2e tests 2020-05-06 11:19:48 +00:00
Zaid Dreakh
fa3997e61a removed some logs & edited fund trasnfer test 2020-05-06 10:41:23 +00:00
Ricardo Ambrogi
5bc903a403 fix eslint warnings 2020-05-06 12:31:45 +02:00
Ricardo Ambrogi
b12e5138fd Merge remote-tracking branch 'origin/PW2313/e2e-tests' into PW2313/e2e-tests
# Conflicts:
#	.eslintrc.js
2020-05-06 12:25:32 +02:00
Ricardo Ambrogi
ca3dfb5c05 remove annoying rules 2020-05-06 12:24:31 +02:00
Ricardo Ambrogi
a466c11577 Merge branch 'develop' into PW2313/e2e-tests 2020-05-06 12:15:39 +02:00
Ricardo Ambrogi
d008b2c76b Merge pull request #424 from Adyen/PW2321/TerminalAPI-AppInfo 2020-05-06 12:15:04 +02:00
Ricardo Ambrogi
2b928554fe Merge pull request #427 from Adyen/PW-2351-Zaid 2020-05-06 12:03:55 +02:00
Ricardo Ambrogi
33738848f1 remove annoying rules 2020-05-06 11:57:41 +02:00
Zaid Dreakh
4006e2957b temp fix for notification configuration list 2020-05-06 09:36:15 +00:00
Zaid Dreakh
27092a0c47 resolved conflicts 2020-05-06 08:23:05 +00:00
Zaid Dreakh
1784fc7d2b removed 2nd timeout 2020-05-06 08:18:14 +00:00
Ricardo Ambrogi
b97d3965a3 Merge pull request #430 from Adyen/dependabot/npm_and_yarn/types/node-13.13.5 2020-05-06 08:46:01 +02:00
dependabot-preview[bot]
cb176ac7d9 Bump @types/node from 13.13.4 to 13.13.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.4 to 13.13.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-06 05:34:47 +00:00
Ricardo Ambrogi
2971260609 Merge pull request #428 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.31.0 2020-05-06 06:47:04 +02:00
dependabot-preview[bot]
184fc29bd2 Bump @typescript-eslint/parser from 2.30.0 to 2.31.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.31.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-06 04:23:00 +00:00
Ricardo Ambrogi
2a9cc41463 Merge pull request #429 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.31.0 2020-05-06 06:21:22 +02:00
dependabot-preview[bot]
561c5e644e Bump @typescript-eslint/eslint-plugin from 2.30.0 to 2.31.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.31.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-05 05:36:25 +00:00
Zaid Dreakh
b04dc8f5e0 All tests passing w one timeout 2020-05-04 13:24:36 +00:00
Ricardo Ambrogi
f449ed060f add updateAccountHolderState 2020-05-04 14:23:07 +02:00
Ricardo Ambrogi
8d2a8ef685 add document content file 2020-05-04 12:41:51 +02:00
Ricardo Ambrogi
8b3cf9e818 pass if err is due account not found 2020-05-04 12:39:32 +02:00
Ricardo Ambrogi
c1cce25a93 Merge remote-tracking branch 'origin/develop' into PW-2351
# Conflicts:
#	src/httpClient/httpURLConnectionClient.ts
2020-05-04 12:34:41 +02:00
Ricardo Ambrogi
33a0b5f2ad remove keys from account api 2020-05-04 10:12:43 +02:00
Zaid Dreakh
91f5025fc7 Merge branch 'PW2313/e2e-tests' into PW-2351
merged PW2313/e2e-tests.
2020-05-04 07:49:35 +00:00
Zaid Dreakh
fbd496c6ae WIP 2020-05-04 07:47:26 +00:00
Ricardo Ambrogi
36cd082c70 Merge pull request #426 from Adyen/dependabot/npm_and_yarn/release-it-13.5.8 2020-05-04 09:25:11 +02:00
dependabot-preview[bot]
c22825b14b Bump release-it from 13.5.7 to 13.5.8
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.7 to 13.5.8.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.7...13.5.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 07:23:49 +00:00
Ricardo Ambrogi
cc4ba61db4 Merge pull request #425 from Adyen/dependabot/npm_and_yarn/jest-25.5.4 2020-05-04 09:22:14 +02:00
dependabot-preview[bot]
961a6fe6ac Bump jest from 25.5.3 to 25.5.4
Bumps [jest](https://github.com/facebook/jest) from 25.5.3 to 25.5.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.5.3...v25.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-04 05:56:56 +00:00
Ricardo Ambrogi
24770e6496 Merge pull request #422 from Adyen/hotfix/http-exception 2020-05-01 14:19:38 +02:00
Ricardo Ambrogi
8ef214c04a Merge branch 'develop' into hotfix/http-exception 2020-05-01 14:17:20 +02:00
Ricardo Ambrogi
9c53e68f5d fix application info being added to non-payment terminal requests 2020-05-01 11:59:40 +02:00
Ricardo Ambrogi
509d9ff772 store payment method 2020-05-01 10:04:10 +02:00
Ricardo Ambrogi
36ac1105f2 Merge remote-tracking branch 'origin/PW2313/e2e-tests' into PW2313/e2e-tests 2020-05-01 09:59:02 +02:00
Ricardo Ambrogi
05a182e256 terminal e2e 2020-05-01 09:58:45 +02:00
Zaid Dreakh
dfff25f2ef WIP platforms e2e tests 2020-05-01 07:47:36 +00:00
Ricardo Ambrogi
2b4b9755ae Update npmpublish.yml 2020-05-01 09:16:38 +02:00
Ricardo Ambrogi
97de2e7a44 Update nodejs.yml 2020-05-01 09:15:55 +02:00
Ricardo Ambrogi
4a299cc2be Update coveralls.yml 2020-05-01 09:15:25 +02:00
Ricardo Ambrogi
03dfa166fd update recurring test 2020-05-01 09:10:17 +02:00
Ricardo Ambrogi
7c869292f2 change contract to recurring 2020-05-01 08:27:19 +02:00
Ricardo Ambrogi
91c0377764 Merge pull request #423 from Adyen/dependabot/npm_and_yarn/jest-25.5.3 2020-05-01 07:57:33 +02:00
dependabot-preview[bot]
3d7b1c1a5d Bump jest from 25.5.2 to 25.5.3
Bumps [jest](https://github.com/facebook/jest) from 25.5.2 to 25.5.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.5.2...v25.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-01 05:54:52 +00:00
Ricardo Ambrogi
03810191ca HttpException Improvement 2020-04-30 08:13:13 +02:00
Ricardo Ambrogi
dfe9904318 Merge pull request #421 from Adyen/dependabot/npm_and_yarn/jest-25.5.2 2020-04-30 07:59:03 +02:00
Ricardo Ambrogi
3a5f877bb3 platforms.spec.ts 2020-04-30 07:55:03 +02:00
dependabot-preview[bot]
9ee89bf030 Bump jest from 25.5.0 to 25.5.2
Bumps [jest](https://github.com/facebook/jest) from 25.5.0 to 25.5.2.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.5.0...v25.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 05:54:58 +00:00
Ricardo Ambrogi
6c2e2eab8e Merge pull request #420 from Adyen/dependabot/npm_and_yarn/ts-loader-7.0.2 2020-04-30 07:53:14 +02:00
dependabot-preview[bot]
74434bc2cc Bump ts-loader from 7.0.1 to 7.0.2
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.1...v7.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-30 05:45:04 +00:00
Ricardo Ambrogi
df18e6a15b recurring.spec.ts test 2020-04-29 13:08:48 +02:00
Ricardo Ambrogi
0cd7e9b48a fix test.skip 2020-04-29 12:55:49 +02:00
Ricardo Ambrogi
2ad8791312 update coveralls.yml and npmpublish.yml 2020-04-29 12:47:48 +02:00
Ricardo Ambrogi
e72ffdbd9d update nodejs workflow 2020-04-29 12:41:19 +02:00
Ricardo Ambrogi
14bfc12d7b payout.spec.ts tests 2020-04-29 12:21:04 +02:00
Ricardo Ambrogi
e39e962d5f fix wrong declineThirdParty.ts endpoint 2020-04-29 12:20:36 +02:00
Ricardo Ambrogi
a9ecf92d3a add dotenv 2020-04-29 11:44:50 +02:00
Ricardo Ambrogi
08181f943f e2e tests 2020-04-29 11:38:08 +02:00
Ricardo Ambrogi
818f739637 Merge pull request #416 from Adyen/dependabot/npm_and_yarn/release-it-13.5.7 2020-04-29 07:43:29 +02:00
dependabot-preview[bot]
9bbf2d59ad Bump release-it from 13.5.6 to 13.5.7
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.6 to 13.5.7.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.6...13.5.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 05:37:30 +00:00
Ricardo Ambrogi
d097d8192c Merge pull request #415 from Adyen/dependabot/npm_and_yarn/jest-25.5.0 2020-04-29 07:35:50 +02:00
dependabot-preview[bot]
ce60399f53 Bump jest from 25.4.0 to 25.5.0
Bumps [jest](https://github.com/facebook/jest) from 25.4.0 to 25.5.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.4.0...v25.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-29 05:24:44 +00:00
Ricardo Ambrogi
53aa0f2a67 Merge pull request #414 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.30.0 2020-04-28 07:59:34 +02:00
dependabot-preview[bot]
4ce37d83cb Bump @typescript-eslint/parser from 2.29.0 to 2.30.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.29.0 to 2.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.30.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 05:55:53 +00:00
Ricardo Ambrogi
a9cbef429e Merge pull request #413 from Adyen/dependabot/npm_and_yarn/release-it-13.5.6 2020-04-28 07:54:05 +02:00
dependabot-preview[bot]
3334d4f361 Bump release-it from 13.5.5 to 13.5.6
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.5 to 13.5.6.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.5...13.5.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 05:47:12 +00:00
Ricardo Ambrogi
bd87b04602 Merge pull request #412 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.30.0 2020-04-28 07:45:28 +02:00
dependabot-preview[bot]
0ed0de56a6 Bump @typescript-eslint/eslint-plugin from 2.29.0 to 2.30.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.29.0 to 2.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.30.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 05:43:29 +00:00
Ricardo Ambrogi
fa9ea5e1c0 Merge pull request #411 from Adyen/dependabot/npm_and_yarn/coveralls-3.1.0 2020-04-28 07:08:25 +02:00
dependabot-preview[bot]
e675f9e87e Bump coveralls from 3.0.14 to 3.1.0
Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.0.14 to 3.1.0.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](https://github.com/nickmerwin/node-coveralls/compare/v3.0.14...v3.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 05:05:46 +00:00
Ricardo Ambrogi
30c80f34e9 Merge pull request #410 from Adyen/dependabot/npm_and_yarn/types/node-13.13.4 2020-04-28 07:04:00 +02:00
dependabot-preview[bot]
a06d96cb6b Bump @types/node from 13.13.2 to 13.13.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.2 to 13.13.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-28 05:01:35 +00:00
Ricardo Ambrogi
3efeb339a7 Merge pull request #403 from Adyen/feature/platforms 2020-04-28 06:59:55 +02:00
Ricardo Ambrogi
5560a93c62 Merge branch 'develop' into feature/platforms 2020-04-28 06:58:08 +02:00
Ricardo Ambrogi
c10993c7b1 Merge pull request #409 from Adyen/dependabot/npm_and_yarn/coveralls-3.0.14 2020-04-24 12:57:30 +02:00
dependabot-preview[bot]
4dbd59139d Bump coveralls from 3.0.13 to 3.0.14
Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.0.13 to 3.0.14.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](https://github.com/nickmerwin/node-coveralls/compare/v3.0.13...v3.0.14)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-24 05:22:28 +00:00
Ricardo Ambrogi
2151034e49 Merge remote-tracking branch 'origin/develop' into feature/platforms
# Conflicts:
#	package.json
#	yarn.lock
2020-04-22 13:42:19 +02:00
Ricardo Ambrogi
bc4373545c Platforms tests 2020-04-22 13:30:44 +02:00
Ricardo Ambrogi
0f92235ac5 Auto mock based on Typescript interface 2020-04-22 13:30:12 +02:00
Ricardo Ambrogi
e063a04762 Merge pull request #404 from Adyen/dependabot/npm_and_yarn/types/node-13.13.2
Bump @types/node from 13.13.1 to 13.13.2
2020-04-22 09:01:51 +02:00
dependabot-preview[bot]
35cb449930 Bump @types/node from 13.13.1 to 13.13.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.1 to 13.13.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-22 06:03:56 +00:00
Ricardo Ambrogi
5b852a8399 Merge pull request #407 from Adyen/dependabot/npm_and_yarn/webpack-4.43.0
Bump webpack from 4.42.1 to 4.43.0
2020-04-22 08:01:53 +02:00
dependabot-preview[bot]
6a94c3309f Bump webpack from 4.42.1 to 4.43.0
Bumps [webpack](https://github.com/webpack/webpack) from 4.42.1 to 4.43.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.42.1...v4.43.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-22 05:55:49 +00:00
Ricardo Ambrogi
90ba60e13b Merge pull request #406 from Adyen/dependabot/npm_and_yarn/release-it-13.5.5
Bump release-it from 13.5.4 to 13.5.5
2020-04-22 07:54:22 +02:00
Ricardo Ambrogi
55f42bd089 Merge pull request #405 from Adyen/dependabot/npm_and_yarn/coveralls-3.0.13
Bump coveralls from 3.0.11 to 3.0.13
2020-04-22 07:53:57 +02:00
dependabot-preview[bot]
ee6b50f75d Bump release-it from 13.5.4 to 13.5.5
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.4 to 13.5.5.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.4...13.5.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-22 05:47:41 +00:00
dependabot-preview[bot]
6228bc12ef Bump coveralls from 3.0.11 to 3.0.13
Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.0.11 to 3.0.13.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](https://github.com/nickmerwin/node-coveralls/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-22 05:47:10 +00:00
Ricardo Ambrogi
e521c53f2c Merge branch 'develop' into feature/platforms
# Conflicts:
#	yarn.lock
2020-04-21 12:06:49 +02:00
Ricardo Ambrogi
90376b44d9 Merge branch 'develop' into feature/platforms
# Conflicts:
#	yarn.lock
2020-04-21 12:04:37 +02:00
Ricardo Ambrogi
18b79b664e generate build for other targets 2020-04-21 11:57:35 +02:00
Ricardo Ambrogi
ad33e0b6db change eslint rule 2020-04-21 11:53:19 +02:00
Ricardo Ambrogi
036fa9340b Generate dist folder 2020-04-21 11:53:06 +02:00
Ricardo Ambrogi
1e2b2c2498 Add Platforms service 2020-04-21 11:52:47 +02:00
Ricardo Ambrogi
bae5db690e Merge pull request #401 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.29.0
Bump @typescript-eslint/parser from 2.28.0 to 2.29.0
2020-04-21 07:55:28 +02:00
dependabot-preview[bot]
bab5c24d4d Bump @typescript-eslint/parser from 2.28.0 to 2.29.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.28.0 to 2.29.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.29.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-21 05:49:19 +00:00
Ricardo Ambrogi
8efe9b4fe4 Merge pull request #400 from Adyen/dependabot/npm_and_yarn/types/node-13.13.1
Bump @types/node from 13.13.0 to 13.13.1
2020-04-21 07:47:33 +02:00
dependabot-preview[bot]
1bb3c1f4ca Bump @types/node from 13.13.0 to 13.13.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.13.0 to 13.13.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-21 05:37:46 +00:00
Ricardo Ambrogi
323579492f Merge pull request #402 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.29.0
Bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.29.0
2020-04-21 07:35:52 +02:00
dependabot-preview[bot]
563ebf3ad6 Bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.29.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.28.0 to 2.29.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.29.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-21 05:30:42 +00:00
Ricardo Ambrogi
f00272cffd Merge pull request #396 from Adyen/dependabot/npm_and_yarn/types/node-13.13.0
Bump @types/node from 13.11.0 to 13.13.0
2020-04-20 09:53:03 +02:00
Ricardo Ambrogi
e5beed4179 Merge branch 'develop' into dependabot/npm_and_yarn/types/node-13.13.0 2020-04-20 09:51:33 +02:00
Ricardo Ambrogi
6b15e36158 Merge pull request #397 from Adyen/dependabot/npm_and_yarn/ts-loader-7.0.1
Bump ts-loader from 7.0.0 to 7.0.1
2020-04-20 09:46:02 +02:00
Ricardo Ambrogi
a0b2de3b27 fixed checkServerIdentity.spec.ts 2020-04-20 09:45:21 +02:00
dependabot-preview[bot]
f5bc92069b Bump ts-loader from 7.0.0 to 7.0.1
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v7.0.0...v7.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 07:37:17 +00:00
dependabot-preview[bot]
0c5df902d3 Bump @types/node from 13.11.0 to 13.13.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.11.0 to 13.13.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 07:37:08 +00:00
Ricardo Ambrogi
54cb4438f0 Merge pull request #395 from Adyen/dependabot/npm_and_yarn/release-it-13.5.4
Bump release-it from 13.5.2 to 13.5.4
2020-04-20 09:35:30 +02:00
dependabot-preview[bot]
cbd0a60702 Bump release-it from 13.5.2 to 13.5.4
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.2 to 13.5.4.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.2...13.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 07:32:54 +00:00
Ricardo Ambrogi
da8012ac17 Merge pull request #394 from Adyen/dependabot/npm_and_yarn/ts-jest-25.4.0
Bump ts-jest from 25.3.1 to 25.4.0
2020-04-20 09:31:09 +02:00
dependabot-preview[bot]
96f730e8ae Bump ts-jest from 25.3.1 to 25.4.0
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.3.1 to 25.4.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v25.3.1...v25.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 07:18:28 +00:00
Ricardo Ambrogi
ddfe8b339a Merge pull request #398 from Adyen/dependabot/npm_and_yarn/jest-25.4.0
Bump jest from 25.3.0 to 25.4.0
2020-04-20 09:16:46 +02:00
dependabot-preview[bot]
9442f9a097 Bump jest from 25.3.0 to 25.4.0
Bumps [jest](https://github.com/facebook/jest) from 25.3.0 to 25.4.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.3.0...v25.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 05:31:23 +00:00
Ricardo Ambrogi
b1593dacc8 Merge pull request #393 from Adyen/dependabot/npm_and_yarn/ts-loader-7.0.0
Bump ts-loader from 6.2.2 to 7.0.0
2020-04-15 07:54:03 +02:00
dependabot-preview[bot]
6c739d0216 Bump ts-loader from 6.2.2 to 7.0.0
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 6.2.2 to 7.0.0.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v6.2.2...v7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-15 05:36:40 +00:00
Ricardo Ambrogi
c7a359b5f0 Merge pull request #392 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.28.0
Bump @typescript-eslint/parser from 2.27.0 to 2.28.0
2020-04-14 08:04:12 +02:00
dependabot-preview[bot]
2f40363fee Bump @typescript-eslint/parser from 2.27.0 to 2.28.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.28.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 05:39:49 +00:00
Ricardo Ambrogi
2b4260fcd0 Merge pull request #391 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.28.0
Bump @typescript-eslint/eslint-plugin from 2.27.0 to 2.28.0
2020-04-14 07:38:11 +02:00
dependabot-preview[bot]
37edd9c412 Bump @typescript-eslint/eslint-plugin from 2.27.0 to 2.28.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.27.0 to 2.28.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.28.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-14 05:34:57 +00:00
Ricardo Ambrogi
f56e632d7f Merge pull request #389 from Adyen/develop
Release v3.1.3
2020-04-09 14:00:37 +02:00
Ricardo Ambrogi
e22c7fa53c Update package.json 2020-04-09 13:55:39 +02:00
Ricardo Ambrogi
96e610db7f update workflow 2020-04-09 13:50:56 +02:00
Ricardo Ambrogi
9d461481dc Update package.json 2020-04-09 13:31:40 +02:00
Ricardo Ambrogi
2cd3e93dfd Update package.json 2020-04-09 13:29:35 +02:00
Ricardo Ambrogi
43207db52b Update npmpublish.yml 2020-04-09 13:25:47 +02:00
Ricardo Ambrogi
ffe6af1d97 Merge remote-tracking branch 'origin/master' into develop 2020-04-09 13:21:44 +02:00
Ricardo Ambrogi
b2a15bfd23 Merge branch 'develop' of github.com:Adyen/adyen-node-api-library into develop 2020-04-09 13:20:33 +02:00
Ricardo Ambrogi
d8e31a3262 Merge remote-tracking branch 'origin/master' into develop 2020-04-09 13:20:13 +02:00
Ricardo Ambrogi
155a9b0a96 Merge pull request #387 from Adyen/dependabot/npm_and_yarn/jest-25.3.0
Bump jest from 25.2.7 to 25.3.0
2020-04-09 08:14:00 +02:00
dependabot-preview[bot]
9229311175 Bump jest from 25.2.7 to 25.3.0
Bumps [jest](https://github.com/facebook/jest) from 25.2.7 to 25.3.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.7...v25.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-09 05:40:12 +00:00
Ricardo Ambrogi
724b9c8130 Merge pull request #384 from Adyen/dependabot/npm_and_yarn/release-it-13.5.2
Bump release-it from 13.5.1 to 13.5.2
2020-04-08 08:39:37 +02:00
dependabot-preview[bot]
31ce0ac330 Bump release-it from 13.5.1 to 13.5.2
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.1 to 13.5.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.1...13.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-08 05:48:18 +00:00
Ricardo Ambrogi
91f0252d33 Merge pull request #383 from Adyen/dependabot/npm_and_yarn/typescript-eslint/parser-2.27.0
Bump @typescript-eslint/parser from 2.26.0 to 2.27.0
2020-04-07 08:40:28 +02:00
dependabot-preview[bot]
968c60de65 Bump @typescript-eslint/parser from 2.26.0 to 2.27.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.27.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-07 05:40:39 +00:00
Ricardo Ambrogi
608f4d9c69 Merge pull request #382 from Adyen/dependabot/npm_and_yarn/typescript-eslint/eslint-plugin-2.27.0
Bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0
2020-04-07 07:38:59 +02:00
dependabot-preview[bot]
969ff9c431 Bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.27.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-07 05:33:42 +00:00
Ricardo Ambrogi
4bf7494989 Update npmpublish.yml 2020-04-06 12:35:39 +02:00
Ricardo Ambrogi
7f8170575f Merge pull request #380 from Adyen/develop
Release v3.1.2
2020-04-06 10:06:44 +00:00
Ricardo Ambrogi
756a59e31a Merge branch 'master' into develop 2020-04-06 09:54:33 +00:00
Ricardo Ambrogi
4013f70205 kind-of package fix 2020-04-06 11:53:48 +02:00
Ricardo Ambrogi
6858c8a599 Update package.json 2020-04-06 11:52:05 +02:00
Ricardo Ambrogi
2854236720 Hotfix/minimist security (#379)
* fix vulnerability

* fix acorn
2020-04-06 11:51:35 +02:00
dependabot-preview[bot]
3b95f067aa Bump ts-jest from 25.3.0 to 25.3.1 (#376)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.3.0 to 25.3.1.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v25.3.0...v25.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-06 08:45:06 +02:00
dependabot-preview[bot]
a621245ced Bump jest from 25.2.6 to 25.2.7 (#378)
Bumps [jest](https://github.com/facebook/jest) from 25.2.6 to 25.2.7.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.6...v25.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-06 08:18:57 +02:00
dependabot-preview[bot]
1ce8877d87 Bump @types/jest from 25.1.5 to 25.2.1 (#377)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.5 to 25.2.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-06 08:09:05 +02:00
dependabot-preview[bot]
964be24ba7 Bump @types/node from 13.9.8 to 13.11.0 (#373)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.8 to 13.11.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-03 08:13:22 +02:00
dependabot-preview[bot]
4bcfb1810f Bump jest from 25.2.4 to 25.2.6 (#374)
Bumps [jest](https://github.com/facebook/jest) from 25.2.4 to 25.2.6.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.4...v25.2.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-03 07:51:57 +02:00
dependabot-preview[bot]
b781030260 Bump @types/jest from 25.1.4 to 25.1.5 (#372)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.4 to 25.1.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-03 07:47:42 +02:00
dependabot-preview[bot]
fa767eea8e Bump release-it from 13.5.0 to 13.5.1 (#371)
Bumps [release-it](https://github.com/release-it/release-it) from 13.5.0 to 13.5.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.5.0...13.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-31 13:56:11 +02:00
Ricardo Ambrogi
f40092f94f Create stale.yml 2020-03-31 13:25:59 +02:00
dependabot-preview[bot]
2401b27dd4 Bump @types/node from 13.9.5 to 13.9.8 (#370)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.5 to 13.9.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-31 05:50:08 +02:00
dependabot-preview[bot]
d03fd6502d Bump @typescript-eslint/eslint-plugin from 2.25.0 to 2.26.0 (#366)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.25.0 to 2.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.26.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-31 05:37:05 +02:00
dependabot-preview[bot]
ebc72005e6 Bump @typescript-eslint/parser from 2.25.0 to 2.26.0 (#365)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.25.0 to 2.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.26.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-31 05:30:24 +02:00
dependabot-preview[bot]
57f3135dee Bump ts-jest from 25.2.1 to 25.3.0 (#364)
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 25.2.1 to 25.3.0.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/25.2.1...v25.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 13:53:10 +02:00
dependabot-preview[bot]
b4e9e2f480 Bump jest from 25.2.3 to 25.2.4 (#362)
Bumps [jest](https://github.com/facebook/jest) from 25.2.3 to 25.2.4.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.3...v25.2.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 08:20:10 +02:00
dependabot-preview[bot]
9c21109c83 Bump release-it from 13.3.2 to 13.5.0 (#361)
Bumps [release-it](https://github.com/release-it/release-it) from 13.3.2 to 13.5.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.3.2...13.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 08:14:48 +02:00
dependabot-preview[bot]
64c086a760 Bump @types/node from 13.9.4 to 13.9.5 (#360)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.4 to 13.9.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-30 06:48:26 +02:00
Sam Cottle
e8f82c4a82 Update link to docs (#358)
Under Documentation, we only link to the API-only integration. But the library can also be used to integrate with the Drop-in and Components integrations.
2020-03-27 13:38:58 +01:00
dependabot-preview[bot]
86a551c06e Bump release-it from 13.3.1 to 13.3.2 (#355)
Bumps [release-it](https://github.com/release-it/release-it) from 13.3.1 to 13.3.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.3.1...13.3.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 07:41:03 +01:00
dependabot-preview[bot]
9272fff378 Bump jest from 25.2.1 to 25.2.3 (#357)
Bumps [jest](https://github.com/facebook/jest) from 25.2.1 to 25.2.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.1...v25.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 05:50:13 +01:00
dependabot-preview[bot]
520e73b57f Bump jest from 25.2.0 to 25.2.1 (#354)
Bumps [jest](https://github.com/facebook/jest) from 25.2.0 to 25.2.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.2.0...v25.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 13:14:19 +01:00
dependabot-preview[bot]
2291cfad85 Bump release-it from 13.3.0 to 13.3.1 (#352)
Bumps [release-it](https://github.com/release-it/release-it) from 13.3.0 to 13.3.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.3.0...13.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 07:33:23 +01:00
dependabot-preview[bot]
f3f9976e68 Bump jest from 25.1.0 to 25.2.0 (#353)
Bumps [jest](https://github.com/facebook/jest) from 25.1.0 to 25.2.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v25.1.0...v25.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 07:23:27 +01:00
dependabot-preview[bot]
d50f84b230 Bump @types/node from 13.9.3 to 13.9.4 (#351)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.3 to 13.9.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-25 11:49:53 +01:00
dependabot-preview[bot]
ffb236e9f8 Bump webpack from 4.42.0 to 4.42.1 (#350)
Bumps [webpack](https://github.com/webpack/webpack) from 4.42.0 to 4.42.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.42.0...v4.42.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-24 13:44:16 +01:00
dependabot-preview[bot]
937ddc5623 Bump @typescript-eslint/parser from 2.24.0 to 2.25.0 (#348)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.24.0 to 2.25.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.25.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-24 07:09:24 +01:00
dependabot-preview[bot]
6c38e717d7 Bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.25.0 (#349)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.24.0 to 2.25.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.25.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-24 07:04:21 +01:00
dependabot-preview[bot]
204e68aa1e Bump release-it from 13.1.2 to 13.3.0 (#347)
Bumps [release-it](https://github.com/release-it/release-it) from 13.1.2 to 13.3.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.1.2...13.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-24 07:00:36 +01:00
dependabot-preview[bot]
caa7e3a311 Bump release-it from 13.1.1 to 13.1.2 (#344)
Bumps [release-it](https://github.com/release-it/release-it) from 13.1.1 to 13.1.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.1.1...13.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-23 07:11:19 +01:00
dependabot-preview[bot]
2f70fa2caf Bump @types/node from 13.9.2 to 13.9.3 (#345)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.2 to 13.9.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-23 06:56:43 +01:00
dependabot-preview[bot]
a26c04d99d Bump ts-loader from 6.2.1 to 6.2.2 (#346)
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v6.2.1...v6.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-23 06:41:40 +01:00
dependabot-preview[bot]
9ea38e7da8 Bump coveralls from 3.0.9 to 3.0.11 (#342)
Bumps [coveralls](https://github.com/nickmerwin/node-coveralls) from 3.0.9 to 3.0.11.
- [Release notes](https://github.com/nickmerwin/node-coveralls/releases)
- [Commits](https://github.com/nickmerwin/node-coveralls/compare/3.0.9...3.0.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-20 06:41:42 +01:00
dependabot-preview[bot]
dddf016c6c Bump @types/node from 13.9.1 to 13.9.2 (#340)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.1 to 13.9.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-19 06:38:08 +01:00
Ricardo Ambrogi
9d87c490d9 Adds distribution folder
Remove dist from .gitignore
2020-03-18 12:13:44 +01:00
Ricardo Ambrogi
a2db9a4ba1 adds dist 2020-03-18 12:08:36 +01:00
Ricardo Ambrogi
66042b92e7 Merge branch 'master' into develop 2020-03-18 12:06:14 +01:00
Ricardo Ambrogi
026ed69203 adds dist folder 2020-03-18 12:01:56 +01:00
Ricardo Ambrogi
a5264a1b40 Update README.md 2020-03-18 11:47:47 +01:00
Ricardo Ambrogi
30f895b758 Merge pull request #338 from Adyen/dependabot/npm_and_yarn/nock-12.0.3
Bump nock from 12.0.2 to 12.0.3
2020-03-17 16:18:35 +01:00
dependabot-preview[bot]
56e1805701 Bump nock from 12.0.2 to 12.0.3
Bumps [nock](https://github.com/nock/nock) from 12.0.2 to 12.0.3.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v12.0.2...v12.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-17 12:50:57 +00:00
Ricardo Ambrogi
ea771b274f Merge pull request #337 from Adyen/develop
Release v3.1.0
2020-03-17 12:55:41 +01:00
Ricardo Ambrogi
a55e9a5cf1 Release/3.1.0 (#336)
* Bundle type definitions with package

* drop support from node lt 10

* run tests on future versions and not only stable

* remove babel deps

* fix major release breaking change

* update api version

* mend

* update lib to v52
2020-03-17 12:49:07 +01:00
dependabot-preview[bot]
4f640a05ea Bump @typescript-eslint/parser from 2.23.0 to 2.24.0 (#333)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.24.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-17 06:28:50 +01:00
dependabot-preview[bot]
acaa98d100 Bump @typescript-eslint/eslint-plugin from 2.23.0 to 2.24.0 (#334)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.23.0 to 2.24.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.24.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-17 06:24:57 +01:00
dependabot-preview[bot]
4956c01bea Bump release-it from 13.0.2 to 13.1.1 (#332)
Bumps [release-it](https://github.com/release-it/release-it) from 13.0.2 to 13.1.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.0.2...13.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-15 08:30:58 +01:00
dependabot-preview[bot]
559b7fc224 [Security] Bump acorn from 6.2.1 to 6.4.1 (#331)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.2.1 to 6.4.1. **This update includes a security fix.**
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.2.1...6.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-15 08:27:25 +01:00
dependabot-preview[bot]
1842ea21f2 Bump @types/node from 13.9.0 to 13.9.1 (#329)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.9.0 to 13.9.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-13 06:20:38 +01:00
dependabot-preview[bot]
d2472dd1f2 Bump @typescript-eslint/parser from 2.22.0 to 2.23.0 (#327)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.23.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-10 10:43:45 +01:00
dependabot-preview[bot]
1d957df35d Bump @typescript-eslint/eslint-plugin from 2.22.0 to 2.23.0 (#328)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.22.0 to 2.23.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.23.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-10 10:35:59 +01:00
dependabot-preview[bot]
79a518d133 Bump release-it from 13.0.1 to 13.0.2 (#326)
Bumps [release-it](https://github.com/release-it/release-it) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.0.1...13.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-10 10:30:21 +01:00
dependabot-preview[bot]
0b76d344ff Bump release-it from 13.0.0 to 13.0.1 (#325)
Bumps [release-it](https://github.com/release-it/release-it) from 13.0.0 to 13.0.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/13.0.0...13.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 14:01:31 +01:00
dependabot-preview[bot]
38c12702c9 Bump @types/node from 13.7.7 to 13.9.0 (#322)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.7 to 13.9.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 08:27:06 +01:00
dependabot-preview[bot]
9884955c71 Bump @types/jest from 25.1.3 to 25.1.4 (#323)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.3 to 25.1.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 08:12:39 +01:00
dependabot-preview[bot]
663a0c0ec7 Bump release-it from 12.6.3 to 13.0.0 (#324)
Bumps [release-it](https://github.com/release-it/release-it) from 12.6.3 to 13.0.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/12.6.3...13.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 08:09:18 +01:00
dependabot-preview[bot]
db34fc68c3 Bump release-it from 12.6.2 to 12.6.3 (#320)
Bumps [release-it](https://github.com/release-it/release-it) from 12.6.2 to 12.6.3.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/12.6.2...12.6.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-04 11:13:12 +01:00
dependabot-preview[bot]
aff2527194 Bump @typescript-eslint/parser from 2.21.0 to 2.22.0 (#319)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.21.0 to 2.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.22.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-03 08:13:58 +01:00
dependabot-preview[bot]
cf07545dda Bump @typescript-eslint/eslint-plugin from 2.21.0 to 2.22.0 (#318)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.21.0 to 2.22.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.22.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-03 08:09:12 +01:00
dependabot-preview[bot]
9c4ab30240 Bump webpack from 4.41.6 to 4.42.0 (#316)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.6 to 4.42.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.6...v4.42.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 13:58:46 +01:00
Ricardo Ambrogi
147cea2d5b Delete renovate.json 2020-03-02 12:44:43 +01:00
dependabot-preview[bot]
cd6a07f7bd Bump typescript from 3.8.2 to 3.8.3 (#311)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.8.2 to 3.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v3.8.2...v3.8.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 08:19:00 +01:00
dependabot-preview[bot]
6798edad03 Bump @types/node from 13.7.6 to 13.7.7 (#309)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.6 to 13.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 08:15:48 +01:00
dependabot-preview[bot]
b2f1c8b28b Bump nock from 12.0.1 to 12.0.2 (#314)
Bumps [nock](https://github.com/nock/nock) from 12.0.1 to 12.0.2.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v12.0.1...v12.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 08:11:45 +01:00
Ricardo Ambrogi
c0a494a4bd Github Action: Publish to NPM (#308)
* Github Action: Publish to NPM

* Delete .travis.yml

* Update nodejs.yml
2020-02-28 13:21:25 +01:00
WhiteSource Renovate
fc1769c30c Update dependency release-it to v12.6.2 (#307) 2020-02-28 10:37:05 +01:00
Ricardo Ambrogi
a6a9961679 Update README.md 2020-02-28 10:11:01 +01:00
Ricardo Ambrogi
93e1dde831 Update nodejs.yml 2020-02-28 10:09:07 +01:00
Ricardo Ambrogi
6b45af1cdb Github Action: Coveralls (#298)
* Create coveralls.yml

* Update .travis.yml

* Update package.json

* Update coveralls.yml

* Update coveralls.yml

* Update coveralls.yml

* Update coveralls.yml
2020-02-26 08:02:42 +01:00
Ricardo Ambrogi
a87b109f63 Github Action: Run tests (#295)
* Create nodejs.yml

* Update .travis.yml

* Update httpClient.spec.ts
2020-02-26 08:00:29 +01:00
dependabot-preview[bot]
5d08dded6e Bump @types/node from 13.7.4 to 13.7.6 (#306)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.4 to 13.7.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-26 07:55:45 +01:00
dependabot-preview[bot]
7fd8e5dbb0 Bump @typescript-eslint/parser from 2.20.0 to 2.21.0 (#301)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.21.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-25 08:18:40 +01:00
dependabot-preview[bot]
bf0d3b8457 Bump @typescript-eslint/eslint-plugin from 2.20.0 to 2.21.0 (#302)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.20.0 to 2.21.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.21.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-25 08:07:14 +01:00
dependabot-preview[bot]
da87e71c9f Bump release-it from 12.6.0 to 12.6.1 (#300)
Bumps [release-it](https://github.com/release-it/release-it) from 12.6.0 to 12.6.1.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/12.6.0...12.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 06:19:45 +01:00
dependabot-preview[bot]
6797c684f9 Bump typescript from 3.7.5 to 3.8.2 (#297)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.5 to 3.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-21 06:22:26 +01:00
dependabot-preview[bot]
95260f0499 Bump release-it from 12.5.0 to 12.6.0 (#294)
Bumps [release-it](https://github.com/release-it/release-it) from 12.5.0 to 12.6.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/12.5.0...12.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 15:42:47 +01:00
dependabot-preview[bot]
9e35478973 Bump @types/jest from 25.1.2 to 25.1.3 (#291)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.2 to 25.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 08:57:16 +01:00
dependabot-preview[bot]
25aeee2076 Bump @types/node from 13.7.2 to 13.7.4 (#290)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.2 to 13.7.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 08:22:10 +01:00
dependabot-preview[bot]
5435669388 Bump nock from 12.0.0 to 12.0.1 (#287)
Bumps [nock](https://github.com/nock/nock) from 12.0.0 to 12.0.1.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v12.0.0...v12.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 08:12:58 +01:00
WhiteSource Renovate
eeb963d36f Update dependency ts-jest to v25.2.1 (#286) 2020-02-19 09:43:50 +01:00
dependabot-preview[bot]
f39932208d Bump @types/node from 13.7.1 to 13.7.2 (#285)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.1 to 13.7.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-19 05:30:08 +01:00
dependabot-preview[bot]
25ea679283 Bump release-it from 12.4.3 to 12.5.0 (#283)
Bumps [release-it](https://github.com/release-it/release-it) from 12.4.3 to 12.5.0.
- [Release notes](https://github.com/release-it/release-it/releases)
- [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/release-it/release-it/compare/12.4.3...12.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 11:12:37 +01:00
dependabot-preview[bot]
07ca079203 Bump @typescript-eslint/parser from 2.19.2 to 2.20.0 (#278)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.19.2 to 2.20.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.20.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 05:37:08 +01:00
dependabot-preview[bot]
63f95a5002 Bump @typescript-eslint/eslint-plugin from 2.19.2 to 2.20.0 (#280)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.19.2 to 2.20.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.20.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 05:26:13 +01:00
dependabot-preview[bot]
3b5e3d121d Bump nock from 11.9.0 to 12.0.0 (#276)
Bumps [nock](https://github.com/nock/nock) from 11.9.0 to 12.0.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v11.9.0...v12.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 08:46:46 +01:00
dependabot-preview[bot]
ac601cff87 Bump nock from 11.8.2 to 11.9.0 (#272)
Bumps [nock](https://github.com/nock/nock) from 11.8.2 to 11.9.0.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v11.8.2...v11.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-14 08:08:16 +01:00
dependabot-preview[bot]
1c8f750ff1 Bump webpack-cli from 3.3.10 to 3.3.11 (#270)
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.10 to 3.3.11.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/next/CHANGELOG_v3.md)
- [Commits](https://github.com/webpack/webpack-cli/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-12 08:37:37 +01:00
dependabot-preview[bot]
35e870c150 Bump @types/node from 13.7.0 to 13.7.1 (#269)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.7.0 to 13.7.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 18:47:35 +01:00
dependabot-preview[bot]
ee902f97c1 Bump webpack from 4.41.5 to 4.41.6 (#267)
Bumps [webpack](https://github.com/webpack/webpack) from 4.41.5 to 4.41.6.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.41.5...v4.41.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 13:10:00 +01:00
dependabot-preview[bot]
3b328c54c8 Bump @typescript-eslint/eslint-plugin from 2.19.0 to 2.19.2 (#263)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.19.0 to 2.19.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.19.2/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 08:11:24 +01:00
dependabot-preview[bot]
14c6a71fe9 Bump @typescript-eslint/parser from 2.19.0 to 2.19.2 (#264)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.19.0 to 2.19.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.19.2/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 06:51:33 +01:00
Ricardo Ambrogi
e53550df2a Hotfix/https proxy agent (#259)
* fix https-proxy-agent major release breaking change
2020-02-10 11:01:30 +01:00
dependabot-preview[bot]
97db576e1f Bump nock from 11.7.2 to 11.8.2 (#258)
Bumps [nock](https://github.com/nock/nock) from 11.7.2 to 11.8.2.
- [Release notes](https://github.com/nock/nock/releases)
- [Changelog](https://github.com/nock/nock/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nock/nock/compare/v11.7.2...v11.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-10 07:33:55 +01:00
Ricardo Ambrogi
be0a10bd40 Update CODEOWNERS 2020-02-07 12:46:32 +01:00
dependabot-preview[bot]
7556858aee Bump @types/jest from 25.1.1 to 25.1.2 (#253)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 25.1.1 to 25.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-07 08:30:48 +01:00
dependabot-preview[bot]
3cb0f91ac1 Bump @typescript-eslint/parser from 2.18.0 to 2.19.0 (#249)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 2.18.0 to 2.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.19.0/packages/parser)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-04 09:58:04 +01:00
dependabot-preview[bot]
10e06c2edb Bump @types/nock from 10.0.3 to 11.1.0 (#251)
Bumps [@types/nock](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/nock) from 10.0.3 to 11.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/nock)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-04 09:11:48 +01:00
dependabot-preview[bot]
1f10c5e4bf Bump @typescript-eslint/eslint-plugin from 2.18.0 to 2.19.0 (#250)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 2.18.0 to 2.19.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.19.0/packages/eslint-plugin)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-04 07:45:07 +01:00
dependabot-preview[bot]
fd437777e4 Bump jest from 24.9.0 to 25.1.0 (#248)
Bumps [jest](https://github.com/facebook/jest) from 24.9.0 to 25.1.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v24.9.0...v25.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-04 07:34:58 +01:00
WhiteSource Renovate
9ae07636c7 Update dependency ts-jest to v25.2.0 (#247) 2020-02-04 05:42:38 +01:00
WhiteSource Renovate
4f688db18e Update dependency @types/node to v13.7.0 (#244) 2020-02-03 08:35:07 +01:00
WhiteSource Renovate
816e10de41 Update dependency @types/node to v13.5.3 (#243) 2020-01-31 08:38:28 +01:00
WhiteSource Renovate
f7dd296d3b Update babel monorepo to v7.8.4 (#242) 2020-01-30 14:01:17 +01:00
WhiteSource Renovate
412cf2f739 Update dependency ts-jest to v25.1.0 (#241) 2020-01-30 10:04:28 +01:00
WhiteSource Renovate
c86597eee6 Update dependency @types/node to v13.5.2 (#240) 2020-01-30 08:03:49 +01:00
WhiteSource Renovate
b03ab5b822 Update dependency @types/jest to v25.1.1 (#239) 2020-01-30 07:50:35 +01:00
Ricardo Ambrogi
c18ed88e2e Remove babel dep (#235)
* remove babel deps
2020-01-30 07:34:21 +01:00
WhiteSource Renovate
b26fde99b5 Update dependency @types/jest to v25 (#237) 2020-01-29 14:25:44 +01:00
WhiteSource Renovate
7045ad97c2 Update typescript-eslint monorepo to v2.18.0 (#236)
Co-authored-by: Rik ter Beek <rikterbeek@users.noreply.github.com>
2020-01-29 11:41:36 +01:00
WhiteSource Renovate
18d1d362ee Update dependency @types/node to v13.5.1 (#238) 2020-01-29 08:33:26 +01:00
Ricardo Ambrogi
e20b5146d7 Hotfix/node v10 (#234)
* Bundle type definitions with package

* drop support from node lt 10

* run tests on future versions and not only stable
2020-01-27 14:07:59 +01:00
Felix Trepanier
9aa31b0278 Put @types/jest dependency in devDependencies (#233)
* Put @types/jest dependency in devDependencies

* Update package.json

Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-01-27 09:57:07 +01:00
WhiteSource Renovate
a86bc8b9a8 Update dependency @types/jest to v24.9.1 (#231) 2020-01-24 11:25:32 +01:00
WhiteSource Renovate
f2f3571928 Update dependency @types/node to v13.5.0 (#232) 2020-01-24 09:06:53 +01:00
WhiteSource Renovate
9615e66444 Update dependency ts-jest to v25 (#230) 2020-01-23 09:31:25 +01:00
Alexandru Aldulea
199c47568d added requestOptions to paymentDetails (#228)
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-01-22 10:12:04 +01:00
WhiteSource Renovate
4bdc49e3b5 Update dependency @types/node to v13.1.8 (#226)
Co-authored-by: Ricardo Ambrogi <ricardo.ambrogi@gmail.com>
2020-01-21 15:08:43 +01:00
WhiteSource Renovate
880298d03e Update typescript-eslint monorepo to v2.17.0 (#227) 2020-01-21 10:02:07 +01:00
WhiteSource Renovate
1099081ea3 Update dependency typescript to v3.7.5 (#224) 2020-01-17 13:37:57 +01:00
Ricardo Ambrogi
bd8fa55cef Merge pull request #225 from Adyen/develop
Release v2.2.1
2020-01-17 13:33:11 +01:00
Ricardo Ambrogi
6d9b17609c Merge branch 'master' into develop 2020-01-17 11:06:00 +01:00
Ricardo Ambrogi
7f5f8cf2a2 fix ts imports (#223) 2020-01-17 11:04:07 +01:00
WhiteSource Renovate
6fbbff62fa Update dependency @types/jest to v24.9.0 (#222) 2020-01-15 11:39:29 +01:00
WhiteSource Renovate
2733ba9302 Update dependency @types/node to v13.1.7 (#221) 2020-01-15 09:54:33 +01:00
WhiteSource Renovate
2e9e50bcc0 Update babel monorepo to v7.8.3 (#220) 2020-01-14 10:12:05 +01:00
WhiteSource Renovate
e11bdc2f93 Update typescript-eslint monorepo to v2.16.0 (#218) 2020-01-14 09:42:46 +01:00
WhiteSource Renovate
05b06709f3 Update babel monorepo (#217) 2020-01-13 10:02:45 +01:00
Ricardo Ambrogi
043c166fa6 clean code (#216) 2020-01-10 11:26:23 +01:00
WhiteSource Renovate
edb56e3a2a Update dependency @types/node to v13.1.6 (#215) 2020-01-10 09:11:37 +01:00
Renovate Bot
d775655d86 Update dependency @types/node to v13.1.5 (#214) 2020-01-09 11:32:34 +01:00
Renovate Bot
5a8d3f0147 Update dependency nock to v11.7.2 (#213) 2020-01-09 09:47:21 +01:00
Ricardo Ambrogi
04747ce27f Release v2.2.0
- Update: API type definitions (#176)
- Feature: Adds paymentLinks service (#209)
2020-01-08 15:59:40 +01:00
Ricardo Ambrogi
ef269b7ab1 update endpoint version (#212) 2020-01-08 14:03:23 +01:00
Ricardo Ambrogi
4fbc665977 use grouped type definitions (#210) 2020-01-08 12:10:03 +01:00
Ricardo Ambrogi
99edca9ad8 Update package.json
Co-Authored-By: Alessio Zampatti <alessio.zampatti@adyen.com>
2020-01-08 10:27:41 +01:00
Ricardo Ambrogi
5e39f22b27 Merge remote-tracking branch 'origin/master' into develop 2020-01-07 15:22:11 +01:00
Ricardo Ambrogi
77d1175be1 Node API Library v2.2.0 2020-01-07 15:17:54 +01:00
Ricardo Ambrogi
395957d996 [PW-1980] Adds paymentLinks service (#209)
* Adds paymentLinks service

* Update typescript models
2020-01-07 10:28:40 +01:00
Renovate Bot
a9542bd568 Update typescript-eslint monorepo to v2.15.0 (#206) 2020-01-07 07:36:02 +01:00
Renovate Bot
bf4648af0f Update dependency ts-jest to v24.3.0 (#207) 2020-01-07 07:34:57 +01:00
Renovate Bot
6208bd4b72 Update dependency @types/node to v11.15.4 (#205) 2020-01-06 08:31:09 +01:00
Renovate Bot
68431357b8 Update dependency nock to v11.7.1 (#204) 2020-01-03 07:53:02 +01:00
Renovate Bot
14dc2285bc Update typescript-eslint monorepo to v2.14.0 (#203) 2019-12-31 08:36:33 +01:00
Renovate Bot
75d056c1b1 Update dependency webpack to v4.41.5 (#202) 2019-12-30 08:47:45 +01:00
dependabot[bot]
7ca2c61b1a Bump handlebars from 4.1.2 to 4.5.3 (#201)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>
2019-12-27 12:22:14 +01:00
Renovate Bot
bb3874fc9c Update dependency @types/jest to v24.0.25 (#200) 2019-12-27 10:09:39 +01:00
Renovate Bot
6377fe9f4d Update typescript-eslint monorepo to v2.13.0 (#199) 2019-12-24 07:33:10 +01:00
Renovate Bot
d2581b491c Update dependency eslint to v6.8.0 (#197) 2019-12-22 17:36:50 +01:00
Renovate Bot
52ce784767 Update dependency typescript to v3.7.4 (#198) 2019-12-22 17:36:22 +01:00
Renovate Bot
e69d27fa30 Update dependency webpack to v4.41.4 (#196) 2019-12-19 10:05:51 +01:00
Renovate Bot
62497d123c Update babel monorepo to v7.7.7 (#195) 2019-12-19 07:34:54 +01:00
Renovate Bot
5135a538e0 Update dependency @types/jest to v24.0.24 (#194) 2019-12-18 20:36:58 +01:00
Ricardo Ambrogi
54e7b903bf add application info to sale to acquirer data (#192)
* add application info to sale to acquirer data

* set app info if it doesnt exist
2019-12-18 20:36:30 +01:00
Renovate Bot
6ad466654a Update typescript-eslint monorepo to v2.12.0 (#193) 2019-12-17 09:37:04 +01:00
Renovate Bot
d9457857cb Update dependency webpack to v4.41.3 (#191) 2019-12-16 10:44:29 +01:00
Ricardo Ambrogi
cbfccd9d05 Update README.md 2019-12-11 12:44:37 +01:00
Renovate Bot
2ca3321605 Update dependency https-proxy-agent to v4 (#190) 2019-12-11 08:37:02 +01:00
Renovate Bot
53546d639e Update typescript-eslint monorepo to v2.11.0 (#189) 2019-12-10 09:38:35 +01:00
Renovate Bot
732752ee61 Update babel monorepo (#188) 2019-12-09 07:35:04 +01:00
Renovate Bot
cb7dace017 Update dependency typescript to v3.7.3 (#187) 2019-12-04 09:59:38 +01:00
Renovate Bot
11b21d03c2 Update typescript-eslint monorepo to v2.10.0 (#186) 2019-12-03 07:33:39 +01:00
Renovate Bot
4294caac37 Update dependency eslint to v6.7.2 (#185) 2019-12-01 10:45:51 +01:00
Renovate Bot
7626667f99 Update dependency coveralls to v3.0.9 (#184) 2019-11-27 07:35:02 +01:00
Renovate Bot
554f8c8a01 Update dependency @types/node to v11.15.3 (#183) 2019-11-26 08:16:59 +01:00
Renovate Bot
4c528dbe71 Update typescript-eslint monorepo to v2.9.0 (#182) 2019-11-26 08:10:36 +01:00
Renovate Bot
0db48543f5 Update dependency ts-jest to v24.2.0 (#179) 2019-11-25 08:09:26 +01:00
Renovate Bot
02796824cc Update dependency eslint to v6.7.1 (#180) 2019-11-25 08:09:12 +01:00
Renovate Bot
a5259a443c Update babel monorepo to v7.7.4 (#181) 2019-11-25 08:08:58 +01:00
Renovate Bot
4fe9e4f6a0 Pin dependencies (#178) 2019-11-22 14:14:05 +01:00
Ricardo Ambrogi
9f7d71759d v2.1.8 (#177)
* Update dependency webpack-cli to v3.3.10 (#163)

* Update dependency @types/node to v11.15.2 (#162)

* Update dependency nock to v11.7.0 (#164)

* Update typescript-eslint monorepo to v2.6.1 (#165)

* Update babel monorepo to v7.7.0 (#166)

* Update babel monorepo to v7.7.1 (#167)

* Update dependency typescript to v3.7.2 (#168)

* Update dependency @types/jest to v24.0.22 (#169)

* Update babel monorepo to v7.7.2 (#170)

* Update typescript-eslint monorepo to v2.7.0 (#171)

* Update dependency @types/jest to v24.0.23 (#172)

* New contribution guidelines

Updated README.md and added CONTRIBUTING.md

* Update typescript-eslint monorepo to v2.8.0 (#174)

* Create nodejs.yml

* Delete nodejs.yml

* Update dependency coveralls to v3.0.8 (#175)

* Update API type definitions (#176)
2019-11-22 13:38:32 +01:00
Ricardo Ambrogi
9d98388b2a Merge branch 'master' into develop 2019-11-22 09:10:19 +01:00
Ricardo Ambrogi
5d31670290 Update API type definitions (#176) 2019-11-22 09:08:50 +01:00
Renovate Bot
bdc7336b2f Update dependency coveralls to v3.0.8 (#175) 2019-11-21 10:14:55 +01:00
Ricardo Ambrogi
99a9b58528 Delete nodejs.yml 2019-11-19 13:42:11 +01:00
Ricardo Ambrogi
0a2fcda73a Create nodejs.yml 2019-11-19 13:40:24 +01:00
Renovate Bot
fa19242b0c Update typescript-eslint monorepo to v2.8.0 (#174) 2019-11-19 07:41:42 +01:00
Grant
5f7ad68339 New contribution guidelines
Updated README.md and added CONTRIBUTING.md
2019-11-18 14:20:44 +01:00
Renovate Bot
439e95b2f3 Update dependency @types/jest to v24.0.23 (#172) 2019-11-13 10:36:41 +01:00
Renovate Bot
af9bbc5630 Update typescript-eslint monorepo to v2.7.0 (#171) 2019-11-12 08:40:55 +01:00
Renovate Bot
5f7a9b3611 Update babel monorepo to v7.7.2 (#170) 2019-11-07 07:37:51 +01:00
Renovate Bot
a2447c6a09 Update dependency @types/jest to v24.0.22 (#169) 2019-11-06 09:39:44 +01:00
Renovate Bot
0a4349b86d Update dependency typescript to v3.7.2 (#168) 2019-11-06 07:36:20 +01:00
Renovate Bot
43556da382 Update babel monorepo to v7.7.1 (#167) 2019-11-06 07:35:48 +01:00
Renovate Bot
b8062f7a94 Update babel monorepo to v7.7.0 (#166) 2019-11-05 12:16:08 +01:00
Renovate Bot
2990f71d11 Update typescript-eslint monorepo to v2.6.1 (#165) 2019-11-05 08:07:14 +01:00
Renovate Bot
fbe374e394 Update dependency nock to v11.7.0 (#164) 2019-11-01 10:34:35 +01:00
Renovate Bot
5b28d9d806 Update dependency @types/node to v11.15.2 (#162) 2019-10-31 08:30:27 +01:00
Renovate Bot
d4891fe97d Update dependency webpack-cli to v3.3.10 (#163) 2019-10-31 08:08:51 +01:00
1384 changed files with 111205 additions and 28785 deletions

View File

@@ -1,22 +0,0 @@
{
"presets": [
"@babel/env",
[
"@babel/preset-typescript",
{
"targets": {
"node": "current"
}
}
]
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
],
"env": {
"test": {
"plugins": ["@babel/plugin-transform-runtime"]
}
}
}

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
const path = require('path');
module.exports = {
@@ -18,12 +37,21 @@ module.exports = {
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
rules: {
quotes: ["error", "double"],
semi: ["error", "always"]
semi: ["error", "always"],
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/ban-types": [
"error",
{
"extendDefaults": true,
"types": {
"{}": false
}
}
]
},
overrides: [
{

2
.github/CODEOWNERS vendored
View File

@@ -1 +1 @@
* @KadoBOT @msilvagarcia @cyattilakiss @rkewlani @Aleffio @rikterbeek
* @Adyen/javascript

View File

@@ -3,7 +3,7 @@ name: Bug report
about: Create a report to help us improve
title: '[BUG]'
labels: 'bug'
assignees: 'KadoBOT'
assignees: ''
---

View File

@@ -3,7 +3,7 @@ name: Feature request
about: Suggest an idea for this project
title: '[FEATURE]'
labels: 'feature'
assignees: 'KadoBOT'
assignees: ''
---

7
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,7 @@
**Description**
<!-- Please provide a description of the changes proposed in the Pull Request -->
**Tested scenarios**
<!-- Description of tested scenarios -->
**Fixed issue**: <!-- #-prefixed issue number -->

18
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Label to use when marking an issue as stale
# Issues with these labels will never be considered stale
exemptLabels:
- Validating request
- Bug report
- Bug
- Enhancement
- feature
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

46
.github/workflows/codeql-analysis.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: "Code scanning - action"
on:
push:
pull_request:
schedule:
- cron: '0 21 * * 4'
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

50
.github/workflows/coveralls.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
on: ["pull_request"]
name: Coveralls
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: npm install, npm test:coverage
run: |
npm install
npm run test:coverage
env:
CI: true
ADYEN_API_KEY: ${{ secrets.ADYEN_API_KEY }}
ADYEN_MERCHANT: ${{ secrets.ADYEN_MERCHANT }}
ADYEN_PASSWORD: ${{ secrets.ADYEN_PASSWORD }}
ADYEN_REVIEWPAYOUT_APIKEY: ${{ secrets.ADYEN_REVIEWPAYOUT_APIKEY }}
ADYEN_REVIEWPAYOUT_PASSWORD: ${{ secrets.ADYENREVIEWPAYOUT_PASSWORD }}
ADYEN_REVIEWPAYOUT_USER: ${{ secrets.ADYENREVIEWPAYOUT_USER }}
ADYEN_STOREPAYOUT_APIKEY: ${{ secrets.ADYEN_STOREPAYOUT_APIKEY }}
ADYEN_STOREPAYOUT_PASSWORD: ${{ secrets.ADYEN_STOREPAYOUT_PASSWORD }}
ADYEN_STOREPAYOUT_USER: ${{ secrets.ADYEN_STOREPAYOUT_USER }}
ADYEN_USER: ${{ secrets.ADYEN_USER }}
ADYEN_MARKETPLACE_USER: ${{ secrets.ADYEN_MARKETPLACE_USER }}
ADYEN_MARKETPLACE_PASSWORD: ${{ secrets.ADYEN_MARKETPLACE_PASSWORD }}
ADYEN_TERMINAL_APIKEY: ${{ secrets.ADYEN_TERMINAL_APIKEY }}
ADYEN_TERMINAL_POIID: ${{ secrets.ADYEN_TERMINAL_POIID }}
ADYEN_TERMINAL_MERCHANT: ${{ secrets.ADYEN_TERMINAL_MERCHANT }}
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info # optional (default value)
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

30
.github/workflows/models.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Node.js Models
on: [ workflow_dispatch ]
jobs:
generate:
runs-on: ubuntu-latest
name: Generate Models
steps:
- uses: actions/checkout@v3
- run: make models
- name: Set PR variables
id: vars
run: |
cd build/spec
echo ::set-output name=pr_title::"Update models"
echo ::set-output name=pr_body::"OpenAPI spec or templates produced new models on $(date +%d-%m-%Y) \
by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))."
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
base: develop
branch: automation/models
title: ${{ steps.vars.outputs.pr_title }}
body: ${{ steps.vars.outputs.pr_body }}
add-paths: |
src/typings

42
.github/workflows/nodejs.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: Node.js CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, lint and test
run: |
npm install
npm run lint:fix
npm run lint
npm test
env:
CI: true
ADYEN_API_KEY: ${{ secrets.ADYEN_API_KEY }}
ADYEN_MERCHANT: ${{ secrets.ADYEN_MERCHANT }}
ADYEN_PASSWORD: ${{ secrets.ADYEN_PASSWORD }}
ADYEN_REVIEWPAYOUT_APIKEY: ${{ secrets.ADYEN_REVIEWPAYOUT_APIKEY }}
ADYEN_REVIEWPAYOUT_PASSWORD: ${{ secrets.ADYENREVIEWPAYOUT_PASSWORD }}
ADYEN_REVIEWPAYOUT_USER: ${{ secrets.ADYENREVIEWPAYOUT_USER }}
ADYEN_STOREPAYOUT_APIKEY: ${{ secrets.ADYEN_STOREPAYOUT_APIKEY }}
ADYEN_STOREPAYOUT_PASSWORD: ${{ secrets.ADYEN_STOREPAYOUT_PASSWORD }}
ADYEN_STOREPAYOUT_USER: ${{ secrets.ADYEN_STOREPAYOUT_USER }}
ADYEN_USER: ${{ secrets.ADYEN_USER }}
ADYEN_MARKETPLACE_USER: ${{ secrets.ADYEN_MARKETPLACE_USER }}
ADYEN_MARKETPLACE_PASSWORD: ${{ secrets.ADYEN_MARKETPLACE_PASSWORD }}
ADYEN_TERMINAL_APIKEY: ${{ secrets.ADYEN_TERMINAL_APIKEY }}
ADYEN_TERMINAL_POIID: ${{ secrets.ADYEN_TERMINAL_POIID }}
ADYEN_TERMINAL_MERCHANT: ${{ secrets.ADYEN_TERMINAL_MERCHANT }}

24
.github/workflows/npmpublish.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Node.js Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: |
npm install
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
npm run build
npm publish
env:
GITHUB_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

21
.github/workflows/sonarcloud.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: "Sonarcloud Analysis"
on: ["pull_request"]
jobs:
sonarcloud-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# Disabling shallow clone to improve relevancy of SonarCloud reporting
fetch-depth: 0
- name: SonarCloud integration
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

4
.gitignore vendored
View File

@@ -11,4 +11,6 @@ node_modules
.ssh/
.viminfo
coverage/
dist/
.env
lib/
build/

View File

@@ -1,10 +1,16 @@
src/
.babelrc
.eslintignore
.eslintrc.json
.eslintrc.js
.gitignore
.travis.yml
.release-it.json
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Makefile
config.ts
renovate.json
tsconfig.json
jest.config.js
tslint.json
webpack.config.js
.github
/**/__mocks__/
/**/__tests__/

View File

@@ -1,12 +1,20 @@
{
"git": {
"tagName": "v${version}",
"changelog": "npx auto-changelog --stdout --commit-limit false -u"
"changelog": "npx auto-changelog --hide-credit --stdout --commit-limit false --unreleased-only -t keepachangelog",
"commitMessage": "Release ${version}",
"tag": true,
"requireCleanWorkingDir": false
},
"github": {
"release": true
"release": true,
"releaseName": "Adyen Node API Library v${version}"
},
"hooks": {
"after:bump": "npx auto-changelog -p"
"after:bump": [
"npm run build",
"npx auto-changelog -p"
],
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
}
}

View File

@@ -1,25 +0,0 @@
language: node_js
node_js:
- "8"
- stable
cache: yarn
script:
- yarn run lint:fix
- yarn run lint
- yarn run test
jobs:
include:
- stage: npm release
if: tag IS present
node_js: stable
script: yarn run build
deploy:
provider: npm
email: "$NPM_EMAIL"
api_key: "$NPM_TOKEN"
skip_cleanup: true
on:
tags: true
- stage: Produce Coverage
node_js: stable
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

20
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,20 @@
# Contribution guidelines
## How to contribute step-by-step
1. Fork the `Adyen/adyen-node-api-library` repository.
2. Create a new branch from `develop` in your fork. This makes it easier for you to keep track of your changes.
3. Make the desired changes to the code.
* If you are adding new functionality or fixing a bug, we recommend you add unit tests that cover it.
4. Push the changes to your fork.
5. Create a pull request to the `Adyen/adyen-node-api-library` repository.
6. In your pull request, please describe in detail:
* What problem youre solving
* Your approach to fixing the problem
* Any tests you wrote
7. Check Allow edits from maintainers.
8. Create the pull request.
9. Ensure that all checks have passed.
After you create your pull request, one of the code owners will review your code.
We aim to review your request within 2-3 business days.

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 Adyen
Copyright (c) 2020 Adyen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

74
Makefile Normal file
View File

@@ -0,0 +1,74 @@
generator:=typescript-node
openapi-generator-version:=5.4.0
openapi-generator-url:=https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/$(openapi-generator-version)/openapi-generator-cli-$(openapi-generator-version).jar
openapi-generator-jar:=build/openapi-generator-cli.jar
openapi-generator-cli:=java -jar $(openapi-generator-jar)
services:=balancePlatform binlookup checkout dataProtection legalEntityManagement management payments payouts platformsAccount platformsFund platformsHostedOnboardingPage platformsNotificationConfiguration recurring storedValue terminalManagement transfer
# Generate models (for each service)
models: $(services)
binlookup: spec=BinLookupService-v52
checkout: spec=CheckoutService-v69
dataProtection: spec=DataProtectionService-v1
storedValue: spec=StoredValueService-v46
terminalManagement: spec=TfmAPIService-v1
payments: spec=PaymentService-v68
recurring: spec=RecurringService-v68
payouts: spec=PayoutService-v68
management: spec=ManagementService-v1
managementapi: spec=ManagementService-v1
managementapi: service=management
legalEntityManagement: spec=LegalEntityService-v2
balancePlatform: spec=BalancePlatformService-v2
platformsAccount: spec=AccountService-v6
platformsFund: spec=FundService-v6
platformsNotificationConfiguration: spec=NotificationConfigurationService-v6
platformsHostedOnboardingPage: spec=HopService-v6
transfer: spec=TransferService-v3
$(services): build/spec $(openapi-generator-jar)
rm -rf src/typings/$@ build/model
$(openapi-generator-cli) generate \
-i build/spec/json/$(spec).json \
-g $(generator) \
-t templates/typescript \
-o build \
--global-property models,supportingFiles \
--additional-properties=serviceName=$@
mv build/model src/typings/$@
# Service
managementapi: build/spec $(openapi-generator-jar)
$(openapi-generator-cli) generate \
-i build/spec/json/$(spec).json \
-g $(generator) \
-t templates/typescript \
-o build \
--api-package $(service) \
--model-package typings/$(service) \
--global-property apis \
--additional-properties=serviceName=$(service)
cp build/$(service)/* src/services/$(service)
sed -i.bak '/RestServiceError/d' src/services/$(service)/*
rm src/services/$(service)/*.bak
# Checkout spec (and patch version)
build/spec:
git clone https://github.com/Adyen/adyen-openapi.git build/spec
perl -i -pe's/"openapi" : "3.[0-9].[0-9]"/"openapi" : "3.0.0"/' build/spec/json/*.json
# Extract templates (copy them for modifications)
templates: $(openapi-generator-jar)
$(openapi-generator-cli) author template -g $(generator) -o build/templates/typescript
# Download the generator
$(openapi-generator-jar):
wget --quiet -o /dev/null $(openapi-generator-url) -O $(openapi-generator-jar)
# Discard generated artifacts and changed models
clean:
git checkout src/typings src/services/management
git clean -f -d src/typings src/services/management
.PHONY: templates models $(services)

164
README.md
View File

@@ -1,28 +1,47 @@
![Node js](https://user-images.githubusercontent.com/62436079/207373079-9cf9377f-f530-4b02-a515-9b64ef7b06e7.png)
# Adyen Node.js API Library
[![Build Status](https://travis-ci.org/Adyen/adyen-node-api-library.svg?branch=master)](https://travis-ci.org/Adyen/adyen-node-api-library)
[![Coverage Status](https://coveralls.io/repos/github/Adyen/adyen-node-api-library/badge.svg?branch=master)](https://coveralls.io/github/Adyen/adyen-node-api-library?branch=master)
![Node.js CI](https://github.com/Adyen/adyen-node-api-library/workflows/Node.js%20CI/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/Adyen/adyen-node-api-library/badge.svg?branch=main)](https://coveralls.io/github/Adyen/adyen-node-api-library?branch=main)
[![Downloads](https://img.shields.io/npm/dm/@adyen/api-library.svg)](https://www.npmjs.com/package/@adyen/api-library)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@adyen/api-library.svg)
[![Version](https://img.shields.io/npm/v/@adyen/api-library.svg)](https://www.npmjs.com/package/@adyen/api-library)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Adyen_adyen-node-api-library&metric=alert_status)](https://sonarcloud.io/dashboard?id=Adyen_adyen-node-api-library)
The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.
This is the officially supported NodeJS library for using Adyen's APIs.
## Integration
## Supported API versions
The Library supports all APIs under the following services:
| API | Description | Service Name | Supported version |
| --- | ----------- | ------------ | ----------------- |
|[BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v52/overview) | The BIN Lookup API provides endpoints for retrieving information based on a given BIN. | BinLookup | **v52** |
| [Checkout API](https://docs.adyen.com/api-explorer/#/CheckoutService/v69/overview)| Our latest integration for accepting online payments. | CheckoutAPI | **v69** |
| [Configuration API](https://docs.adyen.com/api-explorer/#/balanceplatform/v2/overview)| The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. | BalancePlatform | **v2** |
| [DataProtection API](https://docs.adyen.com/development-resources/data-protection-api) | Adyen Data Protection API provides a way for you to process [Subject Erasure Requests](https://gdpr-info.eu/art-17-gdpr/) as mandated in GDPR. Use our API to submit a request to delete shopper's data, including payment details and other related information (for example, delivery address or shopper email) | DataProtection | **v1** |
| [Legal Entity Management API](https://docs.adyen.com/api-explorer/#/legalentity/v2/overview)| Manage legal entities that contain information required for verification. | LegalEntityManagement | **v2** |
| [Local/Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/terminal-api-reference)| Our point-of-sale integration. | TerminalLocalAPI or TerminalCloudAPI | - |
| [Management API](https://docs.adyen.com/api-explorer/#/ManagementService/v1/overview)| Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. | Management | **v1** |
| [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v68/overview)| Our classic integration for online payments. | ClassicIntegrationAPI | **v68** |
| [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v68/overview)| Endpoints for sending funds to your customers. | Payout | **v68** |
| [Platforms APIs](https://docs.adyen.com/platforms/api)| Set of APIs when using Adyen for Platforms. This API is used for the classic integration. | Platforms | - |
| [Account API](https://docs.adyen.com/api-explorer/#/Account/v6/overview) | *Platforms subclass* | Account | **v6** |
| [Fund API](https://docs.adyen.com/api-explorer/#/Fund/v6/overview) | *Platforms subclass* | Fund | **v6** |
| [Hosted onboarding API](https://docs.adyen.com/api-explorer/#/Hop/v6/overview)| *Platforms subclass* | HostedOnboardingPage | **v6** |
| [Notification Configuration API](https://docs.adyen.com/api-explorer/#/NotificationConfigurationService/v6/overview) | *Platforms subclass* | NotificationConfiguration | **v6** |
| [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) || *Models only* | **v6** |
| [POS Terminal Management API](https://docs.adyen.com/api-explorer/#/postfmapi/v1/overview)| Endpoints for managing your point-of-sale payment terminals. | TerminalManagement | **v1** |
| [Recurring API](https://docs.adyen.com/api-explorer/#/Recurring/v68/overview)| Endpoints for managing saved payment details. | Recurring | **v68** |
| [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api) | Manage both online and point-of-sale gift cards and other stored-value cards. | StoredValue | **v46** |
| [Transfers API](https://docs.adyen.com/api-explorer/transfers/3/overview) | The Transfers API provides endpoints that can be used to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. | Transfers | **v3** |
| [Webhooks](https://docs.adyen.com/api-explorer/Webhooks/1/overview) | Adyen uses webhooks to send notifications about payment status updates, newly available reports, and other events that can be subscribed to. For more information, refer to our [documentation](https://docs.adyen.com/development-resources/webhooks). | *Models only* | **v1** |
* [x] checkout
* [x] checkout utility
* [x] payments
* [x] modifications
* [x] payouts
* [x] recurring
* [x] notifications
* [x] BIN lookup
For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/).
## Requirements
* Node 8.1.1 or higher
## Prerequisites
- [Adyen test account](https://docs.adyen.com/get-started-with-adyen). To start using Adyen APIs, you will need a Merchant Account.
- [API key](https://docs.adyen.com/development-resources/api-credentials#generate-api-key). For testing, your API credential needs to have the [API PCI Payments role](https://docs.adyen.com/development-resources/api-credentials#roles).
- Node 12 or higher
## Installation
@@ -34,12 +53,100 @@ You can use NPM to add our library to your project
npm install --save @adyen/api-library
```
## Documentation
* https://docs.adyen.com/developers/development-resources/libraries
* https://docs.adyen.com/developers/checkout/api-integration
Alternatively, you can download the [release on GitHub](https://github.com/Adyen/adyen-node-api-library/releases).
## HTTP Client Configuration
## Using the library
### Client initialisation
#### General use with API key
Set up the client as a singleton resource; you can then use it to create service objects for the API calls that you make to Adyen:
```typescript
const { Client } = require('@adyen/api-library');
const client = new Client({apiKey: "YOUR_API_KEY", environment: "TEST"});
```
#### General use with API key for live environment
```typescript
const { Client } = require('@adyen/api-library');
const client = new Client({apiKey: "YOUR_API_KEY", environment: "LIVE"});
```
#### General use with basic auth
```typescript
const { Client } = require('@adyen/api-library');
const client = new Client({username: "YOUR_USERNAME", password: "YOUR_PASSWORD", environment: "TEST"});
```
### Consuming Services
Every API the library supports is represented by a service object. The name of the service matching the corresponding API is listed in the [Integrations](#supported-api-versions) section of this document.
```javascript
const { Client, CheckoutAPI } = require('@adyen/api-library');
const client = new Client({apiKey: "YOUR_API_KEY", environment: "TEST"});
const paymentRequest = {
amount: {
currency: "USD",
value: 1000 // value in minor units
},
reference: "Your order number",
paymentMethod: {
type: "scheme",
encryptedCardNumber: "test_4111111111111111",
encryptedExpiryMonth: "test_03",
encryptedExpiryYear: "test_2030",
encryptedSecurityCode: "test_737"
},
shopperReference: "YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
storePaymentMethod: true,
shopperInteraction: "Ecommerce",
recurringProcessingModel: "CardOnFile",
returnUrl: "https://your-company.com/...",
merchantAccount: "YOUR_MERCHANT_ACCOUNT"
};
const checkoutAPI = new CheckoutAPI(client);
checkoutAPI.payments(paymentRequest)
.then( paymentResponse => console.log(paymentResponse.pspReference))
.catch(error => console.log(error));
```
Alternatively you can make use of the Types included in this library using Typescript, and/or use the async syntax:
```typescript
const { Client, CheckoutAPI } = require('@adyen/api-library');
const client = new Client({apiKey: "YOUR_API_KEY", environment: "TEST"});
import { Types } from '@adyen/api-library';
const doPaymentsRequest = async () => {
const paymentRequest : Types.checkout.PaymentRequest = {
amount: {
currency: "USD",
value: 1000 // value in minor units
},
reference: "Your order number",
paymentMethod: {
type: Types.checkout.CardDetails.TypeEnum.Scheme,
encryptedCardNumber: "test_4111111111111111",
encryptedExpiryMonth: "test_03",
encryptedExpiryYear: "test_2030",
encryptedSecurityCode: "test_737"
},
shopperReference: "YOUR_UNIQUE_SHOPPER_ID_IOfW3k9G2PvXFu2j",
storePaymentMethod: true,
shopperInteraction: Types.checkout.PaymentRequest.ShopperInteractionEnum.Ecommerce,
recurringProcessingModel: Types.checkout.PaymentRequest.RecurringProcessingModelEnum.CardOnFile,
returnUrl: "https://your-company.com/...",
merchantAccount: "YOUR_MERCHANT_ACCOUNT"
};
const checkoutAPI = new CheckoutAPI(client);
const paymentResponse : Types.checkout.PaymentResponse = await checkoutAPI.payments(paymentRequest);
console.log(paymentResponse.pspReference);
}
doPaymentsRequest();
```
### Custom HTTP Client Configuration
By default, NodeJS [https](https://nodejs.org/api/https.html) will be used to submit requests to the API. But you can change that by injecting your own HttpClient on your client instance. In the example below, we use `axios`:
```javascript
@@ -86,10 +193,23 @@ client.httpClient = httpClient;
...
```
## Support
### Example integration
For a closer look at how our NodeJS library works, clone our [example integration](https://github.com/adyen-examples/adyen-node-online-payments). This includes commented code, highlighting key features and concepts, and examples of API calls that can be made using the library.
If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com.
## Contributing
We strongly encourage you to join us in contributing to this repository so everyone can benefit from:
* New features and functionality
* Resolved bug fixes and issues
* Any general improvements
Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how to create a pull request.
## Support
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://www.adyen.help).
## Licence
This repository is available under the [MIT license](LICENSE).
MIT license. For more information, see the LICENSE file.
## See also
* [example integration](https://github.com/adyen-examples/adyen-node-online-payments)

20
config.ts Normal file
View File

@@ -0,0 +1,20 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import "jest-ts-auto-mock"

View File

@@ -11,15 +11,14 @@
* ######
* #############
* ############
*
* Adyen Node API Library
*
* Copyright (c) 2019 Adyen B.V.
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
module.exports = {
preset: "ts-jest",
moduleFileExtensions: [
"ts",
"js"
@@ -27,10 +26,18 @@ module.exports = {
coveragePathIgnorePatterns: [
"<rootDir>/src/typings"
],
unmockedModulePathPatterns: [
"/dist"
],
setupFiles: ["<rootDir>config.ts", "dotenv/config"],
testMatch: [
"**/__tests__/*.ts"
]
"**/src/__tests__/**/*.spec.ts"
],
roots: ['<rootDir>/src'],
transform: {
".ts": "ts-jest"
},
globals: {
"ts-jest": {
compiler: "ttypescript",
transformIgnorePatterns: ['^.+\\\\.js$']
}
},
};

10141
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,12 +1,11 @@
{
"name": "@adyen/api-library",
"version": "2.1.7",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.",
"main": "dist/lib/src/index.js",
"types": "dist/lib/src/index.d.ts",
"module": "dist/lib-esm/src/index.js",
"version": "12.2.0",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"engines": {
"node": ">=8.1.1"
"node": ">=12"
},
"repository": {
"type": "git",
@@ -25,43 +24,41 @@
},
"homepage": "https://github.com/Adyen/adyen-node-api-library#readme",
"scripts": {
"clean": "rm -rf ./dist",
"build": "npm run clean && tsc && tsc -m es6 --outDir dist/lib-esm && webpack",
"build": "tsc",
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint --fix 'src/**/*.ts'",
"test": "jest",
"preversion": "npm test",
"version": "npm run build && git add -A dist",
"postversion": "git push && git push --tags && rm -rf build/temp",
"release": "release-it --no-npm.publish"
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"release": "release-it"
},
"author": "Ricardo Ambrogi",
"license": "MIT",
"devDependencies": {
"@babel/core": "7.6.4",
"@babel/plugin-proposal-class-properties": "7.5.5",
"@babel/plugin-proposal-object-rest-spread": "7.6.2",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/preset-env": "7.6.3",
"@babel/preset-typescript": "7.6.0",
"@babel/runtime": "7.6.3",
"@types/jest": "24.0.21",
"@types/nock": "10.0.3",
"@types/node": "11.15.0",
"@typescript-eslint/eslint-plugin": "2.6.0",
"@typescript-eslint/parser": "2.6.0",
"babel-loader": "8.0.6",
"coveralls": "3.0.7",
"eslint": "6.6.0",
"jest": "24.9.0",
"nock": "11.6.0",
"release-it": "12.4.3",
"ts-loader": "6.2.1",
"typescript": "3.6.4",
"webpack": "4.41.2",
"webpack-cli": "3.3.9"
"@types/jest": "27.5.2",
"@types/nock": "11.1.0",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.45.0",
"acorn": "^8.0.1",
"coveralls": "3.1.1",
"dotenv": "^16.0.0",
"eslint": "8.28.0",
"jest": "^27.0.6",
"jest-ts-auto-mock": "^2.0.0",
"kind-of": "^6.0.3",
"minimist": ">=1.2.3",
"nock": "13.3.0",
"release-it": "15.5.0",
"ts-auto-mock": "^3.3.5",
"ts-jest": "^27.0.4",
"ts-loader": "9.4.2",
"ttypescript": "^1.5.10",
"typescript": "4.9.4"
},
"dependencies": {
"https-proxy-agent": "3.0.1"
"https-proxy-agent": "5.0.1"
},
"optionalDependencies": {
"@types/node": "14.18.36"
}
}

View File

@@ -1,4 +1,5 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]

View File

@@ -1,10 +1,13 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
# General settings
sonar.organization=adyen
sonar.projectKey=Adyen_adyen-node-api-library
# Path to sources
#sonar.sources=.
sonar.exclusions=src/__mocks__/*
sonar.exclusions=src/typings/*
sonar.exclusions=src/__mocks__/**/* , src/typings/**/* , src/__tests__/**/*
#sonar.inclusions=
# Path to tests

View File

@@ -11,10 +11,8 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
@@ -29,70 +27,116 @@ import {
MessageType,
PaymentRequest,
PaymentTransaction,
ReversalReasonType,
ReversalRequest,
SaleData,
SaleToPoiRequest,
SaleToPOIRequest,
TerminalApiRequest,
TransactionIdentification,
} from "../typings/terminal";
TransactionIdentification
} from "../typings/terminal/models";
export const createMockClientFromResponse = (): Client => {
export const createClient = (apiKey = process.env.ADYEN_API_KEY): Client => {
const config: Config = new Config();
config.terminalApiCloudEndpoint = Client.TERMINAL_API_ENDPOINT_TEST;
config.terminalApiLocalEndpoint = "https://mocked_local_endpoint.com";
config.hmacKey = "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00";
config.endpoint = Client.ENDPOINT_TEST;
config.checkoutEndpoint = Client.CHECKOUT_ENDPOINT_TEST;
config.apiKey = "MOCKED_API_KEY";
config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_TEST;
config.apiKey = apiKey;
config.paymentEndpoint = Client.PAYMENT_API_ENDPOINT_TEST;
config.storedValueEndpoint = Client.STOREDVALUE_API_ENDPOINT_TEST;
config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST;
config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST;
config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST;
config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST;
config.transfersEndpoint = Client.TRANSFERS_API_ENDPOINT_TEST;
config.dataProtectionEndpoint = Client.DATA_PROTECTION_API_ENDPOINT_TEST;
const client: Client = new Client({ config });
return client;
return new Client({ config });
};
export const createBasicAuthClient = (): Client => {
return new Client({
username: process.env.ADYEN_USER!,
password: process.env.ADYEN_PASSWORD!,
environment: "TEST",
applicationName: "adyen-node-api-library"
});
};
const id = Math.floor(Math.random() * Math.floor(10000000)).toString();
const getMessageHeader = ({ messageCategory = MessageCategoryType.Payment }: { messageCategory?: MessageCategoryType } = {}): MessageHeader => ({
MessageCategory: messageCategory,
MessageClass: MessageClassType.Service,
MessageType: MessageType.Request,
POIID: process.env.ADYEN_TERMINAL_POIID!,
ProtocolVersion: "3.0",
SaleID: id,
ServiceID: id,
});
const timestamp = (): string => new Date().toISOString();
const transactionIdentification: TransactionIdentification = {
TimeStamp: timestamp(),
TransactionID: id,
};
const saleData: SaleData = {
SaleTransactionID: transactionIdentification,
SaleToAcquirerData: {
applicationInfo: {
merchantApplication: {
version: "1",
name: "test"
}
},
metadata: {
someMetaDataKey1: "YOUR_VALUE",
someMetaDataKey2: "YOUR_VALUE"
},
}
};
const amountsReq: AmountsReq = {
Currency: "EUR",
RequestedAmount: 1,
};
const paymentTransaction: PaymentTransaction = {
AmountsReq: amountsReq,
};
const paymentRequest: PaymentRequest = {
PaymentTransaction: paymentTransaction,
SaleData: saleData,
};
const getReversalRequest = (poiTransaction: TransactionIdentification): ReversalRequest => ({
OriginalPOITransaction: {
POITransactionID: {
TransactionID: poiTransaction.TransactionID,
TimeStamp: poiTransaction.TimeStamp
},
},
ReversalReason: ReversalReasonType.MerchantCancel,
SaleData: saleData
});
const getSaleToPOIRequest = (messageHeader: MessageHeader, request: Partial<SaleToPOIRequest>): SaleToPOIRequest => ({
MessageHeader: messageHeader,
...request
});
export const createTerminalAPIPaymentRequest = (): TerminalApiRequest => {
const messageHeader: MessageHeader = {
messageCategory: MessageCategoryType.Payment,
messageClass: MessageClassType.Service,
messageType: MessageType.Request,
poiid: "P400Plus-123456789",
protocolVersion: "3.0",
saleId: "001",
serviceId: "001",
};
const timestamp = new Date().toISOString();
const transactionIdentification: TransactionIdentification = {
timeStamp: timestamp,
transactionId: "001",
};
const saleData: SaleData = {
saleTransactionId: transactionIdentification,
};
const amountsReq: AmountsReq = {
currency: "EUR",
requestedAmount: 1,
};
const paymentTransaction: PaymentTransaction = {
amountsReq: amountsReq,
};
const paymentRequest: PaymentRequest = {
paymentTransaction: paymentTransaction,
saleData: saleData,
};
const saleToPOIRequest: SaleToPoiRequest = {
messageHeader: messageHeader,
paymentRequest: paymentRequest,
};
const terminalApiRequest: TerminalApiRequest = {
saleToPoiRequest: saleToPOIRequest,
};
return terminalApiRequest;
const messageHeader = getMessageHeader();
const saleToPOIRequest = getSaleToPOIRequest(messageHeader, { PaymentRequest: paymentRequest });
return { SaleToPOIRequest: saleToPOIRequest };
};
export const createTerminalAPIRefundRequest = (transactionIdentification: TransactionIdentification): TerminalApiRequest => {
const messageHeader = getMessageHeader({ messageCategory: MessageCategoryType.Reversal });
const saleToPOIRequest = getSaleToPOIRequest(messageHeader, { ReversalRequest: getReversalRequest(transactionIdentification) });
return { SaleToPOIRequest: saleToPOIRequest };
};

View File

@@ -0,0 +1,26 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const originKeysSuccess = JSON.stringify({
originKeys: {
"https://www.your-domain.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI",
"https://www.your-domain2.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4yLmNvbQ.EP6eXBJKk0t7-QIUl6e_b1qMuMHGepxG_SlUqxAYrfY",
"https://www.your-domain3.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4zLmNvbQ.fUvflu-YIdZSsLEH8Qqmr7ksE4ag_NYiiMXK0s6aq_4",
},
});

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentMethodsSuccess = JSON.stringify({
paymentMethods: [

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentSessionError = {
statusCode: 422,

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const paymentMethodsError = {
errorCode: "901",
errorType: "security",

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentDetailsError = {
statusCode: 422,

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentDetailsSuccess = JSON.stringify({
pspReference: "8515232733321252",

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentsError = JSON.stringify({
statusCode: 422,

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentsResultError = JSON.stringify({
statusCode: 422,

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentsResultMultibancoSuccess = {
additionalData: {

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentsResultSuccess = JSON.stringify({
pspReference: "8535253563623704",

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const paymentsSuccess = JSON.stringify({
additionalData: {
@@ -10,6 +29,7 @@ export const paymentsSuccess = JSON.stringify({
alias: "H167852639363479",
cardPaymentMethod: "visa",
cardIssuingCountry: "NL",
"recurring.recurringDetailReference": "8415883203388055",
},
fraudResult: {
accountScore: 0,

View File

@@ -0,0 +1,33 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/* tslint:disable */
export const sessionsSuccess = JSON.stringify({
"amount": {
"currency": "EUR",
"value": 100
},
"countryCode": "NL",
"expiresAt": "2021-10-08T17:28:56+02:00",
"id": "CS841C62BF399F968C",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"reference": "YOUR_PAYMENT_REFERENCE",
"returnUrl": "https://your-company.com/checkout?shopperOrder=12xy..",
"sessionData": "Ab02b4c0!BQABAgAeRei/Zyr+UYwMcTlHkeYjwn143zTmCmDmWwBg+gZr8us16qqoeVFon6NexiKmZLurm05iRiLagbIIS8BtFzvtX5myx4m0N1vBJWZRDZKHP3g4cyXjEnTnK0CmNsX0bDeojkHU4qChCkn1jIux/rSSp2IIBqe1SfbGVRC9bM17Nj90fJPBxp5MFMw7HKpuvlRNj8CncKPAyPhd4pY+O3GKTiFoZKpx/kVKO7PnILEC07q4rqEzVjSW2U5ADcnR+mJ8V0YVn8Yy4KqNLn68GKMHXe2+NRvidA/UC72F72dOtV1bqxRr/0G6bCW7iuxve+M0IYZ3apHbgS1vWcvUaOI7n1u02M6SWsZDcKgsaT0PoxQkUvdU3ViG7f7Xtac8pjcOxAzhtug/B6Qx/zaTUIWBRKQM5Ga9T7Vo9s9I1Kgv3zuQqeN9OiUhB1mvoxfSPkKYTVjYooj4CELNy9+xuU8/TI+XqK24FIiTacvcJ8Vt0RCSWcE47AG4qiKPBFcBMwpUfz78ud/gu4uBHtt/bh5vJu5GG462tr5W3a/5CeGDX37sqTnrUGom86daTll+kbKo3rC4CH8+K245XNIvIVXLUGrci52lzm09ptPEh/Aj8uBGHLA4Cc0ILAi3rxI5nNcurgbAZiZ7QA3iBEih4euVXBZmKRIfY2U0ijEQLBo8mBDuOjj4GNFT2XrRVs2rwhldAEp7ImtleSI6IkFGMEFBQTEwM0NBNTM3RUFFRDg3QzI0REQ1MzkwOUI4MEE3OEE5MjNFMzgyM0Q2OERBQ0M5NEI5RkY4MzA1REMifWHVSkL3b2GTohsmKmsBVvRtOiDyOWBpV+mylCFs/EQuj7PFJBVjaLoIq1Prk4hZFhBzEf7SsQYHzfTr+BKFH+6fblTW4ObszU3YwF6ehRDaLYxv4sPdVPdguWcuxIvzRenzPlGWu78z6cj1ROHNE3uREUgmVYf9ERbMm8OKJ/uqS1pMPvCYcHIJ0IrXbloQhKaSZdJNmsjGFbfBW8Tr29foxKH280TjbauaZydPWsEuEUIyeWYFBMoozW7de/6RLrDhnQEn/We/6EmsL86QzG+JSkBFloTFo2kdttqA9dfK0l7U3HjtEXmNBFy13DTr5tJcYMz+IcTwe0PqPCgUR+MZDOpAOFc1uHdccok7sttiV4K4xTKkpThiCgrAqklNoD7UcctS5c7RaNQxrwHM5orI0vkGG2hzDXKOUNw4068u"
});

View File

@@ -1,7 +0,0 @@
export const originKeysSuccess = JSON.stringify({
originKeys: {
"https://www.your-domain1.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI",
"https://www.your-domain2.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4yLmNvbQ.EP6eXBJKk0t7-QIUl6e_b1qMuMHGepxG_SlUqxAYrfY",
"https://www.your-domain3.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4zLmNvbQ.fUvflu-YIdZSsLEH8Qqmr7ksE4ag_NYiiMXK0s6aq_4",
},
});

View File

@@ -0,0 +1,233 @@
export const businessLineInfo = {
"capability": "issueBankAccount",
"industryCode": "55",
"webData": [
{
"webAddress": "https://www.adyen.com"
}
],
"legalEntityId": "LE322KT223222D5FJ7THR293F",
"sourceOfFunds": {
"type": "business",
"adyenProcessedFunds": "false",
"description": "Funds from my flower shop business"
}
};
export const businessLineInfoUpdate = {
"capability": "string",
"industryCode": "string",
"legalEntityId": "string",
"salesChannels": ["string"],
"sourceOfFunds": {
"acquiringBusinessLineId": "string",
"adyenProcessedFunds": false,
"description": "string",
"type": "business"
},
"webData": [{ "webAddress": "string" }],
"webDataExemption": { "reason": "noOnlinePresence" }
};
export const document = {
"attachment": {
"content": "string",
"contentType": "string",
"filename": "string",
"pageName": "string",
"pageType": "string"
},
"attachments": [{
"content": "string",
"contentType": "string",
"filename": "string",
"pageName": "string",
"pageType": "string"
}],
"description": "string",
"expiryDate": "string",
"fileName": "string",
"id": "string",
"issuerCountry": "string",
"issuerState": "string",
"number": "string",
"owner": {
"id": "string",
"type": "string"
},
"type": "bankStatement"
};
export const onboardingLinkInfo = {
"locale": "cs-CZ",
"redirectUrl": "https://your.redirect-url.com",
"themeId": "123456789"
};
export const legalEntityInfo = {
"type": "individual",
"individual": {
"residentialAddress": {
"city": "San Francisco",
"country": "US",
"postalCode": "94107",
"street": "Brannan Street 274",
"stateOrProvince": "CA"
},
"phone": {
"countryCode": "US",
"number": "5551231234",
"type": "mobile"
},
"name": {
"firstName": "Simone",
"lastName": "Hopper"
},
"birthData": {
"dateOfBirth": "1981-12-01"
},
"email": "s.hopper@example.com"
}
};
export const genericEntityInfo = {
"entityAssociations": [{
"associatorId": "string",
"entityType": "string",
"jobTitle": "string",
"legalEntityId": "string",
"name": "string",
"type": "signatory"
}],
"individual": {
"birthData": { "dateOfBirth": "string" },
"email": "string",
"identificationData": {
"expiryDate": "string",
"issuerCountry": "string",
"issuerState": "string",
"nationalIdExempt": false,
"number": "string",
"type": "bankStatement"
},
"name": {
"firstName": "string",
"infix": "string",
"lastName": "string"
},
"nationality": "string",
"phone": {
"number": "string",
"type": "string"
},
"residentialAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"taxInformation": [{
"country": "string",
"number": "string",
"type": "string"
}],
"webData": { "webAddress": "string" }
},
"organization": {
"description": "string",
"doingBusinessAs": "string",
"email": "string",
"legalName": "string",
"phone": {
"number": "string",
"type": "string"
},
"principalPlaceOfBusiness": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registeredAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registrationNumber": "string",
"stockData": {
"marketIdentifier": "string",
"stockNumber": "string",
"tickerSymbol": "string"
},
"taxInformation": [{
"country": "string",
"number": "string",
"type": "string"
}],
"taxReportingClassification": {
"businessType": "other",
"financialInstitutionNumber": "string",
"mainSourceOfIncome": "businessOperation",
"type": "nonFinancialNonReportable"
},
"type": "associationIncorporated",
"vatAbsenceReason": "industryExemption",
"vatNumber": "string",
"webData": { "webAddress": "string" }
},
"soleProprietorship": {
"countryOfGoverningLaw": "string",
"doingBusinessAs": "string",
"name": "string",
"principalPlaceOfBusiness": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registeredAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registrationNumber": "string",
"vatAbsenceReason": "industryExemption",
"vatNumber": "string"
}
};
export const transferInstrumentInfo = {
"bankAccount": {
"accountNumber": "string",
"accountType": "string",
"bankBicSwift": "string",
"bankCity": "string",
"bankCode": "string",
"bankName": "string",
"branchCode": "string",
"checkCode": "string",
"countryCode": "string",
"currencyCode": "string",
"iban": "string"
},
"legalEntityId": "string",
"recurringDetail": {
"merchantAccount": "string",
"reference": "string",
"shopperReference": "string"
},
"type": "bankAccount"
};

View File

@@ -0,0 +1,241 @@
export const businessLine = {
"capability": "receivePayments",
"id": "123456789",
"industryCode": "123456789",
"legalEntityId": "123456789",
"salesChannels": ["string"],
"sourceOfFunds": {
"acquiringBusinessLineId": "string",
"adyenProcessedFunds": false,
"description": "string",
"type": "business"
},
"webData": [{ "webAddress": "string" }],
"webDataExemption": { "reason": "noOnlinePresence" }
};
export const document = {
"attachment": {
"content": "string",
"contentType": "string",
"filename": "string",
"pageName": "string",
"pageType": "string"
},
"attachments": [{
"content": "string",
"contentType": "string",
"filename": "string",
"pageName": "string",
"pageType": "string"
}],
"description": "string",
"expiryDate": "string",
"fileName": "string",
"id": "123456789",
"issuerCountry": "string",
"issuerState": "string",
"number": "string",
"owner": {
"id": "123456789",
"type": "passport"
},
"type": "driversLicense"
};
export const onboardingLink = { "url": "https://your.redirect-url.com" };
export const onboardingThemes = {
"next": "string",
"previous": "string",
"themes": [{
"createdAt": "2022-10-31T01:30:00.000Z",
"description": "string",
"id": "123456789",
"properties": { "sample": "string" },
"updatedAt": "2022-10-31T01:30:00.000Z"
}]
};
export const onboardingTheme = {
"createdAt": "string",
"description": "string",
"id": "123456789",
"properties": { "sample": "string" },
"updatedAt": "string"
};
export const legalEntity = {
"documentDetails": [{
"active": false,
"fileName": "string",
"id": "string"
}],
"documents": [{ "id": "string" }],
"entityAssociations": [{
"associatorId": "string",
"entityType": "string",
"jobTitle": "string",
"legalEntityId": "string",
"name": "string",
"type": "signatory"
}],
"id": "123456789",
"individual": {
"birthData": { "dateOfBirth": "string" },
"email": "string",
"identificationData": {
"expiryDate": "string",
"issuerCountry": "string",
"issuerState": "string",
"nationalIdExempt": false,
"number": "string",
"type": "bankStatement"
},
"name": {
"firstName": "string",
"infix": "string",
"lastName": "string"
},
"nationality": "string",
"phone": {
"number": "string",
"type": "string"
},
"residentialAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"taxInformation": [{
"country": "string",
"number": "string",
"type": "string"
}],
"webData": { "webAddress": "string" }
},
"organization": {
"description": "string",
"doingBusinessAs": "string",
"email": "string",
"legalName": "string",
"phone": {
"number": "string",
"type": "string"
},
"principalPlaceOfBusiness": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registeredAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registrationNumber": "string",
"stockData": {
"marketIdentifier": "string",
"stockNumber": "string",
"tickerSymbol": "string"
},
"taxInformation": [{
"country": "string",
"number": "string",
"type": "string"
}],
"taxReportingClassification": {
"businessType": "other",
"financialInstitutionNumber": "string",
"mainSourceOfIncome": "businessOperation",
"type": "nonFinancialNonReportable"
},
"type": "associationIncorporated",
"vatAbsenceReason": "industryExemption",
"vatNumber": "string",
"webData": { "webAddress": "string" }
},
"reference": "string",
"soleProprietorship": {
"countryOfGoverningLaw": "string",
"doingBusinessAs": "string",
"name": "string",
"principalPlaceOfBusiness": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registeredAddress": {
"city": "string",
"country": "string",
"postalCode": "string",
"stateOrProvince": "string",
"street": "string",
"street2": "string"
},
"registrationNumber": "string",
"vatAbsenceReason": "industryExemption",
"vatNumber": "string"
},
"transferInstruments": [{ "id": "string" }],
"type": "individual"
};
export const businessLines = {
"businessLines": [{
"capability": "receivePayments",
"id": "123456789",
"industryCode": "123456789",
"legalEntityId": "123456789",
"salesChannels": ["string"],
"sourceOfFunds": {
"acquiringBusinessLineId": "string",
"adyenProcessedFunds": false,
"description": "string",
"type": "business"
},
"webData": [{ "webAddress": "string" }],
"webDataExemption": { "reason": "noOnlinePresence" }
}]
};
export const transferInstrument = {
"bankAccount": {
"accountNumber": "string",
"accountType": "string",
"bankBicSwift": "string",
"bankCity": "string",
"bankCode": "string",
"bankName": "string",
"branchCode": "string",
"checkCode": "string",
"countryCode": "string",
"currencyCode": "string",
"iban": "string"
},
"documentDetails": [{
"active": false,
"fileName": "string",
"id": "string"
}],
"id": "123456789",
"legalEntityId": "123456789",
"recurringDetail": {
"merchantAccount": "string",
"reference": "string",
"shopperReference": "string"
},
"type": "bankAccount"
};

View File

@@ -0,0 +1,225 @@
export const createMerchantRequest = {
"companyId": "YOUR_COMPANY_ACCOUNT",
"legalEntityId": "YOUR_LEGAL_ENTITY_ID",
"businessLineId": "YOUR_BUSINESS_LINE_ID",
"description": "YOUR_DESCRIPTION",
"reference": "YOUR_OWN_REFERENCE"
};
export const allowedOrigin = {
"_links": { "self": { "href": "string" } },
"domain": "string",
"id": "string"
};
export const createMerchantApiCredentialRequest = {
"roles": [
"Checkout webservice role"
],
"allowedOrigins": [
"https://www.mystore.com"
]
};
export const updateMerchantApiCredentialRequest = {
"active": false,
"allowedOrigins": ["string"],
"description": "string",
"roles": ["string"]
};
export const paymentMethodSetupInfo = {
"type": "visa",
"currencies": [
"USD"
],
"countries": [
"US"
]
};
export const updatePaymentMethodInfo = {
"countries": ["string"],
"currencies": ["string"],
"enabled": false
};
export const payoutSettingsRequest = {
"enabled": false,
"enabledFromDate": "string",
"transferInstrumentId": "string"
};
export const updatePayoutSettingsRequest = { "enabled": false };
export const shippingLocation = {
"name": "YOUR_MERCHANT_ACCOUNT Barcelona depot",
"address": {
"companyName": "YOUR_COMPANY",
"streetAddress": "El quinto pino 42",
"postalCode": "08012",
"city": "Barcelona",
"stateOrProvince": "",
"country": "ES"
},
"contact": {
"firstName": "Rita",
"lastName": "Perengano",
"phoneNumber": "+34 93 1234567",
"email": "Rita.Perengano@company.com"
}
};
export const terminalOrderRequest = {
"shippingLocation": "S2-73536B20665526704F30792642212044452F714622375D477270",
"items": [
{
"id": "TBOX-V400m-684-EU",
"name": "V400m Package",
"quantity": 1
},
{
"id": "PART-287001-EU",
"name": "Bluetooth Charging Base - V400m",
"quantity": 2
},
{
"id": "PART-620222-EU",
"name": "Receipt Roll",
"quantity": 20
}
]
};
export const logo = {
"data": ""
};
export const terminalSettings = {
"wifiProfiles": {
"profiles": [
{
"authType": "wpa-eap",
"autoWifi": false,
"bssType": "infra",
"channel": 0,
"defaultProfile": true,
"eap": "peap",
"eapCaCert": {
"data": "MD1rKS05M2JqRVFNQ...RTtLH1tLWo=",
"name": "eap-peap-ca.pem"
},
"eapIdentity": "admin",
"eapIntermediateCert": {
"data": "PD3tUS1CRDdJTiGDR...EFoLS0tLQg=",
"name": "eap-peap-client.pem"
},
"eapPwd": "EAP_PEAP_PASSWORD",
"hiddenSsid": false,
"name": "Profile-eap-peap-1",
"ssid": "your-network",
"wsec": "ccmp"
},
{
"authType": "wpa-psk",
"autoWifi": false,
"bssType": "infra",
"channel": 0,
"defaultProfile": false,
"hiddenSsid": false,
"name": "Profile-guest-wifi",
"psk": "WIFI_PASSWORD",
"ssid": "your-network",
"wsec": "ccmp"
}
],
"settings": {
"band": "2.4GHz",
"roaming": true,
"timeout": 5
}
}
};
export const createMerchantUserRequest = {
"name": {
"firstName": "John",
"lastName": "Smith"
},
"username": "johnsmith",
"email": "john.smith@example.com",
"timeZoneCode": "Europe/Amsterdam",
"roles": [
"Merchant standard role"
],
"associatedMerchantAccounts": [
"YOUR_MERCHANT_ACCOUNT"
]
};
export const updateMerchantUserRequest = {
"accountGroups": ["string"],
"active": false,
"email": "string",
"name": {
"firstName": "string",
"lastName": "string"
},
"roles": ["string"],
"timeZoneCode": "string"
};
export const createMerchantWebhookRequest = {
"acceptsExpiredCertificate": false,
"acceptsSelfSignedCertificate": false,
"acceptsUntrustedRootCertificate": false,
"active": false,
"additionalSettings": {
"includeEventCodes": ["string"],
"properties": { "sample": false }
},
"communicationFormat": "HTTP",
"description": "string",
"networkType": "LOCAL",
"password": "string",
"populateSoapActionHeader": false,
"sslVersion": "HTTP",
"type": "string",
"url": "string",
"username": "string"
};
export const updateMerchantWebhookRequest = {
"acceptsExpiredCertificate": false,
"acceptsSelfSignedCertificate": false,
"acceptsUntrustedRootCertificate": false,
"active": false,
"additionalSettings": {
"includeEventCodes": ["string"],
"properties": { "sample": false }
},
"communicationFormat": "HTTP",
"description": "string",
"networkType": "LOCAL",
"password": "string",
"populateSoapActionHeader": false,
"sslVersion": "HTTP",
"url": "string",
"username": "string"
};
export const testWebhookRequest = {
"notification": {
"amount": {
"currency": "string",
"value": 0
},
"eventCode": "string",
"eventDate": "string",
"merchantReference": "string",
"paymentMethod": "string",
"reason": "string",
"success": false
},
"types": ["string"]
};

File diff suppressed because it is too large Load Diff

View File

@@ -11,7 +11,8 @@
"totalFraudScore": "10",
"hmacSignature": "OzDjCMZIsdtDqrZ+cl\/FWC+WdESrorctXTzAzW33dXI=",
"NAME2": " VALUE2 ",
"fraudCheck-6-ShopperIpUsage": "10"
"fraudCheck-6-ShopperIpUsage": "10",
"paymentLinkId": "ABCDEFG"
},
"amount": {
"currency": "EUR",

View File

@@ -22,4 +22,4 @@
}
}
]
}
}

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,22 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const disableSuccess = {
response: "[detail-successfully-disabled]",
};

View File

@@ -1,52 +1,77 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const listRecurringDetailsSuccess = {
creationDate: "2017-03-01T10:53:11.000",
details: [
"creationDate": "2017-03-01T11:53:11+01:00",
"details": [
{
additionalData: {
cardBin: "411111",
"acquirer": "TestPmmAcquirer",
"acquirerAccount": "TestPmmAcquirerAccount",
"additionalData": {
"cardBin": "411111"
},
alias: "cardAlias",
aliasType: "Default",
card: {
expiryMonth: "8",
expiryYear: "2018",
holderName: "Holder",
number: "1111",
"alias": "cardAlias",
"aliasType": "Default",
"card": {
"expiryMonth": "8",
"expiryYear": "2018",
"holderName": "Holder",
"number": "1111"
},
contractTypes: [
"ONECLICK",
"contractTypes": [
"ONECLICK"
],
creationDate: "2017-03-01T10:53:11.000",
firstPspReference: "8524888762135795",
paymentMethodVariant: "visa",
recurringDetailReference: "recurringReference",
variant: "visa",
"creationDate": "2017-03-07T09:43:33+01:00",
"firstPspReference": "8524888762135795",
"paymentMethodVariant": "visa",
"recurringDetailReference": "recurringReference",
"variant": "visa"
},
{
billingAddress: {
city: "City",
country: "NL",
houseNumberOrName: "1",
postalCode: "2312aa",
stateOrProvince: "NA",
street: "Street",
"acquirer": "PayPalSandbox",
"acquirerAccount": "TestPmmAcquirerAccount",
"billingAddress": {
"city": "City",
"country": "NL",
"houseNumberOrName": "1",
"postalCode": "2312aa",
"stateOrProvince": "NA",
"street": "Street"
},
contractTypes: [
"RECURRING",
"contractTypes": [
"RECURRING"
],
creationDate: "2017-03-01T10:53:11.000",
firstPspReference: "8515076181707110",
paymentMethodVariant: "paypal",
recurringDetailReference: "8315076181982020",
tokenDetails: {
tokenData: {
"BillingAgreementId": "B-7MA42752FE774625C",
"creationDate": "2017-10-10T08:50:02+02:00",
"firstPspReference": "8515076181707110",
"paymentMethodVariant": "paypal",
"recurringDetailReference": "8315076181982020",
"tokenDetails": {
"tokenData": {
"EmailId": "tedtest@test.nl",
"PayPal.PayerId": "H95EPL8B2KFE6",
"BillingAgreementId": "B-7MA42752FE774625C"
},
tokenDataType: "PayPal",
"tokenDataType": "PayPal"
},
variant: "paypal",
},
"variant": "paypal"
}
],
"shopperReference": "test-123",
"invalidOneclickContracts": "false"
};

View File

@@ -0,0 +1,28 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const notifyShopperSuccess = {
"message": "Request Processed Successfully",
"resultCode": "Success",
"shopperNotificationReference": "9915003646742627",
"storedPaymentMethodId": "8415995487234100",
"pspReference": "9915003646742627",
"reference": "Example reference",
"displayedReference": "Example displayed reference"
};

View File

@@ -1 +1,20 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const asyncRes = "ok";

View File

@@ -1,4 +1,23 @@
export const localSecuredRes = JSON.stringify({
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const localSecuredRes = {
SaleToPOIResponse: {
MessageHeader: {
MessageCategory: "Payment",
@@ -9,326 +28,11 @@ export const localSecuredRes = JSON.stringify({
SaleID: "325488592",
ServiceID: "325488592"
},
paymentResponse: {
paymentReceipt: [
{
documentQualifier: "CashierReceipt",
outputContent: {
outputFormat: "Text",
outputText: [
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "key=header1"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "key=header2"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "name=MERCHANT%20COPY&key=merchantTitle"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Date&value=08%2f05%2f19&key=txdate"
},
{
endOfLineFlag: true,
text: "name=Time&value=15%3a25%3a15&key=txtime"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Card&value=%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a0010&key=pan"
},
{
endOfLineFlag: true,
text: "name=PAN%20seq.&value=01&key=panSeq"
},
{
endOfLineFlag: true,
text: "name=Pref.%20name&value=PPC%20MCD%2001%20v2%202&key=preferredName"
},
{
endOfLineFlag: true,
text: "name=Card%20type&value=mc&key=cardType"
},
{
endOfLineFlag: true,
text: "name=Payment%20method&value=mc&key=paymentMethod"
},
{
endOfLineFlag: true,
text: "name=Payment%20variant&value=mc&key=paymentMethodVariant"
},
{
endOfLineFlag: true,
text: "name=Entry%20mode&value=Contactless%20chip&key=posEntryMode"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=AID&value=A0000000041010&key=aid"
},
{
endOfLineFlag: true,
text: "name=MID&value=1000&key=mid"
},
{
endOfLineFlag: true,
text: "name=TID&value=P400Plus-275039202&key=tid"
},
{
endOfLineFlag: true,
text: "name=PTID&value=75039202&key=ptid"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Auth.%20code&value=123456&key=authCode"
},
{
endOfLineFlag: true,
text: "name=Tender&value=4r7i001557325515012&key=txRef"
},
{
endOfLineFlag: true,
text: "name=Reference&value=999&key=mref"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Type&value=GOODS_SERVICES&key=txtype"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "name=TOTAL&value=%e2%82%ac%c2%a01.00&key=totalAmount"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "name=APPROVED&key=approved"
}
]
},
requiredSignatureFlag: false
},
{
documentQualifier: "CustomerReceipt",
outputContent: {
outputFormat: "Text",
outputText: [
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "key=header1"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "key=header2"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "name=CARDHOLDER%20COPY&key=cardholderHeader"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Date&value=08%2f05%2f19&key=txdate"
},
{
endOfLineFlag: true,
text: "name=Time&value=15%3a25%3a15&key=txtime"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Card&value=%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a0010&key=pan"
},
{
endOfLineFlag: true,
text: "name=PAN%20seq.&value=01&key=panSeq"
},
{
endOfLineFlag: true,
text: "name=Pref.%20name&value=PPC%20MCD%2001%20v2%202&key=preferredName"
},
{
endOfLineFlag: true,
text: "name=Card%20type&value=mc&key=cardType"
},
{
endOfLineFlag: true,
text: "name=Payment%20method&value=mc&key=paymentMethod"
},
{
endOfLineFlag: true,
text: "name=Payment%20variant&value=mc&key=paymentMethodVariant"
},
{
endOfLineFlag: true,
text: "name=Entry%20mode&value=Contactless%20chip&key=posEntryMode"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=AID&value=A0000000041010&key=aid"
},
{
endOfLineFlag: true,
text: "name=MID&value=1000&key=mid"
},
{
endOfLineFlag: true,
text: "name=TID&value=P400Plus-275039202&key=tid"
},
{
endOfLineFlag: true,
text: "name=PTID&value=75039202&key=ptid"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Auth.%20code&value=123456&key=authCode"
},
{
endOfLineFlag: true,
text: "name=Tender&value=4r7i001557325515012&key=txRef"
},
{
endOfLineFlag: true,
text: "name=Reference&value=999&key=mref"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Type&value=GOODS_SERVICES&key=txtype"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "name=TOTAL&value=%e2%82%ac%c2%a01.00&key=totalAmount"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
characterStyle: "Bold",
endOfLineFlag: true,
text: "name=APPROVED&key=approved"
},
{
endOfLineFlag: true,
text: "key=filler"
},
{
endOfLineFlag: true,
text: "name=Please%20retain%20for%20your%20records&key=retain"
},
{
endOfLineFlag: true,
text: "name=Thank%20you&key=thanks"
}
]
},
requiredSignatureFlag: false
}
],
paymentResult: {
amountsResp: {
authorizedAmount: 1,
currency: "EUR"
},
onlineFlag: true,
paymentAcquirerData: {
acquirerPoiid: "P400Plus-275039202",
acquirerTransactionId: {
timeStamp: "2019-05-08T14:25:15.000Z",
transactionId: "8815573255107661"
},
approvalCode: "123456",
merchantId: "TestMerchantRenatoTest"
},
paymentInstrumentData: {
cardData: {
cardCountryCode: "056",
entryMode: [
"Contactless"
],
maskedPan: "541333 **** 0010",
paymentBrand: "mc",
sensitiveCardData: {
cardSeqNumb: "01",
expiryDate: "1225"
}
},
paymentInstrumentType: "Card"
}
},
poiData: {
poiReconciliationId: "1000",
poiTransactionId: {
timeStamp: "2019-05-08T14:25:15.000Z",
transactionId: "4r7i001557325515012.8815573255107661"
}
},
response: {
additionalResponse: "tid=75039202&AID=A0000000041010&transactionType=GOODS_SERVICES&backendGiftcardIndicator=false&expiryYear=2025&acquirerAccountCode=TestPmmAcquirerAccount&alias=K182596230843790&posOriginalAmountCurrency=EUR&giftcardIndicator=false&authorisedAmountValue=100&pspReference=8815573255107661&paymentMethodVariant=mc&cardHolderName=N%2fA&refusalReasonRaw=APPROVED&authorisationMid=1000&expiryDate=12%2f2025&applicationPreferredName=PPC%20MCD%2001%20v2%202&isCardCommercial=unknown&acquirerCode=TestPmmAcquirer&txtime=15%3a25%3a15&iso8601TxDate=2019-05-08T14%3a25%3a15.0000000%2b0000&cardType=mc&posOriginalAmountValue=100&offline=false&aliasType=Default&txdate=08-05-2019&paymentMethod=mc&cvcResult=0%20Unknown&startYear=2030&tc=A767D7547D930504&avsResult=0%20Unknown&cardIssueNumber=1&mid=1000&merchantReference=999&transactionReferenceNumber=8815573255107661&expiryMonth=12&cardSummary=0010&posTotalAmountValue=100&posAuthAmountCurrency=EUR&cardHolderVerificationMethodResults=1F0302&authCode=123456&cardIssuerCountryId=056&shopperCountry=NL&posEntryMode=CLESS_CHIP&startMonth=34&fundingSource=CREDIT&cardScheme=mc&cardBin=541333&posAuthAmountValue=100",
result: "Success"
},
saleData: {
saleTransactionId: {
timeStamp: "2019-05-08T14:24:48.598Z",
transactionId: "999"
}
}
}
PaymentResponse: {}
}
});
};
export const localEncRes = JSON.stringify({
export const localEncRes = {
SaleToPOIResponse: {
MessageHeader: {
MessageCategory: "Payment",
@@ -434,9 +138,9 @@ export const localEncRes = JSON.stringify({
Nonce: "9iiJMpzKfYs3106ozIKNFQ==",
},
},
});
};
export const wrongEncRes = JSON.stringify({
export const wrongEncRes = {
SaleToPOIResponse: {
MessageHeader: {
MessageCategory: "Payment",
@@ -542,4 +246,4 @@ export const wrongEncRes = JSON.stringify({
Nonce: "9iiJMpzKfYs3106ozIKNFQ==",
},
},
});
};

View File

@@ -1,13 +1,32 @@
export const syncRes = JSON.stringify({
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const syncRes = {
SaleToPOIResponse: {
MessageHeader: {
MessageCategory: "Payment",
MessageClass: "Service",
MessageType: "Response",
POIID: "P400Plus-123456789",
POIID: process.env.ADYEN_TERMINAL_POIID,
ProtocolVersion: "3.0",
SaleID: "001",
ServiceID: "1234567890",
ServiceID: "001",
},
PaymentResponse: {
POIData: {
@@ -326,4 +345,44 @@ export const syncRes = JSON.stringify({
},
},
},
});
};
export const syncRefund = {
SaleToPOIResponse: {
MessageHeader: {
MessageCategory: "Payment",
MessageClass: "Service",
MessageType: "Response",
POIID: process.env.ADYEN_TERMINAL_POIID,
ProtocolVersion: "3.0",
SaleID: "001",
ServiceID: "001",
},
ReversalResponse: {
Response: {
Result: "Success"
}
}
}
};
export const syncResEventNotification = {
SaleToPOIRequest: {
EventNotification: {
EventToNotify: "Reject",
EventDetails: "message=Did+not+receive+a+response+from+the+POI.",
RejectedMessage: "ewoi...0KfQo=",
TimeStamp: "2020-03-31T10:28:39.515Z"
},
MessageHeader: {
DeviceID: "666568147",
MessageCategory: "Event",
MessageClass: "Event",
MessageType: "Notification",
POIID: "P400Plus-123456789",
ProtocolVersion: "3.0",
SaleID: "saleid-4c32759faaa7",
ServiceID: "31122609"
}
}
};

View File

@@ -0,0 +1,135 @@
export const transfersSuccess = {
"id" : "1W1UG35U8A9J5ZLG",
"amount" : {
"value" : 110000,
"currency" : "EUR"
},
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
"category" : "bank",
"counterparty" : {
"accountHolder" : {
"fullName" : "A. Klaassen",
"address" : {
"city" : "San Francisco",
"country" : "US",
"postalCode" : "94678",
"stateOrProvince" : "CA",
"street" : "Brannan Street",
"street2" : "274"
}
},
"accountIdentification" : {
"type" : "numberBic",
"accountNumber" : "123456789",
"bic" : "BOFAUS3NXXX"
}
},
"priority" : "wire",
"referenceForBeneficiary" : "Your reference sent to the beneficiary",
"reference" : "Your internal reference for the transfer",
"description" : "Your description for the transfer",
"direction" : "outgoing",
"reason" : "approved",
"status" : "authorised"
};
export const getTransactionSuccess = {
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
"amount" : {
"currency" : "EUR",
"value" : 9887
},
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
"bookingDate" : "2022-03-14T12:01:00+01:00",
"category" : "bank",
"counterparty" : {
"balanceAccountId" : "NL29ADYX0000000001"
},
"createdAt" : "2022-03-14T12:01:00+01:00",
"description" : "YOUR_DESCRIPTION",
"id" : "IZK7C25U7DYVX03Y",
"instructedAmount" : {
"currency" : "EUR",
"value" : 9887
},
"reference" : "2L6C6B5U7DYULLXC",
"referenceForBeneficiary" : "YOUR_REFERENCE_FOR_BENEFICIARY",
"status" : "booked",
"transferId" : "2QP32A5U7IWC5WKG",
"type" : "bankTransfer",
"valueDate" : "2022-03-14T12:01:00+01:00"
};
export const listTransactionsSuccess = {
"data" : [
{
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
"amount" : {
"currency" : "EUR",
"value" : -9
},
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
"bookingDate" : "2022-03-11T11:21:24+01:00",
"category" : "internal",
"createdAt" : "2022-03-11T11:21:24+01:00",
"id" : "1VVF0D5U66PIUIVP",
"instructedAmount" : {
"currency" : "EUR",
"value" : -9
},
"reference" : "REFERENCE_46e8c40e",
"status" : "booked",
"transferId" : "1VVF0D5U66PIUIVP",
"type" : "fee",
"valueDate" : "2022-03-11T11:21:24+01:00"
},
{
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
"amount" : {
"currency" : "EUR",
"value" : -46
},
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
"bookingDate" : "2022-03-12T14:22:52+01:00",
"category" : "internal",
"createdAt" : "2022-03-12T14:22:52+01:00",
"id" : "1WEPGD5U6MS1CFK3",
"instructedAmount" : {
"currency" : "EUR",
"value" : -46
},
"reference" : "YOUR_REFERENCE",
"status" : "booked",
"transferId" : "1WEPGD5U6MS1CFK3",
"type" : "fee",
"valueDate" : "2022-03-12T14:22:52+01:00"
},
{
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
"amount" : {
"currency" : "EUR",
"value" : -8
},
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
"bookingDate" : "2022-03-14T21:00:48+01:00",
"createdAt" : "2022-03-14T15:00:00+01:00",
"description" : "YOUR_DESCRIPTION_2",
"id" : "2QP32A5U7IWC5WKG",
"instructedAmount" : {
"currency" : "EUR",
"value" : -8
},
"status" : "booked",
"valueDate" : "2022-03-14T21:00:48+01:00"
}
],
"_links" : {
"next" : {
"href" : "https://balanceplatform-api-test.adyen.com/btl/v2/transactions?balancePlatform=Bastronaut&createdUntil=2022-03-21T00%3A00%3A00Z&createdSince=2022-03-11T00%3A00%3A00Z&limit=3&cursor=S2B-TSAjOkIrYlIlbjdqe0RreHRyM32lKRSxubXBHRkhHL2E32XitQQz5SfzpucD5HbHwpM1p6NDR1eXVQLFF6MmY33J32sobDxQYT90MHIud1hwLnd6JitcX32xJ"
}
}
};

View File

@@ -0,0 +1,894 @@
import nock from "nock";
import Client from "../client";
import { createClient } from "../__mocks__/base";
import BalancePlatform from "../services/balancePlatform";
import { balancePlatform } from "../typings";
import { AccountHolderUpdate } from "../services/balancePlaftform/accountHolders";
import { SweepConfigurationV2Create, SweepConfigurationV2Update } from "../services/balancePlaftform/balanceAccounts";
import { TransactionRuleInfoUpdate } from "../services/balancePlaftform/transactionRules";
let client: Client;
let balancePlatformService: BalancePlatform;
let scope: nock.Scope;
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.balancePlatformEndpoint}/${Client.BALANCE_PLATFORM_API_VERSION}`);
balancePlatformService = new BalancePlatform(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("Balance Platform", (): void => {
const balanceAccountId = "BA32272223222B59CZ3T52DKZ";
const sweepId = "SWPC4227C224555B5FTD2NT2JV4WN5";
const paymentInstrumentId = "PI32272223222B5CMD3MQ3HXX";
const paymentInstrumentGroupId = "PG3227C223222B5CMD3FJFKGZ";
const transactionRuleId = "TR3227C223222B5FCB756DV9H";
describe("AccountHolders", (): void => {
it("should support POST /accountHolders", async (): Promise<void> => {
scope.post("/accountHolders")
.reply(200, {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"contactDetails": {
"email": "s.hopper@example.com",
"phone": {
"number": "+315551231234",
"type": "Mobile"
},
"address": {
"city": "Amsterdam",
"country": "NL",
"street": "Brannan Street",
"houseNumberOrName": "274",
"postalCode": "1020CD"
}
},
"description": "S.Hopper - Staff 123",
"legalEntityId": "LE322KT223222D5FJ7THR293F",
"id": "AH3227C223222B5CMD2SXFKGT",
"status": "active"
});
const request: balancePlatform.AccountHolderInfo = {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"description": "S.Hopper - Staff 123",
"legalEntityId": "LE322KT223222D5FJ7THR293F",
"contactDetails": {
"email": "s.hopper@example.com",
"phone": {
"number": "+315551231234",
"type": balancePlatform.Phone.TypeEnum.Mobile
},
"address": {
"city": "Amsterdam",
"country": "NL",
"street": "Brannan Street",
"houseNumberOrName": "274",
"postalCode": "1020CD"
}
}
};
const response: balancePlatform.AccountHolder = await balancePlatformService.AccountHolders.create(request);
expect(response.id).toBe("AH3227C223222B5CMD2SXFKGT");
expect(response.legalEntityId).toBe("LE322KT223222D5FJ7THR293F");
});
it("should support GET /accountHolders/{id}", async (): Promise<void> => {
scope.get("/accountHolders/AH32272223222B5CM4MWJ892H")
.reply(200, {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"contactDetails": {
"address": {
"city": "Amsterdam",
"country": "NL",
"houseNumberOrName": "274",
"postalCode": "1020CD",
"street": "Brannan Street"
},
"email": "s.hopper@example.com",
"phone": {
"number": "+315551231234",
"type": "Mobile"
}
},
"description": "S.Hopper - Staff 123",
"id": "AH32272223222B5CM4MWJ892H",
"status": "Active"
});
const response: balancePlatform.AccountHolder = await balancePlatformService.AccountHolders.retrieve("AH32272223222B5CM4MWJ892H");
expect(response.id).toBe("AH32272223222B5CM4MWJ892H");
expect(response.balancePlatform).toBe("YOUR_BALANCE_PLATFORM");
});
it("should support PATCH /accountHolders/{id}", async (): Promise<void> => {
scope.patch("/accountHolders/AH32272223222B5CM4MWJ892H")
.reply(200, {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"contactDetails": {
"address": {
"city": "Amsterdam",
"country": "NL",
"houseNumberOrName": "274",
"postalCode": "1020CD",
"street": "Brannan Street"
},
"email": "s.hopper@example.com",
"phone": {
"number": "+315551231234",
"type": "Mobile"
}
},
"description": "S.Hopper - Staff 123",
"id": "AH32272223222B5CM4MWJ892H",
"status": "Suspended"
});
const request: AccountHolderUpdate = {
status: balancePlatform.AccountHolder.StatusEnum.Suspended,
legalEntityId: "LE322KT223222D5FJ7THR293F",
};
const response: balancePlatform.AccountHolder = await balancePlatformService.AccountHolders.update("AH32272223222B5CM4MWJ892H", request);
expect(response.status).toBe("Suspended");
});
it("should support GET /accountHolders/{id}/balanceAccounts", async (): Promise<void> => {
scope.get("/accountHolders/AH32272223222B5CM4MWJ892H/balanceAccounts?limit=5&offset=10")
.reply(200, {
"balanceAccounts": [
{
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"defaultCurrencyCode": "EUR",
"id": "BA32272223222B59K6ZXHBFN6",
"status": "Active"
},
{
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"defaultCurrencyCode": "EUR",
"id": "BA32272223222B59K72CKBFNJ",
"status": "Active"
},
{
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"defaultCurrencyCode": "EUR",
"id": "BA32272223222B5BRR27B2M7G",
"status": "Active"
}
],
"hasNext": true,
"hasPrevious": false
});
const response: balancePlatform.PaginatedBalanceAccountsResponse = await balancePlatformService.AccountHolders.listBalanceAccounts("AH32272223222B5CM4MWJ892H", {
params: {
"limit": "5",
"offset": "10"
}
});
expect(response.balanceAccounts[0].id).toBe("BA32272223222B59K6ZXHBFN6");
});
});
describe("BalanceAccounts", (): void => {
it("should support POST /balanceAccounts", async (): Promise<void> => {
scope.post("/balanceAccounts")
.reply(200, {
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"defaultCurrencyCode": "EUR",
"reference": "S.Hopper - Main balance account",
"balances": [
{
"available": 0,
"balance": 0,
"currency": "EUR",
"reserved": 0
}
],
"id": balanceAccountId,
"status": "active"
});
const request: balancePlatform.BalanceAccountInfo = {
"accountHolderId": "AH32272223222B59K6ZKBBFNQ",
"description": "S.Hopper - Main balance account"
};
const response: balancePlatform.BalanceAccount = await balancePlatformService.BalanceAccounts.create(request);
expect(response.id).toBe(balanceAccountId);
});
it("should support GET /balanceAccounts/{balanceAccountId}/sweeps", async (): Promise<void> => {
scope.get(`/balanceAccounts/${balanceAccountId}/sweeps?limit=5&offset=10`)
.reply(200, {
"hasNext": false,
"hasPrevious": false,
"sweeps": [
{
"id": sweepId,
"schedule": {
"type": "daily"
},
"status": "active",
"targetAmount": {
"currency": "EUR",
"value": 0
},
"triggerAmount": {
"currency": "EUR",
"value": 0
},
"type": "push",
"counterparty": {
"balanceAccountId": "BA32272223222B5FTD2KR6TJD"
},
"currency": "EUR"
}
]
});
const response: balancePlatform.BalanceSweepConfigurationsResponse = await balancePlatformService.BalanceAccounts.listSweeps(balanceAccountId, {
params: {
"limit": "5",
"offset": "10"
}
});
expect(response.hasNext).toBeFalsy();
expect(response.sweeps.length).toBe(1);
});
it("should support POST /balanceAccounts/{balanceAccountId}/sweeps", async (): Promise<void> => {
scope.post(`/balanceAccounts/${balanceAccountId}/sweeps`)
.reply(200, {
"id": sweepId,
"counterparty": {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
},
"triggerAmount": {
"currency": "EUR",
"value": 50000
},
"currency": "EUR",
"schedule": {
"type": "balance"
},
"type": "pull",
"status": "active"
});
const request: SweepConfigurationV2Create = {
"counterparty": {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
},
"triggerAmount": {
"currency": "EUR",
"value": 50000
},
"currency": "EUR",
"schedule": {
"type": balancePlatform.SweepSchedule.TypeEnum.Balance
},
"type": balancePlatform.SweepConfigurationV2.TypeEnum.Pull,
"status": balancePlatform.SweepConfigurationV2.StatusEnum.Active
};
const response: balancePlatform.SweepConfigurationV2 = await balancePlatformService.BalanceAccounts.createSweep(balanceAccountId, request);
expect(response.id).toBe(sweepId);
expect(response.triggerAmount!.value).toBe(50000);
});
it("should support DELETE /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", async (): Promise<void> => {
scope.delete(`/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`).reply(204);
await balancePlatformService.BalanceAccounts.deleteSweep(balanceAccountId, sweepId);
});
it("should support GET /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", async (): Promise<void> => {
scope.get(`/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`)
.reply(200, {
"id": sweepId,
"schedule": {
"type": "daily"
},
"status": "active",
"targetAmount": {
"currency": "EUR",
"value": 0
},
"triggerAmount": {
"currency": "EUR",
"value": 0
},
"type": "push",
"counterparty": {
"balanceAccountId": "BA32272223222B5FTD2KR6TJD"
},
"currency": "EUR"
});
const response: balancePlatform.SweepConfigurationV2 = await balancePlatformService.BalanceAccounts.retrieveSweep(balanceAccountId, sweepId);
expect(response.id).toBe(sweepId);
expect(response.status).toBe("active");
});
it("should support PATCH /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", async (): Promise<void> => {
scope.patch(`/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`)
.reply(200, {
"id": sweepId,
"counterparty": {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
},
"triggerAmount": {
"currency": "EUR",
"value": 50000
},
"currency": "EUR",
"schedule": {
"type": "balance"
},
"type": "pull",
"status": "inactive"
});
const request: SweepConfigurationV2Update = {
"status": balancePlatform.SweepConfigurationV2.StatusEnum.Inactive
};
const response: balancePlatform.SweepConfigurationV2 = await balancePlatformService.BalanceAccounts.updateSweep(balanceAccountId, sweepId, request);
expect(response.status).toBe("inactive");
});
it("should support GET /balanceAccounts/{id}", async (): Promise<void> => {
scope.get(`/balanceAccounts/${balanceAccountId}`)
.reply(200, {
"accountHolderId": "AH32272223222B59K6RTQBFNZ",
"defaultCurrencyCode": "EUR",
"balances": [
{
"available": 0,
"balance": 0,
"currency": "EUR",
"reserved": 0
}
],
"id": balanceAccountId,
"status": "Active"
});
const response: balancePlatform.BalanceAccount = await balancePlatformService.BalanceAccounts.retrieve(balanceAccountId);
expect(response.id).toBe(balanceAccountId);
expect(response.status).toBe("Active");
});
it("should support PATCH /balanceAccounts/{id}", async (): Promise<void> => {
scope.patch(`/balanceAccounts/${balanceAccountId}`)
.reply(200, {
"accountHolderId": "string",
"balances": [
{
"available": 0,
"balance": 0,
"currency": "string",
"reserved": 0
}
],
"defaultCurrencyCode": "string",
"description": "Testing",
"id": "string",
"reference": "string",
"status": "active",
"timeZone": "Europe/Amsterdam"
});
const request: balancePlatform.BalanceAccountUpdateRequest = {
"description": "Testing",
"status": balancePlatform.BalanceAccountUpdateRequest.StatusEnum.Active,
"timeZone": "Europe/Amsterdam"
};
const response: balancePlatform.BalanceAccount = await balancePlatformService.BalanceAccounts.update(balanceAccountId, request);
expect(response.status).toBe("active");
expect(response.timeZone).toBe("Europe/Amsterdam");
});
it("should support GET /balanceAccounts/{id}/paymentInstruments", async (): Promise<void> => {
scope.get(`/balanceAccounts/${balanceAccountId}/paymentInstruments?limit=3&offset=6`)
.reply(200, {
"hasNext": "true",
"hasPrevious": "false",
"paymentInstruments": [
{
"balanceAccountId": balanceAccountId,
"issuingCountryCode": "GB",
"status": "Active",
"type": "card",
"card": {
"brandVariant": "mc",
"cardholderName": "name",
"formFactor": "virtual",
"bin": "555544",
"expiration": {
"month": "12",
"year": "2022"
},
"lastFour": "2357",
"number": "************2357"
},
"id": "PI32272223222B59M5TM658DT"
},
{
"balanceAccountId": balanceAccountId,
"issuingCountryCode": "GB",
"status": "Active",
"type": "card",
"card": {
"brandVariant": "mc",
"cardholderName": "name",
"formFactor": "virtual",
"bin": "555544",
"expiration": {
"month": "01",
"year": "2023"
},
"lastFour": "8331",
"number": "************8331"
},
"id": "PI32272223222B59PXDGQDLSF"
}
]
});
const response: balancePlatform.PaginatedPaymentInstrumentsResponse = await balancePlatformService.BalanceAccounts.listPaymentInstruments(balanceAccountId, {
params: {
limit: "3",
offset: "6",
}
});
expect(response.paymentInstruments.length).toBe(2);
expect(response.paymentInstruments[0].id).toBe("PI32272223222B59M5TM658DT");
});
});
describe("General", (): void => {
it("should support GET /balancePlatforms/{id}", async (): Promise<void> => {
scope.get(`/balancePlatforms/${balanceAccountId}`)
.reply(200, {
"id": balanceAccountId,
"status": "Active"
});
const response: balancePlatform.BalancePlatform = await balancePlatformService.General.retrieve(balanceAccountId);
expect(response.id).toBe(balanceAccountId);
expect(response.status).toBe("Active");
});
it("should support GET /balancePlatforms/{id}/accountHolders", async (): Promise<void> => {
scope.get(`/balancePlatforms/${balanceAccountId}/accountHolders`)
.reply(200, {
"accountHolders": [
{
"contactDetails": {
"address": {
"city": "Amsterdam",
"country": "NL",
"houseNumberOrName": "6",
"postalCode": "12336750",
"street": "Simon Carmiggeltstraat"
}
},
"description": "J. Doe",
"id": "AH32272223222B59DDWSCCMP7",
"status": "Active"
},
{
"contactDetails": {
"address": {
"city": "Amsterdam",
"country": "NL",
"houseNumberOrName": "11",
"postalCode": "12336750",
"street": "Simon Carmiggeltstraat"
}
},
"description": "S. Hopper",
"id": "AH32272223222B59DJ7QBCMPN",
"status": "Active"
}
],
"hasNext": "true",
"hasPrevious": "false"
});
const response: balancePlatform.PaginatedAccountHoldersResponse = await balancePlatformService.General.listAccountHolders(balanceAccountId);
expect(response.accountHolders.length).toBe(2);
expect(response.accountHolders[0].id).toBe("AH32272223222B59DDWSCCMP7");
});
});
describe("PaymentInstruments", (): void => {
it("should support POST /paymentInstruments", async (): Promise<void> => {
scope.post("/paymentInstruments")
.reply(200, {
"balanceAccountId": balanceAccountId,
"description": "S. Hopper - Main card",
"issuingCountryCode": "GB",
"status": "Active",
"type": "card",
"card": {
"brand": "mc",
"brandVariant": "mcdebit",
"cardholderName": "Simon Hopper",
"formFactor": "virtual",
"bin": "555544",
"cvc": "873",
"expiration": {
"month": "01",
"year": "2024"
},
"lastFour": "3548"
},
"id": paymentInstrumentId
});
const request: balancePlatform.PaymentInstrumentInfo = {
"type": balancePlatform.PaymentInstrumentInfo.TypeEnum.Card,
"issuingCountryCode": "NL",
"balanceAccountId": balanceAccountId,
"status": balancePlatform.PaymentInstrumentInfo.StatusEnum.Inactive,
"card": {
"formFactor": balancePlatform.CardInfo.FormFactorEnum.Physical,
"brand": "mc",
"brandVariant": "mcdebit",
"cardholderName": "Sam Hopper",
"deliveryContact": {
"address": {
"city": "Amsterdam",
"country": "NL",
"stateOrProvince": "NH",
"line1": "Simon Carmiggeltstraat",
"line2": "6-50",
"postalCode": "1011DJ"
},
"name": {
"firstName": "Sam",
"lastName": "Hopper"
}
},
"configuration": {
"configurationProfileId": "YOUR_CONFIGURATION_PROFILE_ID"
},
},
"description": "S.Hopper - Main card"
};
const response: balancePlatform.PaymentInstrument = await balancePlatformService.PaymentInstruments.create(request);
expect(response.id).toBe(paymentInstrumentId);
expect(response.balanceAccountId).toBe(balanceAccountId);
});
it("should support GET /paymentInstruments/{id}", async (): Promise<void> => {
scope.get(`/paymentInstruments/${paymentInstrumentId}`)
.reply(200, {
"balanceAccountId": balanceAccountId,
"description": "S. Hopper - Main card",
"issuingCountryCode": "GB",
"status": "active",
"type": "card",
"card": {
"brand": "mc",
"brandVariant": "mcdebit",
"cardholderName": "Simon Hopper",
"formFactor": "virtual",
"bin": "555544",
"expiration": {
"month": "01",
"year": "2024"
},
"lastFour": "3548",
"number": "************3548"
},
"id": paymentInstrumentId
});
const response: balancePlatform.PaymentInstrument = await balancePlatformService.PaymentInstruments.retrieve(paymentInstrumentId);
expect(response.id).toBe(paymentInstrumentId);
expect(response.status).toBe("active");
});
it("should support PATCH /paymentInstruments/{id}", async (): Promise<void> => {
scope.patch(`/paymentInstruments/${paymentInstrumentId}`)
.reply(200, {
"balanceAccountId": "BA32272223222B5CM82WL892M",
"description": "S. Hopper - Main card",
"issuingCountryCode": "GB",
"status": "inactive",
"type": "card",
"card": {
"brand": "mc",
"brandVariant": "mcdebit",
"cardholderName": "Simon Hopper",
"formFactor": "virtual",
"bin": "555544",
"expiration": {
"month": "01",
"year": "2024"
},
"lastFour": "5785",
"number": "************5785"
},
"id": paymentInstrumentId
});
const request: balancePlatform.PaymentInstrumentUpdateRequest = {
"balanceAccountId": "BA32272223222B5CM82WL892M"
};
const response: balancePlatform.PaymentInstrument = await balancePlatformService.PaymentInstruments.update(paymentInstrumentId, request);
expect(response.id).toBe(paymentInstrumentId);
expect(response.balanceAccountId).toBe("BA32272223222B5CM82WL892M");
});
it("should support GET /paymentInstruments/{id}/transactionRules", async (): Promise<void> => {
scope.get(`/paymentInstruments/${paymentInstrumentId}/transactionRules`)
.reply(200, {
"transactionRules": [
{
"description": "Allow 5 transactions per month",
"interval": {
"type": "monthly"
},
"maxTransactions": 5,
"paymentInstrumentGroupId": paymentInstrumentGroupId,
"reference": "myRule12345",
"startDate": "2021-01-25T12:46:35.476629Z",
"status": "active",
"type": "velocity",
"id": "TR32272223222B5CMDGMC9F4F"
},
{
"amount": {
"currency": "EUR",
"value": 10000
},
"description": "Allow up to 100 EUR per month",
"interval": {
"type": "monthly"
},
"paymentInstrumentGroupId": paymentInstrumentGroupId,
"reference": "myRule16378",
"startDate": "2021-01-25T12:46:35.476629Z",
"status": "active",
"type": "velocity",
"id": "TR32272223222B5CMDGT89F4F"
}
]
});
const response: balancePlatform.TransactionRulesResponse = await balancePlatformService.PaymentInstruments.listTransactionRules(paymentInstrumentId);
expect(response.transactionRules!.length).toBe(2);
expect(response.transactionRules![0].id).toBe("TR32272223222B5CMDGMC9F4F");
});
});
describe("PaymentInstrumentGroups", (): void => {
it("should support POST /paymentInstrumentGroups", async (): Promise<void> => {
scope.post("/paymentInstrumentGroups")
.reply(200, {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"txVariant": "mc",
"id": paymentInstrumentGroupId
});
const request: balancePlatform.PaymentInstrumentGroupInfo = {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"txVariant": "mc"
};
const response: balancePlatform.PaymentInstrumentGroup = await balancePlatformService.PaymentInstrumentGroups.create(request);
expect(response.id).toBe(paymentInstrumentGroupId);
expect(response.txVariant).toBe("mc");
});
it("should support GET /paymentInstrumentGroups/{id}", async (): Promise<void> => {
scope.get(`/paymentInstrumentGroups/${paymentInstrumentGroupId}`)
.reply(200, {
"balancePlatform": "YOUR_BALANCE_PLATFORM",
"txVariant": "mc",
"id": paymentInstrumentGroupId
});
const response: balancePlatform.PaymentInstrumentGroup = await balancePlatformService.PaymentInstrumentGroups.retrieve(paymentInstrumentGroupId);
expect(response.id).toBe(paymentInstrumentGroupId);
expect(response.txVariant).toBe("mc");
});
it("should support GET /paymentInstrumentGroups/{id}/transactionRules", async (): Promise<void> => {
scope.get(`/paymentInstrumentGroups/${paymentInstrumentGroupId}/transactionRules`)
.reply(200, {
"transactionRules": [
{
"description": "Allow 5 transactions per month",
"interval": {
"type": "monthly"
},
"maxTransactions": 5,
"paymentInstrumentGroupId": paymentInstrumentGroupId,
"reference": "myRule12345",
"startDate": "2021-01-25T12:46:35.476629Z",
"status": "active",
"type": "velocity",
"id": "TR32272223222B5CMDGMC9F4F"
},
{
"amount": {
"currency": "EUR",
"value": 10000
},
"description": "Allow up to 100 EUR per month",
"interval": {
"type": "monthly"
},
"paymentInstrumentGroupId": paymentInstrumentGroupId,
"reference": "myRule16378",
"startDate": "2021-01-25T12:46:35.476629Z",
"status": "active",
"type": "velocity",
"id": "TR32272223222B5CMDGT89F4F"
}
]
});
const response: balancePlatform.TransactionRulesResponse = await balancePlatformService.PaymentInstrumentGroups.listTransactionRules(paymentInstrumentGroupId);
expect(response.transactionRules!.length).toBe(2);
expect(response.transactionRules![0].id).toBe("TR32272223222B5CMDGMC9F4F");
});
});
describe("TransactionRules", (): void => {
it("should support POST /transactionRules", async (): Promise<void> => {
scope.post("/transactionRules")
.reply(200, {
"description": "Allow only point-of-sale transactions",
"entityKey": {
"entityReference": "PI3227C223222B5BPCMFXD2XG",
"entityType": "paymentInstrument"
},
"interval": {
"timeZone": "UTC",
"type": "perTransaction"
},
"outcomeType": "hardBlock",
"reference": "YOUR_REFERENCE_4F7346",
"requestType": "authorization",
"ruleRestrictions": {
"processingTypes": {
"operation": "noneMatch",
"value": [
"pos"
]
}
},
"startDate": "2022-03-23T15:05:11.979433+01:00",
"status": "active",
"type": "blockList",
"id": transactionRuleId
});
const request: balancePlatform.TransactionRuleInfo = {
"description": "Allow only point-of-sale transactions",
"reference": "YOUR_REFERENCE_4F7346",
"entityKey": {
"entityType": "paymentInstrument",
"entityReference": "PI3227C223222B5BPCMFXD2XG"
},
"status": balancePlatform.TransactionRuleInfo.StatusEnum.Active,
"interval": {
"type": balancePlatform.TransactionRuleInterval.TypeEnum.PerTransaction
},
"ruleRestrictions": {
"processingTypes": {
"operation": "noneMatch",
"value": [
balancePlatform.ProcessingTypesRestriction.ValueEnum.Pos
]
}
},
"type": balancePlatform.TransactionRuleInfo.TypeEnum.BlockList
};
const response: balancePlatform.TransactionRule = await balancePlatformService.TransactionRules.create(request);
expect(response.id).toBe(transactionRuleId);
expect(response.status).toBe("active");
});
it("should support GET /transactionRules/{transactionRuleId}", async (): Promise<void> => {
scope.get(`/transactionRules/${transactionRuleId}`)
.reply(200, {
"transactionRule": {
"description": "Allow 5 transactions per month",
"interval": {
"type": "monthly"
},
"maxTransactions": 5,
"paymentInstrumentId": "PI3227C223222B59KGTXP884R",
"reference": "myRule12345",
"startDate": "2021-01-25T12:46:35.476629Z",
"status": "active",
"type": "velocity",
"id": transactionRuleId
}
});
const response: balancePlatform.TransactionRuleResponse = await balancePlatformService.TransactionRules.retrieve(transactionRuleId);
expect(response.transactionRule!.id).toBe(transactionRuleId);
expect(response.transactionRule!.type).toBe("velocity");
});
it("should support PATCH /transactionRules/{transactionRuleId}", async (): Promise<void> => {
scope.patch(`/transactionRules/${transactionRuleId}`)
.reply(200, {
"description": "Allow 5 transactions per month",
"interval": {
"type": "monthly"
},
"reference": "myRule12345",
"startDate": "2021-01-21T12:46:35.476629Z",
"status": "inactive",
"type": "velocity",
"id": transactionRuleId
});
const request: TransactionRuleInfoUpdate = {
"status": balancePlatform.TransactionRuleInfo.StatusEnum.Inactive
};
const response: balancePlatform.TransactionRule = await balancePlatformService.TransactionRules.update(transactionRuleId, request);
expect(response.status).toBe("inactive");
expect(response.reference).toBe("myRule12345");
});
it("should support DELETE /transactionRules/{transactionRuleId}", async (): Promise<void> => {
scope.delete(`/transactionRules/${transactionRuleId}`)
.reply(200, {
"amount": {
"currency": "EUR",
"value": 10000
},
"description": "Allow up to 100 EUR per month",
"interval": {
"type": "monthly"
},
"paymentInstrumentGroupId": "PG3227C223222B5CMD3FJFKGZ",
"reference": "myRule16378",
"startDate": "2021-01-25T12:46:35.476629Z",
"type": "velocity",
"id": transactionRuleId
});
const response: balancePlatform.TransactionRule = await balancePlatformService.TransactionRules.delete(transactionRuleId);
expect(response.id).toBe(transactionRuleId);
});
});
});

View File

@@ -1,61 +1,40 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import nock from "nock";
import { createMockClientFromResponse } from "../__mocks__/base";
import { createClient } from "../__mocks__/base";
import BinLookup from "../services/binLookup";
import {CostEstimateRequest, ThreeDSAvailabilityRequest} from "../typings/binLookup";
import Client from "../client";
import HttpClientException from "../httpClient/httpClientException";
import { binlookup } from "../typings";
const threeDSAvailabilitySuccess = {
dsPublicKeys: [{
brand: "visa",
directoryServerId: "F013371337",
publicKey: "eyJrdHkiOiJSU0EiLCJlIjoiQVFBQiIsIm4iOiI4VFBxZkFOWk4xSUEzcHFuMkdhUVZjZ1g4LUpWZ1Y0M2diWURtYmdTY0N5SkVSN3lPWEJqQmQyaTBEcVFBQWpVUVBXVUxZU1FsRFRKYm91bVB1aXVoeVMxUHN2NTM4UHBRRnEySkNaSERkaV85WThVZG9hbmlrU095c2NHQWtBVmJJWHA5cnVOSm1wTTBwZ0s5VGxJSWVHYlE3ZEJaR01OQVJLQXRKeTY3dVlvbVpXV0ZBbWpwM2d4SDVzNzdCR2xkaE9RUVlQTFdybDdyS0pLQlUwNm1tZlktUDNpazk5MmtPUTNEak02bHR2WmNvLThET2RCR0RKYmdWRGFmb29LUnVNd2NUTXhDdTRWYWpyNmQyZkppVXlqNUYzcVBrYng4WDl6a1c3UmlxVno2SU1qdE54NzZicmg3aU9Vd2JiWmoxYWF6VG1GQ2xEb0dyY2JxOV80Nnc9PSJ9"
}],
binDetails: {
issuerCountry: "NL"
},
threeDS1Supported: true,
threeDS2CardRangeDetails: [{
brandCode: "visa",
endRange: "411111111111",
startRange: "411111111111",
threeDS2Version: "2.1.0",
threeDSMethodURL: "https://pal-test.adyen.com/threeds2simulator/acs/startMethod.shtml"
}],
threeDS2supported: true
threeDS2CardRangeDetails: [],
threeDS2supported: false
};
let client: Client;
let binLookup: BinLookup;
let binLookupService: BinLookup;
let scope: nock.Scope;
beforeEach((): void => {
client = createMockClientFromResponse();
binLookup = new BinLookup(client);
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
binLookupService = new BinLookup(client);
scope = nock(`${client.config.endpoint}${Client.BIN_LOOKUP_PAL_SUFFIX}${Client.BIN_LOOKUP_API_VERSION}`);
});
afterEach((): void => {
nock.cleanAll();
});
describe("Bin Lookup", function (): void {
it("should succeed on get 3ds availability", async function (): Promise<void> {
const threeDSAvailabilityRequest: ThreeDSAvailabilityRequest = {
merchantAccount: "MOCK_MERCHANT_ACCOUNT",
test("should succeed on get 3ds availability", async function (): Promise<void> {
const threeDSAvailabilityRequest: binlookup.ThreeDSAvailabilityRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
brands: ["randomBrand"],
cardNumber: "4111111111111111"
};
@@ -63,12 +42,12 @@ describe("Bin Lookup", function (): void {
scope.post("/get3dsAvailability")
.reply(200, threeDSAvailabilitySuccess);
const response = await binLookup.get3dsAvailability(threeDSAvailabilityRequest);
const response = await binLookupService.get3dsAvailability(threeDSAvailabilityRequest);
expect(response).toEqual(threeDSAvailabilitySuccess);
expect(response).toEqual< binlookup.ThreeDSAvailabilityResponse>(threeDSAvailabilitySuccess);
});
it("should fail with invalid merchant", async function (): Promise<void> {
test("should fail with invalid merchant", async function (): Promise<void> {
const threeDSAvailabilityRequest: { [key: string]: undefined|string|[] } = {
merchantAccount: undefined,
cardNumber: "4111111111111",
@@ -79,40 +58,52 @@ describe("Bin Lookup", function (): void {
.reply(403, JSON.stringify({status: 403, message: "fail", errorCode: "171"}));
try {
await binLookup.get3dsAvailability(threeDSAvailabilityRequest as unknown as ThreeDSAvailabilityRequest);
await binLookupService.get3dsAvailability(threeDSAvailabilityRequest as unknown as binlookup.ThreeDSAvailabilityRequest);
fail("Expected request to fail");
} catch (e) {
expect(e instanceof HttpClientException).toBeTruthy();
}
});
it("should succeed on get cost estimate", async function (): Promise<void> {
const response = {
cardBin: {summary: "1111"},
test("should succeed on get cost estimate", async function (): Promise<void> {
const expected = {
cardBin: {
bin: "",
fundsAvailability: "I",
issuingBank: "ADYEN TEST BANK",
issuingCountry: "NL",
paymentMethod: "visa",
payoutEligible: "Y",
summary: "",
},
costEstimateAmount: {
currency: "EUR",
value: 10
},
resultCode: "Unsupported",
surchargeType: "ZERO"
};
const costEstimateRequest: CostEstimateRequest = {
const costEstimateRequest: binlookup.CostEstimateRequest = {
amount: { currency: "EUR", value: 1000 },
assumptions: {
assumeLevel3Data: true,
assume3DSecureAuthenticated: true
},
cardNumber: "411111111111",
merchantAccount: "MOCKED_MERCHANT_ACC",
merchantAccount: process.env.ADYEN_MERCHANT!,
merchantDetails: {
countryCode: "NL",
mcc: "7411",
enrolledIn3DSecure: true
},
shopperInteraction: "Ecommerce"
shopperInteraction: binlookup.CostEstimateRequest.ShopperInteractionEnum.Ecommerce,
};
scope.post("/getCostEstimate")
.reply(200, response);
.reply(200, expected);
const expected = await binLookup.getCostEstimate(costEstimateRequest);
const response = await binLookupService.getCostEstimate(costEstimateRequest);
expect(response).toEqual(expected);
});
});
});

View File

@@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/camelcase */
/* eslint-disable @typescript-eslint/naming-convention */
import checkServerIdentity from "../helpers/checkServerIdentity";
import {PeerCertificate} from "tls";
import { PeerCertificate } from "tls";
const createMockedCertificate = (CN: string): PeerCertificate => ({
subjectaltname: "Adyen B.V",
@@ -29,6 +28,7 @@ const createMockedCertificate = (CN: string): PeerCertificate => ({
valid_from: "Nov 19 15:03:32 2018 GMT",
valid_to: "Nov 11 15:03:32 2048 GMT",
fingerprint: "MOCKED_FINGERPRINT",
fingerprint256: "MOCKED_FINGERPRINT_256",
ext_key_usage: ["1.2.3.4.5.6.7.8"],
serialNumber: "1000",
raw: Buffer.from("test")

View File

@@ -1,191 +1,477 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import nock from "nock";
import { createMockClientFromResponse } from "../__mocks__/base";
import {createClient} from "../__mocks__/base";
import {paymentMethodsSuccess} from "../__mocks__/checkout/paymentMethodsSuccess";
import {paymentsSuccess} from "../__mocks__/checkout/paymentsSuccess";
import {paymentDetailsSuccess} from "../__mocks__/checkout/paymentsDetailsSuccess";
import {paymentSessionSuccess} from "../__mocks__/checkout/paymentSessionSucess";
import {originKeysSuccess} from "../__mocks__/checkout/originkeysSuccess";
import {paymentsResultMultibancoSuccess} from "../__mocks__/checkout/paymentsResultMultibancoSuccess";
import {paymentsResultSuccess} from "../__mocks__/checkout/paymentsResultSucess";
import {sessionsSuccess} from "../__mocks__/checkout/sessionsSuccess";
import Client from "../client";
import { TYPE_SCHEME } from "../typings/constants/apiConstants";
import Checkout from "../services/checkout";
import {
Amount,
DetailsRequest,
PaymentMethodsRequest,
PaymentRequest,
PaymentResponse,
PaymentSetupRequest, PaymentVerificationRequest
} from "../typings/checkout";
import HttpClientException from "../httpClient/httpClientException";
import { checkout } from "../typings";
function createAmountObject(currency: string, value: number): Amount {
const merchantAccount = process.env.ADYEN_MERCHANT!;
const reference = "Your order number";
function createAmountObject(currency: string, value: number): checkout.Amount {
return {
currency,
value,
};
}
function createPaymentsDetailsRequest(): DetailsRequest {
function createPaymentsDetailsRequest(): checkout.DetailsRequest {
return {
details: {
MD: "mdValue",
PaRes: "paResValue",
mD: "mdValue",
paRes: "paResValue",
},
paymentData: "Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...",
};
}
export function createPaymentsCheckoutRequest(): PaymentRequest {
export function createPaymentsCheckoutRequest(): checkout.PaymentRequest {
const paymentMethodDetails = {
cvc: "737",
expiryMonth: "10",
expiryYear: "2018",
holderName: "John Smith",
number: "4111111111111111",
type: TYPE_SCHEME,
type: checkout.CardDetails.TypeEnum.Scheme,
encryptedCardNumber: "test_4111111111111111",
encryptedExpiryMonth: "test_03",
encryptedExpiryYear: "test_2030",
encryptedSecurityCode: "test_737"
};
return {
amount: createAmountObject("USD", 1000),
merchantAccount: "MagentoMerchantTest",
merchantAccount,
paymentMethod: paymentMethodDetails,
reference: "Your order number",
reference,
returnUrl: "https://your-company.com/...",
shopperReference: "shopperReference",
storePaymentMethod: true
};
}
function createPaymentSessionRequest(): PaymentSetupRequest {
function createPaymentSessionRequest(): checkout.PaymentSetupRequest {
return {
amount: createAmountObject("USD", 1000),
countryCode: "NL",
merchantAccount: "MagentoMerchantTest",
reference: "Your order number",
merchantAccount,
reference,
returnUrl: "https://your-company.com/...",
channel: checkout.PaymentSetupRequest.ChannelEnum.Web,
sdkVersion: "3.7.0"
};
}
function getPaymentLinkSuccess(expiresAt: string): checkout.PaymentLinkResponse {
return {
amount: createAmountObject("USD", 1000),
expiresAt,
reference,
url: "PaymentLinkResponse.url",
id: "mocked_id",
merchantAccount,
status: checkout.PaymentLinkResponse.StatusEnum.Active
};
}
function createPaymentLinkRequest(): checkout.CreatePaymentLinkRequest {
return {
allowedPaymentMethods: ["scheme", "boletobancario"],
amount: createAmountObject("USD", 1000),
countryCode: "BR",
merchantAccount,
shopperReference: "shopperReference",
shopperEmail: "test@email.com",
shopperLocale: "pt_BR",
billingAddress: {
street: "Roque Petroni Jr",
postalCode: "59000060",
city: "São Paulo",
houseNumberOrName: "999",
country: "BR",
stateOrProvince: "SP"
},
deliveryAddress: {
street: "Roque Petroni Jr",
postalCode: "59000060",
city: "São Paulo",
houseNumberOrName: "999",
country: "BR",
stateOrProvince: "SP"
},
reference
};
}
function createSessionRequest(): checkout.CreateCheckoutSessionRequest {
return {
amount: createAmountObject("USD", 1000),
countryCode: "NL",
merchantAccount,
reference,
returnUrl: "https://your-company.com/...",
};
}
let client: Client;
let checkout: Checkout;
let checkoutService: Checkout;
let scope: nock.Scope;
beforeEach((): void => {
client = createMockClientFromResponse();
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}`);
checkout = new Checkout(client);
checkoutService = new Checkout(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("Checkout", (): void => {
it("should make a payment", async (): Promise<void> => {
test("should add idempotency key to request headers", async (): Promise<void> => {
const paymentsRequest: checkout.PaymentRequest = createPaymentsCheckoutRequest();
scope.post("/payments")
.reply(200, paymentsSuccess)
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.payments(paymentsRequest, {idempotencyKey: "testKey"});
const paymentMethodsRequest: checkout.PaymentMethodsRequest = {merchantAccount};
scope.post("/paymentMethods")
.reply(200, paymentMethodsSuccess)
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.paymentMethods(paymentMethodsRequest, {idempotencyKey: "testKey"});
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: checkout.PaymentLinkResponse = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks")
.reply(200, paymentLinkSuccess)
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.paymentLinks(createPaymentLinkRequest(), {idempotencyKey: "testKey"});
scope.patch("/paymentLinks/321")
.reply(200, { ...paymentLinkSuccess, status: "expired" })
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.updatePaymentLinks("321", "expired", {idempotencyKey: "testKey"});
scope.get("/paymentLinks/123")
.reply(200, paymentLinkSuccess)
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.getPaymentLinks("123", {idempotencyKey: "testKey"});
scope.post("/payments/details")
.reply(200, paymentDetailsSuccess)
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.paymentsDetails(createPaymentsDetailsRequest(), {idempotencyKey: "testKey"});
scope.post("/paymentSession")
.reply(200, paymentSessionSuccess)
.matchHeader("Idempotency-Key", "testKey");
const paymentSessionRequest: checkout.PaymentSetupRequest = createPaymentSessionRequest();
await checkoutService.paymentSession(paymentSessionRequest, {idempotencyKey: "testKey"});
scope.post("/payments/result")
.reply(200, paymentsResultSuccess)
.matchHeader("Idempotency-Key", "testKey");
const paymentResultRequest: checkout.PaymentVerificationRequest = {
payload: "This is a test payload",
};
await checkoutService.paymentResult(paymentResultRequest, {idempotencyKey: "testKey"});
const orderRequest: checkout.CheckoutCreateOrderRequest = {
amount: createAmountObject("USD", 1000),
merchantAccount,
reference
};
scope.post("/orders")
.reply(200, {})
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.orders(orderRequest, {idempotencyKey: "testKey"});
scope.post("/orders/cancel")
.reply(200, {})
.matchHeader("Idempotency-Key", "testKey");
await checkoutService.ordersCancel({
order: {
orderData: "mock_data",
pspReference: "mock_pspref"
},
merchantAccount
}, {idempotencyKey: "testKey"});
scope.post("/sessions")
.reply(200, sessionsSuccess)
.matchHeader("Idempotency-Key", "testKey");
const sessionsRequest: checkout.CreateCheckoutSessionRequest = createSessionRequest();
await checkoutService.sessions(sessionsRequest, {idempotencyKey: "testKey"});
});
test("should make a payment.", async (): Promise<void> => {
scope.post("/payments")
.reply(200, paymentsSuccess);
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest);
expect(paymentsResponse.pspReference).toEqual("8535296650153317");
const paymentsRequest: checkout.PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: checkout.PaymentResponse = await checkoutService.payments(paymentsRequest);
expect(paymentsResponse.pspReference).toBeTruthy();
});
it("should return correct Exception", async (): Promise<void> => {
test("Should properly handle error responses from API", async (): Promise<void> => {
try {
scope.post("/payments")
.reply(401);
.reply(422, {
"status": 422,
"errorCode": "200",
"message": "Field 'countryCode' is not valid.",
"errorType": "validation",
"pspReference": "DMB552CV6JHKGK82",
});
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
await checkout.payments(paymentsRequest);
} catch (e) {
expect(e instanceof HttpClientException).toBeTruthy();
const paymentsRequest: checkout.PaymentRequest = createPaymentsCheckoutRequest();
await checkoutService.payments(paymentsRequest);
fail("No exception was thrown");
} catch (error) {
expect(error instanceof HttpClientException).toBeTruthy();
if(error instanceof HttpClientException && error.responseBody) {
expect(JSON.parse(error.responseBody).errorType).toBe("validation");
} else {
fail("Error did not contain the expected data");
}
}
});
it("should have valid payment methods", async (): Promise<void> => {
const paymentMethodsRequest: PaymentMethodsRequest = {merchantAccount: "MagentoMerchantTest"};
test("should have valid payment methods", async (): Promise<void> => {
const paymentMethodsRequest: checkout.PaymentMethodsRequest = {merchantAccount};
scope.post("/paymentMethods")
.reply(200, paymentMethodsSuccess);
const paymentMethodsResponse = await checkout.paymentMethods(paymentMethodsRequest);
const paymentMethodsResponse = await checkoutService.paymentMethods(paymentMethodsRequest);
if (paymentMethodsResponse && paymentMethodsResponse.paymentMethods) {
expect(paymentMethodsResponse.paymentMethods.length).toEqual(65);
expect(paymentMethodsResponse.paymentMethods[0].name).toEqual("AliPay");
expect(paymentMethodsResponse.paymentMethods.length).toBeGreaterThan(0);
} else {
fail();
}
});
it("should have payment details", async (): Promise<void> => {
test("should have valid payment link", async (): Promise<void> => {
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: checkout.PaymentLinkResponse = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
const paymentSuccessLinkResponse = await checkoutService.paymentLinks(createPaymentLinkRequest());
expect(paymentSuccessLinkResponse).toBeTruthy();
});
test("should get payment link", async (): Promise<void> => {
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: checkout.PaymentLinkResponse = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
const paymentSuccessLinkResponse = await checkoutService.paymentLinks(createPaymentLinkRequest());
scope.get(`/paymentLinks/${paymentSuccessLinkResponse.id}`).reply(200, paymentLinkSuccess);
const paymentLink = await checkoutService.getPaymentLinks(paymentSuccessLinkResponse.id);
expect(paymentLink).toBeTruthy();
});
test("should patch payment link", async (): Promise<void> => {
const expiresAt = "2019-12-17T10:05:29Z";
const paymentLinkSuccess: checkout.PaymentLinkResponse = getPaymentLinkSuccess(expiresAt);
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
const paymentSuccessLinkResponse = await checkoutService.paymentLinks(createPaymentLinkRequest());
scope.patch(`/paymentLinks/${paymentSuccessLinkResponse.id}`).reply(200, { ...paymentLinkSuccess, status: "expired" });
const paymentLink = await checkoutService.updatePaymentLinks(paymentSuccessLinkResponse.id, "expired");
expect(paymentLink.status).toEqual("expired");
});
test("should have payment details", async (): Promise<void> => {
scope.post("/payments/details")
.reply(200, paymentDetailsSuccess);
const paymentsResponse = await checkout.paymentsDetails(createPaymentsDetailsRequest());
const paymentsResponse = await checkoutService.paymentsDetails(createPaymentsDetailsRequest());
expect(paymentsResponse.resultCode).toEqual("Authorised");
});
it("should have payment session success", async (): Promise<void> => {
const client: Client = createMockClientFromResponse();
test("should have payment session success", async (): Promise<void> => {
scope.post("/paymentSession")
.reply(200, paymentSessionSuccess);
const checkout: Checkout = new Checkout(client);
const paymentSessionRequest: PaymentSetupRequest = createPaymentSessionRequest();
const paymentSessionResponse = await checkout.paymentSession(paymentSessionRequest);
const paymentSessionRequest: checkout.PaymentSetupRequest = createPaymentSessionRequest();
const paymentSessionResponse = await checkoutService.paymentSession(paymentSessionRequest);
expect(paymentSessionResponse.paymentSession).not.toBeUndefined();
});
it("should have payments result", async (): Promise<void> => {
const client = createMockClientFromResponse();
test("should have payments result", async (): Promise<void> => {
scope.post("/payments/result")
.reply(200, paymentsResultSuccess);
const checkout = new Checkout(client);
const paymentResultRequest: PaymentVerificationRequest = {
const paymentResultRequest: checkout.PaymentVerificationRequest = {
payload: "This is a test payload",
};
const paymentResultResponse = await checkout.paymentResult(paymentResultRequest);
const paymentResultResponse = await checkoutService.paymentResult(paymentResultRequest);
expect(paymentResultResponse.resultCode).toEqual("Authorised");
});
it("should have missing identifier on live", async (): Promise<void> => {
const client = createMockClientFromResponse();
test("should have missing identifier on live", async (): Promise<void> => {
client.setEnvironment("LIVE");
try {
new Checkout(client);
fail();
} catch (e) {
expect(e.message).toEqual("Please provide your unique live url prefix on the setEnvironment() call on the Client or provide checkoutEndpoint in your config object.");
if(e instanceof Error) {
expect(e.message).toEqual("Please provide your unique live url prefix on the setEnvironment() call on the Client or provide checkoutEndpoint in your config object.");
} else {
fail();
}
}
});
it("should succeed on multibanco payment", async (): Promise<void> => {
const client: Client = createMockClientFromResponse();
test("should succeed on multibanco payment", async (): Promise<void> => {
scope.post("/payments")
.reply(200, paymentsResultMultibancoSuccess);
const checkout: Checkout = new Checkout(client);
const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest);
expect(paymentsResponse.pspReference).toEqual("8111111111111111");
expect(paymentsResponse.additionalData["comprafacil.amount"]).toEqual("101.01");
expect(paymentsResponse.additionalData["comprafacil.deadline"]).toEqual("3");
expect(paymentsResponse.additionalData["comprafacil.entity"]).toEqual("12345");
const paymentsRequest: checkout.PaymentRequest = createPaymentsCheckoutRequest();
const paymentsResponse: checkout.PaymentResponse = await checkoutService.payments(paymentsRequest);
expect(paymentsResponse.pspReference).toBeTruthy();
expect(paymentsResponse.additionalData).toBeTruthy();
});
test("should get origin keys", async (): Promise<void> => {
const checkoutUtility = new Checkout(client);
const originKeysRequest: checkout.CheckoutUtilityRequest = {
originDomains: ["https://www.your-domain.com"],
};
nock(`${client.config.checkoutEndpoint}`)
.post(`/${Client.CHECKOUT_API_VERSION}/originKeys`)
.reply(200, originKeysSuccess);
const originKeysResponse = await checkoutUtility.originKeys(originKeysRequest);
if (originKeysResponse.originKeys) {
return expect(originKeysResponse.originKeys["https://www.your-domain.com"].startsWith("pub.v2")).toBeTruthy();
}
fail("Error: originKeysResponse.originKeys is empty");
});
// TODO: add gift card to PaymentMethod and unmock test
test("should get payment methods balance", async (): Promise<void> => {
const paymentMethodsRequest: checkout.CheckoutBalanceCheckRequest = {
merchantAccount,
amount: createAmountObject("USD", 1000),
paymentMethod: { },
reference: "mocked_reference"
};
const paymentMethodsBalanceResponse: checkout.CheckoutBalanceCheckResponse = {
balance: {currency: "USD", value: 1000},
resultCode: checkout.CheckoutBalanceCheckResponse.ResultCodeEnum.Success
};
scope.post("/paymentMethods/balance")
.reply(200, paymentMethodsBalanceResponse);
const paymentsResponse: checkout.CheckoutBalanceCheckResponse = await checkoutService.paymentMethodsBalance(paymentMethodsRequest);
expect(paymentsResponse.balance.value).toEqual(1000);
});
test("should create order", async (): Promise<void> => {
const expiresAt = "2019-12-17T10:05:29Z";
const orderRequest: checkout.CheckoutCreateOrderRequest = {
amount: createAmountObject("USD", 1000),
merchantAccount,
reference
};
const orderResponse: checkout.CheckoutCreateOrderResponse = {
expiresAt,
amount: createAmountObject("USD", 500),
orderData: "mocked_order_data",
remainingAmount: {currency: "USD", value: 500} ,
resultCode: checkout.CheckoutCreateOrderResponse.ResultCodeEnum.Success
};
scope.post("/orders")
.reply(200, orderResponse);
const response: checkout.CheckoutCreateOrderResponse = await checkoutService.orders(orderRequest);
expect(response).toBeTruthy();
});
test("should cancel order", async (): Promise<void> => {
const expiresAt = "2019-12-17T10:05:29Z";
const orderRequest: checkout.CheckoutCreateOrderRequest = {
amount: createAmountObject("USD", 1000),
merchantAccount,
reference
};
const orderResponse: checkout.CheckoutCreateOrderResponse = {
expiresAt,
amount: createAmountObject("USD", 500),
orderData: "mocked_order_data",
remainingAmount: {currency: "USD", value: 500},
resultCode: checkout.CheckoutCreateOrderResponse.ResultCodeEnum.Success
};
scope.post("/orders")
.reply(200, orderResponse);
const createOrderResponse: checkout.CheckoutCreateOrderResponse = await checkoutService.orders(orderRequest);
const orderCancelResponse: checkout.CheckoutCancelOrderResponse = {
pspReference: "mocked_psp_ref",
resultCode: checkout.CheckoutCancelOrderResponse.ResultCodeEnum.Received
};
scope.post("/orders/cancel")
.reply(200, orderCancelResponse);
const response: checkout.CheckoutCancelOrderResponse = await checkoutService.ordersCancel({
order: {
orderData: createOrderResponse.orderData,
pspReference: createOrderResponse.pspReference!
},
merchantAccount
});
expect(response).toBeTruthy();
});
test("should create a session.", async (): Promise<void> => {
scope.post("/sessions")
.reply(200, sessionsSuccess);
const sessionsRequest: checkout.CreateCheckoutSessionRequest = createSessionRequest();
const sessionsResponse: checkout.CreateCheckoutSessionResponse = await checkoutService.sessions(sessionsRequest);
expect(sessionsResponse.sessionData).toBeTruthy();
expect(sessionsResponse.expiresAt).toBeInstanceOf(Date);
expect(sessionsResponse.expiresAt.getFullYear()).toBeGreaterThan(0);
});
test("Should get card details", async (): Promise<void> => {
scope.post("/cardDetails")
.reply(200, {
"brands": [
{
"supported": true,
"type": "visa"
}
]
});
const cardDetailsRequest: checkout.CardDetailsRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"cardNumber": "411111"
};
const cardDetailsReponse: checkout.CardDetailsResponse = await checkoutService.cardDetails(cardDetailsRequest);
expect(cardDetailsReponse?.brands?.length).toBe(1);
});
});

View File

@@ -1,45 +0,0 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import nock from "nock";
import { createMockClientFromResponse } from "../__mocks__/base";
import {originKeysSuccess} from "../__mocks__/checkoutUtility/originkeysSuccess";
import CheckoutUtility from "../services/checkoutUtility";
import {CheckoutUtilityRequest} from "../typings/checkoutUtility";
import Client from "../client";
describe("Checkout Utility", (): void => {
it("should get origin keys", async (): Promise<void> => {
const client = createMockClientFromResponse();
const checkoutUtility = new CheckoutUtility(client);
const originKeysRequest: CheckoutUtilityRequest = {
originDomains: ["www.test.com", "https://www.your-domain2.com"],
};
nock(`${client.config.checkoutEndpoint}`)
.post(`/${Client.CHECKOUT_UTILITY_API_VERSION}/originKeys`)
.reply(200, originKeysSuccess);
const originKeysResponse = await checkoutUtility.originKeys(originKeysRequest);
expect(originKeysResponse.originKeys["https://www.your-domain1.com"])
.toEqual("pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI");
});
});

View File

@@ -0,0 +1,293 @@
import nock from "nock";
import {createClient} from "../__mocks__/base";
import Client from "../client";
import ClassicIntegration from "../services/classicIntegration";
import { payments } from "../typings";
let client: Client;
let classicIntegration: ClassicIntegration;
let scope: nock.Scope;
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}`);
classicIntegration = new ClassicIntegration(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("Classic Integration", (): void => {
test("Should authorise payment", async (): Promise<void> => {
scope.post("/authorise")
.reply(200, {
"additionalData": {
"scaExemptionRequested": "transactionRiskAnalysis",
"checkout.cardAddedBrand": "visa"
},
"pspReference": "JVBXGSDM53RZNN82",
"resultCode": "Authorised",
"authCode": "011381"
}
);
const paymentRequest: payments.PaymentRequest = {
"card": {
"number": "4111111111111111",
"expiryMonth": "03",
"expiryYear": "2030",
"cvc": "737",
"holderName": "John Smith"
},
"amount": {
"value": 1500,
"currency": "EUR"
},
"reference": "YOUR_REFERENCE",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const paymentResult: payments.PaymentResult = await classicIntegration.authorise(paymentRequest);
expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82");
});
test("Should complete 3DS authorisation", async (): Promise<void> => {
scope.post("/authorise3d")
.reply(200, {
"additionalData": {
"scaExemptionRequested": "transactionRiskAnalysis",
"checkout.cardAddedBrand": "visa"
},
"pspReference": "JVBXGSDM53RZNN82",
"resultCode": "Authorised",
"authCode": "011381"
}
);
const paymentRequest: payments.PaymentRequest3d = {
"md": "31h..........vOXek7w",
"paResponse": "eNqtmF........wGVA4Ch",
"shopperIP": "61.294.12.12",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const paymentResult: payments.PaymentResult = await classicIntegration.authorise3d(paymentRequest);
expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82");
});
test("Should complete 3DS2 authorisation", async (): Promise<void> => {
scope.post("/authorise3ds2")
.reply(200, {
"additionalData": {
"scaExemptionRequested": "transactionRiskAnalysis",
"checkout.cardAddedBrand": "visa"
},
"pspReference": "JVBXGSDM53RZNN82",
"resultCode": "Authorised",
"authCode": "011381"
}
);
const paymentRequest: payments.PaymentRequest3ds2 = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"amount": {
"value": 1500,
"currency": "EUR"
},
"reference": "YOUR_REFERENCE",
"threeDS2RequestData": {
"threeDSCompInd": "Y",
"deviceChannel": "testDeviceChannel"
},
"threeDS2Token": "— - BINARY DATA - -"
};
const paymentResult: payments.PaymentResult = await classicIntegration.authorise3ds2(paymentRequest);
expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82");
});
test("Should get auth result after 3DS authentication", async (): Promise<void> => {
scope.post("/getAuthenticationResult").reply(200, {
"threeDS2Result": { "authenticationValue": "THREEDS2RESULT"}
});
const getAuthenticationResultrequest: payments.AuthenticationResultRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"pspReference": "9935272408535455"
};
const getAuthenticationResultResponse: payments.AuthenticationResultResponse = await classicIntegration.getAuthenticationResult(getAuthenticationResultrequest);
expect(getAuthenticationResultResponse?.threeDS2Result?.authenticationValue).toEqual("THREEDS2RESULT");
});
test("Should retrieve 3DS2 result", async (): Promise<void> => {
scope.post("/retrieve3ds2Result").reply(200, {
"threeDS2Result": { "authenticationValue": "THREEDS2RESULT"}
});
const retrieve3ds2ResultRequest: payments.ThreeDS2ResultRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"pspReference": "9935272408535455"
};
const retrieve3ds2ResultResponse: payments.ThreeDS2ResultResponse = await classicIntegration.retrieve3ds2Result(retrieve3ds2ResultRequest);
expect(retrieve3ds2ResultResponse?.threeDS2Result?.authenticationValue).toEqual("THREEDS2RESULT");
});
test("Should succesfully send Capture request", async (): Promise<void> => {
scope.post("/capture")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[capture-received]"
});
const modificationRequest: payments.CaptureRequest = {
"originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"modificationAmount": {
"value": 500,
"currency": "EUR"
},
"reference": "YourModificationReference",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.capture(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.CaptureReceived);
});
test("Should succesfully send Cancel request", async (): Promise<void> => {
scope.post("/cancel")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[cancel-received]"
});
const modificationRequest: payments.CancelRequest = {
"originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"reference": "YourModificationReference",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.cancel(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.CancelReceived);
});
test("Should succesfully send Refund request", async (): Promise<void> => {
scope.post("/refund")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[refund-received]"
});
const modificationRequest: payments.RefundRequest = {
"originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"modificationAmount": {
"value": 500,
"currency": "EUR"
},
"reference": "YourModificationReference",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.refund(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.RefundReceived);
});
test("Should succesfully send CancelOrRefund request", async (): Promise<void> => {
scope.post("/cancelOrRefund")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[cancelOrRefund-received]"
});
const modificationRequest: payments.CancelOrRefundRequest = {
"originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"reference": "YourModificationReference",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.cancelOrRefund(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.CancelOrRefundReceived);
});
test("Should succesfully send TechnicalCancel request", async (): Promise<void> => {
scope.post("/technicalCancel")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[technical-cancel-received]"
});
const modificationRequest: payments.TechnicalCancelRequest = {
"originalMerchantReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"modificationAmount": {
"value": 500,
"currency": "EUR"
},
"reference": "YourModificationReference",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.technicalCancel(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.TechnicalCancelReceived);
});
test("Should succesfully send AdjustAuthorisation request", async (): Promise<void> => {
scope.post("/adjustAuthorisation")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[adjustAuthorisation-received]"
});
const modificationRequest: payments.AdjustAuthorisationRequest = {
"originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"modificationAmount": {
"value": 500,
"currency": "EUR"
},
"reference": "YourModificationReference",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.adjustAuthorisation(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.AdjustAuthorisationReceived);
});
test("Should succesfully send Donate request", async (): Promise<void> => {
scope.post("/donate")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[donation-received]"
});
const modificationRequest: payments.DonationRequest = {
"originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE",
"modificationAmount": {
"value": 500,
"currency": "EUR"
},
"reference": "YOUR_DONATION_REFERENCE",
"donationAccount": "AdyenGivingDemo",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT"
};
const modificationResult: payments.ModificationResult = await classicIntegration.donate(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.DonationReceived);
});
test("Should succesfully send VoidPendingRefund request", async (): Promise<void> => {
scope.post("/voidPendingRefund")
.reply(200, {
"pspReference": "YOUR_REFERENCE",
"response": "[voidPendingRefund-received]"
});
const modificationRequest: payments.VoidPendingRefundRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"tenderReference": "5Iw8001176969533005",
"uniqueTerminalId": "VX820-123456789"
};
const modificationResult: payments.ModificationResult = await classicIntegration.voidPendingRefund(modificationRequest);
expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.VoidPendingRefundReceived);
});
});

View File

@@ -0,0 +1,11 @@
import Client from "../client";
describe("API Client", function (): void {
test("should be able to make a request using basic auth", async function (): Promise<void> {
new Client({
username: process.env.ADYEN_USER!,
password: process.env.ADYEN_PASSWORD!,
environment: "TEST"
});
});
});

View File

@@ -0,0 +1,59 @@
import nock from "nock";
import { createClient } from "../__mocks__/base";
import { DataProtection } from "../services";
import Client from "../client";
import HttpClientException from "../httpClient/httpClientException";
import { dataProtection } from "../typings";
let client: Client,
dataProtectionService: DataProtection,
scope: nock.Scope;
beforeEach((): void => {
if(!nock.isActive()) {
nock.activate();
}
client = createClient();
dataProtectionService = new DataProtection(client);
scope = nock(`${client.config.dataProtectionEndpoint}/${Client.DATA_PROTECTION_API_VERSION}`);
});
afterEach(() => {
nock.cleanAll();
});
describe("DataProtection", (): void => {
test("should make succesful subjectErasure call", async (): Promise<void> => {
const requestSubjectErasureSuccess: dataProtection.SubjectErasureResponse = {
"result": dataProtection.SubjectErasureResponse.ResultEnum.Success,
};
const requestSubjectErasureRequest: dataProtection.SubjectErasureByPspReferenceRequest = {
"merchantAccount": "MY_MERCHANT_ACCOUNT",
"forceErasure": true,
"pspReference": "0123456789"
};
scope.post("/requestSubjectErasure")
.reply(200, requestSubjectErasureSuccess);
const response: dataProtection.SubjectErasureResponse = await dataProtectionService.requestSubjectErasure(requestSubjectErasureRequest);
expect(response.result).toEqual(dataProtection.SubjectErasureResponse.ResultEnum.Success);
});
test("should return correct Exception", async (): Promise<void> => {
try {
scope.post("/requestSubjectErasure")
.reply(401);
const requestSubjectErasureRequest: dataProtection.SubjectErasureByPspReferenceRequest = {
"merchantAccount": "MY_MERCHANT_ACCOUNT",
"forceErasure": true,
"pspReference": "0123456789"
};
await dataProtectionService.requestSubjectErasure(requestSubjectErasureRequest);
} catch (e) {
expect(e instanceof HttpClientException).toBeTruthy();
}
});
});

View File

@@ -1,61 +1,130 @@
import HmacValidator from "../utils/hmacValidator";
import {NotificationRequestItem} from "../typings/notification";
import {HMAC_SIGNATURE} from "../typings/constants/apiConstants";
import { AdditionalData, NotificationItem, NotificationRequestItem } from "../typings/notification/models";
import { ApiConstants } from "../constants/apiConstants";
import NotificationRequest from "../notification/notificationRequest";
const key = "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00";
const expectedSign = "ipnxGCaUZ4l8TUW75a71/ghd2Fe5ffvX0pV4TLTntIc=";
const notificationRequestItem: NotificationRequestItem = {
pspReference: "pspReference",
originalReference: "originalReference",
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: {currency: "EUR", value: 1000},
eventCode: "EVENT",
eventDate: new Date("01-01-1970"),
paymentMethod: "VISA",
reason: "reason",
success: "true",
additionalData: { [HMAC_SIGNATURE]: expectedSign },
const expectedSign = "ZNBPtI+oDyyRrLyD1XirkKnQgIAlFc07Vj27TeHsDRE=";
const notificationRequestItem: { NotificationRequestItem: NotificationRequestItem } = {
NotificationRequestItem : {
pspReference: "pspReference",
originalReference: "originalReference",
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: {currency: "EUR", value: 1000},
eventCode: NotificationRequestItem.EventCodeEnum.ReportAvailable,
eventDate: "2019-09-21T11:45:24.637Z",
paymentMethod: "VISA",
reason: "reason",
success: NotificationRequestItem.SuccessEnum.True,
additionalData: { [ApiConstants.HMAC_SIGNATURE]: expectedSign },
}
};
const notification = new NotificationRequest({
live: "false",
notificationItems: [notificationRequestItem as unknown as NotificationItem]
});
describe("HMAC Validator", function (): void {
let hmacValidator: HmacValidator;
beforeEach(() => {
hmacValidator = new HmacValidator();
});
it("should get correct data", function (): void {
const hmacValidator = new HmacValidator();
const dataToSign = hmacValidator.getDataToSign({merchantAccount: "ACC", currencyCode: "EUR"});
expect(dataToSign).toEqual("currencyCode:merchantAccount:EUR:ACC");
});
it("should get correct data with escaped characters", function (): void {
const hmacValidator = new HmacValidator();
const dataToSign = hmacValidator.getDataToSign({currencyCode: "EUR", merchantAccount: "ACC:\\", sessionValidity: "2019-09-21T11:45:24.637Z"});
expect(dataToSign).toEqual("currencyCode:merchantAccount:sessionValidity:EUR:ACC\\:\\\\:2019-09-21T11\\:45\\:24.637Z");
});
it("should encrypt correctly", function (): void {
const data = "countryCode:currencyCode:merchantAccount:merchantReference:paymentAmount:sessionValidity:skinCode:NL:EUR:MagentoMerchantTest2:TEST-PAYMENT-2017-02-01-14\\:02\\:05:199:2017-02-02T14\\:02\\:05+01\\:00:PKz2KML1";
const encrypted = hmacValidator.calculateHmac(data, "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00");
expect(encrypted).toEqual("34oR8T1whkQWTv9P+SzKyp8zhusf9n0dpqrm9nsqSJs=");
});
it("should get correct data to sign", function (): void {
const data = hmacValidator.getDataToSign(notification.notificationItems![0]);
expect(data).toEqual("pspReference:originalReference:merchantAccount:reference:1000:EUR:REPORT_AVAILABLE:true");
});
it("should have valid hmac", function (): void {
const encrypted = hmacValidator.calculateHmac(notification.notificationItems![0], key);
expect(expectedSign).toEqual(encrypted);
expect(hmacValidator.validateHMAC(notification.notificationItems![0], key)).toBeTruthy();
});
it("should have invalid hmac", function (): void {
const invalidNotification = {
...notification.notificationItems![0],
additionalData: { [ApiConstants.HMAC_SIGNATURE as keyof AdditionalData]: "notValidSign" }
};
const result = hmacValidator.validateHMAC(invalidNotification, key);
expect(result).toBeFalsy();
});
it("should throw error with missing hmac signature", function(): void {
expect.assertions(1);
const notificationRequestItemNoAdditionalData: NotificationRequestItem = {
pspReference: "pspReference",
originalReference: "originalReference",
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: {currency: "EUR", value: 1000},
eventCode: NotificationRequestItem.EventCodeEnum.ReportAvailable,
eventDate: "2019-09-21T11:45:24.637Z",
paymentMethod: "VISA",
reason: "reason",
success: NotificationRequestItem.SuccessEnum.True,
additionalData: { },
};
try {
hmacValidator.validateHMAC(notificationRequestItemNoAdditionalData, key);
} catch(error) {
if(error instanceof Error) {
expect(error.message).toEqual(`Missing ${ApiConstants.HMAC_SIGNATURE}`);
} else {
fail();
}
}
});
it("should test hmac", function () {
const data = "countryCode:currencyCode:merchantAccount:merchantReference:paymentAmount:sessionValidity:skinCode:NL:EUR:MagentoMerchantTest2:TEST-PAYMENT-2017-02-01-14\\:02\\:05:199:2017-02-02T14\\:02\\:05+01\\:00:PKz2KML1";
const key = "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00";
const hmacValidator = new HmacValidator();
const encrypted = hmacValidator.calculateHmac(data, key);
expect(encrypted).toEqual("34oR8T1whkQWTv9P+SzKyp8zhusf9n0dpqrm9nsqSJs=");
});
it("should get correct data to sign", function (): void {
const hmacValidator = new HmacValidator();
const data = hmacValidator.getDataToSign(notificationRequestItem);
expect(data).toEqual("pspReference:originalReference:merchantAccount:reference:1000:EUR:EVENT:true");
it("should validate HMAC", function () {
expect(hmacValidator.validateHMAC(notification.notificationItems![0], key)).toBeTruthy();
});
it("should have valid hmac", function (): void {
const hmacValidator = new HmacValidator();
const encrypted = hmacValidator.calculateHmac(notificationRequestItem, key);
it("should have valid notification request item HMAC", function () {
const expectedSign = "ipnxGCaUZ4l8TUW75a71/ghd2Fe5ffvX0pV4TLTntIc=";
const notificationRequestItem = { NotificationRequestItem: {
pspReference: "pspReference",
originalReference: "originalReference",
merchantAccountCode: "merchantAccount",
merchantReference: "reference",
amount: { currency: "EUR", value: 1000 },
eventCode: "EVENT",
success: "true",
additionalData: { [ApiConstants.HMAC_SIGNATURE]: expectedSign }
}} as unknown as NotificationItem;
const notification = new NotificationRequest({
live: "false",
notificationItems: [notificationRequestItem]
});
const data = hmacValidator.getDataToSign(notification.notificationItems![0]);
expect("pspReference:originalReference:merchantAccount:reference:1000:EUR:EVENT:true").toEqual(data);
const encrypted = hmacValidator.calculateHmac(notification.notificationItems![0], key);
expect(expectedSign).toEqual(encrypted);
expect(hmacValidator.validateHMAC(notificationRequestItem, key)).toBeTruthy();
});
it("should have invalid hmac", function (): void {
const invalidNotification = {
...notificationRequestItem,
additionalData: { [HMAC_SIGNATURE]: "notValidSign" }
};
const hmacValidator = new HmacValidator();
const result = hmacValidator.validateHMAC(invalidNotification, key);
expect(result).toBeFalsy();
expect(hmacValidator.validateHMAC(notification.notificationItems![0], key)).toBeTruthy();
notification.notificationItems![0].additionalData![ApiConstants.HMAC_SIGNATURE] = "notValidSign";
expect(hmacValidator.validateHMAC(notification.notificationItems![0], key)).toBeFalsy();
});
});

View File

@@ -1,10 +1,9 @@
import nock, {Interceptor} from "nock";
import nock, { Interceptor } from "nock";
import Client from "../client";
import Checkout from "../services/checkout";
import ApiException from "../services/exception/apiException";
import {createPaymentsCheckoutRequest} from "./checkout.spec";
import { createPaymentsCheckoutRequest } from "./checkout.spec";
import HttpClientException from "../httpClient/httpClientException";
import {Environment} from "../typings/enums/environment";
beforeEach((): void => {
nock.cleanAll();
@@ -13,7 +12,7 @@ beforeEach((): void => {
type errorType = "HttpClientException" | "ApiException";
type testOptions = { errorType: errorType; errorMessageContains?: string; errorMessageEquals?: string };
const getResponse = async ({apiKey , environment }: { apiKey: string; environment: Environment}, cb: (scope: Interceptor) => testOptions) => {
const getResponse = async ({apiKey , environment }: { apiKey: string; environment: Environment}, cb: (scope: Interceptor) => testOptions): Promise<void> => {
const client = new Client({ apiKey, environment });
const checkout = new Checkout(client);
@@ -26,15 +25,19 @@ const getResponse = async ({apiKey , environment }: { apiKey: string; environmen
await checkout.payments(createPaymentsCheckoutRequest());
fail("request should fail");
} catch (e) {
expect(e instanceof ErrorException).toBeTruthy();
if(errorMessageEquals) expect(e.message).toEqual(errorMessageEquals);
if(errorMessageContains) expect(e.message.toLowerCase()).toContain(errorMessageContains);
if(e instanceof ErrorException){
if (errorMessageEquals) expect(e.message).toEqual(errorMessageEquals);
if (errorMessageContains) expect(e.message.toLowerCase()).toContain(errorMessageContains);
} else {
fail();
}
}
};
describe("HTTP Client", function (): void {
it.each`
apiKey | environment | withError | args | errorType | contains | equals
apiKey | environment | withError | args | errorType | contains | equals
${""} | ${"TEST"} | ${true} | ${["mocked_error_response"]} | ${"ApiException"} | ${"x-api-key"} | ${""}
${"MOCKED_API_KEY"} | ${"TEST"} | ${true} | ${["some_error"]} | ${"ApiException"} | ${""} | ${"some_error"}
${"API_KEY"} | ${"TEST"} | ${false} | ${[401, { status: 401, message: "Invalid Request", errorCode: "171", errorType: "validationError"}]} | ${"HttpClientException"} | ${""} | ${"HTTP Exception: 401. null: Invalid Request"}
@@ -48,4 +51,4 @@ describe("HTTP Client", function (): void {
return { errorType, errorMessageContains: contains, errorMessageEquals: equals };
});
});
});
});

View File

@@ -0,0 +1,326 @@
import nock from "nock";
import Client from "../client";
import {createClient} from "../__mocks__/base";
import * as models from "../typings/legalEntityManagement/models";
import {Document, LegalEntityInfo, OnboardingLinkInfo, TransferInstrumentInfo} from "../typings/legalEntityManagement/models";
import {DocumentUpdate} from "../services/legalEntityManagement/documents";
import {businessLine, businessLines, document, legalEntity, onboardingLink, onboardingTheme, onboardingThemes, transferInstrument} from "../__mocks__/legalEntityManagement/responses";
import TransferEnum = TransferInstrumentInfo.TypeEnum;
import TypeEnum = LegalEntityInfo.TypeEnum
import DocEnum = Document.TypeEnum
import {onboardingLinkInfo} from "../__mocks__/legalEntityManagement/requests";
import LegalEntityManagement from "../services/legalEntityManagement";
let client: Client;
let legalEntityManagement: LegalEntityManagement;
let scope: nock.Scope;
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.legalEntityManagementEndpoint}/${Client.LEGAL_ENTITY_MANAGEMENT_API_VERSION}`);
legalEntityManagement = new LegalEntityManagement(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("Legal Entity Management", (): void => {
const id = "123456789"
describe("LegalEntities", (): void => {
it("should support POST /legalEntities", async (): Promise<void> => {
scope.post("/legalEntities")
.reply(200, legalEntity);
const request: models.LegalEntityInfo = {
type : TypeEnum.Individual,
individual : undefined
};
const response: models.LegalEntity = await legalEntityManagement.LegalEntities.create(request);
expect(response.id).toBe(id);
expect(response.type).toBe("individual");
});
it("should support GET /legalEntities/{id}", async (): Promise<void> => {
scope.get(`/legalEntities/${id}`)
.reply(200, legalEntity);
const response: models.LegalEntity = await legalEntityManagement.LegalEntities.retrieve("123456789");
expect(response.id).toBe(id);
expect(response.type).toBe("individual");
});
it("should support PATCH /legalEntities/{id}", async (): Promise<void> => {
scope.patch(`/legalEntities/${id}`)
.reply(200, legalEntity);
const request: models.LegalEntityInfo = {
type : TypeEnum.Individual,
individual : undefined
};
const response: models.LegalEntity = await legalEntityManagement.LegalEntities.update(id, request);
expect(response.id).toBe(id);
expect(response.type).toBe("individual");
});
it("should support GET /legalEntities/{id}/BusinessLines", async (): Promise<void> => {
scope.get(`/legalEntities/${id}/businessLines`)
.reply(200, businessLines);
const response: models.BusinessLines = await legalEntityManagement.LegalEntities.listBusinessLines(id);
expect(response.businessLines).toEqual( [{
"capability": "receivePayments",
"id": "123456789",
"industryCode": "123456789",
"legalEntityId": "123456789",
"salesChannels": ["string"],
"sourceOfFunds": {
"acquiringBusinessLineId": "string",
"adyenProcessedFunds": false,
"description": "string",
"type": "business"
},
"webData": [{ "webAddress": "string" }],
"webDataExemption": { "reason": "noOnlinePresence" }
}]);
});
});
describe("Transfer Instruments", (): void => {
it("should support POST /transferInstruments", async (): Promise<void> => {
scope.post("/transferInstruments")
.reply(200, transferInstrument);
const request: models.TransferInstrumentInfo = {
type : TransferEnum.BankAccount,
legalEntityId : id,
bankAccount : {accountNumber: "string",
accountType: "string",
bankBicSwift: "string",
bankCity: "string",
bankCode: "string",
bankName: "string",
branchCode: "string",
checkCode: "string",
countryCode: "string",
currencyCode: "string",
iban: "string"
}
};
const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.create(request);
expect(response.id).toBe(id);
expect(response.type).toBe(TransferEnum.BankAccount);
});
it("should support GET /transferInstruments/{id}", async (): Promise<void> => {
scope.get(`/transferInstruments/${id}`)
.reply(200, transferInstrument);
const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.retrieve(id);
expect(response.id).toBe(id);
expect(response.type).toBe(TransferEnum.BankAccount);
});
it("should support PATCH /transferInstruments/{id}", async (): Promise<void> => {
scope.patch(`/transferInstruments/${id}`)
.reply(200, transferInstrument);
const request: models.TransferInstrumentInfo = {
type : TransferEnum.BankAccount,
legalEntityId : id,
bankAccount : {accountNumber: "string",
accountType: "string",
bankBicSwift: "string",
bankCity: "string",
bankCode: "string",
bankName: "string",
branchCode: "string",
checkCode: "string",
countryCode: "string",
currencyCode: "string",
iban: "string"
}
};
const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.update(id, request);
expect(response.id).toBe(id);
expect(response.type).toBe(TransferEnum.BankAccount);
});
it("should support DELETE /transferInstruments/{id}", async (): Promise<void> => {
scope.delete(`/transferInstruments/${id}`)
.reply(200);
await legalEntityManagement.TransferInstruments.delete(id);
expect(200);
});
});
describe("Business Lines", (): void => {
it("should support POST /businessLines", async (): Promise<void> => {
scope.post("/businessLines")
.reply(200, businessLine);
const request: models.BusinessLineInfo = {
capability: "receivePayments",
industryCode: id,
legalEntityId: id };
const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.create(request);
expect(response.id).toBe(id);
expect(response.capability).toBe("receivePayments");
expect(response.industryCode).toBe(id);
expect(response.legalEntityId).toBe(id);
});
it("should support GET /businessLines/{id}", async (): Promise<void> => {
scope.get(`/businessLines/${id}`)
.reply(200, businessLine);
const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.retrieve(id);
expect(response.id).toBe(id);
expect(response.capability).toBe("receivePayments");
});
it("should support PATCH /businessLines/{id}", async (): Promise<void> => {
scope.patch(`/businessLines/${id}`)
.reply(200, businessLine);
const request: models.BusinessLineInfo = {
capability: "receivePayments",
industryCode: id,
legalEntityId: id };
const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.update(id, request);
expect(response.id).toBe(id);
expect(response.capability).toBe("receivePayments");
expect(response.industryCode).toBe(id);
expect(response.legalEntityId).toBe(id);
});
});
describe("Documents", (): void => {
it("should support POST /documents", async (): Promise<void> => {
scope.post("/documents")
.reply(200, document);
const request: DocumentUpdate = {
attachments: [{
content: "string",
contentType: "string",
filename: "string",
pageName: "string",
pageType: "string"
}],
description: "document",
owner: {
"id": "123456789",
"type": "passport"
},
type : DocEnum.DriversLicense
};
const response: models.Document = await legalEntityManagement.Documents.create(request);
expect(response.id).toBe(id);
expect(response.type).toBe(DocEnum.DriversLicense);
expect(response.owner).toEqual({id : "123456789", type : "passport" })
});
it("should support GET /documents/{id}", async (): Promise<void> => {
scope.get(`/documents/${id}`)
.reply(200, document);
const response: models.Document = await legalEntityManagement.Documents.retrieve(id);
expect(response.id).toBe(id);
expect(response.type).toBe(DocEnum.DriversLicense);
expect(response.owner).toEqual({id : "123456789", type : "passport" })
});
it("should support PATCH /documents/{id}", async (): Promise<void> => {
scope.patch(`/documents/${id}`)
.reply(200, document);
const request: DocumentUpdate = {
attachments: [{
content: "string",
contentType: "string",
filename: "string",
pageName: "string",
pageType: "string"
}],
description: "document",
owner: {
"id": "123456789",
"type": "passport"
},
type : DocEnum.DriversLicense
};
const response: models.Document = await legalEntityManagement.Documents.update(id, request);
expect(response.id).toBe(id);
expect(response.type).toBe(DocEnum.DriversLicense);
expect(response.owner).toEqual({id : "123456789", type : "passport" })
});
it("should support DELETE /documents/{id}", async (): Promise<void> => {
scope.delete(`/documents/${id}`)
.reply(200);
await legalEntityManagement.Documents.delete(id);
});
});
describe("OnboardingLinks and Themes", (): void => {
it("should support POST /onboardingLinks", async (): Promise<void> => {
scope.post(`/legalEntities/${id}/onboardingLinks`)
.reply(200, onboardingLink);
const request: OnboardingLinkInfo = onboardingLinkInfo;
const response: models.OnboardingLink = await legalEntityManagement.HostedOnboardingPage.create(id, request);
expect(response.url).toBe("https://your.redirect-url.com");
});
it("should support GET /themes", async (): Promise<void> => {
scope.get(`/themes`)
.reply(200, onboardingThemes);
const response: models.OnboardingThemes = await legalEntityManagement.HostedOnboardingPage.listThemes();
expect(response.themes[0].id).toEqual(id);
});
it("should support GET /themes/{id}", async (): Promise<void> => {
scope.get(`/themes/${id}`)
.reply(200, onboardingTheme);
const response: models.OnboardingTheme = await legalEntityManagement.HostedOnboardingPage.retrieveTheme(id);
expect(response.id).toBe(id);
});
});
});

View File

@@ -0,0 +1,729 @@
import nock from "nock";
import Client from "../client";
import { createClient } from "../__mocks__/base";
import { Management } from "../services";
import { management } from "../typings";
import * as requests from "../__mocks__/management/requests";
import * as responses from "../__mocks__/management/responses";
import HttpClientException from "../httpClient/httpClientException";
let client: Client;
let managementService: Management;
let scope: nock.Scope;
const merchantId = "merchantId";
const apiCredentialId = "apiCredentialId";
const originId = "originId";
const paymentMethodId = "paymentMethodId";
const payoutSettingsId = "payoutSettingsId";
const orderId = "orderId";
const userId = "userId";
const webhookId = "webhookId";
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.managementEndpoint}/${Client.MANAGEMENT_API_VERSION}`);
managementService = new Management(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("Management", (): void => {
describe("Me", (): void => {
test("Should properly handle error responses from API", async (): Promise<void> => {
scope.post("/me/allowedOrigins")
.reply(422, {
"type": "https://docs.adyen.com/errors/not-found",
"title": "Entity was not found",
"status": 422,
"detail": "The origin id is invalid or does not exist.",
"requestId": "KQZ5LXK2VMPRMC82",
"errorCode": "30_112",
});
try {
const createAllowedOriginRequest : management.CreateAllowedOriginRequest = {
domain: "test.com",
};
await managementService.Me.createAllowedOrigin(createAllowedOriginRequest);
fail("No exception was thrown");
} catch (error) {
expect(error instanceof HttpClientException).toBeTruthy();
if(error instanceof HttpClientException && error.responseBody) {
expect(JSON.parse(error.responseBody).requestId).toBe("KQZ5LXK2VMPRMC82");
} else {
fail("Error did not contain the expected data");
}
}
});
test("Should get API credential details based on the API Key used in the request", async (): Promise<void> => {
scope.get("/me")
.reply(200, {
"id": "S2-6262224667",
"username": "ws_123456@Company.Test",
"clientKey": "test_UCP6BO23234FFEFE33E4GWX63",
"allowedIpAddresses": [],
"roles": [
"Management API - Users read and write",
"Management API - Accounts read",
"Trigger webhook notifications",
"Management API - Payout Account Settings Read And Write",
"Manage LegalEntities via API",
"Manage associated partner accounts via API",
"PSP Pos initial configuration",
],
"_links": {
"self": {
"href": "https://management-test.adyen.com/v1/me"
},
"allowedOrigins": {
"href": "https://management-test.adyen.com/v1/me/allowedOrigins"
}
},
"companyName": "Test",
"active": true,
});
const meResponse: management.MeApiCredential = await managementService.Me.retrieve();
expect(meResponse.id).toEqual("S2-6262224667");
});
test("Should add an allowed origin to the list of allowed origins", async (): Promise<void> => {
scope.post("/me/allowedOrigins")
.reply(200, {
"id": "S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921",
"domain": "https://www.us.mystore.com",
"_links": {
"self": {
"href": "https://management-test.adyen.com/v1/me/allowedOrigins/S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921"
}
}
});
const allowedOriginRequest: management.AllowedOrigin = {
"domain": "https://www.us.mystore.com"
};
const allowedOriginsResponse: management.AllowedOrigin = await managementService.Me.createAllowedOrigin(allowedOriginRequest);
expect(allowedOriginsResponse.domain).toEqual("https://www.us.mystore.com");
});
test("Should get the list of allowed origins of a API credential based on the API key used in the request", async (): Promise<void> => {
scope.get("/me/allowedOrigins")
.reply(200, {
"data": [
{
"id": "S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921",
"domain": "https://www.us.mystore.com",
"_links": {
"self": {
"href": "https://management-test.adyen.com/v1/me/allowedOrigins/S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921"
}
}
}
]
});
const allowedOriginsResponse: management.AllowedOriginsResponse = await managementService.Me.retrieveAllowedOrigins();
expect(allowedOriginsResponse.data?.length).toEqual(1);
});
});
test("Should retrieve the details of the allowed origin specified in the path", async () => {
scope.get("/me/allowedOrigins/S2-123123123123123")
.reply(200, {
"id": "S2-123123123123123",
"domain": "https://www.us.mystore.com",
"_links": {
"self": {
"href": "https://management-test.adyen.com/v1/me/allowedOrigins/S2-123123123123123"
}
}
});
const allowedOriginResponse: management.AllowedOrigin = await managementService.Me.retrieveAllowedOrigin("S2-123123123123123");
expect(allowedOriginResponse.id).toEqual("S2-123123123123123");
});
test("Should remove the allowed origin specified in the path", async () => {
scope.delete("/me/allowedOrigins/S2-123123123123123").reply(204, {});
const allowedOriginResponse: Record<string, unknown> = await managementService.Me.deleteAllowerdOrigin("S2-123123123123123");
expect(scope.isDone()).toBe(true);
expect(Object.entries(allowedOriginResponse).length).toBe(0);
});
describe("MerchantAccount", (): void => {
it("should support GET /merchants", async (): Promise<void> => {
scope.get("/merchants?pageNumber=1&pageSize=1")
.reply(200, responses.listMerchantResponse);
const response: management.ListMerchantResponse = await managementService.MerchantAccount.list({
params: {
"pageNumber": "1",
"pageSize": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants", async (): Promise<void> => {
scope.post("/merchants")
.reply(200, responses.createMerchantResponse);
const response: management.CreateMerchantResponse = await managementService.MerchantAccount.create(requests.createMerchantRequest);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}`)
.reply(200, responses.merchant);
const response: management.Merchant = await managementService.MerchantAccount.retrieve(merchantId);
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/activate", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/activate`)
.reply(200, responses.requestActivationResponse);
const response: management.RequestActivationResponse = await managementService.MerchantAccount.activate(merchantId);
expect(response).toBeTruthy();
});
});
describe("MerchantAllowedOrigins", (): void => {
it("should support GET /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins`)
.reply(200, responses.allowedOriginsResponse);
const response: management.AllowedOriginsResponse = await managementService.MerchantAllowedOrigins.list(merchantId, apiCredentialId);
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins`)
.reply(200, responses.allowedOriginsResponse);
const response: management.AllowedOriginsResponse = await managementService.MerchantAllowedOrigins.create(merchantId, apiCredentialId, requests.allowedOrigin);
expect(response).toBeTruthy();
});
it("should support DELETE /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", async (): Promise<void> => {
scope.delete(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins/${originId}`)
.reply(204);
await managementService.MerchantAllowedOrigins.delete(merchantId, apiCredentialId, originId);
});
it("should support GET /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins/${originId}`)
.reply(200, responses.allowedOrigin);
const response: management.AllowedOrigin = await managementService.MerchantAllowedOrigins.retrieve(merchantId, apiCredentialId, originId);
expect(response).toBeTruthy();
});
});
describe("MerchantApiCredentials", (): void => {
it("should support GET /merchants/{merchantId}/apiCredentials", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/apiCredentials?pageNumber=1&pageSize=1`)
.reply(200, responses.listMerchantApiCredentialsResponse);
const response: management.ListMerchantApiCredentialsResponse = await managementService.MerchantApiCredentials.list(merchantId, {
params: {
"pageNumber": "1",
"pageSize": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/apiCredentials", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/apiCredentials`)
.reply(200, responses.createApiCredentialResponse);
const response: management.CreateApiCredentialResponse = await managementService.MerchantApiCredentials.create(merchantId, requests.createMerchantApiCredentialRequest);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/apiCredentials/{apiCredentialId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}`)
.reply(200, responses.apiCredential);
const response: management.ApiCredential = await managementService.MerchantApiCredentials.retrieve(merchantId, apiCredentialId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/apiCredentials/{apiCredentialId}", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}`)
.reply(200, responses.apiCredential);
const response: management.ApiCredential = await managementService.MerchantApiCredentials.update(merchantId, apiCredentialId, requests.updateMerchantApiCredentialRequest);
expect(response).toBeTruthy();
});
});
describe("MerchantApiKey", (): void => {
it("should support POST /merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/generateApiKey`)
.reply(200, responses.generateApiKeyResponse);
const response: management.GenerateApiKeyResponse = await managementService.MerchantApiKey.create(merchantId, apiCredentialId);
expect(response).toBeTruthy();
});
});
describe("MerchantClientKey", (): void => {
it("should support POST /merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/generateClientKey`)
.reply(200, responses.generateClientKeyResponse);
const response: management.GenerateClientKeyResponse = await managementService.MerchantClientKey.create(merchantId, apiCredentialId);
expect(response).toBeTruthy();
});
});
describe("MerchantPaymentMethods", (): void => {
it("should support GET /merchants/{merchantId}/paymentMethodSettings", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/paymentMethodSettings?storeId=1&businessLineId=1&pageNumber=1&pageSize=1`)
.reply(200, responses.paymentMethodResponse);
const response: management.PaymentMethodResponse = await managementService.MerchantPaymentMethods.listPaymentMethodSettings(merchantId, {
params: {
"storeId": "1",
"businessLineId": "1",
"pageSize": "1",
"pageNumber": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/paymentMethodSettings", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/paymentMethodSettings`)
.reply(200, responses.paymentMethod);
const response: management.PaymentMethod = await managementService.MerchantPaymentMethods.create(merchantId, {
...requests.paymentMethodSetupInfo,
type: management.PaymentMethodSetupInfo.TypeEnum.Ideal
});
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/paymentMethodSettings/${paymentMethodId}`)
.reply(200, responses.paymentMethod);
const response: management.PaymentMethod = await managementService.MerchantPaymentMethods.retrieve(merchantId, paymentMethodId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/paymentMethodSettings/${paymentMethodId}`)
.reply(200, responses.paymentMethod);
const response: management.PaymentMethod = await managementService.MerchantPaymentMethods.update(merchantId, paymentMethodId, requests.updatePaymentMethodInfo);
expect(response).toBeTruthy();
});
});
describe("MerchantPayoutSettings", (): void => {
it("should support GET /merchants/{merchantId}/payoutSettings", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/payoutSettings`)
.reply(200, responses.payoutSettingsResponse);
const response: management.PayoutSettingsResponse = await managementService.MerchantPayoutSettings.listPayoutSettings(merchantId);
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/payoutSettings", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/payoutSettings`)
.reply(200, responses.payoutSettings);
const response: management.PayoutSettings = await managementService.MerchantPayoutSettings.create(merchantId, requests.payoutSettingsRequest);
expect(response).toBeTruthy();
});
it("should support DELETE /merchants/{merchantId}/payoutSettings/{payoutSettingsId}", async (): Promise<void> => {
scope.delete(`/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`)
.reply(200);
await managementService.MerchantPayoutSettings.delete(merchantId, payoutSettingsId);
});
it("should support GET /merchants/{merchantId}/payoutSettings/{payoutSettingsId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`)
.reply(200, responses.payoutSettings);
const response: management.PayoutSettings = await managementService.MerchantPayoutSettings.retrieve(merchantId, payoutSettingsId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/payoutSettings/{payoutSettingsId}", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`)
.reply(200, responses.payoutSettings);
const response: management.PayoutSettings = await managementService.MerchantPayoutSettings.update(merchantId, payoutSettingsId, requests.updatePayoutSettingsRequest);
expect(response).toBeTruthy();
});
});
describe("MerchantTerminalOrders", (): void => {
it("should support GET /merchants/{merchantId}/billingEntities", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/billingEntities?name=bill`)
.reply(200, responses.billingEntitiesResponse);
const response: management.BillingEntitiesResponse = await managementService.MerchantTerminalOrders.listBillingEntities(merchantId, {
params: {
"name": "bill"
}
});
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/shippingLocations", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/shippingLocations?name=1&offset=1&limit=1`)
.reply(200, responses.shippingLocationsResponse);
const response: management.ShippingLocationsResponse = await managementService.MerchantTerminalOrders.listShippingLocations(merchantId, {
params: {
"name": "1",
"offset": "1",
"limit": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/shippingLocations", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/shippingLocations`)
.reply(200, responses.shippingLocation);
const response: management.ShippingLocation = await managementService.MerchantTerminalOrders.createShippingLocation(merchantId, requests.shippingLocation);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/terminalModels", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/terminalModels`)
.reply(200, responses.terminalModelsResponse);
const response: management.TerminalModelsResponse = await managementService.MerchantTerminalOrders.listTerminalModels(merchantId);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/terminalOrders", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/terminalOrders?customerOrderReference=1&status=1&offset=1&limit=1`)
.reply(200, responses.terminalOrdersResponse);
const response: management.TerminalOrdersResponse = await managementService.MerchantTerminalOrders.listTerminalOrders(merchantId, {
params: {
"customerOrderReference": "1",
"status": "1",
"offset": "1",
"limit": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/terminalOrders", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/terminalOrders`)
.reply(200, responses.terminalOrder);
const response: management.TerminalOrder = await managementService.MerchantTerminalOrders.create(merchantId, requests.terminalOrderRequest);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/terminalOrders/{orderId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/terminalOrders/${orderId}`)
.reply(200, responses.terminalOrder);
const response: management.TerminalOrder = await managementService.MerchantTerminalOrders.retrieve(merchantId, orderId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/terminalOrders/{orderId}", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/terminalOrders/${orderId}`)
.reply(200, responses.terminalOrder);
const response: management.TerminalOrder = await managementService.MerchantTerminalOrders.update(merchantId, orderId, requests.terminalOrderRequest);
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/terminalOrders/{orderId}/cancel", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/terminalOrders/${orderId}/cancel`)
.reply(200, responses.terminalOrder);
const response: management.TerminalOrder = await managementService.MerchantTerminalOrders.cancel(merchantId, orderId);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/terminalProducts", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/terminalProducts?country=1&terminalModelId=1&offset=1&limit=1`)
.reply(200, responses.terminalProductsResponse);
const response: management.TerminalProductsResponse = await managementService.MerchantTerminalOrders.listTerminalProducts(merchantId, {
params: {
"country": "1",
"terminalModelId": "1",
"offset": "1",
"limit": "1"
}
});
expect(response).toBeTruthy();
});
});
describe("MerchantTerminalSettings", (): void => {
it("should support GET /merchants/{merchantId}/terminalLogos", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/terminalLogos?model=1`)
.reply(200, responses.logo);
const response: management.Logo = await managementService.MerchantTerminalSettings.retrieveLogo(merchantId, {
params: {
"model": "1"
}
});
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/terminalLogos", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/terminalLogos?model=1`)
.reply(200, responses.logo);
const response: management.Logo = await managementService.MerchantTerminalSettings.updateLogo(merchantId, requests.logo, {
params: {
"model": "1"
}
});
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/terminalSettings", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/terminalSettings`)
.reply(200, responses.terminalSettings);
const response: management.TerminalSettings = await managementService.MerchantTerminalSettings.retrieve(merchantId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/terminalSettings", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/terminalSettings`)
.reply(200, responses.terminalSettings);
const response: management.TerminalSettings = await managementService.MerchantTerminalSettings.update(merchantId, requests.terminalSettings);
expect(response).toBeTruthy();
});
});
describe("MerchantUsers", (): void => {
it("should support GET /merchants/{merchantId}/users", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/users?pageNumber=1&pageSize=1`)
.reply(200, responses.listMerchantUsersResponse);
const response: management.ListMerchantUsersResponse = await managementService.MerchantUsers.list(merchantId, {
params: {
"pageNumber": "1",
"pageSize": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/users", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/users`)
.reply(200, responses.createUserResponse);
const response: management.CreateUserResponse = await managementService.MerchantUsers.create(merchantId, requests.createMerchantUserRequest);
expect(response).toBeTruthy();
});
it("should support GET /merchants/{merchantId}/users/{userId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/users/${userId}`)
.reply(200, responses.user);
const response: management.User = await managementService.MerchantUsers.retrieve(merchantId, userId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/users/{userId}", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/users/${userId}`)
.reply(200, responses.user);
const response: management.User = await managementService.MerchantUsers.update(merchantId, userId, requests.updateMerchantUserRequest);
expect(response).toBeTruthy();
});
});
describe("MerchantWebhooks", (): void => {
it("should support GET /merchants/{merchantId}/webhooks", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/webhooks?pageNumber=1&pageSize=1`)
.reply(200, responses.listWebhooksResponse);
const response: management.ListWebhooksResponse = await managementService.MerchantWebhooks.list(merchantId, {
params: {
"pageNumber": "1",
"pageSize": "1"
}
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/webhooks", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/webhooks`)
.reply(200, responses.webhook);
const response: management.Webhook = await managementService.MerchantWebhooks.create(merchantId, {
...requests.createMerchantWebhookRequest,
communicationFormat: management.CreateMerchantWebhookRequest.CommunicationFormatEnum.Json,
networkType: management.CreateMerchantWebhookRequest.NetworkTypeEnum.Public,
sslVersion: management.CreateMerchantWebhookRequest.SslVersionEnum.Tls
});
expect(response).toBeTruthy();
});
it("should support DELETE /merchants/{merchantId}/webhooks/{webhookId}", async (): Promise<void> => {
scope.delete(`/merchants/${merchantId}/webhooks/${webhookId}`)
.reply(204);
await managementService.MerchantWebhooks.delete(merchantId, webhookId);
});
it("should support GET /merchants/{merchantId}/webhooks/{webhookId}", async (): Promise<void> => {
scope.get(`/merchants/${merchantId}/webhooks/${webhookId}`)
.reply(200, responses.webhook);
const response: management.Webhook = await managementService.MerchantWebhooks.retrieve(merchantId, webhookId);
expect(response).toBeTruthy();
});
it("should support PATCH /merchants/{merchantId}/webhooks/{webhookId}", async (): Promise<void> => {
scope.patch(`/merchants/${merchantId}/webhooks/${webhookId}`)
.reply(200, responses.webhook);
const response: management.Webhook = await managementService.MerchantWebhooks.update(merchantId, webhookId, {
...requests.updateMerchantWebhookRequest,
communicationFormat: management.CreateMerchantWebhookRequest.CommunicationFormatEnum.Soap,
networkType: management.CreateMerchantWebhookRequest.NetworkTypeEnum.Local,
sslVersion: management.CreateMerchantWebhookRequest.SslVersionEnum.Sslv3
});
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/webhooks/{webhookId}/generateHmac", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/webhooks/${webhookId}/generateHmac`)
.reply(200, responses.generateHmacKeyResponse);
const response: management.GenerateHmacKeyResponse = await managementService.MerchantWebhooks.generateHmac(merchantId, webhookId);
expect(response).toBeTruthy();
});
it("should support POST /merchants/{merchantId}/webhooks/{webhookId}/test", async (): Promise<void> => {
scope.post(`/merchants/${merchantId}/webhooks/${webhookId}/test`)
.reply(200, responses.testWebhookResponse);
const testWebhookRequest: management.TestWebhookRequest = {
"notification": {
"amount": {
"currency": "string",
"value": 0
},
"eventCode": "string",
"eventDate": new Date(2022, 6, 15),
"merchantReference": "string",
"paymentMethod": "string",
"reason": "string",
"success": false
},
"types": ["string"]
};
const response: management.TestWebhookResponse = await managementService.MerchantWebhooks.test(merchantId, webhookId, testWebhookRequest);
expect(response).toBeTruthy();
});
});
describe("AllowedOriginsMerchantLevelApi", (): void => {
test("Delete an allowed origin", async () => {
scope.delete("/merchants/foo/apiCredentials/BAR123/allowedOrigins/fishy%20one").reply(204);
await managementService.AllowedOriginsMerchantLevelApi
.deleteAllowedOrigin("foo", "BAR123", "fishy one");
});
test("Create an allowed origin", async () => {
const requestBody = {
"domain": "https://www.eu.mystore.com"
};
scope.post("/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins", requestBody)
.reply(200, {
"id": "YOUR_ALLOWED_ORIGIN",
"data": [
{
"domain": "https://www.eu.mystore.com",
}
],
"_links": {
"self": {
"href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins/YOUR_ALLOWED_ORIGIN"
}
}
});
const response: management.AllowedOriginsResponse = await managementService.AllowedOriginsMerchantLevelApi
.createAllowedOrigin("YOUR_MERCHANT_ACCOUNT", "YOUR_API_CREDENTIAL", {
domain: "https://www.eu.mystore.com",
});
expect(response.data![0].domain).toEqual("https://www.eu.mystore.com");
});
});
});

View File

@@ -0,0 +1,353 @@
import nock from "nock";
import {createClient} from "../__mocks__/base";
import Checkout from "../services/checkout";
import Client from "../client";
import {
CreatePaymentAmountUpdateRequest,
CreatePaymentCancelRequest,
CreatePaymentCaptureRequest,
CreatePaymentRefundRequest, CreatePaymentReversalRequest,
CreateStandalonePaymentCancelRequest,
PaymentAmountUpdateResource,
PaymentCancelResource,
PaymentCaptureResource, PaymentRefundResource, PaymentReversalResource,
StandalonePaymentCancelResource
} from "../typings/checkout/models";
import HttpClientException from "../httpClient/httpClientException";
const invalidModificationResult = {
"status": 422,
"errorCode": "167",
"message": "Original pspReference required for this operation",
"errorType": "validation"
};
const createAmountUpdateRequest = (): CreatePaymentAmountUpdateRequest => {
return {
reference: "863620292981235A",
merchantAccount: process.env.ADYEN_MERCHANT!,
amount: {
currency: "EUR",
value: 420
},
reason: CreatePaymentAmountUpdateRequest.ReasonEnum.DelayedCharge
};
};
const createAmountUpdateResponse = (): PaymentAmountUpdateResource => {
return {
paymentPspReference: "863620292981235A",
pspReference: "863620292981235B",
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
amount: {
currency: "EUR",
value: 420,
},
reason: CreatePaymentAmountUpdateRequest.ReasonEnum.DelayedCharge,
status: PaymentAmountUpdateResource.StatusEnum.Received,
};
};
const createCancelsRequest = (): CreatePaymentCancelRequest => {
return {
reference: "863620292981235B",
merchantAccount: process.env.ADYEN_MERCHANT!,
};
};
const createCancelsResponse = (): PaymentCancelResource => {
return {
merchantAccount: process.env.ADYEN_MERCHANT!,
pspReference: "863620292981235B",
paymentPspReference: "863620292981235A",
status: PaymentCancelResource.StatusEnum.Received,
};
};
const createStandaloneCancelsRequest = (): CreateStandalonePaymentCancelRequest => {
return {
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
paymentReference: "863620292981235B",
};
};
const createStandaloneCancelsResponse = (): StandalonePaymentCancelResource => {
return {
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
paymentReference: "863620292981235B",
pspReference: "863620292981235A",
status: StandalonePaymentCancelResource.StatusEnum.Received,
};
};
const createCapturesRequest = (): CreatePaymentCaptureRequest => {
return {
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
amount: {
currency: "EUR",
value: 420,
}
};
};
function createCapturesResponse(): PaymentCaptureResource {
return {
paymentPspReference: "863620292981235A",
pspReference: "863620292981235B",
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
amount: {
currency: "EUR",
value: 420,
},
status: PaymentCaptureResource.StatusEnum.Received,
};
}
const createRefundsRequest = (): CreatePaymentRefundRequest => {
return {
merchantAccount: process.env.ADYEN_MERCHANT!,
amount: {
currency: "EUR",
value: 420,
}
};
};
const createRefundsResponse = (): PaymentRefundResource => {
return {
paymentPspReference: "863620292981235A",
pspReference: "863620292981235B",
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
amount: {
currency: "EUR",
value: 420,
},
status: PaymentRefundResource.StatusEnum.Received,
};
};
const createReversalsRequest = (): CreatePaymentReversalRequest => {
return {
merchantAccount: process.env.ADYEN_MERCHANT!
};
};
const createReversalsResponse = (): PaymentReversalResource => {
return {
paymentPspReference: "863620292981235A",
pspReference: "863620292981235B",
reference: "reference",
merchantAccount: process.env.ADYEN_MERCHANT!,
status: PaymentRefundResource.StatusEnum.Received,
};
};
let client: Client;
let checkout: Checkout;
let scope: nock.Scope;
const paymentPspReference = "863620292981235A";
const invalidPaymentPspReference = "invalid_psp_reference";
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
checkout = new Checkout(client);
scope = nock(`${client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}`);
});
afterEach(() => {
nock.cleanAll();
});
describe("Modification", (): void => {
test("should perform an amount update request", async (): Promise<void> => {
const request = createAmountUpdateRequest();
scope.post(`/payments/${paymentPspReference}/amountUpdates`)
.reply(200, createAmountUpdateResponse());
try {
const result = await checkout.amountUpdates(paymentPspReference, request);
expect(result).toBeTruthy();
} catch (e) {
if(e instanceof Error) {
if(e.message) fail(e.message);
} else {
fail();
}
}
});
test("should fail to perform an amount update request", async (): Promise<void> => {
expect.assertions(2);
const request = createAmountUpdateRequest();
scope.post(`/payments/${invalidPaymentPspReference}/amountUpdates`)
.reply(422, invalidModificationResult);
try {
await checkout.amountUpdates(invalidPaymentPspReference, request);
} catch (e) {
if(e instanceof HttpClientException) {
if(e.statusCode) expect(e.statusCode).toBe(422);
expect(e.message).toContain("Original pspReference required for this operation");
} else {
fail();
}
}
});
test("should perform a cancels request", async (): Promise<void> => {
const request = createCancelsRequest();
scope.post(`/payments/${paymentPspReference}/cancels`)
.reply(200, createCancelsResponse());
try {
const result = await checkout.cancels(paymentPspReference, request);
expect(result).toBeTruthy();
} catch (e) {
if(e instanceof Error) {
if(e.message) fail(e.message);
} else {
fail();
}
}
});
test("should fail to perform a cancels request", async (): Promise<void> => {
expect.assertions(2);
const request = createCancelsRequest();
scope.post(`/payments/${invalidPaymentPspReference}/cancels`)
.reply(422, invalidModificationResult);
try {
await checkout.cancels(invalidPaymentPspReference, request);
} catch (e) {
if(e instanceof HttpClientException) {
if(e.statusCode) expect(e.statusCode).toBe(422);
expect(e.message).toContain("Original pspReference required for this operation");
} else {
fail();
}
}
});
test("should perform a standalone cancels request", async (): Promise<void> => {
const request = createStandaloneCancelsRequest();
scope.post("/cancels")
.reply(200, createStandaloneCancelsResponse());
try {
const result = await checkout.cancelsStandalone(request);
expect(result).toBeTruthy();
} catch (e) {
if(e instanceof Error) {
if(e.message) fail(e.message);
} else {
fail();
}
}
});
test("should perform a captures request", async (): Promise<void> => {
const request = createCapturesRequest();
scope.post(`/payments/${paymentPspReference}/captures`)
.reply(200, createCapturesResponse());
try {
const result = await checkout.captures(paymentPspReference, request);
expect(result).toBeTruthy();
} catch (e) {
if(e instanceof Error) {
if(e.message) fail(e.message);
} else {
fail();
}
}
});
test("should fail to perform a captures request", async (): Promise<void> => {
expect.assertions(2);
const request = createCapturesRequest();
scope.post(`/payments/${invalidPaymentPspReference}/captures`)
.reply(422, invalidModificationResult);
try {
await checkout.captures(invalidPaymentPspReference, request);
} catch (e) {
if(e instanceof HttpClientException) {
if(e.statusCode) expect(e.statusCode).toBe(422);
expect(e.message).toContain("Original pspReference required for this operation");
} else {
fail();
}
}
});
test("should perform a refunds request", async (): Promise<void> => {
const request = createRefundsRequest();
scope.post(`/payments/${paymentPspReference}/refunds`)
.reply(200, createRefundsResponse());
try {
const result = await checkout.refunds(paymentPspReference, request);
expect(result).toBeTruthy();
} catch (e) {
if(e instanceof Error) {
if(e.message) fail(e.message);
} else {
fail();
}
}
});
test("should fail to perform a refunds request", async (): Promise<void> => {
expect.assertions(2);
const request = createRefundsRequest();
scope.post(`/payments/${invalidPaymentPspReference}/refunds`)
.reply(422, invalidModificationResult);
try {
await checkout.refunds(invalidPaymentPspReference, request);
} catch (e) {
if(e instanceof HttpClientException) {
if(e.statusCode) expect(e.statusCode).toBe(422);
expect(e.message).toContain("Original pspReference required for this operation");
} else {
fail();
}
}
});
test("should perform a reversals request", async (): Promise<void> => {
const request = createReversalsRequest();
scope.post(`/payments/${paymentPspReference}/reversals`)
.reply(200, createReversalsResponse());
try {
const result = await checkout.reversals(paymentPspReference, request);
expect(result).toBeTruthy();
} catch (e) {
if(e instanceof Error) {
if(e.message) fail(e.message);
} else {
fail();
}
}
});
test("should fail to perform a reversals request", async (): Promise<void> => {
expect.assertions(2);
const request = createReversalsRequest();
scope.post(`/payments/${invalidPaymentPspReference}/reversals`)
.reply(422, invalidModificationResult);
try {
await checkout.reversals(invalidPaymentPspReference, request);
} catch (e) {
if(e instanceof HttpClientException) {
if(e.statusCode) expect(e.statusCode).toBe(422);
expect(e.message).toContain("Original pspReference required for this operation");
} else {
fail();
}
}
});
});

View File

@@ -4,7 +4,9 @@ import captureFalse from "../__mocks__/notification/captureFalse.json";
import refundTrue from "../__mocks__/notification/refundTrue.json";
import refundFalse from "../__mocks__/notification/refundFalse.json";
import NotificationRequest from "../notification/notificationRequest";
import {Notification, NotificationEnum, NotificationRequestItem} from "../typings/notification";
import { Notification, NotificationRequestItem } from "../typings/notification/models";
import NotificationEnum = NotificationRequestItem.EventCodeEnum;
import SuccessEnum = NotificationRequestItem.SuccessEnum;
describe("Notification Test", function (): void {
it("should return authorisation success", function (): void {
@@ -13,9 +15,10 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem: NotificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_AUTHORISATION).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeTruthy();
expect(NotificationEnum.Authorisation).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("123456789");
expect(notificationRequestItem.additionalData!.paymentLinkId).toEqual("ABCDEFG");
} else {
fail();
}
@@ -27,8 +30,8 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_CAPTURE).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeTruthy();
expect(NotificationEnum.Capture).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
} else {
@@ -42,8 +45,8 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_CAPTURE).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeFalsy();
expect(NotificationEnum.Capture).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeFalsy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
} else {
@@ -57,8 +60,8 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_REFUND).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeTruthy();
expect(NotificationEnum.Refund).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
expect(notificationRequestItem.eventDate).toBeDefined();
@@ -73,8 +76,8 @@ describe("Notification Test", function (): void {
if (notificationRequest.notificationItems) {
const notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_REFUND).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeFalsy();
expect(NotificationEnum.Refund).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeFalsy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
expect(notificationRequestItem.eventDate).toBeDefined();

View File

@@ -1,19 +1,14 @@
import nock from "nock";
import { createMockClientFromResponse } from "../__mocks__/base";
import { createClient } from "../__mocks__/base";
import Payout from "../services/payout";
import {
ModifyRequest,
StoreDetailAndSubmitRequest,
StoreDetailRequest, SubmitRequest, PayoutRequest
} from "../typings/payout";
import { FRAUD_MANUAL_REVIEW, FRAUD_RESULT_TYPE } from "../typings/constants/apiConstants";
import Client from "../client";
import { payouts } from "../typings";
import { ApiConstants } from "../constants/apiConstants";
const storeDetailAndSubmitThirdParty = JSON.stringify({
additionalData: {
fraudResultType: "GREEN",
fraudManualReview: "false",
},
pspReference: "8515131751004933",
resultCode: "[payout-submit-received]"
@@ -28,8 +23,8 @@ const storeDetail = JSON.stringify({
const amountAndReference = {
amount: {
value: 1000,
currency: "USD"
value: 100,
currency: "EUR"
},
reference: "randomReference",
};
@@ -41,36 +36,43 @@ const defaultData = {
shopperReference: "shopperReference",
};
const mockStoreDetailRequest = (merchantAccount: string): StoreDetailRequest => ({
const mockStoreDetailRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): payouts.StoreDetailRequest => ({
...defaultData,
entityType: "NaturalPerson",
card: {
cvc: "737",
expiryMonth: "03",
expiryYear: "2020",
number: "4111111111111111",
holderName: "John Smith"
},
entityType: payouts.StoreDetailRequest.EntityTypeEnum.Company,
recurring: {
contract: "ONECLICK"
contract: payouts.Recurring.ContractEnum.Payout,
},
merchantAccount,
});
const mockSubmitRequest = (merchantAccount: string): SubmitRequest => ({
const mockSubmitRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): payouts.SubmitRequest => ({
selectedRecurringDetailReference: "LATEST",
recurring: {
contract: "ONECLICK"
contract: payouts.Recurring.ContractEnum.Payout
},
...defaultData,
...amountAndReference,
merchantAccount,
});
const mockStoreDetailAndSubmitRequest = (merchantAccount: string): StoreDetailAndSubmitRequest => ({
const mockStoreDetailAndSubmitRequest = (merchantAccount?: string): payouts.StoreDetailAndSubmitRequest => ({
...amountAndReference,
...(mockStoreDetailRequest(merchantAccount)),
});
});
const mockPayoutRequest = (merchantAccount: string): PayoutRequest => ({
const mockPayoutRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): payouts.PayoutRequest => ({
...amountAndReference,
...defaultData,
card: {
expiryMonth: "10",
expiryYear: "2020",
expiryMonth: "03",
expiryYear: "2030",
holderName: "John Smith",
number: "4111111111111111",
},
@@ -78,92 +80,119 @@ const mockPayoutRequest = (merchantAccount: string): PayoutRequest => ({
});
let client: Client;
let payout: Payout;
let clientStore: Client;
let clientReview: Client;
let payoutService: Payout;
let scope: nock.Scope;
beforeEach((): void => {
client = createMockClientFromResponse();
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
clientStore = createClient(process.env.ADYEN_STOREPAYOUT_APIKEY);
clientReview = createClient(process.env.ADYEN_REVIEWPAYOUT_APIKEY);
scope = nock(`${client.config.endpoint}/pal/servlet/Payout/${Client.API_VERSION}`);
payout = new Payout(client);
payoutService = new Payout(client);
});
afterEach((): void => {
nock.cleanAll();
});
describe("PayoutTest", function (): void {
it("should succeed on store detail and submit third party", async function (): Promise<void> {
const request: StoreDetailAndSubmitRequest = mockStoreDetailAndSubmitRequest(`${client.config.merchantAccount}`);
scope.post("/storeDetail").reply(200, storeDetailAndSubmitThirdParty);
test("should succeed on store detail and submit third party", async function (): Promise<void> {
payoutService = new Payout(clientStore);
const request: payouts.StoreDetailAndSubmitRequest = mockStoreDetailAndSubmitRequest();
scope.post("/storeDetailAndSubmitThirdParty").reply(200, storeDetailAndSubmitThirdParty);
const result = await payout.storeDetail(request);
const result = await payoutService.storeDetailAndSubmitThirdParty(request);
expect(result.resultCode).toEqual("[payout-submit-received]");
expect(result.pspReference).toEqual("8515131751004933");
expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN");
expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false");
expect(result.pspReference).toBeTruthy();
});
it("should succeed on store detail", async function (): Promise<void> {
test("should succeed on store detail", async function (): Promise<void> {
payoutService = new Payout(clientStore);
scope.post("/storeDetail").reply(200, storeDetail);
const request: StoreDetailRequest = mockStoreDetailRequest("MOCKED_MERCHANT_ACC");
const result = await payout.storeDetail(request);
const request: payouts.StoreDetailRequest = mockStoreDetailRequest();
const result = await payoutService.storeDetail(request);
expect("Success").toEqual(result.resultCode);
expect("8515136787207087").toEqual(result.pspReference);
expect("8415088571022720").toEqual(result.recurringDetailReference);
expect(result.pspReference).toBeTruthy();
expect(result.recurringDetailReference).toBeTruthy();
});
it("should succeed on confirm third party", async function (): Promise<void> {
test("should succeed on confirm third party", async function (): Promise<void> {
payoutService = new Payout(clientStore);
scope.post("/storeDetail").reply(200, storeDetail);
const storeRequest: payouts.StoreDetailRequest = mockStoreDetailRequest();
const storeResult = await payoutService.storeDetail(storeRequest);
payoutService = new Payout(clientReview);
scope.post("/confirmThirdParty")
.reply(200, {
pspReference: "8815131762537886",
response: "[payout-confirm-received]"
});
const request: ModifyRequest = {
merchantAccount: "MOCKED_MERCHANT_ACCOUNT",
originalReference: "reference"
const request: payouts.ModifyRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
originalReference: storeResult.pspReference
};
const result = await payout.confirmThirdParty(request);
const result = await payoutService.confirmThirdParty(request);
expect(result.response).toEqual("[payout-confirm-received]");
expect(result.pspReference).toEqual("8815131762537886");
expect(result.pspReference).toBeTruthy();
});
it("should succeed on submit third party", async function (): Promise<void> {
test("should succeed on submit third party", async function (): Promise<void> {
payoutService = new Payout(clientStore);
scope.post("/submitThirdParty").reply(200, storeDetailAndSubmitThirdParty);
const request: SubmitRequest = mockSubmitRequest("MOCKED_MERCHANT_ACC");
const result = await payout.submitThirdparty(request);
const request: payouts.SubmitRequest = mockSubmitRequest();
const result = await payoutService.submitThirdparty(request);
expect(result.resultCode).toEqual("[payout-submit-received]");
expect(result.pspReference).toEqual("8515131751004933");
expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN");
expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false");
expect(result.pspReference).toBeTruthy();
if (result.additionalData) {
expect(result.additionalData[ApiConstants.FRAUD_RESULT_TYPE]).toEqual("GREEN");
expect(result.additionalData[ApiConstants.FRAUD_MANUAL_REVIEW]).toEqual("false");
}
});
it("should succeed on decline third party", async function (): Promise<void> {
scope.post("/storeDetailAndSubmitThirdParty").reply(200, {
pspReference: "8815131762537886",
response: "[payout-confirm-received]"
});
test("should succeed on decline third party", async function (): Promise<void> {
payoutService = new Payout(clientStore);
scope.post("/storeDetail").reply(200, storeDetail);
const storeRequest: payouts.StoreDetailRequest = mockStoreDetailRequest();
const storeResult = await payoutService.storeDetail(storeRequest);
const request: ModifyRequest = {
merchantAccount: "MOCKED_MERCHANT_ACC",
originalReference: "reference"
payoutService = new Payout(clientReview);
const request: payouts.ModifyRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
originalReference: storeResult.pspReference
};
const result = await payout.declineThirdParty(request);
scope.post("/declineThirdParty")
.reply(200, {
pspReference: "8815131762537886",
response: "[payout-decline-received]"
});
const result = await payoutService.declineThirdParty(request);
expect(result.response).toEqual("[payout-confirm-received]");
expect(result.pspReference).toEqual("8815131762537886");
expect(result.response).toEqual("[payout-decline-received]");
expect(result.pspReference).toBeTruthy();
});
it("should succeed on payout", async function (): Promise<void> {
test("should succeed on payout", async function (): Promise<void> {
scope.post("/payout").reply(200, {
pspReference: "8815131762537886",
resultCode: "Received",
});
const request = mockPayoutRequest("MOCKED_MERCHANT_ACC");
const result = await payout.payout(request);
const request = mockPayoutRequest();
const result = await payoutService.payout(request);
expect(result.resultCode).toEqual("Received");
expect(result.pspReference).toEqual("8815131762537886");
expect(result.pspReference).toBeTruthy();
});
});
});

View File

@@ -0,0 +1,611 @@
import nock from "nock";
import { createMock } from "ts-auto-mock";
import { createBasicAuthClient } from "../__mocks__/base";
import { documentContent } from "../__mocks__/platforms/documentContent";
import { Client, Platforms } from "../index";
import * as A from "../typings/platformsAccount/models";
import F = IPlatformsFund;
import N = IPlatformsNotificationConfiguration;
import AccountHolderDetails = A.AccountHolderDetails;
import NotificationConfigurationDetails = N.NotificationConfigurationDetails;
import HttpClientException from "../httpClient/httpClientException";
import { GetOnboardingUrlRequest, GetOnboardingUrlResponse, GetPciUrlRequest, GetPciUrlResponse } from "../typings/platformsHostedOnboardingPage/models";
import { DebitAccountHolderRequest, DebitAccountHolderResponse } from "../typings/platformsFund/models";
let client: Client;
let platforms: Platforms;
let scope: nock.Scope;
let accountHolder: A.CreateAccountHolderResponse;
let account: A.CreateAccountResponse;
let accountHolderToSuspend: A.CreateAccountHolderResponse;
let accountToClose: A.CreateAccountResponse;
let accountHolderToUnSuspend: A.CreateAccountHolderResponse;
let accountHolderToClose: A.CreateAccountHolderResponse;
let notificationConfigurationToRetrieve: N.GetNotificationConfigurationResponse;
const generateRandomCode = (): string => Math.floor(Math.random() * Date.now()).toString();
const accountHolderDetails: AccountHolderDetails = {
email: "random_email@example.com",
fullPhoneNumber: "312030291928",
webAddress: "http://example.com",
individualDetails: {
name: {
firstName: "John",
gender: A.ViasName.GenderEnum.Male,
lastName: "Smith"
}
},
address: {
country: "NL"
},
};
const notificationConfigurationDetails: NotificationConfigurationDetails = {
active: true,
notifyURL: "https://www.adyen.com/notification-handler",
eventConfigs: [
{
eventType: "ACCOUNT_HOLDER_VERIFICATION",
includeMode: "INCLUDE"
}
],
sslProtocol: "SSL"
};
const assertError = (e: HttpClientException): void => {
if (e.responseBody?.includes("Account code does not exist or invalid") || e.responseBody?.includes("Failed to retrieve account holder")) {
return;
}
fail(e);
};
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createBasicAuthClient();
client.config.password = process.env.ADYEN_MARKETPLACE_PASSWORD;
client.config.username = process.env.ADYEN_MARKETPLACE_USER;
scope = nock(client.config.marketPayEndpoint!);
platforms = new Platforms(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("Platforms Test", function () {
describe("Account", function(): void {
describe("Accounts", function () {
const cases = [
["closeAccount", createMock<A.CloseAccountRequest>(), createMock<A.CloseAccountResponse>()],
["updateAccount", createMock<A.UpdateAccountRequest>(), createMock<A.UpdateAccountResponse>()],
["createAccount", createMock<A.CreateAccountRequest>(), createMock<A.CreateAccountResponse>()],
["uploadDocument", createMock<A.UploadDocumentRequest>(), createMock<A.GetUploadedDocumentsResponse>()],
["getUploadedDocuments", createMock<A.GetUploadedDocumentsRequest>(), createMock<A.GetUploadedDocumentsResponse>()],
["deleteBankAccounts", createMock<A.DeleteBankAccountRequest>(), createMock<A.GenericResponse>()],
["deletePayoutMethods", createMock<A.DeletePayoutMethodRequest>(), createMock<A.GenericResponse>()],
["deleteShareholders", createMock<A.DeleteShareholderRequest>(), createMock<A.GenericResponse>()],
["checkAccountHolder", createMock<A.PerformVerificationRequest>(), createMock<A.GenericResponse>()],
["createAccountHolder", createMock<A.CreateAccountRequest>(), createMock<A.CreateAccountHolderRequest>()],
["getAccountHolder", createMock<A.GetAccountHolderRequest>(), createMock<A.GetAccountHolderRequest>()],
["updateAccountHolder", createMock<A.UpdateAccountHolderRequest>(), createMock<A.UpdateAccountHolderResponse>()],
["updateAccountHolderState", createMock<A.UpdateAccountHolderStateRequest>(), createMock<A.GetAccountHolderStatusResponse>()],
["suspendAccountHolder", createMock<A.SuspendAccountHolderRequest>(), createMock<A.SuspendAccountHolderResponse>()],
["unSuspendAccountHolder", createMock<A.UnSuspendAccountHolderRequest>(), createMock<A.UnSuspendAccountHolderResponse>()],
["closeAccountHolder", createMock<A.CloseAccountHolderRequest>(), createMock<A.CloseAccountResponse>()],
["getTaxForm", createMock<A.GetTaxFormRequest>(), createMock<A.GetTaxFormResponse>()],
];
test.each(cases)(
"should %p",
async (...args) => {
const service = platforms.Account;
scope.post(`/Account/${Client.MARKETPAY_ACCOUNT_API_VERSION}//${args[0]}`).reply(200, args[2]);
const result = await service[args[0] as string](args[1] as never);
expect(result).toMatchObject(args[2]);
}
);
});
});
describe("Fund", function () {
const cases = [
["accountHolderBalance", createMock<F.AccountHolderBalanceRequest>(), createMock<F.AccountHolderBalanceResponse>()],
["accountHolderTransactionList", createMock<F.AccountHolderTransactionListRequest>(), createMock<F.AccountHolderTransactionListResponse>()],
["payoutAccountHolder", createMock<F.PayoutAccountHolderRequest>(), createMock<F.PayoutAccountHolderResponse>()],
["transferFunds", createMock<F.TransferFundsRequest>(), createMock<F.TransferFundsResponse>()],
["refundFundsTransfer", createMock<F.RefundFundsTransferRequest>(), createMock<F.RefundFundsTransferResponse>()],
["setupBeneficiary", createMock<F.SetupBeneficiaryRequest>(), createMock<F.SetupBeneficiaryResponse>()],
["refundNotPaidOutTransfers", createMock<F.RefundNotPaidOutTransfersRequest>(), createMock<F.RefundNotPaidOutTransfersResponse>()],
["debitAccountHolder", createMock<DebitAccountHolderRequest>(), createMock<DebitAccountHolderResponse>()],
];
test.each(cases)(
"should %p",
async (...args) => {
const fund = platforms.Fund;
scope.post(`/Fund/${Client.MARKETPAY_FUND_API_VERSION}//${args[0]}`).reply(200, args[2]);
const result = await fund[args[0] as string](args[1] as never);
expect(result).toMatchObject(args[2]);
}
);
});
describe("Notification Configuration", function() {
const cases = [
["createNotificationConfiguration", createMock<N.CreateNotificationConfigurationRequest>(), createMock<N.GetNotificationConfigurationResponse>()],
["getNotificationConfiguration", createMock<N.GetNotificationConfigurationRequest>(), createMock<N.GetNotificationConfigurationResponse>()],
["getNotificationConfigurationList", {}, createMock<N.GetNotificationConfigurationListResponse>()],
["testNotificationConfiguration", createMock<N.TestNotificationConfigurationRequest>(), createMock<N.TestNotificationConfigurationResponse>()],
["updateNotificationConfiguration", createMock<N.UpdateNotificationConfigurationRequest>(), createMock<N.GetNotificationConfigurationResponse>()],
["deleteNotificationConfigurations", createMock<N.DeleteNotificationConfigurationRequest>(), createMock<N.GenericResponse>()],
];
test.each(cases)(
"should %p",
async (...args) => {
const notificationConfiguration = platforms.NotificationConfiguration;
scope.post(`/Notification/${Client.MARKETPAY_NOTIFICATION_CONFIGURATION_API_VERSION}//${args[0]}`).reply(200, args[2]);
const result = await notificationConfiguration[args[0] as string](args[1] as never);
expect(result).toMatchObject(args[2]);
}
);
});
describe("Hop", function () {
const cases = [
["getOnboardingUrl", createMock<GetOnboardingUrlRequest>(), createMock<GetOnboardingUrlResponse>()],
["getPciQuestionnaireUrl", createMock<GetPciUrlRequest>(), createMock<GetPciUrlResponse>()],
];
test.each(cases)(
"should %p",
async (...args) => {
const hostedOnboardingPage = platforms.HostedOnboardingPage;
scope.post(`/Hop/${Client.MARKETPAY_HOP_API_VERSION}//${args[0]}`).reply(200, args[2]);
const result = await hostedOnboardingPage[args[0] as string](args[1] as never);
expect(result).toMatchObject(args[2]);
}
);
});
});
describe.skip("Platforms Test E2E", function(): void {
beforeAll(async () => {
accountHolder = await platforms.Account.createAccountHolder({
accountHolderCode: generateRandomCode(),
accountHolderDetails,
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
});
account = await platforms.Account.createAccount({
accountHolderCode: generateRandomCode(),
description: "This is a new account",
metadata: {meta: "data"},
payoutSchedule: A.CreateAccountRequest.PayoutScheduleEnum.Weekly,
});
accountHolderToSuspend = await platforms.Account.createAccountHolder({
accountHolderCode: generateRandomCode(),
accountHolderDetails,
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
});
accountToClose = await platforms.Account.createAccount({
accountHolderCode: generateRandomCode(),
description: "This is a new account",
metadata: {meta: "data"},
payoutSchedule: A.CreateAccountRequest.PayoutScheduleEnum.Weekly,
});
accountHolderToUnSuspend = await platforms.Account.createAccountHolder({
accountHolderCode: generateRandomCode(),
accountHolderDetails,
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
});
await platforms.Account.suspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode});
accountHolderToClose = await platforms.Account.createAccountHolder({
accountHolderCode: generateRandomCode(),
accountHolderDetails,
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
});
notificationConfigurationToRetrieve = await platforms.NotificationConfiguration.createNotificationConfiguration({
configurationDetails: {
...notificationConfigurationDetails,
description: `${generateRandomCode()}`
}
});
});
describe("Account", function(): void {
describe("Accounts E2E", function () {
it("should create account holder", async function() {
nock.restore();
try {
expect(accountHolder.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should get account holder", async function() {
nock.restore();
try {
const result = await platforms.Account.getAccountHolder({
accountHolderCode: accountHolder.accountHolderCode,
});
expect(result.accountHolderDetails.email).toEqual("random_email@example.com");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should update account holder", async function() {
nock.restore();
try {
const result = await platforms.Account.updateAccountHolder({
accountHolderCode: accountHolder.accountHolderCode,
accountHolderDetails: {
...accountHolderDetails,
address: {
country: "BE"
}
}
});
expect(result.accountHolderDetails!.address?.country).toEqual("BE");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should check account holder", async function() {
nock.restore();
try {
const result = await platforms.Account.checkAccountHolder({
accountHolderCode: accountHolder.accountHolderCode,
accountStateType: A.PerformVerificationRequest.AccountStateTypeEnum.Processing,
tier: 2
});
expect(result.resultCode).toEqual("Success");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should create an account", async function() {
nock.restore();
try {
expect(account.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should upload verification document", async function() {
nock.restore();
try {
const result = await platforms.Account.uploadDocument({
documentContent,
documentDetail: {
accountHolderCode: account.accountHolderCode,
documentType: A.DocumentDetail.DocumentTypeEnum.IdCardFront,
description: "test document 000",
filename: "IDCardFront.png"
}
});
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should get uploaded verification documents", async function() {
nock.restore();
try {
await platforms.Account.uploadDocument({
documentContent,
documentDetail: {
accountHolderCode: account.accountHolderCode,
documentType: A.DocumentDetail.DocumentTypeEnum.IdCardFront,
description: "test document 000",
filename: "IDCardFront.png"
}
});
const result = await platforms.Account.getUploadedDocuments({
accountHolderCode: account.accountHolderCode,
});
expect(result.documentDetails![0].filename).toEqual("IDCardFront.png");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should close account", async function() {
nock.restore();
try {
const result = await platforms.Account.closeAccount({
accountCode: accountToClose.accountCode
});
expect(result.status).toEqual("Closed");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should suspend account holder", async function() {
nock.restore();
try {
const result = await platforms.Account.suspendAccountHolder({
accountHolderCode: accountHolderToSuspend.accountHolderCode,
});
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should unsuspend account holder", async function() {
nock.restore();
try {
const result = await platforms.Account.unSuspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode });
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should update account holder state", async function() {
nock.restore();
try {
const result = await platforms.Account.updateAccountHolderState({
accountHolderCode: accountHolder.accountHolderCode,
disable: false,
stateType: A.UpdateAccountHolderStateRequest.StateTypeEnum.Payout
});
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should close account holder", async function() {
nock.restore();
try {
const result = await platforms.Account.closeAccountHolder({
accountHolderCode: accountHolderToClose.accountHolderCode
});
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should get tax form", async function() {
nock.restore();
try {
const result = await platforms.Account.getTaxForm({
accountHolderCode: accountHolder.accountHolderCode,
formType: "1099-K",
year: 2020
});
expect(result.content).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
});
});
describe("Fund", function () {
it("should retrieve the balance of an account holder", async function() {
nock.restore();
try {
const result = await platforms.Fund.accountHolderBalance({
accountHolderCode: generateRandomCode()
});
expect(result.balancePerAccount![0].detailBalance).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should retrieve a list of transaction for an account holder's accounts", async function() {
nock.restore();
try {
const result = await platforms.Fund.accountHolderTransactionList({
accountHolderCode: generateRandomCode()
});
expect(result.accountTransactionLists![0].transactions).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should transfer funds between two accounts", async function() {
nock.restore();
try {
const result = await platforms.Fund.transferFunds({
sourceAccountCode: "8515883280985939",
destinationAccountCode: "8815883278206345",
amount: {
currency: "EUR",
value: 1
},
transferCode: "SUBSCRIPTION"
});
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
});
describe("Notification Configuration", function () {
let configurationID: number;
it("should retrieve all Notification Configurations", async function() {
nock.restore();
try {
const result = await platforms.NotificationConfiguration.getNotificationConfigurationList({});
const resultStr = JSON.stringify(result);
expect(resultStr.includes("pspReference")).toBeTruthy();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should create a Notification Configuration", async function() {
nock.restore();
try {
const result = await platforms.NotificationConfiguration.createNotificationConfiguration({
configurationDetails: {
...notificationConfigurationDetails,
description: `${generateRandomCode()}`
}
});
expect(result.configurationDetails.active).toBeTruthy();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should retrieve a Notification Configuration", async function() {
nock.restore();
try {
configurationID = notificationConfigurationToRetrieve.configurationDetails.notificationId!;
const result = await platforms.NotificationConfiguration.getNotificationConfiguration({
notificationId: configurationID
});
expect(result.configurationDetails.notifyURL).toEqual("https://www.adyen.com/notification-handler");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should update a Notification Configuration", async function() {
nock.restore();
try {
const result = await platforms.NotificationConfiguration.updateNotificationConfiguration({
configurationDetails: {
eventConfigs: [
{
eventType: "ACCOUNT_HOLDER_VERIFICATION",
includeMode: "EXCLUDE"
},
{
"eventType": "ACCOUNT_CREATED",
"includeMode": "INCLUDE"
}
],
notifyURL: "https://www.adyen.com/notification-handler",
notificationId: configurationID
}
});
const accountHolderVerification = result.configurationDetails.eventConfigs.filter(event => event.eventType === "ACCOUNT_HOLDER_VERIFICATION")[0];
expect(accountHolderVerification.includeMode).toEqual("EXCLUDE");
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
it("should delete a Notification Configuration", async function() {
nock.restore();
const notificationIds = [];
notificationIds.push(configurationID);
try {
const result = await platforms.NotificationConfiguration.deleteNotificationConfigurations({notificationIds});
expect(result.pspReference).toBeDefined();
} catch (e) {
if(e instanceof HttpClientException) {
assertError(e);
} else {
fail();
}
}
});
});
});

View File

@@ -1,50 +1,174 @@
import nock from "nock";
import { createMockClientFromResponse } from "../__mocks__/base";
import { createClient } from "../__mocks__/base";
import { disableSuccess } from "../__mocks__/recurring/disableSuccess";
import { listRecurringDetailsSuccess } from "../__mocks__/recurring/listRecurringDetailsSuccess";
import Recurring from "../services/recurring";
import { DisableRequest, RecurringDetailsRequest } from "../typings/recurring";
import { notifyShopperSuccess } from "../__mocks__/recurring/notifyShopperSuccess";
import RecurringService from "../services/recurring";
import Client from "../client";
import { recurring } from "../typings";
import {Permit} from "../typings/recurring/permit";
import {CreatePermitRequest} from "../typings/recurring/createPermitRequest";
import {ObjectSerializer} from "../typings/recurring/models";
const createRecurringDetailsRequest = (): RecurringDetailsRequest => {
const createRecurringDetailsRequest = (): recurring.RecurringDetailsRequest => {
return {
merchantAccount: "MerchantAccount",
recurring: {contract: "ONECLICK"},
shopperReference: "test-123",
merchantAccount: process.env.ADYEN_MERCHANT!,
recurring: { contract: recurring.Recurring.ContractEnum.Recurring },
shopperReference: "shopperReference",
};
};
let client: Client;
let recurring: Recurring;
let recurringService: RecurringService;
let scope: nock.Scope;
beforeEach((): void => {
client = createMockClientFromResponse();
recurring = new Recurring(client);
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
recurringService = new RecurringService(client);
scope = nock(`${client.config.endpoint}/pal/servlet/Recurring/${Client.RECURRING_API_VERSION}`);
});
afterEach(() => {
nock.cleanAll();
});
describe("Recurring", (): void => {
it("should test have recurring details list", async (): Promise<void> => {
test("should list recurring details", async (): Promise<void> => {
scope.post("/listRecurringDetails")
.reply(200, listRecurringDetailsSuccess);
const request = createRecurringDetailsRequest();
const result = await recurring.listRecurringDetails(request);
expect(result).toEqual(listRecurringDetailsSuccess);
const result = await recurringService.listRecurringDetails(request);
expect(result).toBeTruthy();
expect(result.details?.[0].recurringDetailReference).toBe("recurringReference");
});
it("should disable", async (): Promise<void> => {
test("should disable", async (): Promise<void> => {
scope.post("/disable")
.reply(200, disableSuccess);
const request: DisableRequest = {
merchantAccount: "MerchantAccount",
recurringDetailReference: "reference",
shopperReference: "test-123",
const request: recurring.DisableRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
shopperReference: "shopperReference",
recurringDetailReference: "recurring.recurringDetailReference",
};
const result = await recurring.disable(request);
expect(result).toEqual(disableSuccess);
try {
const result = await recurringService.disable(request);
expect(result).toBeTruthy();
} catch (e) {
fail(e);
}
});
test("should send pre-debit Notification", async (): Promise<void> => {
scope.post("/notifyShopper")
.reply(200, notifyShopperSuccess);
const notifyShopperRequest: recurring.NotifyShopperRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
shopperReference: "shopperReference",
storedPaymentMethodId: "8415995487234100",
amount: {
currency: "INR",
value: 1000
},
billingDate: "2021-03-16",
reference: "Example reference",
displayedReference: "Example displayed reference"
};
try {
const result = await recurringService.notifyShopper(notifyShopperRequest);
expect(result).toBeTruthy();
} catch (e) {
fail(e);
}
});
test("should schedule account updater", async (): Promise<void> => {
const scheduleAccountUpdaterSuccess: recurring.ScheduleAccountUpdaterResult = {
pspReference: "mocked_psp",
result: "SUCCESS"
};
scope.post("/scheduleAccountUpdater")
.reply(200, scheduleAccountUpdaterSuccess);
const request: recurring.ScheduleAccountUpdaterRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
reference: "ref",
card: {
expiryMonth: "03",
expiryYear: "2030",
holderName: "John Smith",
number: "4111111111111111"
}
};
try {
const result = await recurringService.scheduleAccountUpdater(request);
expect(result).toBeTruthy();
} catch (e) {
fail(e);
}
});
test("should do a createPermit request", async (): Promise<void> => {
const createPermitResultSuccess: recurring.CreatePermitResult = {
pspReference: "1234567890"
};
scope.post("/createPermit")
.reply(200, createPermitResultSuccess);
const permit: Permit = {
validTillDate: new Date("2022-03-25"),
partnerId: "partnerID"
};
const request: recurring.CreatePermitRequest = {
permits: [permit],
merchantAccount: process.env.ADYEN_MERCHANT!,
shopperReference: "shopperRef",
recurringDetailReference: "recurringRef",
};
const serializedRequest: CreatePermitRequest = ObjectSerializer.serialize(request, "CreatePermitRequest");
expect(serializedRequest.permits[0].validTillDate?.toString()).toBe("2022-03-25T00:00:00.000Z");
try {
const result = await recurringService.createPermit(request);
expect(result).toBeTruthy();
} catch (e) {
fail(e);
}
});
test("should do a disablePermit request", async (): Promise<void> => {
const disablePermitResultSuccess: recurring.DisablePermitResult = {
pspReference: "1234567890",
status: "disabled",
};
scope.post("/disablePermit")
.reply(200, disablePermitResultSuccess);
const request: recurring.DisablePermitRequest = {
merchantAccount: process.env.ADYEN_MERCHANT!,
token: "permitToken"
};
try {
const result = await recurringService.disablePermit(request);
expect(result).toBeTruthy();
} catch (e) {
fail(e);
}
});
});

View File

@@ -0,0 +1,255 @@
import nock from "nock";
import Client from "../client";
import {createClient} from "../__mocks__/base";
import {StoredValue} from "../services";
import { storedValue } from "../typings";
let client: Client;
let storedValueService: StoredValue;
let scope: nock.Scope;
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}`);
storedValueService = new StoredValue(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("StoredValue", (): void => {
test("Should issue Givex card", async (): Promise<void> => {
scope.post("/issue")
.reply(200, {
"currentBalance": {
"currency": "EUR",
"value": 1000
},
"pspReference": "851564651069192J",
"resultCode": "Success",
"paymentMethod": {
"number": "7219627091701347",
"securityCode": "0140",
"type": "givex"
}
});
const issueRequest: storedValue.StoredValueIssueRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store": "YOUR_STORE_ID",
"paymentMethod": {
"type": "givex"
},
"amount": {
"currency": "EUR",
"value": 1000
},
"reference": "YOUR_REFERENCE"
};
const issueResponse: storedValue.StoredValueIssueResponse = await storedValueService.issue(issueRequest);
expect(issueResponse.pspReference).toEqual("851564651069192J");
});
test("Should issue virtual Fiserv card", async (): Promise<void> => {
scope.post("/issue")
.reply(200, {
"currentBalance": {
"currency": "EUR",
"value": 1000
},
"pspReference": "851564651069192J",
"resultCode": "Success",
"paymentMethod": {
"number": "7219627091701347",
"securityCode": "0140",
"type": "givex"
}
});
const issueRequest: storedValue.StoredValueIssueRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store": "YOUR_STORE_ID",
"paymentMethod": {
"type": "valuelink"
},
// "giftCardPromoCode": "1324",
"reference": "YOUR_REFERENCE"
};
const issueResponse: storedValue.StoredValueIssueResponse = await storedValueService.issue(issueRequest);
expect(issueResponse.pspReference).toEqual("851564651069192J");
});
test("Should activate card", async (): Promise<void> => {
scope.post("/changeStatus")
.reply(200, {
"currentBalance": {
"currency": "USD",
"value": 1000
},
"pspReference": "851564652149588K",
"resultCode": "Success"
});
const statusRequest: storedValue.StoredValueStatusChangeRequest = {
"status": storedValue.StoredValueStatusChangeRequest.StatusEnum.Active,
"amount": {
"currency": "USD",
"value": 1000
},
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store":"YOUR_STORE_ID",
"paymentMethod": {
"type": "svs",
"number": "6006491286999921374",
"securityCode": "1111"
},
"reference": "YOUR_REFERENCE"
};
const changeStatusResponse: storedValue.StoredValueStatusChangeResponse = await storedValueService.changeStatus(statusRequest);
expect(changeStatusResponse.pspReference).toEqual("851564652149588K");
});
test("Should deactivate card", async (): Promise<void> => {
scope.post("/changeStatus")
.reply(200, {
"currentBalance": {
"currency": "USD",
"value": 1000
},
"pspReference": "851564652149588K",
"resultCode": "Success"
});
const statusRequest: storedValue.StoredValueStatusChangeRequest = {
"status": storedValue.StoredValueStatusChangeRequest.StatusEnum.Inactive,
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store":"YOUR_STORE_ID",
"paymentMethod": {
"type": "givex",
},
"recurringDetailReference": "7219627091701347",
"shopperReference": "YOUR_UNIQUE_SHOPPER_ID_P3fW3k9D2tvXFu6l",
"shopperInteraction": storedValue.StoredValueStatusChangeRequest.ShopperInteractionEnum.Ecommerce,
"reference": "YOUR_REFERENCE"
};
const changeStatusResponse: storedValue.StoredValueStatusChangeResponse = await storedValueService.changeStatus(statusRequest);
expect(changeStatusResponse.pspReference).toEqual("851564652149588K");
});
test("Should load funds to card", async (): Promise<void> => {
scope.post("/load")
.reply(200, {
"currentBalance": {
"currency": "USD",
"value": 30000
},
"pspReference": "851564654294247B",
"resultCode": "Success"
});
const loadRequest: storedValue.StoredValueLoadRequest = {
"amount": {
"currency": "USD",
"value": 2000
},
"loadType": storedValue.StoredValueLoadRequest.LoadTypeEnum.MerchandiseReturn,
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store":"YOUR_STORE_ID",
"paymentMethod": {
"type": "svs",
"number": "6006491286999921374",
"securityCode": "1111"
},
"reference": "YOUR_REFERENCE"
};
const loadResponse: storedValue.StoredValueLoadResponse = await storedValueService.load(loadRequest);
expect(loadResponse.pspReference).toEqual("851564654294247B");
});
test("Should check remaining balance of card", async (): Promise<void> => {
scope.post("/checkBalance")
.reply(200, {
"currentBalance": {
"currency": "EUR",
"value": 5600
},
"pspReference": "881564657480267D",
"resultCode": "Success"
});
const checkBalanceRequest: storedValue.StoredValueBalanceCheckRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store":"YOUR_STORE_ID",
"paymentMethod": {
"type": "svs",
"number": "603628672882001915092",
"securityCode": "5754"
},
"reference": "YOUR_REFERENCE"
};
const checkBalanceResponse: storedValue.StoredValueBalanceCheckResponse = await storedValueService.checkBalance(checkBalanceRequest);
expect(checkBalanceResponse.pspReference).toEqual("881564657480267D");
});
test("Should transfer full value from one card to another", async (): Promise<void> => {
scope.post("/mergeBalance")
.reply(200, {
"currentBalance": {
"currency": "EUR",
"value": 5600
},
"pspReference": "881564657480267D",
"resultCode": "Success"
});
const mergeBalanceRequest: storedValue.StoredValueBalanceMergeRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"store":"YOUR_STORE_ID",
"sourcePaymentMethod": {
"number": "7777182708544835",
"securityCode": "2329"
},
"paymentMethod": {
"type": "valuelink",
"number": "8888182708544836",
"securityCode": "2330"
},
"reference": "YOUR_REFERENCE"
};
const mergeBalanceResponse: storedValue.StoredValueBalanceMergeResponse = await storedValueService.mergebalance(mergeBalanceRequest);
expect(mergeBalanceResponse.pspReference).toEqual("881564657480267D");
});
test("Should undo transaction on card", async (): Promise<void> => {
scope.post("/voidTransaction")
.reply(200, {
"currentBalance": {
"currency": "EUR",
"value": 120000
},
"pspReference": "851564673300692A",
"resultCode": "Success"
});
const voidTransactionRequest: storedValue.StoredValueVoidRequest = {
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"originalReference": "851564654294247B",
"reference": "YOUR_REFERENCE"
};
const voidTransactionResponse: storedValue.StoredValueVoidResponse = await storedValueService.voidTransaction(voidTransactionRequest);
expect(voidTransactionResponse.pspReference).toEqual("851564673300692A");
});
});

View File

@@ -1,24 +1,32 @@
import nock from "nock";
import {createMockClientFromResponse, createTerminalAPIPaymentRequest} from "../__mocks__/base";
import {asyncRes} from "../__mocks__/terminalApi/async";
import {syncRes} from "../__mocks__/terminalApi/sync";
import { createClient, createTerminalAPIPaymentRequest, createTerminalAPIRefundRequest } from "../__mocks__/base";
import { asyncRes } from "../__mocks__/terminalApi/async";
import { syncRefund, syncRes, syncResEventNotification } from "../__mocks__/terminalApi/sync";
import Client from "../client";
import TerminalCloudAPI from "../services/terminalCloudAPI";
import {Convert, TerminalApiResponse} from "../typings/terminal";
import { terminal} from "../typings";
let client: Client;
let terminalCloudAPI: TerminalCloudAPI;
let scope: nock.Scope;
beforeEach((): void => {
client = createMockClientFromResponse();
if (!nock.isActive()) {
nock.activate();
}
client = createClient(process.env.ADYEN_TERMINAL_APIKEY);
client.config.merchantAccount = process.env.ADYEN_TERMINAL_MERCHANT;
terminalCloudAPI = new TerminalCloudAPI(client);
scope = nock(`${client.config.terminalApiCloudEndpoint}`);
});
afterEach((): void => {
nock.cleanAll();
});
describe("Terminal Cloud API", (): void => {
it("should make an async payment request", async (): Promise<void> => {
test("should make an async payment request", async (): Promise<void> => {
scope.post("/async").reply(200, asyncRes);
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
@@ -28,13 +36,45 @@ describe("Terminal Cloud API", (): void => {
expect(requestResponse).toEqual("ok");
});
it("should make a sync payment request", async (): Promise<void> => {
const response = Convert.toTerminalApiResponse(syncRes);
scope.post("/sync").reply(200, response);
test("should make a sync payment request", async (): Promise<void> => {
scope.post("/sync").reply(200, syncRes);
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
const terminalAPIResponse: TerminalApiResponse = await terminalCloudAPI.sync(terminalAPIPaymentRequest);
const terminalAPIResponse: terminal.TerminalApiResponse = await terminalCloudAPI.sync(terminalAPIPaymentRequest);
expect(terminalAPIResponse).toEqual(response);
expect(terminalAPIResponse.SaleToPOIResponse?.PaymentResponse).toBeDefined();
expect(terminalAPIResponse.SaleToPOIResponse?.MessageHeader).toBeDefined();
});
test("should return event notification if response contains it", async (): Promise<void> => {
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
scope.post("/sync").reply(200, syncResEventNotification);
const terminalAPIResponse = await terminalCloudAPI.sync(terminalAPIPaymentRequest);
expect(terminalAPIResponse.SaleToPOIRequest?.EventNotification).toBeDefined();
});
test("should make an async refund request", async (): Promise<void> => {
scope.post("/sync").reply(200, syncRes);
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
const terminalAPIResponse: terminal.TerminalApiResponse = await terminalCloudAPI.sync(terminalAPIPaymentRequest);
const pOITransactionId = terminalAPIResponse.SaleToPOIResponse!.PaymentResponse!.POIData!.POITransactionID;
expect(pOITransactionId).toBeTruthy();
scope.post("/sync").reply(200, syncRefund);
const terminalAPIRefundRequest = createTerminalAPIRefundRequest(pOITransactionId);
const id = Math.floor(Math.random() * Math.floor(10000000)).toString();
terminalAPIRefundRequest.SaleToPOIRequest.MessageHeader.ServiceID = id;
const saleToAcquirerData: terminal.SaleToAcquirerData = new terminal.SaleToAcquirerData();
saleToAcquirerData.currency = "EUR";
terminalAPIRefundRequest.SaleToPOIRequest.ReversalRequest!.SaleData!.SaleToAcquirerData = saleToAcquirerData;
const terminalAPIRefundResponse = await terminalCloudAPI.sync(terminalAPIRefundRequest);
expect(terminalAPIRefundResponse.SaleToPOIResponse?.ReversalResponse?.Response.Result).toBe("Success");
}, 20000);
});

View File

@@ -1,9 +1,9 @@
import nock from "nock";
import {createMockClientFromResponse, createTerminalAPIPaymentRequest} from "../__mocks__/base";
import {localEncRes, localSecuredRes, wrongEncRes} from "../__mocks__/terminalApi/local";
import { createClient, createTerminalAPIPaymentRequest } from "../__mocks__/base";
import { localEncRes, wrongEncRes } from "../__mocks__/terminalApi/local";
import Client from "../client";
import TerminalLocalAPI from "../services/terminalLocalAPI";
import {Convert, SecurityKey, TerminalApiResponse} from "../typings/terminal";
import { terminal } from "../typings";
import NexoCryptoException from "../services/exception/nexoCryptoException";
let client: Client;
@@ -11,50 +11,58 @@ let terminalLocalAPI: TerminalLocalAPI;
let scope: nock.Scope;
beforeEach((): void => {
client = createMockClientFromResponse();
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
terminalLocalAPI = new TerminalLocalAPI(client);
scope = nock(client.config.terminalApiLocalEndpoint + ":8443/nexo");
});
describe("Terminal Local API", (): void => {
it("should make a local payment", async (): Promise<void> => {
const securedResponse = Convert.toTerminalApiSecuredResponse(localEncRes);
const response = Convert.toTerminalApiResponse(localSecuredRes);
afterEach((): void => {
nock.cleanAll();
});
scope.post("/").reply(200, securedResponse);
describe("Terminal Local API", (): void => {
test("should make a local payment", async (): Promise<void> => {
scope.post("/").reply(200, localEncRes);
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
const securityKey: SecurityKey = {
adyenCryptoVersion: 1,
keyIdentifier: "CryptoKeyIdentifier12345",
keyVersion: 1,
passphrase: "p@ssw0rd123456",
const securityKey: terminal.SecurityKey = {
AdyenCryptoVersion: 0,
KeyIdentifier: "CryptoKeyIdentifier12345",
KeyVersion: 0,
Passphrase: "p@ssw0rd123456",
};
const terminalApiResponse: TerminalApiResponse =
const terminalApiResponse: terminal.TerminalApiResponse =
await terminalLocalAPI.request(terminalAPIPaymentRequest, securityKey);
expect(response).toEqual(terminalApiResponse);
expect(terminalApiResponse.SaleToPOIResponse?.PaymentResponse).toBeDefined();
expect(terminalApiResponse.SaleToPOIResponse?.MessageHeader).toBeDefined();
});
it("should return NexoCryptoException", async (): Promise<void> => {
const securedResponse = Convert.toTerminalApiSecuredResponse(wrongEncRes);
scope.post("/").reply(200, securedResponse);
test("should return NexoCryptoException", async (): Promise<void> => {
scope.post("/").reply(200, wrongEncRes);
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
const securityKey: SecurityKey = {
adyenCryptoVersion: 1,
keyIdentifier: "CryptoKeyIdentifier12345",
keyVersion: 1,
passphrase: "p@ssw0rd123456",
const securityKey: terminal.SecurityKey = {
AdyenCryptoVersion: 0,
KeyIdentifier: "CryptoKeyIdentifier12345",
KeyVersion: 0,
Passphrase: "p@ssw0rd123456",
};
try {
await terminalLocalAPI.request(terminalAPIPaymentRequest, securityKey);
} catch (e) {
expect(e instanceof NexoCryptoException);
expect(e.message).toEqual("Hmac validation failed");
if(e instanceof NexoCryptoException) {
expect(e.message).toEqual("Hmac validation failed");
} else {
fail();
}
}
});
});

View File

@@ -0,0 +1,146 @@
import nock from "nock";
import Client from "../client";
import { createClient } from "../__mocks__/base";
import TerminalManagement from "../services/terminalManagement";
import { terminalManagement } from "../typings";
let client: Client;
let terminalManagementService: TerminalManagement;
let scope: nock.Scope;
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(`${client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}`);
terminalManagementService = new TerminalManagement(client);
});
afterEach(() => {
nock.cleanAll();
});
describe("POS Terminal Management API", (): void => {
test("Should support /assignTerminals", async (): Promise<void> => {
scope.post("/assignTerminals")
.reply(200, {
"results": {
"P400Plus-275479597": "RemoveConfigScheduled"
}
});
const request: terminalManagement.AssignTerminalsRequest = {
"companyAccount": "YOUR_COMPANY_ACCOUNT",
"terminals": [
"P400Plus-275479597"
]
};
const response: terminalManagement.AssignTerminalsResponse = await terminalManagementService.assignTerminals(request);
expect(response.results["P400Plus-275479597"]).toEqual("RemoveConfigScheduled");
});
test("Should support /findTerminal", async (): Promise<void> => {
scope.post("/findTerminal")
.reply(200, {
"companyAccount": "YOUR_COMPANY_ACCOUNT",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"merchantInventory": false,
"terminal": "P400Plus-275479597"
});
const request: terminalManagement.FindTerminalRequest = {
"terminal": "P400Plus-275479597"
};
const response: terminalManagement.FindTerminalResponse = await terminalManagementService.findTerminal(request);
expect(response.terminal).toEqual("P400Plus-275479597");
});
test("Should support /getStoresUnderAccount", async (): Promise<void> => {
scope.post("/getStoresUnderAccount")
.reply(200, {
"stores": [
{
"store": "YOUR_STORE",
"description": "YOUR_STORE",
"address": {
"city": "The City",
"countryCode": "NL",
"postalCode": "1234",
"streetAddress": "The Street"
},
"status": "Active",
"merchantAccountCode": "YOUR_MERCHANT_ACCOUNT"
}
]
});
const request: terminalManagement.GetStoresUnderAccountRequest = {
"companyAccount": "YOUR_COMPANY_ACCOUNT"
};
const response: terminalManagement.GetStoresUnderAccountResponse = await terminalManagementService.getStoresUnderAccount(request);
expect(response.stores).toHaveLength(1);
expect(response.stores![0].status).toEqual("Active");
expect(response.stores![0].address?.countryCode).toEqual("NL");
});
test("Should support /getTerminalDetails", async (): Promise<void> => {
scope.post("/getTerminalDetails")
.reply(200, {
"companyAccount": "YOUR_COMPANY_ACCOUNT",
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"merchantInventory": false,
"terminal": "P400Plus-275479597",
"deviceModel": "P400Plus",
"serialNumber": "275-479-597",
"permanentTerminalId": "75479597",
"terminalStatus": "ReAssignToInventoryPending",
"firmwareVersion": "Verifone_VOS 1.57.6",
"country": "NETHERLANDS",
"dhcpEnabled": false
});
const request: terminalManagement.GetTerminalDetailsRequest = {
"terminal": "P400Plus-275479597"
};
const response: terminalManagement.GetTerminalDetailsResponse = await terminalManagementService.getTerminalDetails(request);
expect(response.deviceModel).toBe("P400Plus");
});
test("Should support /getTerminalsUnderAccount", async (): Promise<void> => {
scope.post("/getTerminalsUnderAccount")
.reply(200, {
"companyAccount": "YOUR_COMPANY_ACCOUNT",
"merchantAccounts": [
{
"merchantAccount": "YOUR_MERCHANT_ACCOUNT",
"inStoreTerminals": [
"P400Plus-275479597"
],
"stores": [
{
"store": "YOUR_STORE",
"inStoreTerminals": [
"M400-401972715"
]
}
]
}
]
});
const request: terminalManagement.GetTerminalsUnderAccountRequest = {
"companyAccount": "YOUR_COMPANY_ACCOUNT"
};
const response: terminalManagement.GetTerminalsUnderAccountResponse = await terminalManagementService.getTerminalsUnderAccount(request);
expect(response.merchantAccounts).toHaveLength(1);
expect(response.merchantAccounts![0].stores).toHaveLength(1);
expect(response.merchantAccounts![0].stores![0].inStoreTerminals).toEqual(["M400-401972715"]);
});
});

View File

@@ -0,0 +1,68 @@
import nock from "nock";
import { createClient } from "../__mocks__/base";
import { transfersSuccess, getTransactionSuccess, listTransactionsSuccess } from "../__mocks__/transfers/responses";
import Client from "../client";
import { Transfers } from "../services";
import { transfer} from "../typings";
let client: Client;
let transferService: Transfers;
let scope: nock.Scope;
beforeEach((): void => {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
transferService = new Transfers(client);
scope = nock(`https://balanceplatform-api-test.adyen.com/btl/${Client.TRANSFERS_API_VERSION}`);
});
afterEach(() => {
nock.cleanAll();
});
describe("Transfers", (): void => {
test("should transfer fund", async (): Promise<void> => {
scope.post("/transfers")
.reply(200, transfersSuccess);
const request = new transfer.TransferInfo();
request.amount = { currency: "EUR", value: 1000};
request.category = transfer.TransferInfo.CategoryEnum.Bank;
request.counterparty = {
balanceAccountId: "123",
transferInstrumentId: "transfer_id",
bankAccount: {
accountHolder: {
fullName: "Wally Bizzle"
},
accountIdentification: {
iban: "NLRABO12321",
type: transfer.IbanAccountIdentification.TypeEnum.Iban
}
},
};
const response: transfer.Transfer = await transferService.transfers(request);
expect(response.id).toEqual("1W1UG35U8A9J5ZLG");
});
test("should get transaction", async (): Promise<void> => {
scope.get("/transactions/123")
.reply(200, getTransactionSuccess);
const response: transfer.Transaction = await transferService.getTransaction("123");
expect(response.id).toEqual("IZK7C25U7DYVX03Y");
});
test("should list transactions", async (): Promise<void> => {
scope.get("/transactions")
.reply(200, listTransactionsSuccess);
const response: transfer.TransactionSearchResponse = await transferService.listTransactions();
expect(response.data?.length).toEqual(3);
if(response.data && response.data?.length > 0) {
expect(response?.data[0]?.id).toEqual("1VVF0D5U66PIUIVP");
} else {
fail();
}
});
});

View File

@@ -11,10 +11,8 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/

View File

@@ -1,33 +1,15 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import Config from "./config";
import ClientInterface from "./typings/httpClient/clientInterface";
import HttpURLConnectionClient from "./httpClient/httpURLConnectionClient";
import { Environment } from "./typings/enums/environment";
import {version} from "../package.json";
import { version } from "../package.json";
import ClientInterface from "./httpClient/clientInterface";
type ClientParametersOverload =
| { config: Config }
| { config: Config; httpClient: ClientInterface }
| { username: string; password: string; environment: Environment}
| { username: string; password: string; environment: Environment; httpClient: ClientInterface }
| { username: string; password: string; environment: Environment; liveEndpointUrlPrefix: string }
| { username: string; password: string; environment: Environment; liveEndpointUrlPrefix: string; httpClient: ClientInterface }
| { username: string; password: string; environment: Environment; applicationName: string }
| { username: string; password: string; environment: Environment; applicationName: string; httpClient: ClientInterface }
| { username: string; password: string; environment: Environment; applicationName: string; liveEndpointUrlPrefix: string }
@@ -55,22 +37,48 @@ class Client {
public static HPP_LIVE = "https://live.adyen.com/hpp";
public static MARKETPAY_ENDPOINT_TEST = "https://cal-test.adyen.com/cal/services";
public static MARKETPAY_ENDPOINT_LIVE = "https://cal-live.adyen.com/cal/services";
public static API_VERSION = "v49";
public static RECURRING_API_VERSION = "v30";
public static MARKETPAY_ACCOUNT_API_VERSION = "v4";
public static MARKETPAY_FUND_API_VERSION = "v3";
public static MARKETPAY_NOTIFICATION_API_VERSION = "v1";
public static CHECKOUT_API_VERSION = "v69";
public static API_VERSION = "v68";
public static RECURRING_API_VERSION = "v68";
public static MARKETPAY_ACCOUNT_API_VERSION = "v6";
public static MARKETPAY_FUND_API_VERSION = "v6";
public static MARKETPAY_HOP_API_VERSION = "v6";
public static MARKETPAY_NOTIFICATION_API_VERSION = "v5";
public static MARKETPAY_NOTIFICATION_CONFIGURATION_API_VERSION = "v6";
public static PAYMENT_API_VERSION = "v68";
public static STOREDVALUE_API_VERSION = "v46";
public static TERMINAL_MANAGEMENT_API_VERSION = "v1";
public static MANAGEMENT_API_VERSION = "v1";
public static LIB_NAME = "adyen-node-api-library";
public static LIB_VERSION: string = version;
public static CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout";
public static CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout";
public static CHECKOUT_API_VERSION = "v49";
public static BIN_LOOKUP_PAL_SUFFIX = "/pal/servlet/BinLookup/";
public static BIN_LOOKUP_API_VERSION = "v40";
public static CHECKOUT_UTILITY_API_VERSION = "v1";
public static BIN_LOOKUP_API_VERSION = "v50";
public static TERMINAL_API_ENDPOINT_TEST = "https://terminal-api-test.adyen.com";
public static TERMINAL_API_ENDPOINT_LIVE = "https://terminal-api-live.adyen.com";
public static ENDPOINT_PROTOCOL = "https://";
public static PAYMENT_API_ENDPOINT_TEST = "https://pal-test.adyen.com/pal/servlet/Payment";
public static PAYMENT_API_ENDPOINT_LIVE = "https://pal-live.adyen.com/pal/servlet/Payment";
public static STOREDVALUE_API_ENDPOINT_TEST = "https://pal-test.adyen.com/pal/servlet/StoredValue";
public static STOREDVALUE_API_ENDPOINT_LIVE = "https://pal-live.adyen.com/pal/servlet/StoredValue";
public static TERMINAL_MANAGEMENT_API_ENDPOINT_TEST = "https://postfmapi-test.adyen.com/postfmapi/terminal";
public static TERMINAL_MANAGEMENT_API_ENDPOINT_LIVE = "https://postfmapi-live.adyen.com/postfmapi/terminal";
public static MANAGEMENT_API_ENDPOINT_TEST = "https://management-test.adyen.com";
public static MANAGEMENT_API_ENDPOINT_LIVE = "https://management-live.adyen.com";
public static BALANCE_PLATFORM_API_VERSION = "v2";
public static BALANCE_PLATFORM_API_ENDPOINT_TEST = "https://balanceplatform-api-test.adyen.com/bcl";
public static BALANCE_PLATFORM_API_ENDPOINT_LIVE = "https://balanceplatform-api-live.adyen.com/bcl";
public static LEGAL_ENTITY_MANAGEMENT_API_VERSION = "v2";
public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST = "https://kyc-test.adyen.com/lem";
public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE = "https://kyc-live.adyen.com/lem";
public static TRANSFERS_API_VERSION = "v3";
public static TRANSFERS_API_ENDPOINT_TEST = "https://balanceplatform-api-test.adyen.com/btl";
public static TRANSFERS_API_ENDPOINT_LIVE = "https://balanceplatform-api-live.adyen.com/btl";
public static DATA_PROTECTION_API_VERSION = "v1";
public static DATA_PROTECTION_API_ENDPOINT_TEST = "https://ca-test.adyen.com/ca/services/DataProtectionService";
public static DATA_PROTECTION_API_ENDPOINT_LIVE = "https://ca-live.adyen.com/ca/services/DataProtectionService";
private _httpClient!: ClientInterface;
public config: Config;
@@ -86,10 +94,12 @@ class Client {
const environment = options.environment || this.config.environment;
if (environment) {
this.setEnvironment(environment, options.liveEndpointUrlPrefix);
if (options.username && options.password && options.applicationName) {
if (options.username && options.password) {
this.config.username = options.username;
this.config.password = options.password;
this.config.applicationName = options.applicationName;
if(options.applicationName) {
this.config.applicationName = options.applicationName;
}
}
if (options.apiKey) {
@@ -109,10 +119,28 @@ class Client {
this.config.hppEndpoint = Client.HPP_TEST;
this.config.checkoutEndpoint = Client.CHECKOUT_ENDPOINT_TEST;
this.config.terminalApiCloudEndpoint = Client.TERMINAL_API_ENDPOINT_TEST;
this.config.paymentEndpoint = Client.PAYMENT_API_ENDPOINT_TEST;
this.config.storedValueEndpoint = Client.STOREDVALUE_API_ENDPOINT_TEST;
this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST;
this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST;
this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST;
this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST;
this.config.transfersEndpoint = Client.TRANSFERS_API_ENDPOINT_TEST;
this.config.dataProtectionEndpoint = Client.DATA_PROTECTION_API_ENDPOINT_TEST;
} else if (environment === "LIVE") {
this.config.endpoint = Client.ENDPOINT_LIVE;
this.config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_LIVE;
this.config.hppEndpoint = Client.HPP_LIVE;
this.config.terminalApiCloudEndpoint = Client.TERMINAL_API_ENDPOINT_LIVE;
this.config.paymentEndpoint = Client.PAYMENT_API_ENDPOINT_LIVE;
this.config.storedValueEndpoint = Client.STOREDVALUE_API_ENDPOINT_LIVE;
this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_LIVE;
this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_LIVE;
this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_LIVE;
this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE;
this.config.transfersEndpoint = Client.TRANSFERS_API_ENDPOINT_LIVE;
this.config.dataProtectionEndpoint = Client.DATA_PROTECTION_API_ENDPOINT_LIVE;
if (liveEndpointUrlPrefix) {
this.config.endpoint =
`${Client.ENDPOINT_PROTOCOL}${liveEndpointUrlPrefix}${Client.ENDPOINT_LIVE_SUFFIX}`;

View File

@@ -11,15 +11,11 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import { Environment } from "./typings/enums/environment";
interface ConfigConstructor {
username?: string;
password?: string;
@@ -38,6 +34,14 @@ interface ConfigConstructor {
checkoutEndpoint?: string;
terminalApiCloudEndpoint?: string;
terminalApiLocalEndpoint?: string;
paymentEndpoint?: string;
storedValueEndpoint?: string;
terminalManagementEndpoint?: string;
managementEndpoint?: string;
balancePlatformEndpoint?: string;
legalEntityManagementEndpoint?: string;
transfersEndpoint?: string;
dataProtectionEndpoint?: string;
}
class Config {
@@ -62,6 +66,15 @@ class Config {
public terminalApiCloudEndpoint?: string;
public terminalApiLocalEndpoint?: string;
public paymentEndpoint?: string;
public storedValueEndpoint?: string;
public terminalManagementEndpoint?: string;
public managementEndpoint?: string;
public balancePlatformEndpoint?: string;
public legalEntityManagementEndpoint?: string;
public transfersEndpoint?: string;
public dataProtectionEndpoint?: string;
public constructor(options: ConfigConstructor = {}) {
if (options.username) this.username = options.username;
if (options.password) this.password = options.password;
@@ -80,6 +93,14 @@ class Config {
if (options.checkoutEndpoint) this._checkoutEndpoint = options.checkoutEndpoint;
if (options.terminalApiCloudEndpoint) this.terminalApiCloudEndpoint = options.terminalApiCloudEndpoint;
if (options.terminalApiLocalEndpoint) this.terminalApiLocalEndpoint = options.terminalApiLocalEndpoint;
if (options.paymentEndpoint) this.paymentEndpoint = options.paymentEndpoint;
if (options.storedValueEndpoint) this.storedValueEndpoint = options.storedValueEndpoint;
if (options.terminalManagementEndpoint) this.terminalManagementEndpoint = options.terminalManagementEndpoint;
if (options.managementEndpoint) this.managementEndpoint = options.managementEndpoint;
if (options.balancePlatformEndpoint) this.balancePlatformEndpoint = options.balancePlatformEndpoint;
if (options.legalEntityManagementEndpoint) this.legalEntityManagementEndpoint = options.legalEntityManagementEndpoint;
if (options.transfersEndpoint) this.transfersEndpoint = options.transfersEndpoint;
if (options.dataProtectionEndpoint) this.dataProtectionEndpoint = options.dataProtectionEndpoint;
}
public set checkoutEndpoint(checkoutEndpoint: string | undefined) {

View File

@@ -0,0 +1,83 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export enum ApiConstants {
TRANSACTION_NOT_PERMITTED = "Transaction Not Permitted",
CVC_DECLINED = "CVC Declined",
RESTRICTED_CARD = "Restricted Card",
PAYMENT_DETAIL_NOT_FOUND = "803 PaymentDetail not found",
REFUSED = "Refused",
REFUSAL_REASON_RAW = "refusalReasonRaw",
PAYMENT_METHOD = "paymentMethod",
EXPIRY_DATE = "expiryDate",
CARD_BIN = "cardBin",
CARD_HOLDER_NAME = "cardHolderName",
CARD_SUMMARY = "cardSummary",
THREE_D_OFFERERED = "threeDOffered",
THREE_D_AUTHENTICATED = "threeDAuthenticated",
AVS_RESULT = "avsResult",
PAYMENT_TOKEN = "payment.token",
FRAUD_RESULT_TYPE = "fraudResultType",
FRAUD_MANUAL_REVIEW = "fraudManualReview",
AUTH_CODE = "authCode",
BOLETO_BARCODE_REFERENCE = "boletobancario.barCodeReference",
BOLETO_DATA = "boletobancario.data",
BOLETO_DUE_DATE = "boletobancario.dueDate",
BOLETO_URL = "boletobancario.url",
BOLETO_EXPIRATION_DATE = "boletobancario.expirationDate",
MULTIBANCO_ENTITY = "comprafacil.entity",
MULTIBANCO_AMOUNT = "comprafacil.amount",
MULTIBANCO_DEADLINE = "comprafacil.deadline",
MULTIBANCO_REFERENCE = "comprafacil.reference",
HMAC_SIGNATURE = "hmacSignature",
JSON = "card.encrypted.json",
BOLETO_SANTANDER = "boletobancario_santander",
NUMBER = "number",
EXPIRY_MONTH = "expiryMonth",
EXPIRY_YEAR = "expiryYear",
CVC = "cvc",
ENCRYPTED_CARD_NUMBER = "encryptedCardNumber",
ENCRYPTED_EXPIRY_MONTH = "encryptedExpiryMonth",
ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear",
ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode",
METHOD_TYPE = "type",
HOLDER_NAME = "holderName",
RECURRING_DETAIL_REFERENCE = "recurringDetailReference",
STORE_DETAILS = "storeDetails",
MD = "MD",
PAREQ = "PaReq",
TYPE_SCHEME = "scheme",
IDEMPOTENCY_KEY = "Idempotency-Key",
ACCEPT_CHARSET = "Accept-Charset",
USER_AGENT = "User-Agent",
METHOD_POST = "POST",
CONTENT_TYPE = "Content-Type",
API_KEY = "X-API-Key",
APPLICATION_JSON_TYPE = "application/json",
}

View File

@@ -11,14 +11,14 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
export const NEXO_HMAC_KEY_LENGTH = 32;
export const NEXO_CIPHER_KEY_LENGTH = 32;
export const NEXO_IV_LENGTH = 16;
export enum NexoEnum {
HMAC_KEY_LENGTH = 32,
CIPHER_KEY_LENGTH = 32,
IV_LENGTH = 16
}

View File

@@ -1,4 +1,23 @@
import {PeerCertificate} from "tls";
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import { PeerCertificate } from "tls";
export default function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined {
const { subject: { CN }} = cert;

View File

@@ -11,26 +11,24 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import Resource from "../services/resource";
import { RequestOptions } from "../typings/requestOptions";
import HttpClientException from "../httpClient/httpClientException";
import ApiException from "../services/exception/apiException";
import { IRequest } from "../typings/requestOptions";
async function getJsonResponse<T>(resource: Resource, jsonRequest: T | string, requestOptions?: RequestOptions): Promise<string>;
async function getJsonResponse<T, R>(resource: Resource, jsonRequest: T | string, requestOptions?: RequestOptions): Promise<R>;
async function getJsonResponse<T>(resource: Resource, jsonRequest: T | string, requestOptions?: IRequest.Options): Promise<string>;
async function getJsonResponse<T, R>(resource: Resource, jsonRequest: T | string, requestOptions?: IRequest.Options): Promise<R>;
async function getJsonResponse<T, R>(
resource: Resource,
jsonRequest: T | string,
requestOptions: RequestOptions = {},
requestOptions: IRequest.Options = {},
): Promise<R | string | HttpClientException | ApiException> {
const request = typeof jsonRequest === "string" ? jsonRequest : JSON.stringify(jsonRequest);
const response = await resource.request(request, requestOptions);

View File

@@ -1,4 +1,23 @@
import {ApplicationInfo} from "../typings/applicationInfo";
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import { ApplicationInfo } from "../typings/applicationInfo";
interface AppInfo { applicationInfo?: ApplicationInfo }

View File

@@ -11,22 +11,20 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import Config from "../../config";
import { RequestOptions } from "../requestOptions";
import { AgentOptions } from "https";
import HttpClientException from "../../httpClient/httpClientException";
import ApiException from "../../services/exception/apiException";
import HttpClientException from "./httpClientException";
import ApiException from "../services/exception/apiException";
import { Config } from "../index";
import { IRequest } from "../typings/requestOptions";
interface ClientInterface {
request(
endpoint: string, json: string, config: Config, isApiKeyRequired: boolean, requestOptions?: RequestOptions,
endpoint: string, json: string, config: Config, isApiKeyRequired: boolean, requestOptions?: IRequest.Options,
): Promise<string | HttpClientException | ApiException>;
post(endpoint: string, postParameters: [string, string][], config: Config): Promise<HttpClientException | string>;
proxy?: AgentOptions;

View File

@@ -11,31 +11,37 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import {IncomingHttpHeaders, IncomingMessage} from "http";
import { IncomingHttpHeaders } from "http";
interface ExceptionInterface {
message: string;
statusCode?: number;
errorCode?: string;
responseHeaders?: IncomingHttpHeaders;
responseBody?: string;
}
class HttpClientException implements Error {
public statusCode = 500;
public errorCode: string | undefined;
public responseHeaders: IncomingHttpHeaders | undefined;
public errorCode?: string;
public responseHeaders?: IncomingHttpHeaders;
public readonly message: string;
public readonly name: string;
public responseBody: IncomingMessage | undefined;
public responseBody?: string;
public constructor(message: string, statusCode?: number, errorCode?: string, responseHeaders?: IncomingHttpHeaders, responseBody?: IncomingMessage) {
public constructor(props: ExceptionInterface) {
this.name = "HttpClientException";
this.message = message;
if(errorCode) this.errorCode = errorCode;
if(statusCode) this.statusCode = statusCode;
if(responseHeaders) this.responseHeaders = responseHeaders;
if(responseBody) this.responseBody = responseBody;
this.message = props.message;
if (props.responseHeaders) this.responseHeaders = props.responseHeaders;
if (props.responseBody) this.responseBody = props.responseBody;
if (props.errorCode) this.errorCode = props.errorCode;
if (props.statusCode) this.statusCode = props.statusCode;
}
}

View File

@@ -11,37 +11,27 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import {ClientRequest, IncomingMessage} from "http";
import {Agent, AgentOptions, request as httpsRequest} from "https";
import HttpsProxyAgent from "https-proxy-agent";
import { ClientRequest, IncomingHttpHeaders, IncomingMessage } from "http";
import { Agent, AgentOptions, request as httpsRequest } from "https";
import { HttpsProxyAgent } from "https-proxy-agent";
import * as fs from "fs";
import {URL} from "url";
import { URL, URLSearchParams } from "url";
import Client from "../client";
import Config from "../config";
import {
ACCEPT_CHARSET,
API_KEY,
APPLICATION_JSON_TYPE,
CONTENT_TYPE,
IDEMPOTENCY_KEY,
METHOD_POST,
USER_AGENT,
} from "../typings/constants/apiConstants";
import { RequestOptions } from "../typings/requestOptions";
import ClientInterface from "../typings/httpClient/clientInterface";
import HttpClientException from "./httpClientException";
import checkServerIdentity from "../helpers/checkServerIdentity";
import {ApiError} from "../typings/apiError";
import { ApiError } from "../typings/apiError";
import ApiException from "../services/exception/apiException";
import ClientInterface from "./clientInterface";
import { ApiConstants } from "../constants/apiConstants";
import { IRequest } from "../typings/requestOptions";
class HttpURLConnectionClient implements ClientInterface {
private static CHARSET = "utf-8";
@@ -50,7 +40,7 @@ class HttpURLConnectionClient implements ClientInterface {
public request(
endpoint: string, json: string, config: Config, isApiRequired: boolean,
requestOptions: RequestOptions,
requestOptions: IRequest.Options,
): Promise<string | HttpClientException | ApiException> {
requestOptions.headers = {};
requestOptions.timeout = config.connectionTimeoutMillis;
@@ -66,15 +56,15 @@ class HttpURLConnectionClient implements ClientInterface {
}
if (apiKey) {
requestOptions.headers[API_KEY] = apiKey;
requestOptions.headers[ApiConstants.API_KEY] = apiKey;
} else {
const authString = `${config.username}:${config.password}`;
const authStringEnc = new Buffer(authString).toString("base64");
const authStringEnc = Buffer.from(authString, "utf8").toString("base64");
requestOptions.headers.Authorization = `Basic ${authStringEnc}`;
}
requestOptions.headers[CONTENT_TYPE] = APPLICATION_JSON_TYPE;
requestOptions.headers[ApiConstants.CONTENT_TYPE] = ApiConstants.APPLICATION_JSON_TYPE;
const httpConnection: ClientRequest = this.createRequest(endpoint, requestOptions, config.applicationName);
return this.doPostRequest(httpConnection, json);
@@ -86,7 +76,7 @@ class HttpURLConnectionClient implements ClientInterface {
return this.doPostRequest(connectionRequest, postQuery);
}
private createRequest(endpoint: string, requestOptions: RequestOptions, applicationName?: string): ClientRequest {
private createRequest(endpoint: string, requestOptions: IRequest.Options, applicationName?: string): ClientRequest {
if (!requestOptions.headers) {
requestOptions.headers = {};
}
@@ -97,8 +87,12 @@ class HttpURLConnectionClient implements ClientInterface {
requestOptions.port = url.port;
requestOptions.path = url.pathname;
if (requestOptions.params) {
requestOptions.path += "?" + new URLSearchParams(requestOptions.params).toString();
}
if (requestOptions && requestOptions.idempotencyKey) {
requestOptions.headers[IDEMPOTENCY_KEY] = requestOptions.idempotencyKey;
requestOptions.headers[ApiConstants.IDEMPOTENCY_KEY] = requestOptions.idempotencyKey;
delete requestOptions.idempotencyKey;
}
@@ -110,9 +104,13 @@ class HttpURLConnectionClient implements ClientInterface {
}
requestOptions.headers["Cache-Control"] = "no-cache";
requestOptions.method = METHOD_POST;
requestOptions.headers[ACCEPT_CHARSET] = HttpURLConnectionClient.CHARSET;
requestOptions.headers[USER_AGENT] = `${applicationName} ${Client.LIB_NAME}/${Client.LIB_VERSION}`;
if (!requestOptions.method) {
requestOptions.method = ApiConstants.METHOD_POST;
}
requestOptions.headers[ApiConstants.ACCEPT_CHARSET] = HttpURLConnectionClient.CHARSET;
requestOptions.headers[ApiConstants.USER_AGENT] = `${applicationName} ${Client.LIB_NAME}/${Client.LIB_VERSION}`;
return httpsRequest(requestOptions);
}
@@ -126,33 +124,49 @@ class HttpURLConnectionClient implements ClientInterface {
connectionRequest.flushHeaders();
connectionRequest.on("response", (res: IncomingMessage): void => {
let resData = "";
const getException = (): HttpClientException => new HttpClientException(
`HTTP Exception: ${res.statusCode}. ${res.statusMessage}`,
res.statusCode,
undefined,
res.headers,
res,
);
let exception: HttpClientException | Error = getException();
const response: { headers: IncomingHttpHeaders; body: string; statusCode: number | undefined } = {
statusCode: res.statusCode,
headers: res.headers,
body: ""
};
res.on("data", (data): void => {
if (res.statusCode && res.statusCode !== 200) {
const getException = (responseBody: string): HttpClientException => new HttpClientException({
message: `HTTP Exception: ${response.statusCode}. ${res.statusMessage}`,
statusCode: response.statusCode,
errorCode: undefined,
responseHeaders: response.headers,
responseBody,
});
let exception: HttpClientException | Error = getException(response.body.toString());
res.on("data", (chunk: string): void => {
response.body += chunk;
});
res.on("end", (): void => {
if (!res.complete) {
reject(new Error("The connection was terminated while the message was still being sent"));
}
if (res.statusCode && (res.statusCode < 200 || res.statusCode >= 300)) {
try {
const formattedData: ApiError = JSON.parse(data.toString() as string);
const formattedData: ApiError | {[key: string]: never} = JSON.parse(response.body);
const isApiError = "status" in formattedData;
const isRequestError = "errors" in formattedData;
if (isApiError) {
exception = new HttpClientException(
`HTTP Exception: ${formattedData.status}. ${res.statusMessage}: ${formattedData.message}`,
formattedData.status,
formattedData.errorCode,
res.headers,
res,
);
exception = new HttpClientException({
message: `HTTP Exception: ${formattedData.status}. ${res.statusMessage}: ${formattedData.message}`,
statusCode: formattedData.status,
errorCode: formattedData.errorCode,
responseHeaders: res.headers,
responseBody: response.body,
});
} else if (isRequestError) {
exception = new Error(data);
exception = new Error(response.body);
} else {
exception = getException(response.body);
}
} catch (e) {
reject(exception);
@@ -161,14 +175,7 @@ class HttpURLConnectionClient implements ClientInterface {
}
}
resData += data;
});
res.on("end", (): void => {
if (!res.complete) {
reject(new Error("The connection was terminated while the message was still being sent"));
}
resolve(resData);
resolve(response.body as string);
});
res.on("error", reject);
@@ -193,7 +200,8 @@ class HttpURLConnectionClient implements ClientInterface {
};
} catch (e) {
return Promise.reject(new HttpClientException(`Error loading certificate from path: ${e.message}`));
const message = e instanceof Error ? e.message: "undefined";
return Promise.reject(new HttpClientException({ message: `Error loading certificate from path: ${message}` }));
}
}

View File

@@ -11,16 +11,18 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import "./typings";
export { default as Client } from "./client";
export { default as Config } from "./config";
export * from "./services/";
export { hmacValidator } from "./utils";
export { default as HttpURLConnectionClient } from "./httpClient/httpURLConnectionClient";
export * as Types from "./typings";

View File

@@ -11,18 +11,21 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import {Convert, Notification, NotificationItem, NotificationRequestItem} from "../typings/notification";
import {
Notification,
NotificationItem,
NotificationRequestItem,
ObjectSerializer
} from "../typings/notification/models";
class NotificationRequest {
public constructor(json: Notification) {
const notification = Convert.toNotification(JSON.stringify(json));
const notification: Notification = ObjectSerializer.deserialize(json, "Notification");
this.notificationItemContainers = notification.notificationItems;
this.live = notification.live;
}

View File

@@ -11,10 +11,8 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/

View File

@@ -11,26 +11,24 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2021 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import {Cipher, createCipheriv, createDecipheriv, createHmac, randomBytes} from "crypto";
import { Cipher, createCipheriv, createDecipheriv, createHmac, randomBytes, timingSafeEqual } from "crypto";
import NexoCryptoException from "../services/exception/nexoCryptoException";
import {NEXO_IV_LENGTH} from "../typings/constants/nexoConstants";
import {
MessageHeader,
NexoDerivedKey,
SaleToPoiSecuredMessage,
SaleToPOISecuredMessage,
SecurityKey,
SecurityTrailer,
} from "../typings/terminal";
} from "../typings/terminal/models";
import InvalidSecurityKeyException from "./exception/invalidSecurityKeyException";
import NexoDerivedKeyGenerator from "./nexoDerivedKeyGenerator";
import { NexoEnum } from "../constants/nexoConstants";
enum Modes {
ENCRYPT,
@@ -42,57 +40,57 @@ class NexoCrypto {
messageHeader: MessageHeader,
saleToPoiMessageJson: string,
securityKey: SecurityKey,
): SaleToPoiSecuredMessage {
const derivedKey: NexoDerivedKey = NexoDerivedKeyGenerator.deriveKeyMaterial(securityKey.passphrase);
const saleToPoiMessageByteArray = Buffer.from(saleToPoiMessageJson, "ascii");
): SaleToPOISecuredMessage {
const derivedKey: NexoDerivedKey = NexoDerivedKeyGenerator.deriveKeyMaterial(securityKey.Passphrase);
const saleToPoiMessageByteArray = Buffer.from(saleToPoiMessageJson, "utf-8");
const ivNonce = NexoCrypto.generateRandomIvNonce();
const encryptedSaleToPoiMessage = NexoCrypto.crypt(saleToPoiMessageByteArray, derivedKey, ivNonce, Modes.ENCRYPT);
const encryptedSaleToPoiMessageHmac = NexoCrypto.hmac(saleToPoiMessageByteArray, derivedKey);
const securityTrailer: SecurityTrailer = {
adyenCryptoVersion: securityKey.adyenCryptoVersion,
hmac: encryptedSaleToPoiMessageHmac.toString("base64"),
keyIdentifier: securityKey.keyIdentifier,
keyVersion: securityKey.keyVersion,
nonce: ivNonce.toString("base64"),
AdyenCryptoVersion: securityKey.AdyenCryptoVersion,
Hmac: encryptedSaleToPoiMessageHmac.toString("base64"),
KeyIdentifier: securityKey.KeyIdentifier,
KeyVersion: securityKey.KeyVersion,
Nonce: ivNonce.toString("base64"),
};
return {
messageHeader,
nexoBlob: encryptedSaleToPoiMessage.toString("base64"),
securityTrailer: securityTrailer,
MessageHeader: messageHeader,
NexoBlob: encryptedSaleToPoiMessage.toString("base64"),
SecurityTrailer: securityTrailer,
};
}
public decrypt(saleToPoiSecureMessage: SaleToPoiSecuredMessage, securityKey: SecurityKey): string {
public decrypt(saleToPoiSecureMessage: SaleToPOISecuredMessage, securityKey: SecurityKey): string {
NexoCrypto.validateSecurityKey(securityKey);
const encryptedSaleToPoiMessageByteArray = Buffer.from(saleToPoiSecureMessage.nexoBlob, "base64");
const derivedKey = NexoDerivedKeyGenerator.deriveKeyMaterial(securityKey.passphrase);
const ivNonce = Buffer.from(saleToPoiSecureMessage.securityTrailer.nonce, "base64");
const encryptedSaleToPoiMessageByteArray = Buffer.from(saleToPoiSecureMessage.NexoBlob, "base64");
const derivedKey = NexoDerivedKeyGenerator.deriveKeyMaterial(securityKey.Passphrase);
const ivNonce = Buffer.from(saleToPoiSecureMessage.SecurityTrailer.Nonce, "base64");
const decryptedSaleToPoiMessageByteArray =
NexoCrypto.crypt(encryptedSaleToPoiMessageByteArray, derivedKey, ivNonce, Modes.DECRYPT);
const receivedHmac = Buffer.from(saleToPoiSecureMessage.securityTrailer.hmac, "base64");
const receivedHmac = Buffer.from(saleToPoiSecureMessage.SecurityTrailer.Hmac, "base64");
this.validateHmac(receivedHmac, decryptedSaleToPoiMessageByteArray, derivedKey);
return decryptedSaleToPoiMessageByteArray.toString("ascii");
return decryptedSaleToPoiMessageByteArray.toString("utf-8");
}
private static validateSecurityKey(securityKey: SecurityKey): void {
const isValid = securityKey
&& securityKey.passphrase
&& securityKey.keyIdentifier
&& securityKey.keyVersion
&& securityKey.adyenCryptoVersion;
&& securityKey.Passphrase
&& securityKey.KeyIdentifier
&& !isNaN(securityKey.KeyVersion)
&& !isNaN(securityKey.AdyenCryptoVersion);
if (!isValid) {
throw new InvalidSecurityKeyException("Invalid Security Key");
}
}
private static crypt(bytes: Buffer, dk: NexoDerivedKey, ivNonce: Buffer, mode: Modes): Buffer {
const actualIV = Buffer.alloc(NEXO_IV_LENGTH);
for (let i = 0; i < NEXO_IV_LENGTH; i++) {
const actualIV = Buffer.alloc(NexoEnum.IV_LENGTH);
for (let i = 0; i < NexoEnum.IV_LENGTH; i++) {
actualIV[i] = dk.iv[i] ^ ivNonce[i];
}
@@ -111,15 +109,13 @@ class NexoCrypto {
}
private static generateRandomIvNonce(): Buffer {
return randomBytes(NEXO_IV_LENGTH);
return randomBytes(NexoEnum.IV_LENGTH);
}
private validateHmac(receivedHmac: Buffer, decryptedMessage: Buffer, derivedKey: NexoDerivedKey): void {
const hmac = NexoCrypto.hmac(decryptedMessage, derivedKey);
const isValid = hmac.every((item, index): boolean => item === receivedHmac[index]);
if (!isValid) {
if (!timingSafeEqual(hmac, receivedHmac)) {
throw new NexoCryptoException("Hmac validation failed");
}
}

View File

@@ -11,35 +11,33 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
import {pbkdf2Sync} from "crypto";
import {NEXO_CIPHER_KEY_LENGTH, NEXO_HMAC_KEY_LENGTH, NEXO_IV_LENGTH} from "../typings/constants/nexoConstants";
import { NexoDerivedKey } from "../typings/terminal";
import { pbkdf2Sync } from "crypto";
import { NexoDerivedKey } from "../typings/terminal/models";
import { NexoEnum } from "../constants/nexoConstants";
class NexoDerivedKeyGenerator {
public static deriveKeyMaterial(passphrase: string): NexoDerivedKey {
const pass = Buffer.from(passphrase, "binary");
const salt = Buffer.from("AdyenNexoV1Salt", "binary");
const iterations = 4000;
const keylen = NEXO_CIPHER_KEY_LENGTH + NEXO_HMAC_KEY_LENGTH + NEXO_IV_LENGTH;
const keylen = NexoEnum.CIPHER_KEY_LENGTH + NexoEnum.HMAC_KEY_LENGTH + NexoEnum.IV_LENGTH;
const key = pbkdf2Sync(pass, salt, iterations, keylen * 8, "sha1");
return NexoDerivedKeyGenerator.readKeyData(key);
}
private static readKeyData(key: Buffer): NexoDerivedKey {
return {
cipherKey: key.slice(NEXO_HMAC_KEY_LENGTH, NEXO_HMAC_KEY_LENGTH + NEXO_CIPHER_KEY_LENGTH),
hmacKey: key.slice(0, NEXO_HMAC_KEY_LENGTH),
cipherKey: key.slice(NexoEnum.HMAC_KEY_LENGTH, NexoEnum.HMAC_KEY_LENGTH + NexoEnum.CIPHER_KEY_LENGTH),
hmacKey: key.slice(0, NexoEnum.HMAC_KEY_LENGTH),
iv: key.slice(
NEXO_HMAC_KEY_LENGTH + NEXO_CIPHER_KEY_LENGTH,
NEXO_CIPHER_KEY_LENGTH + NEXO_HMAC_KEY_LENGTH + NEXO_IV_LENGTH,
NexoEnum.HMAC_KEY_LENGTH + NexoEnum.CIPHER_KEY_LENGTH,
NexoEnum.CIPHER_KEY_LENGTH + NexoEnum.HMAC_KEY_LENGTH + NexoEnum.IV_LENGTH,
),
};
}

View File

@@ -11,10 +11,8 @@
* ######
* #############
* ############
*
* Adyen NodeJS API Library
*
* Copyright (c) 2019 Adyen B.V.
* Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/

View File

@@ -0,0 +1,52 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import { AccountHolder, AccountHolderInfo, ObjectSerializer, PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
import BalancePlatformResource from "../resource/balancePlaftformResource";
// @TODO PW-7013: make this change at the spec level?
export type AccountHolderUpdate = Omit<AccountHolder, "id">;
class AccountHolders extends Service {
public async create(request: AccountHolderInfo): Promise<AccountHolder> {
const resource = new BalancePlatformResource(this, "/accountHolders");
const response = await getJsonResponse<AccountHolderInfo, AccountHolder>(
resource,
request,
{ method: "POST" }
);
return ObjectSerializer.deserialize(response, "AccountHolder");
}
public async retrieve(id: string): Promise<AccountHolder> {
const resource = new BalancePlatformResource(this, `/accountHolders/${id}`);
const response = await getJsonResponse<string, AccountHolder>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "AccountHolder");
}
public async update(id: string, request: AccountHolderUpdate): Promise<AccountHolder> {
const resource = new BalancePlatformResource(this, `/accountHolders/${id}`);
const response = await getJsonResponse<AccountHolderUpdate, AccountHolder>(
resource,
request,
{ method: "PATCH" }
);
return ObjectSerializer.deserialize(response, "AccountHolder");
}
public async listBalanceAccounts(id: string, requestOptions?: IRequest.Options): Promise<PaginatedBalanceAccountsResponse> {
const resource = new BalancePlatformResource(this, `/accountHolders/${id}/balanceAccounts`);
const response = await getJsonResponse<string, PaginatedBalanceAccountsResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "PaginatedBalanceAccountsResponse");
}
}
export default AccountHolders;

View File

@@ -0,0 +1,103 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import { BalanceAccount, BalanceAccountInfo, BalanceAccountUpdateRequest, BalanceSweepConfigurationsResponse, ObjectSerializer, PaginatedPaymentInstrumentsResponse, SweepConfigurationV2 } from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
import BalancePlatformResource from "../resource/balancePlaftformResource";
// @TODO PW-7013: make this change at the spec level?
export type SweepConfigurationV2Create = Omit<SweepConfigurationV2, "id">;
export type SweepConfigurationV2Update = Partial<SweepConfigurationV2>;
class BalanceAccounts extends Service {
public async create(request: BalanceAccountInfo): Promise<BalanceAccount> {
const resource = new BalancePlatformResource(this, "/balanceAccounts");
const response = await getJsonResponse<BalanceAccountInfo, BalanceAccount>(
resource,
request,
{ method: "POST" }
);
return ObjectSerializer.deserialize(response, "BalanceAccount");
}
public async listSweeps(balanceAccountId: string, requestOptions?: IRequest.Options): Promise<BalanceSweepConfigurationsResponse> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps`);
const response = await getJsonResponse<string, BalanceSweepConfigurationsResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "BalanceSweepConfigurationsResponse");
}
public async createSweep(balanceAccountId: string, request: SweepConfigurationV2Create): Promise<SweepConfigurationV2> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps`);
const response = await getJsonResponse<SweepConfigurationV2Create, SweepConfigurationV2>(
resource,
request,
{ method: "POST" }
);
return ObjectSerializer.deserialize(response, "SweepConfigurationV2");
}
public async deleteSweep(balanceAccountId: string, sweepId: string): Promise<void> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`);
await getJsonResponse<string, string>(
resource,
"",
{ method: "DELETE" }
);
}
public async retrieveSweep(balanceAccountId: string, sweepId: string): Promise<SweepConfigurationV2> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`);
const response = await getJsonResponse<string, SweepConfigurationV2>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "SweepConfigurationV2");
}
public async updateSweep(balanceAccountId: string, sweepId: string, request: SweepConfigurationV2Update): Promise<SweepConfigurationV2> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`);
const response = await getJsonResponse<SweepConfigurationV2Update, SweepConfigurationV2>(
resource,
request,
{ method: "PATCH" }
);
return ObjectSerializer.deserialize(response, "SweepConfigurationV2");
}
public async retrieve(id: string): Promise<BalanceAccount> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${id}`);
const response = await getJsonResponse<string, BalanceAccount>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "BalanceAccount");
}
public async update(id: string, request: BalanceAccountUpdateRequest): Promise<BalanceAccount> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${id}`);
const response = await getJsonResponse<BalanceAccountUpdateRequest, BalanceAccount>(
resource,
request,
{ method: "PATCH" }
);
return ObjectSerializer.deserialize(response, "BalanceAccount");
}
public async listPaymentInstruments(id: string, requestOptions?: IRequest.Options): Promise<PaginatedPaymentInstrumentsResponse> {
const resource = new BalancePlatformResource(this, `/balanceAccounts/${id}/paymentInstruments`);
const response = await getJsonResponse<string, PaginatedPaymentInstrumentsResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "PaginatedPaymentInstrumentsResponse");
}
}
export default BalanceAccounts;

View File

@@ -0,0 +1,29 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import { BalancePlatform, ObjectSerializer, PaginatedAccountHoldersResponse } from "../../typings/balancePlatform/models";
import { IRequest } from "../../typings/requestOptions";
import BalancePlatformResource from "../resource/balancePlaftformResource";
class General extends Service {
public async retrieve(id: string): Promise<BalancePlatform> {
const resource = new BalancePlatformResource(this, `/balancePlatforms/${id}`);
const response = await getJsonResponse<string, BalancePlatform>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "BalancePlatform");
}
public async listAccountHolders(id: string, requestOptions?: IRequest.Options): Promise<PaginatedAccountHoldersResponse> {
const resource = new BalancePlatformResource(this, `/balancePlatforms/${id}/accountHolders`);
const response = await getJsonResponse<string, PaginatedAccountHoldersResponse>(
resource,
"",
{ ...requestOptions, method: "GET" }
);
return ObjectSerializer.deserialize(response, "PaginatedAccountHoldersResponse");
}
}
export default General;

View File

@@ -0,0 +1,39 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import { ObjectSerializer, PaymentInstrumentGroup, PaymentInstrumentGroupInfo, TransactionRulesResponse } from "../../typings/balancePlatform/models";
import BalancePlatformResource from "../resource/balancePlaftformResource";
class PaymentInstrumentGroups extends Service {
public async create(request: PaymentInstrumentGroupInfo): Promise<PaymentInstrumentGroup> {
const resource = new BalancePlatformResource(this, "/paymentInstrumentGroups");
const response = await getJsonResponse<PaymentInstrumentGroupInfo, PaymentInstrumentGroup>(
resource,
request,
{ method: "POST" }
);
return ObjectSerializer.deserialize(response, "PaymentInstrumentGroup");
}
public async retrieve(id: string): Promise<PaymentInstrumentGroup> {
const resource = new BalancePlatformResource(this, `/paymentInstrumentGroups/${id}`);
const response = await getJsonResponse<string, PaymentInstrumentGroup>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "PaymentInstrumentGroup");
}
public async listTransactionRules(id: string): Promise<TransactionRulesResponse> {
const resource = new BalancePlatformResource(this, `/paymentInstrumentGroups/${id}/transactionRules`);
const response = await getJsonResponse<string, TransactionRulesResponse>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
}
}
export default PaymentInstrumentGroups;

View File

@@ -0,0 +1,48 @@
import getJsonResponse from "../../helpers/getJsonResponse";
import Service from "../../service";
import { ObjectSerializer, PaymentInstrument, PaymentInstrumentInfo, PaymentInstrumentUpdateRequest, TransactionRulesResponse } from "../../typings/balancePlatform/models";
import BalancePlatformResource from "../resource/balancePlaftformResource";
class PaymentInstruments extends Service {
public async create(request: PaymentInstrumentInfo): Promise<PaymentInstrument> {
const resource = new BalancePlatformResource(this, "/paymentInstruments");
const response = await getJsonResponse<PaymentInstrumentInfo, PaymentInstrument>(
resource,
request,
{ method: "POST" }
);
return ObjectSerializer.deserialize(response, "PaymentInstrument");
}
public async retrieve(id: string): Promise<PaymentInstrument> {
const resource = new BalancePlatformResource(this, `/paymentInstruments/${id}`);
const response = await getJsonResponse<string, PaymentInstrument>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "PaymentInstrument");
}
public async update(id: string, request: PaymentInstrumentUpdateRequest): Promise<PaymentInstrument> {
const resource = new BalancePlatformResource(this, `/paymentInstruments/${id}`);
const response = await getJsonResponse<PaymentInstrumentUpdateRequest, PaymentInstrument>(
resource,
request,
{ method: "PATCH" }
);
return ObjectSerializer.deserialize(response, "PaymentInstrument");
}
public async listTransactionRules(id: string): Promise<TransactionRulesResponse> {
const resource = new BalancePlatformResource(this, `/paymentInstruments/${id}/transactionRules`);
const response = await getJsonResponse<string, TransactionRulesResponse>(
resource,
"",
{ method: "GET" }
);
return ObjectSerializer.deserialize(response, "TransactionRulesResponse");
}
}
export default PaymentInstruments;

Some files were not shown because too many files have changed in this diff Show More