From fb170c2f887803aa95337083e8f5010be5ec7a32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Aug 2022 04:01:25 +0000 Subject: [PATCH 01/35] Bump typescript from 4.7.4 to 4.8.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b0c652d..a7dc31d 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.0.4", "ts-loader": "8.0.10", "ttypescript": "^1.5.10", - "typescript": "4.7.4" + "typescript": "4.8.2" }, "dependencies": { "https-proxy-agent": "5.0.1" diff --git a/yarn.lock b/yarn.lock index 18e00dd..47cd008 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5182,10 +5182,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@4.7.4: - version "4.7.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" - integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== +typescript@4.8.2: + version "4.8.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790" + integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw== unbox-primitive@^1.0.2: version "1.0.2" From d47a876123820d4660f2d98ca6e9a3ffd0a01fcb Mon Sep 17 00:00:00 2001 From: Michael Paul Date: Fri, 26 Aug 2022 14:23:55 +0200 Subject: [PATCH 02/35] Bump Node version for the release workflow (#981) --- .github/workflows/npmpublish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 8e85169..f1b5a18 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: 14 registry-url: https://registry.npmjs.org/ - run: | npm install From 1b42fa2125695817dfdd89f1e3899205ffc7002a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Aug 2022 04:01:21 +0000 Subject: [PATCH 03/35] Bump eslint from 8.22.0 to 8.23.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.22.0 to 8.23.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.22.0...v8.23.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index b0c652d..724af34 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", - "eslint": "8.22.0", + "eslint": "8.23.0", "jest": "^27.0.6", "jest-ts-auto-mock": "^2.0.0", "kind-of": "^6.0.3", diff --git a/yarn.lock b/yarn.lock index 18e00dd..70ac069 100644 --- a/yarn.lock +++ b/yarn.lock @@ -298,14 +298,14 @@ enabled "2.0.x" kuler "^2.0.0" -"@eslint/eslintrc@^1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.0.tgz#29f92c30bb3e771e4a2048c95fa6855392dfac4f" - integrity sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw== +"@eslint/eslintrc@^1.3.1": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.1.tgz#de0807bfeffc37b964a7d0400e0c348ce5a2543d" + integrity sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ== dependencies: ajv "^6.12.4" debug "^4.3.2" - espree "^9.3.2" + espree "^9.4.0" globals "^13.15.0" ignore "^5.2.0" import-fresh "^3.2.1" @@ -327,6 +327,11 @@ resolved "https://registry.yarnpkg.com/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz#316b0a63b91c10e53f242efb4ace5c3b34e8728d" integrity sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA== +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + "@humanwhocodes/object-schema@^1.2.1": version "1.2.1" resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" @@ -2022,14 +2027,15 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@8.22.0: - version "8.22.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.22.0.tgz#78fcb044196dfa7eef30a9d65944f6f980402c48" - integrity sha512-ci4t0sz6vSRKdmkOGmprBo6fmI4PrphDFMy5JEq/fNS0gQkJM3rLmrqcp8ipMcdobH3KtUP40KniAE9W19S4wA== +eslint@8.23.0: + version "8.23.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.23.0.tgz#a184918d288820179c6041bb3ddcc99ce6eea040" + integrity sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA== dependencies: - "@eslint/eslintrc" "^1.3.0" + "@eslint/eslintrc" "^1.3.1" "@humanwhocodes/config-array" "^0.10.4" "@humanwhocodes/gitignore-to-minimatch" "^1.0.2" + "@humanwhocodes/module-importer" "^1.0.1" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" @@ -2039,7 +2045,7 @@ eslint@8.22.0: eslint-scope "^7.1.1" eslint-utils "^3.0.0" eslint-visitor-keys "^3.3.0" - espree "^9.3.3" + espree "^9.4.0" esquery "^1.4.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" @@ -2065,12 +2071,11 @@ eslint@8.22.0: strip-ansi "^6.0.1" strip-json-comments "^3.1.0" text-table "^0.2.0" - v8-compile-cache "^2.0.3" -espree@^9.3.2, espree@^9.3.3: - version "9.3.3" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.3.tgz#2dd37c4162bb05f433ad3c1a52ddf8a49dc08e9d" - integrity sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng== +espree@^9.4.0: + version "9.4.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.4.0.tgz#cd4bc3d6e9336c433265fc0aa016fc1aaf182f8a" + integrity sha512-DQmnRpLj7f6TgN/NYb0MTzJXL+vJF9h3pHy4JhCIs3zwcgez8xmGg3sXHcEO97BrmO2OSvCwMdfdlyl+E9KjOw== dependencies: acorn "^8.8.0" acorn-jsx "^5.3.2" @@ -5269,11 +5274,6 @@ uuid@^3.3.2: resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== -v8-compile-cache@^2.0.3: - version "2.3.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" - integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== - v8-to-istanbul@^8.1.0: version "8.1.1" resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed" From e1f05edba1ba9f510c8c7ca178e91e1f3d5c5a79 Mon Sep 17 00:00:00 2001 From: Kilian Brachtendorf Date: Mon, 29 Aug 2022 11:49:05 +0200 Subject: [PATCH 04/35] update readme links to point to currently supported version of api docs (#982) update support address pointing to 301 redirect address with invalid certificate --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bcb3846..e92b1f3 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ This is the officially supported NodeJS library for using Adyen's APIs. ## Integration The Library supports all APIs under the following services: -* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v50/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v52** +* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v52/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v52** * [Checkout API](https://docs.adyen.com/api-explorer/#/CheckoutService/v69/overview): Our latest integration for accepting online payments. Current supported version: **v69** * [Configuration API](https://docs.adyen.com/api-explorer/#/balanceplatform/v2/overview): The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. Current supported verison: **v2** * [Local/Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/terminal-api-reference): Our point-of-sale integration. * [Management API](https://docs.adyen.com/api-explorer/#/ManagementService/v1/overview): Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. Current supported version **v1** * [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v68/overview): Our classic integration for online payments. Current supported version: **v68** -* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v64/overview): Endpoints for sending funds to your customers. Current supported version: **v68** +* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v68/overview): Endpoints for sending funds to your customers. Current supported version: **v68** * [Platforms APIs](https://docs.adyen.com/platforms/api): Set of APIs when using Adyen for Platforms. This API is used for the classic integration. * [Account API](https://docs.adyen.com/api-explorer/#/Account/v6/overview) Current supported version: **v6** * [Fund API](https://docs.adyen.com/api-explorer/#/Fund/v6/overview) Current supported version: **v6** @@ -131,7 +131,7 @@ We strongly encourage you to join us in contributing to this repository so every Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how to create a pull request. ## Support -If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://support.adyen.com/). +If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://www.adyen.help). ## Licence This repository is available under the [MIT license](LICENSE). From 022f85b3437cc21b3bf72c8a95c5bd46b76a8dc5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Sep 2022 04:02:28 +0000 Subject: [PATCH 05/35] Bump release-it from 15.4.0 to 15.4.1 Bumps [release-it](https://github.com/release-it/release-it) from 15.4.0 to 15.4.1. - [Release notes](https://github.com/release-it/release-it/releases) - [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/release-it/release-it/compare/15.4.0...15.4.1) --- updated-dependencies: - dependency-name: release-it dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 89 +++++++++++++++++++++++++++++----------------------- 2 files changed, 50 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index bed0ad1..66e3c7c 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "kind-of": "^6.0.3", "minimist": ">=1.2.3", "nock": "13.2.9", - "release-it": "15.4.0", + "release-it": "15.4.1", "ts-auto-mock": "^3.3.5", "ts-jest": "^27.0.4", "ts-loader": "8.0.10", diff --git a/yarn.lock b/yarn.lock index 767fbc8..2de6348 100644 --- a/yarn.lock +++ b/yarn.lock @@ -636,12 +636,17 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.8.0.tgz#f4708cf948724d6e8f7d878cfd91584c1c5c0523" integrity sha512-ydcKLs2KKcxlhpdWLzJxEBDEk/U5MUeqtqkXlrtAUXXFPs6vLl1PEGghFC/BbpleosB7iXs0Z4P2DGe7ZT5ZNg== -"@octokit/plugin-paginate-rest@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-3.0.0.tgz#df779de686aeb21b5e776e4318defc33b0418566" - integrity sha512-fvw0Q5IXnn60D32sKeLIxgXCEZ7BTSAjJd8cFAE6QU5qUp0xo7LjFUjjX1J5D7HgN355CN4EXE4+Q1/96JaNUA== +"@octokit/openapi-types@^13.6.0": + version "13.6.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-13.6.0.tgz#381884008e23fd82fd444553f6b4dcd24a5c4a4d" + integrity sha512-bxftLwoZ2J6zsU1rzRvk0O32j7lVB0NWWn+P5CDHn9zPzytasR3hdAeXlTngRDkqv1LyEeuy5psVnDkmOSwrcQ== + +"@octokit/plugin-paginate-rest@^4.0.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-4.2.0.tgz#41fc6ca312446a85a4275aca698b4d9c4c5e06ab" + integrity sha512-8otLCIK9esfmOCY14CBnG/xPqv0paf14rc+s9tHpbOpeFwrv5CnECKW1qdqMAT60ngAa9eB1bKQ+l2YCpi0HPQ== dependencies: - "@octokit/types" "^6.39.0" + "@octokit/types" "^7.2.0" "@octokit/plugin-request-log@^1.0.4": version "1.0.4" @@ -677,17 +682,17 @@ node-fetch "^2.6.7" universal-user-agent "^6.0.0" -"@octokit/rest@19.0.3": - version "19.0.3" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-19.0.3.tgz#b9a4e8dc8d53e030d611c053153ee6045f080f02" - integrity sha512-5arkTsnnRT7/sbI4fqgSJ35KiFaN7zQm0uQiQtivNQLI8RQx8EHwJCajcTUwmaCMNDg7tdCvqAnc7uvHHPxrtQ== +"@octokit/rest@19.0.4": + version "19.0.4" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-19.0.4.tgz#fd8bed1cefffa486e9ae46a9dc608ce81bcfcbdd" + integrity sha512-LwG668+6lE8zlSYOfwPj4FxWdv/qFXYBpv79TWIQEpBLKA9D/IMcWsF/U9RGpA3YqMVDiTxpgVpEW3zTFfPFTA== dependencies: "@octokit/core" "^4.0.0" - "@octokit/plugin-paginate-rest" "^3.0.0" + "@octokit/plugin-paginate-rest" "^4.0.0" "@octokit/plugin-request-log" "^1.0.4" "@octokit/plugin-rest-endpoint-methods" "^6.0.0" -"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.39.0": +"@octokit/types@^6.0.3", "@octokit/types@^6.16.1": version "6.39.0" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.39.0.tgz#46ce28ca59a3d4bac0e487015949008302e78eee" integrity sha512-Mq4N9sOAYCitTsBtDdRVrBE80lIrMBhL9Jbrw0d+j96BAzlq4V+GLHFJbHokEsVvO/9tQupQdoFdgVYhD2C8UQ== @@ -701,6 +706,13 @@ dependencies: "@octokit/openapi-types" "^12.10.0" +"@octokit/types@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-7.2.0.tgz#7ee0fc27f9f463d7ccf12ca5956988d498b3c6c4" + integrity sha512-pYQ/a1U6mHptwhGyp6SvsiM4bWP2s3V95olUeTxas85D/2kN78yN5C8cGN+P4LwJSWUqIEyvq0Qn2WUn6NQRjw== + dependencies: + "@octokit/openapi-types" "^13.6.0" + "@pnpm/network.ca-file@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz#16f88d057c68cd5419c1ef3dfa281296ea80b047" @@ -2457,20 +2469,20 @@ getpass@^0.1.1: dependencies: assert-plus "^1.0.0" -git-up@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/git-up/-/git-up-6.0.0.tgz#dbd6e4eee270338be847a0601e6d0763c90b74db" - integrity sha512-6RUFSNd1c/D0xtGnyWN2sxza2bZtZ/EmI9448n6rCZruFwV/ezeEn2fJP7XnUQGwf0RAtd/mmUCbtH6JPYA2SA== +git-up@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/git-up/-/git-up-7.0.0.tgz#bace30786e36f56ea341b6f69adfd83286337467" + integrity sha512-ONdIrbBCFusq1Oy0sC71F5azx8bVkvtZtMJAsv+a6lz5YAmbNnLD6HAB4gptHZVLPR8S2/kVN6Gab7lryq5+lQ== dependencies: is-ssh "^1.4.0" - parse-url "^7.0.2" + parse-url "^8.1.0" -git-url-parse@12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-12.0.0.tgz#4ba70bc1e99138321c57e3765aaf7428e5abb793" - integrity sha512-I6LMWsxV87vysX1WfsoglXsXg6GjQRKq7+Dgiseo+h0skmp5Hp2rzmcEIRQot9CPA+uzU7x1x7jZdqvTFGnB+Q== +git-url-parse@13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-13.0.0.tgz#9a18d0eaec579fb6379c368aecb09f00b544669c" + integrity sha512-X1kozCqKL82dMrCLi4vie9SHDC+QugKskAMs4VUbIkhURKg5yDwxDmf6Ixg73J+/xVgK5TXKhzn8a94nHJHpnA== dependencies: - git-up "^6.0.0" + git-up "^7.0.0" glob-parent@^5.1.2: version "5.1.2" @@ -3968,7 +3980,7 @@ normalize-path@^3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -normalize-url@^6.0.1, normalize-url@^6.1.0: +normalize-url@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== @@ -4195,22 +4207,19 @@ parse-json@^5.0.0, parse-json@^5.2.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-5.0.0.tgz#f933152f3c6d34f4cf36cfc3d07b138ac113649d" - integrity sha512-qOpH55/+ZJ4jUu/oLO+ifUKjFPNZGfnPJtzvGzKN/4oLMil5m9OH4VpOj6++9/ytJcfks4kzH2hhi87GL/OU9A== +parse-path@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-7.0.0.tgz#605a2d58d0a749c8594405d8cc3a2bf76d16099b" + integrity sha512-Euf9GG8WT9CdqwuWJGdf3RkUcTBArppHABkO7Lm8IzRQp0e2r/kkFnmhu4TSK30Wcu5rVAZLmfPKSBBi9tWFog== dependencies: protocols "^2.0.0" -parse-url@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-7.0.2.tgz#d21232417199b8d371c6aec0cedf1406fd6393f0" - integrity sha512-PqO4Z0eCiQ08Wj6QQmrmp5YTTxpYfONdOEamrtvK63AmzXpcavIVQubGHxOEwiIoDZFb8uDOoQFS0NCcjqIYQg== +parse-url@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-8.1.0.tgz#972e0827ed4b57fc85f0ea6b0d839f0d8a57a57d" + integrity sha512-xDvOoLU5XRrcOZvnI6b8zA6n9O9ejNk/GExuz1yBuWUGn9KA97GI6HTs6u02wKara1CeVmZhH+0TZFdWScR89w== dependencies: - is-ssh "^1.4.0" - normalize-url "^6.1.0" - parse-path "^5.0.0" - protocols "^2.0.1" + parse-path "^7.0.0" parse5@6.0.1: version "6.0.1" @@ -4489,19 +4498,19 @@ registry-url@^6.0.0: dependencies: rc "1.2.8" -release-it@15.4.0: - version "15.4.0" - resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.4.0.tgz#dad3909a40a465681e085ed0fdc006322f681459" - integrity sha512-l7ZHfg5SHXWaAQy5gUS1dowryqjLevpXKvyNt8V7QCqqGQO/IvQEfLnc5xx4unBgJvxjt/X2f9KZ8FOzRnaT9w== +release-it@15.4.1: + version "15.4.1" + resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.4.1.tgz#bf9302124405e57401bd10bd635d9458b30faf15" + integrity sha512-w6adXfE+bN/fdcG1KehgS7gYcTfZLYIPml4jPOUEtYQ6NJyaiCtCF/ks032w1jf6EUgvGgWruRP+2TyyyDDBgA== dependencies: "@iarna/toml" "2.2.5" - "@octokit/rest" "19.0.3" + "@octokit/rest" "19.0.4" async-retry "1.3.3" chalk "5.0.1" cosmiconfig "7.0.1" execa "6.1.0" form-data "4.0.0" - git-url-parse "12.0.0" + git-url-parse "13.0.0" globby "13.1.2" got "12.3.1" inquirer "9.1.0" From b955690774d2341267baea8b30692b2dc4fb819a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Sep 2022 04:02:44 +0000 Subject: [PATCH 06/35] Bump @typescript-eslint/parser from 5.35.1 to 5.36.2 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.35.1 to 5.36.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.36.2/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 48 +++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index bed0ad1..72f8a34 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@types/jest": "27.5.0", "@types/nock": "11.1.0", "@typescript-eslint/eslint-plugin": "5.35.1", - "@typescript-eslint/parser": "5.35.1", + "@typescript-eslint/parser": "5.36.2", "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", diff --git a/yarn.lock b/yarn.lock index 767fbc8..6a7ff71 100644 --- a/yarn.lock +++ b/yarn.lock @@ -912,14 +912,14 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.35.1.tgz#bf2ee2ebeaa0a0567213748243fb4eec2857f04f" - integrity sha512-XL2TBTSrh3yWAsMYpKseBYTVpvudNf69rPOWXWVBI08My2JVT5jR66eTt4IgQFHA/giiKJW5dUD4x/ZviCKyGg== +"@typescript-eslint/parser@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.36.2.tgz#3ddf323d3ac85a25295a55fcb9c7a49ab4680ddd" + integrity sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA== dependencies: - "@typescript-eslint/scope-manager" "5.35.1" - "@typescript-eslint/types" "5.35.1" - "@typescript-eslint/typescript-estree" "5.35.1" + "@typescript-eslint/scope-manager" "5.36.2" + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/typescript-estree" "5.36.2" debug "^4.3.4" "@typescript-eslint/scope-manager@5.35.1": @@ -930,6 +930,14 @@ "@typescript-eslint/types" "5.35.1" "@typescript-eslint/visitor-keys" "5.35.1" +"@typescript-eslint/scope-manager@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz#a75eb588a3879ae659514780831370642505d1cd" + integrity sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw== + dependencies: + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/visitor-keys" "5.36.2" + "@typescript-eslint/type-utils@5.35.1": version "5.35.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.35.1.tgz#d50903b56758c5c8fc3be52b3be40569f27f9c4a" @@ -944,6 +952,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.35.1.tgz#af355fe52a0cc88301e889bc4ada72f279b63d61" integrity sha512-FDaujtsH07VHzG0gQ6NDkVVhi1+rhq0qEvzHdJAQjysN+LHDCKDKCBRlZFFE0ec0jKxiv0hN63SNfExy0KrbQQ== +"@typescript-eslint/types@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.36.2.tgz#a5066e500ebcfcee36694186ccc57b955c05faf9" + integrity sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ== + "@typescript-eslint/typescript-estree@5.35.1": version "5.35.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.35.1.tgz#db878a39a0dbdc9bb133f11cdad451770bfba211" @@ -957,6 +970,19 @@ semver "^7.3.7" tsutils "^3.21.0" +"@typescript-eslint/typescript-estree@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz#0c93418b36c53ba0bc34c61fe9405c4d1d8fe560" + integrity sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w== + dependencies: + "@typescript-eslint/types" "5.36.2" + "@typescript-eslint/visitor-keys" "5.36.2" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + "@typescript-eslint/utils@5.35.1": version "5.35.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.35.1.tgz#ae1399afbfd6aa7d0ed1b7d941e9758d950250eb" @@ -977,6 +1003,14 @@ "@typescript-eslint/types" "5.35.1" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.36.2": + version "5.36.2" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz#2f8f78da0a3bad3320d2ac24965791ac39dace5a" + integrity sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A== + dependencies: + "@typescript-eslint/types" "5.36.2" + eslint-visitor-keys "^3.3.0" + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" From 1d365df9c8f0fe1804255d85aee5843c91485320 Mon Sep 17 00:00:00 2001 From: Jilling Kingma Date: Wed, 14 Sep 2022 09:34:55 +0200 Subject: [PATCH 07/35] Added jsonResponse empty string catch --- src/services/terminalLocalAPI.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts index 3d2a86e..8899bf6 100644 --- a/src/services/terminalLocalAPI.ts +++ b/src/services/terminalLocalAPI.ts @@ -45,7 +45,7 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { public async request( terminalApiRequest: TerminalApiRequest, securityKey: SecurityKey, - ): Promise { + ): Promise { const formattedRequest = ObjectSerializer.serialize(terminalApiRequest, "TerminalApiRequest"); const saleToPoiSecuredMessage: SaleToPOISecuredMessage = NexoCrypto.encrypt( terminalApiRequest.SaleToPOIRequest.MessageHeader, @@ -62,15 +62,20 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { securedPaymentRequest ); - const terminalApiSecuredResponse: TerminalApiSecuredResponse = - ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse"); + // Catch an empty jsonResponse (i.e. Abort Request) + if(jsonResponse == ""){ + return Promise.resolve(); + } else { + const terminalApiSecuredResponse: TerminalApiSecuredResponse = + ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse"); - const response = this.nexoCrypto.decrypt( - terminalApiSecuredResponse.SaleToPOIResponse, - securityKey, - ); + const response = this.nexoCrypto.decrypt( + terminalApiSecuredResponse.SaleToPOIResponse, + securityKey, + ); - return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse"); + return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse"); + } } } From 9a12c9e46b721658d6f4ed171c26b68778faaa84 Mon Sep 17 00:00:00 2001 From: Jilling Kingma Date: Mon, 19 Sep 2022 11:20:46 +0200 Subject: [PATCH 08/35] Changed solution to try catch block and custom error --- src/services/terminalLocalAPI.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts index 8899bf6..218e49c 100644 --- a/src/services/terminalLocalAPI.ts +++ b/src/services/terminalLocalAPI.ts @@ -45,7 +45,7 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { public async request( terminalApiRequest: TerminalApiRequest, securityKey: SecurityKey, - ): Promise { + ): Promise { const formattedRequest = ObjectSerializer.serialize(terminalApiRequest, "TerminalApiRequest"); const saleToPoiSecuredMessage: SaleToPOISecuredMessage = NexoCrypto.encrypt( terminalApiRequest.SaleToPOIRequest.MessageHeader, @@ -62,19 +62,22 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { securedPaymentRequest ); + console.log("jsonresponse" + jsonResponse.toString()); // Catch an empty jsonResponse (i.e. Abort Request) - if(jsonResponse == ""){ - return Promise.resolve(); - } else { + + try { const terminalApiSecuredResponse: TerminalApiSecuredResponse = ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse"); const response = this.nexoCrypto.decrypt( terminalApiSecuredResponse.SaleToPOIResponse, securityKey, - ); - + ); return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse"); + + } catch (e) { + const requestType = terminalApiRequest.SaleToPOIRequest.MessageHeader.MessageCategory; + throw new Error(`Request of type ${requestType} has no response!`); } } } From e36af2f7c751bc4c0cf94e881ff97af8c3697096 Mon Sep 17 00:00:00 2001 From: Jilling Kingma Date: Mon, 19 Sep 2022 13:28:56 +0200 Subject: [PATCH 09/35] add catch block for nexocryptoexception --- src/services/terminalLocalAPI.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts index 218e49c..232cb36 100644 --- a/src/services/terminalLocalAPI.ts +++ b/src/services/terminalLocalAPI.ts @@ -31,6 +31,7 @@ import { TerminalApiSecuredRequest, TerminalApiSecuredResponse } from "../typings/terminal/models"; +import NexoCryptoException from "./exception/nexoCryptoException"; class TerminalLocalAPI extends ApiKeyAuthenticatedService { private readonly localRequest: LocalRequest; @@ -62,9 +63,10 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { securedPaymentRequest ); - console.log("jsonresponse" + jsonResponse.toString()); - // Catch an empty jsonResponse (i.e. Abort Request) + console.log("jsonresponse type" + typeof jsonResponse); + console.log(jsonResponse); + // Catch an empty jsonResponse (i.e. Abort Request) try { const terminalApiSecuredResponse: TerminalApiSecuredResponse = ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse"); @@ -76,8 +78,12 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse"); } catch (e) { - const requestType = terminalApiRequest.SaleToPOIRequest.MessageHeader.MessageCategory; - throw new Error(`Request of type ${requestType} has no response!`); + if(e instanceof NexoCryptoException){ + throw e; + } else { + const requestType = terminalApiRequest.SaleToPOIRequest.MessageHeader.MessageCategory; + throw new Error(`Request of type ${requestType} has no response!`); + } } } } From 692a13305833e085e4d39c880d511ff005e94930 Mon Sep 17 00:00:00 2001 From: Jilling Kingma Date: Mon, 19 Sep 2022 14:18:46 +0200 Subject: [PATCH 10/35] return undefined response item --- src/services/terminalLocalAPI.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts index 232cb36..4b4ab0d 100644 --- a/src/services/terminalLocalAPI.ts +++ b/src/services/terminalLocalAPI.ts @@ -32,6 +32,8 @@ import { TerminalApiSecuredResponse } from "../typings/terminal/models"; import NexoCryptoException from "./exception/nexoCryptoException"; +import HttpClientException from "../httpClient/httpClientException"; +import apiException from "./exception/apiException"; class TerminalLocalAPI extends ApiKeyAuthenticatedService { private readonly localRequest: LocalRequest; @@ -58,16 +60,13 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { SaleToPOIRequest: saleToPoiSecuredMessage, }, "TerminalApiSecuredRequest"); - const jsonResponse = await getJsonResponse( - this.localRequest, - securedPaymentRequest - ); - - console.log("jsonresponse type" + typeof jsonResponse); - console.log(jsonResponse); - - // Catch an empty jsonResponse (i.e. Abort Request) + // Catch Exceptions and an empty jsonResponse (i.e. Abort Request) try { + const jsonResponse = await getJsonResponse( + this.localRequest, + securedPaymentRequest + ); + const terminalApiSecuredResponse: TerminalApiSecuredResponse = ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse"); @@ -78,11 +77,10 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse"); } catch (e) { - if(e instanceof NexoCryptoException){ + if(e instanceof NexoCryptoException || e instanceof HttpClientException || e instanceof apiException) { throw e; } else { - const requestType = terminalApiRequest.SaleToPOIRequest.MessageHeader.MessageCategory; - throw new Error(`Request of type ${requestType} has no response!`); + return new TerminalApiResponse(); } } } From aefb0e5e1967a0d3a211a496f561c2eddd68c2d1 Mon Sep 17 00:00:00 2001 From: Jilling Kingma Date: Wed, 28 Sep 2022 11:05:55 +0200 Subject: [PATCH 11/35] made simple if statement instead of catch block --- src/services/terminalLocalAPI.ts | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts index 4b4ab0d..b308f79 100644 --- a/src/services/terminalLocalAPI.ts +++ b/src/services/terminalLocalAPI.ts @@ -31,9 +31,6 @@ import { TerminalApiSecuredRequest, TerminalApiSecuredResponse } from "../typings/terminal/models"; -import NexoCryptoException from "./exception/nexoCryptoException"; -import HttpClientException from "../httpClient/httpClientException"; -import apiException from "./exception/apiException"; class TerminalLocalAPI extends ApiKeyAuthenticatedService { private readonly localRequest: LocalRequest; @@ -60,13 +57,15 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { SaleToPOIRequest: saleToPoiSecuredMessage, }, "TerminalApiSecuredRequest"); - // Catch Exceptions and an empty jsonResponse (i.e. Abort Request) - try { - const jsonResponse = await getJsonResponse( - this.localRequest, - securedPaymentRequest - ); + const jsonResponse = await getJsonResponse( + this.localRequest, + securedPaymentRequest + ); + // Catch an empty jsonResponse (i.e. Abort Request) + if(!jsonResponse) { + return new TerminalApiResponse(); + } else { const terminalApiSecuredResponse: TerminalApiSecuredResponse = ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse"); @@ -75,13 +74,6 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { securityKey, ); return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse"); - - } catch (e) { - if(e instanceof NexoCryptoException || e instanceof HttpClientException || e instanceof apiException) { - throw e; - } else { - return new TerminalApiResponse(); - } } } } From 0138e148e799129bcdb3c420ba34d660483393f6 Mon Sep 17 00:00:00 2001 From: Michael Paul Date: Wed, 28 Sep 2022 15:34:33 +0200 Subject: [PATCH 12/35] PW-7094: Dynamic title and body for automatic PR (#1006) --- .github/workflows/models.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/models.yml b/.github/workflows/models.yml index c1ccdf7..9ad33ec 100644 --- a/.github/workflows/models.yml +++ b/.github/workflows/models.yml @@ -8,8 +8,14 @@ jobs: name: Generate Models steps: - uses: actions/checkout@v3 - - name: Generate models - run: make models + - run: make models + - name: Set PR variables + id: vars + run: | + cd build/spec + echo ::set-output name=pr_title::"Update models" + echo ::set-output name=pr_body::"OpenAPI spec or templates produced new models on $(date +%d-%m-%Y) \ + by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))." - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: @@ -18,7 +24,7 @@ jobs: author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }} base: develop branch: automation/models - title: Update models - body: OpenAPI spec or templates produced new models. + title: ${{ steps.vars.outputs.pr_title }} + body: ${{ steps.vars.outputs.pr_body }} add-paths: | src/typings From ad5559c55af0b4e14acfc5a9f1ad6b825f8e7fa0 Mon Sep 17 00:00:00 2001 From: jillingk <93914435+jillingk@users.noreply.github.com> Date: Fri, 30 Sep 2022 13:48:35 +0200 Subject: [PATCH 13/35] [PW-6847] Add support for LEM endpoints (#999) * Generate models and add services * Makefile changes and document * PW-6847: Mocks * Update src/__tests__/legalEntityManagement.spec.ts Co-authored-by: Michael Paul * small fix and renames * Update src/__tests__/balancePlatform.spec.ts Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> * modified README and index * Update src/services/resource/legalEntityManagementResource.ts Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> * Update src/services/resource/legalEntityManagementResource.ts Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> Co-authored-by: michaelpa Co-authored-by: Michael Paul Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> --- Makefile | 3 +- README.md | 3 +- src/__mocks__/base.ts | 1 + .../legalEntityManagement/requests.ts | 233 +++++++++++++ .../legalEntityManagement/responses.ts | 241 +++++++++++++ src/__tests__/legalEntityManagement.spec.ts | 326 ++++++++++++++++++ src/client.ts | 8 +- src/config.ts | 3 + src/services/legalEntityManagement.ts | 36 ++ .../businessLineService.ts | 42 +++ .../legalEntityManagement/documents.ts | 49 +++ .../hostedOnboardingPage.ts | 40 +++ .../legalEntityManagement/legalEntities.ts | 50 +++ .../transferInstruments.ts | 49 +++ .../resource/legalEntityManagementResource.ts | 14 + src/typings/index.ts | 1 + src/typings/legalEntityManagement/address.ts | 75 ++++ .../legalEntityManagement/attachment.ts | 66 ++++ .../legalEntityManagement/bankAccountInfo.ts | 120 +++++++ .../legalEntityManagement/birthData.ts | 30 ++ .../legalEntityManagement/businessLine.ts | 90 +++++ .../legalEntityManagement/businessLineInfo.ts | 81 +++++ .../businessLineInfoUpdate.ts | 81 +++++ .../legalEntityManagement/businessLines.ts | 31 ++ src/typings/legalEntityManagement/document.ts | 133 +++++++ .../documentReference.ts | 48 +++ .../legalEntityManagement/entityReference.ts | 30 ++ .../genericEntityInfo.ts | 52 +++ .../identificationData.ts | 92 +++++ .../legalEntityManagement/individual.ts | 91 +++++ .../legalEntityManagement/legalEntity.ts | 117 +++++++ .../legalEntityAssociation.ts | 82 +++++ .../legalEntityManagement/legalEntityInfo.ts | 79 +++++ src/typings/legalEntityManagement/models.ts | 267 ++++++++++++++ src/typings/legalEntityManagement/name.ts | 48 +++ .../legalEntityManagement/onboardingLink.ts | 30 ++ .../onboardingLinkInfo.ts | 48 +++ .../legalEntityManagement/onboardingTheme.ts | 66 ++++ .../legalEntityManagement/onboardingThemes.ts | 46 +++ .../legalEntityManagement/organization.ts | 158 +++++++++ .../legalEntityManagement/ownerEntity.ts | 39 +++ .../legalEntityManagement/phoneNumber.ts | 39 +++ .../legalEntityManagement/recurringDetail.ts | 48 +++ .../legalEntityManagement/serviceError.ts | 66 ++++ .../soleProprietorship.ts | 94 +++++ .../legalEntityManagement/sourceOfFunds.ts | 62 ++++ .../legalEntityManagement/stockData.ts | 48 +++ .../legalEntityManagement/taxInformation.ts | 48 +++ .../taxReportingClassification.ts | 80 +++++ .../transferInstrument.ts | 78 +++++ .../transferInstrumentInfo.ts | 59 ++++ src/typings/legalEntityManagement/webData.ts | 30 ++ .../legalEntityManagement/webDataExemption.ts | 35 ++ 53 files changed, 3782 insertions(+), 4 deletions(-) create mode 100644 src/__mocks__/legalEntityManagement/requests.ts create mode 100644 src/__mocks__/legalEntityManagement/responses.ts create mode 100644 src/__tests__/legalEntityManagement.spec.ts create mode 100644 src/services/legalEntityManagement.ts create mode 100644 src/services/legalEntityManagement/businessLineService.ts create mode 100644 src/services/legalEntityManagement/documents.ts create mode 100644 src/services/legalEntityManagement/hostedOnboardingPage.ts create mode 100644 src/services/legalEntityManagement/legalEntities.ts create mode 100644 src/services/legalEntityManagement/transferInstruments.ts create mode 100644 src/services/resource/legalEntityManagementResource.ts create mode 100644 src/typings/legalEntityManagement/address.ts create mode 100644 src/typings/legalEntityManagement/attachment.ts create mode 100644 src/typings/legalEntityManagement/bankAccountInfo.ts create mode 100644 src/typings/legalEntityManagement/birthData.ts create mode 100644 src/typings/legalEntityManagement/businessLine.ts create mode 100644 src/typings/legalEntityManagement/businessLineInfo.ts create mode 100644 src/typings/legalEntityManagement/businessLineInfoUpdate.ts create mode 100644 src/typings/legalEntityManagement/businessLines.ts create mode 100644 src/typings/legalEntityManagement/document.ts create mode 100644 src/typings/legalEntityManagement/documentReference.ts create mode 100644 src/typings/legalEntityManagement/entityReference.ts create mode 100644 src/typings/legalEntityManagement/genericEntityInfo.ts create mode 100644 src/typings/legalEntityManagement/identificationData.ts create mode 100644 src/typings/legalEntityManagement/individual.ts create mode 100644 src/typings/legalEntityManagement/legalEntity.ts create mode 100644 src/typings/legalEntityManagement/legalEntityAssociation.ts create mode 100644 src/typings/legalEntityManagement/legalEntityInfo.ts create mode 100644 src/typings/legalEntityManagement/models.ts create mode 100644 src/typings/legalEntityManagement/name.ts create mode 100644 src/typings/legalEntityManagement/onboardingLink.ts create mode 100644 src/typings/legalEntityManagement/onboardingLinkInfo.ts create mode 100644 src/typings/legalEntityManagement/onboardingTheme.ts create mode 100644 src/typings/legalEntityManagement/onboardingThemes.ts create mode 100644 src/typings/legalEntityManagement/organization.ts create mode 100644 src/typings/legalEntityManagement/ownerEntity.ts create mode 100644 src/typings/legalEntityManagement/phoneNumber.ts create mode 100644 src/typings/legalEntityManagement/recurringDetail.ts create mode 100644 src/typings/legalEntityManagement/serviceError.ts create mode 100644 src/typings/legalEntityManagement/soleProprietorship.ts create mode 100644 src/typings/legalEntityManagement/sourceOfFunds.ts create mode 100644 src/typings/legalEntityManagement/stockData.ts create mode 100644 src/typings/legalEntityManagement/taxInformation.ts create mode 100644 src/typings/legalEntityManagement/taxReportingClassification.ts create mode 100644 src/typings/legalEntityManagement/transferInstrument.ts create mode 100644 src/typings/legalEntityManagement/transferInstrumentInfo.ts create mode 100644 src/typings/legalEntityManagement/webData.ts create mode 100644 src/typings/legalEntityManagement/webDataExemption.ts diff --git a/Makefile b/Makefile index 50a0ceb..fd8bd22 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ generator:=typescript-node openapi-generator-cli:=docker run --user $(shell id -u):$(shell id -g) --rm -v ${PWD}:/local -w /local openapitools/openapi-generator-cli:v5.4.0 -services:=binlookup checkout storedValue terminalManagement payments recurring payouts management balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage +services:=binlookup checkout storedValue terminalManagement payments recurring payouts management legalEntityManagement balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage # Generate models (for each service) models: $(services) @@ -13,6 +13,7 @@ payments: spec=PaymentService-v68 recurring: spec=RecurringService-v68 payouts: spec=PayoutService-v68 management: spec=ManagementService-v1 +legalEntityManagement: spec=LegalEntityService-v2 balancePlatform: spec=BalancePlatformService-v2 platformsAccount: spec=AccountService-v6 platformsFund: spec=FundService-v6 diff --git a/README.md b/README.md index e92b1f3..e7dacbe 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ The Library supports all APIs under the following services: * [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v52/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v52** * [Checkout API](https://docs.adyen.com/api-explorer/#/CheckoutService/v69/overview): Our latest integration for accepting online payments. Current supported version: **v69** * [Configuration API](https://docs.adyen.com/api-explorer/#/balanceplatform/v2/overview): The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. Current supported verison: **v2** +* [Legal Entity Management API](https://docs.adyen.com/api-explorer/#/legalentity/v2/overview): Manage legal entities that contain information required for verification. Current supported version: **v2** * [Local/Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/terminal-api-reference): Our point-of-sale integration. * [Management API](https://docs.adyen.com/api-explorer/#/ManagementService/v1/overview): Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. Current supported version **v1** * [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v68/overview): Our classic integration for online payments. Current supported version: **v68** @@ -29,8 +30,6 @@ The Library supports all APIs under the following services: * [Recurring API](https://docs.adyen.com/api-explorer/#/Recurring/v68/overview): Endpoints for managing saved payment details. Current supported version: **v68** * [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api): Manage both online and point-of-sale gift cards and other stored-value cards. Current supported version: **v46** -In addition it supports the following type collections: - * [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6** For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/). diff --git a/src/__mocks__/base.ts b/src/__mocks__/base.ts index d2e6f48..26e1b12 100644 --- a/src/__mocks__/base.ts +++ b/src/__mocks__/base.ts @@ -49,6 +49,7 @@ export const createClient = (apiKey = process.env.ADYEN_API_KEY): Client => { config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST; config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST; config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST; + config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST; return new Client({ config }); }; diff --git a/src/__mocks__/legalEntityManagement/requests.ts b/src/__mocks__/legalEntityManagement/requests.ts new file mode 100644 index 0000000..ba49411 --- /dev/null +++ b/src/__mocks__/legalEntityManagement/requests.ts @@ -0,0 +1,233 @@ + +export const businessLineInfo = { + "capability": "issueBankAccount", + "industryCode": "55", + "webData": [ + { + "webAddress": "https://www.adyen.com" + } + ], + "legalEntityId": "LE322KT223222D5FJ7THR293F", + "sourceOfFunds": { + "type": "business", + "adyenProcessedFunds": "false", + "description": "Funds from my flower shop business" + } +}; + +export const businessLineInfoUpdate = { + "capability": "string", + "industryCode": "string", + "legalEntityId": "string", + "salesChannels": ["string"], + "sourceOfFunds": { + "acquiringBusinessLineId": "string", + "adyenProcessedFunds": false, + "description": "string", + "type": "business" + }, + "webData": [{ "webAddress": "string" }], + "webDataExemption": { "reason": "noOnlinePresence" } +}; + +export const document = { + "attachment": { + "content": "string", + "contentType": "string", + "filename": "string", + "pageName": "string", + "pageType": "string" + }, + "attachments": [{ + "content": "string", + "contentType": "string", + "filename": "string", + "pageName": "string", + "pageType": "string" + }], + "description": "string", + "expiryDate": "string", + "fileName": "string", + "id": "string", + "issuerCountry": "string", + "issuerState": "string", + "number": "string", + "owner": { + "id": "string", + "type": "string" + }, + "type": "bankStatement" +}; + +export const onboardingLinkInfo = { + "locale": "cs-CZ", + "redirectUrl": "https://your.redirect-url.com", + "themeId": "123456789" +}; + +export const legalEntityInfo = { + "type": "individual", + "individual": { + "residentialAddress": { + "city": "San Francisco", + "country": "US", + "postalCode": "94107", + "street": "Brannan Street 274", + "stateOrProvince": "CA" + }, + "phone": { + "countryCode": "US", + "number": "5551231234", + "type": "mobile" + }, + "name": { + "firstName": "Simone", + "lastName": "Hopper" + }, + "birthData": { + "dateOfBirth": "1981-12-01" + }, + "email": "s.hopper@example.com" + } +}; + +export const genericEntityInfo = { + "entityAssociations": [{ + "associatorId": "string", + "entityType": "string", + "jobTitle": "string", + "legalEntityId": "string", + "name": "string", + "type": "signatory" + }], + "individual": { + "birthData": { "dateOfBirth": "string" }, + "email": "string", + "identificationData": { + "expiryDate": "string", + "issuerCountry": "string", + "issuerState": "string", + "nationalIdExempt": false, + "number": "string", + "type": "bankStatement" + }, + "name": { + "firstName": "string", + "infix": "string", + "lastName": "string" + }, + "nationality": "string", + "phone": { + "number": "string", + "type": "string" + }, + "residentialAddress": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "taxInformation": [{ + "country": "string", + "number": "string", + "type": "string" + }], + "webData": { "webAddress": "string" } + }, + "organization": { + "description": "string", + "doingBusinessAs": "string", + "email": "string", + "legalName": "string", + "phone": { + "number": "string", + "type": "string" + }, + "principalPlaceOfBusiness": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registeredAddress": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registrationNumber": "string", + "stockData": { + "marketIdentifier": "string", + "stockNumber": "string", + "tickerSymbol": "string" + }, + "taxInformation": [{ + "country": "string", + "number": "string", + "type": "string" + }], + "taxReportingClassification": { + "businessType": "other", + "financialInstitutionNumber": "string", + "mainSourceOfIncome": "businessOperation", + "type": "nonFinancialNonReportable" + }, + "type": "associationIncorporated", + "vatAbsenceReason": "industryExemption", + "vatNumber": "string", + "webData": { "webAddress": "string" } + }, + "soleProprietorship": { + "countryOfGoverningLaw": "string", + "doingBusinessAs": "string", + "name": "string", + "principalPlaceOfBusiness": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registeredAddress": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registrationNumber": "string", + "vatAbsenceReason": "industryExemption", + "vatNumber": "string" + } +}; + +export const transferInstrumentInfo = { + "bankAccount": { + "accountNumber": "string", + "accountType": "string", + "bankBicSwift": "string", + "bankCity": "string", + "bankCode": "string", + "bankName": "string", + "branchCode": "string", + "checkCode": "string", + "countryCode": "string", + "currencyCode": "string", + "iban": "string" + }, + "legalEntityId": "string", + "recurringDetail": { + "merchantAccount": "string", + "reference": "string", + "shopperReference": "string" + }, + "type": "bankAccount" +}; diff --git a/src/__mocks__/legalEntityManagement/responses.ts b/src/__mocks__/legalEntityManagement/responses.ts new file mode 100644 index 0000000..94e92b4 --- /dev/null +++ b/src/__mocks__/legalEntityManagement/responses.ts @@ -0,0 +1,241 @@ +export const businessLine = { + "capability": "receivePayments", + "id": "123456789", + "industryCode": "123456789", + "legalEntityId": "123456789", + "salesChannels": ["string"], + "sourceOfFunds": { + "acquiringBusinessLineId": "string", + "adyenProcessedFunds": false, + "description": "string", + "type": "business" + }, + "webData": [{ "webAddress": "string" }], + "webDataExemption": { "reason": "noOnlinePresence" } +}; + +export const document = { + "attachment": { + "content": "string", + "contentType": "string", + "filename": "string", + "pageName": "string", + "pageType": "string" + }, + "attachments": [{ + "content": "string", + "contentType": "string", + "filename": "string", + "pageName": "string", + "pageType": "string" + }], + "description": "string", + "expiryDate": "string", + "fileName": "string", + "id": "123456789", + "issuerCountry": "string", + "issuerState": "string", + "number": "string", + "owner": { + "id": "123456789", + "type": "passport" + }, + "type": "driversLicense" +}; + +export const onboardingLink = { "url": "https://your.redirect-url.com" }; + +export const onboardingThemes = { + "next": "string", + "previous": "string", + "themes": [{ + "createdAt": "2022-10-31T01:30:00.000Z", + "description": "string", + "id": "123456789", + "properties": { "sample": "string" }, + "updatedAt": "2022-10-31T01:30:00.000Z" + }] +}; + +export const onboardingTheme = { + "createdAt": "string", + "description": "string", + "id": "123456789", + "properties": { "sample": "string" }, + "updatedAt": "string" +}; + +export const legalEntity = { + "documentDetails": [{ + "active": false, + "fileName": "string", + "id": "string" + }], + "documents": [{ "id": "string" }], + "entityAssociations": [{ + "associatorId": "string", + "entityType": "string", + "jobTitle": "string", + "legalEntityId": "string", + "name": "string", + "type": "signatory" + }], + "id": "123456789", + "individual": { + "birthData": { "dateOfBirth": "string" }, + "email": "string", + "identificationData": { + "expiryDate": "string", + "issuerCountry": "string", + "issuerState": "string", + "nationalIdExempt": false, + "number": "string", + "type": "bankStatement" + }, + "name": { + "firstName": "string", + "infix": "string", + "lastName": "string" + }, + "nationality": "string", + "phone": { + "number": "string", + "type": "string" + }, + "residentialAddress": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "taxInformation": [{ + "country": "string", + "number": "string", + "type": "string" + }], + "webData": { "webAddress": "string" } + }, + "organization": { + "description": "string", + "doingBusinessAs": "string", + "email": "string", + "legalName": "string", + "phone": { + "number": "string", + "type": "string" + }, + "principalPlaceOfBusiness": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registeredAddress": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registrationNumber": "string", + "stockData": { + "marketIdentifier": "string", + "stockNumber": "string", + "tickerSymbol": "string" + }, + "taxInformation": [{ + "country": "string", + "number": "string", + "type": "string" + }], + "taxReportingClassification": { + "businessType": "other", + "financialInstitutionNumber": "string", + "mainSourceOfIncome": "businessOperation", + "type": "nonFinancialNonReportable" + }, + "type": "associationIncorporated", + "vatAbsenceReason": "industryExemption", + "vatNumber": "string", + "webData": { "webAddress": "string" } + }, + "reference": "string", + "soleProprietorship": { + "countryOfGoverningLaw": "string", + "doingBusinessAs": "string", + "name": "string", + "principalPlaceOfBusiness": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registeredAddress": { + "city": "string", + "country": "string", + "postalCode": "string", + "stateOrProvince": "string", + "street": "string", + "street2": "string" + }, + "registrationNumber": "string", + "vatAbsenceReason": "industryExemption", + "vatNumber": "string" + }, + "transferInstruments": [{ "id": "string" }], + "type": "individual" +}; + +export const businessLines = { + "businessLines": [{ + "capability": "receivePayments", + "id": "123456789", + "industryCode": "123456789", + "legalEntityId": "123456789", + "salesChannels": ["string"], + "sourceOfFunds": { + "acquiringBusinessLineId": "string", + "adyenProcessedFunds": false, + "description": "string", + "type": "business" + }, + "webData": [{ "webAddress": "string" }], + "webDataExemption": { "reason": "noOnlinePresence" } + }] +}; + +export const transferInstrument = { + "bankAccount": { + "accountNumber": "string", + "accountType": "string", + "bankBicSwift": "string", + "bankCity": "string", + "bankCode": "string", + "bankName": "string", + "branchCode": "string", + "checkCode": "string", + "countryCode": "string", + "currencyCode": "string", + "iban": "string" + }, + "documentDetails": [{ + "active": false, + "fileName": "string", + "id": "string" + }], + "id": "123456789", + "legalEntityId": "123456789", + "recurringDetail": { + "merchantAccount": "string", + "reference": "string", + "shopperReference": "string" + }, + "type": "bankAccount" +}; diff --git a/src/__tests__/legalEntityManagement.spec.ts b/src/__tests__/legalEntityManagement.spec.ts new file mode 100644 index 0000000..1a41d5a --- /dev/null +++ b/src/__tests__/legalEntityManagement.spec.ts @@ -0,0 +1,326 @@ +import nock from "nock"; +import Client from "../client"; +import {createClient} from "../__mocks__/base"; +import * as models from "../typings/legalEntityManagement/models"; +import {Document, LegalEntityInfo, OnboardingLinkInfo, TransferInstrumentInfo} from "../typings/legalEntityManagement/models"; +import {DocumentUpdate} from "../services/legalEntityManagement/documents"; +import {businessLine, businessLines, document, legalEntity, onboardingLink, onboardingTheme, onboardingThemes, transferInstrument} from "../__mocks__/legalEntityManagement/responses"; +import TransferEnum = TransferInstrumentInfo.TypeEnum; +import TypeEnum = LegalEntityInfo.TypeEnum +import DocEnum = Document.TypeEnum +import {onboardingLinkInfo} from "../__mocks__/legalEntityManagement/requests"; +import LegalEntityManagement from "../services/legalEntityManagement"; + +let client: Client; +let legalEntityManagement: LegalEntityManagement; +let scope: nock.Scope; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + scope = nock(`${client.config.legalEntityManagementEndpoint}/${Client.LEGAL_ENTITY_MANAGEMENT_API_VERSION}`); + legalEntityManagement = new LegalEntityManagement(client); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("Legal Entity Management", (): void => { + + const id = "123456789" + + describe("LegalEntities", (): void => { + it("should support POST /legalEntities", async (): Promise => { + scope.post("/legalEntities") + .reply(200, legalEntity); + + const request: models.LegalEntityInfo = { + type : TypeEnum.Individual, + individual : undefined + }; + + const response: models.LegalEntity = await legalEntityManagement.LegalEntities.create(request); + + expect(response.id).toBe(id); + expect(response.type).toBe("individual"); + }); + + it("should support GET /legalEntities/{id}", async (): Promise => { + scope.get(`/legalEntities/${id}`) + .reply(200, legalEntity); + + const response: models.LegalEntity = await legalEntityManagement.LegalEntities.retrieve("123456789"); + + expect(response.id).toBe(id); + expect(response.type).toBe("individual"); + }); + + it("should support PATCH /legalEntities/{id}", async (): Promise => { + scope.patch(`/legalEntities/${id}`) + .reply(200, legalEntity); + + const request: models.LegalEntityInfo = { + type : TypeEnum.Individual, + individual : undefined + }; + + const response: models.LegalEntity = await legalEntityManagement.LegalEntities.update(id, request); + + expect(response.id).toBe(id); + expect(response.type).toBe("individual"); + }); + + it("should support GET /legalEntities/{id}/BusinessLines", async (): Promise => { + scope.get(`/legalEntities/${id}/businessLines`) + .reply(200, businessLines); + + const response: models.BusinessLines = await legalEntityManagement.LegalEntities.listBusinessLines(id); + + expect(response.businessLines).toEqual( [{ + "capability": "receivePayments", + "id": "123456789", + "industryCode": "123456789", + "legalEntityId": "123456789", + "salesChannels": ["string"], + "sourceOfFunds": { + "acquiringBusinessLineId": "string", + "adyenProcessedFunds": false, + "description": "string", + "type": "business" + }, + "webData": [{ "webAddress": "string" }], + "webDataExemption": { "reason": "noOnlinePresence" } + }]); + }); + + }); + + describe("Transfer Instruments", (): void => { + it("should support POST /transferInstruments", async (): Promise => { + scope.post("/transferInstruments") + .reply(200, transferInstrument); + + const request: models.TransferInstrumentInfo = { + type : TransferEnum.BankAccount, + legalEntityId : id, + bankAccount : {accountNumber: "string", + accountType: "string", + bankBicSwift: "string", + bankCity: "string", + bankCode: "string", + bankName: "string", + branchCode: "string", + checkCode: "string", + countryCode: "string", + currencyCode: "string", + iban: "string" + } + }; + + const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.create(request); + + expect(response.id).toBe(id); + expect(response.type).toBe(TransferEnum.BankAccount); + }); + + it("should support GET /transferInstruments/{id}", async (): Promise => { + scope.get(`/transferInstruments/${id}`) + .reply(200, transferInstrument); + + const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.retrieve(id); + + expect(response.id).toBe(id); + expect(response.type).toBe(TransferEnum.BankAccount); + }); + + it("should support PATCH /transferInstruments/{id}", async (): Promise => { + scope.patch(`/transferInstruments/${id}`) + .reply(200, transferInstrument); + + const request: models.TransferInstrumentInfo = { + type : TransferEnum.BankAccount, + legalEntityId : id, + bankAccount : {accountNumber: "string", + accountType: "string", + bankBicSwift: "string", + bankCity: "string", + bankCode: "string", + bankName: "string", + branchCode: "string", + checkCode: "string", + countryCode: "string", + currencyCode: "string", + iban: "string" + } + }; + + const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.update(id, request); + + expect(response.id).toBe(id); + expect(response.type).toBe(TransferEnum.BankAccount); + }); + + it("should support DELETE /transferInstruments/{id}", async (): Promise => { + scope.delete(`/transferInstruments/${id}`) + .reply(200); + + await legalEntityManagement.TransferInstruments.delete(id); + + expect(200); + }); + }); + + describe("Business Lines", (): void => { + it("should support POST /businessLines", async (): Promise => { + scope.post("/businessLines") + .reply(200, businessLine); + + const request: models.BusinessLineInfo = { + capability: "receivePayments", + industryCode: id, + legalEntityId: id }; + + const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.create(request); + + expect(response.id).toBe(id); + expect(response.capability).toBe("receivePayments"); + expect(response.industryCode).toBe(id); + expect(response.legalEntityId).toBe(id); + }); + + it("should support GET /businessLines/{id}", async (): Promise => { + scope.get(`/businessLines/${id}`) + .reply(200, businessLine); + + const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.retrieve(id); + + expect(response.id).toBe(id); + expect(response.capability).toBe("receivePayments"); + }); + + it("should support PATCH /businessLines/{id}", async (): Promise => { + scope.patch(`/businessLines/${id}`) + .reply(200, businessLine); + + const request: models.BusinessLineInfo = { + capability: "receivePayments", + industryCode: id, + legalEntityId: id }; + + const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.update(id, request); + + expect(response.id).toBe(id); + expect(response.capability).toBe("receivePayments"); + expect(response.industryCode).toBe(id); + expect(response.legalEntityId).toBe(id); + }); + }); + + describe("Documents", (): void => { + it("should support POST /documents", async (): Promise => { + scope.post("/documents") + .reply(200, document); + + const request: DocumentUpdate = { + attachments: [{ + content: "string", + contentType: "string", + filename: "string", + pageName: "string", + pageType: "string" + }], + description: "document", + owner: { + "id": "123456789", + "type": "passport" + }, + type : DocEnum.DriversLicense + }; + + const response: models.Document = await legalEntityManagement.Documents.create(request); + + expect(response.id).toBe(id); + expect(response.type).toBe(DocEnum.DriversLicense); + expect(response.owner).toEqual({id : "123456789", type : "passport" }) + }); + + it("should support GET /documents/{id}", async (): Promise => { + scope.get(`/documents/${id}`) + .reply(200, document); + + const response: models.Document = await legalEntityManagement.Documents.retrieve(id); + + expect(response.id).toBe(id); + expect(response.type).toBe(DocEnum.DriversLicense); + expect(response.owner).toEqual({id : "123456789", type : "passport" }) + }); + + it("should support PATCH /documents/{id}", async (): Promise => { + scope.patch(`/documents/${id}`) + .reply(200, document); + + const request: DocumentUpdate = { + attachments: [{ + content: "string", + contentType: "string", + filename: "string", + pageName: "string", + pageType: "string" + }], + description: "document", + owner: { + "id": "123456789", + "type": "passport" + }, + type : DocEnum.DriversLicense + }; + + const response: models.Document = await legalEntityManagement.Documents.update(id, request); + + expect(response.id).toBe(id); + expect(response.type).toBe(DocEnum.DriversLicense); + expect(response.owner).toEqual({id : "123456789", type : "passport" }) + }); + + it("should support DELETE /documents/{id}", async (): Promise => { + scope.delete(`/documents/${id}`) + .reply(200); + + await legalEntityManagement.Documents.delete(id); + + }); + }); + + describe("OnboardingLinks and Themes", (): void => { + it("should support POST /onboardingLinks", async (): Promise => { + scope.post(`/legalEntities/${id}/onboardingLinks`) + .reply(200, onboardingLink); + + const request: OnboardingLinkInfo = onboardingLinkInfo; + + const response: models.OnboardingLink = await legalEntityManagement.HostedOnboardingPage.create(id, request); + + expect(response.url).toBe("https://your.redirect-url.com"); + }); + + it("should support GET /themes", async (): Promise => { + scope.get(`/themes`) + .reply(200, onboardingThemes); + + const response: models.OnboardingThemes = await legalEntityManagement.HostedOnboardingPage.listThemes(); + + expect(response.themes[0].id).toEqual(id); + }); + + it("should support GET /themes/{id}", async (): Promise => { + scope.get(`/themes/${id}`) + .reply(200, onboardingTheme); + + const response: models.OnboardingTheme = await legalEntityManagement.HostedOnboardingPage.retrieveTheme(id); + expect(response.id).toBe(id); + }); + }); +}); \ No newline at end of file diff --git a/src/client.ts b/src/client.ts index 05ca7ae..addd381 100644 --- a/src/client.ts +++ b/src/client.ts @@ -65,6 +65,10 @@ class Client { public static BALANCE_PLATFORM_API_VERSION = "v2"; public static BALANCE_PLATFORM_API_ENDPOINT_TEST = "https://balanceplatform-api-test.adyen.com/bcl"; public static BALANCE_PLATFORM_API_ENDPOINT_LIVE = "https://balanceplatform-api-live.adyen.com/bcl"; + public static LEGAL_ENTITY_MANAGEMENT_API_VERSION = "v2"; + public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST = "https://kyc-test.adyen.com/lem"; + public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE = "https://kyc-live.adyen.com/lem"; + private _httpClient!: ClientInterface; public config: Config; @@ -108,6 +112,7 @@ class Client { this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST; this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST; this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST; + this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST } else if (environment === "LIVE") { this.config.endpoint = Client.ENDPOINT_LIVE; this.config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_LIVE; @@ -118,6 +123,7 @@ class Client { this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_LIVE; this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_LIVE; this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_LIVE; + this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE if (liveEndpointUrlPrefix) { this.config.endpoint = @@ -153,4 +159,4 @@ class Client { } } -export default Client; +export default Client; \ No newline at end of file diff --git a/src/config.ts b/src/config.ts index bba4d54..48d29bd 100644 --- a/src/config.ts +++ b/src/config.ts @@ -39,6 +39,7 @@ interface ConfigConstructor { terminalManagementEndpoint?: string; managementEndpoint?: string; balancePlatformEndpoint?: string; + legalEntityManagementEndpoint?: string; } class Config { @@ -68,6 +69,7 @@ class Config { public terminalManagementEndpoint?: string; public managementEndpoint?: string; public balancePlatformEndpoint?: string; + public legalEntityManagementEndpoint?: string; public constructor(options: ConfigConstructor = {}) { if (options.username) this.username = options.username; @@ -92,6 +94,7 @@ class Config { if (options.terminalManagementEndpoint) this.terminalManagementEndpoint = options.terminalManagementEndpoint; if (options.managementEndpoint) this.managementEndpoint = options.managementEndpoint; if (options.balancePlatformEndpoint) this.balancePlatformEndpoint = options.balancePlatformEndpoint; + if (options.legalEntityManagementEndpoint) this.legalEntityManagementEndpoint = options.legalEntityManagementEndpoint; } public set checkoutEndpoint(checkoutEndpoint: string | undefined) { diff --git a/src/services/legalEntityManagement.ts b/src/services/legalEntityManagement.ts new file mode 100644 index 0000000..acdfe57 --- /dev/null +++ b/src/services/legalEntityManagement.ts @@ -0,0 +1,36 @@ +import Service from "../service"; +import Client from "../client"; +import LegalEntities from "./legalEntityManagement/legalEntities"; +import OnboardingPage from "./legalEntityManagement/hostedOnboardingPage"; +import TransferInstruments from "./legalEntityManagement/transferInstruments"; +import BusinessLineService from "./legalEntityManagement/businessLineService"; +import Documents from "./legalEntityManagement/documents"; + +class LegalEntityManagement extends Service { + public constructor(client: Client) { + super(client); + } + + public get LegalEntities() { + return new LegalEntities(this.client); + } + + public get TransferInstruments() { + return new TransferInstruments(this.client); + } + + public get BusinessLineService() { + return new BusinessLineService(this.client); + } + + public get Documents() { + return new Documents(this.client); + } + + public get HostedOnboardingPage() { + return new OnboardingPage(this.client); + } + +} + +export default LegalEntityManagement; \ No newline at end of file diff --git a/src/services/legalEntityManagement/businessLineService.ts b/src/services/legalEntityManagement/businessLineService.ts new file mode 100644 index 0000000..0b1117e --- /dev/null +++ b/src/services/legalEntityManagement/businessLineService.ts @@ -0,0 +1,42 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import LegalEntityManagementResource from "../resource/legalEntityManagementResource"; +import { + BusinessLine, + BusinessLineInfo, BusinessLineInfoUpdate, + ObjectSerializer +} from "../../typings/legalEntityManagement/models"; + +class BusinessLineService extends Service { + public async create(request: BusinessLineInfo): Promise { + const resource = new LegalEntityManagementResource(this, "/businessLines"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "BusinessLine"); + } + + public async retrieve(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/businessLines/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "BusinessLine"); + } + + public async update(id: string, request: BusinessLineInfoUpdate): Promise { + const resource = new LegalEntityManagementResource(this, `/businessLines/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "BusinessLine"); + } +} + +export default BusinessLineService; \ No newline at end of file diff --git a/src/services/legalEntityManagement/documents.ts b/src/services/legalEntityManagement/documents.ts new file mode 100644 index 0000000..480971b --- /dev/null +++ b/src/services/legalEntityManagement/documents.ts @@ -0,0 +1,49 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import LegalEntityManagementResource from "../resource/legalEntityManagementResource"; +import {Document, ObjectSerializer} from "../../typings/legalEntityManagement/models"; + +export type DocumentUpdate = Omit + +class Documents extends Service { + public async create(request: DocumentUpdate): Promise { + const resource = new LegalEntityManagementResource(this, "/documents"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "Document"); + } + + public async retrieve(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/documents/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "Document"); + } + + public async update(id: string, request: DocumentUpdate): Promise { + const resource = new LegalEntityManagementResource(this, `/documents/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "Document"); + } + + public async delete(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/documents/${id}`); + await getJsonResponse( + resource, + "", + {method: "DELETE" } + ); + } +} + +export default Documents; \ No newline at end of file diff --git a/src/services/legalEntityManagement/hostedOnboardingPage.ts b/src/services/legalEntityManagement/hostedOnboardingPage.ts new file mode 100644 index 0000000..4b1e100 --- /dev/null +++ b/src/services/legalEntityManagement/hostedOnboardingPage.ts @@ -0,0 +1,40 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import LegalEntityManagementResource from "../resource/legalEntityManagementResource"; +import {OnboardingLinkInfo} from "../../typings/legalEntityManagement/onboardingLinkInfo"; +import {OnboardingLink} from "../../typings/legalEntityManagement/onboardingLink"; +import {ObjectSerializer, OnboardingTheme, OnboardingThemes} from "../../typings/legalEntityManagement/models"; + +class HostedOnboardingPage extends Service { + public async create(id: string, request: OnboardingLinkInfo): Promise { + const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}/onboardingLinks`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "OnboardingLink"); + } + + public async listThemes(): Promise { + const resource = new LegalEntityManagementResource(this, "/themes"); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "OnboardingThemes"); + } + + public async retrieveTheme(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/themes/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "OnboardingTheme"); + } +} + +export default HostedOnboardingPage; \ No newline at end of file diff --git a/src/services/legalEntityManagement/legalEntities.ts b/src/services/legalEntityManagement/legalEntities.ts new file mode 100644 index 0000000..edb9225 --- /dev/null +++ b/src/services/legalEntityManagement/legalEntities.ts @@ -0,0 +1,50 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import LegalEntityManagementResource from "../resource/legalEntityManagementResource"; +import {LegalEntity} from "../../typings/legalEntityManagement/legalEntity"; +import {LegalEntityInfo} from "../../typings/legalEntityManagement/legalEntityInfo"; +import {BusinessLines, ObjectSerializer} from "../../typings/legalEntityManagement/models"; + +class LegalEntities extends Service { + public async create(request: LegalEntityInfo): Promise { + const resource = new LegalEntityManagementResource(this, "/legalEntities"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "LegalEntity"); + } + + public async retrieve(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "LegalEntity"); + } + + public async update(id: string, request: LegalEntityInfo): Promise { + const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "LegalEntity"); + } + + public async listBusinessLines(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}/businessLines`); + const response = await getJsonResponse( + resource, + "", + {method: "GET" } + ); + return ObjectSerializer.deserialize(response, "BusinessLines"); + } +} + +export default LegalEntities; \ No newline at end of file diff --git a/src/services/legalEntityManagement/transferInstruments.ts b/src/services/legalEntityManagement/transferInstruments.ts new file mode 100644 index 0000000..0012c2d --- /dev/null +++ b/src/services/legalEntityManagement/transferInstruments.ts @@ -0,0 +1,49 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import LegalEntityManagementResource from "../resource/legalEntityManagementResource"; +import {TransferInstrumentInfo} from "../../typings/legalEntityManagement/transferInstrumentInfo"; +import {TransferInstrument} from "../../typings/legalEntityManagement/transferInstrument"; +import {ObjectSerializer} from "../../typings/legalEntityManagement/models"; + +class TransferInstruments extends Service { + public async create(request: TransferInstrumentInfo): Promise { + const resource = new LegalEntityManagementResource(this, "/transferInstruments"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "TransferInstrument"); + } + + public async retrieve(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/transferInstruments/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TransferInstrument"); + } + + public async update(id: string, request: TransferInstrumentInfo): Promise { + const resource = new LegalEntityManagementResource(this, `/transferInstruments/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "TransferInstrument"); + } + + public async delete(id: string): Promise { + const resource = new LegalEntityManagementResource(this, `/transferInstruments/${id}`); + await getJsonResponse( + resource, + "", + {method: "DELETE" } + ); + } +} + +export default TransferInstruments; \ No newline at end of file diff --git a/src/services/resource/legalEntityManagementResource.ts b/src/services/resource/legalEntityManagementResource.ts new file mode 100644 index 0000000..0f394c9 --- /dev/null +++ b/src/services/resource/legalEntityManagementResource.ts @@ -0,0 +1,14 @@ +import Client from "../../client"; +import Service from "../../service"; +import Resource from "../resource"; + +class LegalEntityManagementResource extends Resource { + public constructor(service: Service, endpoint: string) { + super( + service, + `${service.client.config.legalEntityManagementEndpoint}/${Client.LEGAL_ENTITY_MANAGEMENT_API_VERSION}${endpoint}` + ); + } +} + +export default LegalEntityManagementResource; \ No newline at end of file diff --git a/src/typings/index.ts b/src/typings/index.ts index 20d342d..2ad1b24 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -22,3 +22,4 @@ export * as storedValue from './storedValue/models'; export * as terminal from './terminal/models'; export * as terminalManagement from './terminalManagement/models'; export * as management from './management/models'; +export * as legalEntityManagement from './legalEntityManagement/models'; \ No newline at end of file diff --git a/src/typings/legalEntityManagement/address.ts b/src/typings/legalEntityManagement/address.ts new file mode 100644 index 0000000..b74ff96 --- /dev/null +++ b/src/typings/legalEntityManagement/address.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class Address { + /** + * The name of the city. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`. + */ + 'city'?: string; + /** + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + */ + 'country': string; + /** + * Postal code. Required if `stateOrProvince` and/or `city` is provided. + */ + 'postalCode'?: string; + /** + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`. + */ + 'stateOrProvince'?: string; + /** + * The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided. + */ + 'street'?: string; + /** + * The apartment, unit, or suite number. + */ + 'street2'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + }, + { + "name": "street2", + "baseName": "street2", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/attachment.ts b/src/typings/legalEntityManagement/attachment.ts new file mode 100644 index 0000000..a531fff --- /dev/null +++ b/src/typings/legalEntityManagement/attachment.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class Attachment { + /** + * The document in Base64-encoded string format. + */ + 'content': string; + /** + * The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**. + */ + 'contentType'?: string; + /** + * The name of the file including the file extension. + */ + 'filename'?: string; + /** + * The name of the file including the file extension. + */ + 'pageName'?: string; + /** + * Specifies which side of the ID card is uploaded. * When `type` is **driversLicense**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments. + */ + 'pageType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "content", + "baseName": "content", + "type": "string" + }, + { + "name": "contentType", + "baseName": "contentType", + "type": "string" + }, + { + "name": "filename", + "baseName": "filename", + "type": "string" + }, + { + "name": "pageName", + "baseName": "pageName", + "type": "string" + }, + { + "name": "pageType", + "baseName": "pageType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Attachment.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/bankAccountInfo.ts b/src/typings/legalEntityManagement/bankAccountInfo.ts new file mode 100644 index 0000000..5ceb0b1 --- /dev/null +++ b/src/typings/legalEntityManagement/bankAccountInfo.ts @@ -0,0 +1,120 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class BankAccountInfo { + /** + * The bank account number (without separators). When this is provided, the `branchCode` is also required. + */ + 'accountNumber'?: string; + /** + * The type of bank account. + */ + 'accountType'?: string; + /** + * The bank\'s BIC or SWIFT code. + */ + 'bankBicSwift'?: string; + /** + * The city where the bank is located. + */ + 'bankCity'?: string; + /** + * The bank code of the banking institution with which the bank account is registered. + */ + 'bankCode'?: string; + /** + * The name of the banking institution where the bank account is held. + */ + 'bankName'?: string; + /** + * The branch code of the branch under which the bank account is registered. Required when you provide an `accountNumber`. In the following countries, this value corresponds to: * United States: routing number * United Kingdom: sort code * Germany: Bankleitzahl + */ + 'branchCode'?: string; + /** + * The check code of the bank account. + */ + 'checkCode'?: string; + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**. + */ + 'countryCode': string; + /** + * The account\'s three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **EUR**. + */ + 'currencyCode': string; + /** + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + */ + 'iban'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "bankBicSwift", + "baseName": "bankBicSwift", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "branchCode", + "baseName": "branchCode", + "type": "string" + }, + { + "name": "checkCode", + "baseName": "checkCode", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccountInfo.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/birthData.ts b/src/typings/legalEntityManagement/birthData.ts new file mode 100644 index 0000000..38eb414 --- /dev/null +++ b/src/typings/legalEntityManagement/birthData.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class BirthData { + /** + * The individual\'s date of birth, in YYYY-MM-DD format. + */ + 'dateOfBirth'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BirthData.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/businessLine.ts b/src/typings/legalEntityManagement/businessLine.ts new file mode 100644 index 0000000..818b262 --- /dev/null +++ b/src/typings/legalEntityManagement/businessLine.ts @@ -0,0 +1,90 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { SourceOfFunds } from './sourceOfFunds'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; + +export class BusinessLine { + /** + * The capability for which you are creating the business line. For example, **receivePayments**. + */ + 'capability': string; + /** + * The unique identifier of the business line. + */ + 'id': string; + /** + * A code that represents the industry of the legal entity. For example, **4431A** for computer software stores. + */ + 'industryCode': string; + /** + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + */ + 'legalEntityId': string; + /** + * A list of channels where goods or services are sold. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**. + */ + 'salesChannels'?: Array; + 'sourceOfFunds'?: SourceOfFunds; + /** + * List of website URLs where your user\'s goods or services are sold. When this is required for a capability but your user does not have an online presence, provide the reason in the `webDataExemption` object. + */ + 'webData'?: Array; + 'webDataExemption'?: WebDataExemption; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capability", + "baseName": "capability", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "industryCode", + "baseName": "industryCode", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "salesChannels", + "baseName": "salesChannels", + "type": "Array" + }, + { + "name": "sourceOfFunds", + "baseName": "sourceOfFunds", + "type": "SourceOfFunds" + }, + { + "name": "webData", + "baseName": "webData", + "type": "Array" + }, + { + "name": "webDataExemption", + "baseName": "webDataExemption", + "type": "WebDataExemption" + } ]; + + static getAttributeTypeMap() { + return BusinessLine.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/businessLineInfo.ts b/src/typings/legalEntityManagement/businessLineInfo.ts new file mode 100644 index 0000000..2cd5203 --- /dev/null +++ b/src/typings/legalEntityManagement/businessLineInfo.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { SourceOfFunds } from './sourceOfFunds'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; + +export class BusinessLineInfo { + /** + * The capability for which you are creating the business line. For example, **receivePayments**. + */ + 'capability': string; + /** + * A code that represents the industry of the legal entity. For example, **4431A** for computer software stores. + */ + 'industryCode': string; + /** + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + */ + 'legalEntityId': string; + /** + * A list of channels where goods or services are sold. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**. + */ + 'salesChannels'?: Array; + 'sourceOfFunds'?: SourceOfFunds; + /** + * List of website URLs where your user\'s goods or services are sold. When this is required for a capability but your user does not have an online presence, provide the reason in the `webDataExemption` object. + */ + 'webData'?: Array; + 'webDataExemption'?: WebDataExemption; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capability", + "baseName": "capability", + "type": "string" + }, + { + "name": "industryCode", + "baseName": "industryCode", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "salesChannels", + "baseName": "salesChannels", + "type": "Array" + }, + { + "name": "sourceOfFunds", + "baseName": "sourceOfFunds", + "type": "SourceOfFunds" + }, + { + "name": "webData", + "baseName": "webData", + "type": "Array" + }, + { + "name": "webDataExemption", + "baseName": "webDataExemption", + "type": "WebDataExemption" + } ]; + + static getAttributeTypeMap() { + return BusinessLineInfo.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts new file mode 100644 index 0000000..a81e07b --- /dev/null +++ b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { SourceOfFunds } from './sourceOfFunds'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; + +export class BusinessLineInfoUpdate { + /** + * The capability for which you are creating the business line. For example, **receivePayments**. + */ + 'capability'?: string; + /** + * A code that represents the industry of your legal entity. For example, **4431A** for computer software stores. + */ + 'industryCode'?: string; + /** + * Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line. + */ + 'legalEntityId'?: string; + /** + * A list of channels where goods or services are sold. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**. + */ + 'salesChannels'?: Array; + 'sourceOfFunds'?: SourceOfFunds; + /** + * List of website URLs where your user\'s goods or services are sold. When this is required for a capability but your user does not have an online presence, provide the reason in the `webDataExemption` object. + */ + 'webData'?: Array; + 'webDataExemption'?: WebDataExemption; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capability", + "baseName": "capability", + "type": "string" + }, + { + "name": "industryCode", + "baseName": "industryCode", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "salesChannels", + "baseName": "salesChannels", + "type": "Array" + }, + { + "name": "sourceOfFunds", + "baseName": "sourceOfFunds", + "type": "SourceOfFunds" + }, + { + "name": "webData", + "baseName": "webData", + "type": "Array" + }, + { + "name": "webDataExemption", + "baseName": "webDataExemption", + "type": "WebDataExemption" + } ]; + + static getAttributeTypeMap() { + return BusinessLineInfoUpdate.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/businessLines.ts b/src/typings/legalEntityManagement/businessLines.ts new file mode 100644 index 0000000..6d2fcab --- /dev/null +++ b/src/typings/legalEntityManagement/businessLines.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { BusinessLine } from './businessLine'; + +export class BusinessLines { + /** + * List of business lines. + */ + 'businessLines': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "businessLines", + "baseName": "businessLines", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return BusinessLines.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts new file mode 100644 index 0000000..02dcc56 --- /dev/null +++ b/src/typings/legalEntityManagement/document.ts @@ -0,0 +1,133 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { Attachment } from './attachment'; +import { OwnerEntity } from './ownerEntity'; + +export class Document { + 'attachment'?: Attachment; + /** + * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. + */ + 'attachments': Array; + /** + * Your description for the document. + */ + 'description': string; + /** + * The expiry date of the document, in YYYY-MM-DD format. + */ + 'expiryDate'?: string; + /** + * The filename of the document. + */ + 'fileName'?: string; + /** + * The unique identifier of the document. + */ + 'id': string; + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + */ + 'issuerCountry'?: string; + /** + * The state or province where the document was issued (AU only). + */ + 'issuerState'?: string; + /** + * The number in the document. + */ + 'number'?: string; + 'owner': OwnerEntity; + /** + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + */ + 'type': Document.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "attachment", + "baseName": "attachment", + "type": "Attachment" + }, + { + "name": "attachments", + "baseName": "attachments", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "fileName", + "baseName": "fileName", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "issuerState", + "baseName": "issuerState", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "owner", + "baseName": "owner", + "type": "OwnerEntity" + }, + { + "name": "type", + "baseName": "type", + "type": "Document.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Document.attributeTypeMap; + } +} + +export namespace Document { + export enum TypeEnum { + BankStatement = 'bankStatement', + DriversLicense = 'driversLicense', + IdentityCard = 'identityCard', + NationalIdNumber = 'nationalIdNumber', + Passport = 'passport', + ProofOfAddress = 'proofOfAddress', + ProofOfNationalIdNumber = 'proofOfNationalIdNumber', + ProofOfResidency = 'proofOfResidency', + RegistrationDocument = 'registrationDocument', + VatDocument = 'vatDocument', + ProofOfOrganizationTaxInfo = 'proofOfOrganizationTaxInfo', + ProofOfIndustry = 'proofOfIndustry', + ConstitutionalDocument = 'constitutionalDocument' + } +} diff --git a/src/typings/legalEntityManagement/documentReference.ts b/src/typings/legalEntityManagement/documentReference.ts new file mode 100644 index 0000000..4bf4552 --- /dev/null +++ b/src/typings/legalEntityManagement/documentReference.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class DocumentReference { + /** + * Identifies whether the document is active and used for checks. + */ + 'active'?: boolean; + /** + * Document name. + */ + 'fileName'?: string; + /** + * The unique identifier of the resource. + */ + 'id'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "fileName", + "baseName": "fileName", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DocumentReference.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/entityReference.ts b/src/typings/legalEntityManagement/entityReference.ts new file mode 100644 index 0000000..2eb218e --- /dev/null +++ b/src/typings/legalEntityManagement/entityReference.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class EntityReference { + /** + * The unique identifier of the resource. + */ + 'id'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return EntityReference.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/genericEntityInfo.ts b/src/typings/legalEntityManagement/genericEntityInfo.ts new file mode 100644 index 0000000..96817be --- /dev/null +++ b/src/typings/legalEntityManagement/genericEntityInfo.ts @@ -0,0 +1,52 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { Individual } from './individual'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { Organization } from './organization'; +import { SoleProprietorship } from './soleProprietorship'; + +export class GenericEntityInfo { + /** + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + */ + 'entityAssociations'?: Array; + 'individual'?: Individual; + 'organization'?: Organization; + 'soleProprietorship'?: SoleProprietorship; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entityAssociations", + "baseName": "entityAssociations", + "type": "Array" + }, + { + "name": "individual", + "baseName": "individual", + "type": "Individual" + }, + { + "name": "organization", + "baseName": "organization", + "type": "Organization" + }, + { + "name": "soleProprietorship", + "baseName": "soleProprietorship", + "type": "SoleProprietorship" + } ]; + + static getAttributeTypeMap() { + return GenericEntityInfo.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/identificationData.ts b/src/typings/legalEntityManagement/identificationData.ts new file mode 100644 index 0000000..dff5a07 --- /dev/null +++ b/src/typings/legalEntityManagement/identificationData.ts @@ -0,0 +1,92 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class IdentificationData { + /** + * The expiry date of the document, in YYYY-MM-DD format. + */ + 'expiryDate'?: string; + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**. + */ + 'issuerCountry'?: string; + /** + * The state or province where the document was issued (AU only). + */ + 'issuerState'?: string; + /** + * Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document. + */ + 'nationalIdExempt'?: boolean; + /** + * The number in the document. + */ + 'number'?: string; + /** + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + */ + 'type': IdentificationData.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "issuerState", + "baseName": "issuerState", + "type": "string" + }, + { + "name": "nationalIdExempt", + "baseName": "nationalIdExempt", + "type": "boolean" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "IdentificationData.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return IdentificationData.attributeTypeMap; + } +} + +export namespace IdentificationData { + export enum TypeEnum { + BankStatement = 'bankStatement', + DriversLicense = 'driversLicense', + IdentityCard = 'identityCard', + NationalIdNumber = 'nationalIdNumber', + Passport = 'passport', + ProofOfAddress = 'proofOfAddress', + ProofOfNationalIdNumber = 'proofOfNationalIdNumber', + ProofOfResidency = 'proofOfResidency', + RegistrationDocument = 'registrationDocument', + VatDocument = 'vatDocument', + ProofOfOrganizationTaxInfo = 'proofOfOrganizationTaxInfo', + ProofOfIndustry = 'proofOfIndustry', + ConstitutionalDocument = 'constitutionalDocument' + } +} diff --git a/src/typings/legalEntityManagement/individual.ts b/src/typings/legalEntityManagement/individual.ts new file mode 100644 index 0000000..681d867 --- /dev/null +++ b/src/typings/legalEntityManagement/individual.ts @@ -0,0 +1,91 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { Address } from './address'; +import { BirthData } from './birthData'; +import { IdentificationData } from './identificationData'; +import { Name } from './name'; +import { PhoneNumber } from './phoneNumber'; +import { TaxInformation } from './taxInformation'; +import { WebData } from './webData'; + +export class Individual { + 'birthData'?: BirthData; + /** + * The email address of the legal entity. + */ + 'email'?: string; + 'identificationData'?: IdentificationData; + 'name': Name; + /** + * The individual\'s nationality. + */ + 'nationality'?: string; + 'phone'?: PhoneNumber; + 'residentialAddress': Address; + /** + * The tax information of the organization. + */ + 'taxInformation'?: Array; + 'webData'?: WebData; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "birthData", + "baseName": "birthData", + "type": "BirthData" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "identificationData", + "baseName": "identificationData", + "type": "IdentificationData" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "phone", + "baseName": "phone", + "type": "PhoneNumber" + }, + { + "name": "residentialAddress", + "baseName": "residentialAddress", + "type": "Address" + }, + { + "name": "taxInformation", + "baseName": "taxInformation", + "type": "Array" + }, + { + "name": "webData", + "baseName": "webData", + "type": "WebData" + } ]; + + static getAttributeTypeMap() { + return Individual.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/legalEntity.ts b/src/typings/legalEntityManagement/legalEntity.ts new file mode 100644 index 0000000..bf1198c --- /dev/null +++ b/src/typings/legalEntityManagement/legalEntity.ts @@ -0,0 +1,117 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { DocumentReference } from './documentReference'; +import { EntityReference } from './entityReference'; +import { Individual } from './individual'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { Organization } from './organization'; +import { SoleProprietorship } from './soleProprietorship'; + +export class LegalEntity { + /** + * List of documents uploaded for the legal entity. + */ + 'documentDetails'?: Array; + /** + * List of documents uploaded for the legal entity. + */ + 'documents'?: Array; + /** + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + */ + 'entityAssociations'?: Array; + /** + * The unique identifier of the legal entity. + */ + 'id': string; + 'individual'?: Individual; + 'organization'?: Organization; + /** + * Your reference for the legal entity, maximum 150 characters. + */ + 'reference'?: string; + 'soleProprietorship'?: SoleProprietorship; + /** + * List of transfer instruments owned by the legal entity. + */ + 'transferInstruments'?: Array; + /** + * The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + */ + 'type': LegalEntity.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "documentDetails", + "baseName": "documentDetails", + "type": "Array" + }, + { + "name": "documents", + "baseName": "documents", + "type": "Array" + }, + { + "name": "entityAssociations", + "baseName": "entityAssociations", + "type": "Array" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "individual", + "baseName": "individual", + "type": "Individual" + }, + { + "name": "organization", + "baseName": "organization", + "type": "Organization" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "soleProprietorship", + "baseName": "soleProprietorship", + "type": "SoleProprietorship" + }, + { + "name": "transferInstruments", + "baseName": "transferInstruments", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "LegalEntity.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return LegalEntity.attributeTypeMap; + } +} + +export namespace LegalEntity { + export enum TypeEnum { + Individual = 'individual', + Organization = 'organization', + SoleProprietorship = 'soleProprietorship', + Trust = 'trust', + UnincorporatedPartnership = 'unincorporatedPartnership' + } +} diff --git a/src/typings/legalEntityManagement/legalEntityAssociation.ts b/src/typings/legalEntityManagement/legalEntityAssociation.ts new file mode 100644 index 0000000..1d8ad9f --- /dev/null +++ b/src/typings/legalEntityManagement/legalEntityAssociation.ts @@ -0,0 +1,82 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class LegalEntityAssociation { + /** + * The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations. + */ + 'associatorId'?: string; + /** + * The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**. + */ + 'entityType'?: string; + /** + * The individual\'s job title if the `type` is **uboThroughControl** or **signatory**. + */ + 'jobTitle'?: string; + /** + * The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). + */ + 'legalEntityId': string; + /** + * The name of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`. + */ + 'name'?: string; + /** + * Defines the relationship of the legal entity to the current legal entity. For example, **uboThroughOwnership**, **uboThroughControl**, or **signatory**. + */ + 'type': LegalEntityAssociation.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "associatorId", + "baseName": "associatorId", + "type": "string" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "string" + }, + { + "name": "jobTitle", + "baseName": "jobTitle", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "LegalEntityAssociation.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return LegalEntityAssociation.attributeTypeMap; + } +} + +export namespace LegalEntityAssociation { + export enum TypeEnum { + Signatory = 'signatory', + UboThroughControl = 'uboThroughControl', + UboThroughOwnership = 'uboThroughOwnership' + } +} diff --git a/src/typings/legalEntityManagement/legalEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfo.ts new file mode 100644 index 0000000..c332b91 --- /dev/null +++ b/src/typings/legalEntityManagement/legalEntityInfo.ts @@ -0,0 +1,79 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { Individual } from './individual'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { Organization } from './organization'; +import { SoleProprietorship } from './soleProprietorship'; + +export class LegalEntityInfo { + /** + * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. + */ + 'entityAssociations'?: Array; + 'individual'?: Individual; + 'organization'?: Organization; + /** + * Your reference for the legal entity, maximum 150 characters. + */ + 'reference'?: string; + 'soleProprietorship'?: SoleProprietorship; + /** + * The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**. + */ + 'type': LegalEntityInfo.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entityAssociations", + "baseName": "entityAssociations", + "type": "Array" + }, + { + "name": "individual", + "baseName": "individual", + "type": "Individual" + }, + { + "name": "organization", + "baseName": "organization", + "type": "Organization" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "soleProprietorship", + "baseName": "soleProprietorship", + "type": "SoleProprietorship" + }, + { + "name": "type", + "baseName": "type", + "type": "LegalEntityInfo.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return LegalEntityInfo.attributeTypeMap; + } +} + +export namespace LegalEntityInfo { + export enum TypeEnum { + Individual = 'individual', + Organization = 'organization', + SoleProprietorship = 'soleProprietorship', + Trust = 'trust', + UnincorporatedPartnership = 'unincorporatedPartnership' + } +} diff --git a/src/typings/legalEntityManagement/models.ts b/src/typings/legalEntityManagement/models.ts new file mode 100644 index 0000000..d0afe41 --- /dev/null +++ b/src/typings/legalEntityManagement/models.ts @@ -0,0 +1,267 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export * from './address'; +export * from './attachment'; +export * from './bankAccountInfo'; +export * from './birthData'; +export * from './businessLine'; +export * from './businessLineInfo'; +export * from './businessLineInfoUpdate'; +export * from './businessLines'; +export * from './document'; +export * from './documentReference'; +export * from './entityReference'; +export * from './genericEntityInfo'; +export * from './identificationData'; +export * from './individual'; +export * from './legalEntity'; +export * from './legalEntityAssociation'; +export * from './legalEntityInfo'; +export * from './name'; +export * from './onboardingLink'; +export * from './onboardingLinkInfo'; +export * from './onboardingTheme'; +export * from './onboardingThemes'; +export * from './organization'; +export * from './ownerEntity'; +export * from './phoneNumber'; +export * from './recurringDetail'; +export * from './serviceError'; +export * from './soleProprietorship'; +export * from './sourceOfFunds'; +export * from './stockData'; +export * from './taxInformation'; +export * from './taxReportingClassification'; +export * from './transferInstrument'; +export * from './transferInstrumentInfo'; +export * from './webData'; +export * from './webDataExemption'; + + +import { Address } from './address'; +import { Attachment } from './attachment'; +import { BankAccountInfo } from './bankAccountInfo'; +import { BirthData } from './birthData'; +import { BusinessLine } from './businessLine'; +import { BusinessLineInfo } from './businessLineInfo'; +import { BusinessLineInfoUpdate } from './businessLineInfoUpdate'; +import { BusinessLines } from './businessLines'; +import { Document } from './document'; +import { DocumentReference } from './documentReference'; +import { EntityReference } from './entityReference'; +import { GenericEntityInfo } from './genericEntityInfo'; +import { IdentificationData } from './identificationData'; +import { Individual } from './individual'; +import { LegalEntity } from './legalEntity'; +import { LegalEntityAssociation } from './legalEntityAssociation'; +import { LegalEntityInfo } from './legalEntityInfo'; +import { Name } from './name'; +import { OnboardingLink } from './onboardingLink'; +import { OnboardingLinkInfo } from './onboardingLinkInfo'; +import { OnboardingTheme } from './onboardingTheme'; +import { OnboardingThemes } from './onboardingThemes'; +import { Organization } from './organization'; +import { OwnerEntity } from './ownerEntity'; +import { PhoneNumber } from './phoneNumber'; +import { RecurringDetail } from './recurringDetail'; +import { ServiceError } from './serviceError'; +import { SoleProprietorship } from './soleProprietorship'; +import { SourceOfFunds } from './sourceOfFunds'; +import { StockData } from './stockData'; +import { TaxInformation } from './taxInformation'; +import { TaxReportingClassification } from './taxReportingClassification'; +import { TransferInstrument } from './transferInstrument'; +import { TransferInstrumentInfo } from './transferInstrumentInfo'; +import { WebData } from './webData'; +import { WebDataExemption } from './webDataExemption'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "Document.TypeEnum": Document.TypeEnum, + "IdentificationData.TypeEnum": IdentificationData.TypeEnum, + "LegalEntity.TypeEnum": LegalEntity.TypeEnum, + "LegalEntityAssociation.TypeEnum": LegalEntityAssociation.TypeEnum, + "LegalEntityInfo.TypeEnum": LegalEntityInfo.TypeEnum, + "Organization.TypeEnum": Organization.TypeEnum, + "Organization.VatAbsenceReasonEnum": Organization.VatAbsenceReasonEnum, + "SoleProprietorship.VatAbsenceReasonEnum": SoleProprietorship.VatAbsenceReasonEnum, + "SourceOfFunds.TypeEnum": SourceOfFunds.TypeEnum, + "TaxReportingClassification.BusinessTypeEnum": TaxReportingClassification.BusinessTypeEnum, + "TaxReportingClassification.MainSourceOfIncomeEnum": TaxReportingClassification.MainSourceOfIncomeEnum, + "TaxReportingClassification.TypeEnum": TaxReportingClassification.TypeEnum, + "TransferInstrument.TypeEnum": TransferInstrument.TypeEnum, + "TransferInstrumentInfo.TypeEnum": TransferInstrumentInfo.TypeEnum, + "WebDataExemption.ReasonEnum": WebDataExemption.ReasonEnum, +} + +let typeMap: {[index: string]: any} = { + "Address": Address, + "Attachment": Attachment, + "BankAccountInfo": BankAccountInfo, + "BirthData": BirthData, + "BusinessLine": BusinessLine, + "BusinessLineInfo": BusinessLineInfo, + "BusinessLineInfoUpdate": BusinessLineInfoUpdate, + "BusinessLines": BusinessLines, + "Document": Document, + "DocumentReference": DocumentReference, + "EntityReference": EntityReference, + "GenericEntityInfo": GenericEntityInfo, + "IdentificationData": IdentificationData, + "Individual": Individual, + "LegalEntity": LegalEntity, + "LegalEntityAssociation": LegalEntityAssociation, + "LegalEntityInfo": LegalEntityInfo, + "Name": Name, + "OnboardingLink": OnboardingLink, + "OnboardingLinkInfo": OnboardingLinkInfo, + "OnboardingTheme": OnboardingTheme, + "OnboardingThemes": OnboardingThemes, + "Organization": Organization, + "OwnerEntity": OwnerEntity, + "PhoneNumber": PhoneNumber, + "RecurringDetail": RecurringDetail, + "ServiceError": ServiceError, + "SoleProprietorship": SoleProprietorship, + "SourceOfFunds": SourceOfFunds, + "StockData": StockData, + "TaxInformation": TaxInformation, + "TaxReportingClassification": TaxReportingClassification, + "TransferInstrument": TransferInstrument, + "TransferInstrumentInfo": TransferInstrumentInfo, + "WebData": WebData, + "WebDataExemption": WebDataExemption, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/legalEntityManagement/name.ts b/src/typings/legalEntityManagement/name.ts new file mode 100644 index 0000000..0d86b7a --- /dev/null +++ b/src/typings/legalEntityManagement/name.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class Name { + /** + * The individual\'s first name. + */ + 'firstName': string; + /** + * The infix in the individual\'s name, if any. + */ + 'infix'?: string; + /** + * The individual\'s last name. + */ + 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "infix", + "baseName": "infix", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/onboardingLink.ts b/src/typings/legalEntityManagement/onboardingLink.ts new file mode 100644 index 0000000..3f4807d --- /dev/null +++ b/src/typings/legalEntityManagement/onboardingLink.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class OnboardingLink { + /** + * The URL of the hosted onboarding page where you need to redirect your user. This URL expires after 4 minutes and can only be used once. If the link expires, you need to create a new link. + */ + 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return OnboardingLink.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/onboardingLinkInfo.ts b/src/typings/legalEntityManagement/onboardingLinkInfo.ts new file mode 100644 index 0000000..788ed2e --- /dev/null +++ b/src/typings/legalEntityManagement/onboardingLinkInfo.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class OnboardingLinkInfo { + /** + * The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. Possible values: **cs-CZ**, **de-DE**, **en-US**, **es-ES**, **it-IT**, **nl-NL**, **no-NO**, **pl-PL**, **pt-PT**, **sv-SE**. If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. + */ + 'locale'?: string; + /** + * The URL where the user is redirected after they complete hosted onboarding. + */ + 'redirectUrl'?: string; + /** + * The unique identifier of the hosted onboarding theme. + */ + 'themeId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "locale", + "baseName": "locale", + "type": "string" + }, + { + "name": "redirectUrl", + "baseName": "redirectUrl", + "type": "string" + }, + { + "name": "themeId", + "baseName": "themeId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return OnboardingLinkInfo.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/onboardingTheme.ts b/src/typings/legalEntityManagement/onboardingTheme.ts new file mode 100644 index 0000000..a9c2c98 --- /dev/null +++ b/src/typings/legalEntityManagement/onboardingTheme.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class OnboardingTheme { + /** + * The creation date of the theme. + */ + 'createdAt': Date; + /** + * The description of the theme. + */ + 'description'?: string; + /** + * The unique identifier of the theme. + */ + 'id': string; + /** + * The properties of the theme. + */ + 'properties': { [key: string]: string; }; + /** + * The date when the theme was last updated. + */ + 'updatedAt'?: Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "properties", + "baseName": "properties", + "type": "{ [key: string]: string; }" + }, + { + "name": "updatedAt", + "baseName": "updatedAt", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return OnboardingTheme.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/onboardingThemes.ts b/src/typings/legalEntityManagement/onboardingThemes.ts new file mode 100644 index 0000000..de089f7 --- /dev/null +++ b/src/typings/legalEntityManagement/onboardingThemes.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { OnboardingTheme } from './onboardingTheme'; + +export class OnboardingThemes { + /** + * The next page. Only present if there is a next page. + */ + 'next'?: string; + /** + * The previous page. Only present if there is a previous page. + */ + 'previous'?: string; + 'themes': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "next", + "baseName": "next", + "type": "string" + }, + { + "name": "previous", + "baseName": "previous", + "type": "string" + }, + { + "name": "themes", + "baseName": "themes", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return OnboardingThemes.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/organization.ts b/src/typings/legalEntityManagement/organization.ts new file mode 100644 index 0000000..4319694 --- /dev/null +++ b/src/typings/legalEntityManagement/organization.ts @@ -0,0 +1,158 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { Address } from './address'; +import { PhoneNumber } from './phoneNumber'; +import { StockData } from './stockData'; +import { TaxInformation } from './taxInformation'; +import { TaxReportingClassification } from './taxReportingClassification'; +import { WebData } from './webData'; + +export class Organization { + /** + * Your description for the organization. + */ + 'description'?: string; + /** + * The organization\'s trading name, if different from the registered legal name. + */ + 'doingBusinessAs'?: string; + /** + * The email address of the legal entity. + */ + 'email'?: string; + /** + * The organization\'s legal name. + */ + 'legalName': string; + 'phone'?: PhoneNumber; + 'principalPlaceOfBusiness'?: Address; + 'registeredAddress': Address; + /** + * The organization\'s registration number. + */ + 'registrationNumber'?: string; + 'stockData'?: StockData; + /** + * The tax information of the organization. + */ + 'taxInformation'?: Array; + 'taxReportingClassification'?: TaxReportingClassification; + /** + * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. + */ + 'type': Organization.TypeEnum; + /** + * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + */ + 'vatAbsenceReason'?: Organization.VatAbsenceReasonEnum; + /** + * The organization\'s VAT number. + */ + 'vatNumber'?: string; + 'webData'?: WebData; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "doingBusinessAs", + "baseName": "doingBusinessAs", + "type": "string" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "legalName", + "baseName": "legalName", + "type": "string" + }, + { + "name": "phone", + "baseName": "phone", + "type": "PhoneNumber" + }, + { + "name": "principalPlaceOfBusiness", + "baseName": "principalPlaceOfBusiness", + "type": "Address" + }, + { + "name": "registeredAddress", + "baseName": "registeredAddress", + "type": "Address" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "stockData", + "baseName": "stockData", + "type": "StockData" + }, + { + "name": "taxInformation", + "baseName": "taxInformation", + "type": "Array" + }, + { + "name": "taxReportingClassification", + "baseName": "taxReportingClassification", + "type": "TaxReportingClassification" + }, + { + "name": "type", + "baseName": "type", + "type": "Organization.TypeEnum" + }, + { + "name": "vatAbsenceReason", + "baseName": "vatAbsenceReason", + "type": "Organization.VatAbsenceReasonEnum" + }, + { + "name": "vatNumber", + "baseName": "vatNumber", + "type": "string" + }, + { + "name": "webData", + "baseName": "webData", + "type": "WebData" + } ]; + + static getAttributeTypeMap() { + return Organization.attributeTypeMap; + } +} + +export namespace Organization { + export enum TypeEnum { + AssociationIncorporated = 'associationIncorporated', + GovernmentalOrganization = 'governmentalOrganization', + ListedPublicCompany = 'listedPublicCompany', + NonProfit = 'nonProfit', + PartnershipIncorporated = 'partnershipIncorporated', + PrivateCompany = 'privateCompany' + } + export enum VatAbsenceReasonEnum { + IndustryExemption = 'industryExemption', + BelowTaxThreshold = 'belowTaxThreshold' + } +} diff --git a/src/typings/legalEntityManagement/ownerEntity.ts b/src/typings/legalEntityManagement/ownerEntity.ts new file mode 100644 index 0000000..988c36d --- /dev/null +++ b/src/typings/legalEntityManagement/ownerEntity.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class OwnerEntity { + /** + * Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + */ + 'id': string; + /** + * Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**. + */ + 'type': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return OwnerEntity.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/phoneNumber.ts b/src/typings/legalEntityManagement/phoneNumber.ts new file mode 100644 index 0000000..abcdad7 --- /dev/null +++ b/src/typings/legalEntityManagement/phoneNumber.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class PhoneNumber { + /** + * The full phone number, including the country code. For example, **+3112345678**. + */ + 'number': string; + /** + * The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.** + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PhoneNumber.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/recurringDetail.ts b/src/typings/legalEntityManagement/recurringDetail.ts new file mode 100644 index 0000000..bf8a56b --- /dev/null +++ b/src/typings/legalEntityManagement/recurringDetail.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class RecurringDetail { + /** + * The merchant account used when the payment details were stored. + */ + 'merchantAccount'?: string; + /** + * The `recurringDetailReference` returned in the response when the payment details were stored. + */ + 'reference'?: string; + /** + * The unique identifier used when the payment details were stored. + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetail.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/serviceError.ts b/src/typings/legalEntityManagement/serviceError.ts new file mode 100644 index 0000000..535746a --- /dev/null +++ b/src/typings/legalEntityManagement/serviceError.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class ServiceError { + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/soleProprietorship.ts b/src/typings/legalEntityManagement/soleProprietorship.ts new file mode 100644 index 0000000..f174c15 --- /dev/null +++ b/src/typings/legalEntityManagement/soleProprietorship.ts @@ -0,0 +1,94 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { Address } from './address'; + +export class SoleProprietorship { + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. + */ + 'countryOfGoverningLaw'?: string; + /** + * The registered name, if different from the `name`. + */ + 'doingBusinessAs'?: string; + /** + * The legal name. + */ + 'name': string; + 'principalPlaceOfBusiness'?: Address; + 'registeredAddress': Address; + /** + * The registration number. + */ + 'registrationNumber'?: string; + /** + * The reason for not providing a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. + */ + 'vatAbsenceReason'?: SoleProprietorship.VatAbsenceReasonEnum; + /** + * The VAT number. + */ + 'vatNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "countryOfGoverningLaw", + "baseName": "countryOfGoverningLaw", + "type": "string" + }, + { + "name": "doingBusinessAs", + "baseName": "doingBusinessAs", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "principalPlaceOfBusiness", + "baseName": "principalPlaceOfBusiness", + "type": "Address" + }, + { + "name": "registeredAddress", + "baseName": "registeredAddress", + "type": "Address" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "vatAbsenceReason", + "baseName": "vatAbsenceReason", + "type": "SoleProprietorship.VatAbsenceReasonEnum" + }, + { + "name": "vatNumber", + "baseName": "vatNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SoleProprietorship.attributeTypeMap; + } +} + +export namespace SoleProprietorship { + export enum VatAbsenceReasonEnum { + IndustryExemption = 'industryExemption', + BelowTaxThreshold = 'belowTaxThreshold' + } +} diff --git a/src/typings/legalEntityManagement/sourceOfFunds.ts b/src/typings/legalEntityManagement/sourceOfFunds.ts new file mode 100644 index 0000000..d8ce5c5 --- /dev/null +++ b/src/typings/legalEntityManagement/sourceOfFunds.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class SourceOfFunds { + /** + * The unique identifier of the business line that will be the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. Required when `adyenProcessedFunds` is **true**. + */ + 'acquiringBusinessLineId'?: string; + /** + * Indicates whether the funds are coming from transactions processed by Adyen. - If **true**, the `acquiringBusinessLineId` is required. - If **false**, a `description` is required. + */ + 'adyenProcessedFunds'?: boolean; + /** + * Text describing the source of funds. For example, for `type` **business**, provide a description of the business. Required when `adyenProcessedFunds` is **false**. + */ + 'description'?: string; + /** + * The type of the source of funds. Possible value: **business**. + */ + 'type'?: SourceOfFunds.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquiringBusinessLineId", + "baseName": "acquiringBusinessLineId", + "type": "string" + }, + { + "name": "adyenProcessedFunds", + "baseName": "adyenProcessedFunds", + "type": "boolean" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SourceOfFunds.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SourceOfFunds.attributeTypeMap; + } +} + +export namespace SourceOfFunds { + export enum TypeEnum { + Business = 'business' + } +} diff --git a/src/typings/legalEntityManagement/stockData.ts b/src/typings/legalEntityManagement/stockData.ts new file mode 100644 index 0000000..5c7d25d --- /dev/null +++ b/src/typings/legalEntityManagement/stockData.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class StockData { + /** + * The four-digit [Market Identifier Code](https://en.wikipedia.org/wiki/Market_Identifier_Code) of the stock market where the organization\'s stocks are traded. + */ + 'marketIdentifier'?: string; + /** + * The 12-digit International Securities Identification Number (ISIN) of the company, without dashes (-). + */ + 'stockNumber'?: string; + /** + * The stock ticker symbol. + */ + 'tickerSymbol'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "marketIdentifier", + "baseName": "marketIdentifier", + "type": "string" + }, + { + "name": "stockNumber", + "baseName": "stockNumber", + "type": "string" + }, + { + "name": "tickerSymbol", + "baseName": "tickerSymbol", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StockData.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/taxInformation.ts b/src/typings/legalEntityManagement/taxInformation.ts new file mode 100644 index 0000000..0be59ea --- /dev/null +++ b/src/typings/legalEntityManagement/taxInformation.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class TaxInformation { + /** + * The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + */ + 'country'?: string; + /** + * The organization\'s tax ID number (TIN). + */ + 'number'?: string; + /** + * The TIN type depending on the country where it was issued. Provide only for countries that have multiple tax IDs, such as Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TaxInformation.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/taxReportingClassification.ts b/src/typings/legalEntityManagement/taxReportingClassification.ts new file mode 100644 index 0000000..a71a2fd --- /dev/null +++ b/src/typings/legalEntityManagement/taxReportingClassification.ts @@ -0,0 +1,80 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class TaxReportingClassification { + /** + * The organization\'s business type. Possible values: **other**, **listedPublicCompany**, **subsidiaryOfListedPublicCompany**, **governmentalOrganization**, **internationalOrganization**, **financialInstitution**. + */ + 'businessType'?: TaxReportingClassification.BusinessTypeEnum; + /** + * The Global Intermediary Identification Number (GIIN) required for FATCA. + */ + 'financialInstitutionNumber'?: string; + /** + * The organization\'s main source of income. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + */ + 'mainSourceOfIncome'?: TaxReportingClassification.MainSourceOfIncomeEnum; + /** + * The tax reporting classification type. Possible values: **nonFinancialNonReportable**, **financialNonReportable**, **nonFinancialActive**, **nonFinancialPassive**. + */ + 'type'?: TaxReportingClassification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "businessType", + "baseName": "businessType", + "type": "TaxReportingClassification.BusinessTypeEnum" + }, + { + "name": "financialInstitutionNumber", + "baseName": "financialInstitutionNumber", + "type": "string" + }, + { + "name": "mainSourceOfIncome", + "baseName": "mainSourceOfIncome", + "type": "TaxReportingClassification.MainSourceOfIncomeEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "TaxReportingClassification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TaxReportingClassification.attributeTypeMap; + } +} + +export namespace TaxReportingClassification { + export enum BusinessTypeEnum { + Other = 'other', + ListedPublicCompany = 'listedPublicCompany', + SubsidiaryOfListedPublicCompany = 'subsidiaryOfListedPublicCompany', + GovernmentalOrganization = 'governmentalOrganization', + InternationalOrganization = 'internationalOrganization', + FinancialInstitution = 'financialInstitution.' + } + export enum MainSourceOfIncomeEnum { + BusinessOperation = 'businessOperation', + RealEstateSales = 'realEstateSales', + InvestmentInterestOrRoyalty = 'investmentInterestOrRoyalty', + PropertyRental = 'propertyRental', + Other = 'other' + } + export enum TypeEnum { + NonFinancialNonReportable = 'nonFinancialNonReportable', + FinancialNonReportable = 'financialNonReportable', + NonFinancialActive = 'nonFinancialActive', + NonFinancialPassive = 'nonFinancialPassive' + } +} diff --git a/src/typings/legalEntityManagement/transferInstrument.ts b/src/typings/legalEntityManagement/transferInstrument.ts new file mode 100644 index 0000000..1c31905 --- /dev/null +++ b/src/typings/legalEntityManagement/transferInstrument.ts @@ -0,0 +1,78 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { BankAccountInfo } from './bankAccountInfo'; +import { DocumentReference } from './documentReference'; +import { RecurringDetail } from './recurringDetail'; + +export class TransferInstrument { + 'bankAccount'?: BankAccountInfo; + /** + * List of documents uploaded for the transfer instrument. + */ + 'documentDetails'?: Array; + /** + * The unique identifier of the transfer instrument. + */ + 'id': string; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument. + */ + 'legalEntityId': string; + 'recurringDetail'?: RecurringDetail; + /** + * The type of transfer instrument. Possible values: **bankAccount**, **recurringDetail**. + */ + 'type': TransferInstrument.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccountInfo" + }, + { + "name": "documentDetails", + "baseName": "documentDetails", + "type": "Array" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "recurringDetail", + "baseName": "recurringDetail", + "type": "RecurringDetail" + }, + { + "name": "type", + "baseName": "type", + "type": "TransferInstrument.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TransferInstrument.attributeTypeMap; + } +} + +export namespace TransferInstrument { + export enum TypeEnum { + BankAccount = 'bankAccount', + RecurringDetail = 'recurringDetail' + } +} diff --git a/src/typings/legalEntityManagement/transferInstrumentInfo.ts b/src/typings/legalEntityManagement/transferInstrumentInfo.ts new file mode 100644 index 0000000..53a9fd8 --- /dev/null +++ b/src/typings/legalEntityManagement/transferInstrumentInfo.ts @@ -0,0 +1,59 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + +import { BankAccountInfo } from './bankAccountInfo'; +import { RecurringDetail } from './recurringDetail'; + +export class TransferInstrumentInfo { + 'bankAccount'?: BankAccountInfo; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the transfer instrument. + */ + 'legalEntityId': string; + 'recurringDetail'?: RecurringDetail; + /** + * The type of transfer instrument. Possible values: **bankAccount**, **recurringDetail**. + */ + 'type': TransferInstrumentInfo.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccountInfo" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "recurringDetail", + "baseName": "recurringDetail", + "type": "RecurringDetail" + }, + { + "name": "type", + "baseName": "type", + "type": "TransferInstrumentInfo.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TransferInstrumentInfo.attributeTypeMap; + } +} + +export namespace TransferInstrumentInfo { + export enum TypeEnum { + BankAccount = 'bankAccount', + RecurringDetail = 'recurringDetail' + } +} diff --git a/src/typings/legalEntityManagement/webData.ts b/src/typings/legalEntityManagement/webData.ts new file mode 100644 index 0000000..06e36ff --- /dev/null +++ b/src/typings/legalEntityManagement/webData.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class WebData { + /** + * The URL of the website. + */ + 'webAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "webAddress", + "baseName": "webAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return WebData.attributeTypeMap; + } +} + diff --git a/src/typings/legalEntityManagement/webDataExemption.ts b/src/typings/legalEntityManagement/webDataExemption.ts new file mode 100644 index 0000000..ee5cd6c --- /dev/null +++ b/src/typings/legalEntityManagement/webDataExemption.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class WebDataExemption { + /** + * The reason why the web data was not provided. Possible value: **noOnlinePresence**. + */ + 'reason'?: WebDataExemption.ReasonEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "reason", + "baseName": "reason", + "type": "WebDataExemption.ReasonEnum" + } ]; + + static getAttributeTypeMap() { + return WebDataExemption.attributeTypeMap; + } +} + +export namespace WebDataExemption { + export enum ReasonEnum { + NoOnlinePresence = 'noOnlinePresence' + } +} From 9021e205fcd1471b13ace8985d37b3fac7dac149 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 04:03:10 +0000 Subject: [PATCH 14/35] Bump @typescript-eslint/eslint-plugin from 5.35.1 to 5.39.0 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.35.1 to 5.39.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.39.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 106 +++++++++++++++++++++++++-------------------------- 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/package.json b/package.json index 308b786..c9078a8 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/jest": "27.5.0", "@types/nock": "11.1.0", - "@typescript-eslint/eslint-plugin": "5.35.1", + "@typescript-eslint/eslint-plugin": "5.39.0", "@typescript-eslint/parser": "5.36.2", "acorn": "^8.0.1", "coveralls": "3.1.1", diff --git a/yarn.lock b/yarn.lock index 5049952..6236709 100644 --- a/yarn.lock +++ b/yarn.lock @@ -909,16 +909,15 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.35.1.tgz#0d822bfea7469904dfc1bb8f13cabd362b967c93" - integrity sha512-RBZZXZlI4XCY4Wzgy64vB+0slT9+yAPQRjj/HSaRwUot33xbDjF1oN9BLwOLTewoOI0jothIltZRe9uJCHf8gg== +"@typescript-eslint/eslint-plugin@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz#778b2d9e7f293502c7feeea6c74dca8eb3e67511" + integrity sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A== dependencies: - "@typescript-eslint/scope-manager" "5.35.1" - "@typescript-eslint/type-utils" "5.35.1" - "@typescript-eslint/utils" "5.35.1" + "@typescript-eslint/scope-manager" "5.39.0" + "@typescript-eslint/type-utils" "5.39.0" + "@typescript-eslint/utils" "5.39.0" debug "^4.3.4" - functional-red-black-tree "^1.0.1" ignore "^5.2.0" regexpp "^3.2.0" semver "^7.3.7" @@ -934,14 +933,6 @@ "@typescript-eslint/typescript-estree" "5.36.2" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.35.1.tgz#ccb69d54b7fd0f2d0226a11a75a8f311f525ff9e" - integrity sha512-kCYRSAzIW9ByEIzmzGHE50NGAvAP3wFTaZevgWva7GpquDyFPFcmvVkFJGWJJktg/hLwmys/FZwqM9EKr2u24Q== - dependencies: - "@typescript-eslint/types" "5.35.1" - "@typescript-eslint/visitor-keys" "5.35.1" - "@typescript-eslint/scope-manager@5.36.2": version "5.36.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz#a75eb588a3879ae659514780831370642505d1cd" @@ -950,37 +941,33 @@ "@typescript-eslint/types" "5.36.2" "@typescript-eslint/visitor-keys" "5.36.2" -"@typescript-eslint/type-utils@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.35.1.tgz#d50903b56758c5c8fc3be52b3be40569f27f9c4a" - integrity sha512-8xT8ljvo43Mp7BiTn1vxLXkjpw8wS4oAc00hMSB4L1/jIiYbjjnc3Qp2GAUOG/v8zsNCd1qwcqfCQ0BuishHkw== +"@typescript-eslint/scope-manager@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz#873e1465afa3d6c78d8ed2da68aed266a08008d0" + integrity sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw== dependencies: - "@typescript-eslint/utils" "5.35.1" + "@typescript-eslint/types" "5.39.0" + "@typescript-eslint/visitor-keys" "5.39.0" + +"@typescript-eslint/type-utils@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz#0a8c00f95dce4335832ad2dc6bc431c14e32a0a6" + integrity sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA== + dependencies: + "@typescript-eslint/typescript-estree" "5.39.0" + "@typescript-eslint/utils" "5.39.0" debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.35.1.tgz#af355fe52a0cc88301e889bc4ada72f279b63d61" - integrity sha512-FDaujtsH07VHzG0gQ6NDkVVhi1+rhq0qEvzHdJAQjysN+LHDCKDKCBRlZFFE0ec0jKxiv0hN63SNfExy0KrbQQ== - "@typescript-eslint/types@5.36.2": version "5.36.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.36.2.tgz#a5066e500ebcfcee36694186ccc57b955c05faf9" integrity sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ== -"@typescript-eslint/typescript-estree@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.35.1.tgz#db878a39a0dbdc9bb133f11cdad451770bfba211" - integrity sha512-JUqE1+VRTGyoXlDWWjm6MdfpBYVq+hixytrv1oyjYIBEOZhBCwtpp5ZSvBt4wIA1MKWlnaC2UXl2XmYGC3BoQA== - dependencies: - "@typescript-eslint/types" "5.35.1" - "@typescript-eslint/visitor-keys" "5.35.1" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" +"@typescript-eslint/types@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.39.0.tgz#f4e9f207ebb4579fd854b25c0bf64433bb5ed78d" + integrity sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw== "@typescript-eslint/typescript-estree@5.36.2": version "5.36.2" @@ -995,26 +982,31 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.35.1.tgz#ae1399afbfd6aa7d0ed1b7d941e9758d950250eb" - integrity sha512-v6F8JNXgeBWI4pzZn36hT2HXXzoBBBJuOYvoQiaQaEEjdi5STzux3Yj8v7ODIpx36i/5s8TdzuQ54TPc5AITQQ== +"@typescript-eslint/typescript-estree@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz#c0316aa04a1a1f4f7f9498e3c13ef1d3dc4cf88b" + integrity sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA== + dependencies: + "@typescript-eslint/types" "5.39.0" + "@typescript-eslint/visitor-keys" "5.39.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.39.0.tgz#b7063cca1dcf08d1d21b0d91db491161ad0be110" + integrity sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.35.1" - "@typescript-eslint/types" "5.35.1" - "@typescript-eslint/typescript-estree" "5.35.1" + "@typescript-eslint/scope-manager" "5.39.0" + "@typescript-eslint/types" "5.39.0" + "@typescript-eslint/typescript-estree" "5.39.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/visitor-keys@5.35.1": - version "5.35.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.35.1.tgz#285e9e34aed7c876f16ff646a3984010035898e6" - integrity sha512-cEB1DvBVo1bxbW/S5axbGPE6b7FIMAbo3w+AGq6zNDA7+NYJOIkKj/sInfTv4edxd4PxJSgdN4t6/pbvgA+n5g== - dependencies: - "@typescript-eslint/types" "5.35.1" - eslint-visitor-keys "^3.3.0" - "@typescript-eslint/visitor-keys@5.36.2": version "5.36.2" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz#2f8f78da0a3bad3320d2ac24965791ac39dace5a" @@ -1023,6 +1015,14 @@ "@typescript-eslint/types" "5.36.2" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz#8f41f7d241b47257b081ddba5d3ce80deaae61e2" + integrity sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg== + dependencies: + "@typescript-eslint/types" "5.39.0" + eslint-visitor-keys "^3.3.0" + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" From 01503307d0e1db36ef2f7969c75553cf454d0b98 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 07:09:18 +0000 Subject: [PATCH 15/35] Bump eslint from 8.23.0 to 8.24.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.23.0 to 8.24.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.23.0...v8.24.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 40 ++++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index c9078a8..fc402f9 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", - "eslint": "8.23.0", + "eslint": "8.24.0", "jest": "^27.0.6", "jest-ts-auto-mock": "^2.0.0", "kind-of": "^6.0.3", diff --git a/yarn.lock b/yarn.lock index 6236709..50038c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -298,10 +298,10 @@ enabled "2.0.x" kuler "^2.0.0" -"@eslint/eslintrc@^1.3.1": - version "1.3.1" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.1.tgz#de0807bfeffc37b964a7d0400e0c348ce5a2543d" - integrity sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ== +"@eslint/eslintrc@^1.3.2": + version "1.3.2" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.2.tgz#58b69582f3b7271d8fa67fe5251767a5b38ea356" + integrity sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ== dependencies: ajv "^6.12.4" debug "^4.3.2" @@ -313,10 +313,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@humanwhocodes/config-array@^0.10.4": - version "0.10.4" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.4.tgz#01e7366e57d2ad104feea63e72248f22015c520c" - integrity sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw== +"@humanwhocodes/config-array@^0.10.5": + version "0.10.7" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.7.tgz#6d53769fd0c222767e6452e8ebda825c22e9f0dc" + integrity sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w== dependencies: "@humanwhocodes/object-schema" "^1.2.1" debug "^4.1.1" @@ -2073,13 +2073,13 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@8.23.0: - version "8.23.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.23.0.tgz#a184918d288820179c6041bb3ddcc99ce6eea040" - integrity sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA== +eslint@8.24.0: + version "8.24.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.24.0.tgz#489516c927a5da11b3979dbfb2679394523383c8" + integrity sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ== dependencies: - "@eslint/eslintrc" "^1.3.1" - "@humanwhocodes/config-array" "^0.10.4" + "@eslint/eslintrc" "^1.3.2" + "@humanwhocodes/config-array" "^0.10.5" "@humanwhocodes/gitignore-to-minimatch" "^1.0.2" "@humanwhocodes/module-importer" "^1.0.1" ajv "^6.10.0" @@ -2097,7 +2097,6 @@ eslint@8.23.0: fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" find-up "^5.0.0" - functional-red-black-tree "^1.0.1" glob-parent "^6.0.1" globals "^13.15.0" globby "^11.1.0" @@ -2106,6 +2105,7 @@ eslint@8.23.0: import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" + js-sdsl "^4.1.4" js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" @@ -2430,11 +2430,6 @@ function.prototype.name@^1.1.5: es-abstract "^1.19.0" functions-have-names "^1.2.2" -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== - functions-have-names@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" @@ -3568,6 +3563,11 @@ jest@^27.0.6: import-local "^3.0.2" jest-cli "^27.5.1" +js-sdsl@^4.1.4: + version "4.1.5" + resolved "https://registry.yarnpkg.com/js-sdsl/-/js-sdsl-4.1.5.tgz#1ff1645e6b4d1b028cd3f862db88c9d887f26e2a" + integrity sha512-08bOAKweV2NUC1wqTtf3qZlnpOX/R2DU9ikpjOHs0H+ibQv3zpncVQg6um4uYtRtrwIX8M4Nh3ytK4HGlYAq7Q== + js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" From d33a2065434a43979eee6539e2216729ae736cab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 07:11:00 +0000 Subject: [PATCH 16/35] Bump vm2 from 3.9.10 to 3.9.11 Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.10 to 3.9.11. - [Release notes](https://github.com/patriksimek/vm2/releases) - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md) - [Commits](https://github.com/patriksimek/vm2/compare/3.9.10...3.9.11) --- updated-dependencies: - dependency-name: vm2 dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 50038c9..1b67502 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5336,9 +5336,9 @@ verror@1.10.0: extsprintf "^1.2.0" vm2@^3.9.8: - version "3.9.10" - resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.10.tgz#c66543096b5c44c8861a6465805c23c7cc996a44" - integrity sha512-AuECTSvwu2OHLAZYhG716YzwodKCIJxB6u1zG7PgSQwIgAlEaoXH52bxdcvT8GkGjnYK7r7yWDW0m0sOsPuBjQ== + version "3.9.11" + resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.11.tgz#a880f510a606481719ec3f9803b940c5805a06fe" + integrity sha512-PFG8iJRSjvvBdisowQ7iVF580DXb1uCIiGaXgm7tynMR1uTBlv7UJlB1zdv5KJ+Tmq1f0Upnj3fayoEOPpCBKg== dependencies: acorn "^8.7.0" acorn-walk "^8.2.0" From a3683f61925aeb1f5f1dcf1ab66afb365cfcd9c8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 07:12:14 +0000 Subject: [PATCH 17/35] Bump typescript from 4.8.2 to 4.8.4 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.8.2 to 4.8.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.8.2...v4.8.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index fc402f9..786e875 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "ts-jest": "^27.0.4", "ts-loader": "8.0.10", "ttypescript": "^1.5.10", - "typescript": "4.8.2" + "typescript": "4.8.4" }, "dependencies": { "https-proxy-agent": "5.0.1" diff --git a/yarn.lock b/yarn.lock index 50038c9..29b0168 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5230,10 +5230,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@4.8.2: - version "4.8.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790" - integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw== +typescript@4.8.4: + version "4.8.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== unbox-primitive@^1.0.2: version "1.0.2" From ca0d866c18029a7972a9872eac3c368fa67fe486 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 07:12:29 +0000 Subject: [PATCH 18/35] Bump @typescript-eslint/parser from 5.36.2 to 5.39.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.36.2 to 5.39.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.39.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 48 +++++++----------------------------------------- 2 files changed, 8 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index fc402f9..2f2d4d5 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@types/jest": "27.5.0", "@types/nock": "11.1.0", "@typescript-eslint/eslint-plugin": "5.39.0", - "@typescript-eslint/parser": "5.36.2", + "@typescript-eslint/parser": "5.39.0", "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", diff --git a/yarn.lock b/yarn.lock index 50038c9..5d7670b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -923,24 +923,16 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.36.2": - version "5.36.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.36.2.tgz#3ddf323d3ac85a25295a55fcb9c7a49ab4680ddd" - integrity sha512-qS/Kb0yzy8sR0idFspI9Z6+t7mqk/oRjnAYfewG+VN73opAUvmYL3oPIMmgOX6CnQS6gmVIXGshlb5RY/R22pA== +"@typescript-eslint/parser@5.39.0": + version "5.39.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.39.0.tgz#93fa0bc980a3a501e081824f6097f7ca30aaa22b" + integrity sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA== dependencies: - "@typescript-eslint/scope-manager" "5.36.2" - "@typescript-eslint/types" "5.36.2" - "@typescript-eslint/typescript-estree" "5.36.2" + "@typescript-eslint/scope-manager" "5.39.0" + "@typescript-eslint/types" "5.39.0" + "@typescript-eslint/typescript-estree" "5.39.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.36.2": - version "5.36.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.36.2.tgz#a75eb588a3879ae659514780831370642505d1cd" - integrity sha512-cNNP51L8SkIFSfce8B1NSUBTJTu2Ts4nWeWbFrdaqjmn9yKrAaJUBHkyTZc0cL06OFHpb+JZq5AUHROS398Orw== - dependencies: - "@typescript-eslint/types" "5.36.2" - "@typescript-eslint/visitor-keys" "5.36.2" - "@typescript-eslint/scope-manager@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz#873e1465afa3d6c78d8ed2da68aed266a08008d0" @@ -959,29 +951,11 @@ debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.36.2": - version "5.36.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.36.2.tgz#a5066e500ebcfcee36694186ccc57b955c05faf9" - integrity sha512-9OJSvvwuF1L5eS2EQgFUbECb99F0mwq501w0H0EkYULkhFa19Qq7WFbycdw1PexAc929asupbZcgjVIe6OK/XQ== - "@typescript-eslint/types@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.39.0.tgz#f4e9f207ebb4579fd854b25c0bf64433bb5ed78d" integrity sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw== -"@typescript-eslint/typescript-estree@5.36.2": - version "5.36.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.36.2.tgz#0c93418b36c53ba0bc34c61fe9405c4d1d8fe560" - integrity sha512-8fyH+RfbKc0mTspfuEjlfqA4YywcwQK2Amcf6TDOwaRLg7Vwdu4bZzyvBZp4bjt1RRjQ5MDnOZahxMrt2l5v9w== - dependencies: - "@typescript-eslint/types" "5.36.2" - "@typescript-eslint/visitor-keys" "5.36.2" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - "@typescript-eslint/typescript-estree@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz#c0316aa04a1a1f4f7f9498e3c13ef1d3dc4cf88b" @@ -1007,14 +981,6 @@ eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/visitor-keys@5.36.2": - version "5.36.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.36.2.tgz#2f8f78da0a3bad3320d2ac24965791ac39dace5a" - integrity sha512-BtRvSR6dEdrNt7Net2/XDjbYKU5Ml6GqJgVfXT0CxTCJlnIqK7rAGreuWKMT2t8cFUT2Msv5oxw0GMRD7T5J7A== - dependencies: - "@typescript-eslint/types" "5.36.2" - eslint-visitor-keys "^3.3.0" - "@typescript-eslint/visitor-keys@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz#8f41f7d241b47257b081ddba5d3ce80deaae61e2" From f9ee123b7d3e2fcca6b2c0ee2eb1d4ee7b033c13 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 07:12:34 +0000 Subject: [PATCH 19/35] Bump dotenv from 16.0.1 to 16.0.3 Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.0.1 to 16.0.3. - [Release notes](https://github.com/motdotla/dotenv/releases) - [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/motdotla/dotenv/compare/v16.0.1...v16.0.3) --- updated-dependencies: - dependency-name: dotenv dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 50038c9..0461654 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1852,9 +1852,9 @@ dot-prop@^6.0.1: is-obj "^2.0.0" dotenv@^16.0.0: - version "16.0.1" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.1.tgz#8f8f9d94876c35dac989876a5d3a82a267fdce1d" - integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ== + version "16.0.3" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07" + integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ== eastasianwidth@^0.2.0: version "0.2.0" From 0fda83998f2d7295892573e90c845d5ad941b232 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 07:12:53 +0000 Subject: [PATCH 20/35] Bump release-it from 15.4.1 to 15.5.0 Bumps [release-it](https://github.com/release-it/release-it) from 15.4.1 to 15.5.0. - [Release notes](https://github.com/release-it/release-it/releases) - [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/release-it/release-it/compare/15.4.1...15.5.0) --- updated-dependencies: - dependency-name: release-it dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 212 +++++++++++++++++---------------------------------- 2 files changed, 70 insertions(+), 144 deletions(-) diff --git a/package.json b/package.json index fc402f9..aa40f2f 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "kind-of": "^6.0.3", "minimist": ">=1.2.3", "nock": "13.2.9", - "release-it": "15.4.1", + "release-it": "15.5.0", "ts-auto-mock": "^3.3.5", "ts-jest": "^27.0.4", "ts-loader": "8.0.10", diff --git a/yarn.lock b/yarn.lock index 50038c9..9d2fcc5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -792,16 +792,6 @@ dependencies: "@babel/types" "^7.3.0" -"@types/cacheable-request@^6.0.2": - version "6.0.2" - resolved "https://registry.yarnpkg.com/@types/cacheable-request/-/cacheable-request-6.0.2.tgz#c324da0197de0a98a2312156536ae262429ff6b9" - integrity sha512-B3xVo+dlKM6nnKTcmm5ZtY/OL8bOAOd2Olee9M1zft65ox50OzjEHW91sDiU9j6cvW8Ejg1/Qkf4xd2kugApUA== - dependencies: - "@types/http-cache-semantics" "*" - "@types/keyv" "*" - "@types/node" "*" - "@types/responselike" "*" - "@types/graceful-fs@^4.1.2": version "4.1.5" resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" @@ -809,7 +799,7 @@ dependencies: "@types/node" "*" -"@types/http-cache-semantics@*": +"@types/http-cache-semantics@^4.0.1": version "4.0.1" resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.1.tgz#0ea7b61496902b95890dc4c3a116b60cb8dae812" integrity sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ== @@ -841,23 +831,11 @@ jest-matcher-utils "^27.0.0" pretty-format "^27.0.0" -"@types/json-buffer@~3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/json-buffer/-/json-buffer-3.0.0.tgz#85c1ff0f0948fc159810d4b5be35bf8c20875f64" - integrity sha512-3YP80IxxFJB4b5tYC2SUPwkg0XQLiu0nWvhRgEatgjf+29IcWO9X1k8xRv5DGssJ/lCrjYTjQPcobJr2yWIVuQ== - "@types/json-schema@^7.0.9": version "7.0.11" resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== -"@types/keyv@*": - version "3.1.4" - resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.4.tgz#3ccdb1c6751b0c7e52300bcdacd5bcbf8faa75b6" - integrity sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg== - dependencies: - "@types/node" "*" - "@types/nock@11.1.0": version "11.1.0" resolved "https://registry.yarnpkg.com/@types/nock/-/nock-11.1.0.tgz#0a8c1056a31ba32a959843abccf99626dd90a538" @@ -885,13 +863,6 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.6.3.tgz#68ada76827b0010d0db071f739314fa429943d0a" integrity sha512-ymZk3LEC/fsut+/Q5qejp6R9O1rMxz3XaRHDV6kX8MrGAhOSPqVARbDi+EZvInBpw+BnCX3TD240byVkOfQsHg== -"@types/responselike@*", "@types/responselike@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/responselike/-/responselike-1.0.0.tgz#251f4fe7d154d2bad125abe1b429b23afd262e29" - integrity sha512-85Y2BjiufFzaMIlvJDvTTB8Fxl2xfLo4HgmHzVBz08w4wDePCTjYw66PdrolO0kzli3yam/YCgRufyo1DdQVTA== - dependencies: - "@types/node" "*" - "@types/stack-utils@^2.0.0": version "2.0.1" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" @@ -1388,23 +1359,23 @@ bytes@3.1.2: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== -cacheable-lookup@^6.0.4: - version "6.0.4" - resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-6.0.4.tgz#65c0e51721bb7f9f2cb513aed6da4a1b93ad7dc8" - integrity sha512-mbcDEZCkv2CZF4G01kr8eBd/5agkt9oCqz75tJMSIsquvRZ2sL6Hi5zGVKi/0OSC9oO1GHfJ2AV0ZIOY9vye0A== +cacheable-lookup@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-7.0.0.tgz#3476a8215d046e5a3202a9209dd13fec1f933a27" + integrity sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w== -cacheable-request@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.2.tgz#ea0d0b889364a25854757301ca12b2da77f91d27" - integrity sha512-pouW8/FmiPQbuGpkXQ9BAPv/Mo5xDGANgSNXzTzJ8DrKGuXOssM4wIQRjfanNRh3Yu5cfYPvcorqbhg2KIJtew== +cacheable-request@^10.2.1: + version "10.2.1" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-10.2.1.tgz#cbc7480bf057fb7bd5bc7520f7e5a43d9c865626" + integrity sha512-3tLJyBjGuXw1s5gpKFSG3iS4kaKT4id04dZi98wzHQp/8cqZNweBnrF9J+rrlvrf4M53OdtDGNctNHFias8BEA== dependencies: - clone-response "^1.0.2" - get-stream "^5.1.0" - http-cache-semantics "^4.0.0" - keyv "^4.0.0" - lowercase-keys "^2.0.0" - normalize-url "^6.0.1" - responselike "^2.0.0" + "@types/http-cache-semantics" "^4.0.1" + get-stream "^6.0.1" + http-cache-semantics "^4.1.0" + keyv "^4.5.0" + mimic-response "^4.0.0" + normalize-url "^7.1.0" + responselike "^3.0.0" call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" @@ -1517,13 +1488,6 @@ cliui@^7.0.2: strip-ansi "^6.0.0" wrap-ansi "^7.0.0" -clone-response@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" - integrity sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q== - dependencies: - mimic-response "^1.0.0" - clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -1594,14 +1558,6 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -compress-brotli@^1.3.8: - version "1.3.8" - resolved "https://registry.yarnpkg.com/compress-brotli/-/compress-brotli-1.3.8.tgz#0c0a60c97a989145314ec381e84e26682e7b38db" - integrity sha512-lVcQsjhxhIXsuupfy9fmZUFtAIdBmXA7EGY6GBdgZ++qkM9zG4YFT8iU7FoBxzryNDMOpD1HIFHUSX4D87oqhQ== - dependencies: - "@types/json-buffer" "~3.0.0" - json-buffer "~3.0.1" - concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -1899,13 +1855,6 @@ enabled@2.0.x: resolved "https://registry.yarnpkg.com/enabled/-/enabled-2.0.0.tgz#f9dd92ec2d6f4bbc0d5d1e64e21d61cd4665e7c2" integrity sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ== -end-of-stream@^1.1.0: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - enhanced-resolve@^4.0.0: version "4.5.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz#2f3cfd84dbe3b487f18f2db2ef1e064a571ca5ec" @@ -2283,10 +2232,10 @@ fetch-blob@^3.1.2, fetch-blob@^3.1.4: node-domexception "^1.0.0" web-streams-polyfill "^3.0.3" -figures@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/figures/-/figures-4.0.1.tgz#27b26609907bc888b3e3b0ef5403643f80aa2518" - integrity sha512-rElJwkA/xS04Vfg+CaZodpso7VqBknOYbzi6I76hI4X80RUjkSxO2oAyPmGbuXUppywjqndOrQDl817hDnI++w== +figures@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-5.0.0.tgz#126cd055052dea699f8a54e8c9450e6ecfc44d5f" + integrity sha512-ej8ksPF4x6e5wvK9yevct0UCXh8TTFlWGVLlgjZuoBH1HwjIfKE/IdL5mq89sFA7zELi1VhKpmtDnrs7zWyeyg== dependencies: escape-string-regexp "^5.0.0" is-unicode-supported "^1.2.0" @@ -2349,10 +2298,10 @@ forever-agent@~0.6.1: resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== -form-data-encoder@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-2.0.1.tgz#aec41860aca0275cb6026650d139c6701b0992c1" - integrity sha512-Oy+P9w5mnO4TWXVgUiQvggNKPI9/ummcSt5usuIV6HkaLKigwzPpoenhEqmGmx3zHqm6ZLJ+CR/99N8JLinaEw== +form-data-encoder@^2.1.2: + version "2.1.3" + resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-2.1.3.tgz#682cd821a8423605093992ff895e6b2ed5a9d429" + integrity sha512-KqU0nnPMgIJcCOFTNJFEA8epcseEaoox4XZffTgy8jlI6pL/5EFyR54NRG7CnCJN0biY7q52DO3MH6/sJ/TKlQ== form-data@4.0.0: version "4.0.0" @@ -2459,13 +2408,6 @@ get-package-type@^0.1.0: resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-stream@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" - integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== - dependencies: - pump "^3.0.0" - get-stream@^6.0.0, get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -2506,10 +2448,10 @@ git-up@^7.0.0: is-ssh "^1.4.0" parse-url "^8.1.0" -git-url-parse@13.0.0: - version "13.0.0" - resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-13.0.0.tgz#9a18d0eaec579fb6379c368aecb09f00b544669c" - integrity sha512-X1kozCqKL82dMrCLi4vie9SHDC+QugKskAMs4VUbIkhURKg5yDwxDmf6Ixg73J+/xVgK5TXKhzn8a94nHJHpnA== +git-url-parse@13.1.0: + version "13.1.0" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-13.1.0.tgz#07e136b5baa08d59fabdf0e33170de425adf07b4" + integrity sha512-5FvPJP/70WkIprlUZ33bm4UAaFdjcLkJLpWft1BeZKqwR0uhhNGoKwlUaPtVb4LxCSQ++erHapRak9kWGj+FCA== dependencies: git-up "^7.0.0" @@ -2581,24 +2523,22 @@ globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -got@12.3.1, got@^12.1.0: - version "12.3.1" - resolved "https://registry.yarnpkg.com/got/-/got-12.3.1.tgz#79d6ebc0cb8358c424165698ddb828be56e74684" - integrity sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw== +got@12.5.1, got@^12.1.0: + version "12.5.1" + resolved "https://registry.yarnpkg.com/got/-/got-12.5.1.tgz#0796191c61478273f4cdbeb19d358a75a54a008d" + integrity sha512-sD16AK8cCyUoPtKr/NMvLTFFa+T3i3S+zoiuvhq0HP2YiqBZA9AtlBjAdsQBsLBK7slPuvmfE0OxhGi7N5dD4w== dependencies: "@sindresorhus/is" "^5.2.0" "@szmarczak/http-timer" "^5.0.1" - "@types/cacheable-request" "^6.0.2" - "@types/responselike" "^1.0.0" - cacheable-lookup "^6.0.4" - cacheable-request "^7.0.2" + cacheable-lookup "^7.0.0" + cacheable-request "^10.2.1" decompress-response "^6.0.0" - form-data-encoder "^2.0.1" + form-data-encoder "^2.1.2" get-stream "^6.0.1" http2-wrapper "^2.1.10" lowercase-keys "^3.0.0" p-cancelable "^3.0.0" - responselike "^2.0.0" + responselike "^3.0.0" graceful-fs@4.2.10, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.6, graceful-fs@^4.2.9: version "4.2.10" @@ -2681,7 +2621,7 @@ html-escaper@^2.0.0: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== -http-cache-semantics@^4.0.0: +http-cache-semantics@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== @@ -2807,17 +2747,17 @@ ini@^1.3.4, ini@~1.3.0: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -inquirer@9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.1.0.tgz#446a09abe2e5a18973322bee89b42a6c304f2cd3" - integrity sha512-eukdjrBljg9t55ZnvJjvGi1OyYEzVBFsO/8o5d2MV3mc28u3x4X2kS4eJ/+9U10KiREfPkEBSeCrU/S2G/uRtw== +inquirer@9.1.2: + version "9.1.2" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.1.2.tgz#37f5486f3de0e38820aad83a1f75c52c747e2f9a" + integrity sha512-Hj2Ml1WpxKJU2npP2Rj0OURGkHV+GtNW2CwFdHDiXlqUBAUrWTcZHxCkFywX/XHzOS7wrG/kExgJFbUkVgyHzg== dependencies: ansi-escapes "^5.0.0" chalk "^5.0.1" cli-cursor "^4.0.0" cli-width "^4.0.0" external-editor "^3.0.3" - figures "^4.0.1" + figures "^5.0.0" lodash "^4.17.21" mute-stream "0.0.8" ora "^6.1.2" @@ -3631,7 +3571,7 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -json-buffer@3.0.1, json-buffer@~3.0.1: +json-buffer@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== @@ -3690,12 +3630,11 @@ jsprim@^1.2.2: json-schema "0.4.0" verror "1.10.0" -keyv@^4.0.0: - version "4.3.2" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.3.2.tgz#e839df676a0c7ee594c8835e7c1c83742558e5c2" - integrity sha512-kn8WmodVBe12lmHpA6W8OY7SNh6wVR+Z+wZESF4iF5FCazaVXGWOtnbnvX0tMQ1bO+/TmOD9LziuYMvrIIs0xw== +keyv@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.0.tgz#dbce9ade79610b6e641a9a65f2f6499ba06b9bc6" + integrity sha512-2YvuMsA+jnFGtBareKqgANOEKe1mk3HKiXu2fRmAfyxG0MJAywNhi5ttWA3PMjl4NmpyjZNbFifR2vNjW1znfA== dependencies: - compress-brotli "^1.3.8" json-buffer "3.0.1" kind-of@^6.0.3: @@ -3818,11 +3757,6 @@ logform@^2.3.2, logform@^2.4.0: safe-stable-stringify "^2.3.1" triple-beam "^1.3.0" -lowercase-keys@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" - integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== - lowercase-keys@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-3.0.0.tgz#c5e7d442e37ead247ae9db117a9d0a467c89d4f2" @@ -3914,16 +3848,16 @@ mimic-fn@^4.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== -mimic-response@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" - integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== - mimic-response@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== +mimic-response@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-4.0.0.tgz#35468b19e7c75d10f5165ea25e75a5ceea7cf70f" + integrity sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg== + minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" @@ -4014,10 +3948,10 @@ normalize-path@^3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -normalize-url@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" - integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A== +normalize-url@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-7.2.0.tgz#5317f78cff95f5fa1e76cc0b5e33245c43781e11" + integrity sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA== npm-run-path@^4.0.1: version "4.0.1" @@ -4063,7 +3997,7 @@ object.assign@^4.1.2: has-symbols "^1.0.1" object-keys "^1.1.1" -once@^1.3.0, once@^1.3.1, once@^1.4.0: +once@^1.3.0, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== @@ -4405,14 +4339,6 @@ psl@^1.1.28, psl@^1.1.33: resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== -pump@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" - integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== - dependencies: - end-of-stream "^1.1.0" - once "^1.3.1" - punycode@^2.1.0, punycode@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" @@ -4532,10 +4458,10 @@ registry-url@^6.0.0: dependencies: rc "1.2.8" -release-it@15.4.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.4.1.tgz#bf9302124405e57401bd10bd635d9458b30faf15" - integrity sha512-w6adXfE+bN/fdcG1KehgS7gYcTfZLYIPml4jPOUEtYQ6NJyaiCtCF/ks032w1jf6EUgvGgWruRP+2TyyyDDBgA== +release-it@15.5.0: + version "15.5.0" + resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.5.0.tgz#773c247d4fd5a5e5c8801b02bf1e7e9e536bee27" + integrity sha512-/pQo/PwEXAWRBgVGLE+3IQ3hUoeiDZMGAo/Egin1envCyLyjzrU7+0P2w4iZ1Xv5OxhC2AcaPaN5eY1ql47cBA== dependencies: "@iarna/toml" "2.2.5" "@octokit/rest" "19.0.4" @@ -4544,10 +4470,10 @@ release-it@15.4.1: cosmiconfig "7.0.1" execa "6.1.0" form-data "4.0.0" - git-url-parse "13.0.0" + git-url-parse "13.1.0" globby "13.1.2" - got "12.3.1" - inquirer "9.1.0" + got "12.5.1" + inquirer "9.1.2" is-ci "3.0.1" lodash "4.17.21" mime-types "2.1.35" @@ -4632,12 +4558,12 @@ resolve@>=1.9.0, resolve@^1.1.6, resolve@^1.20.0: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" -responselike@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/responselike/-/responselike-2.0.0.tgz#26391bcc3174f750f9a79eacc40a12a5c42d7723" - integrity sha512-xH48u3FTB9VsZw7R+vvgaKeLKzT6jOogbQhEe/jewwnZgzPcnyWui2Av6JpoYZF/91uueC+lqhWqeURw5/qhCw== +responselike@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-3.0.0.tgz#20decb6c298aff0dbee1c355ca95461d42823626" + integrity sha512-40yHxbNcl2+rzXvZuVkrYohathsSJlMTXKryG5y8uciHv1+xDLHQpgjG64JUO9nrEq2jGLH6IZ8BcZyw3wrweg== dependencies: - lowercase-keys "^2.0.0" + lowercase-keys "^3.0.0" restore-cursor@^4.0.0: version "4.0.0" From 1e83db346588da1655fefad1d3b829dd06aa4210 Mon Sep 17 00:00:00 2001 From: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> Date: Thu, 6 Oct 2022 13:01:02 +0200 Subject: [PATCH 21/35] add LEM service to services index --- src/services/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/index.ts b/src/services/index.ts index d32dafb..cf2bb41 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -8,4 +8,5 @@ export { default as Payout } from "./payout"; export { default as Platforms } from "./platforms"; export { default as StoredValue} from "./storedValue"; export { default as TerminalManagement} from "./terminalManagement"; -export { default as Management } from "./management"; \ No newline at end of file +export { default as Management } from "./management"; +export { default as LegalEntityManagement } from "./legalEntityManagement"; From f382796730a391b2045c91881151a2a9d4d72423 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Campos?= Date: Mon, 10 Oct 2022 13:58:40 +0200 Subject: [PATCH 22/35] Replace individual codeowners with Adyen JS Github team (#1016) --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3e518ce..b7d815f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @zaiddreakh @maassenbas @AlexandrosMor @peterojo @wboereboom @michaelpaul +* @Adyen/javascript From 3b24e07cd35c741202ad9d495a2e06df090897ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Oct 2022 04:02:26 +0000 Subject: [PATCH 23/35] Bump minimist from 1.2.6 to 1.2.7 Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.6 to 1.2.7. - [Release notes](https://github.com/minimistjs/minimist/releases) - [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md) - [Commits](https://github.com/minimistjs/minimist/compare/v1.2.6...v1.2.7) --- updated-dependencies: - dependency-name: minimist dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 83d3f19..353a0f9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3832,9 +3832,9 @@ minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: brace-expansion "^1.1.7" minimist@>=1.2.3, minimist@^1.2.0, minimist@^1.2.5: - version "1.2.6" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" - integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== + version "1.2.7" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" + integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g== ms@2.1.2: version "2.1.2" From 7e790b6bfbaebb87192c403ce33fa1d80e3bfab6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Oct 2022 04:02:43 +0000 Subject: [PATCH 24/35] Bump @typescript-eslint/parser from 5.39.0 to 5.40.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.39.0 to 5.40.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 48 +++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index f5b2d9b..bda1cc5 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@types/jest": "27.5.0", "@types/nock": "11.1.0", "@typescript-eslint/eslint-plugin": "5.39.0", - "@typescript-eslint/parser": "5.39.0", + "@typescript-eslint/parser": "5.40.0", "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", diff --git a/yarn.lock b/yarn.lock index 83d3f19..4dc7e1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -894,14 +894,14 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.39.0.tgz#93fa0bc980a3a501e081824f6097f7ca30aaa22b" - integrity sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA== +"@typescript-eslint/parser@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.40.0.tgz#432bddc1fe9154945660f67c1ba6d44de5014840" + integrity sha512-Ah5gqyX2ySkiuYeOIDg7ap51/b63QgWZA7w6AHtFrag7aH0lRQPbLzUjk0c9o5/KZ6JRkTTDKShL4AUrQa6/hw== dependencies: - "@typescript-eslint/scope-manager" "5.39.0" - "@typescript-eslint/types" "5.39.0" - "@typescript-eslint/typescript-estree" "5.39.0" + "@typescript-eslint/scope-manager" "5.40.0" + "@typescript-eslint/types" "5.40.0" + "@typescript-eslint/typescript-estree" "5.40.0" debug "^4.3.4" "@typescript-eslint/scope-manager@5.39.0": @@ -912,6 +912,14 @@ "@typescript-eslint/types" "5.39.0" "@typescript-eslint/visitor-keys" "5.39.0" +"@typescript-eslint/scope-manager@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.40.0.tgz#d6ea782c8e3a2371ba3ea31458dcbdc934668fc4" + integrity sha512-d3nPmjUeZtEWRvyReMI4I1MwPGC63E8pDoHy0BnrYjnJgilBD3hv7XOiETKLY/zTwI7kCnBDf2vWTRUVpYw0Uw== + dependencies: + "@typescript-eslint/types" "5.40.0" + "@typescript-eslint/visitor-keys" "5.40.0" + "@typescript-eslint/type-utils@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz#0a8c00f95dce4335832ad2dc6bc431c14e32a0a6" @@ -927,6 +935,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.39.0.tgz#f4e9f207ebb4579fd854b25c0bf64433bb5ed78d" integrity sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw== +"@typescript-eslint/types@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.0.tgz#8de07e118a10b8f63c99e174a3860f75608c822e" + integrity sha512-V1KdQRTXsYpf1Y1fXCeZ+uhjW48Niiw0VGt4V8yzuaDTU8Z1Xl7yQDyQNqyAFcVhpYXIVCEuxSIWTsLDpHgTbw== + "@typescript-eslint/typescript-estree@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz#c0316aa04a1a1f4f7f9498e3c13ef1d3dc4cf88b" @@ -940,6 +953,19 @@ semver "^7.3.7" tsutils "^3.21.0" +"@typescript-eslint/typescript-estree@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.0.tgz#e305e6a5d65226efa5471ee0f12e0ffaab6d3075" + integrity sha512-b0GYlDj8TLTOqwX7EGbw2gL5EXS2CPEWhF9nGJiGmEcmlpNBjyHsTwbqpyIEPVpl6br4UcBOYlcI2FJVtJkYhg== + dependencies: + "@typescript-eslint/types" "5.40.0" + "@typescript-eslint/visitor-keys" "5.40.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + "@typescript-eslint/utils@5.39.0": version "5.39.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.39.0.tgz#b7063cca1dcf08d1d21b0d91db491161ad0be110" @@ -960,6 +986,14 @@ "@typescript-eslint/types" "5.39.0" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.0.tgz#dd2d38097f68e0d2e1e06cb9f73c0173aca54b68" + integrity sha512-ijJ+6yig+x9XplEpG2K6FUdJeQGGj/15U3S56W9IqXKJqleuD7zJ2AX/miLezwxpd7ZxDAqO87zWufKg+RPZyQ== + dependencies: + "@typescript-eslint/types" "5.40.0" + eslint-visitor-keys "^3.3.0" + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" From 3e134634c0efee86f4260be28e1641e51e85ac60 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 06:27:04 +0000 Subject: [PATCH 25/35] Bump eslint from 8.24.0 to 8.25.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.24.0 to 8.25.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.24.0...v8.25.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 24 +++++++++--------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index bda1cc5..e7419aa 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", - "eslint": "8.24.0", + "eslint": "8.25.0", "jest": "^27.0.6", "jest-ts-auto-mock": "^2.0.0", "kind-of": "^6.0.3", diff --git a/yarn.lock b/yarn.lock index e5fff19..76fb352 100644 --- a/yarn.lock +++ b/yarn.lock @@ -298,10 +298,10 @@ enabled "2.0.x" kuler "^2.0.0" -"@eslint/eslintrc@^1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.2.tgz#58b69582f3b7271d8fa67fe5251767a5b38ea356" - integrity sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ== +"@eslint/eslintrc@^1.3.3": + version "1.3.3" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.3.tgz#2b044ab39fdfa75b4688184f9e573ce3c5b0ff95" + integrity sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg== dependencies: ajv "^6.12.4" debug "^4.3.2" @@ -322,11 +322,6 @@ debug "^4.1.1" minimatch "^3.0.4" -"@humanwhocodes/gitignore-to-minimatch@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz#316b0a63b91c10e53f242efb4ace5c3b34e8728d" - integrity sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA== - "@humanwhocodes/module-importer@^1.0.1": version "1.0.1" resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" @@ -2022,14 +2017,13 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@8.24.0: - version "8.24.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.24.0.tgz#489516c927a5da11b3979dbfb2679394523383c8" - integrity sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ== +eslint@8.25.0: + version "8.25.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.25.0.tgz#00eb962f50962165d0c4ee3327708315eaa8058b" + integrity sha512-DVlJOZ4Pn50zcKW5bYH7GQK/9MsoQG2d5eDH0ebEkE8PbgzTTmtt/VTH9GGJ4BfeZCpBLqFfvsjX35UacUL83A== dependencies: - "@eslint/eslintrc" "^1.3.2" + "@eslint/eslintrc" "^1.3.3" "@humanwhocodes/config-array" "^0.10.5" - "@humanwhocodes/gitignore-to-minimatch" "^1.0.2" "@humanwhocodes/module-importer" "^1.0.1" ajv "^6.10.0" chalk "^4.0.0" From 962c8d62cd23b9bc14edec929ab284066653fdc0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 06:27:51 +0000 Subject: [PATCH 26/35] Bump @typescript-eslint/eslint-plugin from 5.39.0 to 5.40.0 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.39.0 to 5.40.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 75 +++++++++++++++------------------------------------- 2 files changed, 22 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index bda1cc5..74b2be9 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/jest": "27.5.0", "@types/nock": "11.1.0", - "@typescript-eslint/eslint-plugin": "5.39.0", + "@typescript-eslint/eslint-plugin": "5.40.0", "@typescript-eslint/parser": "5.40.0", "acorn": "^8.0.1", "coveralls": "3.1.1", diff --git a/yarn.lock b/yarn.lock index e5fff19..c85e197 100644 --- a/yarn.lock +++ b/yarn.lock @@ -880,14 +880,14 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz#778b2d9e7f293502c7feeea6c74dca8eb3e67511" - integrity sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A== +"@typescript-eslint/eslint-plugin@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.0.tgz#0159bb71410eec563968288a17bd4478cdb685bd" + integrity sha512-FIBZgS3DVJgqPwJzvZTuH4HNsZhHMa9SjxTKAZTlMsPw/UzpEjcf9f4dfgDJEHjK+HboUJo123Eshl6niwEm/Q== dependencies: - "@typescript-eslint/scope-manager" "5.39.0" - "@typescript-eslint/type-utils" "5.39.0" - "@typescript-eslint/utils" "5.39.0" + "@typescript-eslint/scope-manager" "5.40.0" + "@typescript-eslint/type-utils" "5.40.0" + "@typescript-eslint/utils" "5.40.0" debug "^4.3.4" ignore "^5.2.0" regexpp "^3.2.0" @@ -904,14 +904,6 @@ "@typescript-eslint/typescript-estree" "5.40.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz#873e1465afa3d6c78d8ed2da68aed266a08008d0" - integrity sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw== - dependencies: - "@typescript-eslint/types" "5.39.0" - "@typescript-eslint/visitor-keys" "5.39.0" - "@typescript-eslint/scope-manager@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.40.0.tgz#d6ea782c8e3a2371ba3ea31458dcbdc934668fc4" @@ -920,39 +912,21 @@ "@typescript-eslint/types" "5.40.0" "@typescript-eslint/visitor-keys" "5.40.0" -"@typescript-eslint/type-utils@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz#0a8c00f95dce4335832ad2dc6bc431c14e32a0a6" - integrity sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA== +"@typescript-eslint/type-utils@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.40.0.tgz#4964099d0158355e72d67a370249d7fc03331126" + integrity sha512-nfuSdKEZY2TpnPz5covjJqav+g5qeBqwSHKBvz7Vm1SAfy93SwKk/JeSTymruDGItTwNijSsno5LhOHRS1pcfw== dependencies: - "@typescript-eslint/typescript-estree" "5.39.0" - "@typescript-eslint/utils" "5.39.0" + "@typescript-eslint/typescript-estree" "5.40.0" + "@typescript-eslint/utils" "5.40.0" debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.39.0.tgz#f4e9f207ebb4579fd854b25c0bf64433bb5ed78d" - integrity sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw== - "@typescript-eslint/types@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.0.tgz#8de07e118a10b8f63c99e174a3860f75608c822e" integrity sha512-V1KdQRTXsYpf1Y1fXCeZ+uhjW48Niiw0VGt4V8yzuaDTU8Z1Xl7yQDyQNqyAFcVhpYXIVCEuxSIWTsLDpHgTbw== -"@typescript-eslint/typescript-estree@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz#c0316aa04a1a1f4f7f9498e3c13ef1d3dc4cf88b" - integrity sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA== - dependencies: - "@typescript-eslint/types" "5.39.0" - "@typescript-eslint/visitor-keys" "5.39.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - "@typescript-eslint/typescript-estree@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.0.tgz#e305e6a5d65226efa5471ee0f12e0ffaab6d3075" @@ -966,25 +940,18 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.39.0.tgz#b7063cca1dcf08d1d21b0d91db491161ad0be110" - integrity sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg== +"@typescript-eslint/utils@5.40.0": + version "5.40.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.40.0.tgz#647f56a875fd09d33c6abd70913c3dd50759b772" + integrity sha512-MO0y3T5BQ5+tkkuYZJBjePewsY+cQnfkYeRqS6tPh28niiIwPnQ1t59CSRcs1ZwJJNOdWw7rv9pF8aP58IMihA== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.39.0" - "@typescript-eslint/types" "5.39.0" - "@typescript-eslint/typescript-estree" "5.39.0" + "@typescript-eslint/scope-manager" "5.40.0" + "@typescript-eslint/types" "5.40.0" + "@typescript-eslint/typescript-estree" "5.40.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" - -"@typescript-eslint/visitor-keys@5.39.0": - version "5.39.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz#8f41f7d241b47257b081ddba5d3ce80deaae61e2" - integrity sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg== - dependencies: - "@typescript-eslint/types" "5.39.0" - eslint-visitor-keys "^3.3.0" + semver "^7.3.7" "@typescript-eslint/visitor-keys@5.40.0": version "5.40.0" From ba8f2b44f3202a3e80d20e659249d7ac21a9d643 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Oct 2022 04:02:07 +0000 Subject: [PATCH 27/35] Bump @typescript-eslint/parser from 5.40.0 to 5.40.1 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.40.0 to 5.40.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 48 +++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index b5e254b..a888dad 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@types/jest": "27.5.0", "@types/nock": "11.1.0", "@typescript-eslint/eslint-plugin": "5.40.0", - "@typescript-eslint/parser": "5.40.0", + "@typescript-eslint/parser": "5.40.1", "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", diff --git a/yarn.lock b/yarn.lock index 26e9c61..ff9b73b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -889,14 +889,14 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.40.0.tgz#432bddc1fe9154945660f67c1ba6d44de5014840" - integrity sha512-Ah5gqyX2ySkiuYeOIDg7ap51/b63QgWZA7w6AHtFrag7aH0lRQPbLzUjk0c9o5/KZ6JRkTTDKShL4AUrQa6/hw== +"@typescript-eslint/parser@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.40.1.tgz#e7f8295dd8154d0d37d661ddd8e2f0ecfdee28dd" + integrity sha512-IK6x55va5w4YvXd4b3VrXQPldV9vQTxi5ov+g4pMANsXPTXOcfjx08CRR1Dfrcc51syPtXHF5bgLlMHYFrvQtg== dependencies: - "@typescript-eslint/scope-manager" "5.40.0" - "@typescript-eslint/types" "5.40.0" - "@typescript-eslint/typescript-estree" "5.40.0" + "@typescript-eslint/scope-manager" "5.40.1" + "@typescript-eslint/types" "5.40.1" + "@typescript-eslint/typescript-estree" "5.40.1" debug "^4.3.4" "@typescript-eslint/scope-manager@5.40.0": @@ -907,6 +907,14 @@ "@typescript-eslint/types" "5.40.0" "@typescript-eslint/visitor-keys" "5.40.0" +"@typescript-eslint/scope-manager@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.40.1.tgz#a7a5197dfd234622a2421ea590ee0ccc02e18dfe" + integrity sha512-jkn4xsJiUQucI16OLCXrLRXDZ3afKhOIqXs4R3O+M00hdQLKR58WuyXPZZjhKLFCEP2g+TXdBRtLQ33UfAdRUg== + dependencies: + "@typescript-eslint/types" "5.40.1" + "@typescript-eslint/visitor-keys" "5.40.1" + "@typescript-eslint/type-utils@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.40.0.tgz#4964099d0158355e72d67a370249d7fc03331126" @@ -922,6 +930,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.0.tgz#8de07e118a10b8f63c99e174a3860f75608c822e" integrity sha512-V1KdQRTXsYpf1Y1fXCeZ+uhjW48Niiw0VGt4V8yzuaDTU8Z1Xl7yQDyQNqyAFcVhpYXIVCEuxSIWTsLDpHgTbw== +"@typescript-eslint/types@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.1.tgz#de37f4f64de731ee454bb2085d71030aa832f749" + integrity sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw== + "@typescript-eslint/typescript-estree@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.0.tgz#e305e6a5d65226efa5471ee0f12e0ffaab6d3075" @@ -935,6 +948,19 @@ semver "^7.3.7" tsutils "^3.21.0" +"@typescript-eslint/typescript-estree@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.1.tgz#9a7d25492f02c69882ce5e0cd1857b0c55645d72" + integrity sha512-5QTP/nW5+60jBcEPfXy/EZL01qrl9GZtbgDZtDPlfW5zj/zjNrdI2B5zMUHmOsfvOr2cWqwVdWjobCiHcedmQA== + dependencies: + "@typescript-eslint/types" "5.40.1" + "@typescript-eslint/visitor-keys" "5.40.1" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + "@typescript-eslint/utils@5.40.0": version "5.40.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.40.0.tgz#647f56a875fd09d33c6abd70913c3dd50759b772" @@ -956,6 +982,14 @@ "@typescript-eslint/types" "5.40.0" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.1.tgz#f3d2bf5af192f4432b84cec6fdcb387193518754" + integrity sha512-A2DGmeZ+FMja0geX5rww+DpvILpwo1OsiQs0M+joPWJYsiEFBLsH0y1oFymPNul6Z5okSmHpP4ivkc2N0Cgfkw== + dependencies: + "@typescript-eslint/types" "5.40.1" + eslint-visitor-keys "^3.3.0" + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" From 343e04f475b65e24ed4277fc6f7bba90b69bffc2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Oct 2022 06:53:34 +0000 Subject: [PATCH 28/35] Bump @typescript-eslint/eslint-plugin from 5.40.0 to 5.40.1 Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.40.0 to 5.40.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.40.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 80 +++++++++++++++++----------------------------------- 2 files changed, 27 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index a888dad..0e0e9ce 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/jest": "27.5.0", "@types/nock": "11.1.0", - "@typescript-eslint/eslint-plugin": "5.40.0", + "@typescript-eslint/eslint-plugin": "5.40.1", "@typescript-eslint/parser": "5.40.1", "acorn": "^8.0.1", "coveralls": "3.1.1", diff --git a/yarn.lock b/yarn.lock index ff9b73b..d22955f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -858,6 +858,11 @@ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.6.3.tgz#68ada76827b0010d0db071f739314fa429943d0a" integrity sha512-ymZk3LEC/fsut+/Q5qejp6R9O1rMxz3XaRHDV6kX8MrGAhOSPqVARbDi+EZvInBpw+BnCX3TD240byVkOfQsHg== +"@types/semver@^7.3.12": + version "7.3.12" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.12.tgz#920447fdd78d76b19de0438b7f60df3c4a80bf1c" + integrity sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A== + "@types/stack-utils@^2.0.0": version "2.0.1" resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" @@ -875,14 +880,14 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.0.tgz#0159bb71410eec563968288a17bd4478cdb685bd" - integrity sha512-FIBZgS3DVJgqPwJzvZTuH4HNsZhHMa9SjxTKAZTlMsPw/UzpEjcf9f4dfgDJEHjK+HboUJo123Eshl6niwEm/Q== +"@typescript-eslint/eslint-plugin@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.1.tgz#3203a6ff396b1194083faaa6e5110c401201d7d5" + integrity sha512-FsWboKkWdytGiXT5O1/R9j37YgcjO8MKHSUmWnIEjVaz0krHkplPnYi7mwdb+5+cs0toFNQb0HIrN7zONdIEWg== dependencies: - "@typescript-eslint/scope-manager" "5.40.0" - "@typescript-eslint/type-utils" "5.40.0" - "@typescript-eslint/utils" "5.40.0" + "@typescript-eslint/scope-manager" "5.40.1" + "@typescript-eslint/type-utils" "5.40.1" + "@typescript-eslint/utils" "5.40.1" debug "^4.3.4" ignore "^5.2.0" regexpp "^3.2.0" @@ -899,14 +904,6 @@ "@typescript-eslint/typescript-estree" "5.40.1" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.40.0.tgz#d6ea782c8e3a2371ba3ea31458dcbdc934668fc4" - integrity sha512-d3nPmjUeZtEWRvyReMI4I1MwPGC63E8pDoHy0BnrYjnJgilBD3hv7XOiETKLY/zTwI7kCnBDf2vWTRUVpYw0Uw== - dependencies: - "@typescript-eslint/types" "5.40.0" - "@typescript-eslint/visitor-keys" "5.40.0" - "@typescript-eslint/scope-manager@5.40.1": version "5.40.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.40.1.tgz#a7a5197dfd234622a2421ea590ee0ccc02e18dfe" @@ -915,39 +912,21 @@ "@typescript-eslint/types" "5.40.1" "@typescript-eslint/visitor-keys" "5.40.1" -"@typescript-eslint/type-utils@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.40.0.tgz#4964099d0158355e72d67a370249d7fc03331126" - integrity sha512-nfuSdKEZY2TpnPz5covjJqav+g5qeBqwSHKBvz7Vm1SAfy93SwKk/JeSTymruDGItTwNijSsno5LhOHRS1pcfw== +"@typescript-eslint/type-utils@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.40.1.tgz#091e4ce3bebbdb68f4980bae9dee2e4e1725f601" + integrity sha512-DLAs+AHQOe6n5LRraXiv27IYPhleF0ldEmx6yBqBgBLaNRKTkffhV1RPsjoJBhVup2zHxfaRtan8/YRBgYhU9Q== dependencies: - "@typescript-eslint/typescript-estree" "5.40.0" - "@typescript-eslint/utils" "5.40.0" + "@typescript-eslint/typescript-estree" "5.40.1" + "@typescript-eslint/utils" "5.40.1" debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.0.tgz#8de07e118a10b8f63c99e174a3860f75608c822e" - integrity sha512-V1KdQRTXsYpf1Y1fXCeZ+uhjW48Niiw0VGt4V8yzuaDTU8Z1Xl7yQDyQNqyAFcVhpYXIVCEuxSIWTsLDpHgTbw== - "@typescript-eslint/types@5.40.1": version "5.40.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.1.tgz#de37f4f64de731ee454bb2085d71030aa832f749" integrity sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw== -"@typescript-eslint/typescript-estree@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.0.tgz#e305e6a5d65226efa5471ee0f12e0ffaab6d3075" - integrity sha512-b0GYlDj8TLTOqwX7EGbw2gL5EXS2CPEWhF9nGJiGmEcmlpNBjyHsTwbqpyIEPVpl6br4UcBOYlcI2FJVtJkYhg== - dependencies: - "@typescript-eslint/types" "5.40.0" - "@typescript-eslint/visitor-keys" "5.40.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - "@typescript-eslint/typescript-estree@5.40.1": version "5.40.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.1.tgz#9a7d25492f02c69882ce5e0cd1857b0c55645d72" @@ -961,27 +940,20 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.40.0.tgz#647f56a875fd09d33c6abd70913c3dd50759b772" - integrity sha512-MO0y3T5BQ5+tkkuYZJBjePewsY+cQnfkYeRqS6tPh28niiIwPnQ1t59CSRcs1ZwJJNOdWw7rv9pF8aP58IMihA== +"@typescript-eslint/utils@5.40.1": + version "5.40.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.40.1.tgz#3204fb73a559d3b7bab7dc9d3c44487c2734a9ca" + integrity sha512-a2TAVScoX9fjryNrW6BZRnreDUszxqm9eQ9Esv8n5nXApMW0zeANUYlwh/DED04SC/ifuBvXgZpIK5xeJHQ3aw== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.40.0" - "@typescript-eslint/types" "5.40.0" - "@typescript-eslint/typescript-estree" "5.40.0" + "@types/semver" "^7.3.12" + "@typescript-eslint/scope-manager" "5.40.1" + "@typescript-eslint/types" "5.40.1" + "@typescript-eslint/typescript-estree" "5.40.1" eslint-scope "^5.1.1" eslint-utils "^3.0.0" semver "^7.3.7" -"@typescript-eslint/visitor-keys@5.40.0": - version "5.40.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.0.tgz#dd2d38097f68e0d2e1e06cb9f73c0173aca54b68" - integrity sha512-ijJ+6yig+x9XplEpG2K6FUdJeQGGj/15U3S56W9IqXKJqleuD7zJ2AX/miLezwxpd7ZxDAqO87zWufKg+RPZyQ== - dependencies: - "@typescript-eslint/types" "5.40.0" - eslint-visitor-keys "^3.3.0" - "@typescript-eslint/visitor-keys@5.40.1": version "5.40.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.1.tgz#f3d2bf5af192f4432b84cec6fdcb387193518754" From ffbf955b952da69a92f491a7ee8d20b01e9854c1 Mon Sep 17 00:00:00 2001 From: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> Date: Thu, 27 Oct 2022 16:45:47 +0200 Subject: [PATCH 29/35] Pw 6850/bank issueing fund transfers (#1027) * add TransferService to Makefile * add transfers API to library * update typings and add unit tests --- Makefile | 3 +- README.md | 4 +- src/__mocks__/base.ts | 1 + src/__mocks__/transfers/responses.ts | 135 +++++++++ src/__tests__/transfers.spec.ts | 68 +++++ src/client.ts | 9 +- src/config.ts | 3 + src/services/index.ts | 1 + src/services/resource/TransfersResource.ts | 14 + src/services/transfers.ts | 47 ++++ src/typings/index.ts | 3 +- .../transfer/aULocalAccountIdentification.ts | 53 ++++ .../transfer/additionalBankIdentification.ts | 45 +++ src/typings/transfer/address2.ts | 75 +++++ src/typings/transfer/amount.ts | 39 +++ .../transfer/bRLocalAccountIdentification.ts | 62 +++++ src/typings/transfer/bankAccountV3.ts | 48 ++++ .../bankAccountV3AccountIdentification.ts | 150 ++++++++++ .../transfer/cZLocalAccountIdentification.ts | 53 ++++ src/typings/transfer/counterpartyInfoV3.ts | 46 ++++ src/typings/transfer/counterpartyV3.ts | 53 ++++ .../transfer/hULocalAccountIdentification.ts | 44 +++ .../transfer/ibanAccountIdentification.ts | 44 +++ src/typings/transfer/invalidField.ts | 48 ++++ src/typings/transfer/jSONObject.ts | 34 +++ src/typings/transfer/jSONPath.ts | 27 ++ src/typings/transfer/link.ts | 27 ++ src/typings/transfer/links.ts | 34 +++ src/typings/transfer/merchantData.ts | 55 ++++ src/typings/transfer/models.ts | 258 ++++++++++++++++++ .../transfer/nOLocalAccountIdentification.ts | 44 +++ src/typings/transfer/nameLocation.ts | 75 +++++ .../numberAndBicAccountIdentification.ts | 60 ++++ .../transfer/pLLocalAccountIdentification.ts | 44 +++ src/typings/transfer/partyIdentification2.ts | 71 +++++ src/typings/transfer/restServiceError.ts | 101 +++++++ .../transfer/sELocalAccountIdentification.ts | 53 ++++ src/typings/transfer/transaction.ts | 216 +++++++++++++++ .../transfer/transactionSearchResponse.ts | 38 +++ src/typings/transfer/transfer.ts | 213 +++++++++++++++ src/typings/transfer/transferInfo.ts | 119 ++++++++ .../transfer/uKLocalAccountIdentification.ts | 53 ++++ .../transfer/uSLocalAccountIdentification.ts | 66 +++++ 43 files changed, 2631 insertions(+), 5 deletions(-) create mode 100644 src/__mocks__/transfers/responses.ts create mode 100644 src/__tests__/transfers.spec.ts create mode 100644 src/services/resource/TransfersResource.ts create mode 100644 src/services/transfers.ts create mode 100644 src/typings/transfer/aULocalAccountIdentification.ts create mode 100644 src/typings/transfer/additionalBankIdentification.ts create mode 100644 src/typings/transfer/address2.ts create mode 100644 src/typings/transfer/amount.ts create mode 100644 src/typings/transfer/bRLocalAccountIdentification.ts create mode 100644 src/typings/transfer/bankAccountV3.ts create mode 100644 src/typings/transfer/bankAccountV3AccountIdentification.ts create mode 100644 src/typings/transfer/cZLocalAccountIdentification.ts create mode 100644 src/typings/transfer/counterpartyInfoV3.ts create mode 100644 src/typings/transfer/counterpartyV3.ts create mode 100644 src/typings/transfer/hULocalAccountIdentification.ts create mode 100644 src/typings/transfer/ibanAccountIdentification.ts create mode 100644 src/typings/transfer/invalidField.ts create mode 100644 src/typings/transfer/jSONObject.ts create mode 100644 src/typings/transfer/jSONPath.ts create mode 100644 src/typings/transfer/link.ts create mode 100644 src/typings/transfer/links.ts create mode 100644 src/typings/transfer/merchantData.ts create mode 100644 src/typings/transfer/models.ts create mode 100644 src/typings/transfer/nOLocalAccountIdentification.ts create mode 100644 src/typings/transfer/nameLocation.ts create mode 100644 src/typings/transfer/numberAndBicAccountIdentification.ts create mode 100644 src/typings/transfer/pLLocalAccountIdentification.ts create mode 100644 src/typings/transfer/partyIdentification2.ts create mode 100644 src/typings/transfer/restServiceError.ts create mode 100644 src/typings/transfer/sELocalAccountIdentification.ts create mode 100644 src/typings/transfer/transaction.ts create mode 100644 src/typings/transfer/transactionSearchResponse.ts create mode 100644 src/typings/transfer/transfer.ts create mode 100644 src/typings/transfer/transferInfo.ts create mode 100644 src/typings/transfer/uKLocalAccountIdentification.ts create mode 100644 src/typings/transfer/uSLocalAccountIdentification.ts diff --git a/Makefile b/Makefile index fd8bd22..2acd12e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ generator:=typescript-node openapi-generator-cli:=docker run --user $(shell id -u):$(shell id -g) --rm -v ${PWD}:/local -w /local openapitools/openapi-generator-cli:v5.4.0 -services:=binlookup checkout storedValue terminalManagement payments recurring payouts management legalEntityManagement balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage +services:=binlookup checkout storedValue terminalManagement payments recurring payouts management legalEntityManagement balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage transfer # Generate models (for each service) models: $(services) @@ -19,6 +19,7 @@ platformsAccount: spec=AccountService-v6 platformsFund: spec=FundService-v6 platformsNotificationConfiguration: spec=NotificationConfigurationService-v6 platformsHostedOnboardingPage: spec=HopService-v6 +transfer: spec=TransferService-v3 $(services): build/spec rm -rf src/typings/$@ build/model diff --git a/README.md b/README.md index e7dacbe..c932dd1 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,13 @@ The Library supports all APIs under the following services: * [Fund API](https://docs.adyen.com/api-explorer/#/Fund/v6/overview) Current supported version: **v6** * [Hosted onboarding API](https://docs.adyen.com/api-explorer/#/Hop/v6/overview): Current supported version: **v6** * [Notification Configuration API](https://docs.adyen.com/api-explorer/#/NotificationConfigurationService/v6/overview) Current supported version: **v6** +* [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6** * [POS Terminal Management API](https://docs.adyen.com/api-explorer/#/postfmapi/v1/overview): Endpoints for managing your point-of-sale payment terminals. Current supported version **v1** * [Recurring API](https://docs.adyen.com/api-explorer/#/Recurring/v68/overview): Endpoints for managing saved payment details. Current supported version: **v68** * [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api): Manage both online and point-of-sale gift cards and other stored-value cards. Current supported version: **v46** +* [Transfers API](https://docs.adyen.com/api-explorer/transfers/3/overview) The Transfers API provides endpoints that you can use to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. **v3** + -* [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6** For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/). diff --git a/src/__mocks__/base.ts b/src/__mocks__/base.ts index 26e1b12..b2d47e2 100644 --- a/src/__mocks__/base.ts +++ b/src/__mocks__/base.ts @@ -50,6 +50,7 @@ export const createClient = (apiKey = process.env.ADYEN_API_KEY): Client => { config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST; config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST; config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST; + config.transfersEndpoint = Client.TRANSFERS_API_VERSION_TEST; return new Client({ config }); }; diff --git a/src/__mocks__/transfers/responses.ts b/src/__mocks__/transfers/responses.ts new file mode 100644 index 0000000..d250048 --- /dev/null +++ b/src/__mocks__/transfers/responses.ts @@ -0,0 +1,135 @@ +export const transfersSuccess = { + "id" : "1W1UG35U8A9J5ZLG", + "amount" : { + "value" : 110000, + "currency" : "EUR" + }, + "balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4", + "category" : "bank", + "counterparty" : { + "accountHolder" : { + "fullName" : "A. Klaassen", + "address" : { + "city" : "San Francisco", + "country" : "US", + "postalCode" : "94678", + "stateOrProvince" : "CA", + "street" : "Brannan Street", + "street2" : "274" + } + }, + "accountIdentification" : { + "type" : "numberBic", + "accountNumber" : "123456789", + "bic" : "BOFAUS3NXXX" + } + }, + "priority" : "wire", + "referenceForBeneficiary" : "Your reference sent to the beneficiary", + "reference" : "Your internal reference for the transfer", + "description" : "Your description for the transfer", + "direction" : "outgoing", + "reason" : "approved", + "status" : "authorised" +}; + +export const getTransactionSuccess = { + "accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0", + "amount" : { + "currency" : "EUR", + "value" : 9887 + }, + "balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4", + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "bookingDate" : "2022-03-14T12:01:00+01:00", + "category" : "bank", + "counterparty" : { + "balanceAccountId" : "NL29ADYX0000000001" + }, + "createdAt" : "2022-03-14T12:01:00+01:00", + "description" : "YOUR_DESCRIPTION", + "id" : "IZK7C25U7DYVX03Y", + "instructedAmount" : { + "currency" : "EUR", + "value" : 9887 + }, + "reference" : "2L6C6B5U7DYULLXC", + "referenceForBeneficiary" : "YOUR_REFERENCE_FOR_BENEFICIARY", + "status" : "booked", + "transferId" : "2QP32A5U7IWC5WKG", + "type" : "bankTransfer", + "valueDate" : "2022-03-14T12:01:00+01:00" +}; + +export const listTransactionsSuccess = { + "data" : [ + { + "accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0", + "amount" : { + "currency" : "EUR", + "value" : -9 + }, + "balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4", + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "bookingDate" : "2022-03-11T11:21:24+01:00", + "category" : "internal", + "createdAt" : "2022-03-11T11:21:24+01:00", + "id" : "1VVF0D5U66PIUIVP", + "instructedAmount" : { + "currency" : "EUR", + "value" : -9 + }, + "reference" : "REFERENCE_46e8c40e", + "status" : "booked", + "transferId" : "1VVF0D5U66PIUIVP", + "type" : "fee", + "valueDate" : "2022-03-11T11:21:24+01:00" + }, + { + "accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0", + "amount" : { + "currency" : "EUR", + "value" : -46 + }, + "balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4", + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "bookingDate" : "2022-03-12T14:22:52+01:00", + "category" : "internal", + "createdAt" : "2022-03-12T14:22:52+01:00", + "id" : "1WEPGD5U6MS1CFK3", + "instructedAmount" : { + "currency" : "EUR", + "value" : -46 + }, + "reference" : "YOUR_REFERENCE", + "status" : "booked", + "transferId" : "1WEPGD5U6MS1CFK3", + "type" : "fee", + "valueDate" : "2022-03-12T14:22:52+01:00" + }, + { + "accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0", + "amount" : { + "currency" : "EUR", + "value" : -8 + }, + "balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4", + "balancePlatform" : "YOUR_BALANCE_PLATFORM", + "bookingDate" : "2022-03-14T21:00:48+01:00", + "createdAt" : "2022-03-14T15:00:00+01:00", + "description" : "YOUR_DESCRIPTION_2", + "id" : "2QP32A5U7IWC5WKG", + "instructedAmount" : { + "currency" : "EUR", + "value" : -8 + }, + "status" : "booked", + "valueDate" : "2022-03-14T21:00:48+01:00" + } + ], + "_links" : { + "next" : { + "href" : "https://balanceplatform-api-test.adyen.com/btl/v2/transactions?balancePlatform=Bastronaut&createdUntil=2022-03-21T00%3A00%3A00Z&createdSince=2022-03-11T00%3A00%3A00Z&limit=3&cursor=S2B-TSAjOkIrYlIlbjdqe0RreHRyM32lKRSxubXBHRkhHL2E32XitQQz5SfzpucD5HbHwpM1p6NDR1eXVQLFF6MmY33J32sobDxQYT90MHIud1hwLnd6JitcX32xJ" + } + } +}; \ No newline at end of file diff --git a/src/__tests__/transfers.spec.ts b/src/__tests__/transfers.spec.ts new file mode 100644 index 0000000..50086e4 --- /dev/null +++ b/src/__tests__/transfers.spec.ts @@ -0,0 +1,68 @@ +import nock from "nock"; +import { createClient } from "../__mocks__/base"; +import { transfersSuccess, getTransactionSuccess, listTransactionsSuccess } from "../__mocks__/transfers/responses"; +import Client from "../client"; +import { Transfers } from "../services"; +import { TransferInfo, Transfer, Transaction, TransactionSearchResponse, IbanAccountIdentification} from "../typings/transfer/models"; + +let client: Client; +let transferService: Transfers; +let scope: nock.Scope; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + transferService = new Transfers(client); + scope = nock(`https://balanceplatform-api-test.adyen.com/btl/${Client.TRANSFERS_API_VERSION}`); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("Transfers", (): void => { + test("should transfer fund", async (): Promise => { + scope.post("/transfers") + .reply(200, transfersSuccess); + const request = new TransferInfo(); + request.amount = { currency: "EUR", value: 1000}; + request.category = TransferInfo.CategoryEnum.Bank; + request.counterparty = { + balanceAccountId: "123", + transferInstrumentId: "transfer_id", + bankAccount: { + accountHolder: { + fullName: "Wally Bizzle" + }, + accountIdentification: { + iban: "NLRABO12321", + type: IbanAccountIdentification.TypeEnum.Iban + } + }, + + }; + const response: Transfer = await transferService.transfers(request); + expect(response.id).toEqual("1W1UG35U8A9J5ZLG"); + }); + + test("should get transaction", async (): Promise => { + scope.get("/transactions/123") + .reply(200, getTransactionSuccess); + const response: Transaction = await transferService.getTransaction("123"); + expect(response.id).toEqual("IZK7C25U7DYVX03Y"); + }); + + test("should list transactions", async (): Promise => { + scope.get("/transactions") + .reply(200, listTransactionsSuccess); + const response: TransactionSearchResponse = await transferService.listTransactions(); + expect(response.data?.length).toEqual(3); + if(response.data && response.data?.length > 0) { + expect(response?.data[0]?.id).toEqual("1VVF0D5U66PIUIVP"); + } else { + fail(); + } + }); +}); \ No newline at end of file diff --git a/src/client.ts b/src/client.ts index addd381..e23c970 100644 --- a/src/client.ts +++ b/src/client.ts @@ -68,6 +68,9 @@ class Client { public static LEGAL_ENTITY_MANAGEMENT_API_VERSION = "v2"; public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST = "https://kyc-test.adyen.com/lem"; public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE = "https://kyc-live.adyen.com/lem"; + public static TRANSFERS_API_VERSION="v3"; + public static TRANSFERS_API_VERSION_TEST = "https://balanceplatform-api-test.adyen.com/btl"; + public static TRANSFERS_API_VERSION_LIVE = "https://balanceplatform-api-live.adyen.com/btl"; private _httpClient!: ClientInterface; @@ -112,7 +115,8 @@ class Client { this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST; this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST; this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST; - this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST + this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST; + this.config.transfersEndpoint = Client.TRANSFERS_API_VERSION_TEST; } else if (environment === "LIVE") { this.config.endpoint = Client.ENDPOINT_LIVE; this.config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_LIVE; @@ -123,7 +127,8 @@ class Client { this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_LIVE; this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_LIVE; this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_LIVE; - this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE + this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE; + this.config.transfersEndpoint = Client.TRANSFERS_API_VERSION_LIVE; if (liveEndpointUrlPrefix) { this.config.endpoint = diff --git a/src/config.ts b/src/config.ts index 48d29bd..f78f277 100644 --- a/src/config.ts +++ b/src/config.ts @@ -40,6 +40,7 @@ interface ConfigConstructor { managementEndpoint?: string; balancePlatformEndpoint?: string; legalEntityManagementEndpoint?: string; + transfersEndpoint?: string; } class Config { @@ -70,6 +71,7 @@ class Config { public managementEndpoint?: string; public balancePlatformEndpoint?: string; public legalEntityManagementEndpoint?: string; + public transfersEndpoint?: string; public constructor(options: ConfigConstructor = {}) { if (options.username) this.username = options.username; @@ -95,6 +97,7 @@ class Config { if (options.managementEndpoint) this.managementEndpoint = options.managementEndpoint; if (options.balancePlatformEndpoint) this.balancePlatformEndpoint = options.balancePlatformEndpoint; if (options.legalEntityManagementEndpoint) this.legalEntityManagementEndpoint = options.legalEntityManagementEndpoint; + if (options.transfersEndpoint) this.transfersEndpoint = options.transfersEndpoint; } public set checkoutEndpoint(checkoutEndpoint: string | undefined) { diff --git a/src/services/index.ts b/src/services/index.ts index cf2bb41..85db97b 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -10,3 +10,4 @@ export { default as StoredValue} from "./storedValue"; export { default as TerminalManagement} from "./terminalManagement"; export { default as Management } from "./management"; export { default as LegalEntityManagement } from "./legalEntityManagement"; +export { default as Transfers } from "./transfers"; diff --git a/src/services/resource/TransfersResource.ts b/src/services/resource/TransfersResource.ts new file mode 100644 index 0000000..3cbb762 --- /dev/null +++ b/src/services/resource/TransfersResource.ts @@ -0,0 +1,14 @@ +import Client from "../../client"; +import Service from "../../service"; +import Resource from "../resource"; + +class TransfersResource extends Resource { + public constructor(service: Service, endpoint: string) { + super( + service, + `${service.client.config.transfersEndpoint}/${Client.TRANSFERS_API_VERSION}${endpoint}` + ); + } +} + +export default TransfersResource; diff --git a/src/services/transfers.ts b/src/services/transfers.ts new file mode 100644 index 0000000..adc3948 --- /dev/null +++ b/src/services/transfers.ts @@ -0,0 +1,47 @@ +import Client from "../client"; +import getJsonResponse from "../helpers/getJsonResponse"; +import Service from "../service"; +import { TransferInfo, Transfer, Transaction, TransactionSearchResponse, ObjectSerializer } from "../typings/transfer/models"; +import TransfersResource from "./resource/TransfersResource"; + +class Transfers extends Service { + + private readonly _transfersResource; + private readonly _listTransactionsResource; + + public constructor(client: Client) { + super(client); + this._transfersResource = new TransfersResource(this, "/transfers"); + this._listTransactionsResource = new TransfersResource(this, "/transactions"); + } + + public async transfers(request: TransferInfo) : Promise { + const response = await getJsonResponse( + this._transfersResource, + request, + {method: "POST"} + ); + return ObjectSerializer.deserialize(response, "Transfer"); + } + + public async getTransaction(id: string): Promise { + const resource = new TransfersResource(this, `/transactions/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET"} + ); + return ObjectSerializer.deserialize(response, "Transaction"); + } + + public async listTransactions(): Promise { + const response = await getJsonResponse( + this._listTransactionsResource, + "", + { method: "GET"} + ); + return ObjectSerializer.deserialize(response, "TransactionSearchResponse"); + } +} + +export default Transfers; diff --git a/src/typings/index.ts b/src/typings/index.ts index 2ad1b24..db18a68 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -22,4 +22,5 @@ export * as storedValue from './storedValue/models'; export * as terminal from './terminal/models'; export * as terminalManagement from './terminalManagement/models'; export * as management from './management/models'; -export * as legalEntityManagement from './legalEntityManagement/models'; \ No newline at end of file +export * as legalEntityManagement from './legalEntityManagement/models'; +export * as transfer from './transfer/models'; diff --git a/src/typings/transfer/aULocalAccountIdentification.ts b/src/typings/transfer/aULocalAccountIdentification.ts new file mode 100644 index 0000000..6ae5e6a --- /dev/null +++ b/src/typings/transfer/aULocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class AULocalAccountIdentification { + /** + * The bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch) (without separators or whitespace). + */ + 'bsbCode': string; + /** + * **auLocal** + */ + 'type'?: AULocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bsbCode", + "baseName": "bsbCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AULocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AULocalAccountIdentification.attributeTypeMap; + } +} + +export namespace AULocalAccountIdentification { + export enum TypeEnum { + AuLocal = 'auLocal' + } +} diff --git a/src/typings/transfer/additionalBankIdentification.ts b/src/typings/transfer/additionalBankIdentification.ts new file mode 100644 index 0000000..dbf2f2f --- /dev/null +++ b/src/typings/transfer/additionalBankIdentification.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class AdditionalBankIdentification { + /** + * The value of the additional bank identification. + */ + 'code'?: string; + /** + * The type of additional bank identification, depending on the country. Possible values: * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + */ + 'type'?: AdditionalBankIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AdditionalBankIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AdditionalBankIdentification.attributeTypeMap; + } +} + +export namespace AdditionalBankIdentification { + export enum TypeEnum { + GbSortCode = 'gbSortCode', + UsRoutingNumber = 'usRoutingNumber' + } +} diff --git a/src/typings/transfer/address2.ts b/src/typings/transfer/address2.ts new file mode 100644 index 0000000..f94d530 --- /dev/null +++ b/src/typings/transfer/address2.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class Address2 { + /** + * The name of the city. + */ + 'city'?: string; + /** + * The two-character ISO 3166-1 alpha-2 country code. For example, **US**. >If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + */ + 'country': string; + /** + * First line of the street address. + */ + 'line1'?: string; + /** + * Second line of the street address. + */ + 'line2'?: string; + /** + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + */ + 'postalCode'?: string; + /** + * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address2.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/amount.ts b/src/typings/transfer/amount.ts new file mode 100644 index 0000000..10a1fd8 --- /dev/null +++ b/src/typings/transfer/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/bRLocalAccountIdentification.ts b/src/typings/transfer/bRLocalAccountIdentification.ts new file mode 100644 index 0000000..2e07655 --- /dev/null +++ b/src/typings/transfer/bRLocalAccountIdentification.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class BRLocalAccountIdentification { + /** + * The bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The 3-digit Brazilian bank code (with leading zeros). + */ + 'bankCode': string; + /** + * The bank account branch number (without separators or whitespace). + */ + 'branchNumber': string; + /** + * **brLocal** + */ + 'type'?: BRLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "branchNumber", + "baseName": "branchNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BRLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BRLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace BRLocalAccountIdentification { + export enum TypeEnum { + BrLocal = 'brLocal' + } +} diff --git a/src/typings/transfer/bankAccountV3.ts b/src/typings/transfer/bankAccountV3.ts new file mode 100644 index 0000000..72d6a19 --- /dev/null +++ b/src/typings/transfer/bankAccountV3.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PartyIdentification2 } from './partyIdentification2'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; + +export class BankAccountV3 { + 'accountHolder': PartyIdentification2; + /** + * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. + */ + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CZLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolder", + "baseName": "accountHolder", + "type": "PartyIdentification2" + }, + { + "name": "accountIdentification", + "baseName": "accountIdentification", + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CZLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" + } ]; + + static getAttributeTypeMap() { + return BankAccountV3.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/bankAccountV3AccountIdentification.ts b/src/typings/transfer/bankAccountV3AccountIdentification.ts new file mode 100644 index 0000000..3066007 --- /dev/null +++ b/src/typings/transfer/bankAccountV3AccountIdentification.ts @@ -0,0 +1,150 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { AdditionalBankIdentification } from './additionalBankIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; + +/** +* Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. +*/ +export class BankAccountV3AccountIdentification { + /** + * The bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch) (without separators or whitespace). + */ + 'bsbCode': string; + /** + * **usLocal** + */ + 'type': BankAccountV3AccountIdentification.TypeEnum; + /** + * The 4-digit bank code (Kód banky) (without separators or whitespace). + */ + 'bankCode': string; + /** + * The bank account branch number (without separators or whitespace). + */ + 'branchNumber': string; + /** + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + */ + 'iban': string; + 'additionalBankIdentification'?: AdditionalBankIdentification; + /** + * The bank\'s 8 or 11 character BIC or SWIFT code. + */ + 'bic': string; + /** + * The 4– to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)) (without separators or whitespace). + */ + 'clearingNumber': string; + /** + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code) (without separators or whitespace). + */ + 'sortCode': string; + /** + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + */ + 'accountType'?: BankAccountV3AccountIdentification.AccountTypeEnum; + /** + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number) (without separators or whitespace). + */ + 'routingNumber': string; + + static discriminator: string | undefined = "type"; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bsbCode", + "baseName": "bsbCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BankAccountV3AccountIdentification.TypeEnum" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "branchNumber", + "baseName": "branchNumber", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "additionalBankIdentification", + "baseName": "additionalBankIdentification", + "type": "AdditionalBankIdentification" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "clearingNumber", + "baseName": "clearingNumber", + "type": "string" + }, + { + "name": "sortCode", + "baseName": "sortCode", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "BankAccountV3AccountIdentification.AccountTypeEnum" + }, + { + "name": "routingNumber", + "baseName": "routingNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccountV3AccountIdentification.attributeTypeMap; + } +} + +export namespace BankAccountV3AccountIdentification { + export enum TypeEnum { + UsLocal = 'usLocal' + } + export enum AccountTypeEnum { + Checking = 'checking', + Savings = 'savings' + } +} diff --git a/src/typings/transfer/cZLocalAccountIdentification.ts b/src/typings/transfer/cZLocalAccountIdentification.ts new file mode 100644 index 0000000..52a32c0 --- /dev/null +++ b/src/typings/transfer/cZLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class CZLocalAccountIdentification { + /** + * The 2- to 16-digit bank account number (Číslo účtu) in the following format: - The optional prefix (předčíslí). - The required second part (základní část) which must be at least two non-zero digits. Examples: - **19-123457** (with prefix) - **123457** (without prefix) - **000019-0000123457** (with prefix, normalized) - **000000-0000123457** (without prefix, normalized) + */ + 'accountNumber': string; + /** + * The 4-digit bank code (Kód banky) (without separators or whitespace). + */ + 'bankCode': string; + /** + * **czLocal** + */ + 'type'?: CZLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CZLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CZLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace CZLocalAccountIdentification { + export enum TypeEnum { + CzLocal = 'czLocal' + } +} diff --git a/src/typings/transfer/counterpartyInfoV3.ts b/src/typings/transfer/counterpartyInfoV3.ts new file mode 100644 index 0000000..148ac18 --- /dev/null +++ b/src/typings/transfer/counterpartyInfoV3.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { BankAccountV3 } from './bankAccountV3'; + +export class CounterpartyInfoV3 { + /** + * Unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + */ + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3; + /** + * Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + */ + 'transferInstrumentId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccountV3" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CounterpartyInfoV3.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/counterpartyV3.ts b/src/typings/transfer/counterpartyV3.ts new file mode 100644 index 0000000..d8ab4dc --- /dev/null +++ b/src/typings/transfer/counterpartyV3.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { BankAccountV3 } from './bankAccountV3'; +import { MerchantData } from './merchantData'; + +export class CounterpartyV3 { + /** + * Unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + */ + 'balanceAccountId'?: string; + 'bankAccount'?: BankAccountV3; + 'merchant'?: MerchantData; + /** + * Unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + */ + 'transferInstrumentId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccountV3" + }, + { + "name": "merchant", + "baseName": "merchant", + "type": "MerchantData" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CounterpartyV3.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/hULocalAccountIdentification.ts b/src/typings/transfer/hULocalAccountIdentification.ts new file mode 100644 index 0000000..e26c527 --- /dev/null +++ b/src/typings/transfer/hULocalAccountIdentification.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class HULocalAccountIdentification { + /** + * The 24-digit bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * **huLocal** + */ + 'type'?: HULocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "HULocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return HULocalAccountIdentification.attributeTypeMap; + } +} + +export namespace HULocalAccountIdentification { + export enum TypeEnum { + HuLocal = 'huLocal' + } +} diff --git a/src/typings/transfer/ibanAccountIdentification.ts b/src/typings/transfer/ibanAccountIdentification.ts new file mode 100644 index 0000000..b360c8d --- /dev/null +++ b/src/typings/transfer/ibanAccountIdentification.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class IbanAccountIdentification { + /** + * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. + */ + 'iban': string; + /** + * **iban** + */ + 'type'?: IbanAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "IbanAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return IbanAccountIdentification.attributeTypeMap; + } +} + +export namespace IbanAccountIdentification { + export enum TypeEnum { + Iban = 'iban' + } +} diff --git a/src/typings/transfer/invalidField.ts b/src/typings/transfer/invalidField.ts new file mode 100644 index 0000000..d530573 --- /dev/null +++ b/src/typings/transfer/invalidField.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class InvalidField { + /** + * Description of the validation error. + */ + 'message': string; + /** + * The field that has an invalid value. + */ + 'name': string; + /** + * The invalid value. + */ + 'value': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InvalidField.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/jSONObject.ts b/src/typings/transfer/jSONObject.ts new file mode 100644 index 0000000..68a07d0 --- /dev/null +++ b/src/typings/transfer/jSONObject.ts @@ -0,0 +1,34 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { JSONPath } from './jSONPath'; + +export class JSONObject { + 'paths'?: Array; + 'rootPath'?: JSONPath; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paths", + "baseName": "paths", + "type": "Array" + }, + { + "name": "rootPath", + "baseName": "rootPath", + "type": "JSONPath" + } ]; + + static getAttributeTypeMap() { + return JSONObject.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/jSONPath.ts b/src/typings/transfer/jSONPath.ts new file mode 100644 index 0000000..9a014d1 --- /dev/null +++ b/src/typings/transfer/jSONPath.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class JSONPath { + 'content'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "content", + "baseName": "content", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return JSONPath.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/link.ts b/src/typings/transfer/link.ts new file mode 100644 index 0000000..5b4bb9b --- /dev/null +++ b/src/typings/transfer/link.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class Link { + 'href'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "href", + "baseName": "href", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Link.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/links.ts b/src/typings/transfer/links.ts new file mode 100644 index 0000000..384c7e5 --- /dev/null +++ b/src/typings/transfer/links.ts @@ -0,0 +1,34 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { Link } from './link'; + +export class Links { + 'next'?: Link; + 'prev'?: Link; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "next", + "baseName": "next", + "type": "Link" + }, + { + "name": "prev", + "baseName": "prev", + "type": "Link" + } ]; + + static getAttributeTypeMap() { + return Links.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/merchantData.ts b/src/typings/transfer/merchantData.ts new file mode 100644 index 0000000..d5dc9af --- /dev/null +++ b/src/typings/transfer/merchantData.ts @@ -0,0 +1,55 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { NameLocation } from './nameLocation'; + +export class MerchantData { + /** + * The merchant category code. + */ + 'mcc'?: string; + /** + * The merchant identifier. + */ + 'merchantId'?: string; + 'nameLocation'?: NameLocation; + /** + * The merchant postal code. + */ + 'postalCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + }, + { + "name": "nameLocation", + "baseName": "nameLocation", + "type": "NameLocation" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantData.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/models.ts b/src/typings/transfer/models.ts new file mode 100644 index 0000000..15e0479 --- /dev/null +++ b/src/typings/transfer/models.ts @@ -0,0 +1,258 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export * from './aULocalAccountIdentification'; +export * from './additionalBankIdentification'; +export * from './address2'; +export * from './amount'; +export * from './bRLocalAccountIdentification'; +export * from './bankAccountV3'; +export * from './cZLocalAccountIdentification'; +export * from './counterpartyInfoV3'; +export * from './counterpartyV3'; +export * from './hULocalAccountIdentification'; +export * from './ibanAccountIdentification'; +export * from './invalidField'; +export * from './jSONObject'; +export * from './jSONPath'; +export * from './link'; +export * from './links'; +export * from './merchantData'; +export * from './nOLocalAccountIdentification'; +export * from './nameLocation'; +export * from './numberAndBicAccountIdentification'; +export * from './pLLocalAccountIdentification'; +export * from './partyIdentification2'; +export * from './restServiceError'; +export * from './sELocalAccountIdentification'; +export * from './transaction'; +export * from './transactionSearchResponse'; +export * from './transfer'; +export * from './transferInfo'; +export * from './uKLocalAccountIdentification'; +export * from './uSLocalAccountIdentification'; + + +import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { AdditionalBankIdentification } from './additionalBankIdentification'; +import { Address2 } from './address2'; +import { Amount } from './amount'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; +import { BankAccountV3 } from './bankAccountV3'; +import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { CounterpartyInfoV3 } from './counterpartyInfoV3'; +import { CounterpartyV3 } from './counterpartyV3'; +import { HULocalAccountIdentification } from './hULocalAccountIdentification'; +import { IbanAccountIdentification } from './ibanAccountIdentification'; +import { InvalidField } from './invalidField'; +import { JSONObject } from './jSONObject'; +import { JSONPath } from './jSONPath'; +import { Link } from './link'; +import { Links } from './links'; +import { MerchantData } from './merchantData'; +import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NameLocation } from './nameLocation'; +import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; +import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; +import { PartyIdentification2 } from './partyIdentification2'; +import { RestServiceError } from './restServiceError'; +import { SELocalAccountIdentification } from './sELocalAccountIdentification'; +import { Transaction } from './transaction'; +import { TransactionSearchResponse } from './transactionSearchResponse'; +import { Transfer } from './transfer'; +import { TransferInfo } from './transferInfo'; +import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; +import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AULocalAccountIdentification.TypeEnum": AULocalAccountIdentification.TypeEnum, + "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, + "BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum, + "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, + "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, + "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, + "NumberAndBicAccountIdentification.TypeEnum": NumberAndBicAccountIdentification.TypeEnum, + "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, + "PartyIdentification2.TypeEnum": PartyIdentification2.TypeEnum, + "SELocalAccountIdentification.TypeEnum": SELocalAccountIdentification.TypeEnum, + "Transaction.CategoryEnum": Transaction.CategoryEnum, + "Transaction.StatusEnum": Transaction.StatusEnum, + "Transaction.TypeEnum": Transaction.TypeEnum, + "Transfer.CategoryEnum": Transfer.CategoryEnum, + "Transfer.DirectionEnum": Transfer.DirectionEnum, + "Transfer.PriorityEnum": Transfer.PriorityEnum, + "Transfer.ReasonEnum": Transfer.ReasonEnum, + "Transfer.StatusEnum": Transfer.StatusEnum, + "TransferInfo.CategoryEnum": TransferInfo.CategoryEnum, + "TransferInfo.PriorityEnum": TransferInfo.PriorityEnum, + "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, + "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, + "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AULocalAccountIdentification": AULocalAccountIdentification, + "AdditionalBankIdentification": AdditionalBankIdentification, + "Address2": Address2, + "Amount": Amount, + "BRLocalAccountIdentification": BRLocalAccountIdentification, + "BankAccountV3": BankAccountV3, + "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CounterpartyInfoV3": CounterpartyInfoV3, + "CounterpartyV3": CounterpartyV3, + "HULocalAccountIdentification": HULocalAccountIdentification, + "IbanAccountIdentification": IbanAccountIdentification, + "InvalidField": InvalidField, + "JSONObject": JSONObject, + "JSONPath": JSONPath, + "Link": Link, + "Links": Links, + "MerchantData": MerchantData, + "NOLocalAccountIdentification": NOLocalAccountIdentification, + "NameLocation": NameLocation, + "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, + "PLLocalAccountIdentification": PLLocalAccountIdentification, + "PartyIdentification2": PartyIdentification2, + "RestServiceError": RestServiceError, + "SELocalAccountIdentification": SELocalAccountIdentification, + "Transaction": Transaction, + "TransactionSearchResponse": TransactionSearchResponse, + "Transfer": Transfer, + "TransferInfo": TransferInfo, + "UKLocalAccountIdentification": UKLocalAccountIdentification, + "USLocalAccountIdentification": USLocalAccountIdentification, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/transfer/nOLocalAccountIdentification.ts b/src/typings/transfer/nOLocalAccountIdentification.ts new file mode 100644 index 0000000..2a5073f --- /dev/null +++ b/src/typings/transfer/nOLocalAccountIdentification.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class NOLocalAccountIdentification { + /** + * The 11-digit bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * **noLocal** + */ + 'type'?: NOLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "NOLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return NOLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace NOLocalAccountIdentification { + export enum TypeEnum { + NoLocal = 'noLocal' + } +} diff --git a/src/typings/transfer/nameLocation.ts b/src/typings/transfer/nameLocation.ts new file mode 100644 index 0000000..7547eb7 --- /dev/null +++ b/src/typings/transfer/nameLocation.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class NameLocation { + /** + * The city where the merchant is located. + */ + 'city'?: string; + /** + * The country where the merchant is located in [three-letter country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) format. + */ + 'country'?: string; + /** + * The home country in [three-digit country code](https://en.wikipedia.org/wiki/ISO_3166-1_numeric) format, used for government-controlled merchants such as embassies. + */ + 'countryOfOrigin'?: string; + /** + * The name of the merchant\'s shop or service. + */ + 'name'?: string; + /** + * The raw data. + */ + 'rawData'?: string; + /** + * The state where the merchant is located. + */ + 'state'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "countryOfOrigin", + "baseName": "countryOfOrigin", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "rawData", + "baseName": "rawData", + "type": "string" + }, + { + "name": "state", + "baseName": "state", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NameLocation.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/numberAndBicAccountIdentification.ts b/src/typings/transfer/numberAndBicAccountIdentification.ts new file mode 100644 index 0000000..86978a8 --- /dev/null +++ b/src/typings/transfer/numberAndBicAccountIdentification.ts @@ -0,0 +1,60 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { AdditionalBankIdentification } from './additionalBankIdentification'; + +export class NumberAndBicAccountIdentification { + /** + * The bank account number, without separators or whitespace. The length and format depends on the bank or country. + */ + 'accountNumber': string; + 'additionalBankIdentification'?: AdditionalBankIdentification; + /** + * The bank\'s 8 or 11 character BIC or SWIFT code. + */ + 'bic': string; + /** + * **numberAndBic** + */ + 'type'?: NumberAndBicAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "additionalBankIdentification", + "baseName": "additionalBankIdentification", + "type": "AdditionalBankIdentification" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "NumberAndBicAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return NumberAndBicAccountIdentification.attributeTypeMap; + } +} + +export namespace NumberAndBicAccountIdentification { + export enum TypeEnum { + NumberAndBic = 'numberAndBic' + } +} diff --git a/src/typings/transfer/pLLocalAccountIdentification.ts b/src/typings/transfer/pLLocalAccountIdentification.ts new file mode 100644 index 0000000..851b760 --- /dev/null +++ b/src/typings/transfer/pLLocalAccountIdentification.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class PLLocalAccountIdentification { + /** + * The 26-digit bank account number ([Numer rachunku](https://pl.wikipedia.org/wiki/Numer_Rachunku_Bankowego)) (without separators or whitespace). + */ + 'accountNumber': string; + /** + * **plLocal** + */ + 'type'?: PLLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PLLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PLLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace PLLocalAccountIdentification { + export enum TypeEnum { + PlLocal = 'plLocal' + } +} diff --git a/src/typings/transfer/partyIdentification2.ts b/src/typings/transfer/partyIdentification2.ts new file mode 100644 index 0000000..1f85b6a --- /dev/null +++ b/src/typings/transfer/partyIdentification2.ts @@ -0,0 +1,71 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { Address2 } from './address2'; + +export class PartyIdentification2 { + 'address'?: Address2; + /** + * First name of the individual. Required when `type` is **individual**. + */ + 'firstName'?: string; + /** + * The name of the entity. + */ + 'fullName': string; + /** + * Last name of the individual. Required when `type` is **individual**. + */ + 'lastName'?: string; + /** + * The type of entity that owns the bank account. Possible values: **individual**, **organization**, or **unknown**. + */ + 'type'?: PartyIdentification2.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address2" + }, + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "fullName", + "baseName": "fullName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PartyIdentification2.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PartyIdentification2.attributeTypeMap; + } +} + +export namespace PartyIdentification2 { + export enum TypeEnum { + Individual = 'individual', + Organization = 'organization', + Unknown = 'unknown' + } +} diff --git a/src/typings/transfer/restServiceError.ts b/src/typings/transfer/restServiceError.ts new file mode 100644 index 0000000..345fd6e --- /dev/null +++ b/src/typings/transfer/restServiceError.ts @@ -0,0 +1,101 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { InvalidField } from './invalidField'; +import { JSONObject } from './jSONObject'; + +export class RestServiceError { + /** + * A human-readable explanation specific to this occurrence of the problem. + */ + 'detail': string; + /** + * A code that identifies the problem type. + */ + 'errorCode': string; + /** + * A unique URI that identifies the specific occurrence of the problem. + */ + 'instance'?: string; + /** + * Detailed explanation of each validation error, when applicable. + */ + 'invalidFields'?: Array; + /** + * A unique reference for the request, essentially the same as `pspReference`. + */ + 'requestId'?: string; + 'response'?: JSONObject; + /** + * The HTTP status code. + */ + 'status': number; + /** + * A short, human-readable summary of the problem type. + */ + 'title': string; + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + */ + 'type': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "detail", + "baseName": "detail", + "type": "string" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "instance", + "baseName": "instance", + "type": "string" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "requestId", + "baseName": "requestId", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "JSONObject" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + }, + { + "name": "title", + "baseName": "title", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RestServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/sELocalAccountIdentification.ts b/src/typings/transfer/sELocalAccountIdentification.ts new file mode 100644 index 0000000..f93fa10 --- /dev/null +++ b/src/typings/transfer/sELocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class SELocalAccountIdentification { + /** + * The 7- to 10-digit bank account number ([Bankkontonummer](https://sv.wikipedia.org/wiki/Bankkonto)) (without the clearing number, separators, or whitespace). + */ + 'accountNumber': string; + /** + * The 4– to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)) (without separators or whitespace). + */ + 'clearingNumber': string; + /** + * **seLocal** + */ + 'type'?: SELocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "clearingNumber", + "baseName": "clearingNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SELocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SELocalAccountIdentification.attributeTypeMap; + } +} + +export namespace SELocalAccountIdentification { + export enum TypeEnum { + SeLocal = 'seLocal' + } +} diff --git a/src/typings/transfer/transaction.ts b/src/typings/transfer/transaction.ts new file mode 100644 index 0000000..4d4febc --- /dev/null +++ b/src/typings/transfer/transaction.ts @@ -0,0 +1,216 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { Amount } from './amount'; +import { CounterpartyV3 } from './counterpartyV3'; + +export class Transaction { + /** + * Unique identifier of the account holder. + */ + 'accountHolderId': string; + 'amount': Amount; + /** + * Unique identifier of the balance account. + */ + 'balanceAccountId': string; + /** + * Unique identifier of the balance platform. + */ + 'balancePlatform': string; + /** + * The date the transaction was booked to the balance account. + */ + 'bookingDate': Date; + /** + * The category of the transaction indicating the type of activity. Possible values: * **platformPayment**: The transaction is a payment or payment modification made with an Adyen merchant account. * **internal**: The transaction resulted from an internal adjustment such as a deposit correction or invoice deduction. * **bank**: The transaction is a bank-related activity, such as sending a payout or receiving funds. * **issuedCard**: The transaction is a card-related activity, such as using an Adyen-issued card to pay online. + */ + 'category'?: Transaction.CategoryEnum; + 'counterparty': CounterpartyV3; + /** + * The date the transaction was created. + */ + 'createdAt': Date; + /** + * The `description` from the `/transfers` request. + */ + 'description'?: string; + /** + * Unique identifier of the transaction. + */ + 'id': string; + 'instructedAmount'?: Amount; + /** + * Unique identifier of the payment instrument that was used for the transaction. + */ + 'paymentInstrumentId'?: string; + /** + * The [`reference`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_reference) from the `/transfers` request. If you haven\'t provided any, Adyen generates a unique reference. + */ + 'reference': string; + /** + * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. + */ + 'referenceForBeneficiary'?: string; + /** + * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. + */ + 'status': Transaction.StatusEnum; + /** + * Unique identifier of the related transfer. + */ + 'transferId'?: string; + /** + * The type of the transaction. Possible values: **payment**, **capture**, **captureReversal**, **refund** **refundReversal**, **chargeback**, **chargebackReversal**, **secondChargeback**, **atmWithdrawal**, **atmWithdrawalReversal**, **internalTransfer**, **manualCorrection**, **invoiceDeduction**, **depositCorrection**, **bankTransfer**, **miscCost**, **paymentCost**, **fee** + */ + 'type'?: Transaction.TypeEnum; + /** + * The date the transfer amount becomes available in the balance account. + */ + 'valueDate': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderId", + "baseName": "accountHolderId", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "bookingDate", + "baseName": "bookingDate", + "type": "Date" + }, + { + "name": "category", + "baseName": "category", + "type": "Transaction.CategoryEnum" + }, + { + "name": "counterparty", + "baseName": "counterparty", + "type": "CounterpartyV3" + }, + { + "name": "createdAt", + "baseName": "createdAt", + "type": "Date" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "instructedAmount", + "baseName": "instructedAmount", + "type": "Amount" + }, + { + "name": "paymentInstrumentId", + "baseName": "paymentInstrumentId", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "referenceForBeneficiary", + "baseName": "referenceForBeneficiary", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "Transaction.StatusEnum" + }, + { + "name": "transferId", + "baseName": "transferId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Transaction.TypeEnum" + }, + { + "name": "valueDate", + "baseName": "valueDate", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return Transaction.attributeTypeMap; + } +} + +export namespace Transaction { + export enum CategoryEnum { + Bank = 'bank', + Grants = 'grants', + Internal = 'internal', + IssuedCard = 'issuedCard', + PlatformPayment = 'platformPayment' + } + export enum StatusEnum { + Booked = 'booked', + Pending = 'pending' + } + export enum TypeEnum { + AtmWithdrawal = 'atmWithdrawal', + AtmWithdrawalReversal = 'atmWithdrawalReversal', + BalanceAdjustment = 'balanceAdjustment', + BankTransfer = 'bankTransfer', + Capture = 'capture', + CaptureReversal = 'captureReversal', + Chargeback = 'chargeback', + ChargebackReversal = 'chargebackReversal', + DepositCorrection = 'depositCorrection', + Fee = 'fee', + Grant = 'grant', + Installment = 'installment', + InstallmentReversal = 'installmentReversal', + InternalTransfer = 'internalTransfer', + InvoiceDeduction = 'invoiceDeduction', + Leftover = 'leftover', + ManualCorrection = 'manualCorrection', + MiscCost = 'miscCost', + Payment = 'payment', + PaymentCost = 'paymentCost', + Refund = 'refund', + RefundReversal = 'refundReversal', + Repayment = 'repayment', + ReserveAdjustment = 'reserveAdjustment', + SecondChargeback = 'secondChargeback' + } +} diff --git a/src/typings/transfer/transactionSearchResponse.ts b/src/typings/transfer/transactionSearchResponse.ts new file mode 100644 index 0000000..41bd43b --- /dev/null +++ b/src/typings/transfer/transactionSearchResponse.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { Links } from './links'; +import { Transaction } from './transaction'; + +export class TransactionSearchResponse { + 'links'?: Links; + /** + * Contains the transactions that match the query parameters. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TransactionSearchResponse.attributeTypeMap; + } +} + diff --git a/src/typings/transfer/transfer.ts b/src/typings/transfer/transfer.ts new file mode 100644 index 0000000..4895b5b --- /dev/null +++ b/src/typings/transfer/transfer.ts @@ -0,0 +1,213 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { Amount } from './amount'; +import { CounterpartyV3 } from './counterpartyV3'; + +export class Transfer { + 'amount': Amount; + /** + * Unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + */ + 'balanceAccountId'?: string; + /** + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. + */ + 'category': Transfer.CategoryEnum; + 'counterparty': CounterpartyV3; + /** + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + */ + 'description'?: string; + /** + * The direction of the transfer. Possible values: **incoming**, **outgoing**. + */ + 'direction'?: Transfer.DirectionEnum; + /** + * The ID of the resource. + */ + 'id'?: string; + /** + * Unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id). + */ + 'paymentInstrumentId'?: string; + /** + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. + */ + 'priority'?: Transfer.PriorityEnum; + /** + * Additional information about the status of the transfer. + */ + 'reason'?: Transfer.ReasonEnum; + /** + * A reference for the transfer, only used internally within your platform. If you don\'t provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * A reference that is sent to the recipient. This reference is also sent in all notification webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + */ + 'referenceForBeneficiary'?: string; + /** + * The result of the transfer. Possible values: **authorised**, **refused**, **error**. + */ + 'status': Transfer.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "category", + "baseName": "category", + "type": "Transfer.CategoryEnum" + }, + { + "name": "counterparty", + "baseName": "counterparty", + "type": "CounterpartyV3" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "direction", + "baseName": "direction", + "type": "Transfer.DirectionEnum" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "paymentInstrumentId", + "baseName": "paymentInstrumentId", + "type": "string" + }, + { + "name": "priority", + "baseName": "priority", + "type": "Transfer.PriorityEnum" + }, + { + "name": "reason", + "baseName": "reason", + "type": "Transfer.ReasonEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "referenceForBeneficiary", + "baseName": "referenceForBeneficiary", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "Transfer.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return Transfer.attributeTypeMap; + } +} + +export namespace Transfer { + export enum CategoryEnum { + Bank = 'bank', + Internal = 'internal' + } + export enum DirectionEnum { + Incoming = 'incoming', + Outgoing = 'outgoing' + } + export enum PriorityEnum { + Fast = 'fast', + Instant = 'instant', + Regular = 'regular', + Wire = 'wire' + } + export enum ReasonEnum { + Approved = 'approved', + Error = 'error', + NotEnoughBalance = 'notEnoughBalance', + Unknown = 'unknown' + } + export enum StatusEnum { + AtmWithdrawal = 'atmWithdrawal', + AtmWithdrawalReversalPending = 'atmWithdrawalReversalPending', + AtmWithdrawalReversed = 'atmWithdrawalReversed', + Authorised = 'authorised', + BankTransfer = 'bankTransfer', + BankTransferPending = 'bankTransferPending', + Booked = 'booked', + BookingPending = 'bookingPending', + Cancelled = 'cancelled', + CapturePending = 'capturePending', + CaptureReversalPending = 'captureReversalPending', + CaptureReversed = 'captureReversed', + Captured = 'captured', + Chargeback = 'chargeback', + ChargebackPending = 'chargebackPending', + ChargebackReversalPending = 'chargebackReversalPending', + ChargebackReversed = 'chargebackReversed', + DepositCorrection = 'depositCorrection', + DepositCorrectionPending = 'depositCorrectionPending', + Dispute = 'dispute', + DisputeClosed = 'disputeClosed', + DisputeExpired = 'disputeExpired', + DisputeNeedsReview = 'disputeNeedsReview', + Error = 'error', + Expired = 'expired', + Failed = 'failed', + Fee = 'fee', + FeePending = 'feePending', + InternalTransfer = 'internalTransfer', + InternalTransferPending = 'internalTransferPending', + InvoiceDeduction = 'invoiceDeduction', + InvoiceDeductionPending = 'invoiceDeductionPending', + ManualCorrectionPending = 'manualCorrectionPending', + ManuallyCorrected = 'manuallyCorrected', + MatchedStatement = 'matchedStatement', + MatchedStatementPending = 'matchedStatementPending', + MerchantPayin = 'merchantPayin', + MerchantPayinPending = 'merchantPayinPending', + MerchantPayinReversed = 'merchantPayinReversed', + MerchantPayinReversedPending = 'merchantPayinReversedPending', + MiscCost = 'miscCost', + MiscCostPending = 'miscCostPending', + PaymentCost = 'paymentCost', + PaymentCostPending = 'paymentCostPending', + Received = 'received', + RefundPending = 'refundPending', + RefundReversalPending = 'refundReversalPending', + RefundReversed = 'refundReversed', + Refunded = 'refunded', + Refused = 'refused', + ReserveAdjustment = 'reserveAdjustment', + ReserveAdjustmentPending = 'reserveAdjustmentPending', + SecondChargeback = 'secondChargeback', + SecondChargebackPending = 'secondChargebackPending', + Undefined = 'undefined' + } +} diff --git a/src/typings/transfer/transferInfo.ts b/src/typings/transfer/transferInfo.ts new file mode 100644 index 0000000..b73cfd6 --- /dev/null +++ b/src/typings/transfer/transferInfo.ts @@ -0,0 +1,119 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + +import { Amount } from './amount'; +import { CounterpartyInfoV3 } from './counterpartyInfoV3'; + +export class TransferInfo { + 'amount': Amount; + /** + * Unique identifier of the source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). + */ + 'balanceAccountId'?: string; + /** + * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. + */ + 'category': TransferInfo.CategoryEnum; + 'counterparty': CounterpartyInfoV3; + /** + * A human-readable description for the transfer. You can use alphanumeric characters and hyphens. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. + */ + 'description'?: string; + /** + * The ID of the resource. + */ + 'id'?: string; + /** + * Unique identifier of the source [payment instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/paymentInstruments__resParam_id). + */ + 'paymentInstrumentId'?: string; + /** + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. + */ + 'priority'?: TransferInfo.PriorityEnum; + /** + * A reference for the transfer, only used internally within your platform. If you don\'t provide this in the request, Adyen generates a unique reference. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * A reference that is sent to the recipient. This reference is also sent in all notification webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + */ + 'referenceForBeneficiary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "category", + "baseName": "category", + "type": "TransferInfo.CategoryEnum" + }, + { + "name": "counterparty", + "baseName": "counterparty", + "type": "CounterpartyInfoV3" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "paymentInstrumentId", + "baseName": "paymentInstrumentId", + "type": "string" + }, + { + "name": "priority", + "baseName": "priority", + "type": "TransferInfo.PriorityEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "referenceForBeneficiary", + "baseName": "referenceForBeneficiary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransferInfo.attributeTypeMap; + } +} + +export namespace TransferInfo { + export enum CategoryEnum { + Bank = 'bank', + Internal = 'internal' + } + export enum PriorityEnum { + Fast = 'fast', + Instant = 'instant', + Regular = 'regular', + Wire = 'wire' + } +} diff --git a/src/typings/transfer/uKLocalAccountIdentification.ts b/src/typings/transfer/uKLocalAccountIdentification.ts new file mode 100644 index 0000000..9743876 --- /dev/null +++ b/src/typings/transfer/uKLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class UKLocalAccountIdentification { + /** + * The 8-digit bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code) (without separators or whitespace). + */ + 'sortCode': string; + /** + * **ukLocal** + */ + 'type'?: UKLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "sortCode", + "baseName": "sortCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "UKLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return UKLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace UKLocalAccountIdentification { + export enum TypeEnum { + UkLocal = 'ukLocal' + } +} diff --git a/src/typings/transfer/uSLocalAccountIdentification.ts b/src/typings/transfer/uSLocalAccountIdentification.ts new file mode 100644 index 0000000..97b8e85 --- /dev/null +++ b/src/typings/transfer/uSLocalAccountIdentification.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v3 + * 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 this class manually. + */ + + +export class USLocalAccountIdentification { + /** + * The bank account number (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. + */ + 'accountType'?: USLocalAccountIdentification.AccountTypeEnum; + /** + * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number) (without separators or whitespace). + */ + 'routingNumber': string; + /** + * **usLocal** + */ + 'type'?: USLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "USLocalAccountIdentification.AccountTypeEnum" + }, + { + "name": "routingNumber", + "baseName": "routingNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "USLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return USLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace USLocalAccountIdentification { + export enum AccountTypeEnum { + Checking = 'checking', + Savings = 'savings' + } + export enum TypeEnum { + UsLocal = 'usLocal' + } +} From 4246674d29ca6f9658bea8b5eaa6e03e8c796291 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 08:45:12 +0200 Subject: [PATCH 30/35] Bump @typescript-eslint/eslint-plugin from 5.40.1 to 5.41.0 (#1026) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.40.1 to 5.41.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.41.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 74 ++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 55 insertions(+), 21 deletions(-) diff --git a/package.json b/package.json index 0e0e9ce..7dad0dd 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/jest": "27.5.0", "@types/nock": "11.1.0", - "@typescript-eslint/eslint-plugin": "5.40.1", + "@typescript-eslint/eslint-plugin": "5.41.0", "@typescript-eslint/parser": "5.40.1", "acorn": "^8.0.1", "coveralls": "3.1.1", diff --git a/yarn.lock b/yarn.lock index d22955f..8b6338d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -880,14 +880,14 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.40.1.tgz#3203a6ff396b1194083faaa6e5110c401201d7d5" - integrity sha512-FsWboKkWdytGiXT5O1/R9j37YgcjO8MKHSUmWnIEjVaz0krHkplPnYi7mwdb+5+cs0toFNQb0HIrN7zONdIEWg== +"@typescript-eslint/eslint-plugin@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.41.0.tgz#f8eeb1c6bb2549f795f3ba71aec3b38d1ab6b1e1" + integrity sha512-DXUS22Y57/LAFSg3x7Vi6RNAuLpTXwxB9S2nIA7msBb/Zt8p7XqMwdpdc1IU7CkOQUPgAqR5fWvxuKCbneKGmA== dependencies: - "@typescript-eslint/scope-manager" "5.40.1" - "@typescript-eslint/type-utils" "5.40.1" - "@typescript-eslint/utils" "5.40.1" + "@typescript-eslint/scope-manager" "5.41.0" + "@typescript-eslint/type-utils" "5.41.0" + "@typescript-eslint/utils" "5.41.0" debug "^4.3.4" ignore "^5.2.0" regexpp "^3.2.0" @@ -912,13 +912,21 @@ "@typescript-eslint/types" "5.40.1" "@typescript-eslint/visitor-keys" "5.40.1" -"@typescript-eslint/type-utils@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.40.1.tgz#091e4ce3bebbdb68f4980bae9dee2e4e1725f601" - integrity sha512-DLAs+AHQOe6n5LRraXiv27IYPhleF0ldEmx6yBqBgBLaNRKTkffhV1RPsjoJBhVup2zHxfaRtan8/YRBgYhU9Q== +"@typescript-eslint/scope-manager@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.41.0.tgz#28e3a41d626288d0628be14cf9de8d49fc30fadf" + integrity sha512-xOxPJCnuktUkY2xoEZBKXO5DBCugFzjrVndKdUnyQr3+9aDWZReKq9MhaoVnbL+maVwWJu/N0SEtrtEUNb62QQ== dependencies: - "@typescript-eslint/typescript-estree" "5.40.1" - "@typescript-eslint/utils" "5.40.1" + "@typescript-eslint/types" "5.41.0" + "@typescript-eslint/visitor-keys" "5.41.0" + +"@typescript-eslint/type-utils@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.41.0.tgz#2371601171e9f26a4e6da918a7913f7266890cdf" + integrity sha512-L30HNvIG6A1Q0R58e4hu4h+fZqaO909UcnnPbwKiN6Rc3BUEx6ez2wgN7aC0cBfcAjZfwkzE+E2PQQ9nEuoqfA== + dependencies: + "@typescript-eslint/typescript-estree" "5.41.0" + "@typescript-eslint/utils" "5.41.0" debug "^4.3.4" tsutils "^3.21.0" @@ -927,6 +935,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.1.tgz#de37f4f64de731ee454bb2085d71030aa832f749" integrity sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw== +"@typescript-eslint/types@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.41.0.tgz#6800abebc4e6abaf24cdf220fb4ce28f4ab09a85" + integrity sha512-5BejraMXMC+2UjefDvrH0Fo/eLwZRV6859SXRg+FgbhA0R0l6lDqDGAQYhKbXhPN2ofk2kY5sgGyLNL907UXpA== + "@typescript-eslint/typescript-estree@5.40.1": version "5.40.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.1.tgz#9a7d25492f02c69882ce5e0cd1857b0c55645d72" @@ -940,16 +953,29 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.40.1.tgz#3204fb73a559d3b7bab7dc9d3c44487c2734a9ca" - integrity sha512-a2TAVScoX9fjryNrW6BZRnreDUszxqm9eQ9Esv8n5nXApMW0zeANUYlwh/DED04SC/ifuBvXgZpIK5xeJHQ3aw== +"@typescript-eslint/typescript-estree@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.41.0.tgz#bf5c6b3138adbdc73ba4871d060ae12c59366c61" + integrity sha512-SlzFYRwFSvswzDSQ/zPkIWcHv8O5y42YUskko9c4ki+fV6HATsTODUPbRbcGDFYP86gaJL5xohUEytvyNNcXWg== + dependencies: + "@typescript-eslint/types" "5.41.0" + "@typescript-eslint/visitor-keys" "5.41.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.41.0.tgz#f41ae5883994a249d00b2ce69f4188f3a23fa0f9" + integrity sha512-QlvfwaN9jaMga9EBazQ+5DDx/4sAdqDkcs05AsQHMaopluVCUyu1bTRUVKzXbgjDlrRAQrYVoi/sXJ9fmG+KLQ== dependencies: "@types/json-schema" "^7.0.9" "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.40.1" - "@typescript-eslint/types" "5.40.1" - "@typescript-eslint/typescript-estree" "5.40.1" + "@typescript-eslint/scope-manager" "5.41.0" + "@typescript-eslint/types" "5.41.0" + "@typescript-eslint/typescript-estree" "5.41.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" semver "^7.3.7" @@ -962,6 +988,14 @@ "@typescript-eslint/types" "5.40.1" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.41.0.tgz#d3510712bc07d5540160ed3c0f8f213b73e3bcd9" + integrity sha512-vilqeHj267v8uzzakbm13HkPMl7cbYpKVjgFWZPIOHIJHZtinvypUhJ5xBXfWYg4eFKqztbMMpOgFpT9Gfx4fw== + dependencies: + "@typescript-eslint/types" "5.41.0" + eslint-visitor-keys "^3.3.0" + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" From e084599757f373cb494b850c82b6d756ddbe1ed0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 08:49:19 +0200 Subject: [PATCH 31/35] Bump @typescript-eslint/parser from 5.40.1 to 5.41.0 (#1025) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.40.1 to 5.41.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.41.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 48 +++++++----------------------------------------- 2 files changed, 8 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index 7dad0dd..5bb603a 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@types/jest": "27.5.0", "@types/nock": "11.1.0", "@typescript-eslint/eslint-plugin": "5.41.0", - "@typescript-eslint/parser": "5.40.1", + "@typescript-eslint/parser": "5.41.0", "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", diff --git a/yarn.lock b/yarn.lock index 8b6338d..6645ca6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -894,24 +894,16 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.40.1.tgz#e7f8295dd8154d0d37d661ddd8e2f0ecfdee28dd" - integrity sha512-IK6x55va5w4YvXd4b3VrXQPldV9vQTxi5ov+g4pMANsXPTXOcfjx08CRR1Dfrcc51syPtXHF5bgLlMHYFrvQtg== +"@typescript-eslint/parser@5.41.0": + version "5.41.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.41.0.tgz#0414a6405007e463dc527b459af1f19430382d67" + integrity sha512-HQVfix4+RL5YRWZboMD1pUfFN8MpRH4laziWkkAzyO1fvNOY/uinZcvo3QiFJVS/siNHupV8E5+xSwQZrl6PZA== dependencies: - "@typescript-eslint/scope-manager" "5.40.1" - "@typescript-eslint/types" "5.40.1" - "@typescript-eslint/typescript-estree" "5.40.1" + "@typescript-eslint/scope-manager" "5.41.0" + "@typescript-eslint/types" "5.41.0" + "@typescript-eslint/typescript-estree" "5.41.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.40.1.tgz#a7a5197dfd234622a2421ea590ee0ccc02e18dfe" - integrity sha512-jkn4xsJiUQucI16OLCXrLRXDZ3afKhOIqXs4R3O+M00hdQLKR58WuyXPZZjhKLFCEP2g+TXdBRtLQ33UfAdRUg== - dependencies: - "@typescript-eslint/types" "5.40.1" - "@typescript-eslint/visitor-keys" "5.40.1" - "@typescript-eslint/scope-manager@5.41.0": version "5.41.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.41.0.tgz#28e3a41d626288d0628be14cf9de8d49fc30fadf" @@ -930,29 +922,11 @@ debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.40.1.tgz#de37f4f64de731ee454bb2085d71030aa832f749" - integrity sha512-Icg9kiuVJSwdzSQvtdGspOlWNjVDnF3qVIKXdJ103o36yRprdl3Ge5cABQx+csx960nuMF21v8qvO31v9t3OHw== - "@typescript-eslint/types@5.41.0": version "5.41.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.41.0.tgz#6800abebc4e6abaf24cdf220fb4ce28f4ab09a85" integrity sha512-5BejraMXMC+2UjefDvrH0Fo/eLwZRV6859SXRg+FgbhA0R0l6lDqDGAQYhKbXhPN2ofk2kY5sgGyLNL907UXpA== -"@typescript-eslint/typescript-estree@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.40.1.tgz#9a7d25492f02c69882ce5e0cd1857b0c55645d72" - integrity sha512-5QTP/nW5+60jBcEPfXy/EZL01qrl9GZtbgDZtDPlfW5zj/zjNrdI2B5zMUHmOsfvOr2cWqwVdWjobCiHcedmQA== - dependencies: - "@typescript-eslint/types" "5.40.1" - "@typescript-eslint/visitor-keys" "5.40.1" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - "@typescript-eslint/typescript-estree@5.41.0": version "5.41.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.41.0.tgz#bf5c6b3138adbdc73ba4871d060ae12c59366c61" @@ -980,14 +954,6 @@ eslint-utils "^3.0.0" semver "^7.3.7" -"@typescript-eslint/visitor-keys@5.40.1": - version "5.40.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.40.1.tgz#f3d2bf5af192f4432b84cec6fdcb387193518754" - integrity sha512-A2DGmeZ+FMja0geX5rww+DpvILpwo1OsiQs0M+joPWJYsiEFBLsH0y1oFymPNul6Z5okSmHpP4ivkc2N0Cgfkw== - dependencies: - "@typescript-eslint/types" "5.40.1" - eslint-visitor-keys "^3.3.0" - "@typescript-eslint/visitor-keys@5.41.0": version "5.41.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.41.0.tgz#d3510712bc07d5540160ed3c0f8f213b73e3bcd9" From e6d369506ea2d1288c7ae6d2e7d38ef964a39613 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 08:49:37 +0200 Subject: [PATCH 32/35] Bump acorn from 8.8.0 to 8.8.1 (#1024) Bumps [acorn](https://github.com/acornjs/acorn) from 8.8.0 to 8.8.1. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/8.8.0...8.8.1) --- updated-dependencies: - dependency-name: acorn dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 6645ca6..c5e0878 100644 --- a/yarn.lock +++ b/yarn.lock @@ -996,9 +996,9 @@ acorn@^7.1.1: integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== acorn@^8.0.1, acorn@^8.2.4, acorn@^8.7.0, acorn@^8.8.0: - version "8.8.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" - integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== + version "8.8.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" + integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2: version "6.0.2" From a298fa84fbb85871ec3d7905fa81c0d4f805179d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 28 Oct 2022 08:50:06 +0200 Subject: [PATCH 33/35] Bump eslint from 8.25.0 to 8.26.0 (#1023) Bumps [eslint](https://github.com/eslint/eslint) from 8.25.0 to 8.26.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.25.0...v8.26.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Wouter Boereboom <62436079+wboereboom@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 29 +++++++++++++++-------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 5bb603a..49682e2 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", - "eslint": "8.25.0", + "eslint": "8.26.0", "jest": "^27.0.6", "jest-ts-auto-mock": "^2.0.0", "kind-of": "^6.0.3", diff --git a/yarn.lock b/yarn.lock index c5e0878..8bc7ea7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -313,10 +313,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@humanwhocodes/config-array@^0.10.5": - version "0.10.7" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.7.tgz#6d53769fd0c222767e6452e8ebda825c22e9f0dc" - integrity sha512-MDl6D6sBsaV452/QSdX+4CXIjZhIcI0PELsxUjk4U828yd58vk3bTIvk/6w5FY+4hIy9sLW0sfrV7K7Kc++j/w== +"@humanwhocodes/config-array@^0.11.6": + version "0.11.6" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.6.tgz#6a51d603a3aaf8d4cf45b42b3f2ac9318a4adc4b" + integrity sha512-jJr+hPTJYKyDILJfhNSHsjiwXYf26Flsz8DvNndOsHs5pwSnpGUEy8yzF0JYhCEvTDdV2vuOK5tt8BVhwO5/hg== dependencies: "@humanwhocodes/object-schema" "^1.2.1" debug "^4.1.1" @@ -575,7 +575,7 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== -"@nodelib/fs.walk@^1.2.3": +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": version "1.2.8" resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== @@ -1990,14 +1990,15 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@8.25.0: - version "8.25.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.25.0.tgz#00eb962f50962165d0c4ee3327708315eaa8058b" - integrity sha512-DVlJOZ4Pn50zcKW5bYH7GQK/9MsoQG2d5eDH0ebEkE8PbgzTTmtt/VTH9GGJ4BfeZCpBLqFfvsjX35UacUL83A== +eslint@8.26.0: + version "8.26.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.26.0.tgz#2bcc8836e6c424c4ac26a5674a70d44d84f2181d" + integrity sha512-kzJkpaw1Bfwheq4VXUezFriD1GxszX6dUekM7Z3aC2o4hju+tsR/XyTC3RcoSD7jmy9VkPU3+N6YjVU2e96Oyg== dependencies: "@eslint/eslintrc" "^1.3.3" - "@humanwhocodes/config-array" "^0.10.5" + "@humanwhocodes/config-array" "^0.11.6" "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" @@ -2013,14 +2014,14 @@ eslint@8.25.0: fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" find-up "^5.0.0" - glob-parent "^6.0.1" + glob-parent "^6.0.2" globals "^13.15.0" - globby "^11.1.0" grapheme-splitter "^1.0.4" ignore "^5.2.0" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" + is-path-inside "^3.0.3" js-sdsl "^4.1.4" js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" @@ -2429,7 +2430,7 @@ glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" -glob-parent@^6.0.1: +glob-parent@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== @@ -2885,7 +2886,7 @@ is-obj@^2.0.0: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== -is-path-inside@^3.0.2: +is-path-inside@^3.0.2, is-path-inside@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== From 50548c18572eeebf4cd4d40e4d79bb3b77daee84 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Fri, 28 Oct 2022 16:28:50 +0200 Subject: [PATCH 34/35] [create-pull-request] automated change (#980) --- src/typings/balancePlatform/accountHolder.ts | 4 +- .../accountHolderCapability.ts | 5 +- .../balancePlatform/accountHolderInfo.ts | 2 +- src/typings/balancePlatform/bankAccount.ts | 30 ++++ .../balancePlatform/capabilityProblem.ts | 38 ----- .../capabilityProblemEntity.ts | 53 ------- .../capabilityProblemEntityRecursive.ts | 46 ------ src/typings/balancePlatform/card.ts | 2 +- src/typings/balancePlatform/cardInfo.ts | 2 +- .../balancePlatform/cronSweepSchedule.ts | 48 ++++++ .../balancePlatform/deliveryContact.ts | 4 +- .../balancePlatform/entryModesRestriction.ts | 3 +- src/typings/balancePlatform/models.ts | 18 +-- .../balancePlatform/paymentInstrument.ts | 12 +- .../balancePlatform/paymentInstrumentInfo.ts | 5 +- .../paymentInstrumentUpdateRequest.ts | 2 +- .../processingTypesRestriction.ts | 3 +- .../balancePlatform/restServiceError.ts | 18 +-- .../balancePlatform/sweepConfigurationV2.ts | 17 +- src/typings/balancePlatform/sweepSchedule.ts | 5 +- .../balancePlatform/transactionRule.ts | 2 +- .../balancePlatform/transactionRuleInfo.ts | 2 +- src/typings/binlookup/serviceError.ts | 2 +- .../checkout/applePaySessionResponse.ts | 2 +- .../checkout/checkoutBalanceCheckRequest.ts | 4 +- .../checkout/checkoutBankTransferAction.ts | 114 ------------- .../checkout/checkoutDonationAction.ts | 62 -------- .../checkout/checkoutOneTimePasscodeAction.ts | 96 ----------- .../createPaymentAmountUpdateRequest.ts | 2 +- .../checkout/createPaymentCaptureRequest.ts | 2 +- .../checkout/createPaymentLinkRequest.ts | 4 +- .../checkout/createPaymentRefundRequest.ts | 2 +- src/typings/checkout/models.ts | 17 -- .../checkout/paymentAmountUpdateResource.ts | 2 +- .../checkout/paymentCaptureResource.ts | 2 +- src/typings/checkout/paymentDetails.ts | 1 + .../checkout/paymentDonationRequest.ts | 4 +- src/typings/checkout/paymentLinkResponse.ts | 4 +- src/typings/checkout/paymentMethodsRequest.ts | 2 +- src/typings/checkout/paymentRefundResource.ts | 2 +- src/typings/checkout/paymentRequest.ts | 4 +- src/typings/checkout/paymentResponse.ts | 7 +- src/typings/checkout/paymentSetupRequest.ts | 4 +- src/typings/checkout/redirect.ts | 54 ------- .../checkout/responseAdditionalDataCommon.ts | 13 +- src/typings/checkout/responsePaymentMethod.ts | 4 +- src/typings/checkout/serviceError.ts | 2 +- src/typings/legalEntityManagement/document.ts | 2 +- .../identificationData.ts | 2 +- .../legalEntityManagement/individual.ts | 2 +- .../legalEntityManagement/onboardingThemes.ts | 3 + .../legalEntityManagement/organization.ts | 2 +- .../soleProprietorship.ts | 2 +- .../legalEntityManagement/taxInformation.ts | 2 +- .../management/companyApiCredential.ts | 2 +- .../management/createCompanyWebhookRequest.ts | 3 +- .../createMerchantWebhookRequest.ts | 3 +- src/typings/management/currency.ts | 9 +- src/typings/management/gratuity.ts | 2 +- src/typings/management/listStoresResponse.ts | 3 + src/typings/management/meApiCredential.ts | 2 +- .../management/minorUnitsMonetaryValue.ts | 4 +- src/typings/management/models.ts | 5 + src/typings/management/offlineProcessing.ts | 4 +- src/typings/management/payPalInfo.ts | 9 -- src/typings/management/paymentMethod.ts | 35 ++++ .../scheduleTerminalActionsResponse.ts | 5 +- src/typings/management/shopperStatement.ts | 46 ++++++ .../management/storeSplitConfiguration.ts | 2 +- src/typings/management/terminal.ts | 24 +-- .../terminalActionScheduleDetail.ts | 6 + .../management/updateCompanyWebhookRequest.ts | 3 +- .../updateMerchantWebhookRequest.ts | 3 +- .../management/updatePaymentMethodInfo.ts | 7 + src/typings/management/webhook.ts | 3 +- .../payments/adjustAuthorisationRequest.ts | 2 +- src/typings/payments/cancelRequest.ts | 2 +- src/typings/payments/captureRequest.ts | 2 +- src/typings/payments/fundDestination.ts | 87 ++++++++++ src/typings/payments/fundSource.ts | 69 ++++++++ src/typings/payments/models.ts | 7 +- src/typings/payments/paymentRequest.ts | 18 ++- src/typings/payments/paymentRequest3d.ts | 4 +- src/typings/payments/paymentRequest3ds2.ts | 4 +- src/typings/payments/paymentResult.ts | 1 + src/typings/payments/refundRequest.ts | 2 +- .../payments/responseAdditionalDataCommon.ts | 13 +- src/typings/payments/serviceError.ts | 2 +- .../payments/technicalCancelRequest.ts | 2 +- .../payments/voidPendingRefundRequest.ts | 2 +- src/typings/payouts/models.ts | 1 - src/typings/payouts/payoutResponse.ts | 1 + .../payouts/responseAdditionalDataCommon.ts | 13 +- src/typings/payouts/serviceError.ts | 2 +- src/typings/platformsAccount/accountEvent.ts | 2 +- .../platformsAccount/accountHolderDetails.ts | 8 +- .../platformsAccount/bankAccountDetail.ts | 42 ++--- .../platformsAccount/businessDetails.ts | 2 +- .../createAccountHolderRequest.ts | 2 +- .../platformsAccount/createAccountRequest.ts | 16 +- .../deleteLegalArrangementRequest.ts | 40 +++++ .../platformsAccount/documentDetail.ts | 6 +- src/typings/platformsAccount/fieldType.ts | 3 + .../platformsAccount/kYCCheckSummary.ts | 2 +- .../legalArrangementDetail.ts | 4 +- .../legalArrangementEntityDetail.ts | 2 +- .../legalArrangementRequest.ts | 39 +++++ src/typings/platformsAccount/models.ts | 6 + src/typings/platformsAccount/payoutMethod.ts | 6 +- .../payoutScheduleResponse.ts | 18 +-- .../platformsAccount/shareholderContact.ts | 2 +- src/typings/platformsAccount/storeDetail.ts | 18 +++ .../updatePayoutScheduleRequest.ts | 16 +- .../platformsAccount/uploadDocumentRequest.ts | 2 +- .../accountHolderTransactionListRequest.ts | 2 + .../platformsFund/bankAccountDetail.ts | 42 ++--- src/typings/platformsFund/fieldType.ts | 3 + .../payoutAccountHolderRequest.ts | 2 +- src/typings/platformsFund/transaction.ts | 2 + .../collectInformation.ts | 12 +- .../fieldType.ts | 3 + .../getOnboardingUrlRequest.ts | 2 +- .../fieldType.ts | 3 + .../notificationConfigurationDetails.ts | 11 +- .../notificationEventConfiguration.ts | 1 + .../testNotificationConfigurationRequest.ts | 1 + .../testNotificationConfigurationResponse.ts | 1 + src/typings/recurring/serviceError.ts | 2 +- src/typings/storedValue/serviceError.ts | 2 +- .../bankAccountV3AccountIdentification.ts | 150 ------------------ 130 files changed, 715 insertions(+), 922 deletions(-) create mode 100644 src/typings/balancePlatform/bankAccount.ts delete mode 100644 src/typings/balancePlatform/capabilityProblem.ts delete mode 100644 src/typings/balancePlatform/capabilityProblemEntity.ts delete mode 100644 src/typings/balancePlatform/capabilityProblemEntityRecursive.ts create mode 100644 src/typings/balancePlatform/cronSweepSchedule.ts delete mode 100644 src/typings/checkout/checkoutBankTransferAction.ts delete mode 100644 src/typings/checkout/checkoutDonationAction.ts delete mode 100644 src/typings/checkout/checkoutOneTimePasscodeAction.ts delete mode 100644 src/typings/checkout/redirect.ts create mode 100644 src/typings/management/shopperStatement.ts create mode 100644 src/typings/payments/fundDestination.ts create mode 100644 src/typings/payments/fundSource.ts create mode 100644 src/typings/platformsAccount/deleteLegalArrangementRequest.ts create mode 100644 src/typings/platformsAccount/legalArrangementRequest.ts delete mode 100644 src/typings/transfer/bankAccountV3AccountIdentification.ts diff --git a/src/typings/balancePlatform/accountHolder.ts b/src/typings/balancePlatform/accountHolder.ts index ccfac13..591ef4c 100644 --- a/src/typings/balancePlatform/accountHolder.ts +++ b/src/typings/balancePlatform/accountHolder.ts @@ -29,7 +29,7 @@ export class AccountHolder { */ 'id': string; /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. For more information on how to create a legal entity, refer to [Onboard and verify account holders](https://docs.adyen.com/issuing/kyc-verification). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ 'legalEntityId': string; /** @@ -41,7 +41,7 @@ export class AccountHolder { */ 'reference'?: string; /** - * The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Suspended**: The account holder is temporarily suspended. You can set the account back to active or close it permanently. * **Closed**: The account holder is permanently deactivated. This action cannot be undone. + * The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone. */ 'status'?: AccountHolder.StatusEnum; /** diff --git a/src/typings/balancePlatform/accountHolderCapability.ts b/src/typings/balancePlatform/accountHolderCapability.ts index e3f902f..3c7233c 100644 --- a/src/typings/balancePlatform/accountHolderCapability.ts +++ b/src/typings/balancePlatform/accountHolderCapability.ts @@ -7,7 +7,6 @@ * Do not edit this class manually. */ -import { CapabilityProblem } from './capabilityProblem'; import { JSONObject } from './jSONObject'; export class AccountHolderCapability { @@ -27,7 +26,7 @@ export class AccountHolderCapability { /** * Contains verification errors and the actions that you can take to resolve them. */ - 'problems'?: Array; + 'problems'?: Array; /** * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @@ -68,7 +67,7 @@ export class AccountHolderCapability { { "name": "problems", "baseName": "problems", - "type": "Array" + "type": "Array" }, { "name": "requested", diff --git a/src/typings/balancePlatform/accountHolderInfo.ts b/src/typings/balancePlatform/accountHolderInfo.ts index 72a0c1c..6516f70 100644 --- a/src/typings/balancePlatform/accountHolderInfo.ts +++ b/src/typings/balancePlatform/accountHolderInfo.ts @@ -25,7 +25,7 @@ export class AccountHolderInfo { */ 'description'?: string; /** - * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. For more information on how to create a legal entity, refer to [Onboard and verify account holders](https://docs.adyen.com/issuing/kyc-verification). + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. */ 'legalEntityId': string; /** diff --git a/src/typings/balancePlatform/bankAccount.ts b/src/typings/balancePlatform/bankAccount.ts new file mode 100644 index 0000000..4cbf2ce --- /dev/null +++ b/src/typings/balancePlatform/bankAccount.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class BankAccount { + /** + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "iban", + "baseName": "iban", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/capabilityProblem.ts b/src/typings/balancePlatform/capabilityProblem.ts deleted file mode 100644 index 14ba744..0000000 --- a/src/typings/balancePlatform/capabilityProblem.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * The version of the OpenAPI document: v2 - * 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 this class manually. - */ - -import { CapabilityProblemEntity } from './capabilityProblemEntity'; -import { VerificationError } from './verificationError'; - -export class CapabilityProblem { - 'entity'?: CapabilityProblemEntity; - /** - * Contains information about the verification error. - */ - 'verificationErrors'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "entity", - "baseName": "entity", - "type": "CapabilityProblemEntity" - }, - { - "name": "verificationErrors", - "baseName": "verificationErrors", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return CapabilityProblem.attributeTypeMap; - } -} - diff --git a/src/typings/balancePlatform/capabilityProblemEntity.ts b/src/typings/balancePlatform/capabilityProblemEntity.ts deleted file mode 100644 index efbd925..0000000 --- a/src/typings/balancePlatform/capabilityProblemEntity.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * The version of the OpenAPI document: v2 - * 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 this class manually. - */ - -import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; - -export class CapabilityProblemEntity { - /** - * The ID of the entity. - */ - 'id'?: string; - 'owner'?: CapabilityProblemEntityRecursive; - /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - */ - 'type'?: CapabilityProblemEntity.TypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "owner", - "baseName": "owner", - "type": "CapabilityProblemEntityRecursive" - }, - { - "name": "type", - "baseName": "type", - "type": "CapabilityProblemEntity.TypeEnum" - } ]; - - static getAttributeTypeMap() { - return CapabilityProblemEntity.attributeTypeMap; - } -} - -export namespace CapabilityProblemEntity { - export enum TypeEnum { - BankAccount = 'BankAccount', - Document = 'Document', - LegalEntity = 'LegalEntity' - } -} diff --git a/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts deleted file mode 100644 index e75b3a5..0000000 --- a/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * The version of the OpenAPI document: v2 - * 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 this class manually. - */ - - -export class CapabilityProblemEntityRecursive { - /** - * The ID of the entity. - */ - 'id'?: string; - /** - * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. - */ - 'type'?: CapabilityProblemEntityRecursive.TypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "CapabilityProblemEntityRecursive.TypeEnum" - } ]; - - static getAttributeTypeMap() { - return CapabilityProblemEntityRecursive.attributeTypeMap; - } -} - -export namespace CapabilityProblemEntityRecursive { - export enum TypeEnum { - BankAccount = 'BankAccount', - Document = 'Document', - LegalEntity = 'LegalEntity' - } -} diff --git a/src/typings/balancePlatform/card.ts b/src/typings/balancePlatform/card.ts index 439f242..8efc78a 100644 --- a/src/typings/balancePlatform/card.ts +++ b/src/typings/balancePlatform/card.ts @@ -27,7 +27,7 @@ export class Card { */ 'brandVariant': string; /** - * The name of the card holder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. */ 'cardholderName': string; 'configuration'?: CardConfiguration; diff --git a/src/typings/balancePlatform/cardInfo.ts b/src/typings/balancePlatform/cardInfo.ts index d6bd71f..d1d04c9 100644 --- a/src/typings/balancePlatform/cardInfo.ts +++ b/src/typings/balancePlatform/cardInfo.ts @@ -22,7 +22,7 @@ export class CardInfo { */ 'brandVariant': string; /** - * The name of the card holder. Maximum length: 26 characters. + * The name of the cardholder. Maximum length: 26 characters. */ 'cardholderName': string; 'configuration'?: CardConfiguration; diff --git a/src/typings/balancePlatform/cronSweepSchedule.ts b/src/typings/balancePlatform/cronSweepSchedule.ts new file mode 100644 index 0000000..0b8055a --- /dev/null +++ b/src/typings/balancePlatform/cronSweepSchedule.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * 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 this class manually. + */ + + +export class CronSweepSchedule { + /** + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. + */ + 'cronExpression': string; + /** + * The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`. + */ + 'type'?: CronSweepSchedule.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cronExpression", + "baseName": "cronExpression", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CronSweepSchedule.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CronSweepSchedule.attributeTypeMap; + } +} + +export namespace CronSweepSchedule { + export enum TypeEnum { + Daily = 'daily', + Weekly = 'weekly', + Monthly = 'monthly', + Balance = 'balance', + Cron = 'cron' + } +} diff --git a/src/typings/balancePlatform/deliveryContact.ts b/src/typings/balancePlatform/deliveryContact.ts index 038f51c..47fa2ad 100644 --- a/src/typings/balancePlatform/deliveryContact.ts +++ b/src/typings/balancePlatform/deliveryContact.ts @@ -12,7 +12,7 @@ import { Name } from './name'; import { PhoneNumber } from './phoneNumber'; export class DeliveryContact { - 'address'?: Address2; + 'address': Address2; /** * The email address of the contact. */ @@ -21,7 +21,7 @@ export class DeliveryContact { * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" */ 'fullPhoneNumber'?: string; - 'name'?: Name; + 'name': Name; 'phoneNumber'?: PhoneNumber; /** * The URL of the contact\'s website. diff --git a/src/typings/balancePlatform/entryModesRestriction.ts b/src/typings/balancePlatform/entryModesRestriction.ts index a5b1173..dd04228 100644 --- a/src/typings/balancePlatform/entryModesRestriction.ts +++ b/src/typings/balancePlatform/entryModesRestriction.ts @@ -14,7 +14,7 @@ export class EntryModesRestriction { */ 'operation': string; /** - * List of point-of-sale entry modes. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **token**, **server**, **barcode**, **ocr**. + * List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**. */ 'value'?: Array; @@ -47,7 +47,6 @@ export namespace EntryModesRestriction { Manual = 'manual', Ocr = 'ocr', Server = 'server', - Token = 'token', Unknown = 'unknown' } } diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts index 147785d..2148a8f 100644 --- a/src/typings/balancePlatform/models.ts +++ b/src/typings/balancePlatform/models.ts @@ -22,16 +22,15 @@ export * from './balanceAccountInfo'; export * from './balanceAccountUpdateRequest'; export * from './balancePlatform'; export * from './balanceSweepConfigurationsResponse'; +export * from './bankAccount'; export * from './brandVariantsRestriction'; export * from './bulkAddress'; -export * from './capabilityProblem'; -export * from './capabilityProblemEntity'; -export * from './capabilityProblemEntityRecursive'; export * from './card'; export * from './cardConfiguration'; export * from './cardInfo'; export * from './contactDetails'; export * from './countriesRestriction'; +export * from './cronSweepSchedule'; export * from './deliveryContact'; export * from './differentCurrenciesRestriction'; export * from './duration'; @@ -90,16 +89,15 @@ import { BalanceAccountInfo } from './balanceAccountInfo'; import { BalanceAccountUpdateRequest } from './balanceAccountUpdateRequest'; import { BalancePlatform } from './balancePlatform'; import { BalanceSweepConfigurationsResponse } from './balanceSweepConfigurationsResponse'; +import { BankAccount } from './bankAccount'; import { BrandVariantsRestriction } from './brandVariantsRestriction'; import { BulkAddress } from './bulkAddress'; -import { CapabilityProblem } from './capabilityProblem'; -import { CapabilityProblemEntity } from './capabilityProblemEntity'; -import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; import { Card } from './card'; import { CardConfiguration } from './cardConfiguration'; import { CardInfo } from './cardInfo'; import { ContactDetails } from './contactDetails'; import { CountriesRestriction } from './countriesRestriction'; +import { CronSweepSchedule } from './cronSweepSchedule'; import { DeliveryContact } from './deliveryContact'; import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction'; import { Duration } from './duration'; @@ -162,10 +160,9 @@ let enumsMap: {[index: string]: any} = { "AccountHolderCapability.VerificationStatusEnum": AccountHolderCapability.VerificationStatusEnum, "BalanceAccount.StatusEnum": BalanceAccount.StatusEnum, "BalanceAccountUpdateRequest.StatusEnum": BalanceAccountUpdateRequest.StatusEnum, - "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, - "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, "Card.FormFactorEnum": Card.FormFactorEnum, "CardInfo.FormFactorEnum": CardInfo.FormFactorEnum, + "CronSweepSchedule.TypeEnum": CronSweepSchedule.TypeEnum, "Duration.UnitEnum": Duration.UnitEnum, "EntryModesRestriction.ValueEnum": EntryModesRestriction.ValueEnum, "PaymentInstrument.StatusEnum": PaymentInstrument.StatusEnum, @@ -209,16 +206,15 @@ let typeMap: {[index: string]: any} = { "BalanceAccountUpdateRequest": BalanceAccountUpdateRequest, "BalancePlatform": BalancePlatform, "BalanceSweepConfigurationsResponse": BalanceSweepConfigurationsResponse, + "BankAccount": BankAccount, "BrandVariantsRestriction": BrandVariantsRestriction, "BulkAddress": BulkAddress, - "CapabilityProblem": CapabilityProblem, - "CapabilityProblemEntity": CapabilityProblemEntity, - "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, "Card": Card, "CardConfiguration": CardConfiguration, "CardInfo": CardInfo, "ContactDetails": ContactDetails, "CountriesRestriction": CountriesRestriction, + "CronSweepSchedule": CronSweepSchedule, "DeliveryContact": DeliveryContact, "DifferentCurrenciesRestriction": DifferentCurrenciesRestriction, "Duration": Duration, diff --git a/src/typings/balancePlatform/paymentInstrument.ts b/src/typings/balancePlatform/paymentInstrument.ts index 3e4785f..3468ecb 100644 --- a/src/typings/balancePlatform/paymentInstrument.ts +++ b/src/typings/balancePlatform/paymentInstrument.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { BankAccount } from './bankAccount'; import { Card } from './card'; export class PaymentInstrument { @@ -14,6 +15,7 @@ export class PaymentInstrument { * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ 'balanceAccountId': string; + 'bankAccount'?: BankAccount; 'card'?: Card; /** * Your description for the payment instrument, maximum 300 characters. @@ -36,7 +38,7 @@ export class PaymentInstrument { */ 'reference'?: string; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ 'status'?: PaymentInstrument.StatusEnum; /** @@ -44,7 +46,7 @@ export class PaymentInstrument { */ 'statusReason'?: PaymentInstrument.StatusReasonEnum; /** - * Type of payment instrument. Possible value: **card**. + * Type of payment instrument. Possible value: **card**, **bankAccount**. */ 'type': PaymentInstrument.TypeEnum; @@ -56,6 +58,11 @@ export class PaymentInstrument { "baseName": "balanceAccountId", "type": "string" }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccount" + }, { "name": "card", "baseName": "card", @@ -125,6 +132,7 @@ export namespace PaymentInstrument { SuspectedFraud = 'suspectedFraud' } export enum TypeEnum { + BankAccount = 'bankAccount', Card = 'card' } } diff --git a/src/typings/balancePlatform/paymentInstrumentInfo.ts b/src/typings/balancePlatform/paymentInstrumentInfo.ts index 015bed8..a415355 100644 --- a/src/typings/balancePlatform/paymentInstrumentInfo.ts +++ b/src/typings/balancePlatform/paymentInstrumentInfo.ts @@ -32,7 +32,7 @@ export class PaymentInstrumentInfo { */ 'reference'?: string; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ 'status'?: PaymentInstrumentInfo.StatusEnum; /** @@ -40,7 +40,7 @@ export class PaymentInstrumentInfo { */ 'statusReason'?: PaymentInstrumentInfo.StatusReasonEnum; /** - * Type of payment instrument. Possible value: **card**. + * Type of payment instrument. Possible value: **card**, **bankAccount**. */ 'type': PaymentInstrumentInfo.TypeEnum; @@ -116,6 +116,7 @@ export namespace PaymentInstrumentInfo { SuspectedFraud = 'suspectedFraud' } export enum TypeEnum { + BankAccount = 'bankAccount', Card = 'card' } } diff --git a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts index 1e8fb05..55114e6 100644 --- a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts +++ b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts @@ -16,7 +16,7 @@ export class PaymentInstrumentUpdateRequest { 'balanceAccountId'?: string; 'card'?: CardInfo; /** - * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ 'status'?: PaymentInstrumentUpdateRequest.StatusEnum; /** diff --git a/src/typings/balancePlatform/processingTypesRestriction.ts b/src/typings/balancePlatform/processingTypesRestriction.ts index f0c1004..391215b 100644 --- a/src/typings/balancePlatform/processingTypesRestriction.ts +++ b/src/typings/balancePlatform/processingTypesRestriction.ts @@ -14,7 +14,7 @@ export class ProcessingTypesRestriction { */ 'operation': string; /** - * List of processing types. Possible values: **atmWithdraw**, **pos**, **ecommerce**, **moto**, **recurring**, **balanceInquiry**. + * List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**. */ 'value'?: Array; @@ -44,7 +44,6 @@ export namespace ProcessingTypesRestriction { Ecommerce = 'ecommerce', Moto = 'moto', Pos = 'pos', - PurchaseWithCashback = 'purchaseWithCashback', Recurring = 'recurring', Token = 'token', Unknown = 'unknown' diff --git a/src/typings/balancePlatform/restServiceError.ts b/src/typings/balancePlatform/restServiceError.ts index f41d0c6..8569dc2 100644 --- a/src/typings/balancePlatform/restServiceError.ts +++ b/src/typings/balancePlatform/restServiceError.ts @@ -20,10 +20,6 @@ export class RestServiceError { */ 'errorCode': string; /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - */ - 'errorType': string; - /** * A unique URI that identifies the specific occurrence of the problem. */ 'instance'?: string; @@ -44,6 +40,10 @@ export class RestServiceError { * A short, human-readable summary of the problem type. */ 'title': string; + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + */ + 'type': string; static discriminator: string | undefined = undefined; @@ -58,11 +58,6 @@ export class RestServiceError { "baseName": "errorCode", "type": "string" }, - { - "name": "errorType", - "baseName": "errorType", - "type": "string" - }, { "name": "instance", "baseName": "instance", @@ -92,6 +87,11 @@ export class RestServiceError { "name": "title", "baseName": "title", "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/sweepConfigurationV2.ts b/src/typings/balancePlatform/sweepConfigurationV2.ts index 23d9fdf..0dc36e6 100644 --- a/src/typings/balancePlatform/sweepConfigurationV2.ts +++ b/src/typings/balancePlatform/sweepConfigurationV2.ts @@ -8,6 +8,7 @@ */ import { Amount } from './amount'; +import { CronSweepSchedule } from './cronSweepSchedule'; import { SweepCounterparty } from './sweepCounterparty'; import { SweepSchedule } from './sweepSchedule'; @@ -18,10 +19,17 @@ export class SweepConfigurationV2 { */ 'currency': string; /** + * The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + */ + 'description'?: string; + /** * The unique identifier of the sweep. */ 'id': string; - 'schedule': SweepSchedule; + /** + * The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account. + */ + 'schedule': CronSweepSchedule | SweepSchedule; /** * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ @@ -47,6 +55,11 @@ export class SweepConfigurationV2 { "baseName": "currency", "type": "string" }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, { "name": "id", "baseName": "id", @@ -55,7 +68,7 @@ export class SweepConfigurationV2 { { "name": "schedule", "baseName": "schedule", - "type": "SweepSchedule" + "type": "CronSweepSchedule | SweepSchedule" }, { "name": "status", diff --git a/src/typings/balancePlatform/sweepSchedule.ts b/src/typings/balancePlatform/sweepSchedule.ts index 64dca05..425b367 100644 --- a/src/typings/balancePlatform/sweepSchedule.ts +++ b/src/typings/balancePlatform/sweepSchedule.ts @@ -10,7 +10,7 @@ export class SweepSchedule { /** - * The schedule type. Possible values: * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`. + * The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`. */ 'type'?: SweepSchedule.TypeEnum; @@ -33,6 +33,7 @@ export namespace SweepSchedule { Daily = 'daily', Weekly = 'weekly', Monthly = 'monthly', - Balance = 'balance' + Balance = 'balance', + Cron = 'cron' } } diff --git a/src/typings/balancePlatform/transactionRule.ts b/src/typings/balancePlatform/transactionRule.ts index 9bb3054..ba258b9 100644 --- a/src/typings/balancePlatform/transactionRule.ts +++ b/src/typings/balancePlatform/transactionRule.ts @@ -52,7 +52,7 @@ export class TransactionRule { */ 'status'?: TransactionRule.StatusEnum; /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which definesif a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ 'type': TransactionRule.TypeEnum; diff --git a/src/typings/balancePlatform/transactionRuleInfo.ts b/src/typings/balancePlatform/transactionRuleInfo.ts index 8199017..3a8045c 100644 --- a/src/typings/balancePlatform/transactionRuleInfo.ts +++ b/src/typings/balancePlatform/transactionRuleInfo.ts @@ -48,7 +48,7 @@ export class TransactionRuleInfo { */ 'status'?: TransactionRuleInfo.StatusEnum; /** - * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which definesif a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. */ 'type': TransactionRuleInfo.TypeEnum; diff --git a/src/typings/binlookup/serviceError.ts b/src/typings/binlookup/serviceError.ts index ecd1397..cc25b6f 100644 --- a/src/typings/binlookup/serviceError.ts +++ b/src/typings/binlookup/serviceError.ts @@ -10,7 +10,7 @@ export class ServiceError { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; /** diff --git a/src/typings/checkout/applePaySessionResponse.ts b/src/typings/checkout/applePaySessionResponse.ts index ebf298e..be392bc 100644 --- a/src/typings/checkout/applePaySessionResponse.ts +++ b/src/typings/checkout/applePaySessionResponse.ts @@ -10,7 +10,7 @@ export class ApplePaySessionResponse { /** - * Base64 encoded data you need to [complete the Apple Pay merchant vlaidation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). */ 'data': string; diff --git a/src/typings/checkout/checkoutBalanceCheckRequest.ts b/src/typings/checkout/checkoutBalanceCheckRequest.ts index f50b66f..dc8149b 100644 --- a/src/typings/checkout/checkoutBalanceCheckRequest.ts +++ b/src/typings/checkout/checkoutBalanceCheckRequest.ts @@ -130,11 +130,11 @@ export class CheckoutBalanceCheckRequest { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** diff --git a/src/typings/checkout/checkoutBankTransferAction.ts b/src/typings/checkout/checkoutBankTransferAction.ts deleted file mode 100644 index e055ba5..0000000 --- a/src/typings/checkout/checkoutBankTransferAction.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * The version of the OpenAPI document: v69 - * 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 this class manually. - */ - -import { Amount } from './amount'; - -export class CheckoutBankTransferAction { - /** - * The name of the account holder. - */ - 'beneficiary'?: string; - /** - * The BIC of the IBAN. - */ - 'bic'?: string; - /** - * The url to download payment details with. - */ - 'downloadUrl'?: string; - /** - * The IBAN of the bank transfer. - */ - 'iban'?: string; - /** - * Specifies the payment method. - */ - 'paymentMethodType'?: string; - /** - * The transfer reference. - */ - 'reference'?: string; - /** - * The e-mail of the shopper, included if an e-mail was sent to the shopper. - */ - 'shopperEmail'?: string; - 'totalAmount'?: Amount; - /** - * The type of the action. - */ - 'type': CheckoutBankTransferAction.TypeEnum; - /** - * Specifies the URL to redirect to. - */ - 'url'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "beneficiary", - "baseName": "beneficiary", - "type": "string" - }, - { - "name": "bic", - "baseName": "bic", - "type": "string" - }, - { - "name": "downloadUrl", - "baseName": "downloadUrl", - "type": "string" - }, - { - "name": "iban", - "baseName": "iban", - "type": "string" - }, - { - "name": "paymentMethodType", - "baseName": "paymentMethodType", - "type": "string" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "shopperEmail", - "baseName": "shopperEmail", - "type": "string" - }, - { - "name": "totalAmount", - "baseName": "totalAmount", - "type": "Amount" - }, - { - "name": "type", - "baseName": "type", - "type": "CheckoutBankTransferAction.TypeEnum" - }, - { - "name": "url", - "baseName": "url", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CheckoutBankTransferAction.attributeTypeMap; - } -} - -export namespace CheckoutBankTransferAction { - export enum TypeEnum { - BankTransfer = 'bankTransfer' - } -} diff --git a/src/typings/checkout/checkoutDonationAction.ts b/src/typings/checkout/checkoutDonationAction.ts deleted file mode 100644 index 9282f24..0000000 --- a/src/typings/checkout/checkoutDonationAction.ts +++ /dev/null @@ -1,62 +0,0 @@ -/* - * The version of the OpenAPI document: v69 - * 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 this class manually. - */ - - -export class CheckoutDonationAction { - /** - * A value that must be submitted to the `/payments/details` endpoint to verify this payment. - */ - 'paymentData'?: string; - /** - * Specifies the payment method. - */ - 'paymentMethodType'?: string; - /** - * The type of the action. - */ - 'type': CheckoutDonationAction.TypeEnum; - /** - * Specifies the URL to redirect to. - */ - 'url'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "paymentData", - "baseName": "paymentData", - "type": "string" - }, - { - "name": "paymentMethodType", - "baseName": "paymentMethodType", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "CheckoutDonationAction.TypeEnum" - }, - { - "name": "url", - "baseName": "url", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CheckoutDonationAction.attributeTypeMap; - } -} - -export namespace CheckoutDonationAction { - export enum TypeEnum { - Donate = 'donate' - } -} diff --git a/src/typings/checkout/checkoutOneTimePasscodeAction.ts b/src/typings/checkout/checkoutOneTimePasscodeAction.ts deleted file mode 100644 index c672617..0000000 --- a/src/typings/checkout/checkoutOneTimePasscodeAction.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* - * The version of the OpenAPI document: v69 - * 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 this class manually. - */ - -import { Redirect } from './redirect'; - -export class CheckoutOneTimePasscodeAction { - /** - * A value that must be submitted to the `/payments/details` endpoint to verify this payment. - */ - 'paymentData'?: string; - /** - * Specifies the payment method. - */ - 'paymentMethodType'?: string; - 'redirect'?: Redirect; - /** - * The interval in second between OTP resend. - */ - 'resendInterval'?: number; - /** - * The maximum number of OTP resend attempts. - */ - 'resendMaxAttempts'?: number; - /** - * The URL, to which you make POST request to trigger OTP resend. - */ - 'resendUrl'?: string; - /** - * The type of the action. - */ - 'type': CheckoutOneTimePasscodeAction.TypeEnum; - /** - * Specifies the URL to redirect to. - */ - 'url'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "paymentData", - "baseName": "paymentData", - "type": "string" - }, - { - "name": "paymentMethodType", - "baseName": "paymentMethodType", - "type": "string" - }, - { - "name": "redirect", - "baseName": "redirect", - "type": "Redirect" - }, - { - "name": "resendInterval", - "baseName": "resendInterval", - "type": "number" - }, - { - "name": "resendMaxAttempts", - "baseName": "resendMaxAttempts", - "type": "number" - }, - { - "name": "resendUrl", - "baseName": "resendUrl", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "CheckoutOneTimePasscodeAction.TypeEnum" - }, - { - "name": "url", - "baseName": "url", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CheckoutOneTimePasscodeAction.attributeTypeMap; - } -} - -export namespace CheckoutOneTimePasscodeAction { - export enum TypeEnum { - OneTimePasscode = 'oneTimePasscode' - } -} diff --git a/src/typings/checkout/createPaymentAmountUpdateRequest.ts b/src/typings/checkout/createPaymentAmountUpdateRequest.ts index 046be86..7754893 100644 --- a/src/typings/checkout/createPaymentAmountUpdateRequest.ts +++ b/src/typings/checkout/createPaymentAmountUpdateRequest.ts @@ -25,7 +25,7 @@ export class CreatePaymentAmountUpdateRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; diff --git a/src/typings/checkout/createPaymentCaptureRequest.ts b/src/typings/checkout/createPaymentCaptureRequest.ts index 3c948de..bc3d1e9 100644 --- a/src/typings/checkout/createPaymentCaptureRequest.ts +++ b/src/typings/checkout/createPaymentCaptureRequest.ts @@ -26,7 +26,7 @@ export class CreatePaymentCaptureRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; diff --git a/src/typings/checkout/createPaymentLinkRequest.ts b/src/typings/checkout/createPaymentLinkRequest.ts index 6bd8179..9a0e855 100644 --- a/src/typings/checkout/createPaymentLinkRequest.ts +++ b/src/typings/checkout/createPaymentLinkRequest.ts @@ -124,7 +124,7 @@ export class CreatePaymentLinkRequest { */ 'splitCardFundingSources'?: boolean; /** - * An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** @@ -140,7 +140,7 @@ export class CreatePaymentLinkRequest { */ 'telephoneNumber'?: string; /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ 'themeId'?: string; diff --git a/src/typings/checkout/createPaymentRefundRequest.ts b/src/typings/checkout/createPaymentRefundRequest.ts index 32db517..879e51d 100644 --- a/src/typings/checkout/createPaymentRefundRequest.ts +++ b/src/typings/checkout/createPaymentRefundRequest.ts @@ -26,7 +26,7 @@ export class CreatePaymentRefundRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index ad79319..0c65d5c 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -50,13 +50,10 @@ export * from './cellulantDetails'; export * from './checkoutAwaitAction'; export * from './checkoutBalanceCheckRequest'; export * from './checkoutBalanceCheckResponse'; -export * from './checkoutBankTransferAction'; export * from './checkoutCancelOrderRequest'; export * from './checkoutCancelOrderResponse'; export * from './checkoutCreateOrderRequest'; export * from './checkoutCreateOrderResponse'; -export * from './checkoutDonationAction'; -export * from './checkoutOneTimePasscodeAction'; export * from './checkoutOrder'; export * from './checkoutOrderResponse'; export * from './checkoutQrCodeAction'; @@ -139,7 +136,6 @@ export * from './phone'; export * from './ratepayDetails'; export * from './recurring'; export * from './recurringDetail'; -export * from './redirect'; export * from './responseAdditionalData3DSecure'; export * from './responseAdditionalDataBillingAddress'; export * from './responseAdditionalDataCard'; @@ -223,13 +219,10 @@ import { CellulantDetails } from './cellulantDetails'; import { CheckoutAwaitAction } from './checkoutAwaitAction'; import { CheckoutBalanceCheckRequest } from './checkoutBalanceCheckRequest'; import { CheckoutBalanceCheckResponse } from './checkoutBalanceCheckResponse'; -import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; import { CheckoutCancelOrderRequest } from './checkoutCancelOrderRequest'; import { CheckoutCancelOrderResponse } from './checkoutCancelOrderResponse'; import { CheckoutCreateOrderRequest } from './checkoutCreateOrderRequest'; import { CheckoutCreateOrderResponse } from './checkoutCreateOrderResponse'; -import { CheckoutDonationAction } from './checkoutDonationAction'; -import { CheckoutOneTimePasscodeAction } from './checkoutOneTimePasscodeAction'; import { CheckoutOrder } from './checkoutOrder'; import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; @@ -312,7 +305,6 @@ import { Phone } from './phone'; import { RatepayDetails } from './ratepayDetails'; import { Recurring } from './recurring'; import { RecurringDetail } from './recurringDetail'; -import { Redirect } from './redirect'; import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; @@ -399,11 +391,8 @@ let enumsMap: {[index: string]: any} = { "CheckoutBalanceCheckRequest.RecurringProcessingModelEnum": CheckoutBalanceCheckRequest.RecurringProcessingModelEnum, "CheckoutBalanceCheckRequest.ShopperInteractionEnum": CheckoutBalanceCheckRequest.ShopperInteractionEnum, "CheckoutBalanceCheckResponse.ResultCodeEnum": CheckoutBalanceCheckResponse.ResultCodeEnum, - "CheckoutBankTransferAction.TypeEnum": CheckoutBankTransferAction.TypeEnum, "CheckoutCancelOrderResponse.ResultCodeEnum": CheckoutCancelOrderResponse.ResultCodeEnum, "CheckoutCreateOrderResponse.ResultCodeEnum": CheckoutCreateOrderResponse.ResultCodeEnum, - "CheckoutDonationAction.TypeEnum": CheckoutDonationAction.TypeEnum, - "CheckoutOneTimePasscodeAction.TypeEnum": CheckoutOneTimePasscodeAction.TypeEnum, "CheckoutQrCodeAction.TypeEnum": CheckoutQrCodeAction.TypeEnum, "CheckoutRedirectAction.TypeEnum": CheckoutRedirectAction.TypeEnum, "CheckoutSDKAction.TypeEnum": CheckoutSDKAction.TypeEnum, @@ -483,9 +472,7 @@ let enumsMap: {[index: string]: any} = { "Recurring.ContractEnum": Recurring.ContractEnum, "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, "RecurringDetail.FundingSourceEnum": RecurringDetail.FundingSourceEnum, - "Redirect.MethodEnum": Redirect.MethodEnum, "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, - "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, "SamsungPayDetails.FundingSourceEnum": SamsungPayDetails.FundingSourceEnum, "SamsungPayDetails.TypeEnum": SamsungPayDetails.TypeEnum, @@ -567,13 +554,10 @@ let typeMap: {[index: string]: any} = { "CheckoutAwaitAction": CheckoutAwaitAction, "CheckoutBalanceCheckRequest": CheckoutBalanceCheckRequest, "CheckoutBalanceCheckResponse": CheckoutBalanceCheckResponse, - "CheckoutBankTransferAction": CheckoutBankTransferAction, "CheckoutCancelOrderRequest": CheckoutCancelOrderRequest, "CheckoutCancelOrderResponse": CheckoutCancelOrderResponse, "CheckoutCreateOrderRequest": CheckoutCreateOrderRequest, "CheckoutCreateOrderResponse": CheckoutCreateOrderResponse, - "CheckoutDonationAction": CheckoutDonationAction, - "CheckoutOneTimePasscodeAction": CheckoutOneTimePasscodeAction, "CheckoutOrder": CheckoutOrder, "CheckoutOrderResponse": CheckoutOrderResponse, "CheckoutQrCodeAction": CheckoutQrCodeAction, @@ -656,7 +640,6 @@ let typeMap: {[index: string]: any} = { "RatepayDetails": RatepayDetails, "Recurring": Recurring, "RecurringDetail": RecurringDetail, - "Redirect": Redirect, "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, "ResponseAdditionalDataCard": ResponseAdditionalDataCard, diff --git a/src/typings/checkout/paymentAmountUpdateResource.ts b/src/typings/checkout/paymentAmountUpdateResource.ts index f81bdda..56d7615 100644 --- a/src/typings/checkout/paymentAmountUpdateResource.ts +++ b/src/typings/checkout/paymentAmountUpdateResource.ts @@ -33,7 +33,7 @@ export class PaymentAmountUpdateResource { */ 'reference': string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/checkout/paymentCaptureResource.ts b/src/typings/checkout/paymentCaptureResource.ts index a48b256..321fedb 100644 --- a/src/typings/checkout/paymentCaptureResource.ts +++ b/src/typings/checkout/paymentCaptureResource.ts @@ -34,7 +34,7 @@ export class PaymentCaptureResource { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 44de03d..6e73703 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -61,6 +61,7 @@ export namespace PaymentDetails { MolpayEbankingVn = 'molpay_ebanking_VN', OnlineBankingPl = 'onlineBanking_PL', OpenbankingUk = 'openbanking_UK', + Paybybank = 'paybybank', EbankingFi = 'ebanking_FI', MolpayEbankingMy = 'molpay_ebanking_MY', MolpayEbankingDirectMy = 'molpay_ebanking_direct_MY', diff --git a/src/typings/checkout/paymentDonationRequest.ts b/src/typings/checkout/paymentDonationRequest.ts index db2a173..dabce82 100644 --- a/src/typings/checkout/paymentDonationRequest.ts +++ b/src/typings/checkout/paymentDonationRequest.ts @@ -243,11 +243,11 @@ export class PaymentDonationRequest { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 293fafa..13b86a2 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -128,7 +128,7 @@ export class PaymentLinkResponse { */ 'splitCardFundingSources'?: boolean; /** - * An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** @@ -148,7 +148,7 @@ export class PaymentLinkResponse { */ 'telephoneNumber'?: string; /** - * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. + * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ 'themeId'?: string; /** diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index 49e734e..dd5deb8 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -50,7 +50,7 @@ export class PaymentMethodsRequest { */ 'splitCardFundingSources'?: boolean; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; diff --git a/src/typings/checkout/paymentRefundResource.ts b/src/typings/checkout/paymentRefundResource.ts index c05ab84..0a21ea8 100644 --- a/src/typings/checkout/paymentRefundResource.ts +++ b/src/typings/checkout/paymentRefundResource.ts @@ -34,7 +34,7 @@ export class PaymentRefundResource { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 0c60e10..796f4a6 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -231,11 +231,11 @@ export class PaymentRequest { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index e4995e5..c938cd0 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -9,9 +9,6 @@ import { Amount } from './amount'; import { CheckoutAwaitAction } from './checkoutAwaitAction'; -import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; -import { CheckoutDonationAction } from './checkoutDonationAction'; -import { CheckoutOneTimePasscodeAction } from './checkoutOneTimePasscodeAction'; import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; import { CheckoutRedirectAction } from './checkoutRedirectAction'; @@ -27,7 +24,7 @@ export class PaymentResponse { /** * Action to be taken for completing the payment. */ - 'action'?: CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction; + 'action'?: CheckoutAwaitAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction; /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ @@ -73,7 +70,7 @@ export class PaymentResponse { { "name": "action", "baseName": "action", - "type": "CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction" + "type": "CheckoutAwaitAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction" }, { "name": "additionalData", diff --git a/src/typings/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts index 21ebaad..270ba8f 100644 --- a/src/typings/checkout/paymentSetupRequest.ts +++ b/src/typings/checkout/paymentSetupRequest.ts @@ -173,11 +173,11 @@ export class PaymentSetupRequest { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** diff --git a/src/typings/checkout/redirect.ts b/src/typings/checkout/redirect.ts deleted file mode 100644 index cc114e0..0000000 --- a/src/typings/checkout/redirect.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * The version of the OpenAPI document: v69 - * 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 this class manually. - */ - - -export class Redirect { - /** - * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. - */ - 'data'?: { [key: string]: string; }; - /** - * The web method that you must use to access the redirect URL. Possible values: GET, POST. - */ - 'method'?: Redirect.MethodEnum; - /** - * The URL, to which you must redirect a shopper to complete a payment. - */ - 'url'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "data", - "baseName": "data", - "type": "{ [key: string]: string; }" - }, - { - "name": "method", - "baseName": "method", - "type": "Redirect.MethodEnum" - }, - { - "name": "url", - "baseName": "url", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return Redirect.attributeTypeMap; - } -} - -export namespace Redirect { - export enum MethodEnum { - Get = 'GET', - Post = 'POST' - } -} diff --git a/src/typings/checkout/responseAdditionalDataCommon.ts b/src/typings/checkout/responseAdditionalDataCommon.ts index 17d6611..3ff333f 100644 --- a/src/typings/checkout/responseAdditionalDataCommon.ts +++ b/src/typings/checkout/responseAdditionalDataCommon.ts @@ -130,9 +130,9 @@ export class ResponseAdditionalDataCommon { */ 'mcBankNetReferenceNumber'?: string; /** - * A code and message that issuers send to provide more details about the payment. This field is especially useful when implementing a retry logic for declined payments. Possible values: * **01: New account information available** * **02: Cannot approve at this time, try again later** * **03: Do not try again** * **04: Token requirements not fulfilled for this token type** * **21: Payment Cancellation** (only for Mastercard) + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ - 'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum; + 'merchantAdviceCode'?: string; /** * The reference provided for the transaction. */ @@ -402,7 +402,7 @@ export class ResponseAdditionalDataCommon { { "name": "merchantAdviceCode", "baseName": "merchantAdviceCode", - "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + "type": "string" }, { "name": "merchantReference", @@ -555,13 +555,6 @@ export namespace ResponseAdditionalDataCommon { Green = 'GREEN', Fraud = 'FRAUD' } - export enum MerchantAdviceCodeEnum { - _01NewAccountInformationAvailable = '01: New account information available', - _02CannotApproveAtThisTimeTryAgainLater = '02: Cannot approve at this time, try again later', - _03DoNotTryAgain = '03: Do not try again', - _04TokenRequirementsNotFulfilledForThisTokenType = '04: Token requirements not fulfilled for this token type', - _21PaymentCancellation = '21: Payment Cancellation' - } export enum RecurringProcessingModelEnum { CardOnFile = 'CardOnFile', Subscription = 'Subscription', diff --git a/src/typings/checkout/responsePaymentMethod.ts b/src/typings/checkout/responsePaymentMethod.ts index 4128d0d..ad27c35 100644 --- a/src/typings/checkout/responsePaymentMethod.ts +++ b/src/typings/checkout/responsePaymentMethod.ts @@ -10,11 +10,11 @@ export class ResponsePaymentMethod { /** - * The payment method brand. + * The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**. */ 'brand'?: string; /** - * The payment method type. + * The `paymentMethod.type` value used in the request. */ 'type'?: string; diff --git a/src/typings/checkout/serviceError.ts b/src/typings/checkout/serviceError.ts index 4417801..f81928b 100644 --- a/src/typings/checkout/serviceError.ts +++ b/src/typings/checkout/serviceError.ts @@ -10,7 +10,7 @@ export class ServiceError { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; /** diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts index 02dcc56..1c0a47b 100644 --- a/src/typings/legalEntityManagement/document.ts +++ b/src/typings/legalEntityManagement/document.ts @@ -46,7 +46,7 @@ export class Document { 'number'?: string; 'owner': OwnerEntity; /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ 'type': Document.TypeEnum; diff --git a/src/typings/legalEntityManagement/identificationData.ts b/src/typings/legalEntityManagement/identificationData.ts index dff5a07..1d2687a 100644 --- a/src/typings/legalEntityManagement/identificationData.ts +++ b/src/typings/legalEntityManagement/identificationData.ts @@ -30,7 +30,7 @@ export class IdentificationData { */ 'number'?: string; /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ 'type': IdentificationData.TypeEnum; diff --git a/src/typings/legalEntityManagement/individual.ts b/src/typings/legalEntityManagement/individual.ts index 681d867..ae84287 100644 --- a/src/typings/legalEntityManagement/individual.ts +++ b/src/typings/legalEntityManagement/individual.ts @@ -30,7 +30,7 @@ export class Individual { 'phone'?: PhoneNumber; 'residentialAddress': Address; /** - * The tax information of the organization. + * The tax information of the individual. */ 'taxInformation'?: Array; 'webData'?: WebData; diff --git a/src/typings/legalEntityManagement/onboardingThemes.ts b/src/typings/legalEntityManagement/onboardingThemes.ts index de089f7..f464295 100644 --- a/src/typings/legalEntityManagement/onboardingThemes.ts +++ b/src/typings/legalEntityManagement/onboardingThemes.ts @@ -18,6 +18,9 @@ export class OnboardingThemes { * The previous page. Only present if there is a previous page. */ 'previous'?: string; + /** + * List of onboarding themes. + */ 'themes': Array; static discriminator: string | undefined = undefined; diff --git a/src/typings/legalEntityManagement/organization.ts b/src/typings/legalEntityManagement/organization.ts index 4319694..43237f1 100644 --- a/src/typings/legalEntityManagement/organization.ts +++ b/src/typings/legalEntityManagement/organization.ts @@ -47,7 +47,7 @@ export class Organization { /** * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. */ - 'type': Organization.TypeEnum; + 'type'?: Organization.TypeEnum; /** * The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**. */ diff --git a/src/typings/legalEntityManagement/soleProprietorship.ts b/src/typings/legalEntityManagement/soleProprietorship.ts index f174c15..42cb724 100644 --- a/src/typings/legalEntityManagement/soleProprietorship.ts +++ b/src/typings/legalEntityManagement/soleProprietorship.ts @@ -13,7 +13,7 @@ export class SoleProprietorship { /** * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the governing country. */ - 'countryOfGoverningLaw'?: string; + 'countryOfGoverningLaw': string; /** * The registered name, if different from the `name`. */ diff --git a/src/typings/legalEntityManagement/taxInformation.ts b/src/typings/legalEntityManagement/taxInformation.ts index 0be59ea..3c7eb5f 100644 --- a/src/typings/legalEntityManagement/taxInformation.ts +++ b/src/typings/legalEntityManagement/taxInformation.ts @@ -14,7 +14,7 @@ export class TaxInformation { */ 'country'?: string; /** - * The organization\'s tax ID number (TIN). + * The tax ID number (TIN) of the organization or individual. */ 'number'?: string; /** diff --git a/src/typings/management/companyApiCredential.ts b/src/typings/management/companyApiCredential.ts index f53ba65..15fabf4 100644 --- a/src/typings/management/companyApiCredential.ts +++ b/src/typings/management/companyApiCredential.ts @@ -25,7 +25,7 @@ export class CompanyApiCredential { */ 'allowedOrigins'?: Array; /** - * List of merchant accounts that the API credential has access to. + * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. */ 'associatedMerchantAccounts'?: Array; /** diff --git a/src/typings/management/createCompanyWebhookRequest.ts b/src/typings/management/createCompanyWebhookRequest.ts index e03ea96..24293a0 100644 --- a/src/typings/management/createCompanyWebhookRequest.ts +++ b/src/typings/management/createCompanyWebhookRequest.ts @@ -56,7 +56,7 @@ export class CreateCompanyWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: CreateCompanyWebhookRequest.SslVersionEnum; /** @@ -185,6 +185,7 @@ export namespace CreateCompanyWebhookRequest { Tlsv1 = 'TLSV1', Tlsv11 = 'TLSV1_1', Tlsv12 = 'TLSV1_2', + Tlsv13 = 'TLSV1_3', Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' } } diff --git a/src/typings/management/createMerchantWebhookRequest.ts b/src/typings/management/createMerchantWebhookRequest.ts index 0c4bad9..a5e5387 100644 --- a/src/typings/management/createMerchantWebhookRequest.ts +++ b/src/typings/management/createMerchantWebhookRequest.ts @@ -48,7 +48,7 @@ export class CreateMerchantWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: CreateMerchantWebhookRequest.SslVersionEnum; /** @@ -162,6 +162,7 @@ export namespace CreateMerchantWebhookRequest { Tlsv1 = 'TLSV1', Tlsv11 = 'TLSV1_1', Tlsv12 = 'TLSV1_2', + Tlsv13 = 'TLSV1_3', Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' } } diff --git a/src/typings/management/currency.ts b/src/typings/management/currency.ts index 63c2e67..62d19f1 100644 --- a/src/typings/management/currency.ts +++ b/src/typings/management/currency.ts @@ -10,17 +10,14 @@ export class Currency { /** - * Surcharge amount per transaction, in minor units. + * Surcharge amount per transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'amount'?: number; /** * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. */ 'currencyCode': string; - /** - * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. - */ - 'percentage'?: number; + 'percentage'?: any; static discriminator: string | undefined = undefined; @@ -38,7 +35,7 @@ export class Currency { { "name": "percentage", "baseName": "percentage", - "type": "number" + "type": "any" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/gratuity.ts b/src/typings/management/gratuity.ts index bcb2df3..04c5fb0 100644 --- a/src/typings/management/gratuity.ts +++ b/src/typings/management/gratuity.ts @@ -18,7 +18,7 @@ export class Gratuity { */ 'currency'?: string; /** - * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in minor units. Example: **500** for a EUR 5 tip. + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). Example: **500** for a EUR 5 tip. */ 'predefinedTipEntries'?: Array; /** diff --git a/src/typings/management/listStoresResponse.ts b/src/typings/management/listStoresResponse.ts index 4e793f8..8762b66 100644 --- a/src/typings/management/listStoresResponse.ts +++ b/src/typings/management/listStoresResponse.ts @@ -12,6 +12,9 @@ import { Store } from './store'; export class ListStoresResponse { 'links'?: PaginationLinks; + /** + * List of stores + */ 'data'?: Array; /** * Total number of items. diff --git a/src/typings/management/meApiCredential.ts b/src/typings/management/meApiCredential.ts index 4e0efd7..4fa61c8 100644 --- a/src/typings/management/meApiCredential.ts +++ b/src/typings/management/meApiCredential.ts @@ -25,7 +25,7 @@ export class MeApiCredential { */ 'allowedOrigins'?: Array; /** - * List of merchant accounts that the API credential has access to. + * List of merchant accounts that the API credential has explicit access to. If the credential has access to a company, this implies access to all merchant accounts and no merchants for that company will be included. */ 'associatedMerchantAccounts'?: Array; /** diff --git a/src/typings/management/minorUnitsMonetaryValue.ts b/src/typings/management/minorUnitsMonetaryValue.ts index ba0bf6e..b65170d 100644 --- a/src/typings/management/minorUnitsMonetaryValue.ts +++ b/src/typings/management/minorUnitsMonetaryValue.ts @@ -10,11 +10,11 @@ export class MinorUnitsMonetaryValue { /** - * Amount of this monetary value, in minor units + * The transaction amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'amount'?: number; /** - * Currency of this monetary value, Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). */ 'currencyCode'?: string; diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts index 3dc69ab..0474b7c 100644 --- a/src/typings/management/models.ts +++ b/src/typings/management/models.ts @@ -109,6 +109,7 @@ export * from './scheduleTerminalActionsResponse'; export * from './settings'; export * from './shippingLocation'; export * from './shippingLocationsResponse'; +export * from './shopperStatement'; export * from './signature'; export * from './sofortInfo'; export * from './store'; @@ -251,6 +252,7 @@ import { ScheduleTerminalActionsResponse } from './scheduleTerminalActionsRespon import { Settings } from './settings'; import { ShippingLocation } from './shippingLocation'; import { ShippingLocationsResponse } from './shippingLocationsResponse'; +import { ShopperStatement } from './shopperStatement'; import { Signature } from './signature'; import { SofortInfo } from './sofortInfo'; import { Store } from './store'; @@ -316,11 +318,13 @@ let enumsMap: {[index: string]: any} = { "InstallAndroidAppDetails.TypeEnum": InstallAndroidAppDetails.TypeEnum, "InstallAndroidCertificateDetails.TypeEnum": InstallAndroidCertificateDetails.TypeEnum, "KlarnaInfo.RegionEnum": KlarnaInfo.RegionEnum, + "PaymentMethod.VerificationStatusEnum": PaymentMethod.VerificationStatusEnum, "PaymentMethodSetupInfo.ShopperInteractionEnum": PaymentMethodSetupInfo.ShopperInteractionEnum, "PaymentMethodSetupInfo.TypeEnum": PaymentMethodSetupInfo.TypeEnum, "PayoutSettings.PriorityEnum": PayoutSettings.PriorityEnum, "PayoutSettings.VerificationStatusEnum": PayoutSettings.VerificationStatusEnum, "ReleaseUpdateDetails.TypeEnum": ReleaseUpdateDetails.TypeEnum, + "ShopperStatement.TypeEnum": ShopperStatement.TypeEnum, "Store.StatusEnum": Store.StatusEnum, "UninstallAndroidAppDetails.TypeEnum": UninstallAndroidAppDetails.TypeEnum, "UninstallAndroidCertificateDetails.TypeEnum": UninstallAndroidCertificateDetails.TypeEnum, @@ -440,6 +444,7 @@ let typeMap: {[index: string]: any} = { "Settings": Settings, "ShippingLocation": ShippingLocation, "ShippingLocationsResponse": ShippingLocationsResponse, + "ShopperStatement": ShopperStatement, "Signature": Signature, "SofortInfo": SofortInfo, "Store": Store, diff --git a/src/typings/management/offlineProcessing.ts b/src/typings/management/offlineProcessing.ts index 9e58aff..9eb466d 100644 --- a/src/typings/management/offlineProcessing.ts +++ b/src/typings/management/offlineProcessing.ts @@ -11,11 +11,11 @@ import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; export class OfflineProcessing { /** - * The (inclusive) limit for accepting chip cards offline, in the processing currency, in minor units + * The maximum offline transaction amount for chip cards, in the processing currency and specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'chipFloorLimit'?: number; /** - * The maximum amount up to which swiped credit cards can be accepted offline, in the specified currency + * The maximum offline transaction amount for swiped cards, in the specified currency. */ 'offlineSwipeLimits'?: Array; diff --git a/src/typings/management/payPalInfo.ts b/src/typings/management/payPalInfo.ts index 8c335d0..fd0001f 100644 --- a/src/typings/management/payPalInfo.ts +++ b/src/typings/management/payPalInfo.ts @@ -14,10 +14,6 @@ export class PayPalInfo { */ 'directCapture'?: boolean; /** - * Must be set to **true** to confirm that the settlement to your bank account is performed directly by PayPal. Default value: **null**. - */ - 'directSettlement': boolean; - /** * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. */ 'payerId': string; @@ -34,11 +30,6 @@ export class PayPalInfo { "baseName": "directCapture", "type": "boolean" }, - { - "name": "directSettlement", - "baseName": "directSettlement", - "type": "boolean" - }, { "name": "payerId", "baseName": "payerId", diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index 5875d37..ea57118 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -17,6 +17,10 @@ import { SofortInfo } from './sofortInfo'; import { SwishInfo } from './swishInfo'; export class PaymentMethod { + /** + * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. + */ + 'allowed'?: boolean; 'applePay'?: ApplePayInfo; 'bcmc'?: BcmcInfo; /** @@ -43,6 +47,10 @@ export class PaymentMethod { 'id': string; 'klarna'?: KlarnaInfo; 'paypal'?: PayPalInfo; + /** + * The sales channel. + */ + 'shopperInteraction'?: string; 'sofort'?: SofortInfo; /** * The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any. @@ -53,10 +61,19 @@ export class PaymentMethod { * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ 'type'?: string; + /** + * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** + */ + 'verificationStatus'?: PaymentMethod.VerificationStatusEnum; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowed", + "baseName": "allowed", + "type": "boolean" + }, { "name": "applePay", "baseName": "applePay", @@ -112,6 +129,11 @@ export class PaymentMethod { "baseName": "paypal", "type": "PayPalInfo" }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "string" + }, { "name": "sofort", "baseName": "sofort", @@ -131,6 +153,11 @@ export class PaymentMethod { "name": "type", "baseName": "type", "type": "string" + }, + { + "name": "verificationStatus", + "baseName": "verificationStatus", + "type": "PaymentMethod.VerificationStatusEnum" } ]; static getAttributeTypeMap() { @@ -138,3 +165,11 @@ export class PaymentMethod { } } +export namespace PaymentMethod { + export enum VerificationStatusEnum { + Valid = 'valid', + Pending = 'pending', + Invalid = 'invalid', + Rejected = 'rejected' + } +} diff --git a/src/typings/management/scheduleTerminalActionsResponse.ts b/src/typings/management/scheduleTerminalActionsResponse.ts index c3a9665..b3d7353 100644 --- a/src/typings/management/scheduleTerminalActionsResponse.ts +++ b/src/typings/management/scheduleTerminalActionsResponse.ts @@ -19,6 +19,9 @@ export class ScheduleTerminalActionsResponse { * Information about the action to take. */ 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; + /** + * A list containing a terminal ID and an action ID for each terminal that the action was scheduled for. + */ 'items'?: Array; /** * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+01:00** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. @@ -29,7 +32,7 @@ export class ScheduleTerminalActionsResponse { */ 'storeId'?: string; /** - * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + * A list of unique IDs of the terminals that the action applies to. */ 'terminalIds'?: Array; /** diff --git a/src/typings/management/shopperStatement.ts b/src/typings/management/shopperStatement.ts new file mode 100644 index 0000000..6a5cb4e --- /dev/null +++ b/src/typings/management/shopperStatement.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v1 + * 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 this class manually. + */ + + +export class ShopperStatement { + /** + * The name you want to be shown on the shopper\'s bank or credit card statement. Maximum length: 22 characters; can\'t be all numbers. + */ + 'doingBusinessAsName': string; + /** + * The type of shopperstatement you want to use: fixed, append or dynamic + */ + 'type'?: ShopperStatement.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "doingBusinessAsName", + "baseName": "doingBusinessAsName", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "ShopperStatement.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return ShopperStatement.attributeTypeMap; + } +} + +export namespace ShopperStatement { + export enum TypeEnum { + Append = 'append', + Dynamic = 'dynamic', + Fixed = 'fixed' + } +} diff --git a/src/typings/management/storeSplitConfiguration.ts b/src/typings/management/storeSplitConfiguration.ts index 016c8b3..233b16e 100644 --- a/src/typings/management/storeSplitConfiguration.ts +++ b/src/typings/management/storeSplitConfiguration.ts @@ -14,7 +14,7 @@ export class StoreSplitConfiguration { */ 'balanceAccountId'?: string; /** - * The UUID of the [split configuration](https://docs.adyen.com/platforms/split-configuration-for-stores) from the Customer Area. + * The UUID of the [split configuration](https://docs.adyen.com/marketplaces-and-platforms/classic/split-configuration-for-stores) from the Customer Area. */ 'splitConfigurationId'?: string; diff --git a/src/typings/management/terminal.ts b/src/typings/management/terminal.ts index 18f03ec..7c81de5 100644 --- a/src/typings/management/terminal.ts +++ b/src/typings/management/terminal.ts @@ -26,15 +26,15 @@ export class Terminal { */ 'city'?: string; /** - * The company account of the terminal. + * The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account. */ 'companyAccount'?: string; /** - * The country code where the terminal is located. + * The country code of the country where the terminal is located. */ 'countryCode'?: string; /** - * The terminal model of the device. + * The model name of the terminal. */ 'deviceModel'?: string; /** @@ -46,11 +46,11 @@ export class Terminal { */ 'ethernetMac'?: string; /** - * The firmware Version of the terminal. + * The software release currently in use on the terminal. */ 'firmwareVersion'?: string; /** - * The ICCID number of the cellular communications card. + * The integrated circuit card identifier (ICCID) of the SIM card in the terminal. */ 'iccid'?: string; /** @@ -58,15 +58,15 @@ export class Terminal { */ 'id'?: string; /** - * The last Activity Date and Time of the terminal. + * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. */ 'lastActivityDateTime'?: Date; /** - * The last Transaction Date and Time of the terminal. + * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. */ 'lastTransactionDateTime'?: Date; /** - * The ethernet link speed of the terminal that was negotiated. + * The Ethernet link negotiation that the terminal uses: - `auto`: Auto-negotiation - `100full`: 100 Mbps full duplex */ 'linkNegotiation'?: string; /** @@ -82,19 +82,19 @@ export class Terminal { */ 'status'?: string; /** - * The Status of store where the terminal is located. + * The status of the store that the terminal is assigned to. */ 'storeStatus'?: string; /** - * The WiFi IP address of the terminal. + * The terminal\'s IP address in your Wi-Fi network. */ 'wifiIp'?: string; /** - * The WiFi MAC address of the terminal. + * The terminal\'s MAC address in your Wi-Fi network. */ 'wifiMac'?: string; /** - * The WIFI SSID of the terminal. + * The SSID of the Wi-Fi network that your terminal is connected to. */ 'wifiSsid'?: string; diff --git a/src/typings/management/terminalActionScheduleDetail.ts b/src/typings/management/terminalActionScheduleDetail.ts index 9001630..3aab8a7 100644 --- a/src/typings/management/terminalActionScheduleDetail.ts +++ b/src/typings/management/terminalActionScheduleDetail.ts @@ -9,7 +9,13 @@ export class TerminalActionScheduleDetail { + /** + * The ID of the action on the specified terminal. + */ 'id'?: string; + /** + * The unique ID of the terminal that the action applies to. + */ 'terminalId'?: string; static discriminator: string | undefined = undefined; diff --git a/src/typings/management/updateCompanyWebhookRequest.ts b/src/typings/management/updateCompanyWebhookRequest.ts index e41ba41..11e74ca 100644 --- a/src/typings/management/updateCompanyWebhookRequest.ts +++ b/src/typings/management/updateCompanyWebhookRequest.ts @@ -56,7 +56,7 @@ export class UpdateCompanyWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: UpdateCompanyWebhookRequest.SslVersionEnum; /** @@ -176,6 +176,7 @@ export namespace UpdateCompanyWebhookRequest { Tlsv1 = 'TLSV1', Tlsv11 = 'TLSV1_1', Tlsv12 = 'TLSV1_2', + Tlsv13 = 'TLSV1_3', Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' } } diff --git a/src/typings/management/updateMerchantWebhookRequest.ts b/src/typings/management/updateMerchantWebhookRequest.ts index 7ddb5d0..3141b7c 100644 --- a/src/typings/management/updateMerchantWebhookRequest.ts +++ b/src/typings/management/updateMerchantWebhookRequest.ts @@ -48,7 +48,7 @@ export class UpdateMerchantWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: UpdateMerchantWebhookRequest.SslVersionEnum; /** @@ -153,6 +153,7 @@ export namespace UpdateMerchantWebhookRequest { Tlsv1 = 'TLSV1', Tlsv11 = 'TLSV1_1', Tlsv12 = 'TLSV1_2', + Tlsv13 = 'TLSV1_3', Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' } } diff --git a/src/typings/management/updatePaymentMethodInfo.ts b/src/typings/management/updatePaymentMethodInfo.ts index fdfeb80..c2f8587 100644 --- a/src/typings/management/updatePaymentMethodInfo.ts +++ b/src/typings/management/updatePaymentMethodInfo.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { ShopperStatement } from './shopperStatement'; export class UpdatePaymentMethodInfo { /** @@ -21,6 +22,7 @@ export class UpdatePaymentMethodInfo { * Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ 'enabled'?: boolean; + 'shopperStatement'?: ShopperStatement; static discriminator: string | undefined = undefined; @@ -39,6 +41,11 @@ export class UpdatePaymentMethodInfo { "name": "enabled", "baseName": "enabled", "type": "boolean" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "ShopperStatement" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/webhook.ts b/src/typings/management/webhook.ts index 2711e6e..c59cdea 100644 --- a/src/typings/management/webhook.ts +++ b/src/typings/management/webhook.ts @@ -78,7 +78,7 @@ export class Webhook { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.3** * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: Webhook.SslVersionEnum; /** @@ -237,6 +237,7 @@ export namespace Webhook { Tlsv1 = 'TLSV1', Tlsv11 = 'TLSV1_1', Tlsv12 = 'TLSV1_2', + Tlsv13 = 'TLSV1_3', Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' } } diff --git a/src/typings/payments/adjustAuthorisationRequest.ts b/src/typings/payments/adjustAuthorisationRequest.ts index 2263ea9..83838f3 100644 --- a/src/typings/payments/adjustAuthorisationRequest.ts +++ b/src/typings/payments/adjustAuthorisationRequest.ts @@ -35,7 +35,7 @@ export class AdjustAuthorisationRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/payments/cancelRequest.ts b/src/typings/payments/cancelRequest.ts index 6c1291b..9c7bc9d 100644 --- a/src/typings/payments/cancelRequest.ts +++ b/src/typings/payments/cancelRequest.ts @@ -33,7 +33,7 @@ export class CancelRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/payments/captureRequest.ts b/src/typings/payments/captureRequest.ts index fe588af..f5a35f3 100644 --- a/src/typings/payments/captureRequest.ts +++ b/src/typings/payments/captureRequest.ts @@ -35,7 +35,7 @@ export class CaptureRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/payments/fundDestination.ts b/src/typings/payments/fundDestination.ts new file mode 100644 index 0000000..d570b57 --- /dev/null +++ b/src/typings/payments/fundDestination.ts @@ -0,0 +1,87 @@ +/* + * The version of the OpenAPI document: v68 + * 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 this class manually. + */ + +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; + +export class FundDestination { + /** + * a map of name/value pairs for passing in additional/industry-specific data + */ + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * the email address of the person + */ + 'shopperEmail'?: string; + 'shopperName'?: Name; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + /** + * the telephone number of the person + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FundDestination.attributeTypeMap; + } +} + diff --git a/src/typings/payments/fundSource.ts b/src/typings/payments/fundSource.ts new file mode 100644 index 0000000..0612f0b --- /dev/null +++ b/src/typings/payments/fundSource.ts @@ -0,0 +1,69 @@ +/* + * The version of the OpenAPI document: v68 + * 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 this class manually. + */ + +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; + +export class FundSource { + /** + * A map of name-value pairs for passing additional or industry-specific data. + */ + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * Email address of the person. + */ + 'shopperEmail'?: string; + 'shopperName'?: Name; + /** + * Phone number of the person + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FundSource.attributeTypeMap; + } +} + diff --git a/src/typings/payments/models.ts b/src/typings/payments/models.ts index 42646cf..62a14fc 100644 --- a/src/typings/payments/models.ts +++ b/src/typings/payments/models.ts @@ -45,6 +45,8 @@ export * from './externalPlatform'; export * from './forexQuote'; export * from './fraudCheckResult'; export * from './fraudResult'; +export * from './fundDestination'; +export * from './fundSource'; export * from './installments'; export * from './mandate'; export * from './merchantDevice'; @@ -120,6 +122,8 @@ import { ExternalPlatform } from './externalPlatform'; import { ForexQuote } from './forexQuote'; import { FraudCheckResult } from './fraudCheckResult'; import { FraudResult } from './fraudResult'; +import { FundDestination } from './fundDestination'; +import { FundSource } from './fundSource'; import { Installments } from './installments'; import { Mandate } from './mandate'; import { MerchantDevice } from './merchantDevice'; @@ -206,7 +210,6 @@ let enumsMap: {[index: string]: any} = { "Recurring.ContractEnum": Recurring.ContractEnum, "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, - "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, "Split.TypeEnum": Split.TypeEnum, "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, @@ -263,6 +266,8 @@ let typeMap: {[index: string]: any} = { "ForexQuote": ForexQuote, "FraudCheckResult": FraudCheckResult, "FraudResult": FraudResult, + "FundDestination": FundDestination, + "FundSource": FundSource, "Installments": Installments, "Mandate": Mandate, "MerchantDevice": MerchantDevice, diff --git a/src/typings/payments/paymentRequest.ts b/src/typings/payments/paymentRequest.ts index bc695dd..d1b9695 100644 --- a/src/typings/payments/paymentRequest.ts +++ b/src/typings/payments/paymentRequest.ts @@ -15,6 +15,8 @@ import { BankAccount } from './bankAccount'; import { BrowserInfo } from './browserInfo'; import { Card } from './card'; import { ForexQuote } from './forexQuote'; +import { FundDestination } from './fundDestination'; +import { FundSource } from './fundSource'; import { Installments } from './installments'; import { Mandate } from './mandate'; import { MerchantRiskIndicator } from './merchantRiskIndicator'; @@ -63,6 +65,8 @@ export class PaymentRequest { * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; + 'fundDestination'?: FundDestination; + 'fundSource'?: FundSource; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ @@ -146,11 +150,11 @@ export class PaymentRequest { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** @@ -259,6 +263,16 @@ export class PaymentRequest { "baseName": "fraudOffset", "type": "number" }, + { + "name": "fundDestination", + "baseName": "fundDestination", + "type": "FundDestination" + }, + { + "name": "fundSource", + "baseName": "fundSource", + "type": "FundSource" + }, { "name": "fundingSource", "baseName": "fundingSource", diff --git a/src/typings/payments/paymentRequest3d.ts b/src/typings/payments/paymentRequest3d.ts index 63cfc2e..9325b6a 100644 --- a/src/typings/payments/paymentRequest3d.ts +++ b/src/typings/payments/paymentRequest3d.ts @@ -134,11 +134,11 @@ export class PaymentRequest3d { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** diff --git a/src/typings/payments/paymentRequest3ds2.ts b/src/typings/payments/paymentRequest3ds2.ts index af81838..606b7eb 100644 --- a/src/typings/payments/paymentRequest3ds2.ts +++ b/src/typings/payments/paymentRequest3ds2.ts @@ -127,11 +127,11 @@ export class PaymentRequest3ds2 { */ 'socialSecurityNumber'?: string; /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). */ 'splits'?: Array; /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; /** diff --git a/src/typings/payments/paymentResult.ts b/src/typings/payments/paymentResult.ts index a2e3f1a..bedc66b 100644 --- a/src/typings/payments/paymentResult.ts +++ b/src/typings/payments/paymentResult.ts @@ -117,6 +117,7 @@ export class PaymentResult { export namespace PaymentResult { export enum ResultCodeEnum { AuthenticationFinished = 'AuthenticationFinished', + AuthenticationNotRequired = 'AuthenticationNotRequired', Authorised = 'Authorised', Cancelled = 'Cancelled', ChallengeShopper = 'ChallengeShopper', diff --git a/src/typings/payments/refundRequest.ts b/src/typings/payments/refundRequest.ts index 5b0c673..f13a576 100644 --- a/src/typings/payments/refundRequest.ts +++ b/src/typings/payments/refundRequest.ts @@ -35,7 +35,7 @@ export class RefundRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/payments/responseAdditionalDataCommon.ts b/src/typings/payments/responseAdditionalDataCommon.ts index 5e1e876..c5bdd8f 100644 --- a/src/typings/payments/responseAdditionalDataCommon.ts +++ b/src/typings/payments/responseAdditionalDataCommon.ts @@ -130,9 +130,9 @@ export class ResponseAdditionalDataCommon { */ 'mcBankNetReferenceNumber'?: string; /** - * A code and message that issuers send to provide more details about the payment. This field is especially useful when implementing a retry logic for declined payments. Possible values: * **01: New account information available** * **02: Cannot approve at this time, try again later** * **03: Do not try again** * **04: Token requirements not fulfilled for this token type** * **21: Payment Cancellation** (only for Mastercard) + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ - 'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum; + 'merchantAdviceCode'?: string; /** * The reference provided for the transaction. */ @@ -402,7 +402,7 @@ export class ResponseAdditionalDataCommon { { "name": "merchantAdviceCode", "baseName": "merchantAdviceCode", - "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + "type": "string" }, { "name": "merchantReference", @@ -555,13 +555,6 @@ export namespace ResponseAdditionalDataCommon { Green = 'GREEN', Fraud = 'FRAUD' } - export enum MerchantAdviceCodeEnum { - _01NewAccountInformationAvailable = '01: New account information available', - _02CannotApproveAtThisTimeTryAgainLater = '02: Cannot approve at this time, try again later', - _03DoNotTryAgain = '03: Do not try again', - _04TokenRequirementsNotFulfilledForThisTokenType = '04: Token requirements not fulfilled for this token type', - _21PaymentCancellation = '21: Payment Cancellation' - } export enum RecurringProcessingModelEnum { CardOnFile = 'CardOnFile', Subscription = 'Subscription', diff --git a/src/typings/payments/serviceError.ts b/src/typings/payments/serviceError.ts index 551936c..c89df83 100644 --- a/src/typings/payments/serviceError.ts +++ b/src/typings/payments/serviceError.ts @@ -10,7 +10,7 @@ export class ServiceError { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; /** diff --git a/src/typings/payments/technicalCancelRequest.ts b/src/typings/payments/technicalCancelRequest.ts index 4b38f67..cb60a78 100644 --- a/src/typings/payments/technicalCancelRequest.ts +++ b/src/typings/payments/technicalCancelRequest.ts @@ -31,7 +31,7 @@ export class TechnicalCancelRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/payments/voidPendingRefundRequest.ts b/src/typings/payments/voidPendingRefundRequest.ts index 3877452..383a586 100644 --- a/src/typings/payments/voidPendingRefundRequest.ts +++ b/src/typings/payments/voidPendingRefundRequest.ts @@ -35,7 +35,7 @@ export class VoidPendingRefundRequest { */ 'reference'?: string; /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). */ 'splits'?: Array; /** diff --git a/src/typings/payouts/models.ts b/src/typings/payouts/models.ts index 27cfea0..4bc8932 100644 --- a/src/typings/payouts/models.ts +++ b/src/typings/payouts/models.ts @@ -85,7 +85,6 @@ let enumsMap: {[index: string]: any} = { "Recurring.ContractEnum": Recurring.ContractEnum, "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, - "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, "StoreDetailAndSubmitRequest.EntityTypeEnum": StoreDetailAndSubmitRequest.EntityTypeEnum, "StoreDetailRequest.EntityTypeEnum": StoreDetailRequest.EntityTypeEnum, diff --git a/src/typings/payouts/payoutResponse.ts b/src/typings/payouts/payoutResponse.ts index 38f3eb8..0e228a9 100644 --- a/src/typings/payouts/payoutResponse.ts +++ b/src/typings/payouts/payoutResponse.ts @@ -117,6 +117,7 @@ export class PayoutResponse { export namespace PayoutResponse { export enum ResultCodeEnum { AuthenticationFinished = 'AuthenticationFinished', + AuthenticationNotRequired = 'AuthenticationNotRequired', Authorised = 'Authorised', Cancelled = 'Cancelled', ChallengeShopper = 'ChallengeShopper', diff --git a/src/typings/payouts/responseAdditionalDataCommon.ts b/src/typings/payouts/responseAdditionalDataCommon.ts index 5e1e876..c5bdd8f 100644 --- a/src/typings/payouts/responseAdditionalDataCommon.ts +++ b/src/typings/payouts/responseAdditionalDataCommon.ts @@ -130,9 +130,9 @@ export class ResponseAdditionalDataCommon { */ 'mcBankNetReferenceNumber'?: string; /** - * A code and message that issuers send to provide more details about the payment. This field is especially useful when implementing a retry logic for declined payments. Possible values: * **01: New account information available** * **02: Cannot approve at this time, try again later** * **03: Do not try again** * **04: Token requirements not fulfilled for this token type** * **21: Payment Cancellation** (only for Mastercard) + * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). */ - 'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum; + 'merchantAdviceCode'?: string; /** * The reference provided for the transaction. */ @@ -402,7 +402,7 @@ export class ResponseAdditionalDataCommon { { "name": "merchantAdviceCode", "baseName": "merchantAdviceCode", - "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + "type": "string" }, { "name": "merchantReference", @@ -555,13 +555,6 @@ export namespace ResponseAdditionalDataCommon { Green = 'GREEN', Fraud = 'FRAUD' } - export enum MerchantAdviceCodeEnum { - _01NewAccountInformationAvailable = '01: New account information available', - _02CannotApproveAtThisTimeTryAgainLater = '02: Cannot approve at this time, try again later', - _03DoNotTryAgain = '03: Do not try again', - _04TokenRequirementsNotFulfilledForThisTokenType = '04: Token requirements not fulfilled for this token type', - _21PaymentCancellation = '21: Payment Cancellation' - } export enum RecurringProcessingModelEnum { CardOnFile = 'CardOnFile', Subscription = 'Subscription', diff --git a/src/typings/payouts/serviceError.ts b/src/typings/payouts/serviceError.ts index 551936c..c89df83 100644 --- a/src/typings/payouts/serviceError.ts +++ b/src/typings/payouts/serviceError.ts @@ -10,7 +10,7 @@ export class ServiceError { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; /** diff --git a/src/typings/platformsAccount/accountEvent.ts b/src/typings/platformsAccount/accountEvent.ts index a914017..857f05e 100644 --- a/src/typings/platformsAccount/accountEvent.ts +++ b/src/typings/platformsAccount/accountEvent.ts @@ -10,7 +10,7 @@ export class AccountEvent { /** - * The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks). + * The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process). */ 'event': AccountEvent.EventEnum; /** diff --git a/src/typings/platformsAccount/accountHolderDetails.ts b/src/typings/platformsAccount/accountHolderDetails.ts index 4193d0c..ca13935 100644 --- a/src/typings/platformsAccount/accountHolderDetails.ts +++ b/src/typings/platformsAccount/accountHolderDetails.ts @@ -18,7 +18,7 @@ import { ViasAddress } from './viasAddress'; export class AccountHolderDetails { 'address'?: ViasAddress; /** - * Array of bank accounts associated with the account holder. For details about the required `BankAccountDetail` fields, refer to [Bank account check](https://docs.adyen.com/platforms/verification-checks/bank-account-check). + * Array of bank accounts associated with the account holder. For details about the required `bankAccountDetail` fields, see [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information). */ 'bankAccountDetails'?: Array; /** @@ -40,7 +40,7 @@ export class AccountHolderDetails { */ 'lastReviewDate'?: string; /** - * An array containing information about the account holder\'s [legal arrangements](https://docs.adyen.com/platforms/verification-checks/legal-arrangements). + * An array containing information about the account holder\'s [legal arrangements](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/legal-arrangements). */ 'legalArrangements'?: Array; /** @@ -52,12 +52,12 @@ export class AccountHolderDetails { */ 'metadata'?: { [key: string]: string; }; /** - * Array of tokenized card details associated with the account holder. For details about how you can use the tokens to pay out, refer to [Pay out to cards](https://docs.adyen.com/platforms/payout-to-cards). + * Array of tokenized card details associated with the account holder. For details about how you can use the tokens to pay out, refer to [Pay out to cards](https://docs.adyen.com/marketplaces-and-platforms/classic/payout-to-cards). */ 'payoutMethods'?: Array; 'principalBusinessAddress'?: ViasAddress; /** - * Array of stores associated with the account holder. Required when onboarding account holders that have an Adyen [point of sale](https://docs.adyen.com/platforms/platforms-for-pos). + * Array of stores associated with the account holder. Required when onboarding account holders that have an Adyen [point of sale](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-pos). */ 'storeDetails'?: Array; /** diff --git a/src/typings/platformsAccount/bankAccountDetail.ts b/src/typings/platformsAccount/bankAccountDetail.ts index f940e97..45b0981 100644 --- a/src/typings/platformsAccount/bankAccountDetail.ts +++ b/src/typings/platformsAccount/bankAccountDetail.ts @@ -10,11 +10,11 @@ export class BankAccountDetail { /** - * The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The bank account number (without separators). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'accountNumber'?: string; /** - * The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'accountType'?: string; /** @@ -30,47 +30,47 @@ export class BankAccountDetail { */ 'bankAccountUUID'?: string; /** - * The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The bank identifier code. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankBicSwift'?: string; /** - * The city in which the bank branch is located. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The city in which the bank branch is located. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankCity'?: string; /** - * The bank code of the banking institution with which the bank account is registered. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The bank code of the banking institution with which the bank account is registered. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankCode'?: string; /** - * The name of the banking institution with which the bank account is held. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The name of the banking institution with which the bank account is held. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankName'?: string; /** - * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'branchCode'?: string; /** - * The check code of the bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The check code of the bank account. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'checkCode'?: string; /** - * The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'countryCode'?: string; /** - * The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). */ 'currencyCode'?: string; /** - * The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'iban'?: string; /** - * The city of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The city of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerCity'?: string; /** - * The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerCountryCode'?: string; /** @@ -78,27 +78,27 @@ export class BankAccountDetail { */ 'ownerDateOfBirth'?: string; /** - * The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The house name or number of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerHouseNumberOrName'?: string; /** - * The name of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The name of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerName'?: string; /** - * The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerNationality'?: string; /** - * The postal code of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The postal code of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerPostalCode'?: string; /** - * The state of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The state of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerState'?: string; /** - * The street name of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The street name of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerStreet'?: string; /** @@ -106,11 +106,11 @@ export class BankAccountDetail { */ 'primaryAccount'?: boolean; /** - * The tax ID number. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The tax ID number. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'taxId'?: string; /** - * The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'urlForVerification'?: string; diff --git a/src/typings/platformsAccount/businessDetails.ts b/src/typings/platformsAccount/businessDetails.ts index 3a622a1..ec26017 100644 --- a/src/typings/platformsAccount/businessDetails.ts +++ b/src/typings/platformsAccount/businessDetails.ts @@ -29,7 +29,7 @@ export class BusinessDetails { */ 'registrationNumber'?: string; /** - * Array containing information about individuals associated with the account holder either through ownership or control. For details about how you can identify them, refer to [Identity check](https://docs.adyen.com/platforms/verification-checks/identity-check). + * Array containing information about individuals associated with the account holder either through ownership or control. For details about how you can identify them, refer to [our verification guide](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process#identify-ubos). */ 'shareholders'?: Array; /** diff --git a/src/typings/platformsAccount/createAccountHolderRequest.ts b/src/typings/platformsAccount/createAccountHolderRequest.ts index d2a5beb..90f4a2c 100644 --- a/src/typings/platformsAccount/createAccountHolderRequest.ts +++ b/src/typings/platformsAccount/createAccountHolderRequest.ts @@ -32,7 +32,7 @@ export class CreateAccountHolderRequest { */ 'primaryCurrency'?: string; /** - * The starting [processing tier](https://docs.adyen.com/platforms/onboarding-and-verification/precheck-kyc-information) for the prospective account holder. + * The starting [processing tier](https://docs.adyen.com/marketplaces-and-platforms/classic/onboarding-and-verification/precheck-kyc-information) for the prospective account holder. */ 'processingTier'?: number; /** diff --git a/src/typings/platformsAccount/createAccountRequest.ts b/src/typings/platformsAccount/createAccountRequest.ts index a221f9b..b80d69b 100644 --- a/src/typings/platformsAccount/createAccountRequest.ts +++ b/src/typings/platformsAccount/createAccountRequest.ts @@ -94,29 +94,15 @@ export class CreateAccountRequest { export namespace CreateAccountRequest { export enum PayoutScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', - BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', - BiDailyAu = 'BI_DAILY_AU', - BiDailyEu = 'BI_DAILY_EU', - BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', - Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', DailyEu = 'DAILY_EU', DailySg = 'DAILY_SG', DailyUs = 'DAILY_US', - Default = 'DEFAULT', - Every6HoursFromMidnight = 'EVERY_6_HOURS_FROM_MIDNIGHT', Hold = 'HOLD', Monthly = 'MONTHLY', - MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', - WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', - WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', - WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', - WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', - WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', - WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', - Yearly = 'YEARLY' + WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT' } export enum PayoutSpeedEnum { Instant = 'INSTANT', diff --git a/src/typings/platformsAccount/deleteLegalArrangementRequest.ts b/src/typings/platformsAccount/deleteLegalArrangementRequest.ts new file mode 100644 index 0000000..a938086 --- /dev/null +++ b/src/typings/platformsAccount/deleteLegalArrangementRequest.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v6 + * 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 this class manually. + */ + +import { LegalArrangementRequest } from './legalArrangementRequest'; + +export class DeleteLegalArrangementRequest { + /** + * The code of the account holder. + */ + 'accountHolderCode': string; + /** + * List of legal arrangements. + */ + 'legalArrangements': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "legalArrangements", + "baseName": "legalArrangements", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeleteLegalArrangementRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/documentDetail.ts b/src/typings/platformsAccount/documentDetail.ts index ad21396..109ee82 100644 --- a/src/typings/platformsAccount/documentDetail.ts +++ b/src/typings/platformsAccount/documentDetail.ts @@ -14,7 +14,7 @@ export class DocumentDetail { */ 'accountHolderCode': string; /** - * The Adyen-generated [`bankAccountUUID`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-bankAccountDetails-bankAccountUUID) to which the document must be linked. Refer to [Bank account check](https://docs.adyen.com/platforms/verification-checks/bank-account-check#uploading-a-bank-statement) for details on when a document should be submitted. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. + * The Adyen-generated [`bankAccountUUID`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-bankAccountDetails-bankAccountUUID) to which the document must be linked. Refer to [Bank account check](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/bank-account-check#uploading-a-bank-statement) for details on when a document should be submitted. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. */ 'bankAccountUUID'?: string; /** @@ -22,7 +22,7 @@ export class DocumentDetail { */ 'description'?: string; /** - * The type of the document. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder\'s legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. + * The type of the document. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder\'s legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. */ 'documentType': DocumentDetail.DocumentTypeEnum; /** @@ -38,7 +38,7 @@ export class DocumentDetail { */ 'legalArrangementEntityCode'?: string; /** - * The Adyen-generated [`shareholderCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-shareholders-shareholderCode) to which the document must be linked. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when a document should be submitted. >Required if the account holder has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. + * The Adyen-generated [`shareholderCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-shareholders-shareholderCode) to which the document must be linked. Refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks) for details on when a document should be submitted. >Required if the account holder has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. */ 'shareholderCode'?: string; /** diff --git a/src/typings/platformsAccount/fieldType.ts b/src/typings/platformsAccount/fieldType.ts index 487bf1b..dc8b4c9 100644 --- a/src/typings/platformsAccount/fieldType.ts +++ b/src/typings/platformsAccount/fieldType.ts @@ -94,6 +94,7 @@ export namespace FieldType { DoingBusinessAs = 'doingBusinessAs', DrivingLicence = 'drivingLicence', DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicenceFront = 'drivingLicenceFront', DrivingLicense = 'drivingLicense', Email = 'email', FirstName = 'firstName', @@ -128,8 +129,10 @@ export namespace FieldType { LegalBusinessName = 'legalBusinessName', LegalEntity = 'legalEntity', LegalEntityType = 'legalEntityType', + Logo = 'logo', MerchantAccount = 'merchantAccount', MerchantCategoryCode = 'merchantCategoryCode', + MerchantHouseNumber = 'merchantHouseNumber', MerchantReference = 'merchantReference', MicroDeposit = 'microDeposit', Name = 'name', diff --git a/src/typings/platformsAccount/kYCCheckSummary.ts b/src/typings/platformsAccount/kYCCheckSummary.ts index 9fed6f5..d927ab1 100644 --- a/src/typings/platformsAccount/kYCCheckSummary.ts +++ b/src/typings/platformsAccount/kYCCheckSummary.ts @@ -10,7 +10,7 @@ export class KYCCheckSummary { /** - * The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/platforms/verification-codes). + * The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/verification-codes). */ 'kycCheckCode'?: number; /** diff --git a/src/typings/platformsAccount/legalArrangementDetail.ts b/src/typings/platformsAccount/legalArrangementDetail.ts index e619788..e97ea4c 100644 --- a/src/typings/platformsAccount/legalArrangementDetail.ts +++ b/src/typings/platformsAccount/legalArrangementDetail.ts @@ -13,7 +13,7 @@ import { ViasAddress } from './viasAddress'; export class LegalArrangementDetail { 'address': ViasAddress; /** - * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement. Required when updating an existing legal arrangement entry in an `/updateAccountHolder` request. + * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement. Use only when updating an account holder. If you include this field when creating an account holder, the request will fail. */ 'legalArrangementCode'?: string; /** @@ -41,7 +41,7 @@ export class LegalArrangementDetail { */ 'taxNumber'?: string; /** - * The [type of legal arrangement](https://docs.adyen.com/platforms/verification-checks/legal-arrangements#types-of-legal-arrangements). Possible values: - **Association** - **Partnership** - **SoleProprietorship** - **Trust** + * The [type of legal arrangement](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/legal-arrangements#types-of-legal-arrangements). Possible values: - **Association** - **Partnership** - **SoleProprietorship** - **Trust** */ 'type': LegalArrangementDetail.TypeEnum; diff --git a/src/typings/platformsAccount/legalArrangementEntityDetail.ts b/src/typings/platformsAccount/legalArrangementEntityDetail.ts index d9e8052..31371f9 100644 --- a/src/typings/platformsAccount/legalArrangementEntityDetail.ts +++ b/src/typings/platformsAccount/legalArrangementEntityDetail.ts @@ -25,7 +25,7 @@ export class LegalArrangementEntityDetail { 'fullPhoneNumber'?: string; 'individualDetails'?: IndividualDetails; /** - * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Required when updating an existing legal arrangement entity entry in an `/updateAccountHolder` request. + * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Use only when updating an account holder. If you include this field when creating an account holder, the request will fail. */ 'legalArrangementEntityCode'?: string; /** diff --git a/src/typings/platformsAccount/legalArrangementRequest.ts b/src/typings/platformsAccount/legalArrangementRequest.ts new file mode 100644 index 0000000..45d080a --- /dev/null +++ b/src/typings/platformsAccount/legalArrangementRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * 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 this class manually. + */ + + +export class LegalArrangementRequest { + /** + * The code of the legal arrangement to be deleted. If you also send `legalArrangementEntityCodes`, only the entities listed will be deleted. + */ + 'legalArrangementCode': string; + /** + * List of legal arrangement entities to be deleted. + */ + 'legalArrangementEntityCodes'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "legalArrangementCode", + "baseName": "legalArrangementCode", + "type": "string" + }, + { + "name": "legalArrangementEntityCodes", + "baseName": "legalArrangementEntityCodes", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return LegalArrangementRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/models.ts b/src/typings/platformsAccount/models.ts index 9a20eab..d347da0 100644 --- a/src/typings/platformsAccount/models.ts +++ b/src/typings/platformsAccount/models.ts @@ -27,6 +27,7 @@ export * from './createAccountHolderResponse'; export * from './createAccountRequest'; export * from './createAccountResponse'; export * from './deleteBankAccountRequest'; +export * from './deleteLegalArrangementRequest'; export * from './deletePayoutMethodRequest'; export * from './deleteShareholderRequest'; export * from './deleteSignatoriesRequest'; @@ -54,6 +55,7 @@ export * from './kYCUltimateParentCompanyCheckResult'; export * from './kYCVerificationResult'; export * from './legalArrangementDetail'; export * from './legalArrangementEntityDetail'; +export * from './legalArrangementRequest'; export * from './payoutMethod'; export * from './payoutScheduleResponse'; export * from './performVerificationRequest'; @@ -100,6 +102,7 @@ import { CreateAccountHolderResponse } from './createAccountHolderResponse'; import { CreateAccountRequest } from './createAccountRequest'; import { CreateAccountResponse } from './createAccountResponse'; import { DeleteBankAccountRequest } from './deleteBankAccountRequest'; +import { DeleteLegalArrangementRequest } from './deleteLegalArrangementRequest'; import { DeletePayoutMethodRequest } from './deletePayoutMethodRequest'; import { DeleteShareholderRequest } from './deleteShareholderRequest'; import { DeleteSignatoriesRequest } from './deleteSignatoriesRequest'; @@ -127,6 +130,7 @@ import { KYCUltimateParentCompanyCheckResult } from './kYCUltimateParentCompanyC import { KYCVerificationResult } from './kYCVerificationResult'; import { LegalArrangementDetail } from './legalArrangementDetail'; import { LegalArrangementEntityDetail } from './legalArrangementEntityDetail'; +import { LegalArrangementRequest } from './legalArrangementRequest'; import { PayoutMethod } from './payoutMethod'; import { PayoutScheduleResponse } from './payoutScheduleResponse'; import { PerformVerificationRequest } from './performVerificationRequest'; @@ -222,6 +226,7 @@ let typeMap: {[index: string]: any} = { "CreateAccountRequest": CreateAccountRequest, "CreateAccountResponse": CreateAccountResponse, "DeleteBankAccountRequest": DeleteBankAccountRequest, + "DeleteLegalArrangementRequest": DeleteLegalArrangementRequest, "DeletePayoutMethodRequest": DeletePayoutMethodRequest, "DeleteShareholderRequest": DeleteShareholderRequest, "DeleteSignatoriesRequest": DeleteSignatoriesRequest, @@ -249,6 +254,7 @@ let typeMap: {[index: string]: any} = { "KYCVerificationResult": KYCVerificationResult, "LegalArrangementDetail": LegalArrangementDetail, "LegalArrangementEntityDetail": LegalArrangementEntityDetail, + "LegalArrangementRequest": LegalArrangementRequest, "PayoutMethod": PayoutMethod, "PayoutScheduleResponse": PayoutScheduleResponse, "PerformVerificationRequest": PerformVerificationRequest, diff --git a/src/typings/platformsAccount/payoutMethod.ts b/src/typings/platformsAccount/payoutMethod.ts index 84daa65..074cb6c 100644 --- a/src/typings/platformsAccount/payoutMethod.ts +++ b/src/typings/platformsAccount/payoutMethod.ts @@ -10,7 +10,7 @@ export class PayoutMethod { /** - * The [`merchantAccount`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_merchantAccount) you used in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + * The [`merchantAccount`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_merchantAccount) you used in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store). */ 'merchantAccount': string; /** @@ -22,11 +22,11 @@ export class PayoutMethod { */ 'payoutMethodReference'?: string; /** - * The [`recurringDetailReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-recurring-recurringDetailReference) returned in the `/payments` response when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + * The [`recurringDetailReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-recurring-recurringDetailReference) returned in the `/payments` response when you [saved the account holder\'s card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store). */ 'recurringDetailReference': string; /** - * The [`shopperReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_shopperReference) you sent in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + * The [`shopperReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_shopperReference) you sent in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/marketplaces-and-platforms/classic/payouts/manual-payout/payout-to-cards#check-and-store). */ 'shopperReference': string; diff --git a/src/typings/platformsAccount/payoutScheduleResponse.ts b/src/typings/platformsAccount/payoutScheduleResponse.ts index 350ad64..ec9d2af 100644 --- a/src/typings/platformsAccount/payoutScheduleResponse.ts +++ b/src/typings/platformsAccount/payoutScheduleResponse.ts @@ -14,7 +14,7 @@ export class PayoutScheduleResponse { */ 'nextScheduledPayout'?: Date; /** - * The payout schedule of the account. >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. + * The payout schedule of the account. Permitted values: `DEFAULT`, `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`. */ 'schedule': PayoutScheduleResponse.ScheduleEnum; @@ -40,28 +40,14 @@ export class PayoutScheduleResponse { export namespace PayoutScheduleResponse { export enum ScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', - BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', - BiDailyAu = 'BI_DAILY_AU', - BiDailyEu = 'BI_DAILY_EU', - BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', - Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', DailyEu = 'DAILY_EU', DailySg = 'DAILY_SG', DailyUs = 'DAILY_US', - Default = 'DEFAULT', - Every6HoursFromMidnight = 'EVERY_6_HOURS_FROM_MIDNIGHT', Hold = 'HOLD', Monthly = 'MONTHLY', - MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', - WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', - WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', - WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', - WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', - WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', - WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', - Yearly = 'YEARLY' + WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT' } } diff --git a/src/typings/platformsAccount/shareholderContact.ts b/src/typings/platformsAccount/shareholderContact.ts index db07a05..1e1452f 100644 --- a/src/typings/platformsAccount/shareholderContact.ts +++ b/src/typings/platformsAccount/shareholderContact.ts @@ -30,7 +30,7 @@ export class ShareholderContact { 'personalData'?: ViasPersonalData; 'phoneNumber'?: ViasPhoneNumber; /** - * The unique identifier (UUID) of the shareholder entry. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** + * The unique identifier (UUID) of the shareholder entry. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of Account Holder will fail with a validation Error..** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** */ 'shareholderCode'?: string; /** diff --git a/src/typings/platformsAccount/storeDetail.ts b/src/typings/platformsAccount/storeDetail.ts index 9c6e9c9..43dda0b 100644 --- a/src/typings/platformsAccount/storeDetail.ts +++ b/src/typings/platformsAccount/storeDetail.ts @@ -17,6 +17,10 @@ export class StoreDetail { */ 'fullPhoneNumber'?: string; /** + * Store logo for payment method setup. + */ + 'logo'?: string; + /** * The merchant account to which the store belongs. */ 'merchantAccount': string; @@ -24,6 +28,10 @@ export class StoreDetail { * The merchant category code (MCC) that classifies the business of the account holder. */ 'merchantCategoryCode': string; + /** + * Merchant house number for payment method setup. + */ + 'merchantHouseNumber'?: string; 'phoneNumber'?: ViasPhoneNumber; /** * The sales channel. Possible values: **Ecommerce**, **POS**. @@ -71,6 +79,11 @@ export class StoreDetail { "baseName": "fullPhoneNumber", "type": "string" }, + { + "name": "logo", + "baseName": "logo", + "type": "string" + }, { "name": "merchantAccount", "baseName": "merchantAccount", @@ -81,6 +94,11 @@ export class StoreDetail { "baseName": "merchantCategoryCode", "type": "string" }, + { + "name": "merchantHouseNumber", + "baseName": "merchantHouseNumber", + "type": "string" + }, { "name": "phoneNumber", "baseName": "phoneNumber", diff --git a/src/typings/platformsAccount/updatePayoutScheduleRequest.ts b/src/typings/platformsAccount/updatePayoutScheduleRequest.ts index adbb1a8..1c564d7 100644 --- a/src/typings/platformsAccount/updatePayoutScheduleRequest.ts +++ b/src/typings/platformsAccount/updatePayoutScheduleRequest.ts @@ -54,28 +54,14 @@ export namespace UpdatePayoutScheduleRequest { } export enum ScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', - BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', - BiDailyAu = 'BI_DAILY_AU', - BiDailyEu = 'BI_DAILY_EU', - BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', - Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', DailyEu = 'DAILY_EU', DailySg = 'DAILY_SG', DailyUs = 'DAILY_US', - Default = 'DEFAULT', - Every6HoursFromMidnight = 'EVERY_6_HOURS_FROM_MIDNIGHT', Hold = 'HOLD', Monthly = 'MONTHLY', - MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', - WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', - WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', - WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', - WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', - WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', - WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', - Yearly = 'YEARLY' + WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT' } } diff --git a/src/typings/platformsAccount/uploadDocumentRequest.ts b/src/typings/platformsAccount/uploadDocumentRequest.ts index 61f5bb0..759b5d1 100644 --- a/src/typings/platformsAccount/uploadDocumentRequest.ts +++ b/src/typings/platformsAccount/uploadDocumentRequest.ts @@ -11,7 +11,7 @@ import { DocumentDetail } from './documentDetail'; export class UploadDocumentRequest { /** - * The content of the document, in Base64-encoded string format. To learn about document requirements, refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks). + * The content of the document, in Base64-encoded string format. To learn about document requirements, refer to [Verification checks](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks). */ 'documentContent': string; 'documentDetail': DocumentDetail; diff --git a/src/typings/platformsFund/accountHolderTransactionListRequest.ts b/src/typings/platformsFund/accountHolderTransactionListRequest.ts index e3fef14..7b06f44 100644 --- a/src/typings/platformsFund/accountHolderTransactionListRequest.ts +++ b/src/typings/platformsFund/accountHolderTransactionListRequest.ts @@ -50,6 +50,8 @@ export class AccountHolderTransactionListRequest { export namespace AccountHolderTransactionListRequest { export enum TransactionStatusesEnum { BalanceNotPaidOutTransfer = 'BalanceNotPaidOutTransfer', + BalancePlatformSweep = 'BalancePlatformSweep', + BalancePlatfromSweepReturned = 'BalancePlatfromSweepReturned', Chargeback = 'Chargeback', ChargebackCorrection = 'ChargebackCorrection', ChargebackCorrectionReceived = 'ChargebackCorrectionReceived', diff --git a/src/typings/platformsFund/bankAccountDetail.ts b/src/typings/platformsFund/bankAccountDetail.ts index f940e97..45b0981 100644 --- a/src/typings/platformsFund/bankAccountDetail.ts +++ b/src/typings/platformsFund/bankAccountDetail.ts @@ -10,11 +10,11 @@ export class BankAccountDetail { /** - * The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The bank account number (without separators). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'accountNumber'?: string; /** - * The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'accountType'?: string; /** @@ -30,47 +30,47 @@ export class BankAccountDetail { */ 'bankAccountUUID'?: string; /** - * The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The bank identifier code. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankBicSwift'?: string; /** - * The city in which the bank branch is located. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The city in which the bank branch is located. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankCity'?: string; /** - * The bank code of the banking institution with which the bank account is registered. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The bank code of the banking institution with which the bank account is registered. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankCode'?: string; /** - * The name of the banking institution with which the bank account is held. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The name of the banking institution with which the bank account is held. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'bankName'?: string; /** - * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'branchCode'?: string; /** - * The check code of the bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The check code of the bank account. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'checkCode'?: string; /** - * The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'countryCode'?: string; /** - * The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). */ 'currencyCode'?: string; /** - * The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'iban'?: string; /** - * The city of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The city of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerCity'?: string; /** - * The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerCountryCode'?: string; /** @@ -78,27 +78,27 @@ export class BankAccountDetail { */ 'ownerDateOfBirth'?: string; /** - * The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The house name or number of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerHouseNumberOrName'?: string; /** - * The name of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The name of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerName'?: string; /** - * The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerNationality'?: string; /** - * The postal code of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The postal code of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerPostalCode'?: string; /** - * The state of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The state of residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerState'?: string; /** - * The street name of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The street name of the residence of the bank account owner. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'ownerStreet'?: string; /** @@ -106,11 +106,11 @@ export class BankAccountDetail { */ 'primaryAccount'?: boolean; /** - * The tax ID number. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The tax ID number. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'taxId'?: string; /** - * The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + * The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to [Required information](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-process/required-information) for details on field requirements. */ 'urlForVerification'?: string; diff --git a/src/typings/platformsFund/fieldType.ts b/src/typings/platformsFund/fieldType.ts index 487bf1b..dc8b4c9 100644 --- a/src/typings/platformsFund/fieldType.ts +++ b/src/typings/platformsFund/fieldType.ts @@ -94,6 +94,7 @@ export namespace FieldType { DoingBusinessAs = 'doingBusinessAs', DrivingLicence = 'drivingLicence', DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicenceFront = 'drivingLicenceFront', DrivingLicense = 'drivingLicense', Email = 'email', FirstName = 'firstName', @@ -128,8 +129,10 @@ export namespace FieldType { LegalBusinessName = 'legalBusinessName', LegalEntity = 'legalEntity', LegalEntityType = 'legalEntityType', + Logo = 'logo', MerchantAccount = 'merchantAccount', MerchantCategoryCode = 'merchantCategoryCode', + MerchantHouseNumber = 'merchantHouseNumber', MerchantReference = 'merchantReference', MicroDeposit = 'microDeposit', Name = 'name', diff --git a/src/typings/platformsFund/payoutAccountHolderRequest.ts b/src/typings/platformsFund/payoutAccountHolderRequest.ts index 8bbcb4e..ab4a61f 100644 --- a/src/typings/platformsFund/payoutAccountHolderRequest.ts +++ b/src/typings/platformsFund/payoutAccountHolderRequest.ts @@ -24,7 +24,7 @@ export class PayoutAccountHolderRequest { */ 'bankAccountUUID'?: string; /** - * A description of the payout. Maximum 35 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,\'+ \";** + * A description of the payout. Maximum 200 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,\'+ \";** */ 'description'?: string; /** diff --git a/src/typings/platformsFund/transaction.ts b/src/typings/platformsFund/transaction.ts index 6f92cca..83e7e3a 100644 --- a/src/typings/platformsFund/transaction.ts +++ b/src/typings/platformsFund/transaction.ts @@ -162,6 +162,8 @@ export class Transaction { export namespace Transaction { export enum TransactionStatusEnum { BalanceNotPaidOutTransfer = 'BalanceNotPaidOutTransfer', + BalancePlatformSweep = 'BalancePlatformSweep', + BalancePlatfromSweepReturned = 'BalancePlatfromSweepReturned', Chargeback = 'Chargeback', ChargebackCorrection = 'ChargebackCorrection', ChargebackCorrectionReceived = 'ChargebackCorrectionReceived', diff --git a/src/typings/platformsHostedOnboardingPage/collectInformation.ts b/src/typings/platformsHostedOnboardingPage/collectInformation.ts index 7ed93f6..01735e4 100644 --- a/src/typings/platformsHostedOnboardingPage/collectInformation.ts +++ b/src/typings/platformsHostedOnboardingPage/collectInformation.ts @@ -10,27 +10,27 @@ export class CollectInformation { /** - * Indicates whether [bank account details](https://docs.adyen.com/platforms/verification-checks/bank-account-check) must be collected. Default is **true**. + * Indicates whether [bank account details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/bank-account-check) must be collected. Default is **true**. */ 'bankDetails'?: boolean; /** - * Indicates whether [business details](https://docs.adyen.com/platforms/verification-checks/company-check) must be collected. Default is **true**. + * Indicates whether [business details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/company-check) must be collected. Default is **true**. */ 'businessDetails'?: boolean; /** - * Indicates whether [individual details](https://docs.adyen.com/platforms/verification-checks/identity-check) must be collected. Default is **true**. + * Indicates whether [individual details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/identity-check) must be collected. Default is **true**. */ 'individualDetails'?: boolean; /** - * Indicates whether [legal arrangement details](https://docs.adyen.com/platforms/verification-checks/legal-arrangements) must be collected. Default is **true**. + * Indicates whether [legal arrangement details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/legal-arrangements) must be collected. Default is **true**. */ 'legalArrangementDetails'?: boolean; /** - * Indicates whether answers to a [PCI questionnaire](https://docs.adyen.com/platforms/platforms-for-partners#onboard-partner-platform) must be collected. Applies only to partner platforms. Default is **true**. + * Indicates whether answers to a [PCI questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#onboard-partner-platform) must be collected. Applies only to partner platforms. Default is **true**. */ 'pciQuestionnaire'?: boolean; /** - * Indicates whether [shareholder details](https://docs.adyen.com/platforms/verification-checks/identity-check) must be collected. Defaults to **true**. + * Indicates whether [shareholder details](https://docs.adyen.com/marketplaces-and-platforms/classic/verification-checks/identity-check) must be collected. Defaults to **true**. */ 'shareholderDetails'?: boolean; diff --git a/src/typings/platformsHostedOnboardingPage/fieldType.ts b/src/typings/platformsHostedOnboardingPage/fieldType.ts index 487bf1b..dc8b4c9 100644 --- a/src/typings/platformsHostedOnboardingPage/fieldType.ts +++ b/src/typings/platformsHostedOnboardingPage/fieldType.ts @@ -94,6 +94,7 @@ export namespace FieldType { DoingBusinessAs = 'doingBusinessAs', DrivingLicence = 'drivingLicence', DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicenceFront = 'drivingLicenceFront', DrivingLicense = 'drivingLicense', Email = 'email', FirstName = 'firstName', @@ -128,8 +129,10 @@ export namespace FieldType { LegalBusinessName = 'legalBusinessName', LegalEntity = 'legalEntity', LegalEntityType = 'legalEntityType', + Logo = 'logo', MerchantAccount = 'merchantAccount', MerchantCategoryCode = 'merchantCategoryCode', + MerchantHouseNumber = 'merchantHouseNumber', MerchantReference = 'merchantReference', MicroDeposit = 'microDeposit', Name = 'name', diff --git a/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts b/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts index 26ddef8..ada320a 100644 --- a/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts +++ b/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts @@ -29,7 +29,7 @@ export class GetOnboardingUrlRequest { */ 'returnUrl'?: string; /** - * The language to be used in the page, specified by a combination of a language and country code. For example, **pt-BR**. If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. For a list supported languages, refer to [Change the page language](https://docs.adyen.com/platforms/hosted-onboarding-page/customize-experience#change-page-language). + * The language to be used in the page, specified by a combination of a language and country code. For example, **pt-BR**. If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. For a list of supported languages, refer to [Change the page language](https://docs.adyen.com/marketplaces-and-platforms/classic/hosted-onboarding-page/customize-experience#change-page-language). */ 'shopperLocale'?: string; 'showPages'?: ShowPages; diff --git a/src/typings/platformsNotificationConfiguration/fieldType.ts b/src/typings/platformsNotificationConfiguration/fieldType.ts index 487bf1b..dc8b4c9 100644 --- a/src/typings/platformsNotificationConfiguration/fieldType.ts +++ b/src/typings/platformsNotificationConfiguration/fieldType.ts @@ -94,6 +94,7 @@ export namespace FieldType { DoingBusinessAs = 'doingBusinessAs', DrivingLicence = 'drivingLicence', DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicenceFront = 'drivingLicenceFront', DrivingLicense = 'drivingLicense', Email = 'email', FirstName = 'firstName', @@ -128,8 +129,10 @@ export namespace FieldType { LegalBusinessName = 'legalBusinessName', LegalEntity = 'legalEntity', LegalEntityType = 'legalEntityType', + Logo = 'logo', MerchantAccount = 'merchantAccount', MerchantCategoryCode = 'merchantCategoryCode', + MerchantHouseNumber = 'merchantHouseNumber', MerchantReference = 'merchantReference', MicroDeposit = 'microDeposit', Name = 'name', diff --git a/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts b/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts index ac846ce..ceb20cf 100644 --- a/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts +++ b/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts @@ -47,7 +47,7 @@ export class NotificationConfigurationDetails { */ 'notifyUsername'?: string; /** - * The SSL protocol employed by the endpoint. >Permitted values: `SSL`, `SSLInsecureCiphers`, `TLS`, `TLSv10`, `TLSv10InsecureCiphers`, `TLSv11`, `TLSv12`. + * The SSL protocol employed by the endpoint. >Permitted values: `TLSv12`, `TLSv13`. */ 'sslProtocol'?: NotificationConfigurationDetails.SslProtocolEnum; @@ -112,12 +112,7 @@ export class NotificationConfigurationDetails { export namespace NotificationConfigurationDetails { export enum SslProtocolEnum { - Ssl = 'SSL', - SslInsecureCiphers = 'SSLInsecureCiphers', - Tls = 'TLS', - Tlsv10 = 'TLSv10', - Tlsv10InsecureCiphers = 'TLSv10InsecureCiphers', - Tlsv11 = 'TLSv11', - Tlsv12 = 'TLSv12' + Tlsv12 = 'TLSv12', + Tlsv13 = 'TLSv13' } } diff --git a/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts b/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts index d37641f..0a17336 100644 --- a/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts +++ b/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts @@ -44,6 +44,7 @@ export namespace NotificationEventConfiguration { AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderMigrated = 'ACCOUNT_HOLDER_MIGRATED', AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', diff --git a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts index 05c14da..38743a2 100644 --- a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts +++ b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts @@ -44,6 +44,7 @@ export namespace TestNotificationConfigurationRequest { AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderMigrated = 'ACCOUNT_HOLDER_MIGRATED', AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', diff --git a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts index b082bd5..bdab615 100644 --- a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts +++ b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts @@ -100,6 +100,7 @@ export namespace TestNotificationConfigurationResponse { AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderMigrated = 'ACCOUNT_HOLDER_MIGRATED', AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', diff --git a/src/typings/recurring/serviceError.ts b/src/typings/recurring/serviceError.ts index 551936c..c89df83 100644 --- a/src/typings/recurring/serviceError.ts +++ b/src/typings/recurring/serviceError.ts @@ -10,7 +10,7 @@ export class ServiceError { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; /** diff --git a/src/typings/storedValue/serviceError.ts b/src/typings/storedValue/serviceError.ts index be1dffb..c99e004 100644 --- a/src/typings/storedValue/serviceError.ts +++ b/src/typings/storedValue/serviceError.ts @@ -10,7 +10,7 @@ export class ServiceError { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + * Contains additional information about the payment. Some data fields are included only if you select them first. Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; /** diff --git a/src/typings/transfer/bankAccountV3AccountIdentification.ts b/src/typings/transfer/bankAccountV3AccountIdentification.ts deleted file mode 100644 index 3066007..0000000 --- a/src/typings/transfer/bankAccountV3AccountIdentification.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * The version of the OpenAPI document: v3 - * 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 this class manually. - */ - -import { AULocalAccountIdentification } from './aULocalAccountIdentification'; -import { AdditionalBankIdentification } from './additionalBankIdentification'; -import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; -import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; -import { HULocalAccountIdentification } from './hULocalAccountIdentification'; -import { IbanAccountIdentification } from './ibanAccountIdentification'; -import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; -import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; -import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; -import { SELocalAccountIdentification } from './sELocalAccountIdentification'; -import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; -import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; - -/** -* Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. -*/ -export class BankAccountV3AccountIdentification { - /** - * The bank account number (without separators or whitespace). - */ - 'accountNumber': string; - /** - * The 6-digit [Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch) (without separators or whitespace). - */ - 'bsbCode': string; - /** - * **usLocal** - */ - 'type': BankAccountV3AccountIdentification.TypeEnum; - /** - * The 4-digit bank code (Kód banky) (without separators or whitespace). - */ - 'bankCode': string; - /** - * The bank account branch number (without separators or whitespace). - */ - 'branchNumber': string; - /** - * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. - */ - 'iban': string; - 'additionalBankIdentification'?: AdditionalBankIdentification; - /** - * The bank\'s 8 or 11 character BIC or SWIFT code. - */ - 'bic': string; - /** - * The 4– to 5-digit clearing number ([Clearingnummer](https://sv.wikipedia.org/wiki/Clearingnummer)) (without separators or whitespace). - */ - 'clearingNumber': string; - /** - * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code) (without separators or whitespace). - */ - 'sortCode': string; - /** - * The bank account type. Possible values: **checking** or **savings**. Defaults to **checking**. - */ - 'accountType'?: BankAccountV3AccountIdentification.AccountTypeEnum; - /** - * The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number) (without separators or whitespace). - */ - 'routingNumber': string; - - static discriminator: string | undefined = "type"; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountNumber", - "baseName": "accountNumber", - "type": "string" - }, - { - "name": "bsbCode", - "baseName": "bsbCode", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "BankAccountV3AccountIdentification.TypeEnum" - }, - { - "name": "bankCode", - "baseName": "bankCode", - "type": "string" - }, - { - "name": "branchNumber", - "baseName": "branchNumber", - "type": "string" - }, - { - "name": "iban", - "baseName": "iban", - "type": "string" - }, - { - "name": "additionalBankIdentification", - "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification" - }, - { - "name": "bic", - "baseName": "bic", - "type": "string" - }, - { - "name": "clearingNumber", - "baseName": "clearingNumber", - "type": "string" - }, - { - "name": "sortCode", - "baseName": "sortCode", - "type": "string" - }, - { - "name": "accountType", - "baseName": "accountType", - "type": "BankAccountV3AccountIdentification.AccountTypeEnum" - }, - { - "name": "routingNumber", - "baseName": "routingNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BankAccountV3AccountIdentification.attributeTypeMap; - } -} - -export namespace BankAccountV3AccountIdentification { - export enum TypeEnum { - UsLocal = 'usLocal' - } - export enum AccountTypeEnum { - Checking = 'checking', - Savings = 'savings' - } -} From 59ce9c5d37e1dc224c3cdb98358c6b567412c277 Mon Sep 17 00:00:00 2001 From: wouterboe Date: Fri, 28 Oct 2022 16:47:02 +0200 Subject: [PATCH 35/35] bump version for release 12.1.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 49682e2..d558398 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "12.0.0", + "version": "12.1.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",