Compare commits

...

447 Commits

Author SHA1 Message Date
Ricardo Ambrogi
04d4b45156 distribution folder 2020-06-05 15:18:59 +02:00
Ricardo Ambrogi
7a025a0554 Change res.body to string 2020-06-05 13:35:28 +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
Ricardo Ambrogi
5be7c38302 Release v2.1.7 2019-10-30 10:46:13 +01:00
Ricardo Ambrogi
fabd41584e Merge branch 'master' into develop 2019-10-30 08:21:38 +01:00
Ricardo Ambrogi
98a7741107 Update package.json 2019-10-30 08:20:58 +01:00
Renovate Bot
b06c2ccf1b Update dependency @types/jest to v24.0.21 (#160) 2019-10-30 08:15:45 +01:00
Ricardo Ambrogi
158843ec69 Hotfix/notification typing (#158)
* fix NotificationRequestItem casing
2019-10-29 08:08:27 +01:00
Renovate Bot
4b2f875c7a Update typescript-eslint monorepo to v2.6.0 (#159) 2019-10-29 08:08:05 +01:00
Ricardo Ambrogi
675377448a Update CODEOWNERS 2019-10-28 12:45:11 +01:00
Ricardo Ambrogi
3e1042b4ce Update CODEOWNERS 2019-10-28 12:37:25 +01:00
Renovate Bot
d9afdd2fe9 Update dependency eslint to v6.6.0 (#155) 2019-10-27 08:51:27 +01:00
Renovate Bot
cb2c7d9872 Update dependency @types/jest to v24.0.20 (#156) 2019-10-27 08:51:13 +01:00
Renovate Bot
30caa5a3c2 Update dependency @types/node to v11.15.0 (#154) 2019-10-25 09:00:55 +02:00
Renovate Bot
93f25fd687 Update dependency nock to v11.6.0 (#153) 2019-10-25 09:00:42 +02:00
Renovate Bot
5e09e336bc Update dependency https-proxy-agent to v3.0.1 (#151) 2019-10-24 08:10:28 +02:00
Renovate Bot
1dff362706 Update dependency @types/node to v11.13.23 (#152) 2019-10-24 08:10:05 +02:00
Renovate Bot
76e6904b89 Update dependency ts-loader to v6.2.1 (#150) 2019-10-23 08:33:16 +02:00
Renovate Bot
d2819aa9e2 Update dependency nock to v11.5.0 (#149) 2019-10-23 08:33:05 +02:00
Ricardo Ambrogi
409f1fd405 Release v2.1.6 2019-10-23 08:21:14 +02:00
Ricardo Ambrogi
b81e4a4e41 fix types with invalid syntax (#147) 2019-10-22 13:23:11 +02:00
Ricardo Ambrogi
5594ff573c Merge branch 'master' into develop 2019-10-22 13:17:21 +02:00
Ricardo Ambrogi
fff61d8eb7 fix types with invalid syntax (#147) 2019-10-22 13:16:37 +02:00
Ricardo Ambrogi
15eddcbac2 Merge pull request #146 from Adyen/develop
v2.1.6
2019-10-22 12:49:03 +02:00
Ricardo Ambrogi
0288acd7a3 Merge branch 'master' into develop 2019-10-22 12:42:45 +02:00
Renovate Bot
98b55e9438 Update typescript-eslint monorepo to v2.5.0 (#145) 2019-10-22 08:10:00 +02:00
Renovate Bot
fae77fc1ca Update dependency webpack to v4.41.2 (#144) 2019-10-15 15:18:03 +02:00
Ricardo Ambrogi
36f5d7e920 Create CODEOWNERS (#143)
* Create CODEOWNERS

* Update CODEOWNERS
2019-10-15 10:42:08 +02:00
Renovate Bot
ff993a2e8d Update dependency @types/jest to v24.0.19 (#142) 2019-10-15 08:10:12 +02:00
Renovate Bot
e5f60ecfed Update dependency webpack to v4.41.1 (#140) 2019-10-11 15:34:01 +02:00
Renovate Bot
0d95a73f41 Update dependency coveralls to v3.0.7 (#139) 2019-10-11 11:23:21 +02:00
Renovate Bot
5ebf1966f2 Update dependency @babel/core to v7.6.4 (#138) 2019-10-11 11:23:07 +02:00
Renovate Bot
63e6e1979c Update dependency typescript to v3.6.4 (#137) 2019-10-10 10:45:26 +02:00
Renovate Bot
7231957e37 Update babel monorepo to v7.6.3 (#136) 2019-10-09 08:07:44 +02:00
Renovate Bot
074a9d708d Update dependency release-it to v12.4.3 (#135) 2019-10-09 08:07:32 +02:00
Ricardo Ambrogi
c0d6257573 Update API types version (#134) 2019-10-09 08:07:20 +02:00
Renovate Bot
8e3cb93756 Update dependency https-proxy-agent to v3 (#133) 2019-10-08 11:42:51 +02:00
Renovate Bot
427427619d Update typescript-eslint monorepo to v2.3.3 (#132) 2019-10-08 11:42:20 +02:00
Renovate Bot
2463523aaf Update dependency nock to v11.4.0 (#131) 2019-10-08 11:42:10 +02:00
Renovate Bot
0128f5f89a Update dependency nock to v11.3.6 (#129) 2019-10-07 08:41:22 +02:00
Renovate Bot
3799f21851 Update dependency @types/node to v11.13.22 (#128) 2019-10-04 15:04:06 +02:00
Renovate Bot
1bd4829b7a Update dependency release-it to v12.4.2 (#127) 2019-10-02 09:28:45 +02:00
Renovate Bot
eb6577bb7c Update typescript-eslint monorepo to v2.3.2 (#125) 2019-10-01 14:25:30 +02:00
Renovate Bot
b7e14948ad Update dependency eslint to v6.5.1 (#126) 2019-10-01 14:25:20 +02:00
Ricardo Ambrogi
b70dc70070 Update README.md 2019-10-01 14:25:01 +02:00
Renovate Bot
97f9a5a3bc Update dependency eslint to v6.5.0 (#123) 2019-09-30 08:21:38 +02:00
Renovate Bot
68822e485a Update dependency ts-loader to v6.2.0 (#124) 2019-09-30 08:21:27 +02:00
Ricardo Ambrogi
1ff792277a Merge pull request #122 from Adyen/develop
Remove unused type
2019-09-27 09:17:58 +02:00
Ricardo Ambrogi
097a6c423b Remove unused type 2019-09-27 08:52:29 +02:00
Ricardo Ambrogi
842fe1a50b Merge pull request #118 from Adyen/develop
v2.1.5 release
2019-09-27 08:42:04 +02:00
Renovate Bot
11728b3db5 Update dependency @types/node to v11.13.21 (#120) 2019-09-25 08:31:47 +02:00
Renovate Bot
c171f7b674 Update dependency webpack to v4.41.0 (#119) 2019-09-25 08:31:39 +02:00
Renovate Bot
431297593f Update babel monorepo to v7.6.2 (#117) 2019-09-25 08:31:23 +02:00
Ricardo Ambrogi
0af9e8b589 Merge branch 'master' into develop 2019-09-24 15:15:23 +02:00
KadoBOT
71fd431c46 Release 2.1.5 2019-09-24 13:12:19 +00:00
KadoBOT
170685f6c4 change release-it run script 2019-09-24 13:10:13 +00:00
Renovate Bot
f6a1716714 Update typescript-eslint monorepo to v2.3.1 (#116) 2019-09-24 14:45:39 +02:00
Renovate Bot
b3dc185851 Pin dependency release-it to 12.4.1 (#115) 2019-09-24 14:45:26 +02:00
Ricardo Ambrogi
57e3dccb11 adds release-it (#114) 2019-09-23 16:02:03 +02:00
Renovate Bot
9a194e7752 Update dependency nock to v11.3.5 (#111) 2019-09-23 10:58:33 +02:00
Renovate Bot
7e76d1b4c8 Update dependency ts-loader to v6.1.2 (#112) 2019-09-23 08:24:14 +02:00
Hans Otto Wirtz
e5b8b70ecd Fix escaping in HMAC Validator (#113)
* Fix escaping in HMAC Validator

Previously, when using a DataToSign object with a `shipBeforeDate`, the date would be escaped incorrectly.
`2019-09-21T11:45:24.637Z` should become `2019-09-21T11\:45\:24.637Z`, but became `2019-09-21T11\:45:24.637Z` as only the first `:` would be escaped.

* Add test for hmac date string escaping
2019-09-23 08:24:00 +02:00
Renovate Bot
90f0e664b9 Update dependency ts-loader to v6.1.1 (#110) 2019-09-20 09:52:13 +02:00
Renovate Bot
f87c525cf8 Update dependency webpack-cli to v3.3.9 (#109) 2019-09-17 10:28:44 +02:00
Renovate Bot
61ef73c0d1 Update typescript-eslint monorepo to v2.3.0 (#108) 2019-09-17 10:27:17 +02:00
Renovate Bot
d89f0974a5 Update dependency eslint to v6.4.0 (#107) 2019-09-16 08:38:47 +02:00
Renovate Bot
282fc30e28 Update dependency webpack to v4.40.2 (#106) 2019-09-16 08:38:33 +02:00
Renovate Bot
8c635a7855 Update dependency webpack to v4.40.1 (#104) 2019-09-13 15:31:46 +02:00
Renovate Bot
edbdd6cc7d Update dependency nock to v11.3.4 (#105) 2019-09-13 15:31:31 +02:00
Renovate Bot
2f5408d436 Update dependency ts-loader to v6.1.0 (#103) 2019-09-12 09:50:22 +02:00
Renovate Bot
3ea6181d91 Update dependency typescript to v3.6.3 (#102) 2019-09-12 09:39:06 +02:00
Ricardo Ambrogi
5d02fc148b DRY (#101)
* DRY

* shortened logic
2019-09-11 08:26:16 +02:00
Ricardo Ambrogi
8acd312ab0 Update README.md 2019-09-10 15:24:16 +02:00
Renovate Bot
f1e3848439 Update typescript-eslint monorepo to v2.2.0 (#100) 2019-09-10 09:15:27 +02:00
Ricardo Ambrogi
dd56326255 remove unnecessary cast 2019-09-09 13:34:52 +02:00
Ricardo Ambrogi
0d6406694b Update .sonarcloud.properties 2019-09-09 13:29:42 +02:00
Ricardo Ambrogi
5742a463ae Create .sonarcloud.properties 2019-09-09 13:15:49 +02:00
Renovate Bot
7c49bc466b Update babel monorepo to v7.6.0 (#99) 2019-09-09 08:48:42 +02:00
Renovate Bot
ffa63e8204 Update dependency nock to v11.3.3 (#98) 2019-09-09 08:48:28 +02:00
Renovate Bot
91f38e0272 Update dependency webpack-cli to v3.3.8 (#97) 2019-09-09 08:48:06 +02:00
Ricardo Ambrogi
7cd93d6512 Pw 1662/payment methods v49 (#95)
* remove examples

* improve http client error handling

* add brand
2019-09-03 09:47:12 +02:00
Renovate Bot
0facfe2419 Update typescript-eslint monorepo to v2.1.0 (#96) 2019-09-03 08:39:22 +02:00
Renovate Bot
37f6085d24 Update dependency eslint to v6.3.0 (#94) 2019-09-02 10:00:05 +02:00
Renovate Bot
437c062788 Update dependency @types/node to v11.13.20 (#93) 2019-08-30 08:50:44 +02:00
Renovate Bot
780fb5bbf1 Update dependency typescript to v3.6.2 (#92) 2019-08-30 08:50:32 +02:00
Renovate Bot
db6716a85a Update dependency webpack to v4.39.3 (#91) 2019-08-28 15:44:23 +02:00
Marcos Garcia
9e6c216aae PW-1507: Add merchantName on ThreeDS2RequestData model (#90) 2019-08-26 15:36:45 +02:00
Renovate Bot
7d3b2731f6 Update dependency eslint to v6.2.2 (#89) 2019-08-26 08:45:21 +02:00
Renovate Bot
b1fd794054 Update dependency nock to v11.3.2 (#88) 2019-08-26 08:45:01 +02:00
Renovate Bot
af80b86594 Update dependency nock to v11.3.1 (#87) 2019-08-23 08:41:58 +02:00
Renovate Bot
fc5010078b Update dependency eslint to v6.2.1 (#86) 2019-08-22 10:56:20 +02:00
Ricardo Ambrogi
5385ca5bb6 Release v2.1.4 2019-08-20 11:58:25 +02:00
Renovate Bot
87f87d0181 Update dependency @types/jest to v24.0.18 (#82) 2019-08-20 11:53:08 +02:00
Renovate Bot
42b71d41a2 Update dependency nock to v11.3.0 (#83) 2019-08-20 11:52:53 +02:00
Ricardo Ambrogi
ec0e711fd8 Merge branch 'master' into develop 2019-08-20 11:52:04 +02:00
Ricardo Ambrogi
a61f51d43b Release v2.1.4 2019-08-20 11:51:16 +02:00
Ricardo Ambrogi
5b8c2b2ff8 fix exception handler in http client (#84) 2019-08-20 11:50:42 +02:00
Ricardo Ambrogi
c30f290aef Merge pull request #81 from Adyen/develop
Release v2.1.3
2019-08-19 14:16:12 +02:00
Ricardo Ambrogi
20874e0be1 Merge branch 'master' into develop 2019-08-19 14:07:22 +02:00
Ricardo Ambrogi
e397e82837 Release v2.1.3 2019-08-19 14:06:39 +02:00
Ricardo Ambrogi
b2e376f9ef improve http exception errors (#80) 2019-08-19 14:05:55 +02:00
Renovate Bot
db64524183 Update dependency eslint to v6.2.0 (#79) 2019-08-19 04:29:25 +02:00
Renovate Bot
a838223d85 Update dependency webpack-cli to v3.3.7 (#78) 2019-08-19 04:29:10 +02:00
Renovate Bot
22b3304de8 Update dependency jest to v24.9.0 (#77) 2019-08-16 15:12:57 +02:00
Ricardo Ambrogi
cbdbf2e06c Major eslint update / fix linting errors (#76) 2019-08-15 09:34:53 +02:00
Renovate Bot
ea3cdc0ea1 Update dependency webpack to v4.39.2 (#74) 2019-08-14 08:20:17 +02:00
Renovate Bot
a9a159dea1 Update dependency nock to v11.0.0 (#72) 2019-08-13 15:00:20 +02:00
Ricardo Ambrogi
72fde9df1e Add terminal certificate validation (#73) 2019-08-13 15:00:00 +02:00
Ricardo Ambrogi
0f6df1f986 Merge pull request #71 from Adyen/develop
Release v2.1.2
2019-08-09 10:42:08 +02:00
Ricardo Ambrogi
892e9c86a3 fix utils import (#70) 2019-08-09 10:12:34 +02:00
Ricardo Ambrogi
ac658aaa18 Release v2.1.2 2019-08-09 10:09:27 +02:00
957 changed files with 94337 additions and 9452 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"]
}
}
}

37
.eslintrc.js Normal file
View File

@@ -0,0 +1,37 @@
const path = require('path');
module.exports = {
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
env: {
es6: true,
node: true
},
parserOptions: {
ecmaVersion: 6,
sourceType: "module",
ecmaFeatures: {
modules: true
},
project: path.resolve(__dirname, "./tsconfig.json"),
tsconfigRootDir: __dirname
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
rules: {
quotes: ["error", "double"],
semi: ["error", "always"],
"@typescript-eslint/no-non-null-assertion": 0
},
overrides: [
{
files: ["*.ts"],
rules: {
"no-dupe-class-members": "off"
}
}
]
}

View File

@@ -1,29 +0,0 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
},
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"quotes": ["error", "double"],
"semi": ["error", "always"]
},
"overrides": [
{
"files": ["*.ts"],
"rules": {
"no-dupe-class-members": "off"
}
}
]
}

1
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1 @@
* @KadoBOT @msilvagarcia @cyattilakiss @zaiddreakh @Aleffio @rikterbeek

11
.github/stale.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
# 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
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.

50
.github/workflows/coveralls.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
on: ["push", "pull_request"]
name: Coveralls
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.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 }}

42
.github/workflows/nodejs.yml vendored Normal file
View File

@@ -0,0 +1,42 @@
name: Node.js CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 13.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
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 }}

47
.github/workflows/npmpublish.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn install --frozen-lockfile
- run: yarn run 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 }}
- run: yarn run build
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

2
.gitignore vendored
View File

@@ -11,4 +11,4 @@ node_modules
.ssh/
.viminfo
coverage/
dist/
.env

12
.release-it.json Normal file
View File

@@ -0,0 +1,12 @@
{
"git": {
"tagName": "v${version}",
"changelog": "npx auto-changelog --stdout --commit-limit false -u"
},
"github": {
"release": true
},
"hooks": {
"after:bump": "npx auto-changelog -p"
}
}

19
.sonarcloud.properties Normal file
View File

@@ -0,0 +1,19 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
# Path to sources
#sonar.sources=.
sonar.exclusions=src/__mocks__/*
sonar.exclusions=src/typings/*
#sonar.inclusions=
# Path to tests
#sonar.tests=
#sonar.test.exclusions=
#sonar.test.inclusions=
# Source encoding
#sonar.sourceEncoding=UTF-8
# Exclusions for copy-paste detection
#sonar.cpd.exclusions=

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,11 +1,14 @@
# 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)
![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=master)](https://coveralls.io/github/Adyen/adyen-node-api-library?branch=master)
[![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)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/Adyen/adyen-node-api-library.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Adyen/adyen-node-api-library/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/Adyen/adyen-node-api-library.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Adyen/adyen-node-api-library/context:javascript)
The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
## Integration
The Library supports all APIs under the following services:
@@ -21,7 +24,7 @@ The Library supports all APIs under the following services:
## Requirements
* Node 8.1.1 or higher
* Node 10 or higher
## Installation
@@ -35,7 +38,7 @@ npm install --save @adyen/api-library
## Documentation
* https://docs.adyen.com/developers/development-resources/libraries
* https://docs.adyen.com/developers/checkout/api-integration
* https://docs.adyen.com/developers/checkout
## HTTP Client Configuration
@@ -89,10 +92,14 @@ client.httpClient = httpClient;
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.
## Licence
MIT license. For more information, see the LICENSE file.
## Other
You can find examples inside the `examples` folder in this repo.

1
config.ts Normal file
View File

@@ -0,0 +1 @@
import "jest-ts-auto-mock"

2
dist/es5/main.js vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/es5/vendors~main.js vendored Normal file

File diff suppressed because one or more lines are too long

68
dist/lib-esm/package.json vendored Normal file
View File

@@ -0,0 +1,68 @@
{
"name": "@adyen/api-library",
"version": "3.2.4",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
"main": "dist/lib/src/index.js",
"types": "dist/lib/src/index.d.ts",
"module": "dist/lib-esm/src/index.js",
"engines": {
"node": ">=10"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Adyen/adyen-node-api-library.git"
},
"keywords": [
"adyen",
"api",
"nodejs"
],
"bugs": {
"url": "https://github.com/Adyen/adyen-node-api-library/issues"
},
"publishConfig": {
"access": "public"
},
"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",
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint --fix 'src/**/*.ts'",
"test": "jest",
"test:coverage": "jest --coverage",
"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"
},
"author": "Ricardo Ambrogi",
"license": "MIT",
"devDependencies": {
"@types/jest": "25.2.1",
"@types/nock": "11.1.0",
"@typescript-eslint/eslint-plugin": "2.31.0",
"@typescript-eslint/parser": "2.31.0",
"acorn": "^7.1.1",
"coveralls": "3.1.0",
"dotenv": "^8.2.0",
"eslint": "6.8.0",
"jest": "25.5.4",
"jest-ts-auto-mock": "^1.0.11",
"kind-of": "^6.0.3",
"minimist": ">=1.2.3",
"nock": "12.0.3",
"release-it": "13.5.8",
"ts-auto-mock": "^1.6.0",
"ts-jest": "25.5.0",
"ts-loader": "7.0.2",
"ttypescript": "^1.5.10",
"typescript": "3.8.3",
"webpack": "4.43.0",
"webpack-cli": "3.3.11"
},
"dependencies": {
"@types/node": "13.13.5",
"https-proxy-agent": "5.0.0"
}
}

6
dist/lib-esm/src/__mocks__/base.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
import Client from "../client";
import { TerminalApiRequest, TransactionIdentification } from "../typings/terminal";
export declare const createClient: (apiKey?: string | undefined) => Client;
export declare const createBasicAuthClient: () => Client;
export declare const createTerminalAPIPaymentRequest: () => TerminalApiRequest;
export declare const createTerminalAPIRefundRequest: (transactionIdentification: TransactionIdentification) => TerminalApiRequest;

110
dist/lib-esm/src/__mocks__/base.js vendored Normal file
View File

@@ -0,0 +1,110 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* 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.
*/
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import Client from "../client";
import Config from "../config";
import { MessageCategoryType, MessageClassType, MessageType, ReversalReasonType, } from "../typings/terminal";
export var createClient = function (apiKey) {
if (apiKey === void 0) { apiKey = process.env.ADYEN_API_KEY; }
var 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.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_TEST;
config.apiKey = apiKey;
config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_TEST;
var client = new Client({ config: config });
return client;
};
export var createBasicAuthClient = function () {
var client = new Client({
username: process.env.ADYEN_USER,
password: process.env.ADYEN_PASSWORD,
environment: "TEST",
applicationName: "adyen-node-api-library"
});
return client;
};
var id = Math.floor(Math.random() * Math.floor(10000000)).toString();
var getMessageHeader = function (_a) {
var _b = (_a === void 0 ? {} : _a).messageCategory, messageCategory = _b === void 0 ? MessageCategoryType.Payment : _b;
return ({
messageCategory: messageCategory,
messageClass: MessageClassType.Service,
messageType: MessageType.Request,
poiid: process.env.ADYEN_TERMINAL_POIID,
protocolVersion: "3.0",
saleId: id,
serviceId: id,
});
};
var timestamp = function () { return new Date().toISOString(); };
var transactionIdentification = {
timeStamp: timestamp(),
transactionId: id,
};
var saleData = {
saleTransactionId: transactionIdentification,
};
var amountsReq = {
currency: "EUR",
requestedAmount: 1,
};
var paymentTransaction = {
amountsReq: amountsReq,
};
var paymentRequest = {
paymentTransaction: paymentTransaction,
saleData: saleData,
};
var getReversalRequest = function (poiTransaction) { return ({
originalPoiTransaction: {
poiTransactionId: {
transactionId: poiTransaction.transactionId,
timeStamp: poiTransaction.timeStamp
},
},
reversalReason: ReversalReasonType.MerchantCancel
}); };
var getSaleToPOIRequest = function (messageHeader, request) { return (__assign({ messageHeader: messageHeader }, request)); };
export var createTerminalAPIPaymentRequest = function () {
var messageHeader = getMessageHeader();
var saleToPOIRequest = getSaleToPOIRequest(messageHeader, { paymentRequest: paymentRequest });
return { saleToPoiRequest: saleToPOIRequest };
};
export var createTerminalAPIRefundRequest = function (transactionIdentification) {
var messageHeader = getMessageHeader({ messageCategory: MessageCategoryType.Reversal });
var saleToPOIRequest = getSaleToPOIRequest(messageHeader, { reversalRequest: getReversalRequest(transactionIdentification) });
return { saleToPoiRequest: saleToPOIRequest };
};
//# sourceMappingURL=base.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../src/__mocks__/base.ts"],"names":[],"mappings":"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"}

View File

@@ -0,0 +1 @@
export declare const paymentMethodsSuccess: string;

View File

@@ -0,0 +1,987 @@
/* tslint:disable */
export var paymentMethodsSuccess = JSON.stringify({
paymentMethods: [
{
name: "AliPay",
type: "alipay",
},
{
name: "AliPay",
type: "alipay_wap",
},
{
details: [
{
key: "additionalData.card.encrypted.json",
type: "cardToken",
},
],
name: "Credit Card",
type: "scheme",
},
{
name: "Credit Card via AsiaPay",
type: "asiapay",
},
{
name: "BancNet",
type: "bancnet",
},
{
name: "Bank Transfer (BE)",
type: "bankTransfer_BE",
},
{
name: "Bank Transfer (DE)",
type: "bankTransfer_DE",
},
{
name: "Bank Transfer (DK)",
type: "bankTransfer_DK",
},
{
name: "Bank Transfer (GB)",
type: "bankTransfer_GB",
},
{
name: "SEPA Bank Transfer",
type: "bankTransfer_IBAN",
},
{
name: "Bank Transfer (NL)",
type: "bankTransfer_NL",
},
{
name: "Bank Transfer (NO)",
type: "bankTransfer_NO",
},
{
name: "Bank Transfer (PL)",
type: "bankTransfer_PL",
},
{
name: "Bank Transfer (SE)",
type: "bankTransfer_SE",
},
{
name: "Russian Bank Transfer",
type: "bank_ru",
},
{
details: [
{
key: "additionalData.card.encrypted.json",
type: "cardToken",
},
],
name: "Bancontact card",
type: "bcmc",
},
{
name: "Boleto Bancario via HSBC",
type: "boletobancario_hsbc",
},
{
name: "Boleto Bancario via Itau",
type: "boletobancario_itau",
},
{
name: "Boleto Bancario via Santander",
type: "boletobancario_santander",
},
{
name: "c_cash",
type: "c_cash",
},
{
name: "CashU",
type: "cashu",
},
{
name: "Paiement en 3 fois par Cartes Bancaires",
type: "cofinoga_3xcb",
},
{
name: "DineroMail",
type: "dineromail",
},
{
name: "Online bank transfer.",
type: "directEbanking",
},
{
name: "Direct Debit Brazil - Banco do Brazil",
type: "directdebit_BR_bancodobrasil",
},
{
name: "Direct Debit Brazil - Bradesco",
type: "directdebit_BR_bradesco",
},
{
name: "Direct Debit Brazil - Caixa Economica Federal",
type: "directdebit_BR_caixa",
},
{
name: "Direct Debit Brazil - HSBC",
type: "directdebit_BR_hsbc",
},
{
name: "Direct Debit Brazil - Itau",
type: "directdebit_BR_itau",
},
{
name: "Direct Debit Brazil - Santander",
type: "directdebit_BR_santander",
},
{
name: "Eenmalige machtiging",
type: "directdebit_NL",
},
{
details: [
{
items: [
{
id: "11",
name: "Bank transfer / postal",
},
{
id: "74",
name: "Banki Spółdzielcze",
},
{
id: "73",
name: "BLIK",
},
{
id: "32",
name: "BNP Paribas",
},
{
id: "16",
name: "Credit Agricole",
},
{
id: "83",
name: "EnveloBank",
},
{
id: "55",
name: "erata - dotpay installment",
},
{
id: "93",
name: "eSKOK",
},
{
id: "56",
name: "eurobank płatności online",
},
{
id: "76",
name: "Getin Bank PBL",
},
{
id: "81",
name: "Idea Cloud",
},
{
id: "7",
name: "ING Corporate customers",
},
{
id: "35",
name: "Kantor Polski",
},
{
id: "44",
name: "Millennium - Płatności Internetowe",
},
{
id: "10",
name: "Millennium Corporate customers",
},
{
id: "68",
name: "mRaty",
},
{
id: "1",
name: "mTransfer",
},
{
id: "80",
name: "Noble Pay",
},
{
id: "50",
name: "Pay Way Toyota Bank",
},
{
id: "45",
name: "Pay with Alior Bank",
},
{
id: "65",
name: "Paylink Idea Bank",
},
{
id: "36",
name: "Pekao24Przelew",
},
{
id: "70",
name: "Pocztowy24",
},
{
id: "6",
name: "Przelew24",
},
{
id: "46",
name: "Płacę z Citi Handlowy",
},
{
id: "38",
name: "Płacę z ING",
},
{
id: "2",
name: "Płacę z Inteligo",
},
{
id: "4",
name: "Płacę z iPKO",
},
{
id: "72",
name: "Płacę z Orange",
},
{
id: "66",
name: "Płacę z PBS",
},
{
id: "75",
name: "Płacę z Plus Bank",
},
{
id: "51",
name: "Płać z BOŚ",
},
{
id: "48",
name: "R-Przelew",
},
{
id: "88",
name: "Raiffeisen",
},
{
id: "52",
name: "SkyCash",
},
{
id: "58",
name: "Szybkie Platnosci Internetowe z Deutsche Bank PBC",
},
{
id: "60",
name: "T-Mobile usługi bankowe",
},
{
id: "21",
name: "VIA - Moje Rachunki",
},
{
id: "84",
name: "Volkswagen Bank direct",
},
{
id: "31",
name: "Zaplac w Zabce i we Freshmarket",
},
{
id: "24",
name: "mPay",
},
],
key: "issuer",
type: "select",
},
],
name: "Local Polish Payment Methods",
type: "dotpay",
},
{
name: "Finnish E-Banking",
type: "ebanking_FI",
},
{
name: "Lastschrift (ELV)",
type: "elv",
},
{
details: [
{
items: [
{
id: "550",
name: "?eská spo?itelna",
},
{
id: "231",
name: "POP Pankki",
},
{
id: "551",
name: "Kb",
},
{
id: "232",
name: "Aktia",
},
{
id: "552",
name: "Raiffeisen",
},
{
id: "750",
name: "Swedbank",
},
{
id: "211",
name: "Nordea",
},
{
id: "233",
name: "Säästöpankki",
},
{
id: "553",
name: "Csob",
},
{
id: "751",
name: "SEB",
},
{
id: "234",
name: "S-Pankki",
},
{
id: "554",
name: "Moneta",
},
{
id: "752",
name: "Nordea",
},
{
id: "235",
name: "OmaSP",
},
{
id: "213",
name: "Op-Pohjola",
},
{
id: "555",
name: "UniCredit",
},
{
id: "753",
name: "LHV",
},
{
id: "556",
name: "Fio",
},
{
id: "557",
name: "mBank",
},
{
id: "216",
name: "Handelsbanken",
},
{
id: "260",
name: "Länsförsäkringar",
},
{
id: "240",
name: "BankDeposit",
},
{
id: "265",
name: "Sparbanken",
},
{
id: "640",
name: "BankDeposit",
},
{
id: "200",
name: "Ålandsbanken",
},
{
id: "720",
name: "Swedbank",
},
{
id: "940",
name: "Swedbank",
},
{
id: "204",
name: "Danske Bank",
},
{
id: "721",
name: "SEB",
},
{
id: "941",
name: "SEB",
},
{
id: "722",
name: "DNB",
},
{
id: "942",
name: "Citadele",
},
{
id: "205",
name: "Handelsbanken",
},
{
id: "723",
name: "Šiaulių Bankas",
},
{
id: "943",
name: "DNB",
},
{
id: "206",
name: "Nordea",
},
{
id: "724",
name: "Nordea",
},
{
id: "207",
name: "SEB",
},
{
id: "208",
name: "Skandiabanken",
},
{
id: "209",
name: "Swedbank",
},
],
key: "issuer",
type: "select",
},
],
name: "Bank Payment",
type: "entercash",
},
{
name: "Nationale Entertainment Card",
type: "entertainmentcard",
},
{
name: "Gall & Gall",
type: "gallgall",
},
{
name: "Generic GiftCard",
type: "genericgiftcard",
},
{
details: [
{
key: "bic",
type: "text",
},
],
name: "GiroPay",
type: "giropay",
},
{
name: "Globe GCash",
type: "globegcash",
},
{
name: "Hunkemoller Lingerie Card",
type: "hmlingerie",
},
{
details: [
{
items: [
{
id: "1121",
name: "Test Issuer",
},
{
id: "1154",
name: "Test Issuer 5",
},
{
id: "1153",
name: "Test Issuer 4",
},
{
id: "1152",
name: "Test Issuer 3",
},
{
id: "1151",
name: "Test Issuer 2",
},
{
id: "1162",
name: "Test Issuer Cancelled",
},
{
id: "1161",
name: "Test Issuer Pending",
},
{
id: "1160",
name: "Test Issuer Refused",
},
{
id: "1159",
name: "Test Issuer 10",
},
{
id: "1158",
name: "Test Issuer 9",
},
{
id: "1157",
name: "Test Issuer 8",
},
{
id: "1156",
name: "Test Issuer 7",
},
{
id: "1155",
name: "Test Issuer 6",
},
],
key: "idealIssuer",
type: "select",
},
],
name: "iDEAL",
type: "ideal",
},
{
name: "Phone Payment",
type: "ivr",
},
{
name: "Landline phone",
type: "ivrLandline",
},
{
name: "Mobile phone",
type: "ivrMobile",
},
{
details: [
{
details: [
{
key: "firstName",
type: "text",
},
{
key: "infix",
optional: "true",
type: "text",
},
{
key: "lastName",
type: "text",
},
{
items: [
{
id: "M",
name: "MALE",
},
{
id: "F",
name: "FEMALE",
},
],
key: "gender",
type: "radio",
},
{
key: "dateOfBirth",
type: "date",
},
{
key: "telephoneNumber",
type: "tel",
},
{
key: "socialSecurityNumber",
optional: "true",
type: "text",
},
{
key: "shopperEmail",
type: "emailAddress",
},
],
key: "personalDetails",
type: "fieldSet",
},
{
details: [
{
key: "street",
type: "text",
},
{
key: "houseNumberOrName",
type: "text",
},
{
key: "city",
type: "text",
},
{
key: "postalCode",
type: "text",
},
{
key: "stateOrProvince",
optional: "true",
type: "text",
},
{
items: [
{
id: "SE",
name: "SWEDEN",
},
{
id: "NO",
name: "NORWAY",
},
{
id: "FI",
name: "FINLAND",
},
{
id: "DK",
name: "DENMARK",
},
{
id: "AT",
name: "AUSTRIA",
},
{
id: "DE",
name: "GERMANY",
},
{
id: "NL",
name: "NETHERLANDS",
},
],
key: "country",
type: "select",
},
],
key: "billingAddress",
type: "address",
},
{
key: "separateDeliveryAddress",
optional: "true",
type: "boolean",
value: "false",
},
{
details: [
{
key: "street",
type: "text",
},
{
key: "houseNumberOrName",
type: "text",
},
{
key: "city",
type: "text",
},
{
key: "postalCode",
type: "text",
},
{
key: "stateOrProvince",
optional: "true",
type: "text",
},
{
items: [
{
id: "SE",
name: "SWEDEN",
},
{
id: "NO",
name: "NORWAY",
},
{
id: "FI",
name: "FINLAND",
},
{
id: "DK",
name: "DENMARK",
},
{
id: "AT",
name: "AUSTRIA",
},
{
id: "DE",
name: "GERMANY",
},
{
id: "NL",
name: "NETHERLANDS",
},
],
key: "country",
type: "select",
},
],
key: "deliveryAddress",
optional: "true",
type: "address",
},
],
name: "Pay later with Klarna.",
type: "klarna",
},
{
name: "Multibanco",
type: "multibanco",
},
{
name: "Russian Online Payments",
type: "online_RU",
},
{
name: "Invoice",
type: "openinvoice",
},
{
name: "PayPal",
type: "paypal",
},
{
name: "Paysafecard",
type: "paysafecard",
},
{
name: "POLi",
type: "poli",
},
{
details: [
{
items: [
{
id: "+7",
name: "RU",
},
{
id: "+9955",
name: "GE",
},
{
id: "+507",
name: "PA",
},
{
id: "+44",
name: "GB",
},
{
id: "+992",
name: "TJ",
},
{
id: "+370",
name: "LT",
},
{
id: "+972",
name: "IL",
},
{
id: "+996",
name: "KG",
},
{
id: "+380",
name: "UA",
},
{
id: "+84",
name: "VN",
},
{
id: "+90",
name: "TR",
},
{
id: "+994",
name: "AZ",
},
{
id: "+374",
name: "AM",
},
{
id: "+371",
name: "LV",
},
{
id: "+91",
name: "IN",
},
{
id: "+66",
name: "TH",
},
{
id: "+373",
name: "MD",
},
{
id: "+1",
name: "US",
},
{
id: "+81",
name: "JP",
},
{
id: "+998",
name: "UZ",
},
{
id: "+77",
name: "KZ",
},
{
id: "+375",
name: "BY",
},
{
id: "+372",
name: "EE",
},
{
id: "+40",
name: "RO",
},
{
id: "+82",
name: "KR",
},
],
key: "qiwiwallet.telephoneNumberPrefix",
type: "select",
},
{
key: "qiwiwallet.telephoneNumber",
type: "text",
},
],
name: "Qiwi Wallet",
type: "qiwiwallet",
},
{
name: "RatePay Invoice",
type: "ratepay",
},
{
name: "SafetyPay",
type: "safetypay",
},
{
details: [
{
key: "sepa.ownerName",
type: "text",
},
{
key: "sepa.ibanNumber",
type: "text",
},
],
name: "SEPA Direct Debit",
type: "sepadirectdebit",
},
{
name: "Premium SMS",
type: "sms",
},
{
name: "TenPay",
type: "tenpay",
},
{
name: "Russian Cash Terminal Payments",
type: "terminal_RU",
},
{
name: "Trustly Direct bank e-Payments",
type: "trustly",
},
{
name: "Online Banking by Trustpay",
type: "trustpay",
},
{
name: "UnionPay",
type: "unionpay",
},
{
name: "Russian Wallet Payments",
type: "wallet_RU",
},
{
name: "Webshop Giftcard",
type: "webshopgiftcard",
},
{
name: "Your Gift",
type: "yourgift",
},
],
});
//# sourceMappingURL=paymentMethodsSuccess.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,6 @@
export declare const paymentSessionError: {
statusCode: number;
errorCode: string;
message: string;
errorType: string;
};

View File

@@ -0,0 +1,8 @@
/* tslint:disable */
export var paymentSessionError = {
statusCode: 422,
errorCode: "14_012",
message: "The provided SDK token could not be parsed.",
errorType: "validation",
};
//# sourceMappingURL=paymentSessionErrorInvalidData422.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentSessionErrorInvalidData422.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentSessionErrorInvalidData422.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,mBAAmB,GAAG;IAC/B,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,6CAA6C;IACtD,SAAS,EAAE,YAAY;CAC1B,CAAC"}

View File

@@ -0,0 +1,3 @@
export declare const paymentSessionSuccess: {
paymentSession: string;
};

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentSessionSucess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentSessionSucess.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,qBAAqB,GAAG;IACjC,cAAc,EAAE,k+YAAk+Y;CACr/Y,CAAC"}

View File

@@ -0,0 +1,6 @@
export declare const paymentMethodsError: {
errorCode: string;
errorType: string;
statusMessage: string;
statusCode: number;
};

View File

@@ -0,0 +1,7 @@
export var paymentMethodsError = {
errorCode: "901",
errorType: "security",
statusMessage: "Invalid Merchant Account",
statusCode: 403,
};
//# sourceMappingURL=paymentmethodsErrorForbidden403.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentmethodsErrorForbidden403.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentmethodsErrorForbidden403.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,mBAAmB,GAAG;IAC/B,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,UAAU;IACrB,aAAa,EAAE,0BAA0B;IACzC,UAAU,EAAE,GAAG;CAClB,CAAC"}

View File

@@ -0,0 +1,6 @@
export declare const paymentDetailsError: {
statusCode: number;
errorCode: string;
message: string;
errorType: string;
};

View File

@@ -0,0 +1,8 @@
/* tslint:disable */
export var paymentDetailsError = {
statusCode: 422,
errorCode: "101",
message: "Invalid card number",
errorType: "validation",
};
//# sourceMappingURL=paymentsDetailsErrorInvalidData422.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsDetailsErrorInvalidData422.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsDetailsErrorInvalidData422.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,mBAAmB,GAAG;IAC/B,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,YAAY;CAC1B,CAAC"}

View File

@@ -0,0 +1 @@
export declare const paymentDetailsSuccess: string;

View File

@@ -0,0 +1,10 @@
/* tslint:disable */
export var paymentDetailsSuccess = JSON.stringify({
pspReference: "8515232733321252",
resultCode: "Authorised",
additionalData: {
liabilityShift: "true",
refusalReasonRaw: "AUTHORISED",
},
});
//# sourceMappingURL=paymentsDetailsSuccess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsDetailsSuccess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsDetailsSuccess.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,CAAC;IAChD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,YAAY;IACxB,cAAc,EAAE;QACZ,cAAc,EAAE,MAAM;QACtB,gBAAgB,EAAE,YAAY;KACjC;CACJ,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const paymentsError: string;

View File

@@ -0,0 +1,8 @@
/* tslint:disable */
export var paymentsError = JSON.stringify({
statusCode: 422,
errorCode: "130",
statusMessage: "Reference Missing",
errorType: "validation",
});
//# sourceMappingURL=paymentsErrorInvalidData422.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsErrorInvalidData422.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsErrorInvalidData422.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC;IACxC,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,KAAK;IAChB,aAAa,EAAE,mBAAmB;IAClC,SAAS,EAAE,YAAY;CAC1B,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const paymentsResultError: string;

View File

@@ -0,0 +1,8 @@
/* tslint:disable */
export var paymentsResultError = JSON.stringify({
statusCode: 422,
errorCode: "14_018",
message: "Invalid payload provided",
errorType: "validation",
});
//# sourceMappingURL=paymentsResultErrorInvalidDataPayload422.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsResultErrorInvalidDataPayload422.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsResultErrorInvalidDataPayload422.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC;IAC9C,UAAU,EAAE,GAAG;IACf,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,0BAA0B;IACnC,SAAS,EAAE,YAAY;CAC1B,CAAC,CAAC"}

View File

@@ -0,0 +1,14 @@
export declare const paymentsResultMultibancoSuccess: {
additionalData: {
cvcResult: string;
avsResult: string;
"comprafacil.deadline": string;
"comprafacil.reference": string;
paymentMethod: string;
paymentMethodVariant: string;
"comprafacil.entity": string;
"comprafacil.amount": string;
};
pspReference: string;
resultCode: string;
};

View File

@@ -0,0 +1,16 @@
/* tslint:disable */
export var paymentsResultMultibancoSuccess = {
additionalData: {
"cvcResult": "0",
"avsResult": "0",
"comprafacil.deadline": "3",
"comprafacil.reference": "123 123 123",
"paymentMethod": "multibanco",
"paymentMethodVariant": "multibanco",
"comprafacil.entity": "12345",
"comprafacil.amount": "101.01",
},
pspReference: "8111111111111111",
resultCode: "Received",
};
//# sourceMappingURL=paymentsResultMultibancoSuccess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsResultMultibancoSuccess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsResultMultibancoSuccess.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,+BAA+B,GAAG;IAC3C,cAAc,EAAE;QACZ,WAAW,EAAE,GAAG;QAChB,WAAW,EAAE,GAAG;QAChB,sBAAsB,EAAE,GAAG;QAC3B,uBAAuB,EAAE,aAAa;QACtC,eAAe,EAAE,YAAY;QAC7B,sBAAsB,EAAE,YAAY;QACpC,oBAAoB,EAAE,OAAO;QAC7B,oBAAoB,EAAE,QAAQ;KACjC;IACD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,UAAU;CACzB,CAAC"}

View File

@@ -0,0 +1 @@
export declare const paymentsResultSuccess: string;

View File

@@ -0,0 +1,6 @@
/* tslint:disable */
export var paymentsResultSuccess = JSON.stringify({
pspReference: "8535253563623704",
resultCode: "Authorised",
});
//# sourceMappingURL=paymentsResultSucess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsResultSucess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsResultSucess.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,qBAAqB,GAAG,IAAI,CAAC,SAAS,CAAC;IAChD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,YAAY;CAC3B,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const paymentsSuccess: string;

View File

@@ -0,0 +1,100 @@
/* tslint:disable */
export var paymentsSuccess = JSON.stringify({
additionalData: {
expiryDate: "8/2018",
fraudResultType: "GREEN",
cardBin: "411111",
cardSummary: "1111",
fraudManualReview: "false",
aliasType: "Default",
alias: "H167852639363479",
cardPaymentMethod: "visa",
cardIssuingCountry: "NL",
"recurring.recurringDetailReference": "8415883203388055",
},
fraudResult: {
accountScore: 0,
results: [
{
FraudCheckResult: {
accountScore: 0,
checkId: 2,
name: "CardChunkUsage",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 3,
name: "PaymentDetailUsage",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 4,
name: "HolderNameUsage",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 1,
name: "PaymentDetailRefCheck",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 13,
name: "IssuerRefCheck",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 15,
name: "IssuingCountryReferral",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 27,
name: "PmOwnerRefCheck",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 10,
name: "HolderNameContainsNumber",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 11,
name: "HolderNameIsOneWord",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 82,
name: "CustomFieldCheck",
},
},
{
FraudCheckResult: {
accountScore: 0,
checkId: 25,
name: "CVCAuthResultCheck",
},
},
],
},
pspReference: "8535296650153317",
resultCode: "Authorised",
});
//# sourceMappingURL=paymentsSuccess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"paymentsSuccess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkout/paymentsSuccess.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,MAAM,CAAC,IAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC;IAC1C,cAAc,EAAE;QACZ,UAAU,EAAE,QAAQ;QACpB,eAAe,EAAE,OAAO;QACxB,OAAO,EAAE,QAAQ;QACjB,WAAW,EAAE,MAAM;QACnB,iBAAiB,EAAE,OAAO;QAC1B,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,kBAAkB;QACzB,iBAAiB,EAAE,MAAM;QACzB,kBAAkB,EAAE,IAAI;QACxB,oCAAoC,EAAE,kBAAkB;KAC3D;IACD,WAAW,EAAE;QACT,YAAY,EAAE,CAAC;QACf,OAAO,EAAE;YACL;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,CAAC;oBACV,IAAI,EAAE,gBAAgB;iBACzB;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,CAAC;oBACV,IAAI,EAAE,oBAAoB;iBAC7B;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,CAAC;oBACV,IAAI,EAAE,iBAAiB;iBAC1B;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,CAAC;oBACV,IAAI,EAAE,uBAAuB;iBAChC;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,gBAAgB;iBACzB;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,wBAAwB;iBACjC;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,iBAAiB;iBAC1B;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,0BAA0B;iBACnC;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,qBAAqB;iBAC9B;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,kBAAkB;iBAC3B;aACJ;YACD;gBACI,gBAAgB,EAAE;oBACd,YAAY,EAAE,CAAC;oBACf,OAAO,EAAE,EAAE;oBACX,IAAI,EAAE,oBAAoB;iBAC7B;aACJ;SACJ;KACJ;IACD,YAAY,EAAE,kBAAkB;IAChC,UAAU,EAAE,YAAY;CAC3B,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export declare const originKeysSuccess: string;

View File

@@ -0,0 +1,8 @@
export var 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",
},
});
//# sourceMappingURL=originkeysSuccess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"originkeysSuccess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/checkoutUtility/originkeysSuccess.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,IAAI,CAAC,SAAS,CAAC;IAC5C,UAAU,EAAE;QACR,8BAA8B,EAAE,4GAA4G;QAC5I,8BAA8B,EAAE,4GAA4G;QAC5I,8BAA8B,EAAE,4GAA4G;KAC/I;CACJ,CAAC,CAAC"}

View File

@@ -0,0 +1,36 @@
{
"live": "false",
"notificationItems": [
{
"NotificationRequestItem": {
"additionalData": {
"expiryDate": "12\/2012",
" NAME1 ": "VALUE1",
"authCode": "1234",
"cardSummary": "7777",
"totalFraudScore": "10",
"hmacSignature": "OzDjCMZIsdtDqrZ+cl\/FWC+WdESrorctXTzAzW33dXI=",
"NAME2": " VALUE2 ",
"fraudCheck-6-ShopperIpUsage": "10"
},
"amount": {
"currency": "EUR",
"value": 10100
},
"eventCode": "AUTHORISATION",
"eventDate": "2017-01-19T16:42:03+01:00",
"merchantAccountCode": "MagentoMerchantTest2",
"merchantReference": "8313842560770001",
"operations": [
"CANCEL",
"CAPTURE",
"REFUND"
],
"paymentMethod": "visa",
"pspReference": "123456789",
"reason": "1234:7777:12\/2012",
"success": "true"
}
}
]
}

View File

@@ -0,0 +1,25 @@
{
"live": "false",
"notificationItems": [
{
"NotificationRequestItem": {
"additionalData": {
"hmacSignature": "KujHNqpyCAMdGefj7lfQ8AeD0Jke9Zs2bVAqScQDWi4="
},
"amount": {
"currency": "USD",
"value": 23623
},
"eventCode": "CAPTURE",
"eventDate": "2017-01-25T18:08:19+01:00",
"merchantAccountCode": "MagentoMerchantTest2",
"merchantReference": "00000001",
"originalReference": "ORIGINAL_PSP",
"paymentMethod": "visa",
"pspReference": "PSP_REFERENCE",
"reason": "Insufficient balance on payment",
"success": "false"
}
}
]
}

View File

@@ -0,0 +1,25 @@
{
"live": "false",
"notificationItems": [
{
"NotificationRequestItem": {
"additionalData": {
"hmacSignature": "qvS6I3Gdi1jx+jSh7IopAgcHtMoxvXlNL7DYQ+j1hd0="
},
"amount": {
"currency": "USD",
"value": 23623
},
"eventCode": "CAPTURE",
"eventDate": "2017-01-25T18:08:19+01:00",
"merchantAccountCode": "MagentoMerchantTest2",
"merchantReference": "00000001",
"originalReference": "ORIGINAL_PSP",
"paymentMethod": "visa",
"pspReference": "PSP_REFERENCE",
"reason": "",
"success": "true"
}
}
]
}

View File

@@ -0,0 +1,25 @@
{
"live": "false",
"notificationItems": [
{
"NotificationRequestItem": {
"additionalData": {
"hmacSignature": "HZXziBYopfDIzDhk49iC\/\/yCfxmy\/z0xWuvvTxFNUSA="
},
"amount": {
"currency": "EUR",
"value": 1500
},
"eventCode": "REFUND",
"eventDate": "2017-02-17T11:04:07+01:00",
"merchantAccountCode": "MagentoMerchantTest2",
"merchantReference": "payment-2017-1-17-11-refund",
"originalReference": "ORIGINAL_PSP",
"paymentMethod": "visa",
"pspReference": "PSP_REFERENCE",
"reason": "Insufficient balance on payment",
"success": "false"
}
}
]
}

View File

@@ -0,0 +1,25 @@
{
"live": "false",
"notificationItems": [
{
"NotificationRequestItem": {
"additionalData": {
"hmacSignature": "KJFhURWP8Pv9m8k+7NGHNJAupBj6X6J\/VWAikFxeWhA="
},
"amount": {
"currency": "EUR",
"value": 1500
},
"eventCode": "REFUND",
"eventDate": "2017-02-17T11:11:44+01:00",
"merchantAccountCode": "MagentoMerchantTest2",
"merchantReference": "payment-2017-1-17-11-refund",
"originalReference": "ORIGINAL_PSP",
"paymentMethod": "visa",
"pspReference": "PSP_REFERENCE",
"reason": "",
"success": "true"
}
}
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"documentContent.js","sourceRoot":"","sources":["../../../../../src/__mocks__/platforms/documentContent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,eAAe,GAAG,636LAA636L,CAAA"}

View File

@@ -0,0 +1,3 @@
export declare const disableSuccess: {
response: string;
};

View File

@@ -0,0 +1,4 @@
export var disableSuccess = {
response: "[detail-successfully-disabled]",
};
//# sourceMappingURL=disableSuccess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"disableSuccess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/recurring/disableSuccess.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG;IAC1B,QAAQ,EAAE,gCAAgC;CAC7C,CAAC"}

View File

@@ -0,0 +1,51 @@
export declare const listRecurringDetailsSuccess: {
creationDate: string;
details: ({
additionalData: {
cardBin: string;
};
alias: string;
aliasType: string;
card: {
expiryMonth: string;
expiryYear: string;
holderName: string;
number: string;
};
contractTypes: string[];
creationDate: string;
firstPspReference: string;
paymentMethodVariant: string;
recurringDetailReference: string;
variant: string;
billingAddress?: undefined;
tokenDetails?: undefined;
} | {
billingAddress: {
city: string;
country: string;
houseNumberOrName: string;
postalCode: string;
stateOrProvince: string;
street: string;
};
contractTypes: string[];
creationDate: string;
firstPspReference: string;
paymentMethodVariant: string;
recurringDetailReference: string;
tokenDetails: {
tokenData: {
BillingAgreementId: string;
EmailId: string;
"PayPal.PayerId": string;
};
tokenDataType: string;
};
variant: string;
additionalData?: undefined;
alias?: undefined;
aliasType?: undefined;
card?: undefined;
})[];
};

View File

@@ -0,0 +1,53 @@
export var listRecurringDetailsSuccess = {
creationDate: "2017-03-01T10:53:11.000",
details: [
{
additionalData: {
cardBin: "411111",
},
alias: "cardAlias",
aliasType: "Default",
card: {
expiryMonth: "8",
expiryYear: "2018",
holderName: "Holder",
number: "1111",
},
contractTypes: [
"ONECLICK",
],
creationDate: "2017-03-01T10:53:11.000",
firstPspReference: "8524888762135795",
paymentMethodVariant: "visa",
recurringDetailReference: "recurringReference",
variant: "visa",
},
{
billingAddress: {
city: "City",
country: "NL",
houseNumberOrName: "1",
postalCode: "2312aa",
stateOrProvince: "NA",
street: "Street",
},
contractTypes: [
"RECURRING",
],
creationDate: "2017-03-01T10:53:11.000",
firstPspReference: "8515076181707110",
paymentMethodVariant: "paypal",
recurringDetailReference: "8315076181982020",
tokenDetails: {
tokenData: {
"BillingAgreementId": "B-7MA42752FE774625C",
"EmailId": "tedtest@test.nl",
"PayPal.PayerId": "H95EPL8B2KFE6",
},
tokenDataType: "PayPal",
},
variant: "paypal",
},
],
};
//# sourceMappingURL=listRecurringDetailsSuccess.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"listRecurringDetailsSuccess.js","sourceRoot":"","sources":["../../../../../src/__mocks__/recurring/listRecurringDetailsSuccess.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,2BAA2B,GAAG;IACvC,YAAY,EAAE,yBAAyB;IACvC,OAAO,EAAE;QACL;YACI,cAAc,EAAE;gBACZ,OAAO,EAAE,QAAQ;aACpB;YACD,KAAK,EAAE,WAAW;YAClB,SAAS,EAAE,SAAS;YACpB,IAAI,EAAE;gBACF,WAAW,EAAE,GAAG;gBAChB,UAAU,EAAE,MAAM;gBAClB,UAAU,EAAE,QAAQ;gBACpB,MAAM,EAAE,MAAM;aACjB;YACD,aAAa,EAAE;gBACX,UAAU;aACb;YACD,YAAY,EAAE,yBAAyB;YACvC,iBAAiB,EAAE,kBAAkB;YACrC,oBAAoB,EAAE,MAAM;YAC5B,wBAAwB,EAAE,oBAAoB;YAC9C,OAAO,EAAE,MAAM;SAClB;QACD;YACI,cAAc,EAAE;gBACZ,IAAI,EAAE,MAAM;gBACZ,OAAO,EAAE,IAAI;gBACb,iBAAiB,EAAE,GAAG;gBACtB,UAAU,EAAE,QAAQ;gBACpB,eAAe,EAAE,IAAI;gBACrB,MAAM,EAAE,QAAQ;aACnB;YACD,aAAa,EAAE;gBACX,WAAW;aACd;YACD,YAAY,EAAE,yBAAyB;YACvC,iBAAiB,EAAE,kBAAkB;YACrC,oBAAoB,EAAE,QAAQ;YAC9B,wBAAwB,EAAE,kBAAkB;YAC5C,YAAY,EAAE;gBACV,SAAS,EAAE;oBACP,oBAAoB,EAAE,qBAAqB;oBAC3C,SAAS,EAAE,iBAAiB;oBAC5B,gBAAgB,EAAE,eAAe;iBACpC;gBACD,aAAa,EAAE,QAAQ;aAC1B;YACD,OAAO,EAAE,QAAQ;SACpB;KACJ;CACJ,CAAC"}

View File

@@ -0,0 +1 @@
export declare const asyncRes = "ok";

View File

@@ -0,0 +1,2 @@
export var asyncRes = "ok";
//# sourceMappingURL=async.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../../../src/__mocks__/terminalApi/async.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,QAAQ,GAAG,IAAI,CAAC"}

View File

@@ -0,0 +1,3 @@
export declare const localSecuredRes: string;
export declare const localEncRes: string;
export declare const wrongEncRes: string;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
export declare const syncRes: string;
export declare const syncRefund: string;

View File

@@ -0,0 +1,338 @@
export var syncRes = JSON.stringify({
SaleToPOIResponse: {
MessageHeader: {
MessageCategory: "Payment",
MessageClass: "Service",
MessageType: "Response",
POIID: process.env.ADYEN_TERMINAL_POIID,
ProtocolVersion: "3.0",
SaleID: "001",
ServiceID: "001",
},
PaymentResponse: {
POIData: {
POIReconciliationID: "1000",
POITransactionID: {
TimeStamp: "2019-04-29T00:00:00.000Z",
TransactionID: "4r7i001556529591000.8515565295894301",
},
},
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=29%2f04%2f19&key=txdate",
},
{
EndOfLineFlag: true,
Text: "name=Time&value=10%3a19%3a51&key=txtime",
},
{
EndOfLineFlag: true,
Text: "key=filler",
},
{
EndOfLineFlag: true,
Text: "name=Card&value=%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a3511&key=pan",
},
{
EndOfLineFlag: true,
Text: "name=Pref.%20name&value=MCC%20351%20v1%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%20swipe&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=4r7i001556529591000&key=txRef",
},
{
EndOfLineFlag: true,
Text: "name=Reference&value=003&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=29%2f04%2f19&key=txdate",
},
{
EndOfLineFlag: true,
Text: "name=Time&value=10%3a19%3a51&key=txtime",
},
{
EndOfLineFlag: true,
Text: "key=filler",
},
{
EndOfLineFlag: true,
Text: "name=Card&value=%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a%2a3511&key=pan",
},
{
EndOfLineFlag: true,
Text: "name=Pref.%20name&value=MCC%20351%20v1%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%20swipe&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=4r7i001556529591000&key=txRef",
},
{
EndOfLineFlag: true,
Text: "name=Reference&value=003&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-123456789",
AcquirerTransactionID: {
TimeStamp: "2019-04-29T09:19:51.000Z",
TransactionID: "8515565295894301",
},
ApprovalCode: "123456",
MerchantID: "TestMerchant",
},
PaymentInstrumentData: {
CardData: {
EntryMode: [
"Tapped",
],
MaskedPan: "411111 **** 1111",
PaymentBrand: "mc",
SensitiveCardData: {
ExpiryDate: "1225",
},
},
PaymentInstrumentType: "Card",
},
},
Response: {
AdditionalResponse: "tid=75039202&AID=A0000000041010&transactionType=GOODS_SERVICES&backendGiftcardIndi\n cator=false&expiryYear=2025&acquirerAccountCode=TestPmmAcquirerAccount&alias=M900978995070104&posOrigin\n alAmountCurrency=EUR&giftcardIndicator=false&authorisedAmountValue=100&pspReference=8515565295894301&pa\n ymentMethodVariant=mc&cardHolderName=N%2fA&refusalReasonRaw=APPROVED&authorisationMid=1000&expiryDate=1\n 2%2f2025&applicationPreferredName=MCC%20351%20v1%202&acquirerCode=TestPmmAcquirer&txtime=10%3a19%3a51&i\n so8601TxDate=2019-04-29T09%3a19%3a51.0000000%2b0000&cardType=mc&posOriginalAmountValue=100&offline=fals\n e&aliasType=Default&txdate=29-04-2019&paymentMethod=mc&cvcResult=0%20Unknown&avsResult=0%20Unknown&mid=\n 1000&merchantReference=003&transactionReferenceNumber=8515565295894301&expiryMonth=12&cardSummary=3511&\n posTotalAmountValue=100&posAuthAmountCurrency=EUR&cardHolderVerificationMethodResults=3F0300&authCode=1\n 23456&shopperCountry=NL&posEntryMode=CLESS_SWIPE&cardScheme=mc&cardBin=541333&posAuthAmountValue=100",
Result: "Success",
},
SaleData: {
SaleTransactionID: {
TimeStamp: "2019-04-29T00:00:00.000Z",
TransactionID: "001",
},
},
},
},
});
export var syncRefund = JSON.stringify({
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"
}
}
}
});
//# sourceMappingURL=sync.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,181 @@
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* 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 { createClient } from "../__mocks__/base";
import BinLookup from "../services/binLookup";
import Client from "../client";
import HttpClientException from "../httpClient/httpClientException";
var threeDSAvailabilitySuccess = {
binDetails: {
issuerCountry: "NL"
},
threeDS1Supported: true,
threeDS2CardRangeDetails: [],
threeDS2supported: false
};
var client;
var binLookup;
var scope;
beforeEach(function () {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
binLookup = new BinLookup(client);
scope = nock("" + client.config.endpoint + Client.BIN_LOOKUP_PAL_SUFFIX + Client.BIN_LOOKUP_API_VERSION);
});
afterEach(function () {
nock.cleanAll();
});
describe("Bin Lookup", function () {
test.each([false, true])("should succeed on get 3ds availability. isMock: %p", function (isMock) {
return __awaiter(this, void 0, void 0, function () {
var threeDSAvailabilityRequest, response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
threeDSAvailabilityRequest = {
merchantAccount: process.env.ADYEN_MERCHANT,
brands: ["randomBrand"],
cardNumber: "4111111111111111"
};
scope.post("/get3dsAvailability")
.reply(200, threeDSAvailabilitySuccess);
return [4 /*yield*/, binLookup.get3dsAvailability(threeDSAvailabilityRequest)];
case 1:
response = _a.sent();
expect(response).toEqual(threeDSAvailabilitySuccess);
return [2 /*return*/];
}
});
});
});
test.each([false, true])("should fail with invalid merchant. isMock: %p", function (isMock) {
return __awaiter(this, void 0, void 0, function () {
var threeDSAvailabilityRequest, e_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
threeDSAvailabilityRequest = {
merchantAccount: undefined,
cardNumber: "4111111111111",
brands: []
};
scope.post("/get3dsAvailability")
.reply(403, JSON.stringify({ status: 403, message: "fail", errorCode: "171" }));
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
return [4 /*yield*/, binLookup.get3dsAvailability(threeDSAvailabilityRequest)];
case 2:
_a.sent();
fail("Expected request to fail");
return [3 /*break*/, 4];
case 3:
e_1 = _a.sent();
expect(e_1 instanceof HttpClientException).toBeTruthy();
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}
});
});
});
test.each([false, true])("should succeed on get cost estimate. isMock: %p", function (isMock) {
return __awaiter(this, void 0, void 0, function () {
var expected, costEstimateRequest, response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
expected = {
costEstimateAmount: {
currency: "EUR",
value: 10
},
resultCode: "Unsupported",
surchargeType: "ZERO"
};
costEstimateRequest = {
amount: { currency: "EUR", value: 1000 },
assumptions: {
assumeLevel3Data: true,
assume3DSecureAuthenticated: true
},
cardNumber: "411111111111",
merchantAccount: process.env.ADYEN_MERCHANT,
merchantDetails: {
countryCode: "NL",
mcc: "7411",
enrolledIn3DSecure: true
},
shopperInteraction: "Ecommerce"
};
scope.post("/getCostEstimate")
.reply(200, expected);
return [4 /*yield*/, binLookup.getCostEstimate(costEstimateRequest)];
case 1:
response = _a.sent();
expect(response).toEqual(expected);
return [2 /*return*/];
}
});
});
});
});
//# sourceMappingURL=binLookup.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"binLookup.spec.js","sourceRoot":"","sources":["../../../../src/__tests__/binLookup.spec.ts"],"names":[],"mappings":"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"}

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,78 @@
/* eslint-disable @typescript-eslint/camelcase */
import checkServerIdentity from "../helpers/checkServerIdentity";
var createMockedCertificate = function (CN) { return ({
subjectaltname: "Adyen B.V",
infoAccess: { mock: ["any"] },
subject: {
C: "AB",
ST: "AB",
L: "City",
O: "Company Name",
OU: "Mocked Value",
CN: CN,
},
issuer: {
C: "AB",
ST: "AB",
L: "City",
O: "Issuer Name",
OU: "Issuer",
CN: "Issuer CN",
},
modulus: "ABC123",
exponent: "01010101",
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")
}); };
describe("Certificate Server Identiy", function () {
test.each([
["legacy-terminal-certificate", "live"],
["legacy-terminal-certificate", "test"],
["P400-3123123", "live"],
["P400-3123123", "test"],
["MODEL-SN", "live"],
["MODEL-SN", "test"],
])("it should be valid: %s.%s", function (prefix, environment) {
var cn = prefix + "." + environment + ".terminal.adyen.com";
var mockedCertificate = createMockedCertificate(cn);
expect(checkServerIdentity("any", mockedCertificate)).toBeUndefined();
});
test.each([
"INVALID.adyen.com",
"terminal.INVALID.com",
"terminal.adyen.org",
"google.com",
"",
])("it should fail because invalid domain: %s", function (domain) {
var cn = "P400-123123.live." + domain;
var mockedCertificate = createMockedCertificate(cn);
expect(checkServerIdentity("any", mockedCertificate) instanceof Error).toBeTruthy();
});
test.each([
"liive", "teest", "lve", "tst", "ANY", "invalid",
])("it should fail because invalid environment: %s", function (environment) {
var cn = "P400-123123." + environment + ".terminal.adyen.com";
var mockedCertificate = createMockedCertificate(cn);
expect(checkServerIdentity("any", mockedCertificate) instanceof Error).toBeTruthy();
});
test.each([
"legacyy-terminal-certificate", "legacy-terminaal-certificate",
"legacy-terminal-certificatee", "P400-", "-123123", "P400--123123", "P400123123",
"ANY-ANY-ANY", "ANY", ""
])("it should fail because invalid prefix: %s", function (prefix) {
var cn = prefix + ".test.terminal.adyen.com";
var mockedCertificate = createMockedCertificate(cn);
expect(checkServerIdentity("any", mockedCertificate) instanceof Error).toBeTruthy();
});
it("should fail if no first part on CN", function () {
var cn = "live.terminal.adyen.com";
var mockedCertificate = createMockedCertificate(cn);
expect(checkServerIdentity("any", mockedCertificate) instanceof Error).toBeTruthy();
});
});
//# sourceMappingURL=checkServerIdentity.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"checkServerIdentity.spec.js","sourceRoot":"","sources":["../../../../src/__tests__/checkServerIdentity.spec.ts"],"names":[],"mappings":"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"}

View File

@@ -0,0 +1 @@
export declare function createPaymentsCheckoutRequest(): ICheckout.PaymentRequest;

View File

@@ -0,0 +1,335 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* 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.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
import nock from "nock";
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 { paymentsResultMultibancoSuccess } from "../__mocks__/checkout/paymentsResultMultibancoSuccess";
import { paymentsResultSuccess } from "../__mocks__/checkout/paymentsResultSucess";
import Client from "../client";
import Checkout from "../services/checkout";
import HttpClientException from "../httpClient/httpClientException";
var merchantAccount = process.env.ADYEN_MERCHANT;
var reference = "Your order number";
function createAmountObject(currency, value) {
return {
currency: currency,
value: value,
};
}
function createPaymentsDetailsRequest() {
return {
details: {
MD: "mdValue",
PaRes: "paResValue",
},
paymentData: "Ab02b4c0!BQABAgCJN1wRZuGJmq8dMncmypvknj9s7l5Tj...",
};
}
export function createPaymentsCheckoutRequest() {
var paymentMethodDetails = {
cvc: "737",
expiryMonth: "03",
expiryYear: "2030",
holderName: "John Smith",
number: "4111111111111111",
type: "scheme",
};
return {
amount: createAmountObject("USD", 1000),
merchantAccount: merchantAccount,
paymentMethod: paymentMethodDetails,
reference: reference,
returnUrl: "https://your-company.com/...",
enableRecurring: true,
enableOneClick: true,
shopperReference: "shopperReference",
storePaymentMethod: true
};
}
function createPaymentSessionRequest() {
return {
amount: createAmountObject("USD", 1000),
countryCode: "NL",
merchantAccount: merchantAccount,
reference: reference,
returnUrl: "https://your-company.com/...",
channel: "Web",
sdkVersion: "3.7.0"
};
}
var client;
var checkout;
var scope;
beforeEach(function () {
if (!nock.isActive()) {
nock.activate();
}
client = createClient();
scope = nock(client.config.checkoutEndpoint + "/" + Client.CHECKOUT_API_VERSION);
checkout = new Checkout(client);
});
afterEach(function () {
nock.cleanAll();
});
describe("Checkout", function () {
test.each([false, true])("should make a payment. isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentsRequest, paymentsResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
scope.post("/payments")
.reply(200, paymentsSuccess);
paymentsRequest = createPaymentsCheckoutRequest();
return [4 /*yield*/, checkout.payments(paymentsRequest)];
case 1:
paymentsResponse = _a.sent();
expect(paymentsResponse.pspReference).toBeTruthy();
return [2 /*return*/];
}
});
}); });
test.each([false, true])("should return correct Exception, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentsRequest, e_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
_a.label = 1;
case 1:
_a.trys.push([1, 3, , 4]);
scope.post("/payments")
.reply(401);
paymentsRequest = createPaymentsCheckoutRequest();
return [4 /*yield*/, checkout.payments(paymentsRequest)];
case 2:
_a.sent();
return [3 /*break*/, 4];
case 3:
e_1 = _a.sent();
expect(e_1 instanceof HttpClientException).toBeTruthy();
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}
});
}); });
test.each([false, true])("should have valid payment methods, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentMethodsRequest, paymentMethodsResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
paymentMethodsRequest = { merchantAccount: "MagentoMerchantTest" };
scope.post("/paymentMethods")
.reply(200, paymentMethodsSuccess);
return [4 /*yield*/, checkout.paymentMethods(paymentMethodsRequest)];
case 1:
paymentMethodsResponse = _a.sent();
if (paymentMethodsResponse && paymentMethodsResponse.paymentMethods) {
expect(paymentMethodsResponse.paymentMethods.length).toBeGreaterThan(0);
}
else {
fail();
}
return [2 /*return*/];
}
});
}); });
test.each([false, true])("should have valid payment link, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var amount, expiresAt, paymentLinkRequest, paymentLinkSuccess, paymentSuccessLinkResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
amount = createAmountObject("BRL", 1000);
expiresAt = "2019-12-17T10:05:29Z";
paymentLinkRequest = {
allowedPaymentMethods: ["scheme", "boletobancario"],
amount: amount,
countryCode: "BR",
merchantAccount: 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: reference
};
paymentLinkSuccess = {
amount: amount,
expiresAt: expiresAt,
reference: reference,
url: "paymentLinkResponse.url"
};
scope.post("/paymentLinks").reply(200, paymentLinkSuccess);
return [4 /*yield*/, checkout.paymentLinks(paymentLinkRequest)];
case 1:
paymentSuccessLinkResponse = _a.sent();
expect(paymentSuccessLinkResponse).toBeTruthy();
return [2 /*return*/];
}
});
}); });
test.each([false, true])("should have payment details, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentsResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!isMock) {
console.warn("Cannot perform /payments/details without manual user validation. Skipping test.");
return [2 /*return*/];
}
scope.post("/payments/details")
.reply(200, paymentDetailsSuccess);
return [4 /*yield*/, checkout.paymentsDetails(createPaymentsDetailsRequest())];
case 1:
paymentsResponse = _a.sent();
expect(paymentsResponse.resultCode).toEqual("Authorised");
return [2 /*return*/];
}
});
}); });
test.each([false, true])("should have payment session success, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentSessionRequest, paymentSessionResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
scope.post("/paymentSession")
.reply(200, paymentSessionSuccess);
paymentSessionRequest = createPaymentSessionRequest();
return [4 /*yield*/, checkout.paymentSession(paymentSessionRequest)];
case 1:
paymentSessionResponse = _a.sent();
expect(paymentSessionResponse.paymentSession).not.toBeUndefined();
return [2 /*return*/];
}
});
}); });
test.each([false, true])("should have payments result, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentResultRequest, paymentResultResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!isMock) {
console.warn("Cannot perform /payments/result without payload. Skipping test.");
return [2 /*return*/];
}
scope.post("/payments/result")
.reply(200, paymentsResultSuccess);
paymentResultRequest = {
payload: "This is a test payload",
};
return [4 /*yield*/, checkout.paymentResult(paymentResultRequest)];
case 1:
paymentResultResponse = _a.sent();
expect(paymentResultResponse.resultCode).toEqual("Authorised");
return [2 /*return*/];
}
});
}); });
test.each([false, true])("should have missing identifier on live, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
!isMock && nock.restore();
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.");
}
return [2 /*return*/];
});
}); });
test.each([false, true])("should succeed on multibanco payment, isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var paymentsRequest, paymentsResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
scope.post("/payments")
.reply(200, paymentsResultMultibancoSuccess);
paymentsRequest = createPaymentsCheckoutRequest();
return [4 /*yield*/, checkout.payments(paymentsRequest)];
case 1:
paymentsResponse = _a.sent();
expect(paymentsResponse.pspReference).toBeTruthy();
expect(paymentsResponse.additionalData).toBeTruthy();
return [2 /*return*/];
}
});
}); });
});
//# sourceMappingURL=checkout.spec.js.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,89 @@
/*
* ######
* ######
* ############ ####( ###### #####. ###### ############ ############
* ############# #####( ###### #####. ###### ############# #############
* ###### #####( ###### #####. ###### ##### ###### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
* ###### ###### #####( ###### #####. ###### ##### ##### ######
* ############# ############# ############# ############# ##### ######
* ############ ############ ############# ############ ##### ######
* ######
* #############
* ############
*
* 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.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
import nock from "nock";
import { createClient } from "../__mocks__/base";
import { originKeysSuccess } from "../__mocks__/checkoutUtility/originkeysSuccess";
import CheckoutUtility from "../services/checkoutUtility";
import Client from "../client";
describe("Checkout Utility", function () {
test.each([false, true])("should get origin keys. isMock: %p", function (isMock) { return __awaiter(void 0, void 0, void 0, function () {
var client, checkoutUtility, originKeysRequest, originKeysResponse;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
!isMock && nock.restore();
client = createClient();
checkoutUtility = new CheckoutUtility(client);
originKeysRequest = {
originDomains: ["https://www.your-domain.com"],
};
nock("" + client.config.checkoutEndpoint)
.post("/" + Client.CHECKOUT_UTILITY_API_VERSION + "/originKeys")
.reply(200, originKeysSuccess);
return [4 /*yield*/, checkoutUtility.originKeys(originKeysRequest)];
case 1:
originKeysResponse = _a.sent();
if (originKeysResponse.originKeys) {
return [2 /*return*/, expect(originKeysResponse.originKeys["https://www.your-domain.com"].startsWith("pub.v2")).toBeTruthy()];
}
fail("Error: originKeysResponse.originKeys is empty");
return [2 /*return*/];
}
});
}); });
});
//# sourceMappingURL=checkoutUtility.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"checkoutUtility.spec.js","sourceRoot":"","sources":["../../../../src/__tests__/checkoutUtility.spec.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,gDAAgD,CAAC;AACjF,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,QAAQ,CAAC,kBAAkB,EAAE;IACzB,IAAI,CAAC,IAAI,CAAC,CAAC,KAAK,EAAC,IAAI,CAAC,CAAC,CAAC,oCAAoC,EAAE,UAAO,MAAM;;;;;oBACvE,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;oBACpB,MAAM,GAAG,YAAY,EAAE,CAAC;oBACxB,eAAe,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;oBAC9C,iBAAiB,GAA4C;wBAC/D,aAAa,EAAE,CAAC,6BAA6B,CAAC;qBACjD,CAAC;oBAEF,IAAI,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,gBAAkB,CAAC;yBACpC,IAAI,CAAC,MAAI,MAAM,CAAC,4BAA4B,gBAAa,CAAC;yBAC1D,KAAK,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;oBAER,qBAAM,eAAe,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAA;;oBAAxE,kBAAkB,GAAG,SAAmD;oBAC9E,IAAI,kBAAkB,CAAC,UAAU,EAAE;wBAC/B,sBAAO,MAAM,CAAC,kBAAkB,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,EAAE,EAAC;qBACjH;oBACD,IAAI,CAAC,+CAA+C,CAAC,CAAC;;;;SACzD,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,64 @@
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var _a;
import HmacValidator from "../utils/hmacValidator";
import { ApiConstants } from "../constants/apiConstants";
var key = "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00";
var expectedSign = "ipnxGCaUZ4l8TUW75a71/ghd2Fe5ffvX0pV4TLTntIc=";
var 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: (_a = {}, _a[ApiConstants.HMAC_SIGNATURE] = expectedSign, _a),
};
describe("HMAC Validator", function () {
var hmacValidator;
beforeEach(function () {
hmacValidator = new HmacValidator();
});
it("should get correct data", function () {
var dataToSign = hmacValidator.getDataToSign({ merchantAccount: "ACC", currencyCode: "EUR" });
expect(dataToSign).toEqual("currencyCode:merchantAccount:EUR:ACC");
});
it("should get correct data with escaped characters", function () {
var 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 () {
var 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";
var encrypted = hmacValidator.calculateHmac(data, "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00");
expect(encrypted).toEqual("34oR8T1whkQWTv9P+SzKyp8zhusf9n0dpqrm9nsqSJs=");
});
it("should get correct data to sign", function () {
var data = hmacValidator.getDataToSign(notificationRequestItem);
expect(data).toEqual("pspReference:originalReference:merchantAccount:reference:1000:EUR:EVENT:true");
});
it("should have valid hmac", function () {
var encrypted = hmacValidator.calculateHmac(notificationRequestItem, key);
expect(expectedSign).toEqual(encrypted);
expect(hmacValidator.validateHMAC(notificationRequestItem, key)).toBeTruthy();
});
it("should have invalid hmac", function () {
var _a;
var invalidNotification = __assign(__assign({}, notificationRequestItem), { additionalData: (_a = {}, _a[ApiConstants.HMAC_SIGNATURE] = "notValidSign", _a) });
var result = hmacValidator.validateHMAC(invalidNotification, key);
expect(result).toBeFalsy();
});
});
//# sourceMappingURL=hmacValidator.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hmacValidator.spec.js","sourceRoot":"","sources":["../../../../src/__tests__/hmacValidator.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAC;AAEvD,IAAM,GAAG,GAAG,kEAAkE,CAAC;AAC/E,IAAM,YAAY,GAAG,8CAA8C,CAAC;AACpE,IAAM,uBAAuB,GAA4B;IACrD,YAAY,EAAE,cAAc;IAC5B,iBAAiB,EAAE,mBAAmB;IACtC,mBAAmB,EAAE,iBAAiB;IACtC,iBAAiB,EAAE,WAAW;IAC9B,MAAM,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC;IACtC,SAAS,EAAE,OAAO;IAClB,SAAS,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;IACjC,aAAa,EAAE,MAAM;IACrB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,MAAM;IACf,cAAc,YAAI,GAAC,YAAY,CAAC,cAAc,IAAG,YAAY,KAAE;CAClE,CAAC;AAEF,QAAQ,CAAC,gBAAgB,EAAE;IACvB,IAAI,aAA4B,CAAC;IACjC,UAAU,CAAC;QACP,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE;QAC1B,IAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,EAAC,eAAe,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAC,CAAC,CAAC;QAC9F,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,iDAAiD,EAAE;QAClD,IAAM,UAAU,GAAG,aAAa,CAAC,aAAa,CAAC,EAAC,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,0BAA0B,EAAC,CAAC,CAAC;QAC9I,MAAM,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,0FAA0F,CAAC,CAAC;IAC3H,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,0BAA0B,EAAE;QAC3B,IAAM,IAAI,GAAG,iNAAiN,CAAC;QAC/N,IAAM,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC,IAAI,EAAE,kEAAkE,CAAC,CAAC;QACxH,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,8CAA8C,CAAC,CAAC;IAC9E,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,iCAAiC,EAAE;QAClC,IAAM,IAAI,GAAG,aAAa,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;QAClE,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,8EAA8E,CAAC,CAAC;IACzG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE;QACzB,IAAM,SAAS,GAAG,aAAa,CAAC,aAAa,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;QAC5E,MAAM,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACxC,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;IAClF,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,0BAA0B,EAAE;;QAC3B,IAAM,mBAAmB,yBAClB,uBAAuB,KAC1B,cAAc,YAAI,GAAC,YAAY,CAAC,cAAc,IAAG,cAAc,QAClE,CAAC;QACF,IAAM,MAAM,GAAG,aAAa,CAAC,YAAY,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,CAAC;IAC/B,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,107 @@
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
import nock from "nock";
import Client from "../client";
import Checkout from "../services/checkout";
import ApiException from "../services/exception/apiException";
import { createPaymentsCheckoutRequest } from "./checkout.spec";
import HttpClientException from "../httpClient/httpClientException";
beforeEach(function () {
nock.cleanAll();
});
var getResponse = function (_a, cb) {
var apiKey = _a.apiKey, environment = _a.environment;
return __awaiter(void 0, void 0, void 0, function () {
var client, checkout, scope, _b, errorMessageContains, errorMessageEquals, errorType, ErrorException, e_1;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
client = new Client({ apiKey: apiKey, environment: environment });
checkout = new Checkout(client);
scope = nock(client.config.checkoutEndpoint + "/" + Client.CHECKOUT_API_VERSION)
.post("/payments");
_b = cb(scope), errorMessageContains = _b.errorMessageContains, errorMessageEquals = _b.errorMessageEquals, errorType = _b.errorType;
ErrorException = errorType === "ApiException" ? ApiException : HttpClientException;
_c.label = 1;
case 1:
_c.trys.push([1, 3, , 4]);
return [4 /*yield*/, checkout.payments(createPaymentsCheckoutRequest())];
case 2:
_c.sent();
fail("request should fail");
return [3 /*break*/, 4];
case 3:
e_1 = _c.sent();
expect(e_1 instanceof ErrorException).toBeTruthy();
if (errorMessageEquals)
expect(e_1.message).toEqual(errorMessageEquals);
if (errorMessageContains)
expect(e_1.message.toLowerCase()).toContain(errorMessageContains);
return [3 /*break*/, 4];
case 4: return [2 /*return*/];
}
});
});
};
describe("HTTP Client", function () {
var _this = this;
it.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n apiKey | environment | withError | args | errorType | contains | equals \n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "], ["\n apiKey | environment | withError | args | errorType | contains | equals \n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", " | ", " | ", "\n "])), "", "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", "API_KEY", "TEST", false, [401, {}], "HttpClientException", "", "HTTP Exception: 401. null", "API_KEY", "TEST", false, [401, "fail"], "HttpClientException", "", "HTTP Exception: 401. null")("Should return $errorType, $contains, $equals", function (_a) {
var apiKey = _a.apiKey, environment = _a.environment, withError = _a.withError, args = _a.args, errorType = _a.errorType, contains = _a.contains, equals = _a.equals;
return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_b) {
switch (_b.label) {
case 0: return [4 /*yield*/, getResponse({ apiKey: apiKey, environment: environment }, function (scope) {
if (withError)
scope.replyWithError(args[0]);
else
scope.reply(args[0], args[1]);
return { errorType: errorType, errorMessageContains: contains, errorMessageEquals: equals };
})];
case 1:
_b.sent();
return [2 /*return*/];
}
});
});
});
});
var templateObject_1;
//# sourceMappingURL=httpClient.spec.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"httpClient.spec.js","sourceRoot":"","sources":["../../../../src/__tests__/httpClient.spec.ts"],"names":[],"mappings":"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"}

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,81 @@
import authorisationTrue from "../__mocks__/notification/authorisationTrue.json";
import captureTrue from "../__mocks__/notification/captureTrue.json";
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 { NotificationEnum } from "../typings/notification";
describe("Notification Test", function () {
it("should return authorisation success", function () {
var notificationRequest = new NotificationRequest(authorisationTrue);
expect(notificationRequest.notificationItems).toHaveLength(1);
if (notificationRequest.notificationItems) {
var notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_AUTHORISATION).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("123456789");
}
else {
fail();
}
});
it("should return capture success", function () {
var notificationRequest = new NotificationRequest(captureTrue);
expect(notificationRequest.notificationItems).toHaveLength(1);
if (notificationRequest.notificationItems) {
var notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_CAPTURE).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
}
else {
fail();
}
});
it("should return capture fail", function () {
var notificationRequest = new NotificationRequest(captureFalse);
expect(notificationRequest.notificationItems).toHaveLength(1);
if (notificationRequest.notificationItems) {
var notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_CAPTURE).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeFalsy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
}
else {
fail();
}
});
it("should return refund success", function () {
var notificationRequest = new NotificationRequest(refundTrue);
expect(notificationRequest.notificationItems).toHaveLength(1);
if (notificationRequest.notificationItems) {
var notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_REFUND).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
expect(notificationRequestItem.eventDate).toBeDefined();
}
else {
fail();
}
});
it("should return refund fail", function () {
var notificationRequest = new NotificationRequest(refundFalse);
expect(notificationRequest.notificationItems).toHaveLength(1);
if (notificationRequest.notificationItems) {
var notificationRequestItem = notificationRequest.notificationItems[0];
expect(NotificationEnum.EVENT_CODE_REFUND).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === "true").toBeFalsy();
expect(notificationRequestItem.pspReference).toEqual("PSP_REFERENCE");
expect(notificationRequestItem.originalReference).toEqual("ORIGINAL_PSP");
expect(notificationRequestItem.eventDate).toBeDefined();
}
else {
fail();
}
});
});
//# sourceMappingURL=notification.spec.js.map

Some files were not shown because too many files have changed in this diff Show More