Compare commits

..

59 Commits

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* added test for recurring container

* Update src/__tests__/recurring.spec.ts

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

* Update src/typings/recurring/recurringDetailContainer.ts

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

* Update test

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-19 07:57:29 +01:00
16 changed files with 1203 additions and 773 deletions

2
.github/CODEOWNERS vendored
View File

@@ -1 +1 @@
* @zaiddreakh @maassenbas @AlexandrosMor @peterojo @wboereboom
* @zaiddreakh @maassenbas @AlexandrosMor @peterojo @wboereboom @michaelpaul

View File

@@ -1,6 +1,6 @@
# Adyen Node.js 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)
[![Coverage Status](https://coveralls.io/repos/github/Adyen/adyen-node-api-library/badge.svg?branch=main)](https://coveralls.io/github/Adyen/adyen-node-api-library?branch=main)
[![Downloads](https://img.shields.io/npm/dm/@adyen/api-library.svg)](https://www.npmjs.com/package/@adyen/api-library)
![npm bundle size (scoped)](https://img.shields.io/bundlephobia/minzip/@adyen/api-library.svg)
[![Version](https://img.shields.io/npm/v/@adyen/api-library.svg)](https://www.npmjs.com/package/@adyen/api-library)

View File

@@ -1,6 +1,6 @@
{
"name": "@adyen/api-library",
"version": "10.1.0",
"version": "10.3.0",
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
@@ -35,28 +35,28 @@
"author": "Ricardo Ambrogi",
"license": "MIT",
"devDependencies": {
"@types/jest": "27.0.2",
"@types/jest": "27.4.1",
"@types/nock": "11.1.0",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"acorn": "^8.0.1",
"coveralls": "3.1.1",
"dotenv": "^10.0.0",
"dotenv": "^16.0.0",
"eslint": "7.32.0",
"jest": "^27.0.6",
"jest-ts-auto-mock": "^2.0.0",
"kind-of": "^6.0.3",
"minimist": ">=1.2.3",
"nock": "13.2.0",
"release-it": "14.11.6",
"nock": "13.2.4",
"release-it": "14.14.2",
"ts-auto-mock": "^3.3.5",
"ts-jest": "^27.0.4",
"ts-loader": "8.0.10",
"ttypescript": "^1.5.10",
"typescript": "4.4.4"
"typescript": "4.6.3"
},
"dependencies": {
"https-proxy-agent": "5.0.0"
"https-proxy-agent": "5.0.1"
},
"optionalDependencies": {
"@types/node": "14.0.9"

View File

@@ -18,54 +18,64 @@
*/
export const listRecurringDetailsSuccess = {
creationDate: "2017-03-01T10:53:11.000",
details: [
"creationDate": "2017-03-01T11:53:11+01:00",
"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",
"RecurringDetail": {
"acquirer": "TestPmmAcquirer",
"acquirerAccount": "TestPmmAcquirerAccount",
"additionalData": {
"cardBin": "411111"
},
tokenDataType: "PayPal",
},
variant: "paypal",
"alias": "cardAlias",
"aliasType": "Default",
"card": {
"expiryMonth": "8",
"expiryYear": "2018",
"holderName": "Holder",
"number": "1111"
},
"contractTypes": [
"ONECLICK"
],
"creationDate": "2017-03-07T09:43:33+01:00",
"firstPspReference": "8524888762135795",
"paymentMethodVariant": "visa",
"recurringDetailReference": "recurringReference",
"variant": "visa"
}
},
{
"RecurringDetail": {
"acquirer": "PayPalSandbox",
"acquirerAccount": "TestPmmAcquirerAccount",
"billingAddress": {
"city": "City",
"country": "NL",
"houseNumberOrName": "1",
"postalCode": "2312aa",
"stateOrProvince": "NA",
"street": "Street"
},
"contractTypes": [
"RECURRING"
],
"creationDate": "2017-10-10T08:50:02+02:00",
"firstPspReference": "8515076181707110",
"paymentMethodVariant": "paypal",
"recurringDetailReference": "8315076181982020",
"tokenDetails": {
"tokenData": {
"EmailId": "tedtest@test.nl",
"PayPal.PayerId": "H95EPL8B2KFE6",
"BillingAgreementId": "B-7MA42752FE774625C"
},
"tokenDataType": "PayPal"
},
"variant": "paypal"
}
}
],
"shopperReference": "test-123",
"invalidOneclickContracts": "false"
};

View File

@@ -365,3 +365,24 @@ export const syncRefund = {
}
}
};
export const syncResEventNotification = {
SaleToPOIRequest: {
EventNotification: {
EventToNotify: "Reject",
EventDetails: "message=Did+not+receive+a+response+from+the+POI.",
RejectedMessage: "ewoi...0KfQo=",
TimeStamp: "2020-03-31T10:28:39.515Z"
},
MessageHeader: {
DeviceID: "666568147",
MessageCategory: "Event",
MessageClass: "Event",
MessageType: "Notification",
POIID: "P400Plus-123456789",
ProtocolVersion: "3.0",
SaleID: "saleid-4c32759faaa7",
ServiceID: "31122609"
}
}
};

View File

@@ -115,6 +115,7 @@ describe("Platforms Test", function () {
["suspendAccountHolder", createMock<A.SuspendAccountHolderRequest>(), createMock<A.SuspendAccountHolderResponse>()],
["unSuspendAccountHolder", createMock<A.UnSuspendAccountHolderRequest>(), createMock<A.UnSuspendAccountHolderResponse>()],
["closeAccountHolder", createMock<A.CloseAccountHolderRequest>(), createMock<A.CloseAccountResponse>()],
["getTaxForm", createMock<A.GetTaxFormRequest>(), createMock<A.GetTaxFormResponse>()],
];
test.each(cases)(
"should %p",
@@ -399,7 +400,19 @@ describe.skip("Platforms Test E2E", function(): void {
}
});
it("should get tax form", async function() {
nock.restore();
try {
const result = await platforms.Account.getTaxForm({
accountHolderCode: accountHolder.accountHolderCode,
formType: "1099-K",
year: 2020
});
expect(result.content).toBeDefined();
} catch (e: any) {
assertError(e);
}
});
});
});
describe("Fund", function () {
@@ -527,4 +540,4 @@ describe.skip("Platforms Test E2E", function(): void {
});
});
});
});

View File

@@ -66,18 +66,15 @@ afterEach(() => {
});
describe("Recurring", (): void => {
test.each([false, true])("should test have recurring details list, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
test("should list recurring details ", async (): Promise<void> => {
scope.post("/listRecurringDetails")
.reply(200, listRecurringDetailsSuccess);
const request = createRecurringDetailsRequest();
try {
const result = await recurring.listRecurringDetails(request);
expect(result).toBeTruthy();
} catch (e: any) {
fail(e.message);
}
const result = await recurring.listRecurringDetails(request);
expect(result).toBeTruthy();
expect(result.details?.[0].RecurringDetail.recurringDetailReference).toBe('recurringReference');
});
test.each([isCI, true])("should disable, isMock: %p", async (isMock): Promise<void> => {

View File

@@ -12,7 +12,7 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2021 Adyen B.V.
* Copyright (c) 2022 Adyen N.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
@@ -20,7 +20,7 @@
import nock from "nock";
import { createClient, createTerminalAPIPaymentRequest, createTerminalAPIRefundRequest } from "../__mocks__/base";
import { asyncRes } from "../__mocks__/terminalApi/async";
import { syncRefund, syncRes } from "../__mocks__/terminalApi/sync";
import { syncRefund, syncRes, syncResEventNotification } from "../__mocks__/terminalApi/sync";
import Client from "../client";
import TerminalCloudAPI from "../services/terminalCloudAPI";
import { TerminalApiResponse } from "../typings/terminal/models";
@@ -68,6 +68,17 @@ describe("Terminal Cloud API", (): void => {
expect(terminalAPIResponse.SaleToPOIResponse?.MessageHeader).toBeDefined();
});
test.each([isCI, true])("should return event notification if response contains it, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest();
scope.post("/sync").reply(200, syncResEventNotification);
const terminalAPIResponse = await terminalCloudAPI.sync(terminalAPIPaymentRequest);
expect(terminalAPIResponse.SaleToPOIRequest?.EventNotification).toBeDefined();
});
test.each([isCI, true])("should make an async refund request, isMock: %p", async (isMock): Promise<void> => {
!isMock && nock.restore();
scope.post("/sync").reply(200, syncRes);

View File

@@ -53,7 +53,9 @@ import {
DeleteShareholderRequest,
PerformVerificationRequest,
UpdateAccountHolderStateRequest,
GetAccountHolderStatusResponse
GetAccountHolderStatusResponse,
GetTaxFormRequest,
GetTaxFormResponse,
} from "../typings/platformsAccount/models";
type AccountType = AccountTypesEnum.Accounts;
@@ -86,6 +88,7 @@ class Platforms extends Service {
private readonly _suspendAccountHolder: PlatformsAccount<AccountHoldersType>;
private readonly _unSuspendAccountHolder: PlatformsAccount<AccountHoldersType>;
private readonly _closeAccountHolder: PlatformsAccount<AccountHoldersType>;
private readonly _getTaxForm: PlatformsAccount<AccountHoldersType>;
/* PlatformsFund */
private readonly _accountHolderBalance: PlatformsFund;
@@ -128,6 +131,7 @@ class Platforms extends Service {
this._suspendAccountHolder = new PlatformsAccount<AccountHoldersType>(this, "/suspendAccountHolder");
this._unSuspendAccountHolder = new PlatformsAccount<AccountHoldersType>(this, "/unSuspendAccountHolder");
this._closeAccountHolder = new PlatformsAccount<AccountHoldersType>(this, "/closeAccountHolder");
this._getTaxForm = new PlatformsAccount<AccountHoldersType>(this, "/getTaxForm");
// Fund
this._accountHolderBalance = new PlatformsFund(this, "/accountHolderBalance");
@@ -171,6 +175,7 @@ class Platforms extends Service {
deleteShareholders: (request: DeleteShareholderRequest) => Promise<GenericResponse>;
checkAccountHolder: (request: PerformVerificationRequest) => Promise<GenericResponse>;
updateAccountHolderState: (request: UpdateAccountHolderStateRequest) => Promise<GetAccountHolderStatusResponse>;
getTaxForm: (request: GetTaxFormRequest) => Promise<GetTaxFormResponse>;
} {
const closeAccount = this.createRequest<AccountsAccount, CloseAccountRequest, CloseAccountResponse>(this._closeAccount);
const updateAccount = this.createRequest<AccountsAccount, UpdateAccountRequest, UpdateAccountResponse>(this._updateAccount);
@@ -190,10 +195,11 @@ class Platforms extends Service {
const unSuspendAccountHolder = this.createRequest<AccountsAccountHolders, UnSuspendAccountHolderRequest, UnSuspendAccountHolderResponse>(this._unSuspendAccountHolder);
const closeAccountHolder = this.createRequest<AccountsAccountHolders, CloseAccountHolderRequest, CloseAccountHolderResponse>(this._closeAccountHolder);
const checkAccountHolder = this.createRequest<AccountsVerification, PerformVerificationRequest, GenericResponse>(this._checkAccountHolder);
const getTaxForm = this.createRequest<AccountsAccountHolders, GetTaxFormRequest, GetTaxFormResponse>(this._getTaxForm);
const accounts = { closeAccount, updateAccount, createAccount };
const verification = { uploadDocument, getUploadedDocuments, deleteBankAccounts, deletePayoutMethods, deleteShareholders, checkAccountHolder };
const accountHolders = { createAccountHolder, getAccountHolder, updateAccountHolder, updateAccountHolderState, suspendAccountHolder, unSuspendAccountHolder, closeAccountHolder};
const accountHolders = { createAccountHolder, getAccountHolder, updateAccountHolder, updateAccountHolderState, suspendAccountHolder, unSuspendAccountHolder, closeAccountHolder, getTaxForm};
return {...accounts, ...verification, ...accountHolders };
}

View File

@@ -30,7 +30,8 @@ type AccountHoldersEndpoints =
"/updateAccountHolderState"|
"/suspendAccountHolder"|
"/unSuspendAccountHolder"|
"/closeAccountHolder";
"/closeAccountHolder"|
"/getTaxForm";
type VerificationEndpoints =
"/uploadDocument"|

View File

@@ -33,6 +33,7 @@ export * from './recurringDetailsResult';
export * from './scheduleAccountUpdaterRequest';
export * from './scheduleAccountUpdaterResult';
export * from './serviceError';
export * from './recurringDetailContainer';
import * as fs from 'fs';
import {Address} from './address';
@@ -51,6 +52,7 @@ import {RecurringDetailsResult} from './recurringDetailsResult';
import {ScheduleAccountUpdaterRequest} from './scheduleAccountUpdaterRequest';
import {ScheduleAccountUpdaterResult} from './scheduleAccountUpdaterResult';
import {ServiceError} from './serviceError';
import {RecurringDetailContainer} from "./recurringDetailContainer";
export interface RequestDetailedFile {
value: Buffer;
@@ -94,6 +96,7 @@ let typeMap: {[index: string]: any} = {
"RecurringDetail": RecurringDetail,
"RecurringDetailsRequest": RecurringDetailsRequest,
"RecurringDetailsResult": RecurringDetailsResult,
'RecurringDetailContainer': RecurringDetailContainer,
"ScheduleAccountUpdaterRequest": ScheduleAccountUpdaterRequest,
"ScheduleAccountUpdaterResult": ScheduleAccountUpdaterResult,
"ServiceError": ServiceError,

View File

@@ -0,0 +1,32 @@
/**
* Adyen Recurring API
* The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ```
*
* The version of the OpenAPI document: 49
* Contact: developer-experience@adyen.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import {RecurringDetail} from "./recurringDetail";
export class RecurringDetailContainer {
'RecurringDetail': RecurringDetail;
static discriminator: string | undefined = undefined;
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
{
"name": "RecurringDetail",
"baseName": "RecurringDetail",
"type": "RecurringDetail"
}
];
static getAttributeTypeMap() {
return RecurringDetail.attributeTypeMap;
}
}

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import {RecurringDetail} from './recurringDetail';
import {RecurringDetailContainer} from './recurringDetailContainer';
export class RecurringDetailsResult {
/**
@@ -20,7 +20,7 @@ export class RecurringDetailsResult {
/**
* Payment details stored for recurring payments.
*/
'details'?: Array<RecurringDetail>;
'details'?: Array<RecurringDetailContainer>;
/**
* The most recent email for this shopper (if available).
*/
@@ -41,7 +41,7 @@ export class RecurringDetailsResult {
{
"name": "details",
"baseName": "details",
"type": "Array<RecurringDetail>"
"type": "Array<RecurringDetailContainer>"
},
{
"name": "lastKnownShopperEmail",

View File

@@ -12,7 +12,7 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2021 Adyen B.V.
* Copyright (c) 2022 Adyen N.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
@@ -42,7 +42,7 @@ export class CardData {
'CardCountryCode'?: string;
'CustomerOrder'?: Array<CustomerOrder>;
'EntryMode'?: Array<CardData.EntryModeEnum>;
'MaskedPAN'?: string;
'MaskedPan'?: string;
'PaymentAccountRef'?: string;
'PaymentBrand'?: string;
'PaymentToken'?: PaymentToken;
@@ -78,8 +78,8 @@ export class CardData {
"type": "Array<CardData.EntryModeEnum>"
},
{
"name": "MaskedPAN",
"baseName": "MaskedPAN",
"name": "MaskedPan",
"baseName": "MaskedPan",
"type": "string"
},
{

View File

@@ -12,28 +12,24 @@
* #############
* ############
* Adyen NodeJS API Library
* Copyright (c) 2021 Adyen B.V.
* Copyright (c) 2022 Adyen N.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
/**
* Terminal API
* Definition of Terminal API Schema
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { SaleToPOIResponse } from './saleToPOIResponse';
import {SaleToPOIRequest} from "./saleToPOIRequest";
export class TerminalApiResponse {
'SaleToPOIResponse'?: SaleToPOIResponse;
'SaleToPOIRequest'?: SaleToPOIRequest;
static discriminator: string | undefined = undefined;
@@ -42,7 +38,12 @@ export class TerminalApiResponse {
"name": "SaleToPOIResponse",
"baseName": "SaleToPOIResponse",
"type": "SaleToPOIResponse"
} ];
},
{
"name": "SaleToPOIRequest",
"baseName": "SaleToPOIRequest",
"type": "SaleToPOIRequest"
}];
static getAttributeTypeMap() {
return TerminalApiResponse.attributeTypeMap;

1707
yarn.lock

File diff suppressed because it is too large Load Diff