diff --git a/.babelrc b/.babelrc deleted file mode 100755 index 845c7e1..0000000 --- a/.babelrc +++ /dev/null @@ -1,22 +0,0 @@ -{ - "presets": [ - "@babel/env", - [ - "@babel/preset-typescript", - { - "targets": { - "node": "current" - } - } - ] - ], - "plugins": [ - "@babel/proposal-class-properties", - "@babel/proposal-object-rest-spread" - ], - "env": { - "test": { - "plugins": ["@babel/plugin-transform-runtime"] - } - } -} \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ec56ca1 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,20 @@ +# Contribution guidelines + +## How to contribute step-by-step + +1. Fork the `Adyen/adyen-node-api-library` repository. +2. Create a new branch from `develop` in your fork. This makes it easier for you to keep track of your changes. +3. Make the desired changes to the code. + * If you are adding new functionality or fixing a bug, we recommend you add unit tests that cover it. +4. Push the changes to your fork. +5. Create a pull request to the `Adyen/adyen-node-api-library` repository. +6. In your pull request, please describe in detail: + * What problem you’re solving + * Your approach to fixing the problem + * Any tests you wrote +7. Check Allow edits from maintainers. +8. Create the pull request. +9. Ensure that all checks have passed. + +After you create your pull request, one of the code owners will review your code. +We aim to review your request within 2-3 business days. diff --git a/README.md b/README.md index aadd907..eb95aa5 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,14 @@ client.httpClient = httpClient; If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com. +## Contributing +We strongly encourage you to join us in contributing to this repository so everyone can benefit from: +* New features and functionality +* Resolved bug fixes and issues +* Any general improvements + +Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how. + ## Licence MIT license. For more information, see the LICENSE file. diff --git a/babel.config.js b/babel.config.js new file mode 100755 index 0000000..c52a349 --- /dev/null +++ b/babel.config.js @@ -0,0 +1,25 @@ +module.exports = { + presets: [ + "@babel/env", + [ + "@babel/preset-typescript", + { + targets: { + node: "current" + } + } + ] + ], + plugins: [ + "@babel/proposal-class-properties", + "@babel/proposal-object-rest-spread" + ], + env: { + test: { + plugins: [ + "@babel/plugin-transform-runtime", + "@babel/plugin-transform-typescript" + ] + } + } +} \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index 8890d71..905696a 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,6 +20,7 @@ */ module.exports = { + preset: "ts-jest", moduleFileExtensions: [ "ts", "js" diff --git a/package-lock.json b/package-lock.json index 0c7ef37..3f05449 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "2.1.6", + "version": "2.1.7", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -14,19 +14,19 @@ } }, "@babel/core": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.6.4.tgz", - "integrity": "sha512-Rm0HGw101GY8FTzpWSyRbki/jzq+/PkNQJ+nSulrdY6gFGOsNseCqD6KHRYe2E+EdzuBdr2pxCp6s4Uk6eJ+XQ==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.2.tgz", + "integrity": "sha512-eeD7VEZKfhK1KUXGiyPFettgF3m513f8FoBSWiQ1xTvl1RAopLs42Wp9+Ze911I6H0N9lNqJMDgoZT7gHsipeQ==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.6.4", - "@babel/helpers": "^7.6.2", - "@babel/parser": "^7.6.4", - "@babel/template": "^7.6.0", - "@babel/traverse": "^7.6.3", - "@babel/types": "^7.6.3", - "convert-source-map": "^1.1.0", + "@babel/generator": "^7.7.2", + "@babel/helpers": "^7.7.0", + "@babel/parser": "^7.7.2", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.7.2", + "convert-source-map": "^1.7.0", "debug": "^4.1.0", "json5": "^2.1.0", "lodash": "^4.17.13", @@ -36,44 +36,84 @@ }, "dependencies": { "@babel/generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.6.4.tgz", - "integrity": "sha512-jsBuXkFoZxk0yWLyGI9llT9oiQ2FeTASmRFE32U+aaDTfoE92t78eroO7PTpU/OrYq38hlcDM6vbfLDaOLy+7w==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", + "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", "dev": true, "requires": { - "@babel/types": "^7.6.3", + "@babel/types": "^7.7.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" } }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, "@babel/parser": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.6.4.tgz", - "integrity": "sha512-D8RHPW5qd0Vbyo3qb+YjO5nvUVRTXFLQ/FsDxJU2Nqz4uB5EnUN0ZQSEYpvTIbRuttig1XbHWU5oMeQwQSAA+A==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.2.tgz", + "integrity": "sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==", "dev": true }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, "@babel/traverse": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.6.3.tgz", - "integrity": "sha512-unn7P4LGsijIxaAJo/wpoU11zN+2IaClkQAxcJWBNCMS6cmVh802IyLHNkAjQ0iYnRS3nnxk5O3fuXW28IMxTw==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", + "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.6.3", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/parser": "^7.6.3", - "@babel/types": "^7.6.3", + "@babel/generator": "^7.7.2", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.2", + "@babel/types": "^7.7.2", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" } }, "@babel/types": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.6.3.tgz", - "integrity": "sha512-CqbcpTxMcpuQTMhjI37ZHVgjBkysg5icREQIEZ0eG1yCNwg3oy+5AaLiOKmjsCj6nqOsa6Hf0ObjRVwokb7srA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.2.tgz", + "integrity": "sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -81,6 +121,15 @@ "to-fast-properties": "^2.0.0" } }, + "convert-source-map": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", + "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -106,68 +155,407 @@ } }, "@babel/helper-annotate-as-pure": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz", - "integrity": "sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.0.tgz", + "integrity": "sha512-k50CQxMlYTYo+GGyUGFwpxKVtxVJi9yh61sXZji3zYHccK9RYliZGSTOgci85T+r+0VFN2nWbGM04PIqwfrpMg==", "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz", - "integrity": "sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.0.tgz", + "integrity": "sha512-Cd8r8zs4RKDwMG/92lpZcnn5WPQ3LAMQbCw42oqUh4s7vsSN5ANUZjMel0OOnxDLq57hoDDbai+ryygYfCTOsw==", "dev": true, "requires": { - "@babel/helper-explode-assignable-expression": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/helper-explode-assignable-expression": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-call-delegate": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.4.4.tgz", - "integrity": "sha512-l79boDFJ8S1c5hvQvG+rc+wHw6IuH7YldmRKsYtpbawsxURu/paVy57FZMomGK22/JckepaikOkY0MoAmdyOlQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.7.0.tgz", + "integrity": "sha512-Su0Mdq7uSSWGZayGMMQ+z6lnL00mMCnGAbO/R0ZO9odIdB/WNU/VfQKqMQU0fdIsxQYbRjDM4BixIa93SQIpvw==", "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.4.4", - "@babel/traverse": "^7.4.4", - "@babel/types": "^7.4.4" + "@babel/helper-hoist-variables": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/generator": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", + "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/traverse": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.0.tgz", + "integrity": "sha512-ea/3wRZc//e/uwCpuBX2itrhI0U9l7+FsrKWyKGNyvWbuMcCG7ATKY2VI4wlg2b2TA39HHwIxnvmXvtiKsyn7w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, "@babel/helper-create-class-features-plugin": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.6.0.tgz", - "integrity": "sha512-O1QWBko4fzGju6VoVvrZg0RROCVifcLxiApnGP3OWfWzvxRZFCoBD81K5ur5e3bVY2Vf/5rIJm8cqPKn8HUJng==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.7.0.tgz", + "integrity": "sha512-MZiB5qvTWoyiFOgootmRSDV1udjIqJW/8lmxgzKq6oDqxdmHUjeP2ZUOmgHdYjmUVNABqRrHjYAYRvj8Eox/UA==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-member-expression-to-functions": "^7.5.5", - "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-member-expression-to-functions": "^7.7.0", + "@babel/helper-optimise-call-expression": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.5.5", - "@babel/helper-split-export-declaration": "^7.4.4" + "@babel/helper-replace-supers": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0" + }, + "dependencies": { + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.0.tgz", + "integrity": "sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.0.tgz", + "integrity": "sha512-ZhagAAVGD3L6MPM9/zZi7RRteonfBFLVUz3kjsnYsMAtr9hOJCKI9BAKIMpqn3NyWicPieoX779UL+7/3BEAOA==", + "dev": true, + "requires": { + "@babel/helper-regex": "^7.4.4", + "regexpu-core": "^4.6.0" } }, "@babel/helper-define-map": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.5.5.tgz", - "integrity": "sha512-fTfxx7i0B5NJqvUOBBGREnrqbTxRh7zinBANpZXAVDlsZxYdclDp467G1sQ8VZYMnAURY3RpBUAgOYT9GfzHBg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.7.0.tgz", + "integrity": "sha512-kPKWPb0dMpZi+ov1hJiwse9dWweZsz3V9rP4KdytnX1E7z3cTNmFGglwklzFPuqIcHLIY3bgKSs4vkwXXdflQA==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/types": "^7.5.5", + "@babel/helper-function-name": "^7.7.0", + "@babel/types": "^7.7.0", "lodash": "^4.17.13" + }, + "dependencies": { + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-explode-assignable-expression": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz", - "integrity": "sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.0.tgz", + "integrity": "sha512-CDs26w2shdD1urNUAji2RJXyBFCaR+iBEGnFz3l7maizMkQe3saVw9WtjG1tz8CwbjvlFnaSLVhgnu1SWaherg==", "dev": true, "requires": { - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/generator": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", + "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/traverse": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.0.tgz", + "integrity": "sha512-ea/3wRZc//e/uwCpuBX2itrhI0U9l7+FsrKWyKGNyvWbuMcCG7ATKY2VI4wlg2b2TA39HHwIxnvmXvtiKsyn7w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, "@babel/helper-function-name": { @@ -191,21 +579,47 @@ } }, "@babel/helper-hoist-variables": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.4.tgz", - "integrity": "sha512-VYk2/H/BnYbZDDg39hr3t2kKyifAm1W6zHRfhx8jGjIHpQEBv9dry7oQ2f3+J703TLu69nYdxsovl0XYfcnK4w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.0.tgz", + "integrity": "sha512-LUe/92NqsDAkJjjCEWkNe+/PcpnisvnqdlRe19FahVapa4jndeuJ+FBiTX1rcAKWKcJGE+C3Q3tuEuxkSmCEiQ==", "dev": true, "requires": { - "@babel/types": "^7.4.4" + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-member-expression-to-functions": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.5.5.tgz", - "integrity": "sha512-5qZ3D1uMclSNqYcXqiHoA0meVdv+xUEex9em2fqMnrk/scphGlGgg66zjMrPJESPwrFJ6sbfFQYUSa0Mz7FabA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.0.tgz", + "integrity": "sha512-QaCZLO2RtBcmvO/ekOLp8p7R5X2JriKRizeDpm5ChATAFWrrYDcDxPuCIBXKyBjY+i1vYSdcUTMIb8psfxHDPA==", "dev": true, "requires": { - "@babel/types": "^7.5.5" + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.0.tgz", + "integrity": "sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-module-imports": { @@ -218,26 +632,87 @@ } }, "@babel/helper-module-transforms": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.5.5.tgz", - "integrity": "sha512-jBeCvETKuJqeiaCdyaheF40aXnnU1+wkSiUs/IQg3tB85up1LyL8x77ClY8qJpuRJUcXQo+ZtdNESmZl4j56Pw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.0.tgz", + "integrity": "sha512-rXEefBuheUYQyX4WjV19tuknrJFwyKw0HgzRwbkyTbB+Dshlq7eqkWbyjzToLrMZk/5wKVKdWFluiAsVkHXvuQ==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/template": "^7.4.4", - "@babel/types": "^7.5.5", + "@babel/helper-module-imports": "^7.7.0", + "@babel/helper-simple-access": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0", "lodash": "^4.17.13" + }, + "dependencies": { + "@babel/helper-module-imports": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.0.tgz", + "integrity": "sha512-Dv3hLKIC1jyfTkClvyEkYP2OlkzNvWs5+Q8WgPbxM5LMeorons7iPP91JM+DU7tRbhqA1ZeooPaMFvQrn23RHw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-optimise-call-expression": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz", - "integrity": "sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.0.tgz", + "integrity": "sha512-48TeqmbazjNU/65niiiJIJRc5JozB8acui1OS7bSd6PgxfuovWsvjfWSzlgx+gPFdVveNzUdpdIg5l56Pl5jqg==", "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/types": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.0.tgz", + "integrity": "sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-plugin-utils": { @@ -256,38 +731,262 @@ } }, "@babel/helper-remap-async-to-generator": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz", - "integrity": "sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.0.tgz", + "integrity": "sha512-pHx7RN8X0UNHPB/fnuDnRXVZ316ZigkO8y8D835JlZ2SSdFKb6yH9MIYRU4fy/KPe5sPHDFOPvf8QLdbAGGiyw==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-wrap-function": "^7.1.0", - "@babel/template": "^7.1.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/helper-annotate-as-pure": "^7.7.0", + "@babel/helper-wrap-function": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/generator": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", + "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/traverse": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.0.tgz", + "integrity": "sha512-ea/3wRZc//e/uwCpuBX2itrhI0U9l7+FsrKWyKGNyvWbuMcCG7ATKY2VI4wlg2b2TA39HHwIxnvmXvtiKsyn7w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, "@babel/helper-replace-supers": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.5.5.tgz", - "integrity": "sha512-XvRFWrNnlsow2u7jXDuH4jDDctkxbS7gXssrP4q2nUD606ukXHRvydj346wmNg+zAgpFx4MWf4+usfC93bElJg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.7.0.tgz", + "integrity": "sha512-5ALYEul5V8xNdxEeWvRsBzLMxQksT7MaStpxjJf9KsnLxpAKBtfw5NeMKZJSYDa0lKdOcy0g+JT/f5mPSulUgg==", "dev": true, "requires": { - "@babel/helper-member-expression-to-functions": "^7.5.5", - "@babel/helper-optimise-call-expression": "^7.0.0", - "@babel/traverse": "^7.5.5", - "@babel/types": "^7.5.5" + "@babel/helper-member-expression-to-functions": "^7.7.0", + "@babel/helper-optimise-call-expression": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/generator": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", + "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/traverse": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.0.tgz", + "integrity": "sha512-ea/3wRZc//e/uwCpuBX2itrhI0U9l7+FsrKWyKGNyvWbuMcCG7ATKY2VI4wlg2b2TA39HHwIxnvmXvtiKsyn7w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + } + }, + "@babel/types": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.0.tgz", + "integrity": "sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } } }, "@babel/helper-simple-access": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz", - "integrity": "sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.7.0.tgz", + "integrity": "sha512-AJ7IZD7Eem3zZRuj5JtzFAptBw7pMlS3y8Qv09vaBWoFsle0d1kAn5Wq6Q9MyBXITPOKnxwkZKoAm4bopmv26g==", "dev": true, "requires": { - "@babel/template": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-split-export-declaration": { @@ -300,87 +999,209 @@ } }, "@babel/helper-wrap-function": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz", - "integrity": "sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.7.0.tgz", + "integrity": "sha512-sd4QjeMgQqzshSjecZjOp8uKfUtnpmCyQhKQrVJBBgeHAB/0FPi33h3AbVlVp07qQtMD4QgYSzaMI7VwncNK/w==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", - "@babel/template": "^7.1.0", - "@babel/traverse": "^7.1.0", - "@babel/types": "^7.2.0" - } - }, - "@babel/helpers": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.6.2.tgz", - "integrity": "sha512-3/bAUL8zZxYs1cdX2ilEE0WobqbCmKWr/889lf2SS0PpDcpEIY8pb1CCyz0pEcX3pEb+MCbks1jIokz2xLtGTA==", - "dev": true, - "requires": { - "@babel/template": "^7.6.0", - "@babel/traverse": "^7.6.2", - "@babel/types": "^7.6.0" + "@babel/helper-function-name": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" }, "dependencies": { "@babel/generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.6.4.tgz", - "integrity": "sha512-jsBuXkFoZxk0yWLyGI9llT9oiQ2FeTASmRFE32U+aaDTfoE92t78eroO7PTpU/OrYq38hlcDM6vbfLDaOLy+7w==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", + "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", "dev": true, "requires": { - "@babel/types": "^7.6.3", + "@babel/types": "^7.7.0", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" - }, - "dependencies": { - "@babel/types": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.6.3.tgz", - "integrity": "sha512-CqbcpTxMcpuQTMhjI37ZHVgjBkysg5icREQIEZ0eG1yCNwg3oy+5AaLiOKmjsCj6nqOsa6Hf0ObjRVwokb7srA==", - "dev": true, - "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" - } - } + } + }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" } }, "@babel/parser": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.6.4.tgz", - "integrity": "sha512-D8RHPW5qd0Vbyo3qb+YjO5nvUVRTXFLQ/FsDxJU2Nqz4uB5EnUN0ZQSEYpvTIbRuttig1XbHWU5oMeQwQSAA+A==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", "dev": true }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, "@babel/traverse": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.6.3.tgz", - "integrity": "sha512-unn7P4LGsijIxaAJo/wpoU11zN+2IaClkQAxcJWBNCMS6cmVh802IyLHNkAjQ0iYnRS3nnxk5O3fuXW28IMxTw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.0.tgz", + "integrity": "sha512-ea/3wRZc//e/uwCpuBX2itrhI0U9l7+FsrKWyKGNyvWbuMcCG7ATKY2VI4wlg2b2TA39HHwIxnvmXvtiKsyn7w==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.6.3", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/parser": "^7.6.3", - "@babel/types": "^7.6.3", + "@babel/generator": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" - }, - "dependencies": { - "@babel/types": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.6.3.tgz", - "integrity": "sha512-CqbcpTxMcpuQTMhjI37ZHVgjBkysg5icREQIEZ0eG1yCNwg3oy+5AaLiOKmjsCj6nqOsa6Hf0ObjRVwokb7srA==", - "dev": true, - "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" - } - } + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "@babel/helpers": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.7.0.tgz", + "integrity": "sha512-VnNwL4YOhbejHb7x/b5F39Zdg5vIQpUUNzJwx0ww1EcVRt41bbGRZWhAURrfY32T5zTT3qwNOQFWpn+P0i0a2g==", + "dev": true, + "requires": { + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0" + }, + "dependencies": { + "@babel/generator": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", + "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", + "dev": true, + "requires": { + "@babel/types": "^7.7.2", + "jsesc": "^2.5.1", + "lodash": "^4.17.13", + "source-map": "^0.5.0" + } + }, + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.2.tgz", + "integrity": "sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/traverse": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", + "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.5.5", + "@babel/generator": "^7.7.2", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/parser": "^7.7.2", + "@babel/types": "^7.7.2", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.13" + } + }, + "@babel/types": { + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.2.tgz", + "integrity": "sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" } }, "debug": { @@ -412,30 +1233,30 @@ "dev": true }, "@babel/plugin-proposal-async-generator-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz", - "integrity": "sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.0.tgz", + "integrity": "sha512-ot/EZVvf3mXtZq0Pd0+tSOfGWMizqmOohXmNZg6LNFjHOV+wOPv7BvVYh8oPR8LhpIP3ye8nNooKL50YRWxpYA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.1.0", + "@babel/helper-remap-async-to-generator": "^7.7.0", "@babel/plugin-syntax-async-generators": "^7.2.0" } }, "@babel/plugin-proposal-class-properties": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.5.5.tgz", - "integrity": "sha512-AF79FsnWFxjlaosgdi421vmYG6/jg79bVD0dpD44QdgobzHKuLZ6S3vl8la9qIeSwGi8i1fS0O1mfuDAAdo1/A==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.7.0.tgz", + "integrity": "sha512-tufDcFA1Vj+eWvwHN+jvMN6QsV5o+vUlytNKrbMiCeDL0F2j92RURzUsUMWE5EJkLyWxjdUslCsMQa9FWth16A==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.5.5", + "@babel/helper-create-class-features-plugin": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-proposal-dynamic-import": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz", - "integrity": "sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.0.tgz", + "integrity": "sha512-7poL3Xi+QFPC7sGAzEIbXUyYzGJwbc2+gSD0AkiC5k52kH2cqHdqxm5hNFfLW3cRSTcx9bN0Fl7/6zWcLLnKAQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -473,14 +1294,13 @@ } }, "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.6.2.tgz", - "integrity": "sha512-NxHETdmpeSCtiatMRYWVJo7266rrvAC3DTeG5exQBIH/fMIUK7ejDNznBbn3HQl/o9peymRRg7Yqkx6PdUXmMw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.0.tgz", + "integrity": "sha512-mk34H+hp7kRBWJOOAR0ZMGCydgKMD4iN9TpDRp3IIcbunltxEY89XSimc6WbtSLCDrwcdy/EEw7h5CFCzxTchw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.4.4", - "regexpu-core": "^4.6.0" + "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-syntax-async-generators": { @@ -528,6 +1348,15 @@ "@babel/helper-plugin-utils": "^7.0.0" } }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.0.tgz", + "integrity": "sha512-hi8FUNiFIY1fnUI2n1ViB1DR0R4QeK4iHcTlW6aJkrPoTdb8Rf1EMQ6GT3f67DDkYyWgew9DFoOZ6gOoEsdzTA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, "@babel/plugin-syntax-typescript": { "version": "7.3.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.3.3.tgz", @@ -547,14 +1376,36 @@ } }, "@babel/plugin-transform-async-to-generator": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz", - "integrity": "sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.0.tgz", + "integrity": "sha512-vLI2EFLVvRBL3d8roAMqtVY0Bm9C1QzLkdS57hiKrjUBSqsQYrBsMCeOg/0KK7B0eK9V71J5mWcha9yyoI2tZw==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-module-imports": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.1.0" + "@babel/helper-remap-async-to-generator": "^7.7.0" + }, + "dependencies": { + "@babel/helper-module-imports": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.0.tgz", + "integrity": "sha512-Dv3hLKIC1jyfTkClvyEkYP2OlkzNvWs5+Q8WgPbxM5LMeorons7iPP91JM+DU7tRbhqA1ZeooPaMFvQrn23RHw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/plugin-transform-block-scoped-functions": { @@ -577,19 +1428,78 @@ } }, "@babel/plugin-transform-classes": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.5.5.tgz", - "integrity": "sha512-U2htCNK/6e9K7jGyJ++1p5XRU+LJjrwtoiVn9SzRlDT2KubcZ11OOwy3s24TjHxPgxNwonCYP7U2K51uVYCMDg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.0.tgz", + "integrity": "sha512-/b3cKIZwGeUesZheU9jNYcwrEA7f/Bo4IdPmvp7oHgvks2majB5BoT5byAql44fiNQYOPzhk2w8DbgfuafkMoA==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", - "@babel/helper-define-map": "^7.5.5", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/helper-annotate-as-pure": "^7.7.0", + "@babel/helper-define-map": "^7.7.0", + "@babel/helper-function-name": "^7.7.0", + "@babel/helper-optimise-call-expression": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.5.5", - "@babel/helper-split-export-declaration": "^7.4.4", + "@babel/helper-replace-supers": "^7.7.0", + "@babel/helper-split-export-declaration": "^7.7.0", "globals": "^11.1.0" + }, + "dependencies": { + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz", + "integrity": "sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/plugin-transform-computed-properties": { @@ -611,14 +1521,13 @@ } }, "@babel/plugin-transform-dotall-regex": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.6.2.tgz", - "integrity": "sha512-KGKT9aqKV+9YMZSkowzYoYEiHqgaDhGmPNZlZxX6UeHC4z30nC1J9IrZuGqbYFB1jaIGdv91ujpze0exiVK8bA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.0.tgz", + "integrity": "sha512-3QQlF7hSBnSuM1hQ0pS3pmAbWLax/uGNCbPBND9y+oJ4Y776jsyujG2k0Sn2Aj2a0QwVOiOFL5QVPA7spjvzSA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.4.4", - "regexpu-core": "^4.6.0" + "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-duplicate-keys": { @@ -650,13 +1559,63 @@ } }, "@babel/plugin-transform-function-name": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.4.tgz", - "integrity": "sha512-iU9pv7U+2jC9ANQkKeNF6DrPy4GBa4NWQtl6dHB4Pb3izX2JOEvDTFarlNsBj/63ZEzNNIAMs3Qw4fNCcSOXJA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.0.tgz", + "integrity": "sha512-P5HKu0d9+CzZxP5jcrWdpe7ZlFDe24bmqP6a6X8BHEBl/eizAsY8K6LX8LASZL0Jxdjm5eEfzp+FIrxCm/p8bA==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.1.0", + "@babel/helper-function-name": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0" + }, + "dependencies": { + "@babel/helper-function-name": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz", + "integrity": "sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz", + "integrity": "sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, + "@babel/parser": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", + "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "dev": true + }, + "@babel/template": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", + "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.7.0", + "@babel/types": "^7.7.0" + } + }, + "@babel/types": { + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/plugin-transform-literals": { @@ -689,45 +1648,45 @@ } }, "@babel/plugin-transform-modules-commonjs": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.6.0.tgz", - "integrity": "sha512-Ma93Ix95PNSEngqomy5LSBMAQvYKVe3dy+JlVJSHEXZR5ASL9lQBedMiCyVtmTLraIDVRE3ZjTZvmXXD2Ozw3g==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.0.tgz", + "integrity": "sha512-KEMyWNNWnjOom8vR/1+d+Ocz/mILZG/eyHHO06OuBQ2aNhxT62fr4y6fGOplRx+CxCSp3IFwesL8WdINfY/3kg==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.4.4", + "@babel/helper-module-transforms": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-simple-access": "^7.1.0", + "@babel/helper-simple-access": "^7.7.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-systemjs": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz", - "integrity": "sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.0.tgz", + "integrity": "sha512-ZAuFgYjJzDNv77AjXRqzQGlQl4HdUM6j296ee4fwKVZfhDR9LAGxfvXjBkb06gNETPnN0sLqRm9Gxg4wZH6dXg==", "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.4.4", + "@babel/helper-hoist-variables": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-umd": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz", - "integrity": "sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.0.tgz", + "integrity": "sha512-u7eBA03zmUswQ9LQ7Qw0/ieC1pcAkbp5OQatbWUzY1PaBccvuJXUkYzoN1g7cqp7dbTu6Dp9bXyalBvD04AANA==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-module-transforms": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.6.3.tgz", - "integrity": "sha512-jTkk7/uE6H2s5w6VlMHeWuH+Pcy2lmdwFoeWCVnvIrDUnB5gQqTVI8WfmEAhF2CDEarGrknZcmSFg1+bkfCoSw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.0.tgz", + "integrity": "sha512-+SicSJoKouPctL+j1pqktRVCgy+xAch1hWWTMy13j0IflnyNjaoskj+DwRQFimHbLqO3sq2oN2CXMvXq3Bgapg==", "dev": true, "requires": { - "regexpu-core": "^4.6.0" + "@babel/helper-create-regexp-features-plugin": "^7.7.0" } }, "@babel/plugin-transform-new-target": { @@ -770,9 +1729,9 @@ } }, "@babel/plugin-transform-regenerator": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.5.tgz", - "integrity": "sha512-gBKRh5qAaCWntnd09S8QC7r3auLCqq5DI6O0DlfoyDjslSBVqBibrMdsqO+Uhmx3+BlOmE/Kw1HFxmGbv0N9dA==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.0.tgz", + "integrity": "sha512-AXmvnC+0wuj/cFkkS/HFHIojxH3ffSXE+ttulrqWjZZRaUOonfJc60e1wSNT4rV8tIunvu/R3wCp71/tLAa9xg==", "dev": true, "requires": { "regenerator-transform": "^0.14.0" @@ -847,78 +1806,78 @@ } }, "@babel/plugin-transform-typescript": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.6.0.tgz", - "integrity": "sha512-yzw7EopOOr6saONZ3KA3lpizKnWRTe+rfBqg4AmQbSow7ik7fqmzrfIqt053osLwLE2AaTqGinLM2tl6+M/uog==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.2.tgz", + "integrity": "sha512-UWhDaJRqdPUtdK1s0sKYdoRuqK0NepjZto2UZltvuCgMoMZmdjhgz5hcRokie/3aYEaSz3xvusyoayVaq4PjRg==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.6.0", + "@babel/helper-create-class-features-plugin": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", "@babel/plugin-syntax-typescript": "^7.2.0" } }, "@babel/plugin-transform-unicode-regex": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.6.2.tgz", - "integrity": "sha512-orZI6cWlR3nk2YmYdb0gImrgCUwb5cBUwjf6Ks6dvNVvXERkwtJWOQaEOjPiu0Gu1Tq6Yq/hruCZZOOi9F34Dw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.0.tgz", + "integrity": "sha512-RrThb0gdrNwFAqEAAx9OWgtx6ICK69x7i9tCnMdVrxQwSDp/Abu9DXFU5Hh16VP33Rmxh04+NGW28NsIkFvFKA==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-regex": "^7.4.4", - "regexpu-core": "^4.6.0" + "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/preset-env": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.6.3.tgz", - "integrity": "sha512-CWQkn7EVnwzlOdR5NOm2+pfgSNEZmvGjOhlCHBDq0J8/EStr+G+FvPEiz9B56dR6MoiUFjXhfE4hjLoAKKJtIQ==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.1.tgz", + "integrity": "sha512-/93SWhi3PxcVTDpSqC+Dp4YxUu3qZ4m7I76k0w73wYfn7bGVuRIO4QUz95aJksbS+AD1/mT1Ie7rbkT0wSplaA==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-module-imports": "^7.7.0", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-async-generator-functions": "^7.2.0", - "@babel/plugin-proposal-dynamic-import": "^7.5.0", + "@babel/plugin-proposal-async-generator-functions": "^7.7.0", + "@babel/plugin-proposal-dynamic-import": "^7.7.0", "@babel/plugin-proposal-json-strings": "^7.2.0", "@babel/plugin-proposal-object-rest-spread": "^7.6.2", "@babel/plugin-proposal-optional-catch-binding": "^7.2.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.6.2", + "@babel/plugin-proposal-unicode-property-regex": "^7.7.0", "@babel/plugin-syntax-async-generators": "^7.2.0", "@babel/plugin-syntax-dynamic-import": "^7.2.0", "@babel/plugin-syntax-json-strings": "^7.2.0", "@babel/plugin-syntax-object-rest-spread": "^7.2.0", "@babel/plugin-syntax-optional-catch-binding": "^7.2.0", + "@babel/plugin-syntax-top-level-await": "^7.7.0", "@babel/plugin-transform-arrow-functions": "^7.2.0", - "@babel/plugin-transform-async-to-generator": "^7.5.0", + "@babel/plugin-transform-async-to-generator": "^7.7.0", "@babel/plugin-transform-block-scoped-functions": "^7.2.0", "@babel/plugin-transform-block-scoping": "^7.6.3", - "@babel/plugin-transform-classes": "^7.5.5", + "@babel/plugin-transform-classes": "^7.7.0", "@babel/plugin-transform-computed-properties": "^7.2.0", "@babel/plugin-transform-destructuring": "^7.6.0", - "@babel/plugin-transform-dotall-regex": "^7.6.2", + "@babel/plugin-transform-dotall-regex": "^7.7.0", "@babel/plugin-transform-duplicate-keys": "^7.5.0", "@babel/plugin-transform-exponentiation-operator": "^7.2.0", "@babel/plugin-transform-for-of": "^7.4.4", - "@babel/plugin-transform-function-name": "^7.4.4", + "@babel/plugin-transform-function-name": "^7.7.0", "@babel/plugin-transform-literals": "^7.2.0", "@babel/plugin-transform-member-expression-literals": "^7.2.0", "@babel/plugin-transform-modules-amd": "^7.5.0", - "@babel/plugin-transform-modules-commonjs": "^7.6.0", - "@babel/plugin-transform-modules-systemjs": "^7.5.0", - "@babel/plugin-transform-modules-umd": "^7.2.0", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.6.3", + "@babel/plugin-transform-modules-commonjs": "^7.7.0", + "@babel/plugin-transform-modules-systemjs": "^7.7.0", + "@babel/plugin-transform-modules-umd": "^7.7.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.0", "@babel/plugin-transform-new-target": "^7.4.4", "@babel/plugin-transform-object-super": "^7.5.5", "@babel/plugin-transform-parameters": "^7.4.4", "@babel/plugin-transform-property-literals": "^7.2.0", - "@babel/plugin-transform-regenerator": "^7.4.5", + "@babel/plugin-transform-regenerator": "^7.7.0", "@babel/plugin-transform-reserved-words": "^7.2.0", "@babel/plugin-transform-shorthand-properties": "^7.2.0", "@babel/plugin-transform-spread": "^7.6.2", "@babel/plugin-transform-sticky-regex": "^7.2.0", "@babel/plugin-transform-template-literals": "^7.4.4", "@babel/plugin-transform-typeof-symbol": "^7.2.0", - "@babel/plugin-transform-unicode-regex": "^7.6.2", - "@babel/types": "^7.6.3", + "@babel/plugin-transform-unicode-regex": "^7.7.0", + "@babel/types": "^7.7.1", "browserslist": "^4.6.0", "core-js-compat": "^3.1.1", "invariant": "^2.2.2", @@ -926,10 +1885,19 @@ "semver": "^5.5.0" }, "dependencies": { + "@babel/helper-module-imports": { + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.0.tgz", + "integrity": "sha512-Dv3hLKIC1jyfTkClvyEkYP2OlkzNvWs5+Q8WgPbxM5LMeorons7iPP91JM+DU7tRbhqA1ZeooPaMFvQrn23RHw==", + "dev": true, + "requires": { + "@babel/types": "^7.7.0" + } + }, "@babel/types": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.6.3.tgz", - "integrity": "sha512-CqbcpTxMcpuQTMhjI37ZHVgjBkysg5icREQIEZ0eG1yCNwg3oy+5AaLiOKmjsCj6nqOsa6Hf0ObjRVwokb7srA==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.1.tgz", + "integrity": "sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -940,19 +1908,19 @@ } }, "@babel/preset-typescript": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.6.0.tgz", - "integrity": "sha512-4xKw3tTcCm0qApyT6PqM9qniseCE79xGHiUnNdKGdxNsGUc2X7WwZybqIpnTmoukg3nhPceI5KPNzNqLNeIJww==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.2.tgz", + "integrity": "sha512-1B4HthAelaLGfNRyrWqJtBEjXX1ulThCrLQ5B2VOtEAznWFIFXFJahgXImqppy66lx/Oh+cOSCQdJzZqh2Jh5g==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-transform-typescript": "^7.6.0" + "@babel/plugin-transform-typescript": "^7.7.2" } }, "@babel/runtime": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.6.3.tgz", - "integrity": "sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.2.tgz", + "integrity": "sha512-JONRbXbTXc9WQE2mAZd1p0Z3DZ/6vaQIkgYMSTP3KjRCyd7rCZCcfhCyX+YjwcKxcZ82UrxbRD358bpExNgrjw==", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" @@ -1436,20 +2404,14 @@ } }, "@types/jest": { - "version": "24.0.21", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.21.tgz", - "integrity": "sha512-uyqFvx78Tuy0h5iLCPWRCvi5HhWwEqhIj30doitp191oYLqlCxUyAJHdWVm5+Nr271/vPnkyt6rWeEIjGowBTg==", + "version": "24.0.23", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.23.tgz", + "integrity": "sha512-L7MBvwfNpe7yVPTXLn32df/EK+AMBFAFvZrRuArGs7npEWnlziUXK+5GMIUTI4NIuwok3XibsjXCs5HxviYXjg==", "dev": true, "requires": { - "@types/jest-diff": "*" + "jest-diff": "^24.3.0" } }, - "@types/jest-diff": { - "version": "20.0.1", - "resolved": "https://registry.npmjs.org/@types/jest-diff/-/jest-diff-20.0.1.tgz", - "integrity": "sha512-yALhelO3i0hqZwhjtcr6dYyaLoCHbAMshwtj6cGxTvHZAKXHsYGdff6E8EPw3xLKY0ELUTQ69Q1rQiJENnccMA==", - "dev": true - }, "@types/json-schema": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.3.tgz", @@ -1472,9 +2434,9 @@ } }, "@types/node": { - "version": "11.15.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.0.tgz", - "integrity": "sha512-JRq4kw1GQZrF90YRrp3C1kIoioAEj9PweNF2Qgp/6XZYVgXPl7OWKdggFNtRxlBPyl40Fz/bOhCnXuKMFaJ06w==", + "version": "11.15.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.2.tgz", + "integrity": "sha512-BqCU9uIFkUH9Sgo2uLYbmIiFB1T+VBiM8AI/El3LIAI5KzwtckeSG+3WOYZr9aMoX4UIvRFBWBeSaOu6hFue2Q==", "dev": true }, "@types/stack-utils": { @@ -1499,52 +2461,62 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.6.0.tgz", - "integrity": "sha512-iCcXREU4RciLmLniwKLRPCOFVXrkF7z27XuHq5DrykpREv/mz6ztKAyLg2fdkM0hQC7659p5ZF5uStH7uzAJ/w==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.8.0.tgz", + "integrity": "sha512-ohqul5s6XEB0AzPWZCuJF5Fd6qC0b4+l5BGEnrlpmvXxvyymb8yw8Bs4YMF8usNAeuCJK87eFIHy8g8GFvOtGA==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.6.0", - "eslint-utils": "^1.4.2", + "@typescript-eslint/experimental-utils": "2.8.0", + "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", - "regexpp": "^2.0.1", + "regexpp": "^3.0.0", "tsutils": "^3.17.1" + }, + "dependencies": { + "regexpp": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.0.0.tgz", + "integrity": "sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g==", + "dev": true + } } }, "@typescript-eslint/experimental-utils": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.0.tgz", - "integrity": "sha512-34BAFpNOwHXeqT+AvdalLxOvcPYnCxA5JGmBAFL64RGMdP0u65rXjii7l/nwpgk5aLEE1LaqF+SsCU0/Cb64xA==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.8.0.tgz", + "integrity": "sha512-jZ05E4SxCbbXseQGXOKf3ESKcsGxT8Ucpkp1jiVp55MGhOvZB2twmWKf894PAuVQTCgbPbJz9ZbRDqtUWzP8xA==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.6.0", + "@typescript-eslint/typescript-estree": "2.8.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.6.0.tgz", - "integrity": "sha512-AvLejMmkcjRTJ2KD72v565W4slSrrzUIzkReu1JN34b8JnsEsxx7S9Xx/qXEuMQas0mkdUfETr0j3zOhq2DIqQ==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.8.0.tgz", + "integrity": "sha512-NseXWzhkucq+JM2HgqAAoKEzGQMb5LuTRjFPLQzGIdLthXMNUfuiskbl7QSykvWW6mvzCtYbw1fYWGa2EIaekw==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.6.0", - "@typescript-eslint/typescript-estree": "2.6.0", + "@typescript-eslint/experimental-utils": "2.8.0", + "@typescript-eslint/typescript-estree": "2.8.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.0.tgz", - "integrity": "sha512-A3lSBVIdj2Gp0lFEL6in2eSPqJ33uAc3Ko+Y4brhjkxzjbzLnwBH22CwsW2sCo+iwogfIyvb56/AJri15H0u5Q==", + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.8.0.tgz", + "integrity": "sha512-ksvjBDTdbAQ04cR5JyFSDX113k66FxH1tAXmi+dj6hufsl/G0eMc/f1GgLjEVPkYClDbRKv+rnBFuE5EusomUw==", "dev": true, "requires": { "debug": "^4.1.1", - "glob": "^7.1.4", + "eslint-visitor-keys": "^1.1.0", + "glob": "^7.1.6", "is-glob": "^4.0.1", "lodash.unescape": "4.0.1", - "semver": "^6.3.0" + "semver": "^6.3.0", + "tsutils": "^3.17.1" }, "dependencies": { "debug": { @@ -1556,6 +2528,20 @@ "ms": "^2.1.1" } }, + "glob": { + "version": "7.1.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", + "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -2328,6 +3314,12 @@ } } }, + "browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, "browserify-aes": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", @@ -2400,14 +3392,14 @@ } }, "browserslist": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.0.tgz", - "integrity": "sha512-9rGNDtnj+HaahxiVV38Gn8n8Lr8REKsel68v1sPFfIGEK6uSXTY3h9acgiT1dZVtOOUtifo/Dn8daDQ5dUgVsA==", + "version": "4.7.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.2.tgz", + "integrity": "sha512-uZavT/gZXJd2UTi9Ov7/Z340WOSQ3+m1iBVRUknf+okKxonL9P83S3ctiBDtuRmRu8PiCHjqyueqQ9HYlJhxiw==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30000989", - "electron-to-chromium": "^1.3.247", - "node-releases": "^1.1.29" + "caniuse-lite": "^1.0.30001004", + "electron-to-chromium": "^1.3.295", + "node-releases": "^1.1.38" } }, "bser": { @@ -2571,9 +3563,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30000999", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000999.tgz", - "integrity": "sha512-1CUyKyecPeksKwXZvYw0tEoaMCo/RwBlXmEtN5vVnabvO0KPd9RQLcaAuR9/1F+KDMv6esmOFWlsXuzDk+8rxg==", + "version": "1.0.30001008", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001008.tgz", + "integrity": "sha512-b8DJyb+VVXZGRgJUa30cbk8gKHZ3LOZTBLaUEEVr2P4xpmFigOCc62CO4uzquW641Ouq1Rm9N+rWLWdSYDaDIw==", "dev": true }, "capture-exit": { @@ -2809,6 +3801,16 @@ "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", "dev": true }, + "cobertura-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/cobertura-parse/-/cobertura-parse-1.0.5.tgz", + "integrity": "sha512-uYJfkGhzw1wibe/8jqqHmSaPNWFguzq/IlSj83u3cSnZho/lUnfj0mLTmZGmB3AiKCOTYr22TYwpR1sXy2JEkg==", + "dev": true, + "requires": { + "mocha": "5.0.5", + "xml2js": "0.4.19" + } + }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -2955,12 +3957,12 @@ "dev": true }, "core-js-compat": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.2.1.tgz", - "integrity": "sha512-MwPZle5CF9dEaMYdDeWm73ao/IflDH+FjeJCWEADcEgFSE9TLimFKwJsfmkwzI8eC0Aj0mgvMDjeQjrElkz4/A==", + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.3.6.tgz", + "integrity": "sha512-YnwZG/+0/f7Pf6Lr3jxtVAFjtGBW9lsLYcqrxhYJai1GfvrP8DEyEpnNzj/FRQfIkOOfk1j5tTBvPBLWVVJm4A==", "dev": true, "requires": { - "browserslist": "^4.6.6", + "browserslist": "^4.7.2", "semver": "^6.3.0" }, "dependencies": { @@ -3009,17 +4011,17 @@ } }, "coveralls": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.7.tgz", - "integrity": "sha512-mUuH2MFOYB2oBaA4D4Ykqi9LaEYpMMlsiOMJOrv358yAjP6enPIk55fod2fNJ8AvwoYXStWQls37rA+s5e7boA==", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.8.tgz", + "integrity": "sha512-lkQlg29RhV9zwB0gDaEAWoap8xPgFxtPsVIpTNiDDtWNrvtP1/RmGJRRAV/Loz2gihmppObkSL0wnptEGUXaOQ==", "dev": true, "requires": { - "growl": "~> 1.10.0", + "cobertura-parse": "^1.0.5", "js-yaml": "^3.13.1", - "lcov-parse": "^0.0.10", + "lcov-parse": "^1.0.0", "log-driver": "^1.2.7", "minimist": "^1.2.0", - "request": "^2.86.0" + "request": "^2.88.0" } }, "create-ecdh": { @@ -3336,6 +4338,12 @@ } } }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, "diff-sequences": { "version": "24.9.0", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", @@ -3432,9 +4440,9 @@ } }, "electron-to-chromium": { - "version": "1.3.277", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.277.tgz", - "integrity": "sha512-Czmsrgng89DOgJlIknnw9bn5431QdtnUwGp5YYiPwU1DbZQUxCLF+rc1ZC09VNAdalOPcvH6AE8BaA0H5HjI/w==", + "version": "1.3.303", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.303.tgz", + "integrity": "sha512-xDFPmMjJ0gQBsVwspB0bjcbFn3MVcvU0sxXYmh1UMbZ6rDogQVM3vSyOvTO4rym1KlnJIU6nqzK3qs0yKudmjw==", "dev": true }, "elliptic": { @@ -4976,9 +5984,9 @@ "dev": true }, "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", + "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", "dev": true }, "growly": { @@ -5102,6 +6110,12 @@ "minimalistic-assert": "^1.0.1" } }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true + }, "hmac-drbg": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", @@ -6354,9 +7368,9 @@ } }, "lcov-parse": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", - "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", + "integrity": "sha1-6w1GtUER68VhrLTECO+TY73I9+A=", "dev": true }, "left-pad": { @@ -6595,14 +7609,6 @@ "map-age-cleaner": "^0.1.1", "mimic-fn": "^2.0.0", "p-is-promise": "^2.0.0" - }, - "dependencies": { - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - } } }, "memory-fs": { @@ -6768,6 +7774,76 @@ } } }, + "mocha": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.0.5.tgz", + "integrity": "sha512-3MM3UjZ5p8EJrYpG7s+29HAI9G7sTzKEe4+w37Dg0QP7qL4XGsV+Q2xet2cE37AqdgN1OtYQB6Vl98YiPV3PgA==", + "dev": true, + "requires": { + "browser-stdout": "1.3.1", + "commander": "2.11.0", + "debug": "3.1.0", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.3", + "he": "1.1.1", + "mkdirp": "0.5.1", + "supports-color": "4.4.0" + }, + "dependencies": { + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "dev": true + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "supports-color": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", + "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "dev": true, + "requires": { + "has-flag": "^2.0.0" + } + } + } + }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", @@ -6838,9 +7914,9 @@ "dev": true }, "nock": { - "version": "11.6.0", - "resolved": "https://registry.npmjs.org/nock/-/nock-11.6.0.tgz", - "integrity": "sha512-9ocFR68CxS6nf2XtQNpdSh5n4QQSKl87DhXgLnHO/RD4CsGThFtu8/QG6myHTnrUHRE6JSKpiGjLJdRe2ZSlIA==", + "version": "11.7.0", + "resolved": "https://registry.npmjs.org/nock/-/nock-11.7.0.tgz", + "integrity": "sha512-7c1jhHew74C33OBeRYyQENT+YXQiejpwIrEjinh6dRurBae+Ei4QjeUaPlkptIF0ZacEiVCnw8dWaxqepkiihg==", "dev": true, "requires": { "chai": "^4.1.2", @@ -6933,9 +8009,9 @@ } }, "node-releases": { - "version": "1.1.35", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.35.tgz", - "integrity": "sha512-JGcM/wndCN/2elJlU0IGdVEJQQnJwsLbgPCFd2pY7V0mxf17bZ0Gb/lgOtL29ZQhvEX5shnVhxQyZz3ex94N8w==", + "version": "1.1.39", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.39.tgz", + "integrity": "sha512-8MRC/ErwNCHOlAFycy9OPca46fQYUjbJRDcZTHVWIGXIjYLM73k70vv3WkYutVnM4cCo4hE0MqBVVZjP6vjISA==", "dev": true, "requires": { "semver": "^6.3.0" @@ -7894,9 +8970,9 @@ } }, "regjsgen": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.0.tgz", - "integrity": "sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz", + "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==", "dev": true }, "regjsparser": { @@ -9413,9 +10489,9 @@ "dev": true }, "typescript": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz", - "integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz", + "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==", "dev": true }, "uglify-js": { @@ -9800,9 +10876,9 @@ } }, "webpack-cli": { - "version": "3.3.9", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.9.tgz", - "integrity": "sha512-xwnSxWl8nZtBl/AFJCOn9pG7s5CYUYdZxmmukv+fAHLcBIHM36dImfpQg3WfShZXeArkWlf6QRw24Klcsv8a5A==", + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.10.tgz", + "integrity": "sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg==", "dev": true, "requires": { "chalk": "2.4.2", @@ -10078,6 +11154,22 @@ "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", "dev": true }, + "xml2js": { + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", + "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", + "dev": true, + "requires": { + "sax": ">=0.6.0", + "xmlbuilder": "~9.0.1" + } + }, + "xmlbuilder": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", + "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=", + "dev": true + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index d3a2618..01e28d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "2.1.7", + "version": "2.1.8", "description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.", "main": "dist/lib/src/index.js", "types": "dist/lib/src/index.d.ts", @@ -38,28 +38,30 @@ "author": "Ricardo Ambrogi", "license": "MIT", "devDependencies": { - "@babel/core": "7.6.4", - "@babel/plugin-proposal-class-properties": "7.5.5", + "@babel/core": "7.7.2", + "@babel/plugin-proposal-class-properties": "7.7.0", "@babel/plugin-proposal-object-rest-spread": "7.6.2", "@babel/plugin-transform-runtime": "7.6.2", - "@babel/preset-env": "7.6.3", - "@babel/preset-typescript": "7.6.0", - "@babel/runtime": "7.6.3", - "@types/jest": "24.0.21", + "@babel/plugin-transform-typescript": "^7.7.2", + "@babel/preset-env": "7.7.1", + "@babel/preset-typescript": "^7.7.2", + "@babel/runtime": "7.7.2", + "@types/jest": "^24.0.23", "@types/nock": "10.0.3", - "@types/node": "11.15.0", - "@typescript-eslint/eslint-plugin": "2.6.0", - "@typescript-eslint/parser": "2.6.0", + "@types/node": "11.15.2", + "@typescript-eslint/eslint-plugin": "2.8.0", + "@typescript-eslint/parser": "2.8.0", "babel-loader": "8.0.6", - "coveralls": "3.0.7", + "coveralls": "3.0.8", "eslint": "6.6.0", "jest": "24.9.0", - "nock": "11.6.0", + "nock": "11.7.0", "release-it": "12.4.3", + "ts-jest": "^24.1.0", "ts-loader": "6.2.1", - "typescript": "3.6.4", + "typescript": "3.7.2", "webpack": "4.41.2", - "webpack-cli": "3.3.9" + "webpack-cli": "3.3.10" }, "dependencies": { "https-proxy-agent": "3.0.1" diff --git a/src/__tests__/binLookup.spec.ts b/src/__tests__/binLookup.spec.ts index 3868c1b..0834d7f 100644 --- a/src/__tests__/binLookup.spec.ts +++ b/src/__tests__/binLookup.spec.ts @@ -19,7 +19,7 @@ * See the LICENSE file for more info. */ import nock from "nock"; -import { createMockClientFromResponse } from "../__mocks__/base"; +import {createMockClientFromResponse} from "../__mocks__/base"; import BinLookup from "../services/binLookup"; import {CostEstimateRequest, ThreeDSAvailabilityRequest} from "../typings/binLookup"; import Client from "../client"; @@ -105,7 +105,7 @@ describe("Bin Lookup", function (): void { mcc: "7411", enrolledIn3DSecure: true }, - shopperInteraction: "Ecommerce" + shopperInteraction: CostEstimateRequest.ShopperInteractionEnum.Ecommerce }; scope.post("/getCostEstimate") diff --git a/src/__tests__/checkout.spec.ts b/src/__tests__/checkout.spec.ts index fc585bd..51d3fa0 100644 --- a/src/__tests__/checkout.spec.ts +++ b/src/__tests__/checkout.spec.ts @@ -183,9 +183,12 @@ describe("Checkout", (): void => { const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest(); const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest); expect(paymentsResponse.pspReference).toEqual("8111111111111111"); - expect(paymentsResponse.additionalData["comprafacil.amount"]).toEqual("101.01"); - expect(paymentsResponse.additionalData["comprafacil.deadline"]).toEqual("3"); - expect(paymentsResponse.additionalData["comprafacil.entity"]).toEqual("12345"); + + if (paymentsResponse.additionalData) { + expect(paymentsResponse.additionalData["comprafacil.amount"]).toEqual("101.01"); + expect(paymentsResponse.additionalData["comprafacil.deadline"]).toEqual("3"); + expect(paymentsResponse.additionalData["comprafacil.entity"]).toEqual("12345"); + } }); }); diff --git a/src/__tests__/payout.spec.ts b/src/__tests__/payout.spec.ts index 7568605..e968774 100644 --- a/src/__tests__/payout.spec.ts +++ b/src/__tests__/payout.spec.ts @@ -1,12 +1,15 @@ import nock from "nock"; -import { createMockClientFromResponse } from "../__mocks__/base"; +import {createMockClientFromResponse} from "../__mocks__/base"; import Payout from "../services/payout"; import { ModifyRequest, + PayoutRequest, + Recurring, StoreDetailAndSubmitRequest, - StoreDetailRequest, SubmitRequest, PayoutRequest + StoreDetailRequest, + SubmitRequest } from "../typings/payout"; -import { FRAUD_MANUAL_REVIEW, FRAUD_RESULT_TYPE } from "../typings/constants/apiConstants"; +import {FRAUD_MANUAL_REVIEW, FRAUD_RESULT_TYPE} from "../typings/constants/apiConstants"; import Client from "../client"; const storeDetailAndSubmitThirdParty = JSON.stringify({ @@ -43,9 +46,9 @@ const defaultData = { const mockStoreDetailRequest = (merchantAccount: string): StoreDetailRequest => ({ ...defaultData, - entityType: "NaturalPerson", + entityType: StoreDetailRequest.EntityTypeEnum.NaturalPerson, recurring: { - contract: "ONECLICK" + contract: Recurring.ContractEnum.ONECLICK }, merchantAccount, }); @@ -53,7 +56,7 @@ const mockStoreDetailRequest = (merchantAccount: string): StoreDetailRequest => const mockSubmitRequest = (merchantAccount: string): SubmitRequest => ({ selectedRecurringDetailReference: "LATEST", recurring: { - contract: "ONECLICK" + contract: Recurring.ContractEnum.ONECLICK }, ...defaultData, ...amountAndReference, @@ -95,8 +98,11 @@ describe("PayoutTest", function (): void { const result = await payout.storeDetail(request); expect(result.resultCode).toEqual("[payout-submit-received]"); expect(result.pspReference).toEqual("8515131751004933"); - expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN"); - expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false"); + + if (result.additionalData) { + expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN"); + expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false"); + } }); it("should succeed on store detail", async function (): Promise { @@ -134,8 +140,11 @@ describe("PayoutTest", function (): void { expect(result.resultCode).toEqual("[payout-submit-received]"); expect(result.pspReference).toEqual("8515131751004933"); - expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN"); - expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false"); + + if (result.additionalData) { + expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN"); + expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false"); + } }); it("should succeed on decline third party", async function (): Promise { diff --git a/src/__tests__/recurring.spec.ts b/src/__tests__/recurring.spec.ts index ac4a228..0c8c18f 100644 --- a/src/__tests__/recurring.spec.ts +++ b/src/__tests__/recurring.spec.ts @@ -1,15 +1,16 @@ import nock from "nock"; -import { createMockClientFromResponse } from "../__mocks__/base"; -import { disableSuccess } from "../__mocks__/recurring/disableSuccess"; -import { listRecurringDetailsSuccess } from "../__mocks__/recurring/listRecurringDetailsSuccess"; +import {createMockClientFromResponse} from "../__mocks__/base"; +import {disableSuccess} from "../__mocks__/recurring/disableSuccess"; +import {listRecurringDetailsSuccess} from "../__mocks__/recurring/listRecurringDetailsSuccess"; +import {DisableRequest, Recurring as RecurringType } from "../typings/recurring"; import Recurring from "../services/recurring"; -import { DisableRequest, RecurringDetailsRequest } from "../typings/recurring"; +import { RecurringDetailsRequest } from "../typings/recurring/recurringDetailsRequest"; import Client from "../client"; const createRecurringDetailsRequest = (): RecurringDetailsRequest => { return { merchantAccount: "MerchantAccount", - recurring: {contract: "ONECLICK"}, + recurring: { contract: RecurringType.ContractEnum.ONECLICK }, shopperReference: "test-123", }; }; diff --git a/src/typings/binLookup/amount.ts b/src/typings/binLookup/amount.ts old mode 100755 new mode 100644 index 8d7aa23..160bfc9 --- a/src/typings/binLookup/amount.ts +++ b/src/typings/binLookup/amount.ts @@ -1,22 +1,42 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Amount { + +export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - currency: string; + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; /** - * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; -} \ No newline at end of file + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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/binLookup/cardBin.ts b/src/typings/binLookup/cardBin.ts old mode 100755 new mode 100644 index c927964..46fe167 --- a/src/typings/binLookup/cardBin.ts +++ b/src/typings/binLookup/cardBin.ts @@ -1,54 +1,114 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface CardBin { + +export class CardBin { /** - * The first 6 digit of the card number. Enable this field via merchant account settings. - */ - bin?: string; + * The first 6 digit of the card number. Enable this field via merchant account settings. + */ + 'bin'?: string; /** - * If true, it indicates a commercial card. Enable this field via merchant account settings. - */ - commercial?: boolean; + * If true, it indicates a commercial card. Enable this field via merchant account settings. + */ + 'commercial'?: boolean; /** - * The card funding source. Valid values are: * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * DEFERRED_DEBIT * CHARGED > Enable this field via merchant account settings. - */ - fundingSource?: string; + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + */ + 'fundingSource'?: string; /** - * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". - */ - fundsAvailability?: string; + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + */ + 'fundsAvailability'?: string; /** - * The issuing bank of the card. - */ - issuingBank?: string; + * The issuing bank of the card. + */ + 'issuingBank'?: string; /** - * The country where the card was issued from. - */ - issuingCountry?: string; + * The country where the card was issued from. + */ + 'issuingCountry'?: string; /** - * The currency of the card. - */ - issuingCurrency?: string; + * The currency of the card. + */ + 'issuingCurrency'?: string; /** - * The payment method associated with the card (e.g. visa, mc, or amex). - */ - paymentMethod?: string; + * The payment method associated with the card (e.g. visa, mc, or amex). + */ + 'paymentMethod'?: string; /** - * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". - */ - payoutEligible?: string; + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + */ + 'payoutEligible'?: string; /** - * The last four digits of the card number. - */ - summary?: string; -} \ No newline at end of file + * The last four digits of the card number. + */ + 'summary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "commercial", + "baseName": "commercial", + "type": "boolean" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "issuingBank", + "baseName": "issuingBank", + "type": "string" + }, + { + "name": "issuingCountry", + "baseName": "issuingCountry", + "type": "string" + }, + { + "name": "issuingCurrency", + "baseName": "issuingCurrency", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "summary", + "baseName": "summary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardBin.attributeTypeMap; + } +} + diff --git a/src/typings/binLookup/costEstimateAssumptions.ts b/src/typings/binLookup/costEstimateAssumptions.ts old mode 100755 new mode 100644 index 9857312..6bb1133 --- a/src/typings/binLookup/costEstimateAssumptions.ts +++ b/src/typings/binLookup/costEstimateAssumptions.ts @@ -1,26 +1,51 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface CostEstimateAssumptions { + +export class CostEstimateAssumptions { /** - * If true, the cardholder is expected to successfully authorise via 3D Secure. - */ - assume3DSecureAuthenticated?: boolean; + * If true, the cardholder is expected to successfully authorise via 3D Secure. + */ + 'assume3DSecureAuthenticated'?: boolean; /** - * If true, the transaction is expected to have valid Level 3 data. - */ - assumeLevel3Data?: boolean; + * If true, the transaction is expected to have valid Level 3 data. + */ + 'assumeLevel3Data'?: boolean; /** - * If not zero, the number of installments. - */ - installments?: number; -} \ No newline at end of file + * If not zero, the number of installments. + */ + 'installments'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "assume3DSecureAuthenticated", + "baseName": "assume3DSecureAuthenticated", + "type": "boolean" + }, + { + "name": "assumeLevel3Data", + "baseName": "assumeLevel3Data", + "type": "boolean" + }, + { + "name": "installments", + "baseName": "installments", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return CostEstimateAssumptions.attributeTypeMap; + } +} + diff --git a/src/typings/binLookup/costEstimateRequest.ts b/src/typings/binLookup/costEstimateRequest.ts old mode 100755 new mode 100644 index b501b33..459fd89 --- a/src/typings/binLookup/costEstimateRequest.ts +++ b/src/typings/binLookup/costEstimateRequest.ts @@ -1,55 +1,114 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ + +import { Amount } from './amount'; import { CostEstimateAssumptions } from './costEstimateAssumptions'; import { MerchantDetails } from './merchantDetails'; import { Recurring } from './recurring'; +export class CostEstimateRequest { + 'amount': Amount; + 'assumptions'?: CostEstimateAssumptions; + /** + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request. + */ + 'cardNumber'?: string; + /** + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request. + */ + 'encryptedCard'?: string; + /** + * The merchant account identifier you want to process the (transaction) request with. + */ + 'merchantAccount': string; + 'merchantDetails'?: MerchantDetails; + 'recurring'?: Recurring; + /** + * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: CostEstimateRequest.ShopperInteractionEnum; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; -export interface CostEstimateRequest { - amount: Amount; - assumptions?: CostEstimateAssumptions; - /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request. - */ - cardNumber?: string; - /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Client-Side Encryption library and must contain at least the `number` and `generationtime` fields. > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request. - */ - encryptedCard?: string; - /** - * The merchant account identifier you want to process the (transaction) request with. - */ - merchantAccount: string; - merchantDetails?: MerchantDetails; - recurring?: Recurring; - /** - * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. - */ - selectedRecurringDetailReference?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: CostEstimateRequest.ShopperInteractionEnum; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. - */ - shopperReference?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "assumptions", + "baseName": "assumptions", + "type": "CostEstimateAssumptions" + }, + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "encryptedCard", + "baseName": "encryptedCard", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantDetails", + "baseName": "merchantDetails", + "type": "MerchantDetails" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CostEstimateRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CostEstimateRequest.attributeTypeMap; + } } + export namespace CostEstimateRequest { - export type ShopperInteractionEnum = 'Ecommerce' | 'ContAuth' | 'Moto' | 'POS'; - export const ShopperInteractionEnum = { - Ecommerce: 'Ecommerce' as ShopperInteractionEnum, - ContAuth: 'ContAuth' as ShopperInteractionEnum, - Moto: 'Moto' as ShopperInteractionEnum, - POS: 'POS' as ShopperInteractionEnum - }; -} \ No newline at end of file + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/binLookup/costEstimateResponse.ts b/src/typings/binLookup/costEstimateResponse.ts old mode 100755 new mode 100644 index 27a7936..992d7d0 --- a/src/typings/binLookup/costEstimateResponse.ts +++ b/src/typings/binLookup/costEstimateResponse.ts @@ -1,26 +1,56 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ + +import { Amount } from './amount'; import { CardBin } from './cardBin'; +export class CostEstimateResponse { + 'cardBin'?: CardBin; + 'costEstimateAmount'?: Amount; + /** + * The result of the cost estimation. + */ + 'resultCode'?: string; + /** + * Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on + */ + 'surchargeType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "CardBin" + }, + { + "name": "costEstimateAmount", + "baseName": "costEstimateAmount", + "type": "Amount" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + }, + { + "name": "surchargeType", + "baseName": "surchargeType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CostEstimateResponse.attributeTypeMap; + } +} -export interface CostEstimateResponse { - cardBin?: CardBin; - costEstimateAmount?: Amount; - /** - * The result of the cost estimation. - */ - resultCode?: string; - /** - * Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on - */ - surchargeType?: string; -} \ No newline at end of file diff --git a/src/typings/binLookup/dSPublicKeyDetail.ts b/src/typings/binLookup/dSPublicKeyDetail.ts old mode 100755 new mode 100644 index 83901cd..0ab196d --- a/src/typings/binLookup/dSPublicKeyDetail.ts +++ b/src/typings/binLookup/dSPublicKeyDetail.ts @@ -1,26 +1,51 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface DSPublicKeyDetail { + +export class DSPublicKeyDetail { /** - * Card brand. - */ - brand?: string; + * Card brand. + */ + 'brand'?: string; /** - * Directory Server (DS) identifier. - */ - directoryServerId?: string; + * Directory Server (DS) identifier. + */ + 'directoryServerId'?: string; /** - * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. - */ - publicKey?: string; -} \ No newline at end of file + * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. + */ + 'publicKey'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "directoryServerId", + "baseName": "directoryServerId", + "type": "string" + }, + { + "name": "publicKey", + "baseName": "publicKey", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DSPublicKeyDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binLookup/merchantDetails.ts b/src/typings/binLookup/merchantDetails.ts old mode 100755 new mode 100644 index 41c76ca..66280c0 --- a/src/typings/binLookup/merchantDetails.ts +++ b/src/typings/binLookup/merchantDetails.ts @@ -1,26 +1,51 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface MerchantDetails { + +export class MerchantDetails { /** - * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. - */ - countryCode?: string; + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don\'t use Adyen as the payment authorisation gateway. + */ + 'countryCode'?: string; /** - * If true, indicates that the merchant is enrolled in 3D Secure for the card network. - */ - enrolledIn3DSecure?: boolean; + * If true, indicates that the merchant is enrolled in 3D Secure for the card network. + */ + 'enrolledIn3DSecure'?: boolean; /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). - */ - mcc?: string; -} \ No newline at end of file + * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + */ + 'mcc'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "enrolledIn3DSecure", + "baseName": "enrolledIn3DSecure", + "type": "boolean" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDetails.attributeTypeMap; + } +} + diff --git a/src/typings/binLookup/recurring.ts b/src/typings/binLookup/recurring.ts old mode 100755 new mode 100644 index c4218b2..d5fb5b6 --- a/src/typings/binLookup/recurring.ts +++ b/src/typings/binLookup/recurring.ts @@ -1,47 +1,80 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Recurring { + +export class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payment-glossary#cardsecuritycodecvccvvcid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payment-glossary#cardnotpresentcnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/features/third-party-payouts). - */ - contract?: Recurring.ContractEnum; + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; /** - * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - */ - recurringExpiry?: Date; + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; /** - * Minimum number of days between authorisations. Only for 3D Secure 2. - */ - recurringFrequency?: string; + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; /** - * The name of the token service. - */ - tokenService?: Recurring.TokenServiceEnum; + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } + export namespace Recurring { - export type ContractEnum = 'ONECLICK' | 'RECURRING' | 'PAYOUT'; - export const ContractEnum = { - ONECLICK: 'ONECLICK' as ContractEnum, - RECURRING: 'RECURRING' as ContractEnum, - PAYOUT: 'PAYOUT' as ContractEnum - }; - export type TokenServiceEnum = 'VISATOKENSERVICE' | 'MCTOKENSERVICE'; - export const TokenServiceEnum = { - VISATOKENSERVICE: 'VISATOKENSERVICE' as TokenServiceEnum, - MCTOKENSERVICE: 'MCTOKENSERVICE' as TokenServiceEnum - }; -} \ No newline at end of file + export enum ContractEnum { + ONECLICK = 'ONECLICK', + RECURRING = 'RECURRING', + PAYOUT = 'PAYOUT' + } + export enum TokenServiceEnum { + VISATOKENSERVICE = 'VISATOKENSERVICE', + MCTOKENSERVICE = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/binLookup/threeDS2CardRangeDetail.ts b/src/typings/binLookup/threeDS2CardRangeDetail.ts old mode 100755 new mode 100644 index 7e97057..d0d453a --- a/src/typings/binLookup/threeDS2CardRangeDetail.ts +++ b/src/typings/binLookup/threeDS2CardRangeDetail.ts @@ -1,34 +1,69 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ThreeDS2CardRangeDetail { + +export class ThreeDS2CardRangeDetail { /** - * Card brand. - */ - brandCode?: string; + * Card brand. + */ + 'brandCode'?: string; /** - * BIN end range. - */ - endRange?: string; + * BIN end range. + */ + 'endRange'?: string; /** - * BIN start range. - */ - startRange?: string; + * BIN start range. + */ + 'startRange'?: string; /** - * 3D Secure protocol version. - */ - threeDS2Version?: string; + * 3D Secure protocol version. + */ + 'threeDS2Version'?: string; /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. - */ - threeDSMethodURL?: string; -} \ No newline at end of file + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + */ + 'threeDSMethodURL'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brandCode", + "baseName": "brandCode", + "type": "string" + }, + { + "name": "endRange", + "baseName": "endRange", + "type": "string" + }, + { + "name": "startRange", + "baseName": "startRange", + "type": "string" + }, + { + "name": "threeDS2Version", + "baseName": "threeDS2Version", + "type": "string" + }, + { + "name": "threeDSMethodURL", + "baseName": "threeDSMethodURL", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2CardRangeDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binLookup/threeDSAvailabilityRequest.ts b/src/typings/binLookup/threeDSAvailabilityRequest.ts old mode 100755 new mode 100644 index 4dae741..067c9cf --- a/src/typings/binLookup/threeDSAvailabilityRequest.ts +++ b/src/typings/binLookup/threeDSAvailabilityRequest.ts @@ -1,38 +1,78 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ThreeDSAvailabilityRequest { + +export class ThreeDSAvailabilityRequest { /** - * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api#paymentrequestadditionaldata). - */ - additionalData?: any; + * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api/paymentrequest/paymentrequest-additionaldata). + */ + 'additionalData'?: object; /** - * List of brands. - */ - brands: Array; + * List of brands. + */ + 'brands': Array; /** - * Card number or BIN. - */ - cardNumber?: string; + * Card number or BIN. + */ + 'cardNumber'?: string; /** - * The merchant account identifier. - */ - merchantAccount: string; + * The merchant account identifier. + */ + 'merchantAccount': string; /** - * A recurring detail reference corresponding to a card. - */ - recurringDetailReference?: string; + * A recurring detail reference corresponding to a card. + */ + 'recurringDetailReference'?: string; /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - */ - shopperReference?: string; -} \ No newline at end of file + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSAvailabilityRequest.attributeTypeMap; + } +} + diff --git a/src/typings/binLookup/threeDSAvailabilityResponse.ts b/src/typings/binLookup/threeDSAvailabilityResponse.ts old mode 100755 new mode 100644 index 27c9331..6a54f9d --- a/src/typings/binLookup/threeDSAvailabilityResponse.ts +++ b/src/typings/binLookup/threeDSAvailabilityResponse.ts @@ -1,32 +1,69 @@ /** - * Adyen BinLookup Service - * The BIN Lookup API provides endpoints for retrieving information, such as [cost estimates](https://docs.adyen.com/features/cost-estimation), and 3D Secure supported version based on a given [BIN](https://docs.adyen.com/payments-basics/payment-glossary#bankidentificationnumberbin). + * Adyen BinLookup API + * The BIN Lookup API provides endpoints for retrieving information, such as cost estimates, and 3D Secure supported version based on a given BIN. * - * OpenAPI spec version: 40 + * The version of the OpenAPI document: 50 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { DSPublicKeyDetail } from './dSPublicKeyDetail'; + */ + +import { BinDetail } from './binDetail'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; +export class ThreeDSAvailabilityResponse { + 'binDetails'?: BinDetail; + /** + * List of Directory Server (DS) public keys. + */ + 'dsPublicKeys'?: Array; + /** + * Indicator if 3D Secure 1 is supported. + */ + 'threeDS1Supported'?: boolean; + /** + * List of brand and card range pairs. + */ + 'threeDS2CardRangeDetails'?: Array; + /** + * Indicator if 3D Secure 2 is supported. + */ + 'threeDS2supported'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "binDetails", + "baseName": "binDetails", + "type": "BinDetail" + }, + { + "name": "dsPublicKeys", + "baseName": "dsPublicKeys", + "type": "Array" + }, + { + "name": "threeDS1Supported", + "baseName": "threeDS1Supported", + "type": "boolean" + }, + { + "name": "threeDS2CardRangeDetails", + "baseName": "threeDS2CardRangeDetails", + "type": "Array" + }, + { + "name": "threeDS2supported", + "baseName": "threeDS2supported", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ThreeDSAvailabilityResponse.attributeTypeMap; + } +} -export interface ThreeDSAvailabilityResponse { - /** - * List of Directory Server (DS) public keys. - */ - dsPublicKeys?: Array; - /** - * Indicator if 3D Secure 1 is supported. - */ - threeDS1Supported?: boolean; - /** - * List of brand and card range pairs. - */ - threeDS2CardRangeDetails?: Array; - /** - * Indicator if 3D Secure 2 is supported. - */ - threeDS2supported?: boolean; -} \ No newline at end of file diff --git a/src/typings/checkout/accountInfo.ts b/src/typings/checkout/accountInfo.ts old mode 100755 new mode 100644 index 9c7339c..c5022cc --- a/src/typings/checkout/accountInfo.ts +++ b/src/typings/checkout/accountInfo.ts @@ -1,126 +1,235 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface AccountInfo { + +export class AccountInfo { /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - accountAgeIndicator?: AccountInfo.AccountAgeIndicatorEnum; + * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; /** - * Date when the shopper's account was last changed. - */ - accountChangeDate?: Date; + * Date when the shopper\'s account was last changed. + */ + 'accountChangeDate'?: Date; /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - accountChangeIndicator?: AccountInfo.AccountChangeIndicatorEnum; + * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; /** - * Date when the shopper's account was created. - */ - accountCreationDate?: Date; + * Date when the shopper\'s account was created. + */ + 'accountCreationDate'?: Date; /** - * Number of attempts the shopper tried to add a card to their account in the last day. - */ - addCardAttemptsDay?: number; + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + */ + 'accountType'?: AccountInfo.AccountTypeEnum; /** - * Date the selected delivery address was last used. - */ - deliveryAddressUsageDate?: Date; + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + 'addCardAttemptsDay'?: number; /** - * Indicator for the length of time since this delivery address was last used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - deliveryAddressUsageIndicator?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + * Date the selected delivery address was first used. + */ + 'deliveryAddressUsageDate'?: Date; /** - * Shopper's home phone number (including the country code). - */ - homePhone?: string; + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; /** - * Shopper's mobile phone number (including the country code). - */ - mobilePhone?: string; + * Shopper\'s home phone number (including the country code). + */ + 'homePhone'?: string; /** - * Date when the shopper last changed their password. - */ - passwordChangeDate?: Date; + * Shopper\'s mobile phone number (including the country code). + */ + 'mobilePhone'?: string; /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - passwordChangeIndicator?: AccountInfo.PasswordChangeIndicatorEnum; + * Date when the shopper last changed their password. + */ + 'passwordChangeDate'?: Date; /** - * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - */ - pastTransactionsDay?: number; + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; /** - * Number of all transactions (successful and abandoned) from this shopper in the past year. - */ - pastTransactionsYear?: number; + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + 'pastTransactionsDay'?: number; /** - * Date this payment method was added to the shopper's account. - */ - paymentAccountAge?: Date; + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + 'pastTransactionsYear'?: number; /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - paymentAccountIndicator?: AccountInfo.PaymentAccountIndicatorEnum; + * Date this payment method was added to the shopper\'s account. + */ + 'paymentAccountAge'?: Date; /** - * Number of successful purchases in the last six months. - */ - purchasesLast6Months?: number; + * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; /** - * Whether suspicious activity was recorded on this account. - */ - suspiciousActivity?: boolean; + * Number of successful purchases in the last six months. + */ + 'purchasesLast6Months'?: number; /** - * Shopper's work phone number (including the country code). - */ - workPhone?: string; + * Whether suspicious activity was recorded on this account. + */ + 'suspiciousActivity'?: boolean; + /** + * Shopper\'s work phone number (including the country code). + */ + 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } } + export namespace AccountInfo { - export type AccountAgeIndicatorEnum = 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const AccountAgeIndicatorEnum = { - NotApplicable: 'notApplicable' as AccountAgeIndicatorEnum, - ThisTransaction: 'thisTransaction' as AccountAgeIndicatorEnum, - LessThan30Days: 'lessThan30Days' as AccountAgeIndicatorEnum, - From30To60Days: 'from30To60Days' as AccountAgeIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as AccountAgeIndicatorEnum - }; - export type AccountChangeIndicatorEnum = 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const AccountChangeIndicatorEnum = { - ThisTransaction: 'thisTransaction' as AccountChangeIndicatorEnum, - LessThan30Days: 'lessThan30Days' as AccountChangeIndicatorEnum, - From30To60Days: 'from30To60Days' as AccountChangeIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as AccountChangeIndicatorEnum - }; - export type DeliveryAddressUsageIndicatorEnum = 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const DeliveryAddressUsageIndicatorEnum = { - ThisTransaction: 'thisTransaction' as DeliveryAddressUsageIndicatorEnum, - LessThan30Days: 'lessThan30Days' as DeliveryAddressUsageIndicatorEnum, - From30To60Days: 'from30To60Days' as DeliveryAddressUsageIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as DeliveryAddressUsageIndicatorEnum - }; - export type PasswordChangeIndicatorEnum = 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const PasswordChangeIndicatorEnum = { - NotApplicable: 'notApplicable' as PasswordChangeIndicatorEnum, - ThisTransaction: 'thisTransaction' as PasswordChangeIndicatorEnum, - LessThan30Days: 'lessThan30Days' as PasswordChangeIndicatorEnum, - From30To60Days: 'from30To60Days' as PasswordChangeIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as PasswordChangeIndicatorEnum - }; - export type PaymentAccountIndicatorEnum = 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const PaymentAccountIndicatorEnum = { - NotApplicable: 'notApplicable' as PaymentAccountIndicatorEnum, - ThisTransaction: 'thisTransaction' as PaymentAccountIndicatorEnum, - LessThan30Days: 'lessThan30Days' as PaymentAccountIndicatorEnum, - From30To60Days: 'from30To60Days' as PaymentAccountIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as PaymentAccountIndicatorEnum - }; -} \ No newline at end of file + export enum AccountAgeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountChangeIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountTypeEnum { + NotApplicable = 'notApplicable', + Credit = 'credit', + Debit = 'debit' + } + export enum DeliveryAddressUsageIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PasswordChangeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PaymentAccountIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } +} diff --git a/src/typings/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts new file mode 100644 index 0000000..a0156f9 --- /dev/null +++ b/src/typings/checkout/additionalData3DSecure.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalData3DSecure { + /** + * This parameter indicates that you are able to process 3D Secure 2 transactions natively on your payment page. Send this field when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/checkout/3d-secure/native-3ds2), such as Components or Drop-in. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. > This parameter only indicates your readiness to support 3D Secure 2 natively on Drop-in or Components. To specify that you want to perform 3D Secure on a transaction, use Dynamic 3D Secure or send the executeThreeD parameter. + */ + 'allow3DS2'?: string; + /** + * This parameter indicates if you want to perform 3D Secure authentication on a transaction or not. Allowed values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. > Alternatively, you can also use Dynamic 3D Secure to configure rules for applying 3D Secure. + */ + 'executeThreeD'?: string; + /** + * In case of Secure+, this field must be set to **CUPSecurePlus**. + */ + 'mpiImplementationType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allow3DS2", + "baseName": "allow3DS2", + "type": "string" + }, + { + "name": "executeThreeD", + "baseName": "executeThreeD", + "type": "string" + }, + { + "name": "mpiImplementationType", + "baseName": "mpiImplementationType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalData3DSecure.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts new file mode 100644 index 0000000..ac9b38d --- /dev/null +++ b/src/typings/checkout/additionalDataAirline.ts @@ -0,0 +1,267 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataAirline { + /** + * Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 + */ + 'airlinePassengerName'?: string; + /** + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4 + */ + 'airlineComputerizedReservationSystem'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3 + */ + 'airlineAirlineCode'?: string; + /** + * The ticket\'s unique identifier. * minLength: 1 * maxLength: 150 + */ + 'airlineTicketNumber'?: string; + /** + * Flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 * maxLength: 16 + */ + 'airlineFlightDate'?: string; + /** + * Reference number; alphanumeric. * minLength: 0 * maxLength: 20 + */ + 'airlineCustomerReferenceNumber'?: string; + /** + * Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 + */ + 'airlineTicketIssueAddress'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineAirlineDesignatorCode'?: string; + /** + * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 + */ + 'airlineTravelAgencyCode'?: string; + /** + * The name of the travel agency. * minLength: 1 * maxLength: 25 + */ + 'airlineTravelAgencyName'?: string; + /** + * 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 + */ + 'airlineAgencyPlanName'?: string; + /** + * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 + */ + 'airlineAgencyInvoiceNumber'?: string; + /** + * Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18 + */ + 'airlineBoardingFee'?: string; + /** + * Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDepartAirport'?: string; + /** + * The flight identifier. * minLength: 1 * maxLength: 5 + */ + 'airlineLegFlightNumber'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineLegCarrierCode'?: string; + /** + * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 + */ + 'airlineLegFareBaseCode'?: string; + /** + * 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegClassOfTravel'?: string; + /** + * 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegStopOverCode'?: string; + /** + * Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDestinationCode'?: string; + /** + * Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16 + */ + 'airlineLegDateOfTravel'?: string; + /** + * [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12 + */ + 'airlineLegDepartTax'?: string; + /** + * Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerFirstName'?: string; + /** + * Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerLastName'?: string; + /** + * Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6 + */ + 'airlinePassengerTravellerType'?: string; + /** + * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30 + */ + 'airlinePassengerTelephoneNumber'?: string; + /** + * Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + */ + 'airlinePassengerDateOfBirth'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airlinePassengerName", + "baseName": "airline.passenger_name", + "type": "string" + }, + { + "name": "airlineComputerizedReservationSystem", + "baseName": "airline.computerized_reservation_system", + "type": "string" + }, + { + "name": "airlineAirlineCode", + "baseName": "airline.airline_code", + "type": "string" + }, + { + "name": "airlineTicketNumber", + "baseName": "airline.ticket_number", + "type": "string" + }, + { + "name": "airlineFlightDate", + "baseName": "airline.flight_date", + "type": "string" + }, + { + "name": "airlineCustomerReferenceNumber", + "baseName": "airline.customer_reference_number", + "type": "string" + }, + { + "name": "airlineTicketIssueAddress", + "baseName": "airline.ticket_issue_address", + "type": "string" + }, + { + "name": "airlineAirlineDesignatorCode", + "baseName": "airline.airline_designator_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyCode", + "baseName": "airline.travel_agency_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyName", + "baseName": "airline.travel_agency_name", + "type": "string" + }, + { + "name": "airlineAgencyPlanName", + "baseName": "airline.agency_plan_name", + "type": "string" + }, + { + "name": "airlineAgencyInvoiceNumber", + "baseName": "airline.agency_invoice_number", + "type": "string" + }, + { + "name": "airlineBoardingFee", + "baseName": "airline.boarding_fee", + "type": "string" + }, + { + "name": "airlineLegDepartAirport", + "baseName": "airline.leg.depart_airport", + "type": "string" + }, + { + "name": "airlineLegFlightNumber", + "baseName": "airline.leg.flight_number", + "type": "string" + }, + { + "name": "airlineLegCarrierCode", + "baseName": "airline.leg.carrier_code", + "type": "string" + }, + { + "name": "airlineLegFareBaseCode", + "baseName": "airline.leg.fare_base_code", + "type": "string" + }, + { + "name": "airlineLegClassOfTravel", + "baseName": "airline.leg.class_of_travel", + "type": "string" + }, + { + "name": "airlineLegStopOverCode", + "baseName": "airline.leg.stop_over_code", + "type": "string" + }, + { + "name": "airlineLegDestinationCode", + "baseName": "airline.leg.destination_code", + "type": "string" + }, + { + "name": "airlineLegDateOfTravel", + "baseName": "airline.leg.date_of_travel", + "type": "string" + }, + { + "name": "airlineLegDepartTax", + "baseName": "airline.leg.depart_tax", + "type": "string" + }, + { + "name": "airlinePassengerFirstName", + "baseName": "airline.passenger.first_name", + "type": "string" + }, + { + "name": "airlinePassengerLastName", + "baseName": "airline.passenger.last_name", + "type": "string" + }, + { + "name": "airlinePassengerTravellerType", + "baseName": "airline.passenger.traveller_type", + "type": "string" + }, + { + "name": "airlinePassengerTelephoneNumber", + "baseName": "airline.passenger.telephone_number", + "type": "string" + }, + { + "name": "airlinePassengerDateOfBirth", + "baseName": "airline.passenger.date_of_birth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataAirline.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataCarRental.ts b/src/typings/checkout/additionalDataCarRental.ts new file mode 100644 index 0000000..15b8451 --- /dev/null +++ b/src/typings/checkout/additionalDataCarRental.ts @@ -0,0 +1,231 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataCarRental { + /** + * The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 14 + */ + 'carRentalRentalAgreementNumber'?: string; + /** + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 + */ + 'carRentalRenterName'?: string; + /** + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalReturnCity'?: string; + /** + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 + */ + 'carRentalReturnStateProvince'?: string; + /** + * The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 + */ + 'carRentalReturnCountry'?: string; + /** + * Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 + */ + 'carRentalReturnLocationId'?: string; + /** + * The last date to return the car by. * Date format: `yyyyMMdd` + */ + 'carRentalReturnDate'?: string; + /** + * Pick-up date. * Date format: `yyyyMMdd` + */ + 'carRentalCheckOutDate'?: string; + /** + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + */ + 'carRentalCustomerServiceTollFreeNumber'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRate'?: string; + /** + * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + */ + 'carRentalRateIndicator'?: string; + /** + * The location from which the car is rented. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalLocationCity'?: string; + /** + * Pick-up date. * Date format: `yyyyMMdd` + */ + 'carRentalLocationStateProvince'?: string; + /** + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + */ + 'carRentalLocationCountry'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRentalClassId'?: string; + /** + * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + */ + 'carRentalDaysRented'?: string; + /** + * Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * 0 - Tax was not collected * 1 - Goods or services were tax exempt + */ + 'carRentalTaxExemptIndicator'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalFuelCharges'?: string; + /** + * Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalInsuranceCharges'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * 0 - Not applicable. * 1 - Customer was a no show. + */ + 'carRentalNoShowIndicator'?: string; + /** + * Charge associated with not returning a vehicle to the original rental location. + */ + 'carRentalOneWayDropOffCharges'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carRentalRentalAgreementNumber", + "baseName": "carRental.rentalAgreementNumber", + "type": "string" + }, + { + "name": "carRentalRenterName", + "baseName": "carRental.renterName", + "type": "string" + }, + { + "name": "carRentalReturnCity", + "baseName": "carRental.returnCity", + "type": "string" + }, + { + "name": "carRentalReturnStateProvince", + "baseName": "carRental.returnStateProvince", + "type": "string" + }, + { + "name": "carRentalReturnCountry", + "baseName": "carRental.returnCountry", + "type": "string" + }, + { + "name": "carRentalReturnLocationId", + "baseName": "carRental.returnLocationId", + "type": "string" + }, + { + "name": "carRentalReturnDate", + "baseName": "carRental.returnDate", + "type": "string" + }, + { + "name": "carRentalCheckOutDate", + "baseName": "carRental.checkOutDate", + "type": "string" + }, + { + "name": "carRentalCustomerServiceTollFreeNumber", + "baseName": "carRental.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "carRentalRate", + "baseName": "carRental.rate", + "type": "string" + }, + { + "name": "carRentalRateIndicator", + "baseName": "carRental.rateIndicator", + "type": "string" + }, + { + "name": "carRentalLocationCity", + "baseName": "carRental.locationCity", + "type": "string" + }, + { + "name": "carRentalLocationStateProvince", + "baseName": "carRental.locationStateProvince", + "type": "string" + }, + { + "name": "carRentalLocationCountry", + "baseName": "carRental.locationCountry", + "type": "string" + }, + { + "name": "carRentalRentalClassId", + "baseName": "carRental.rentalClassId", + "type": "string" + }, + { + "name": "carRentalDaysRented", + "baseName": "carRental.daysRented", + "type": "string" + }, + { + "name": "carRentalTaxExemptIndicator", + "baseName": "carRental.taxExemptIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "carRentalFuelCharges", + "baseName": "carRental.fuelCharges", + "type": "string" + }, + { + "name": "carRentalInsuranceCharges", + "baseName": "carRental.insuranceCharges", + "type": "string" + }, + { + "name": "carRentalNoShowIndicator", + "baseName": "carRental.noShowIndicator", + "type": "string" + }, + { + "name": "carRentalOneWayDropOffCharges", + "baseName": "carRental.oneWayDropOffCharges", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCarRental.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataCommon.ts b/src/typings/checkout/additionalDataCommon.ts new file mode 100644 index 0000000..7784656 --- /dev/null +++ b/src/typings/checkout/additionalDataCommon.ts @@ -0,0 +1,78 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataCommon { + /** + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/checkout/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + */ + 'authorisationType'?: string; + /** + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'customRoutingFlag'?: string; + /** + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardonFile** to ensure that the transaction is classified as MIT. + */ + 'networkTxReference'?: string; + /** + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + */ + 'overwriteBrand'?: string; + /** + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + */ + 'requestedTestErrorResponseCode'?: string; + /** + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID, which is used by schemes to identify the merchant. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + */ + 'subMerchantID'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authorisationType", + "baseName": "authorisationType", + "type": "string" + }, + { + "name": "customRoutingFlag", + "baseName": "customRoutingFlag", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "overwriteBrand", + "baseName": "overwriteBrand", + "type": "string" + }, + { + "name": "requestedTestErrorResponseCode", + "baseName": "RequestedTestErrorResponseCode", + "type": "string" + }, + { + "name": "subMerchantID", + "baseName": "subMerchantID", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCommon.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts new file mode 100644 index 0000000..373aabc --- /dev/null +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -0,0 +1,177 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataLevel23 { + /** + * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataTotalTaxAmount'?: number; + /** + * Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataFreightAmount'?: number; + /** + * Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataDutyAmount'?: number; + /** + * The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. + */ + 'enhancedSchemeDataDestinationPostalCode'?: string; + /** + * Destination state or province code. Encoding: ASCII.Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationStateProvinceCode'?: string; + /** + * The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. + */ + 'enhancedSchemeDataShipFromPostalCode'?: string; + /** + * Destination country code. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationCountryCode'?: string; + /** + * Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. + */ + 'enhancedSchemeDataOrderDate'?: string; + /** + * Item commodity code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrCommodityCode'?: string; + /** + * Item description. Encoding: ASCII. Max length: 26 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDescription'?: string; + /** + * Product code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrProductCode'?: string; + /** + * Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrQuantity'?: number; + /** + * Item unit of measurement. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure'?: string; + /** + * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitPrice'?: number; + /** + * Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDiscountAmount'?: number; + /** + * Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrTotalAmount'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataFreightAmount", + "baseName": "enhancedSchemeData.freightAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataDutyAmount", + "baseName": "enhancedSchemeData.dutyAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataDestinationPostalCode", + "baseName": "enhancedSchemeData.destinationPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationStateProvinceCode", + "baseName": "enhancedSchemeData.destinationStateProvinceCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataShipFromPostalCode", + "baseName": "enhancedSchemeData.shipFromPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationCountryCode", + "baseName": "enhancedSchemeData.destinationCountryCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataOrderDate", + "baseName": "enhancedSchemeData.orderDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDescription", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrProductCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrQuantity", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", + "type": "number" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", + "type": "number" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLevel23.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataLodging.ts b/src/typings/checkout/additionalDataLodging.ts new file mode 100644 index 0000000..564fa0d --- /dev/null +++ b/src/typings/checkout/additionalDataLodging.ts @@ -0,0 +1,177 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataLodging { + /** + * The toll free phone number for the hotel/lodgings. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingCustomerServiceTollFreeNumber'?: string; + /** + * The arrival date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckInDate'?: string; + /** + * The departure date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckOutDate'?: string; + /** + * Card acceptor’s internal invoice or billing ID reference number. * Format: Alphanumeric * maxLength: 25 + */ + 'lodgingFolioNumber'?: string; + /** + * Identifies specific lodging property location by its local phone number. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingPropertyPhoneNumber'?: string; + /** + * The rate of the room. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Rate'?: string; + /** + * The total amount of tax to be paid. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Tax'?: string; + /** + * Total number of nights the room will be rented. * Format: Numeric * maxLength: 4 + */ + 'lodgingRoom1NumberOfNights'?: string; + /** + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: Alphabetic * maxLength: 1 + */ + 'lodgingFireSafetyActIndicator'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * The folio cash advances. * Format: Numeric * maxLength: 12 + */ + 'lodgingFolioCashAdvances'?: string; + /** + * Any charges for food and beverages associated with the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingFoodBeverageCharges'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). Value should be Y or N. * Format: Numeric * maxLength: 1 + */ + 'lodgingNoShowIndicator'?: string; + /** + * Prepaid expenses for the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingPrepaidExpenses'?: string; + /** + * Total tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalTax'?: string; + /** + * Total room tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalRoomTax'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lodgingCustomerServiceTollFreeNumber", + "baseName": "lodging.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "lodgingCheckInDate", + "baseName": "lodging.checkInDate", + "type": "string" + }, + { + "name": "lodgingCheckOutDate", + "baseName": "lodging.checkOutDate", + "type": "string" + }, + { + "name": "lodgingFolioNumber", + "baseName": "lodging.folioNumber", + "type": "string" + }, + { + "name": "lodgingPropertyPhoneNumber", + "baseName": "lodging.propertyPhoneNumber", + "type": "string" + }, + { + "name": "lodgingRoom1Rate", + "baseName": "lodging.room1.rate", + "type": "string" + }, + { + "name": "lodgingRoom1Tax", + "baseName": "lodging.room1.tax", + "type": "string" + }, + { + "name": "lodgingRoom1NumberOfNights", + "baseName": "lodging.room1.numberOfNights", + "type": "string" + }, + { + "name": "lodgingFireSafetyActIndicator", + "baseName": "lodging.fireSafetyActIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "lodgingFolioCashAdvances", + "baseName": "lodging.folioCashAdvances", + "type": "string" + }, + { + "name": "lodgingFoodBeverageCharges", + "baseName": "lodging.foodBeverageCharges", + "type": "string" + }, + { + "name": "lodgingNoShowIndicator", + "baseName": "lodging.noShowIndicator", + "type": "string" + }, + { + "name": "lodgingPrepaidExpenses", + "baseName": "lodging.prepaidExpenses", + "type": "string" + }, + { + "name": "lodgingTotalTax", + "baseName": "lodging.totalTax", + "type": "string" + }, + { + "name": "lodgingTotalRoomTax", + "baseName": "lodging.totalRoomTax", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLodging.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataOpenInvoice.ts b/src/typings/checkout/additionalDataOpenInvoice.ts new file mode 100644 index 0000000..50f31d0 --- /dev/null +++ b/src/typings/checkout/additionalDataOpenInvoice.ts @@ -0,0 +1,123 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataOpenInvoice { + /** + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + */ + 'openinvoicedataNumberOfLines'?: number; + /** + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + */ + 'openinvoicedataMerchantData'?: string; + /** + * Required for the Klarna account, identifying an installment plan. Include Klarna’s `pclassid` for the installment plan. + */ + 'openinvoicedataInstallmentConfigurationKey'?: string; + /** + * The three-character ISO currency code. + */ + 'openinvoicedataLineItemNrCurrencyCode'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'openinvoicedataLineItemNrDescription'?: string; + /** + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + */ + 'openinvoicedataLineItemNrItemAmount'?: number; + /** + * The VAT due for one item in the invoice line, represented in minor units. + */ + 'openinvoicedataLineItemNrItemVatAmount'?: number; + /** + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + */ + 'openinvoicedataLineItemNrItemVatPercentage'?: number; + /** + * A unique id for this item. Required for RatePay if the description of each item is not unique. + */ + 'openinvoicedataLineItemNrItemId'?: string; + /** + * The number of units purchased of a specific product. + */ + 'openinvoicedataLineItemNrNumberOfItems'?: number; + /** + * The country-specific VAT category a product falls under. Allowed values: * High * Low * None. + */ + 'openinvoicedataLineItemNrVatCategory'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "openinvoicedataNumberOfLines", + "baseName": "openinvoicedata.numberOfLines", + "type": "number" + }, + { + "name": "openinvoicedataMerchantData", + "baseName": "openinvoicedata.merchantData", + "type": "string" + }, + { + "name": "openinvoicedataInstallmentConfigurationKey", + "baseName": "openinvoicedata.installmentConfigurationKey", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrCurrencyCode", + "baseName": "openinvoicedata.line[itemNr].currencyCode", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrDescription", + "baseName": "openinvoicedata.line[itemNr].description", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemAmount", + "baseName": "openinvoicedata.line[itemNr].itemAmount", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrItemVatAmount", + "baseName": "openinvoicedata.line[itemNr].itemVatAmount", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrItemVatPercentage", + "baseName": "openinvoicedata.line[itemNr].itemVatPercentage", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrItemId", + "baseName": "openinvoicedata.line[itemNr].itemId", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrNumberOfItems", + "baseName": "openinvoicedata.line[itemNr].numberOfItems", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrVatCategory", + "baseName": "openinvoicedata.line[itemNr].vatCategory", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpenInvoice.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataRatepay.ts b/src/typings/checkout/additionalDataRatepay.ts new file mode 100644 index 0000000..c385ade --- /dev/null +++ b/src/typings/checkout/additionalDataRatepay.ts @@ -0,0 +1,96 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRatepay { + /** + * Amount the customer has to pay each month. + */ + 'ratepayInstallmentAmount'?: number; + /** + * Amount of the last installment. + */ + 'ratepayLastInstallmentAmount'?: number; + /** + * Interest rate of this installment. Double + */ + 'ratepayInterestRate'?: number; + /** + * Calendar day of the first payment. + */ + 'ratepayPaymentFirstday'?: number; + /** + * Identification name or number for the invoice, defined by the merchant. + */ + 'ratepaydataInvoiceId'?: string; + /** + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + */ + 'ratepaydataInvoiceDate'?: string; + /** + * Date the merchant delivered the goods to the customer. + */ + 'ratepaydataDeliveryDate'?: string; + /** + * Date by which the customer must settle the payment. + */ + 'ratepaydataDueDate'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ratepayInstallmentAmount", + "baseName": "ratepay.installmentAmount", + "type": "number" + }, + { + "name": "ratepayLastInstallmentAmount", + "baseName": "ratepay.lastInstallmentAmount", + "type": "number" + }, + { + "name": "ratepayInterestRate", + "baseName": "ratepay.interestRate", + "type": "number" + }, + { + "name": "ratepayPaymentFirstday", + "baseName": "ratepay.paymentFirstday", + "type": "number" + }, + { + "name": "ratepaydataInvoiceId", + "baseName": "ratepaydata.invoiceId", + "type": "string" + }, + { + "name": "ratepaydataInvoiceDate", + "baseName": "ratepaydata.invoiceDate", + "type": "string" + }, + { + "name": "ratepaydataDeliveryDate", + "baseName": "ratepaydata.deliveryDate", + "type": "string" + }, + { + "name": "ratepaydataDueDate", + "baseName": "ratepaydata.dueDate", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRatepay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataRetry.ts b/src/typings/checkout/additionalDataRetry.ts new file mode 100644 index 0000000..494be1a --- /dev/null +++ b/src/typings/checkout/additionalDataRetry.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRetry { + /** + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retryChainAttemptNumber'?: number; + /** + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retryOrderAttemptNumber'?: number; + /** + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retrySkipRetry'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "retryChainAttemptNumber", + "baseName": "retry.chainAttemptNumber", + "type": "number" + }, + { + "name": "retryOrderAttemptNumber", + "baseName": "retry.orderAttemptNumber", + "type": "number" + }, + { + "name": "retrySkipRetry", + "baseName": "retry.skipRetry", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRetry.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataRisk.ts b/src/typings/checkout/additionalDataRisk.ts new file mode 100644 index 0000000..9adca3c --- /dev/null +++ b/src/typings/checkout/additionalDataRisk.ts @@ -0,0 +1,384 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRisk { + /** + * The method to deliver the goods to the shopper. Used in [Delivery Method](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#delivery-method) check. + */ + 'riskdataDeliveryMethod'?: string; + /** + * The creation date of a shopper account on the merchant\'s platform. * Format: `yyyy-MM-dd HH:mm:ss` Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataAccountCreationDate'?: string; + /** + * This specifies the date when the shopper\'s account was created. * Format: `yyyy-MM-dd HH:mm:ss.sssZ` Used in [Shopper Account Age check](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#shopper-account-age). + */ + 'riskdataShopperAccountCreationDate'?: string; + /** + * A risk score coming from a system external to Adyen. * Format: Numeric (when used in custom risk checks) Used in [External Risk Score check](https://docs.adyen.com/risk-management/configure-standard-risk-rules/external-risk-rules#external-risk-score-generic). Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataExternalRiskScore'?: string; + /** + * Usually a boolean representing the fraud risk assessment coming from a system external to Adyen. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataExternalSuspectedFraud'?: string; + /** + * A code corresponding to a telecom network operator Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorCode'?: string; + /** + * Country corresponding to the telecom network operator. Usually a two letter country code. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorCountry'?: object; + /** + * Name of a telecom network operator e.g. Vodafone, Orange etc. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorName'?: string; + /** + * Product code of a telecom product. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorProductCode'?: string; + /** + * Represents the payment method as it is understood by the merchant. Does not necessarily have to coincide with the payment method determined by Adyen. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). For visacheckout, masterpass, and paywithgoogle, use `riskdata.paymentDataSource` instead. + */ + 'riskdataPaymentMethod'?: string; + /** + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules) for visacheckout, masterpass, and paywithgoogle. + */ + 'riskdataPaymentDataSource'?: string; + /** + * The number of previous non-fraudulent orders made by a shopper. * Format: Numeric Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataPreviousSuccessfulOrders'?: string; + /** + * The referral method/reason for joining the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataReferralMethod'?: string; + /** + * The user name of a member who referred somebody to the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataReferrerUserName'?: string; + /** + * The id of the risk profile to use instead of the merchant account\'s currently set risk profile. + */ + 'riskdataRiskProfileId'?: string; + /** + * A secondary phone number for a user of the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataSecondaryPhoneNumber'?: object; + /** + * Name of the shipping method. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataShippingMethod'?: string; + /** + * The shopper country as determined by the merchant, usually as a 2 letter country code. Does not have to coincide with the Adyen determined shopper country. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataShopperCountry'?: string; + /** + * Usually a SIM distribution company name e.g. Core, Elite, GK Tel etc. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataSimDistributor'?: string; + /** + * User name of an account on the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataUserName'?: string; + /** + * Usually a user\'s loyalty status e.g. Gold, Silver etc. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataUserStatus'?: string; + /** + * Name of the browser language used by the shopper. Usually a two letter country code (e.g. NL, FR, US etc.) Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataBrowserLanguage'?: string; + /** + * ID of the item. + */ + 'riskdataBasketItemItemNrItemID'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'riskdataBasketItemItemNrProductTitle'?: string; + /** + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataBasketItemItemNrAmountPerItem'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataBasketItemItemNrCurrency'?: string; + /** + * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + */ + 'riskdataBasketItemItemNrUpc'?: string; + /** + * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + */ + 'riskdataBasketItemItemNrSku'?: string; + /** + * Brand of the item. + */ + 'riskdataBasketItemItemNrBrand'?: string; + /** + * Manufacturer of the item. + */ + 'riskdataBasketItemItemNrManufacturer'?: string; + /** + * Category of the item. + */ + 'riskdataBasketItemItemNrCategory'?: string; + /** + * Color of the item. + */ + 'riskdataBasketItemItemNrColor'?: string; + /** + * Size of the item. + */ + 'riskdataBasketItemItemNrSize'?: string; + /** + * Quantity of the item purchased. + */ + 'riskdataBasketItemItemNrQuantity'?: string; + /** + * Email associated with the given product in the basket (usually in electronic gift cards). + */ + 'riskdataBasketItemItemNrReceiverEmail'?: string; + /** + * Code of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionCode'?: string; + /** + * Name of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionName'?: string; + /** + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountAmount'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountCurrency'?: string; + /** + * Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountPercentage'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "riskdataDeliveryMethod", + "baseName": "riskdata.deliveryMethod", + "type": "string" + }, + { + "name": "riskdataAccountCreationDate", + "baseName": "riskdata.accountCreationDate", + "type": "string" + }, + { + "name": "riskdataShopperAccountCreationDate", + "baseName": "riskdata.shopperAccountCreationDate", + "type": "string" + }, + { + "name": "riskdataExternalRiskScore", + "baseName": "riskdata.externalRiskScore", + "type": "string" + }, + { + "name": "riskdataExternalSuspectedFraud", + "baseName": "riskdata.externalSuspectedFraud", + "type": "string" + }, + { + "name": "riskdataOperatorCode", + "baseName": "riskdata.operatorCode", + "type": "string" + }, + { + "name": "riskdataOperatorCountry", + "baseName": "riskdata.operatorCountry", + "type": "object" + }, + { + "name": "riskdataOperatorName", + "baseName": "riskdata.operatorName", + "type": "string" + }, + { + "name": "riskdataOperatorProductCode", + "baseName": "riskdata.operatorProductCode", + "type": "string" + }, + { + "name": "riskdataPaymentMethod", + "baseName": "riskdata.paymentMethod", + "type": "string" + }, + { + "name": "riskdataPaymentDataSource", + "baseName": "riskdata.paymentDataSource", + "type": "string" + }, + { + "name": "riskdataPreviousSuccessfulOrders", + "baseName": "riskdata.previousSuccessfulOrders", + "type": "string" + }, + { + "name": "riskdataReferralMethod", + "baseName": "riskdata.referralMethod", + "type": "string" + }, + { + "name": "riskdataReferrerUserName", + "baseName": "riskdata.referrerUserName", + "type": "string" + }, + { + "name": "riskdataRiskProfileId", + "baseName": "riskdata.riskProfileId", + "type": "string" + }, + { + "name": "riskdataSecondaryPhoneNumber", + "baseName": "riskdata.secondaryPhoneNumber", + "type": "object" + }, + { + "name": "riskdataShippingMethod", + "baseName": "riskdata.shippingMethod", + "type": "string" + }, + { + "name": "riskdataShopperCountry", + "baseName": "riskdata.shopperCountry", + "type": "string" + }, + { + "name": "riskdataSimDistributor", + "baseName": "riskdata.simDistributor", + "type": "string" + }, + { + "name": "riskdataUserName", + "baseName": "riskdata.userName", + "type": "string" + }, + { + "name": "riskdataUserStatus", + "baseName": "riskdata.userStatus", + "type": "string" + }, + { + "name": "riskdataBrowserLanguage", + "baseName": "riskdata.browserLanguage", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrItemID", + "baseName": "riskdata.basket.item[itemNr].itemID", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrProductTitle", + "baseName": "riskdata.basket.item[itemNr].productTitle", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrAmountPerItem", + "baseName": "riskdata.basket.item[itemNr].amountPerItem", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCurrency", + "baseName": "riskdata.basket.item[itemNr].currency", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrUpc", + "baseName": "riskdata.basket.item[itemNr].upc", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSku", + "baseName": "riskdata.basket.item[itemNr].sku", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrBrand", + "baseName": "riskdata.basket.item[itemNr].brand", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrManufacturer", + "baseName": "riskdata.basket.item[itemNr].manufacturer", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCategory", + "baseName": "riskdata.basket.item[itemNr].category", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrColor", + "baseName": "riskdata.basket.item[itemNr].color", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSize", + "baseName": "riskdata.basket.item[itemNr].size", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrQuantity", + "baseName": "riskdata.basket.item[itemNr].quantity", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrReceiverEmail", + "baseName": "riskdata.basket.item[itemNr].receiverEmail", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionCode", + "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionName", + "baseName": "riskdata.promotions.promotion[itemNr].promotionName", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRisk.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataRiskStandalone.ts b/src/typings/checkout/additionalDataRiskStandalone.ts new file mode 100644 index 0000000..e892ba5 --- /dev/null +++ b/src/typings/checkout/additionalDataRiskStandalone.ts @@ -0,0 +1,159 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRiskStandalone { + /** + * Raw AVS result received from the acquirer, where available. Example: 7 + */ + 'avsResultRaw'?: string; + /** + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](/risk-management/standalone-risk#tokenised-pan-request). + */ + 'bin'?: string; + /** + * Raw CVC result received from the acquirer, where available. Example: 1 + */ + 'cvcResultRaw'?: string; + /** + * Unique identifier or token for the shopper\'s card details. + */ + 'riskToken'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * Required for PayPal payments only. The only supported value is: **paypal**. + */ + 'tokenDataType'?: string; + /** + * Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + */ + 'payPalProtectionEligibility'?: string; + /** + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + */ + 'payPalPayerId'?: string; + /** + * Unique transaction ID of the payment. + */ + 'payPalTransactionId'?: string; + /** + * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. + */ + 'payPalCountryCode'?: string; + /** + * Shopper\'s first name. + */ + 'payPalFirstName'?: string; + /** + * Shopper\'s last name. + */ + 'payPalLastName'?: string; + /** + * Shopper\'s phone number. + */ + 'payPalPhone'?: string; + /** + * Shopper\'s email. + */ + 'payPalEmailId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "riskToken", + "baseName": "risk.token", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + }, + { + "name": "payPalProtectionEligibility", + "baseName": "PayPal.ProtectionEligibility", + "type": "string" + }, + { + "name": "payPalPayerId", + "baseName": "PayPal.PayerId", + "type": "string" + }, + { + "name": "payPalTransactionId", + "baseName": "PayPal.TransactionId", + "type": "string" + }, + { + "name": "payPalCountryCode", + "baseName": "PayPal.CountryCode", + "type": "string" + }, + { + "name": "payPalFirstName", + "baseName": "PayPal.FirstName", + "type": "string" + }, + { + "name": "payPalLastName", + "baseName": "PayPal.LastName", + "type": "string" + }, + { + "name": "payPalPhone", + "baseName": "PayPal.Phone", + "type": "string" + }, + { + "name": "payPalEmailId", + "baseName": "PayPal.EmailId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRiskStandalone.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataTemporaryServices.ts b/src/typings/checkout/additionalDataTemporaryServices.ts new file mode 100644 index 0000000..781cebf --- /dev/null +++ b/src/typings/checkout/additionalDataTemporaryServices.ts @@ -0,0 +1,105 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataTemporaryServices { + /** + * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 + */ + 'enhancedSchemeDataTotalTaxAmount'?: string; + /** + * Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataEmployeeName'?: string; + /** + * Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataJobDescription'?: string; + /** + * Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempStartDate'?: string; + /** + * Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempWeekEnding'?: string; + /** + * Name of the individual requesting temporary services. * maxLength: 40 + */ + 'enhancedSchemeDataRequestName'?: string; + /** + * Amount of time worked during a normal operation for the task or job. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursWorked'?: string; + /** + * Amount paid per regular hours worked, minor units. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursRate'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataEmployeeName", + "baseName": "enhancedSchemeData.employeeName", + "type": "string" + }, + { + "name": "enhancedSchemeDataJobDescription", + "baseName": "enhancedSchemeData.jobDescription", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempStartDate", + "baseName": "enhancedSchemeData.tempStartDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempWeekEnding", + "baseName": "enhancedSchemeData.tempWeekEnding", + "type": "string" + }, + { + "name": "enhancedSchemeDataRequestName", + "baseName": "enhancedSchemeData.requestName", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursWorked", + "baseName": "enhancedSchemeData.regularHoursWorked", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursRate", + "baseName": "enhancedSchemeData.regularHoursRate", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataTemporaryServices.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/additionalDataWallets.ts b/src/typings/checkout/additionalDataWallets.ts new file mode 100644 index 0000000..219f814 --- /dev/null +++ b/src/typings/checkout/additionalDataWallets.ts @@ -0,0 +1,78 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataWallets { + /** + * The Android Pay token retrieved from the SDK. + */ + 'androidpayToken'?: string; + /** + * The Mastercard Masterpass Transaction ID retrieved from the SDK. + */ + 'masterpassTransactionId'?: string; + /** + * The Apple Pay token retrieved from the SDK. + */ + 'paymentToken'?: string; + /** + * The Google Pay token retrieved from the SDK. + */ + 'paywithgoogleToken'?: string; + /** + * The Samsung Pay token retrieved from the SDK. + */ + 'samsungpayToken'?: string; + /** + * The Visa Checkout Call ID retrieved from the SDK. + */ + 'visacheckoutCallId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpass.transactionId", + "type": "string" + }, + { + "name": "paymentToken", + "baseName": "payment.token", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + }, + { + "name": "visacheckoutCallId", + "baseName": "visacheckout.callId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataWallets.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/address.ts b/src/typings/checkout/address.ts old mode 100755 new mode 100644 index 6e17a06..5317429 --- a/src/typings/checkout/address.ts +++ b/src/typings/checkout/address.ts @@ -1,38 +1,78 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Address { + +export class Address { /** - * The name of the city. >Required if either houseNumberOrName, street, postalCode, or stateOrProvince are provided. - */ - city?: string; + * The name of the city. + */ + 'city': string; /** - * The two-character country code of the address >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). - */ - country: string; + * The two-character country code as defined in ISO-3166-1 alpha-2. 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; /** - * The number or name of the house. - */ - houseNumberOrName?: string; + * The number or name of the house. + */ + 'houseNumberOrName': string; /** - * The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. - */ - postalCode?: string; + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; /** - * The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either houseNumberOrName, street, city, or postalCode are provided. - */ - stateOrProvince?: string; + * State or province codes as defined in ISO 3166-2. For example, **SF** in US or **ON** for Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; /** - * The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either houseNumberOrName, city, postalCode, or stateOrProvince are provided. - */ - street?: string; -} \ No newline at end of file + * The name of the street. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': 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": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/amount.ts b/src/typings/checkout/amount.ts old mode 100755 new mode 100644 index 11c3d31..f58b68d --- a/src/typings/checkout/amount.ts +++ b/src/typings/checkout/amount.ts @@ -1,22 +1,42 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Amount { + +export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - currency: string; + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; /** - * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; -} \ No newline at end of file + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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/checkout/applicationInfo.ts b/src/typings/checkout/applicationInfo.ts index cdb6a87..1eb2fb2 100644 --- a/src/typings/checkout/applicationInfo.ts +++ b/src/typings/checkout/applicationInfo.ts @@ -1,8 +1,8 @@ /** * Adyen Checkout API - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v50/payments ``` + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/checkout/avs.ts b/src/typings/checkout/avs.ts old mode 100755 new mode 100644 index 1a6c44c..62e60af --- a/src/typings/checkout/avs.ts +++ b/src/typings/checkout/avs.ts @@ -1,30 +1,49 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Avs { + +export class Avs { /** - * Indicates whether the shopper is allowed to modify the billing address for the current payment request. - */ - addressEditable?: boolean; + * Indicates whether the shopper is allowed to modify the billing address for the current payment request. + */ + 'addressEditable'?: boolean; /** - * Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks. - */ - enabled?: Avs.EnabledEnum; + * Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks. + */ + 'enabled'?: Avs.EnabledEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressEditable", + "baseName": "addressEditable", + "type": "boolean" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "Avs.EnabledEnum" + } ]; + + static getAttributeTypeMap() { + return Avs.attributeTypeMap; + } } + export namespace Avs { - export type EnabledEnum = 'yes' | 'no' | 'automatic'; - export const EnabledEnum = { - Yes: 'yes' as EnabledEnum, - No: 'no' as EnabledEnum, - Automatic: 'automatic' as EnabledEnum - }; -} \ No newline at end of file + export enum EnabledEnum { + Yes = 'yes', + No = 'no', + Automatic = 'automatic' + } +} diff --git a/src/typings/checkout/bankAccount.ts b/src/typings/checkout/bankAccount.ts old mode 100755 new mode 100644 index e6dfb70..3b8e163 --- a/src/typings/checkout/bankAccount.ts +++ b/src/typings/checkout/bankAccount.ts @@ -1,50 +1,105 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BankAccount { + +export class BankAccount { /** - * The bank account number (without separators). - */ - bankAccountNumber?: string; + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; /** - * The bank city. - */ - bankCity?: string; + * The bank city. + */ + 'bankCity'?: string; /** - * The location id of the bank. The field value is `nil` in most cases. - */ - bankLocationId?: string; + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; /** - * The name of the bank. - */ - bankName?: string; + * The name of the bank. + */ + 'bankName'?: string; /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - */ - bic?: string; + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + */ + 'bic'?: string; /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - */ - countryCode?: string; + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - */ - iban?: string; + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - */ - ownerName?: string; + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. + */ + 'ownerName'?: string; /** - * The bank account holder's tax ID. - */ - taxId?: string; -} \ No newline at end of file + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/browserInfo.ts b/src/typings/checkout/browserInfo.ts old mode 100755 new mode 100644 index f97e9ca..1a1b294 --- a/src/typings/checkout/browserInfo.ts +++ b/src/typings/checkout/browserInfo.ts @@ -1,50 +1,105 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BrowserInfo { + +export class BrowserInfo { /** - * The accept header value of the shopper's browser. - */ - acceptHeader: string; + * The accept header value of the shopper\'s browser. + */ + 'acceptHeader': string; /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 32 or 48 bit color depth. - */ - colorDepth: number; + * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 32 or 48 bit color depth. + */ + 'colorDepth': number; /** - * Boolean value indicating if the shopper's browser is able to execute Java. - */ - javaEnabled: boolean; + * Boolean value indicating if the shopper\'s browser is able to execute Java. + */ + 'javaEnabled': boolean; /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. - */ - javaScriptEnabled?: boolean; + * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. + */ + 'javaScriptEnabled'?: boolean; /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). - */ - language: string; + * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). + */ + 'language': string; /** - * The total height of the shopper's device screen in pixels. - */ - screenHeight: number; + * The total height of the shopper\'s device screen in pixels. + */ + 'screenHeight': number; /** - * The total width of the shopper's device screen in pixels. - */ - screenWidth: number; + * The total width of the shopper\'s device screen in pixels. + */ + 'screenWidth': number; /** - * Time difference between UTC time and the shopper's browser local time, in minutes. - */ - timeZoneOffset: number; + * Time difference between UTC time and the shopper\'s browser local time, in minutes. + */ + 'timeZoneOffset': number; /** - * The user agent value of the shopper's browser. - */ - userAgent: string; -} \ No newline at end of file + * The user agent value of the shopper\'s browser. + */ + 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/card.ts b/src/typings/checkout/card.ts old mode 100755 new mode 100644 index 2946abb..8e8bbbf --- a/src/typings/checkout/card.ts +++ b/src/typings/checkout/card.ts @@ -1,46 +1,96 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Card { + +export class Card { /** - * The [card verification code](https://docs.adyen.com/payments-essentials/payment-glossary#card_security_code_cvc_cvv_cid_) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - */ - cvc?: string; + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + */ + 'cvc'?: string; /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - */ - expiryMonth: string; + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; /** - * The card expiry year. Format: 4 digits. For example: 2020 - */ - expiryYear: string; + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; /** - * The name of the cardholder, as printed on the card. - */ - holderName: string; + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; /** - * The issue number of the card (for some UK debit cards only). - */ - issueNumber?: string; + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - */ - number: string; + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + */ + 'number': string; /** - * The month component of the start date (for some UK debit cards only). - */ - startMonth?: string; + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; /** - * The year component of the start date (for some UK debit cards only). - */ - startYear?: string; -} \ No newline at end of file + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/checkoutPaymentsAction.ts b/src/typings/checkout/checkoutPaymentsAction.ts new file mode 100644 index 0000000..1a2a1c0 --- /dev/null +++ b/src/typings/checkout/checkoutPaymentsAction.ts @@ -0,0 +1,225 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Amount } from './amount'; + +export class CheckoutPaymentsAction { + /** + * The voucher alternative reference code. + */ + 'alternativeReference'?: string; + /** + * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + */ + 'data'?: object; + /** + * The URL to download the voucher. + */ + 'downloadUrl'?: string; + /** + * The date time of the voucher expiry. + */ + 'expiresAt'?: string; + 'initialAmount'?: Amount; + /** + * The URL to the detailed instructions to make payment using the voucher. + */ + 'instructionsUrl'?: string; + /** + * The issuer of the voucher. + */ + 'issuer'?: string; + /** + * The shopper telephone number (partially masked). + */ + 'maskedTelephoneNumber'?: string; + /** + * The merchant name. + */ + 'merchantName'?: string; + /** + * The merchant reference. + */ + 'merchantReference'?: string; + /** + * Specifies the HTTP method, for example GET or POST. + */ + 'method'?: string; + /** + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint. In some cases, required for polling. + */ + 'paymentData'?: string; + /** + * Specifies the payment method. + */ + 'paymentMethodType'?: string; + /** + * The contents of the QR code as a UTF8 string. + */ + 'qrCodeData'?: string; + /** + * The voucher reference code. + */ + 'reference'?: string; + /** + * The shopper email. + */ + 'shopperEmail'?: string; + /** + * The shopper name. + */ + 'shopperName'?: string; + 'surcharge'?: Amount; + /** + * A token to pass to the 3DS2 Component to get the fingerprint/challenge. + */ + 'token'?: string; + 'totalAmount'?: Amount; + /** + * Enum that specifies the action that needs to be taken by the client. + */ + 'type'?: CheckoutPaymentsAction.TypeEnum; + /** + * Specifies the URL to redirect to. + */ + 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "alternativeReference", + "baseName": "alternativeReference", + "type": "string" + }, + { + "name": "data", + "baseName": "data", + "type": "object" + }, + { + "name": "downloadUrl", + "baseName": "downloadUrl", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "initialAmount", + "baseName": "initialAmount", + "type": "Amount" + }, + { + "name": "instructionsUrl", + "baseName": "instructionsUrl", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "maskedTelephoneNumber", + "baseName": "maskedTelephoneNumber", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "method", + "baseName": "method", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "qrCodeData", + "baseName": "qrCodeData", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "string" + }, + { + "name": "surcharge", + "baseName": "surcharge", + "type": "Amount" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutPaymentsAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutPaymentsAction.attributeTypeMap; + } +} + +export namespace CheckoutPaymentsAction { + export enum TypeEnum { + Await = 'await', + QrCode = 'qrCode', + Redirect = 'redirect', + ThreeDS2Challenge = 'threeDS2Challenge', + ThreeDS2Fingerprint = 'threeDS2Fingerprint', + Voucher = 'voucher', + WechatpaySDK = 'wechatpaySDK' + } +} diff --git a/src/typings/checkout/commonField.ts b/src/typings/checkout/commonField.ts index 408be57..6dd7e0a 100644 --- a/src/typings/checkout/commonField.ts +++ b/src/typings/checkout/commonField.ts @@ -1,8 +1,8 @@ /** * Adyen Checkout API - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v50/payments ``` + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/checkout/company.ts b/src/typings/checkout/company.ts old mode 100755 new mode 100644 index 95df436..57437d6 --- a/src/typings/checkout/company.ts +++ b/src/typings/checkout/company.ts @@ -1,38 +1,78 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Company { + +export class Company { /** - * The company website's home page. - */ - homepage?: string; + * The company website\'s home page. + */ + 'homepage'?: string; /** - * The company name. - */ - name?: string; + * The company name. + */ + 'name'?: string; /** - * Registration number of the company. - */ - registrationNumber?: string; + * Registration number of the company. + */ + 'registrationNumber'?: string; /** - * Registry location of the company. - */ - registryLocation?: string; + * Registry location of the company. + */ + 'registryLocation'?: string; /** - * Tax ID of the company. - */ - taxId?: string; + * Tax ID of the company. + */ + 'taxId'?: string; /** - * The company type. - */ - type?: string; -} \ No newline at end of file + * The company type. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "homepage", + "baseName": "homepage", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "registryLocation", + "baseName": "registryLocation", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Company.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/configuration.ts b/src/typings/checkout/configuration.ts old mode 100755 new mode 100644 index 4c53b63..039aad2 --- a/src/typings/checkout/configuration.ts +++ b/src/typings/checkout/configuration.ts @@ -1,32 +1,61 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Avs } from './avs'; + */ + +import { Avs } from './avs'; import { Installments } from './installments'; import { ShopperInput } from './shopperInput'; - -export interface Configuration { - avs?: Avs; +export class Configuration { + 'avs'?: Avs; /** - * Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED - */ - cardHolderName?: Configuration.CardHolderNameEnum; - installments?: Installments; - shopperInput?: ShopperInput; + * Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED + */ + 'cardHolderName'?: Configuration.CardHolderNameEnum; + 'installments'?: Installments; + 'shopperInput'?: ShopperInput; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "avs", + "baseName": "avs", + "type": "Avs" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "Configuration.CardHolderNameEnum" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "shopperInput", + "baseName": "shopperInput", + "type": "ShopperInput" + } ]; + + static getAttributeTypeMap() { + return Configuration.attributeTypeMap; + } } + export namespace Configuration { - export type CardHolderNameEnum = 'NONE' | 'OPTIONAL' | 'REQUIRED'; - export const CardHolderNameEnum = { - NONE: 'NONE' as CardHolderNameEnum, - OPTIONAL: 'OPTIONAL' as CardHolderNameEnum, - REQUIRED: 'REQUIRED' as CardHolderNameEnum - }; -} \ No newline at end of file + export enum CardHolderNameEnum { + NONE = 'NONE', + OPTIONAL = 'OPTIONAL', + REQUIRED = 'REQUIRED' + } +} diff --git a/src/typings/checkout/createPaymentLinkRequest.ts b/src/typings/checkout/createPaymentLinkRequest.ts new file mode 100644 index 0000000..953bb28 --- /dev/null +++ b/src/typings/checkout/createPaymentLinkRequest.ts @@ -0,0 +1,152 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Address } from './address'; +import { Amount } from './amount'; + +export class CreatePaymentLinkRequest { + /** + * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'billingAddress'?: Address; + /** + * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'blockedPaymentMethods'?: Array; + /** + * The shopper\'s country code. + */ + 'countryCode'?: string; + 'deliveryAddress'?: Address; + /** + * A short description visible on the Pay By Link page. Maximum length: 280 characters. + */ + 'description'?: string; + /** + * The date that the Pay By Link expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day. + */ + 'expiresAt'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Merchant URL used for redirection after payment is completed + */ + 'returnUrl'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + 'storePaymentMethod'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentLinkRequest.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/createPaymentLinkResponse.ts b/src/typings/checkout/createPaymentLinkResponse.ts new file mode 100644 index 0000000..701f66e --- /dev/null +++ b/src/typings/checkout/createPaymentLinkResponse.ts @@ -0,0 +1,58 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Amount } from './amount'; + +export class CreatePaymentLinkResponse { + 'amount'?: Amount; + /** + * The date that the Pay By Link expires; e.g. 2019-03-23T12:25:28Z. + */ + 'expiresAt': string; + /** + * The reference that was specified when the Pay By Link URL was created. + */ + 'reference': string; + /** + * The URL at which the shopper can complete the payment. + */ + 'url': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentLinkResponse.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/detailsRequest.ts b/src/typings/checkout/detailsRequest.ts old mode 100755 new mode 100644 index c906b7b..01ee7f0 --- a/src/typings/checkout/detailsRequest.ts +++ b/src/typings/checkout/detailsRequest.ts @@ -1,26 +1,51 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface DetailsRequest { + +export class DetailsRequest { /** - * Use this collection to submit the details that were returned as a result of the `/payments` call. - */ - details: any; + * Use this collection to submit the details that were returned as a result of the `/payments` call. + */ + 'details': object; /** - * The `paymentData` value that you received in the response to the `/payments` call. - */ - paymentData?: string; + * The `paymentData` value that you received in the response to the `/payments` call. + */ + 'paymentData'?: string; /** - * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. - */ - threeDSAuthenticationOnly?: boolean; -} \ No newline at end of file + * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + */ + 'threeDSAuthenticationOnly'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "details", + "baseName": "details", + "type": "object" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return DetailsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/deviceRenderOptions.ts b/src/typings/checkout/deviceRenderOptions.ts old mode 100755 new mode 100644 index 7c6aed5..51924ad --- a/src/typings/checkout/deviceRenderOptions.ts +++ b/src/typings/checkout/deviceRenderOptions.ts @@ -1,40 +1,56 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface DeviceRenderOptions { + +export class DeviceRenderOptions { /** - * Supported SDK interface types. Allowed values: * Native * Html * both - */ - sdkInterface?: DeviceRenderOptions.SdkInterfaceEnum; + * Supported SDK interface types. Allowed values: * Native * Html * both + */ + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect - */ - sdkUiType?: Array; + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + */ + 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } } + export namespace DeviceRenderOptions { - export type SdkInterfaceEnum = 'Html' | 'Native' | 'both'; - export const SdkInterfaceEnum = { - Html: 'Html' as SdkInterfaceEnum, - Native: 'Native' as SdkInterfaceEnum, - Both: 'both' as SdkInterfaceEnum - }; - export type SdkUiTypeEnum = 'multiSelect' | 'otherHtml' | 'outOfBand' | 'singleSelect' | 'text'; - export const SdkUiTypeEnum = { - MultiSelect: 'multiSelect' as SdkUiTypeEnum, - OtherHtml: 'otherHtml' as SdkUiTypeEnum, - OutOfBand: 'outOfBand' as SdkUiTypeEnum, - SingleSelect: 'singleSelect' as SdkUiTypeEnum, - Text: 'text' as SdkUiTypeEnum - }; -} \ No newline at end of file + export enum SdkInterfaceEnum { + Html = 'Html', + Native = 'Native', + Both = 'both' + } + export enum SdkUiTypeEnum { + MultiSelect = 'multiSelect', + OtherHtml = 'otherHtml', + OutOfBand = 'outOfBand', + SingleSelect = 'singleSelect', + Text = 'text' + } +} diff --git a/src/typings/checkout/externalPlatform.ts b/src/typings/checkout/externalPlatform.ts index 8e9607e..efd3e3d 100644 --- a/src/typings/checkout/externalPlatform.ts +++ b/src/typings/checkout/externalPlatform.ts @@ -1,8 +1,8 @@ /** * Adyen Checkout API - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v50/payments ``` + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/checkout/forexQuote.ts b/src/typings/checkout/forexQuote.ts old mode 100755 new mode 100644 index a87b024..3ed514a --- a/src/typings/checkout/forexQuote.ts +++ b/src/typings/checkout/forexQuote.ts @@ -1,53 +1,121 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ +import { Amount } from './amount'; -export interface ForexQuote { +export class ForexQuote { /** - * The account name. - */ - account?: string; + * The account name. + */ + 'account'?: string; /** - * The account type. - */ - accountType?: string; - baseAmount?: Amount; + * The account type. + */ + 'accountType'?: string; + 'baseAmount'?: Amount; /** - * The base points. - */ - basePoints: number; - buy?: Amount; - interbank?: Amount; + * The base points. + */ + 'basePoints': number; + 'buy'?: Amount; + 'interbank'?: Amount; /** - * The reference assigned to the forex quote request. - */ - reference?: string; - sell?: Amount; + * The reference assigned to the forex quote request. + */ + 'reference'?: string; + 'sell'?: Amount; /** - * The signature to validate the integrity. - */ - signature?: string; + * The signature to validate the integrity. + */ + 'signature'?: string; /** - * The source of the forex quote. - */ - source?: string; + * The source of the forex quote. + */ + 'source'?: string; /** - * The type of forex. - */ - type?: string; + * The type of forex. + */ + 'type'?: string; /** - * The date until which the forex quote is valid. - */ - validTill: Date; -} \ No newline at end of file + * The date until which the forex quote is valid. + */ + 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/fraudCheckResult.ts b/src/typings/checkout/fraudCheckResult.ts old mode 100755 new mode 100644 index 3fc31a0..0e22026 --- a/src/typings/checkout/fraudCheckResult.ts +++ b/src/typings/checkout/fraudCheckResult.ts @@ -1,28 +1,51 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface FraudCheckResult { + +export class FraudCheckResult { /** - * The fraud score generated by the risk check. - */ - accountScore: number; + * The fraud score generated by the risk check. + */ + 'accountScore': number; /** - * The ID of the risk check. - */ - checkId: number; + * The ID of the risk check. + */ + 'checkId': number; /** - * The name of the risk check. - */ - name: string; -} \ No newline at end of file + * The name of the risk check. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/fraudResult.ts b/src/typings/checkout/fraudResult.ts old mode 100755 new mode 100644 index 4058633..287b9c4 --- a/src/typings/checkout/fraudResult.ts +++ b/src/typings/checkout/fraudResult.ts @@ -1,25 +1,43 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { FraudCheckResult } from './fraudCheckResult'; + */ +import { FraudCheckResult } from './fraudCheckResult'; -export interface FraudResult { +export class FraudResult { /** - * The total fraud score generated by the risk checks. - */ - accountScore: number; + * The total fraud score generated by the risk checks. + */ + 'accountScore': number; /** - * The result of the individual risk checks. - */ - results?: Array; -} \ No newline at end of file + * The result of the individual risk checks. + */ + 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/inputDetail.ts b/src/typings/checkout/inputDetail.ts old mode 100755 new mode 100644 index beff987..44aec9c --- a/src/typings/checkout/inputDetail.ts +++ b/src/typings/checkout/inputDetail.ts @@ -1,50 +1,107 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Item } from './item'; + */ + +import { Item } from './item'; import { SubInputDetail } from './subInputDetail'; +export class InputDetail { + /** + * Configuration parameters for the required input. + */ + 'configuration'?: object; + /** + * Input details can also be provided recursively. + */ + 'details'?: Array; + /** + * Input details can also be provided recursively (deprecated). + */ + 'inputDetails'?: Array; + /** + * In case of a select, the URL from which to query the items. + */ + 'itemSearchUrl'?: string; + /** + * In case of a select, the items to choose from. + */ + 'items'?: Array; + /** + * The value to provide in the result. + */ + 'key'?: string; + /** + * True if this input value is optional. + */ + 'optional'?: boolean; + /** + * The type of the required input. + */ + 'type'?: string; + /** + * The value can be pre-filled, if available. + */ + 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "itemSearchUrl", + "baseName": "itemSearchUrl", + "type": "string" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InputDetail.attributeTypeMap; + } +} -export interface InputDetail { - /** - * Configuration parameters for the required input. - */ - configuration?: any; - /** - * Input details can also be provided recursively. - */ - details?: Array; - /** - * In case of a select, the URL from which to query the items. - */ - itemSearchUrl?: string; - /** - * In case of a select, the items to choose from. - */ - items?: Array; - /** - * The value to provide in the result. - */ - key?: string; - /** - * True if this input value is optional. - */ - optional?: boolean; - /** - * The type of the required input. - */ - type?: string; - /** - * The value can be pre-filled, if available. - */ - value?: string; -} \ No newline at end of file diff --git a/src/typings/checkout/installments.ts b/src/typings/checkout/installments.ts old mode 100755 new mode 100644 index 253ae8d..071d601 --- a/src/typings/checkout/installments.ts +++ b/src/typings/checkout/installments.ts @@ -1,20 +1,33 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Installments { + +export class Installments { /** - * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. - */ - value: number; -} \ No newline at end of file + * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/item.ts b/src/typings/checkout/item.ts old mode 100755 new mode 100644 index c77c1a7..3798a85 --- a/src/typings/checkout/item.ts +++ b/src/typings/checkout/item.ts @@ -1,24 +1,42 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Item { + +export class Item { /** - * The value to provide in the result. - */ - id?: string; + * The value to provide in the result. + */ + 'id'?: string; /** - * The display name. - */ - name?: string; -} \ No newline at end of file + * The display name. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Item.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/lineItem.ts b/src/typings/checkout/lineItem.ts old mode 100755 new mode 100644 index e5f9c8f..c2b8761 --- a/src/typings/checkout/lineItem.ts +++ b/src/typings/checkout/lineItem.ts @@ -1,57 +1,104 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface LineItem { + +export class LineItem { /** - * Item amount excluding the tax, in minor units. - */ - amountExcludingTax?: number; + * Item amount excluding the tax, in minor units. + */ + 'amountExcludingTax'?: number; /** - * Item amount including the tax, in minor units. - */ - amountIncludingTax?: number; + * Item amount including the tax, in minor units. + */ + 'amountIncludingTax'?: number; /** - * Description of the line item. - */ - description?: string; + * Description of the line item. + */ + 'description'?: string; /** - * ID of the line item. - */ - id?: string; + * ID of the line item. + */ + 'id'?: string; /** - * Number of items. - */ - quantity?: number; + * Number of items. + */ + 'quantity'?: number; /** - * Tax amount, in minor units. - */ - taxAmount?: number; + * Tax amount, in minor units. + */ + 'taxAmount'?: number; /** - * Tax category: High, Low, None, Zero - */ - taxCategory?: LineItem.TaxCategoryEnum; + * Tax category: High, Low, None, Zero + */ + 'taxCategory'?: LineItem.TaxCategoryEnum; /** - * Tax percentage, in minor units. - */ - taxPercentage?: number; + * Tax percentage, in minor units. + */ + 'taxPercentage'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amountExcludingTax", + "baseName": "amountExcludingTax", + "type": "number" + }, + { + "name": "amountIncludingTax", + "baseName": "amountIncludingTax", + "type": "number" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "quantity", + "baseName": "quantity", + "type": "number" + }, + { + "name": "taxAmount", + "baseName": "taxAmount", + "type": "number" + }, + { + "name": "taxCategory", + "baseName": "taxCategory", + "type": "LineItem.TaxCategoryEnum" + }, + { + "name": "taxPercentage", + "baseName": "taxPercentage", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return LineItem.attributeTypeMap; + } } + export namespace LineItem { - export type TaxCategoryEnum = 'High' | 'Low' | 'None' | 'Zero'; - export const TaxCategoryEnum = { - High: 'High' as TaxCategoryEnum, - Low: 'Low' as TaxCategoryEnum, - None: 'None' as TaxCategoryEnum, - Zero: 'Zero' as TaxCategoryEnum - }; -} \ No newline at end of file + export enum TaxCategoryEnum { + High = 'High', + Low = 'Low', + None = 'None', + Zero = 'Zero' + } +} diff --git a/src/typings/checkout/merchantDevice.ts b/src/typings/checkout/merchantDevice.ts index d1fb003..d69af1e 100644 --- a/src/typings/checkout/merchantDevice.ts +++ b/src/typings/checkout/merchantDevice.ts @@ -1,8 +1,8 @@ /** * Adyen Checkout API - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v50/payments ``` + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/checkout/merchantRiskIndicator.ts b/src/typings/checkout/merchantRiskIndicator.ts old mode 100755 new mode 100644 index 89fafc0..7cbc2e6 --- a/src/typings/checkout/merchantRiskIndicator.ts +++ b/src/typings/checkout/merchantRiskIndicator.ts @@ -1,69 +1,120 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ +import { Amount } from './amount'; -export interface MerchantRiskIndicator { +export class MerchantRiskIndicator { /** - * Whether the chosen delivery address is identical to the billing address. - */ - addressMatch?: boolean; + * Whether the chosen delivery address is identical to the billing address. + */ + 'addressMatch'?: boolean; /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` - */ - deliveryAddressIndicator?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + */ + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; /** - * The delivery email address (for digital goods). - */ - deliveryEmail?: string; + * The delivery email address (for digital goods). + */ + 'deliveryEmail'?: string; /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` - */ - deliveryTimeframe?: MerchantRiskIndicator.DeliveryTimeframeEnum; - giftCardAmount?: Amount; + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + */ + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount; /** - * Number of individual prepaid or gift cards used for this purchase. - */ - giftCardCount?: number; + * Number of individual prepaid or gift cards used for this purchase. + */ + 'giftCardCount'?: number; /** - * For pre-order purchases, the expected date this product will be available to the shopper. - */ - preOrderDate?: Date; + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + 'preOrderDate'?: Date; /** - * Indicator for whether this transaction is for pre-ordering a product. - */ - preOrderPurchase?: boolean; + * Indicator for whether this transaction is for pre-ordering a product. + */ + 'preOrderPurchase'?: boolean; /** - * Indicator for whether the shopper has already purchased the same items in the past. - */ - reorderItems?: boolean; + * Indicator for whether the shopper has already purchased the same items in the past. + */ + 'reorderItems'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } } + export namespace MerchantRiskIndicator { - export type DeliveryAddressIndicatorEnum = 'shipToBillingAddress' | 'shipToVerifiedAddress' | 'shipToNewAddress' | 'shipToStore' | 'digitalGoods' | 'goodsNotShipped' | 'other'; - export const DeliveryAddressIndicatorEnum = { - ShipToBillingAddress: 'shipToBillingAddress' as DeliveryAddressIndicatorEnum, - ShipToVerifiedAddress: 'shipToVerifiedAddress' as DeliveryAddressIndicatorEnum, - ShipToNewAddress: 'shipToNewAddress' as DeliveryAddressIndicatorEnum, - ShipToStore: 'shipToStore' as DeliveryAddressIndicatorEnum, - DigitalGoods: 'digitalGoods' as DeliveryAddressIndicatorEnum, - GoodsNotShipped: 'goodsNotShipped' as DeliveryAddressIndicatorEnum, - Other: 'other' as DeliveryAddressIndicatorEnum - }; - export type DeliveryTimeframeEnum = 'electronicDelivery' | 'sameDayShipping' | 'overnightShipping' | 'twoOrMoreDaysShipping'; - export const DeliveryTimeframeEnum = { - ElectronicDelivery: 'electronicDelivery' as DeliveryTimeframeEnum, - SameDayShipping: 'sameDayShipping' as DeliveryTimeframeEnum, - OvernightShipping: 'overnightShipping' as DeliveryTimeframeEnum, - TwoOrMoreDaysShipping: 'twoOrMoreDaysShipping' as DeliveryTimeframeEnum - }; -} \ No newline at end of file + export enum DeliveryAddressIndicatorEnum { + ShipToBillingAddress = 'shipToBillingAddress', + ShipToVerifiedAddress = 'shipToVerifiedAddress', + ShipToNewAddress = 'shipToNewAddress', + ShipToStore = 'shipToStore', + DigitalGoods = 'digitalGoods', + GoodsNotShipped = 'goodsNotShipped', + Other = 'other' + } + export enum DeliveryTimeframeEnum { + ElectronicDelivery = 'electronicDelivery', + SameDayShipping = 'sameDayShipping', + OvernightShipping = 'overnightShipping', + TwoOrMoreDaysShipping = 'twoOrMoreDaysShipping' + } +} diff --git a/src/typings/checkout/name.ts b/src/typings/checkout/name.ts old mode 100755 new mode 100644 index 5647471..938da52 --- a/src/typings/checkout/name.ts +++ b/src/typings/checkout/name.ts @@ -1,40 +1,67 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Name { + +export class Name { /** - * The first name. - */ - firstName: string; + * The first name. + */ + 'firstName': string; /** - * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. - */ - gender: Name.GenderEnum; + * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + 'gender': Name.GenderEnum; /** - * The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed. - */ - infix?: string; + * The name\'s infix, if applicable. >A maximum length of twenty (20) characters is imposed. + */ + 'infix'?: string; /** - * The last name. - */ - lastName: string; + * The 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": "gender", + "baseName": "gender", + "type": "Name.GenderEnum" + }, + { + "name": "infix", + "baseName": "infix", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } } + export namespace Name { - export type GenderEnum = 'MALE' | 'FEMALE' | 'UNKNOWN'; - export const GenderEnum = { - MALE: 'MALE' as GenderEnum, - FEMALE: 'FEMALE' as GenderEnum, - UNKNOWN: 'UNKNOWN' as GenderEnum - }; -} \ No newline at end of file + export enum GenderEnum { + MALE = 'MALE', + FEMALE = 'FEMALE', + UNKNOWN = 'UNKNOWN' + } +} diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts old mode 100755 new mode 100644 index c66a051..66476df --- a/src/typings/checkout/paymentMethod.ts +++ b/src/typings/checkout/paymentMethod.ts @@ -1,49 +1,104 @@ /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v49/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 49 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { InputDetail } from './inputDetail'; + */ + +import { InputDetail } from './inputDetail'; import { PaymentMethodGroup } from './paymentMethodGroup'; +export class PaymentMethod { + /** + * List of possible brands. For example: visa, mc. + */ + 'brands'?: Array; + /** + * The configuration of the payment method. + */ + 'configuration'?: object; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'details'?: Array; + 'group'?: PaymentMethodGroup; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'inputDetails'?: Array; + /** + * The displayable name of this payment method. + */ + 'name'?: string; + /** + * Echo data required to send in next calls. + */ + 'paymentMethodData'?: string; + /** + * Indicates whether this payment method supports tokenization or not. + */ + 'supportsRecurring'?: boolean; + /** + * The unique payment method code. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "supportsRecurring", + "baseName": "supportsRecurring", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethod.attributeTypeMap; + } +} -export interface PaymentMethod { - /** - * List of possible brands. For example: visa, mc. - */ - brands?: Array; - /** - * The configuration of the payment method. - */ - configuration?: any; - /** - * All input details to be provided to complete the payment with this payment method. - */ - details?: Array; - group?: PaymentMethodGroup; - /** - * All input details to be provided to complete the payment with this payment method. - */ - inputDetails?: Array; - /** - * The displayable name of this payment method. - */ - name?: string; - /** - * Echo data required to send in next calls. - */ - paymentMethodData?: string; - /** - * Indicates whether this payment method supports tokenization or not. - */ - supportsRecurring?: boolean; - /** - * The unique payment method code. - */ - type?: string; -} \ No newline at end of file diff --git a/src/typings/checkout/paymentMethodGroup.ts b/src/typings/checkout/paymentMethodGroup.ts old mode 100755 new mode 100644 index 4e2c224..29888dc --- a/src/typings/checkout/paymentMethodGroup.ts +++ b/src/typings/checkout/paymentMethodGroup.ts @@ -1,28 +1,51 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface PaymentMethodGroup { + +export class PaymentMethodGroup { /** - * The name of the group. - */ - name?: string; + * The name of the group. + */ + 'name'?: string; /** - * Echo data to be used if the payment method is displayed as part of this group. - */ - paymentMethodData?: string; + * Echo data to be used if the payment method is displayed as part of this group. + */ + 'paymentMethodData'?: string; /** - * The unique code of the group. - */ - type?: string; -} \ No newline at end of file + * The unique code of the group. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodGroup.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodsGroup.ts b/src/typings/checkout/paymentMethodsGroup.ts old mode 100755 new mode 100644 index 5ba2d67..d6fc5dc --- a/src/typings/checkout/paymentMethodsGroup.ts +++ b/src/typings/checkout/paymentMethodsGroup.ts @@ -1,28 +1,51 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface PaymentMethodsGroup { + +export class PaymentMethodsGroup { /** - * The type to submit for any payment method in this group. - */ - groupType?: string; + * The type to submit for any payment method in this group. + */ + 'groupType'?: string; /** - * The human-readable name of this group. - */ - name?: string; + * The human-readable name of this group. + */ + 'name'?: string; /** - * The types of payment methods that belong in this group. - */ - types?: Array; -} \ No newline at end of file + * The types of payment methods that belong in this group. + */ + 'types'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "groupType", + "baseName": "groupType", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "types", + "baseName": "types", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsGroup.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts old mode 100755 new mode 100644 index 958fdce..a7d775b --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -1,58 +1,141 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ +import { Amount } from './amount'; +import {AdditionalData3DSecure} from "../payments/additionalData3DSecure"; +import {AdditionalDataAirline} from "../payments/additionalDataAirline"; +import {AdditionalDataCommon} from "../payments/additionalDataCommon"; +import {AdditionalDataLevel23} from "../payments/additionalDataLevel23"; +import {AdditionalDataLodging} from "../payments/additionalDataLodging"; +import {AdditionalDataOpenInvoice} from "../payments/additionalDataOpenInvoice"; +import {AdditionalDataRatepay} from "../payments/additionalDataRatepay"; +import {AdditionalDataRetry} from "../payments/additionalDataRetry"; +import {AdditionalDataRisk} from "../payments/additionalDataRisk"; +import {AdditionalDataRiskStandalone} from "../payments/additionalDataRiskStandalone"; +import {AdditionalDataTemporaryServices} from "../payments/additionalDataTemporaryServices"; +import {AdditionalDataWallets} from "../payments/additionalDataWallets"; -export interface PaymentMethodsRequest { +type AdditionalData = AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCommon | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; +export class PaymentMethodsRequest { /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api#paymentrequestadditionaldata). - */ - additionalData?: any; + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AdditionalData; /** - * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods/payment-methods-overview). - */ - allowedPaymentMethods?: Array; - amount?: Amount; + * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'allowedPaymentMethods'?: Array; + 'amount'?: Amount; /** - * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods/payment-methods-overview). - */ - blockedPaymentMethods?: Array; + * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'blockedPaymentMethods'?: Array; /** - * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web - */ - channel?: PaymentMethodsRequest.ChannelEnum; + * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + */ + 'channel'?: PaymentMethodsRequest.ChannelEnum; /** - * The shopper's country code. - */ - countryCode?: string; + * The shopper\'s country code. + */ + 'countryCode'?: string; /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - shopperLocale?: string; + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. - */ - shopperReference?: string; + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AdditionalData" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentMethodsRequest.ChannelEnum" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsRequest.attributeTypeMap; + } } + export namespace PaymentMethodsRequest { - export type ChannelEnum = 'iOS' | 'Android' | 'Web'; - export const ChannelEnum = { - IOS: 'iOS' as ChannelEnum, - Android: 'Android' as ChannelEnum, - Web: 'Web' as ChannelEnum - }; -} \ No newline at end of file + export enum ChannelEnum { + IOS = 'iOS', + Android = 'Android', + Web = 'Web' + } +} diff --git a/src/typings/checkout/paymentMethodsResponse.ts b/src/typings/checkout/paymentMethodsResponse.ts old mode 100755 new mode 100644 index ad67219..1923c8c --- a/src/typings/checkout/paymentMethodsResponse.ts +++ b/src/typings/checkout/paymentMethodsResponse.ts @@ -1,31 +1,64 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { PaymentMethod } from './paymentMethod'; + */ + +import { PaymentMethod } from './paymentMethod'; import { PaymentMethodsGroup } from './paymentMethodsGroup'; import { RecurringDetail } from './recurringDetail'; +import { StoredPaymentMethod } from './storedPaymentMethod'; +export class PaymentMethodsResponse { + /** + * Groups of payment methods. + */ + 'groups'?: Array; + /** + * Detailed list of one-click payment methods. + */ + 'oneClickPaymentMethods'?: Array; + /** + * Detailed list of payment methods required to generate payment forms. + */ + 'paymentMethods'?: Array; + /** + * List of all stored payment methods. + */ + 'storedPaymentMethods'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "groups", + "baseName": "groups", + "type": "Array" + }, + { + "name": "oneClickPaymentMethods", + "baseName": "oneClickPaymentMethods", + "type": "Array" + }, + { + "name": "paymentMethods", + "baseName": "paymentMethods", + "type": "Array" + }, + { + "name": "storedPaymentMethods", + "baseName": "storedPaymentMethods", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsResponse.attributeTypeMap; + } +} -export interface PaymentMethodsResponse { - /** - * Groups of payment methods. - */ - groups?: Array; - /** - * Detailed list of one-click payment methods. - */ - oneClickPaymentMethods?: Array; - /** - * Detailed list of payment methods required to generate payment forms. - */ - paymentMethods?: Array; -} \ No newline at end of file diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts old mode 100755 new mode 100644 index a5e4550..1a2384c --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -1,18 +1,19 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { AccountInfo } from './accountInfo'; + */ + +import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; import { BrowserInfo } from './browserInfo'; import { Company } from './company'; import { ForexQuote } from './forexQuote'; @@ -23,192 +24,497 @@ import { Name } from './name'; import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDSecureData } from './threeDSecureData'; -import { ApplicationInfo } from "../applicationInfo"; +import {AdditionalData3DSecure} from "../payments/additionalData3DSecure"; +import {AdditionalDataAirline} from "../payments/additionalDataAirline"; +import {AdditionalDataCommon} from "../payments/additionalDataCommon"; +import {AdditionalDataLevel23} from "../payments/additionalDataLevel23"; +import {AdditionalDataLodging} from "../payments/additionalDataLodging"; +import {AdditionalDataOpenInvoice} from "../payments/additionalDataOpenInvoice"; +import {AdditionalDataRatepay} from "../payments/additionalDataRatepay"; +import {AdditionalDataRetry} from "../payments/additionalDataRetry"; +import {AdditionalDataRisk} from "../payments/additionalDataRisk"; +import {AdditionalDataRiskStandalone} from "../payments/additionalDataRiskStandalone"; +import {AdditionalDataTemporaryServices} from "../payments/additionalDataTemporaryServices"; +import {AdditionalDataWallets} from "../payments/additionalDataWallets"; +type AdditionalData = AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCommon | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; +export class PaymentRequest { + 'accountInfo'?: AccountInfo; + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AdditionalData; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + */ + 'channel'?: PaymentRequest.ChannelEnum; + 'company'?: Company; + /** + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + */ + 'countryCode'?: string; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + */ + 'deviceFingerprint'?: string; + /** + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + */ + 'enableOneClick'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + */ + 'enablePayOut'?: boolean; + /** + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + */ + 'enableRecurring'?: boolean; + /** + * The type of the entity the payment is processed for. + */ + 'entityType'?: PaymentRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'installments'?: Installments; + /** + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for Klarna, AfterPay, and RatePay. + */ + 'lineItems'?: Array; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator; + /** + * Metadata consists of entries, each of which includes a key and a value. Limitations: Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". + */ + 'metadata'?: object; + 'mpiData'?: ThreeDSecureData; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + /** + * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. + */ + 'origin'?: string; + /** + * The collection that contains the type of the payment method and its specific information (e.g. `idealIssuer`). + */ + 'paymentMethod': object; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: string; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – Card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – A transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. + */ + 'recurringProcessingModel'?: PaymentRequest.RecurringProcessingModelEnum; + /** + * Specifies the redirect method (GET or POST) when redirecting back from the issuer. + */ + 'redirectFromIssuerMethod'?: string; + /** + * Specifies the redirect method (GET or POST) when redirecting to the issuer. + */ + 'redirectToIssuerMethod'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * The URL to return to. + */ + 'returnUrl': string; + /** + * The maximum validity of the session. + */ + 'sessionValidity'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for 3D Secure 2 transactions. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentRequest.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * The text to appear on the shopper\'s bank statement. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. + */ + 'splits'?: Array; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + 'storePaymentMethod'?: boolean; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; -export interface PaymentRequest { - applicationInfo?: ApplicationInfo; - accountInfo?: AccountInfo; - /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api#paymentrequestadditionaldata). - */ - additionalData?: any; - amount: Amount; - billingAddress?: Address; - browserInfo?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; - /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web - */ - channel?: PaymentRequest.ChannelEnum; - company?: Company; - /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - */ - countryCode?: string; - /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - dateOfBirth?: Date; - dccQuote?: ForexQuote; - deliveryAddress?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - deliveryDate?: Date; - /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - deviceFingerprint?: string; - /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. - */ - enableOneClick?: boolean; - /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - */ - enablePayOut?: boolean; - /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. - */ - enableRecurring?: boolean; - /** - * The type of the entity the payment is processed for. - */ - entityType?: PaymentRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - installments?: Installments; - /** - * Line items regarding the payment. - */ - lineItems?: Array; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - mcc?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - merchantOrderReference?: string; - merchantRiskIndicator?: MerchantRiskIndicator; - /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: Error \"177\", \"Metadata size exceeds limit\" - */ - metadata?: any; - mpiData?: ThreeDSecureData; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - orderReference?: string; - /** - * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. - */ - origin?: string; - /** - * The collection that contains the type of the payment method and its specific information (e.g. `idealIssuer`). - */ - paymentMethod: any; - /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – Card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – A transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - */ - recurringProcessingModel?: PaymentRequest.RecurringProcessingModelEnum; - /** - * Specifies the redirect method (GET or POST) when redirecting back from the issuer. - */ - redirectFromIssuerMethod?: string; - /** - * Specifies the redirect method (GET or POST) when redirecting to the issuer. - */ - redirectToIssuerMethod?: string; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - */ - reference: string; - /** - * The URL to return to. - */ - returnUrl: string; - /** - * The maximum validity of the session. - */ - sessionValidity?: string; - /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. - */ - shopperEmail?: string; - /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > This field is mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - shopperIP?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: PaymentRequest.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - shopperLocale?: string; - shopperName?: Name; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. - */ - shopperReference?: string; - /** - * The text to appear on the shopper's bank statement. - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. - */ - splits?: Array; - /** - * The shopper's telephone number. - */ - telephoneNumber?: string; - threeDS2RequestData?: ThreeDS2RequestData; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - trustedShopper?: boolean; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AdditionalData" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentRequest.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "object" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "object" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest.attributeTypeMap; + } } export namespace PaymentRequest { - export type ChannelEnum = 'iOS' | 'Android' | 'Web'; - export const ChannelEnum = { - IOS: 'iOS' as ChannelEnum, - Android: 'Android' as ChannelEnum, - Web: 'Web' as ChannelEnum - }; - export type EntityTypeEnum = 'NaturalPerson' | 'CompanyName'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - CompanyName: 'CompanyName' as EntityTypeEnum - }; - export type RecurringProcessingModelEnum = 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile'; - export const RecurringProcessingModelEnum = { - CardOnFile: 'CardOnFile' as RecurringProcessingModelEnum, - Subscription: 'Subscription' as RecurringProcessingModelEnum, - UnscheduledCardOnFile: 'UnscheduledCardOnFile' as RecurringProcessingModelEnum - }; - export type ShopperInteractionEnum = 'Ecommerce' | 'ContAuth' | 'Moto' | 'POS'; - export const ShopperInteractionEnum = { - Ecommerce: 'Ecommerce' as ShopperInteractionEnum, - ContAuth: 'ContAuth' as ShopperInteractionEnum, - Moto: 'Moto' as ShopperInteractionEnum, - POS: 'POS' as ShopperInteractionEnum - }; -} \ No newline at end of file + export enum ChannelEnum { + IOS = 'iOS', + Android = 'Android', + Web = 'Web' + } + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + CompanyName = 'CompanyName' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts old mode 100755 new mode 100644 index a47a829..191f727 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -1,68 +1,151 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { FraudResult } from './fraudResult'; + */ + +import { CheckoutPaymentsAction } from './checkoutPaymentsAction'; +import { FraudResult } from './fraudResult'; import { InputDetail } from './inputDetail'; import { Redirect } from './redirect'; +export class PaymentResponse { + 'action'?: CheckoutPaymentsAction; + /** + * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: object; + /** + * Contains `threeds2.fingerprint` or `threeds2.challengeToken` values to be used in further calls to `/payments/details` endpoint. + */ + 'authentication'?: object; + /** + * When non-empty, contains all the fields that you must submit to the `/payments/details` endpoint. + */ + 'details'?: Array; + 'fraudResult'?: FraudResult; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'merchantReference': string; + /** + * Contains the details that will be presented to the shopper. + */ + 'outputDetails'?: object; + /** + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint. + */ + 'paymentData'?: string; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. + */ + 'pspReference'?: string; + 'redirect'?: Redirect; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + */ + 'refusalReasonCode'?: string; + /** + * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PaymentResponse.ResultCodeEnum; -export interface PaymentResponse { - /** - * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. - */ - additionalData?: any; - /** - * When non-empty, contains all the fields that you must submit to the `/payments/details` endpoint. - */ - details?: Array; - fraudResult?: FraudResult; - /** - * Contains the details that will be presented to the shopper. - */ - outputDetails?: any; - /** - * When non-empty, contains a value that you must submit to the `/payments/details` endpoint. - */ - paymentData?: string; - /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. - */ - pspReference?: string; - redirect?: Redirect; - /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - */ - refusalReason?: string; - /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - */ - refusalReasonCode?: string; - /** - * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. - */ - resultCode?: PaymentResponse.ResultCodeEnum; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "CheckoutPaymentsAction" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "authentication", + "baseName": "authentication", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "outputDetails", + "baseName": "outputDetails", + "type": "object" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "redirect", + "baseName": "redirect", + "type": "Redirect" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentResponse.attributeTypeMap; + } } + export namespace PaymentResponse { - export type ResultCodeEnum = 'AuthenticationFinished' | 'Authorised' | 'Cancelled' | 'ChallengeShopper' | 'Error' | 'IdentifyShopper' | 'Pending' | 'Received' | 'RedirectShopper' | 'Refused'; - export const ResultCodeEnum = { - AuthenticationFinished: 'AuthenticationFinished' as ResultCodeEnum, - Authorised: 'Authorised' as ResultCodeEnum, - Cancelled: 'Cancelled' as ResultCodeEnum, - ChallengeShopper: 'ChallengeShopper' as ResultCodeEnum, - Error: 'Error' as ResultCodeEnum, - IdentifyShopper: 'IdentifyShopper' as ResultCodeEnum, - Pending: 'Pending' as ResultCodeEnum, - Received: 'Received' as ResultCodeEnum, - RedirectShopper: 'RedirectShopper' as ResultCodeEnum, - Refused: 'Refused' as ResultCodeEnum - }; -} \ No newline at end of file + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused' + } +} diff --git a/src/typings/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts old mode 100755 new mode 100644 index 50a2544..3031698 --- a/src/typings/checkout/paymentSetupRequest.ts +++ b/src/typings/checkout/paymentSetupRequest.ts @@ -1,17 +1,18 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Address } from './address'; + */ + +import { Address } from './address'; import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; import { Company } from './company'; import { Configuration } from './configuration'; import { ForexQuote } from './forexQuote'; @@ -19,175 +20,459 @@ import { Installments } from './installments'; import { LineItem } from './lineItem'; import { Name } from './name'; import { Split } from './split'; +import {AdditionalData3DSecure} from "../payments/additionalData3DSecure"; +import {AdditionalDataAirline} from "../payments/additionalDataAirline"; +import {AdditionalDataCommon} from "../payments/additionalDataCommon"; +import {AdditionalDataLevel23} from "../payments/additionalDataLevel23"; +import {AdditionalDataLodging} from "../payments/additionalDataLodging"; +import {AdditionalDataOpenInvoice} from "../payments/additionalDataOpenInvoice"; +import {AdditionalDataRatepay} from "../payments/additionalDataRatepay"; +import {AdditionalDataRetry} from "../payments/additionalDataRetry"; +import {AdditionalDataRisk} from "../payments/additionalDataRisk"; +import {AdditionalDataRiskStandalone} from "../payments/additionalDataRiskStandalone"; +import {AdditionalDataTemporaryServices} from "../payments/additionalDataTemporaryServices"; +import {AdditionalDataWallets} from "../payments/additionalDataWallets"; +type AdditionalData = AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCommon | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; +export class PaymentSetupRequest { + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AdditionalData; + /** + * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + /** + * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'blockedPaymentMethods'?: Array; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + */ + 'channel'?: PaymentSetupRequest.ChannelEnum; + 'company'?: Company; + 'configuration'?: Configuration; + /** + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + */ + 'countryCode': string; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + */ + 'enableOneClick'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + */ + 'enablePayOut'?: boolean; + /** + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + */ + 'enableRecurring'?: boolean; + /** + * The type of the entity the payment is processed for. + */ + 'entityType'?: PaymentSetupRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'installments'?: Installments; + /** + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for Klarna, AfterPay, and RatePay. + */ + 'lineItems'?: Array; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + /** + * Metadata consists of entries, each of which includes a key and a value. Limitations: Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". + */ + 'metadata'?: object; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + /** + * Required for the Web integration. Set this parameter to the origin URL of the page that you are loading the SDK from. + */ + 'origin'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: string; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * The URL to return to. + */ + 'returnUrl': string; + /** + * The version of the SDK you are using (for Web SDK integrations only). + */ + 'sdkVersion'?: string; + /** + * The maximum validity of the session. + */ + 'sessionValidity'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for 3D Secure 2 transactions. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentSetupRequest.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * The text to appear on the shopper\'s bank statement. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. + */ + 'splits'?: Array; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + 'storePaymentMethod'?: boolean; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * The token obtained when initializing the SDK. > This parameter is required for iOS and Android; not required for Web. + */ + 'token'?: string; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; -export interface PaymentSetupRequest { - /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api#paymentrequestadditionaldata). - */ - additionalData?: any; - /** - * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods/payment-methods-overview). - */ - allowedPaymentMethods?: Array; - amount: Amount; - billingAddress?: Address; - /** - * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods/payment-methods-overview). - */ - blockedPaymentMethods?: Array; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; - /** - * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web - */ - channel?: PaymentSetupRequest.ChannelEnum; - company?: Company; - configuration?: Configuration; - /** - * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE - */ - countryCode: string; - /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - dateOfBirth?: Date; - dccQuote?: ForexQuote; - deliveryAddress?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - deliveryDate?: Date; - /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. - */ - enableOneClick?: boolean; - /** - * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. - */ - enablePayOut?: boolean; - /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. - */ - enableRecurring?: boolean; - /** - * The type of the entity the payment is processed for. - */ - entityType?: PaymentSetupRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - installments?: Installments; - /** - * Line items regarding the payment. - */ - lineItems?: Array; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - mcc?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - merchantOrderReference?: string; - /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: Error \"177\", \"Metadata size exceeds limit\" - */ - metadata?: any; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - orderReference?: string; - /** - * Required for the Web integration. Set this parameter to the origin URL of the page that you are loading the SDK from. - */ - origin?: string; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - */ - reference: string; - /** - * The URL to return to. - */ - returnUrl: string; - /** - * The version of the SDK you are using (for Web SDK integrations only). - */ - sdkVersion?: string; - /** - * The maximum validity of the session. - */ - sessionValidity?: string; - /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. - */ - shopperEmail?: string; - /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > This field is mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - shopperIP?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: PaymentSetupRequest.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - shopperLocale?: string; - shopperName?: Name; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. - */ - shopperReference?: string; - /** - * The text to appear on the shopper's bank statement. - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. - */ - splits?: Array; - /** - * The shopper's telephone number. - */ - telephoneNumber?: string; - /** - * The token obtained when initializing the SDK. > This parameter is required for iOS and Android; not required for Web. - */ - token?: string; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - trustedShopper?: boolean; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AdditionalData" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentSetupRequest.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "Configuration" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentSetupRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "object" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentSetupRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupRequest.attributeTypeMap; + } } + export namespace PaymentSetupRequest { - export type ChannelEnum = 'iOS' | 'Android' | 'Web'; - export const ChannelEnum = { - IOS: 'iOS' as ChannelEnum, - Android: 'Android' as ChannelEnum, - Web: 'Web' as ChannelEnum - }; - export type EntityTypeEnum = 'NaturalPerson' | 'CompanyName'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - CompanyName: 'CompanyName' as EntityTypeEnum - }; - export type ShopperInteractionEnum = 'Ecommerce' | 'ContAuth' | 'Moto' | 'POS'; - export const ShopperInteractionEnum = { - Ecommerce: 'Ecommerce' as ShopperInteractionEnum, - ContAuth: 'ContAuth' as ShopperInteractionEnum, - Moto: 'Moto' as ShopperInteractionEnum, - POS: 'POS' as ShopperInteractionEnum - }; -} \ No newline at end of file + export enum ChannelEnum { + IOS = 'iOS', + Android = 'Android', + Web = 'Web' + } + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + CompanyName = 'CompanyName' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/checkout/paymentSetupResponse.ts b/src/typings/checkout/paymentSetupResponse.ts old mode 100755 new mode 100644 index 8f61456..b1f61d5 --- a/src/typings/checkout/paymentSetupResponse.ts +++ b/src/typings/checkout/paymentSetupResponse.ts @@ -1,20 +1,43 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface PaymentSetupResponse { +import { RecurringDetail } from './recurringDetail'; + +export class PaymentSetupResponse { /** - * The encoded payment session that you need to pass to the SDK. - */ - paymentSession?: string; -} \ No newline at end of file + * The encoded payment session that you need to pass to the SDK. + */ + 'paymentSession'?: string; + /** + * The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request. + */ + 'recurringDetails'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentSession", + "baseName": "paymentSession", + "type": "string" + }, + { + "name": "recurringDetails", + "baseName": "recurringDetails", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupResponse.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentVerificationRequest.ts b/src/typings/checkout/paymentVerificationRequest.ts old mode 100755 new mode 100644 index 8e71b98..4116da5 --- a/src/typings/checkout/paymentVerificationRequest.ts +++ b/src/typings/checkout/paymentVerificationRequest.ts @@ -1,20 +1,33 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface PaymentVerificationRequest { + +export class PaymentVerificationRequest { /** - * Encrypted and signed payment result data. You should receive this value from the Checkout SDK after the shopper completes the payment. - */ - payload: string; -} \ No newline at end of file + * Encrypted and signed payment result data. You should receive this value from the Checkout SDK after the shopper completes the payment. + */ + 'payload': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payload", + "baseName": "payload", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentVerificationResponse.ts b/src/typings/checkout/paymentVerificationResponse.ts old mode 100755 new mode 100644 index 1415f18..fe0b7bb --- a/src/typings/checkout/paymentVerificationResponse.ts +++ b/src/typings/checkout/paymentVerificationResponse.ts @@ -1,67 +1,125 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { FraudResult } from './fraudResult'; + */ + +import { FraudResult } from './fraudResult'; import { ServiceError } from './serviceError'; +export class PaymentVerificationResponse { + /** + * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: object; + 'fraudResult'?: FraudResult; + /** + * A unique value that you provided in the initial `/paymentSession` request as a `reference` field. + */ + 'merchantReference': string; + /** + * The payment method used in the transaction. + */ + 'paymentMethod': string; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. + */ + 'pspReference'?: string; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + */ + 'refusalReasonCode'?: string; + /** + * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PaymentVerificationResponse.ResultCodeEnum; + 'serviceError'?: ServiceError; + /** + * The shopperLocale value provided in the payment request. + */ + 'shopperLocale': string; -export interface PaymentVerificationResponse { - /** - * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. - */ - additionalData?: any; - fraudResult?: FraudResult; - /** - * A unique value that you provided in the initial `/paymentSession` request as a `reference` field. - */ - merchantReference: string; - /** - * The payment method used in the transaction. - */ - paymentMethod: string; - /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. - */ - pspReference?: string; - /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - */ - refusalReason?: string; - /** - * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - */ - refusalReasonCode?: string; - /** - * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. - */ - resultCode?: PaymentVerificationResponse.ResultCodeEnum; - serviceError?: ServiceError; - /** - * The shopperLocale value provided in the payment request. - */ - shopperLocale: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentVerificationResponse.ResultCodeEnum" + }, + { + "name": "serviceError", + "baseName": "serviceError", + "type": "ServiceError" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationResponse.attributeTypeMap; + } } + export namespace PaymentVerificationResponse { - export type ResultCodeEnum = 'AuthenticationFinished' | 'Authorised' | 'Cancelled' | 'ChallengeShopper' | 'Error' | 'IdentifyShopper' | 'Pending' | 'Received' | 'RedirectShopper' | 'Refused'; - export const ResultCodeEnum = { - AuthenticationFinished: 'AuthenticationFinished' as ResultCodeEnum, - Authorised: 'Authorised' as ResultCodeEnum, - Cancelled: 'Cancelled' as ResultCodeEnum, - ChallengeShopper: 'ChallengeShopper' as ResultCodeEnum, - Error: 'Error' as ResultCodeEnum, - IdentifyShopper: 'IdentifyShopper' as ResultCodeEnum, - Pending: 'Pending' as ResultCodeEnum, - Received: 'Received' as ResultCodeEnum, - RedirectShopper: 'RedirectShopper' as ResultCodeEnum, - Refused: 'Refused' as ResultCodeEnum - }; -} \ No newline at end of file + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused' + } +} diff --git a/src/typings/checkout/recurring.ts b/src/typings/checkout/recurring.ts old mode 100755 new mode 100644 index 3acaf02..b8ed9ed --- a/src/typings/checkout/recurring.ts +++ b/src/typings/checkout/recurring.ts @@ -1,49 +1,80 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Recurring { + +export class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-essentials/payment-glossary#card_security_code_cvc_cvv_cid_). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payment-glossary#cardnotpresentcnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/features/third-party-payouts). - */ - contract?: Recurring.ContractEnum; + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; /** - * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - */ - recurringExpiry?: Date; + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; /** - * Minimum number of days between authorisations. Only for 3D Secure 2. - */ - recurringFrequency?: string; + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; /** - * The name of the token service. - */ - tokenService?: Recurring.TokenServiceEnum; + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } + export namespace Recurring { - export type ContractEnum = 'ONECLICK' | 'RECURRING' | 'PAYOUT'; - export const ContractEnum = { - ONECLICK: 'ONECLICK' as ContractEnum, - RECURRING: 'RECURRING' as ContractEnum, - PAYOUT: 'PAYOUT' as ContractEnum - }; - export type TokenServiceEnum = 'VISATOKENSERVICE' | 'MCTOKENSERVICE'; - export const TokenServiceEnum = { - VISATOKENSERVICE: 'VISATOKENSERVICE' as TokenServiceEnum, - MCTOKENSERVICE: 'MCTOKENSERVICE' as TokenServiceEnum - }; -} \ No newline at end of file + export enum ContractEnum { + ONECLICK = 'ONECLICK', + RECURRING = 'RECURRING', + PAYOUT = 'PAYOUT' + } + export enum TokenServiceEnum { + VISATOKENSERVICE = 'VISATOKENSERVICE', + MCTOKENSERVICE = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/checkout/recurringDetail.ts b/src/typings/checkout/recurringDetail.ts old mode 100755 new mode 100644 index d8333b5..54ffc06 --- a/src/typings/checkout/recurringDetail.ts +++ b/src/typings/checkout/recurringDetail.ts @@ -1,49 +1,120 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { InputDetail } from './inputDetail'; + */ + +import { InputDetail } from './inputDetail'; import { PaymentMethodGroup } from './paymentMethodGroup'; import { StoredDetails } from './storedDetails'; +export class RecurringDetail { + /** + * List of possible brands. For example: visa, mc. + */ + 'brands'?: Array; + /** + * The configuration of the payment method. + */ + 'configuration'?: object; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'details'?: Array; + 'group'?: PaymentMethodGroup; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'inputDetails'?: Array; + /** + * The displayable name of this payment method. + */ + 'name'?: string; + /** + * Echo data required to send in next calls. + */ + 'paymentMethodData'?: string; + /** + * The reference that uniquely identifies the recurring detail. + */ + 'recurringDetailReference'?: string; + 'storedDetails'?: StoredDetails; + /** + * Indicates whether this payment method supports tokenization or not. + */ + 'supportsRecurring'?: boolean; + /** + * The unique payment method code. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedDetails", + "baseName": "storedDetails", + "type": "StoredDetails" + }, + { + "name": "supportsRecurring", + "baseName": "supportsRecurring", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetail.attributeTypeMap; + } +} -export interface RecurringDetail { - /** - * The configuration of the payment method. - */ - configuration?: any; - /** - * All input details to be provided to complete the payment with this payment method. - */ - details?: Array; - group?: PaymentMethodGroup; - /** - * The displayable name of this payment method. - */ - name?: string; - /** - * Echo data required to send in next calls. - */ - paymentMethodData?: string; - /** - * The reference that uniquely identifies the recurring detail. - */ - recurringDetailReference?: string; - storedDetails?: StoredDetails; - /** - * Indicates whether this payment method supports tokenization or not. - */ - supportsRecurring?: boolean; - /** - * The unique payment method code. - */ - type?: string; -} \ No newline at end of file diff --git a/src/typings/checkout/redirect.ts b/src/typings/checkout/redirect.ts old mode 100755 new mode 100644 index 434b2da..4652ae3 --- a/src/typings/checkout/redirect.ts +++ b/src/typings/checkout/redirect.ts @@ -1,35 +1,57 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Redirect { + +export class Redirect { /** - * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. - */ - data?: any; + * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + */ + 'data'?: object; /** - * The web method that you must use to access the redirect URL. Possible values: GET, POST. - */ - method?: Redirect.MethodEnum; + * 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; + * 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": "object" + }, + { + "name": "method", + "baseName": "method", + "type": "Redirect.MethodEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Redirect.attributeTypeMap; + } } + export namespace Redirect { - export type MethodEnum = 'GET' | 'POST'; - export const MethodEnum = { - GET: 'GET' as MethodEnum, - POST: 'POST' as MethodEnum - }; -} \ No newline at end of file + export enum MethodEnum { + GET = 'GET', + POST = 'POST' + } +} diff --git a/src/typings/checkout/sDKEphemPubKey.ts b/src/typings/checkout/sDKEphemPubKey.ts old mode 100755 new mode 100644 index ded509e..44c697f --- a/src/typings/checkout/sDKEphemPubKey.ts +++ b/src/typings/checkout/sDKEphemPubKey.ts @@ -1,32 +1,60 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface SDKEphemPubKey { + +export class SDKEphemPubKey { /** - * The `crv` value as received from the 3D Secure 2 SDK. - */ - crv?: string; + * The `crv` value as received from the 3D Secure 2 SDK. + */ + 'crv'?: string; /** - * The `kty` value as received from the 3D Secure 2 SDK. - */ - kty?: string; + * The `kty` value as received from the 3D Secure 2 SDK. + */ + 'kty'?: string; /** - * The `x` value as received from the 3D Secure 2 SDK. - */ - x?: string; + * The `x` value as received from the 3D Secure 2 SDK. + */ + 'x'?: string; /** - * The `y` value as received from the 3D Secure 2 SDK. - */ - y?: string; -} \ No newline at end of file + * The `y` value as received from the 3D Secure 2 SDK. + */ + 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/serviceError.ts b/src/typings/checkout/serviceError.ts old mode 100755 new mode 100644 index c539526..60c18cc --- a/src/typings/checkout/serviceError.ts +++ b/src/typings/checkout/serviceError.ts @@ -1,19 +1,42 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ServiceError { - errorCode?: string; - errorType?: string; - message?: string; -} \ No newline at end of file + +export class ServiceError { + 'errorCode'?: string; + 'errorType'?: string; + 'message'?: string; + + 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" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/shopperInput.ts b/src/typings/checkout/shopperInput.ts old mode 100755 new mode 100644 index eae2161..b8cb7dd --- a/src/typings/checkout/shopperInput.ts +++ b/src/typings/checkout/shopperInput.ts @@ -1,48 +1,68 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ShopperInput { + +export class ShopperInput { /** - * Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly - */ - billingAddress?: ShopperInput.BillingAddressEnum; + * Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly + */ + 'billingAddress'?: ShopperInput.BillingAddressEnum; /** - * Specifies visibility of delivery address fields. Permitted values: * editable * hidden * readOnly - */ - deliveryAddress?: ShopperInput.DeliveryAddressEnum; + * Specifies visibility of delivery address fields. Permitted values: * editable * hidden * readOnly + */ + 'deliveryAddress'?: ShopperInput.DeliveryAddressEnum; /** - * Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly - */ - personalDetails?: ShopperInput.PersonalDetailsEnum; + * Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly + */ + 'personalDetails'?: ShopperInput.PersonalDetailsEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "ShopperInput.BillingAddressEnum" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "ShopperInput.DeliveryAddressEnum" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "ShopperInput.PersonalDetailsEnum" + } ]; + + static getAttributeTypeMap() { + return ShopperInput.attributeTypeMap; + } } + export namespace ShopperInput { - export type BillingAddressEnum = 'editable' | 'hidden' | 'readOnly'; - export const BillingAddressEnum = { - Editable: 'editable' as BillingAddressEnum, - Hidden: 'hidden' as BillingAddressEnum, - ReadOnly: 'readOnly' as BillingAddressEnum - }; - export type DeliveryAddressEnum = 'editable' | 'hidden' | 'readOnly'; - export const DeliveryAddressEnum = { - Editable: 'editable' as DeliveryAddressEnum, - Hidden: 'hidden' as DeliveryAddressEnum, - ReadOnly: 'readOnly' as DeliveryAddressEnum - }; - export type PersonalDetailsEnum = 'editable' | 'hidden' | 'readOnly'; - export const PersonalDetailsEnum = { - Editable: 'editable' as PersonalDetailsEnum, - Hidden: 'hidden' as PersonalDetailsEnum, - ReadOnly: 'readOnly' as PersonalDetailsEnum - }; -} \ No newline at end of file + export enum BillingAddressEnum { + Editable = 'editable', + Hidden = 'hidden', + ReadOnly = 'readOnly' + } + export enum DeliveryAddressEnum { + Editable = 'editable', + Hidden = 'hidden', + ReadOnly = 'readOnly' + } + export enum PersonalDetailsEnum { + Editable = 'editable', + Hidden = 'hidden', + ReadOnly = 'readOnly' + } +} diff --git a/src/typings/checkout/shopperInteractionDevice.ts b/src/typings/checkout/shopperInteractionDevice.ts index 57ec961..bebda32 100644 --- a/src/typings/checkout/shopperInteractionDevice.ts +++ b/src/typings/checkout/shopperInteractionDevice.ts @@ -1,8 +1,8 @@ /** * Adyen Checkout API - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v50/payments ``` + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts old mode 100755 new mode 100644 index 0dd190c..0d4ec0e --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -1,45 +1,77 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { SplitAmount } from './splitAmount'; + */ +import { SplitAmount } from './splitAmount'; -export interface Split { +export class Split { /** - * The account to which this split applies. >Required if the type is `MarketPlace`. - */ - account?: string; - amount: SplitAmount; + * The account to which this split applies. >Required if the type is `MarketPlace`. + */ + 'account'?: string; + 'amount': SplitAmount; /** - * A description of this split. - */ - description?: string; + * A description of this split. + */ + 'description'?: string; /** - * The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`. - */ - reference?: string; + * The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`. + */ + 'reference'?: string; /** - * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `Verification`. - */ - type: Split.TypeEnum; + * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `Verification`. + */ + 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } } + export namespace Split { - export type TypeEnum = 'Commission' | 'Default' | 'MarketPlace' | 'PaymentFee' | 'VAT' | 'Verification'; - export const TypeEnum = { - Commission: 'Commission' as TypeEnum, - Default: 'Default' as TypeEnum, - MarketPlace: 'MarketPlace' as TypeEnum, - PaymentFee: 'PaymentFee' as TypeEnum, - VAT: 'VAT' as TypeEnum, - Verification: 'Verification' as TypeEnum - }; -} \ No newline at end of file + export enum TypeEnum { + Commission = 'Commission', + Default = 'Default', + MarketPlace = 'MarketPlace', + PaymentFee = 'PaymentFee', + VAT = 'VAT', + Verification = 'Verification' + } +} diff --git a/src/typings/checkout/splitAmount.ts b/src/typings/checkout/splitAmount.ts old mode 100755 new mode 100644 index 8af4166..d8d9472 --- a/src/typings/checkout/splitAmount.ts +++ b/src/typings/checkout/splitAmount.ts @@ -1,24 +1,42 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface SplitAmount { + +export class SplitAmount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. - */ - currency?: string; + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + */ + 'currency'?: string; /** - * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; -} \ No newline at end of file + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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 SplitAmount.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/storedDetails.ts b/src/typings/checkout/storedDetails.ts old mode 100755 new mode 100644 index 13904d7..d219eaf --- a/src/typings/checkout/storedDetails.ts +++ b/src/typings/checkout/storedDetails.ts @@ -1,24 +1,47 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { BankAccount } from './bankAccount'; + */ + +import { BankAccount } from './bankAccount'; import { Card } from './card'; - -export interface StoredDetails { - bank?: BankAccount; - card?: Card; +export class StoredDetails { + 'bank'?: BankAccount; + 'card'?: Card; /** - * The email associated with stored payment details. - */ - emailAddress?: string; -} \ No newline at end of file + * The email associated with stored payment details. + */ + 'emailAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "emailAddress", + "baseName": "emailAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredDetails.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/storedPaymentMethod.ts b/src/typings/checkout/storedPaymentMethod.ts index 55902b9..abf1bd4 100644 --- a/src/typings/checkout/storedPaymentMethod.ts +++ b/src/typings/checkout/storedPaymentMethod.ts @@ -1,8 +1,8 @@ /** * Adyen Checkout API - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v50/payments ``` + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/checkout/subInputDetail.ts b/src/typings/checkout/subInputDetail.ts old mode 100755 new mode 100644 index 0f21dff..1a1b2ac --- a/src/typings/checkout/subInputDetail.ts +++ b/src/typings/checkout/subInputDetail.ts @@ -1,41 +1,79 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Item } from './item'; + */ +import { Item } from './item'; -export interface SubInputDetail { +export class SubInputDetail { /** - * Configuration parameters for the required input. - */ - configuration?: any; + * Configuration parameters for the required input. + */ + 'configuration'?: object; /** - * In case of a select, the items to choose from. - */ - items?: Array; + * In case of a select, the items to choose from. + */ + 'items'?: Array; /** - * The value to provide in the result. - */ - key?: string; + * The value to provide in the result. + */ + 'key'?: string; /** - * True if this input is optional to provide. - */ - optional?: boolean; + * True if this input is optional to provide. + */ + 'optional'?: boolean; /** - * The type of the required input. - */ - type?: string; + * The type of the required input. + */ + 'type'?: string; /** - * The value can be pre-filled, if available. - */ - value?: string; -} \ No newline at end of file + * The value can be pre-filled, if available. + */ + 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubInputDetail.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts old mode 100755 new mode 100644 index 63a211b..d4d0d1f --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -1,89 +1,233 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { DeviceRenderOptions } from './deviceRenderOptions'; + */ + +import { DeviceRenderOptions } from './deviceRenderOptions'; import { SDKEphemPubKey } from './sDKEphemPubKey'; +export class ThreeDS2RequestData { + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerBIN'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerMerchantID'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'authenticationOnly'?: boolean; + /** + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + */ + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; + /** + * The environment of the shopper. Allowed values: * `app` * `browser` + */ + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions; + /** + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + */ + 'mcc'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + */ + 'merchantName'?: string; + /** + * The `messageVersion` value indicating the 3D Secure 2 protocol version. + */ + 'messageVersion'?: string; + /** + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + */ + 'notificationURL'?: string; + /** + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkAppID'?: string; + /** + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkEncData'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey; + /** + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + */ + 'sdkMaxTimeout'?: number; + /** + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkReferenceNumber'?: string; + /** + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkTransID'?: string; + /** + * Completion indicator for the device fingerprinting. + */ + 'threeDSCompInd'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorID'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorName'?: string; + /** + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + */ + 'threeDSRequestorURL'?: string; + /** + * Identify the type of the transaction being authenticated. + */ + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; + /** + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + */ + 'whiteListStatus'?: string; -export interface ThreeDS2RequestData { - /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure-2/3ds2-checkout-authentication-only-integration), and not the payment authorisation. - */ - authenticationOnly?: boolean; - /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` - */ - challengeIndicator?: ThreeDS2RequestData.ChallengeIndicatorEnum; - /** - * The environment of the shopper. Allowed values: * `app` * `browser` - */ - deviceChannel: string; - deviceRenderOptions?: DeviceRenderOptions; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. - * Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - */ - merchantName?: string; - /** - * The `messageVersion` value indicating the 3D Secure 2 protocol version. - */ - messageVersion?: string; - /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - */ - notificationURL?: string; - /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - */ - sdkAppID?: string; - /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - */ - sdkEncData?: string; - sdkEphemPubKey?: SDKEphemPubKey; - /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Only for `deviceChannel` set to **app**. - */ - sdkMaxTimeout?: number; - /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - */ - sdkReferenceNumber?: string; - /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - */ - sdkTransID?: string; - /** - * Completion indicator for the device fingerprinting. - */ - threeDSCompInd?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure-2/3ds2-checkout-authentication-only-integration) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - */ - threeDSRequestorID?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure-2/3ds2-checkout-authentication-only-integration) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - */ - threeDSRequestorName?: string; - /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - */ - threeDSRequestorURL?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } } + export namespace ThreeDS2RequestData { - export type ChallengeIndicatorEnum = 'noPreference' | 'requestNoChallenge' | 'requestChallenge'; - export const ChallengeIndicatorEnum = { - NoPreference: 'noPreference' as ChallengeIndicatorEnum, - RequestNoChallenge: 'requestNoChallenge' as ChallengeIndicatorEnum, - RequestChallenge: 'requestChallenge' as ChallengeIndicatorEnum - }; -} \ No newline at end of file + export enum ChallengeIndicatorEnum { + NoPreference = 'noPreference', + RequestNoChallenge = 'requestNoChallenge', + RequestChallenge = 'requestChallenge', + RequestChallengeAsMandate = 'requestChallengeAsMandate' + } + export enum TransactionTypeEnum { + GoodsOrServicePurchase = 'goodsOrServicePurchase', + CheckAcceptance = 'checkAcceptance', + AccountFunding = 'accountFunding', + QuasiCashTransaction = 'quasiCashTransaction', + PrepaidActivationAndLoad = 'prepaidActivationAndLoad' + } +} diff --git a/src/typings/checkout/threeDSecureData.ts b/src/typings/checkout/threeDSecureData.ts old mode 100755 new mode 100644 index 9b9383e..bdf00d4 --- a/src/typings/checkout/threeDSecureData.ts +++ b/src/typings/checkout/threeDSecureData.ts @@ -1,65 +1,114 @@ - - /** - * Adyen Checkout Service - * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v46/payments ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ThreeDSecureData { + +export class ThreeDSecureData { /** - * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from challenge flow. If the transaction was frictionless, set this value to **Y**. - */ - authenticationResponse?: ThreeDSecureData.AuthenticationResponseEnum; + * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, set this value to **Y**. + */ + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; /** - * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - */ - cavv?: string; + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + 'cavv'?: string; /** - * The CAVV algorithm used. Include this only for 3D Secure 1. - */ - cavvAlgorithm?: string; + * The CAVV algorithm used. Include this only for 3D Secure 1. + */ + 'cavvAlgorithm'?: string; /** - * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from 3D Secure device fingerprinting result. - */ - directoryResponse?: ThreeDSecureData.DirectoryResponseEnum; + * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`. The possible values are **A** or **Y** for a frictionless flow, or **C** for a challenge flow. + */ + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. - */ - dsTransID?: string; + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + */ + 'dsTransID'?: string; /** - * The electronic commerce indicator. - */ - eci?: string; + * The electronic commerce indicator. + */ + 'eci'?: string; /** - * The version of the 3D Secure protocol. - */ - threeDSVersion?: string; + * The version of the 3D Secure protocol. + */ + 'threeDSVersion'?: string; /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). - */ - xid?: string; + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } } + export namespace ThreeDSecureData { - export type AuthenticationResponseEnum = 'Y' | 'N' | 'U' | 'A'; - export const AuthenticationResponseEnum = { - Y: 'Y' as AuthenticationResponseEnum, - N: 'N' as AuthenticationResponseEnum, - U: 'U' as AuthenticationResponseEnum, - A: 'A' as AuthenticationResponseEnum - }; - export type DirectoryResponseEnum = 'Y' | 'N' | 'U' | 'E' | 'C'; - export const DirectoryResponseEnum = { - Y: 'Y' as DirectoryResponseEnum, - N: 'N' as DirectoryResponseEnum, - U: 'U' as DirectoryResponseEnum, - E: 'E' as DirectoryResponseEnum, - C: 'C' as DirectoryResponseEnum - }; -} \ No newline at end of file + export enum AuthenticationResponseEnum { + Y = 'Y', + N = 'N', + U = 'U', + A = 'A' + } + export enum DirectoryResponseEnum { + A = 'A', + C = 'C', + D = 'D', + I = 'I', + N = 'N', + R = 'R', + U = 'U', + Y = 'Y' + } +} diff --git a/src/typings/payments/accountInfo.ts b/src/typings/payments/accountInfo.ts old mode 100755 new mode 100644 index 55a2c92..c5022cc --- a/src/typings/payments/accountInfo.ts +++ b/src/typings/payments/accountInfo.ts @@ -1,126 +1,235 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface AccountInfo { + +export class AccountInfo { /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - accountAgeIndicator?: AccountInfo.AccountAgeIndicatorEnum; + * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; /** - * Date when the shopper's account was last changed. - */ - accountChangeDate?: Date; + * Date when the shopper\'s account was last changed. + */ + 'accountChangeDate'?: Date; /** - * Indicator for the length of time since the shopper's account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - accountChangeIndicator?: AccountInfo.AccountChangeIndicatorEnum; + * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; /** - * Date when the shopper's account was created. - */ - accountCreationDate?: Date; + * Date when the shopper\'s account was created. + */ + 'accountCreationDate'?: Date; /** - * Number of attempts the shopper tried to add a card to their account in the last day. - */ - addCardAttemptsDay?: number; + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + */ + 'accountType'?: AccountInfo.AccountTypeEnum; /** - * Date the selected delivery address was last used. - */ - deliveryAddressUsageDate?: Date; + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + 'addCardAttemptsDay'?: number; /** - * Indicator for the length of time since this delivery address was last used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - deliveryAddressUsageIndicator?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + * Date the selected delivery address was first used. + */ + 'deliveryAddressUsageDate'?: Date; /** - * Shopper's home phone number (including the country code). - */ - homePhone?: string; + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; /** - * Shopper's mobile phone number (including the country code). - */ - mobilePhone?: string; + * Shopper\'s home phone number (including the country code). + */ + 'homePhone'?: string; /** - * Date when the shopper last changed their password. - */ - passwordChangeDate?: Date; + * Shopper\'s mobile phone number (including the country code). + */ + 'mobilePhone'?: string; /** - * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - passwordChangeIndicator?: AccountInfo.PasswordChangeIndicatorEnum; + * Date when the shopper last changed their password. + */ + 'passwordChangeDate'?: Date; /** - * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - */ - pastTransactionsDay?: number; + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; /** - * Number of all transactions (successful and abandoned) from this shopper in the past year. - */ - pastTransactionsYear?: number; + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + 'pastTransactionsDay'?: number; /** - * Date this payment method was added to the shopper's account. - */ - paymentAccountAge?: Date; + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + 'pastTransactionsYear'?: number; /** - * Indicator for the length of time since this payment method was added to this shopper's account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days - */ - paymentAccountIndicator?: AccountInfo.PaymentAccountIndicatorEnum; + * Date this payment method was added to the shopper\'s account. + */ + 'paymentAccountAge'?: Date; /** - * Number of successful purchases in the last six months. - */ - purchasesLast6Months?: number; + * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; /** - * Whether suspicious activity was recorded on this account. - */ - suspiciousActivity?: boolean; + * Number of successful purchases in the last six months. + */ + 'purchasesLast6Months'?: number; /** - * Shopper's work phone number (including the country code). - */ - workPhone?: string; + * Whether suspicious activity was recorded on this account. + */ + 'suspiciousActivity'?: boolean; + /** + * Shopper\'s work phone number (including the country code). + */ + 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } } + export namespace AccountInfo { - export type AccountAgeIndicatorEnum = 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const AccountAgeIndicatorEnum = { - NotApplicable: 'notApplicable' as AccountAgeIndicatorEnum, - ThisTransaction: 'thisTransaction' as AccountAgeIndicatorEnum, - LessThan30Days: 'lessThan30Days' as AccountAgeIndicatorEnum, - From30To60Days: 'from30To60Days' as AccountAgeIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as AccountAgeIndicatorEnum - }; - export type AccountChangeIndicatorEnum = 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const AccountChangeIndicatorEnum = { - ThisTransaction: 'thisTransaction' as AccountChangeIndicatorEnum, - LessThan30Days: 'lessThan30Days' as AccountChangeIndicatorEnum, - From30To60Days: 'from30To60Days' as AccountChangeIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as AccountChangeIndicatorEnum - }; - export type DeliveryAddressUsageIndicatorEnum = 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const DeliveryAddressUsageIndicatorEnum = { - ThisTransaction: 'thisTransaction' as DeliveryAddressUsageIndicatorEnum, - LessThan30Days: 'lessThan30Days' as DeliveryAddressUsageIndicatorEnum, - From30To60Days: 'from30To60Days' as DeliveryAddressUsageIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as DeliveryAddressUsageIndicatorEnum - }; - export type PasswordChangeIndicatorEnum = 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const PasswordChangeIndicatorEnum = { - NotApplicable: 'notApplicable' as PasswordChangeIndicatorEnum, - ThisTransaction: 'thisTransaction' as PasswordChangeIndicatorEnum, - LessThan30Days: 'lessThan30Days' as PasswordChangeIndicatorEnum, - From30To60Days: 'from30To60Days' as PasswordChangeIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as PasswordChangeIndicatorEnum - }; - export type PaymentAccountIndicatorEnum = 'notApplicable' | 'thisTransaction' | 'lessThan30Days' | 'from30To60Days' | 'moreThan60Days'; - export const PaymentAccountIndicatorEnum = { - NotApplicable: 'notApplicable' as PaymentAccountIndicatorEnum, - ThisTransaction: 'thisTransaction' as PaymentAccountIndicatorEnum, - LessThan30Days: 'lessThan30Days' as PaymentAccountIndicatorEnum, - From30To60Days: 'from30To60Days' as PaymentAccountIndicatorEnum, - MoreThan60Days: 'moreThan60Days' as PaymentAccountIndicatorEnum - }; -} \ No newline at end of file + export enum AccountAgeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountChangeIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountTypeEnum { + NotApplicable = 'notApplicable', + Credit = 'credit', + Debit = 'debit' + } + export enum DeliveryAddressUsageIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PasswordChangeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PaymentAccountIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } +} diff --git a/src/typings/payments/additionalData3DSecure.ts b/src/typings/payments/additionalData3DSecure.ts new file mode 100644 index 0000000..a0156f9 --- /dev/null +++ b/src/typings/payments/additionalData3DSecure.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalData3DSecure { + /** + * This parameter indicates that you are able to process 3D Secure 2 transactions natively on your payment page. Send this field when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/checkout/3d-secure/native-3ds2), such as Components or Drop-in. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. > This parameter only indicates your readiness to support 3D Secure 2 natively on Drop-in or Components. To specify that you want to perform 3D Secure on a transaction, use Dynamic 3D Secure or send the executeThreeD parameter. + */ + 'allow3DS2'?: string; + /** + * This parameter indicates if you want to perform 3D Secure authentication on a transaction or not. Allowed values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. > Alternatively, you can also use Dynamic 3D Secure to configure rules for applying 3D Secure. + */ + 'executeThreeD'?: string; + /** + * In case of Secure+, this field must be set to **CUPSecurePlus**. + */ + 'mpiImplementationType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allow3DS2", + "baseName": "allow3DS2", + "type": "string" + }, + { + "name": "executeThreeD", + "baseName": "executeThreeD", + "type": "string" + }, + { + "name": "mpiImplementationType", + "baseName": "mpiImplementationType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalData3DSecure.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataAirline.ts b/src/typings/payments/additionalDataAirline.ts new file mode 100644 index 0000000..ac9b38d --- /dev/null +++ b/src/typings/payments/additionalDataAirline.ts @@ -0,0 +1,267 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataAirline { + /** + * Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 + */ + 'airlinePassengerName'?: string; + /** + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4 + */ + 'airlineComputerizedReservationSystem'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3 + */ + 'airlineAirlineCode'?: string; + /** + * The ticket\'s unique identifier. * minLength: 1 * maxLength: 150 + */ + 'airlineTicketNumber'?: string; + /** + * Flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 * maxLength: 16 + */ + 'airlineFlightDate'?: string; + /** + * Reference number; alphanumeric. * minLength: 0 * maxLength: 20 + */ + 'airlineCustomerReferenceNumber'?: string; + /** + * Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 + */ + 'airlineTicketIssueAddress'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineAirlineDesignatorCode'?: string; + /** + * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 + */ + 'airlineTravelAgencyCode'?: string; + /** + * The name of the travel agency. * minLength: 1 * maxLength: 25 + */ + 'airlineTravelAgencyName'?: string; + /** + * 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 + */ + 'airlineAgencyPlanName'?: string; + /** + * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 + */ + 'airlineAgencyInvoiceNumber'?: string; + /** + * Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18 + */ + 'airlineBoardingFee'?: string; + /** + * Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDepartAirport'?: string; + /** + * The flight identifier. * minLength: 1 * maxLength: 5 + */ + 'airlineLegFlightNumber'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineLegCarrierCode'?: string; + /** + * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 + */ + 'airlineLegFareBaseCode'?: string; + /** + * 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegClassOfTravel'?: string; + /** + * 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegStopOverCode'?: string; + /** + * Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDestinationCode'?: string; + /** + * Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16 + */ + 'airlineLegDateOfTravel'?: string; + /** + * [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12 + */ + 'airlineLegDepartTax'?: string; + /** + * Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerFirstName'?: string; + /** + * Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerLastName'?: string; + /** + * Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6 + */ + 'airlinePassengerTravellerType'?: string; + /** + * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30 + */ + 'airlinePassengerTelephoneNumber'?: string; + /** + * Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + */ + 'airlinePassengerDateOfBirth'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airlinePassengerName", + "baseName": "airline.passenger_name", + "type": "string" + }, + { + "name": "airlineComputerizedReservationSystem", + "baseName": "airline.computerized_reservation_system", + "type": "string" + }, + { + "name": "airlineAirlineCode", + "baseName": "airline.airline_code", + "type": "string" + }, + { + "name": "airlineTicketNumber", + "baseName": "airline.ticket_number", + "type": "string" + }, + { + "name": "airlineFlightDate", + "baseName": "airline.flight_date", + "type": "string" + }, + { + "name": "airlineCustomerReferenceNumber", + "baseName": "airline.customer_reference_number", + "type": "string" + }, + { + "name": "airlineTicketIssueAddress", + "baseName": "airline.ticket_issue_address", + "type": "string" + }, + { + "name": "airlineAirlineDesignatorCode", + "baseName": "airline.airline_designator_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyCode", + "baseName": "airline.travel_agency_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyName", + "baseName": "airline.travel_agency_name", + "type": "string" + }, + { + "name": "airlineAgencyPlanName", + "baseName": "airline.agency_plan_name", + "type": "string" + }, + { + "name": "airlineAgencyInvoiceNumber", + "baseName": "airline.agency_invoice_number", + "type": "string" + }, + { + "name": "airlineBoardingFee", + "baseName": "airline.boarding_fee", + "type": "string" + }, + { + "name": "airlineLegDepartAirport", + "baseName": "airline.leg.depart_airport", + "type": "string" + }, + { + "name": "airlineLegFlightNumber", + "baseName": "airline.leg.flight_number", + "type": "string" + }, + { + "name": "airlineLegCarrierCode", + "baseName": "airline.leg.carrier_code", + "type": "string" + }, + { + "name": "airlineLegFareBaseCode", + "baseName": "airline.leg.fare_base_code", + "type": "string" + }, + { + "name": "airlineLegClassOfTravel", + "baseName": "airline.leg.class_of_travel", + "type": "string" + }, + { + "name": "airlineLegStopOverCode", + "baseName": "airline.leg.stop_over_code", + "type": "string" + }, + { + "name": "airlineLegDestinationCode", + "baseName": "airline.leg.destination_code", + "type": "string" + }, + { + "name": "airlineLegDateOfTravel", + "baseName": "airline.leg.date_of_travel", + "type": "string" + }, + { + "name": "airlineLegDepartTax", + "baseName": "airline.leg.depart_tax", + "type": "string" + }, + { + "name": "airlinePassengerFirstName", + "baseName": "airline.passenger.first_name", + "type": "string" + }, + { + "name": "airlinePassengerLastName", + "baseName": "airline.passenger.last_name", + "type": "string" + }, + { + "name": "airlinePassengerTravellerType", + "baseName": "airline.passenger.traveller_type", + "type": "string" + }, + { + "name": "airlinePassengerTelephoneNumber", + "baseName": "airline.passenger.telephone_number", + "type": "string" + }, + { + "name": "airlinePassengerDateOfBirth", + "baseName": "airline.passenger.date_of_birth", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataAirline.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataCarRental.ts b/src/typings/payments/additionalDataCarRental.ts new file mode 100644 index 0000000..15b8451 --- /dev/null +++ b/src/typings/payments/additionalDataCarRental.ts @@ -0,0 +1,231 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataCarRental { + /** + * The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 14 + */ + 'carRentalRentalAgreementNumber'?: string; + /** + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 + */ + 'carRentalRenterName'?: string; + /** + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalReturnCity'?: string; + /** + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 + */ + 'carRentalReturnStateProvince'?: string; + /** + * The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 + */ + 'carRentalReturnCountry'?: string; + /** + * Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 + */ + 'carRentalReturnLocationId'?: string; + /** + * The last date to return the car by. * Date format: `yyyyMMdd` + */ + 'carRentalReturnDate'?: string; + /** + * Pick-up date. * Date format: `yyyyMMdd` + */ + 'carRentalCheckOutDate'?: string; + /** + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + */ + 'carRentalCustomerServiceTollFreeNumber'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRate'?: string; + /** + * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + */ + 'carRentalRateIndicator'?: string; + /** + * The location from which the car is rented. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalLocationCity'?: string; + /** + * Pick-up date. * Date format: `yyyyMMdd` + */ + 'carRentalLocationStateProvince'?: string; + /** + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + */ + 'carRentalLocationCountry'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRentalClassId'?: string; + /** + * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + */ + 'carRentalDaysRented'?: string; + /** + * Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * 0 - Tax was not collected * 1 - Goods or services were tax exempt + */ + 'carRentalTaxExemptIndicator'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalFuelCharges'?: string; + /** + * Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalInsuranceCharges'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * 0 - Not applicable. * 1 - Customer was a no show. + */ + 'carRentalNoShowIndicator'?: string; + /** + * Charge associated with not returning a vehicle to the original rental location. + */ + 'carRentalOneWayDropOffCharges'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carRentalRentalAgreementNumber", + "baseName": "carRental.rentalAgreementNumber", + "type": "string" + }, + { + "name": "carRentalRenterName", + "baseName": "carRental.renterName", + "type": "string" + }, + { + "name": "carRentalReturnCity", + "baseName": "carRental.returnCity", + "type": "string" + }, + { + "name": "carRentalReturnStateProvince", + "baseName": "carRental.returnStateProvince", + "type": "string" + }, + { + "name": "carRentalReturnCountry", + "baseName": "carRental.returnCountry", + "type": "string" + }, + { + "name": "carRentalReturnLocationId", + "baseName": "carRental.returnLocationId", + "type": "string" + }, + { + "name": "carRentalReturnDate", + "baseName": "carRental.returnDate", + "type": "string" + }, + { + "name": "carRentalCheckOutDate", + "baseName": "carRental.checkOutDate", + "type": "string" + }, + { + "name": "carRentalCustomerServiceTollFreeNumber", + "baseName": "carRental.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "carRentalRate", + "baseName": "carRental.rate", + "type": "string" + }, + { + "name": "carRentalRateIndicator", + "baseName": "carRental.rateIndicator", + "type": "string" + }, + { + "name": "carRentalLocationCity", + "baseName": "carRental.locationCity", + "type": "string" + }, + { + "name": "carRentalLocationStateProvince", + "baseName": "carRental.locationStateProvince", + "type": "string" + }, + { + "name": "carRentalLocationCountry", + "baseName": "carRental.locationCountry", + "type": "string" + }, + { + "name": "carRentalRentalClassId", + "baseName": "carRental.rentalClassId", + "type": "string" + }, + { + "name": "carRentalDaysRented", + "baseName": "carRental.daysRented", + "type": "string" + }, + { + "name": "carRentalTaxExemptIndicator", + "baseName": "carRental.taxExemptIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "carRentalFuelCharges", + "baseName": "carRental.fuelCharges", + "type": "string" + }, + { + "name": "carRentalInsuranceCharges", + "baseName": "carRental.insuranceCharges", + "type": "string" + }, + { + "name": "carRentalNoShowIndicator", + "baseName": "carRental.noShowIndicator", + "type": "string" + }, + { + "name": "carRentalOneWayDropOffCharges", + "baseName": "carRental.oneWayDropOffCharges", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCarRental.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataCommon.ts b/src/typings/payments/additionalDataCommon.ts new file mode 100644 index 0000000..7784656 --- /dev/null +++ b/src/typings/payments/additionalDataCommon.ts @@ -0,0 +1,78 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataCommon { + /** + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/checkout/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + */ + 'authorisationType'?: string; + /** + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'customRoutingFlag'?: string; + /** + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardonFile** to ensure that the transaction is classified as MIT. + */ + 'networkTxReference'?: string; + /** + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + */ + 'overwriteBrand'?: string; + /** + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + */ + 'requestedTestErrorResponseCode'?: string; + /** + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID, which is used by schemes to identify the merchant. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + */ + 'subMerchantID'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authorisationType", + "baseName": "authorisationType", + "type": "string" + }, + { + "name": "customRoutingFlag", + "baseName": "customRoutingFlag", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "overwriteBrand", + "baseName": "overwriteBrand", + "type": "string" + }, + { + "name": "requestedTestErrorResponseCode", + "baseName": "RequestedTestErrorResponseCode", + "type": "string" + }, + { + "name": "subMerchantID", + "baseName": "subMerchantID", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCommon.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataLevel23.ts b/src/typings/payments/additionalDataLevel23.ts new file mode 100644 index 0000000..373aabc --- /dev/null +++ b/src/typings/payments/additionalDataLevel23.ts @@ -0,0 +1,177 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataLevel23 { + /** + * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataTotalTaxAmount'?: number; + /** + * Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataFreightAmount'?: number; + /** + * Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataDutyAmount'?: number; + /** + * The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. + */ + 'enhancedSchemeDataDestinationPostalCode'?: string; + /** + * Destination state or province code. Encoding: ASCII.Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationStateProvinceCode'?: string; + /** + * The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. + */ + 'enhancedSchemeDataShipFromPostalCode'?: string; + /** + * Destination country code. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationCountryCode'?: string; + /** + * Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. + */ + 'enhancedSchemeDataOrderDate'?: string; + /** + * Item commodity code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrCommodityCode'?: string; + /** + * Item description. Encoding: ASCII. Max length: 26 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDescription'?: string; + /** + * Product code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrProductCode'?: string; + /** + * Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrQuantity'?: number; + /** + * Item unit of measurement. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure'?: string; + /** + * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitPrice'?: number; + /** + * Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDiscountAmount'?: number; + /** + * Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrTotalAmount'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataFreightAmount", + "baseName": "enhancedSchemeData.freightAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataDutyAmount", + "baseName": "enhancedSchemeData.dutyAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataDestinationPostalCode", + "baseName": "enhancedSchemeData.destinationPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationStateProvinceCode", + "baseName": "enhancedSchemeData.destinationStateProvinceCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataShipFromPostalCode", + "baseName": "enhancedSchemeData.shipFromPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationCountryCode", + "baseName": "enhancedSchemeData.destinationCountryCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataOrderDate", + "baseName": "enhancedSchemeData.orderDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDescription", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrProductCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrQuantity", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", + "type": "number" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", + "type": "number" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", + "type": "number" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLevel23.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataLodging.ts b/src/typings/payments/additionalDataLodging.ts new file mode 100644 index 0000000..564fa0d --- /dev/null +++ b/src/typings/payments/additionalDataLodging.ts @@ -0,0 +1,177 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataLodging { + /** + * The toll free phone number for the hotel/lodgings. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingCustomerServiceTollFreeNumber'?: string; + /** + * The arrival date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckInDate'?: string; + /** + * The departure date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckOutDate'?: string; + /** + * Card acceptor’s internal invoice or billing ID reference number. * Format: Alphanumeric * maxLength: 25 + */ + 'lodgingFolioNumber'?: string; + /** + * Identifies specific lodging property location by its local phone number. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingPropertyPhoneNumber'?: string; + /** + * The rate of the room. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Rate'?: string; + /** + * The total amount of tax to be paid. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Tax'?: string; + /** + * Total number of nights the room will be rented. * Format: Numeric * maxLength: 4 + */ + 'lodgingRoom1NumberOfNights'?: string; + /** + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: Alphabetic * maxLength: 1 + */ + 'lodgingFireSafetyActIndicator'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * The folio cash advances. * Format: Numeric * maxLength: 12 + */ + 'lodgingFolioCashAdvances'?: string; + /** + * Any charges for food and beverages associated with the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingFoodBeverageCharges'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). Value should be Y or N. * Format: Numeric * maxLength: 1 + */ + 'lodgingNoShowIndicator'?: string; + /** + * Prepaid expenses for the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingPrepaidExpenses'?: string; + /** + * Total tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalTax'?: string; + /** + * Total room tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalRoomTax'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lodgingCustomerServiceTollFreeNumber", + "baseName": "lodging.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "lodgingCheckInDate", + "baseName": "lodging.checkInDate", + "type": "string" + }, + { + "name": "lodgingCheckOutDate", + "baseName": "lodging.checkOutDate", + "type": "string" + }, + { + "name": "lodgingFolioNumber", + "baseName": "lodging.folioNumber", + "type": "string" + }, + { + "name": "lodgingPropertyPhoneNumber", + "baseName": "lodging.propertyPhoneNumber", + "type": "string" + }, + { + "name": "lodgingRoom1Rate", + "baseName": "lodging.room1.rate", + "type": "string" + }, + { + "name": "lodgingRoom1Tax", + "baseName": "lodging.room1.tax", + "type": "string" + }, + { + "name": "lodgingRoom1NumberOfNights", + "baseName": "lodging.room1.numberOfNights", + "type": "string" + }, + { + "name": "lodgingFireSafetyActIndicator", + "baseName": "lodging.fireSafetyActIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "lodgingFolioCashAdvances", + "baseName": "lodging.folioCashAdvances", + "type": "string" + }, + { + "name": "lodgingFoodBeverageCharges", + "baseName": "lodging.foodBeverageCharges", + "type": "string" + }, + { + "name": "lodgingNoShowIndicator", + "baseName": "lodging.noShowIndicator", + "type": "string" + }, + { + "name": "lodgingPrepaidExpenses", + "baseName": "lodging.prepaidExpenses", + "type": "string" + }, + { + "name": "lodgingTotalTax", + "baseName": "lodging.totalTax", + "type": "string" + }, + { + "name": "lodgingTotalRoomTax", + "baseName": "lodging.totalRoomTax", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLodging.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataOpenInvoice.ts b/src/typings/payments/additionalDataOpenInvoice.ts new file mode 100644 index 0000000..50f31d0 --- /dev/null +++ b/src/typings/payments/additionalDataOpenInvoice.ts @@ -0,0 +1,123 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataOpenInvoice { + /** + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + */ + 'openinvoicedataNumberOfLines'?: number; + /** + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + */ + 'openinvoicedataMerchantData'?: string; + /** + * Required for the Klarna account, identifying an installment plan. Include Klarna’s `pclassid` for the installment plan. + */ + 'openinvoicedataInstallmentConfigurationKey'?: string; + /** + * The three-character ISO currency code. + */ + 'openinvoicedataLineItemNrCurrencyCode'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'openinvoicedataLineItemNrDescription'?: string; + /** + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + */ + 'openinvoicedataLineItemNrItemAmount'?: number; + /** + * The VAT due for one item in the invoice line, represented in minor units. + */ + 'openinvoicedataLineItemNrItemVatAmount'?: number; + /** + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + */ + 'openinvoicedataLineItemNrItemVatPercentage'?: number; + /** + * A unique id for this item. Required for RatePay if the description of each item is not unique. + */ + 'openinvoicedataLineItemNrItemId'?: string; + /** + * The number of units purchased of a specific product. + */ + 'openinvoicedataLineItemNrNumberOfItems'?: number; + /** + * The country-specific VAT category a product falls under. Allowed values: * High * Low * None. + */ + 'openinvoicedataLineItemNrVatCategory'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "openinvoicedataNumberOfLines", + "baseName": "openinvoicedata.numberOfLines", + "type": "number" + }, + { + "name": "openinvoicedataMerchantData", + "baseName": "openinvoicedata.merchantData", + "type": "string" + }, + { + "name": "openinvoicedataInstallmentConfigurationKey", + "baseName": "openinvoicedata.installmentConfigurationKey", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrCurrencyCode", + "baseName": "openinvoicedata.line[itemNr].currencyCode", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrDescription", + "baseName": "openinvoicedata.line[itemNr].description", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemAmount", + "baseName": "openinvoicedata.line[itemNr].itemAmount", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrItemVatAmount", + "baseName": "openinvoicedata.line[itemNr].itemVatAmount", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrItemVatPercentage", + "baseName": "openinvoicedata.line[itemNr].itemVatPercentage", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrItemId", + "baseName": "openinvoicedata.line[itemNr].itemId", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrNumberOfItems", + "baseName": "openinvoicedata.line[itemNr].numberOfItems", + "type": "number" + }, + { + "name": "openinvoicedataLineItemNrVatCategory", + "baseName": "openinvoicedata.line[itemNr].vatCategory", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpenInvoice.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRatepay.ts b/src/typings/payments/additionalDataRatepay.ts new file mode 100644 index 0000000..c385ade --- /dev/null +++ b/src/typings/payments/additionalDataRatepay.ts @@ -0,0 +1,96 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRatepay { + /** + * Amount the customer has to pay each month. + */ + 'ratepayInstallmentAmount'?: number; + /** + * Amount of the last installment. + */ + 'ratepayLastInstallmentAmount'?: number; + /** + * Interest rate of this installment. Double + */ + 'ratepayInterestRate'?: number; + /** + * Calendar day of the first payment. + */ + 'ratepayPaymentFirstday'?: number; + /** + * Identification name or number for the invoice, defined by the merchant. + */ + 'ratepaydataInvoiceId'?: string; + /** + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + */ + 'ratepaydataInvoiceDate'?: string; + /** + * Date the merchant delivered the goods to the customer. + */ + 'ratepaydataDeliveryDate'?: string; + /** + * Date by which the customer must settle the payment. + */ + 'ratepaydataDueDate'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ratepayInstallmentAmount", + "baseName": "ratepay.installmentAmount", + "type": "number" + }, + { + "name": "ratepayLastInstallmentAmount", + "baseName": "ratepay.lastInstallmentAmount", + "type": "number" + }, + { + "name": "ratepayInterestRate", + "baseName": "ratepay.interestRate", + "type": "number" + }, + { + "name": "ratepayPaymentFirstday", + "baseName": "ratepay.paymentFirstday", + "type": "number" + }, + { + "name": "ratepaydataInvoiceId", + "baseName": "ratepaydata.invoiceId", + "type": "string" + }, + { + "name": "ratepaydataInvoiceDate", + "baseName": "ratepaydata.invoiceDate", + "type": "string" + }, + { + "name": "ratepaydataDeliveryDate", + "baseName": "ratepaydata.deliveryDate", + "type": "string" + }, + { + "name": "ratepaydataDueDate", + "baseName": "ratepaydata.dueDate", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRatepay.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRetry.ts b/src/typings/payments/additionalDataRetry.ts new file mode 100644 index 0000000..494be1a --- /dev/null +++ b/src/typings/payments/additionalDataRetry.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRetry { + /** + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retryChainAttemptNumber'?: number; + /** + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retryOrderAttemptNumber'?: number; + /** + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retrySkipRetry'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "retryChainAttemptNumber", + "baseName": "retry.chainAttemptNumber", + "type": "number" + }, + { + "name": "retryOrderAttemptNumber", + "baseName": "retry.orderAttemptNumber", + "type": "number" + }, + { + "name": "retrySkipRetry", + "baseName": "retry.skipRetry", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRetry.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRisk.ts b/src/typings/payments/additionalDataRisk.ts new file mode 100644 index 0000000..9adca3c --- /dev/null +++ b/src/typings/payments/additionalDataRisk.ts @@ -0,0 +1,384 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRisk { + /** + * The method to deliver the goods to the shopper. Used in [Delivery Method](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#delivery-method) check. + */ + 'riskdataDeliveryMethod'?: string; + /** + * The creation date of a shopper account on the merchant\'s platform. * Format: `yyyy-MM-dd HH:mm:ss` Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataAccountCreationDate'?: string; + /** + * This specifies the date when the shopper\'s account was created. * Format: `yyyy-MM-dd HH:mm:ss.sssZ` Used in [Shopper Account Age check](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#shopper-account-age). + */ + 'riskdataShopperAccountCreationDate'?: string; + /** + * A risk score coming from a system external to Adyen. * Format: Numeric (when used in custom risk checks) Used in [External Risk Score check](https://docs.adyen.com/risk-management/configure-standard-risk-rules/external-risk-rules#external-risk-score-generic). Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataExternalRiskScore'?: string; + /** + * Usually a boolean representing the fraud risk assessment coming from a system external to Adyen. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataExternalSuspectedFraud'?: string; + /** + * A code corresponding to a telecom network operator Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorCode'?: string; + /** + * Country corresponding to the telecom network operator. Usually a two letter country code. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorCountry'?: object; + /** + * Name of a telecom network operator e.g. Vodafone, Orange etc. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorName'?: string; + /** + * Product code of a telecom product. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataOperatorProductCode'?: string; + /** + * Represents the payment method as it is understood by the merchant. Does not necessarily have to coincide with the payment method determined by Adyen. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). For visacheckout, masterpass, and paywithgoogle, use `riskdata.paymentDataSource` instead. + */ + 'riskdataPaymentMethod'?: string; + /** + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules) for visacheckout, masterpass, and paywithgoogle. + */ + 'riskdataPaymentDataSource'?: string; + /** + * The number of previous non-fraudulent orders made by a shopper. * Format: Numeric Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataPreviousSuccessfulOrders'?: string; + /** + * The referral method/reason for joining the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataReferralMethod'?: string; + /** + * The user name of a member who referred somebody to the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataReferrerUserName'?: string; + /** + * The id of the risk profile to use instead of the merchant account\'s currently set risk profile. + */ + 'riskdataRiskProfileId'?: string; + /** + * A secondary phone number for a user of the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataSecondaryPhoneNumber'?: object; + /** + * Name of the shipping method. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataShippingMethod'?: string; + /** + * The shopper country as determined by the merchant, usually as a 2 letter country code. Does not have to coincide with the Adyen determined shopper country. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataShopperCountry'?: string; + /** + * Usually a SIM distribution company name e.g. Core, Elite, GK Tel etc. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataSimDistributor'?: string; + /** + * User name of an account on the merchant\'s platform. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataUserName'?: string; + /** + * Usually a user\'s loyalty status e.g. Gold, Silver etc. Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataUserStatus'?: string; + /** + * Name of the browser language used by the shopper. Usually a two letter country code (e.g. NL, FR, US etc.) Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + 'riskdataBrowserLanguage'?: string; + /** + * ID of the item. + */ + 'riskdataBasketItemItemNrItemID'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'riskdataBasketItemItemNrProductTitle'?: string; + /** + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataBasketItemItemNrAmountPerItem'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataBasketItemItemNrCurrency'?: string; + /** + * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + */ + 'riskdataBasketItemItemNrUpc'?: string; + /** + * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + */ + 'riskdataBasketItemItemNrSku'?: string; + /** + * Brand of the item. + */ + 'riskdataBasketItemItemNrBrand'?: string; + /** + * Manufacturer of the item. + */ + 'riskdataBasketItemItemNrManufacturer'?: string; + /** + * Category of the item. + */ + 'riskdataBasketItemItemNrCategory'?: string; + /** + * Color of the item. + */ + 'riskdataBasketItemItemNrColor'?: string; + /** + * Size of the item. + */ + 'riskdataBasketItemItemNrSize'?: string; + /** + * Quantity of the item purchased. + */ + 'riskdataBasketItemItemNrQuantity'?: string; + /** + * Email associated with the given product in the basket (usually in electronic gift cards). + */ + 'riskdataBasketItemItemNrReceiverEmail'?: string; + /** + * Code of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionCode'?: string; + /** + * Name of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionName'?: string; + /** + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountAmount'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountCurrency'?: string; + /** + * Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountPercentage'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "riskdataDeliveryMethod", + "baseName": "riskdata.deliveryMethod", + "type": "string" + }, + { + "name": "riskdataAccountCreationDate", + "baseName": "riskdata.accountCreationDate", + "type": "string" + }, + { + "name": "riskdataShopperAccountCreationDate", + "baseName": "riskdata.shopperAccountCreationDate", + "type": "string" + }, + { + "name": "riskdataExternalRiskScore", + "baseName": "riskdata.externalRiskScore", + "type": "string" + }, + { + "name": "riskdataExternalSuspectedFraud", + "baseName": "riskdata.externalSuspectedFraud", + "type": "string" + }, + { + "name": "riskdataOperatorCode", + "baseName": "riskdata.operatorCode", + "type": "string" + }, + { + "name": "riskdataOperatorCountry", + "baseName": "riskdata.operatorCountry", + "type": "object" + }, + { + "name": "riskdataOperatorName", + "baseName": "riskdata.operatorName", + "type": "string" + }, + { + "name": "riskdataOperatorProductCode", + "baseName": "riskdata.operatorProductCode", + "type": "string" + }, + { + "name": "riskdataPaymentMethod", + "baseName": "riskdata.paymentMethod", + "type": "string" + }, + { + "name": "riskdataPaymentDataSource", + "baseName": "riskdata.paymentDataSource", + "type": "string" + }, + { + "name": "riskdataPreviousSuccessfulOrders", + "baseName": "riskdata.previousSuccessfulOrders", + "type": "string" + }, + { + "name": "riskdataReferralMethod", + "baseName": "riskdata.referralMethod", + "type": "string" + }, + { + "name": "riskdataReferrerUserName", + "baseName": "riskdata.referrerUserName", + "type": "string" + }, + { + "name": "riskdataRiskProfileId", + "baseName": "riskdata.riskProfileId", + "type": "string" + }, + { + "name": "riskdataSecondaryPhoneNumber", + "baseName": "riskdata.secondaryPhoneNumber", + "type": "object" + }, + { + "name": "riskdataShippingMethod", + "baseName": "riskdata.shippingMethod", + "type": "string" + }, + { + "name": "riskdataShopperCountry", + "baseName": "riskdata.shopperCountry", + "type": "string" + }, + { + "name": "riskdataSimDistributor", + "baseName": "riskdata.simDistributor", + "type": "string" + }, + { + "name": "riskdataUserName", + "baseName": "riskdata.userName", + "type": "string" + }, + { + "name": "riskdataUserStatus", + "baseName": "riskdata.userStatus", + "type": "string" + }, + { + "name": "riskdataBrowserLanguage", + "baseName": "riskdata.browserLanguage", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrItemID", + "baseName": "riskdata.basket.item[itemNr].itemID", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrProductTitle", + "baseName": "riskdata.basket.item[itemNr].productTitle", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrAmountPerItem", + "baseName": "riskdata.basket.item[itemNr].amountPerItem", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCurrency", + "baseName": "riskdata.basket.item[itemNr].currency", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrUpc", + "baseName": "riskdata.basket.item[itemNr].upc", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSku", + "baseName": "riskdata.basket.item[itemNr].sku", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrBrand", + "baseName": "riskdata.basket.item[itemNr].brand", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrManufacturer", + "baseName": "riskdata.basket.item[itemNr].manufacturer", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCategory", + "baseName": "riskdata.basket.item[itemNr].category", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrColor", + "baseName": "riskdata.basket.item[itemNr].color", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSize", + "baseName": "riskdata.basket.item[itemNr].size", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrQuantity", + "baseName": "riskdata.basket.item[itemNr].quantity", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrReceiverEmail", + "baseName": "riskdata.basket.item[itemNr].receiverEmail", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionCode", + "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionName", + "baseName": "riskdata.promotions.promotion[itemNr].promotionName", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRisk.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRiskStandalone.ts b/src/typings/payments/additionalDataRiskStandalone.ts new file mode 100644 index 0000000..e892ba5 --- /dev/null +++ b/src/typings/payments/additionalDataRiskStandalone.ts @@ -0,0 +1,159 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataRiskStandalone { + /** + * Raw AVS result received from the acquirer, where available. Example: 7 + */ + 'avsResultRaw'?: string; + /** + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](/risk-management/standalone-risk#tokenised-pan-request). + */ + 'bin'?: string; + /** + * Raw CVC result received from the acquirer, where available. Example: 1 + */ + 'cvcResultRaw'?: string; + /** + * Unique identifier or token for the shopper\'s card details. + */ + 'riskToken'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * Required for PayPal payments only. The only supported value is: **paypal**. + */ + 'tokenDataType'?: string; + /** + * Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + */ + 'payPalProtectionEligibility'?: string; + /** + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + */ + 'payPalPayerId'?: string; + /** + * Unique transaction ID of the payment. + */ + 'payPalTransactionId'?: string; + /** + * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. + */ + 'payPalCountryCode'?: string; + /** + * Shopper\'s first name. + */ + 'payPalFirstName'?: string; + /** + * Shopper\'s last name. + */ + 'payPalLastName'?: string; + /** + * Shopper\'s phone number. + */ + 'payPalPhone'?: string; + /** + * Shopper\'s email. + */ + 'payPalEmailId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "riskToken", + "baseName": "risk.token", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + }, + { + "name": "payPalProtectionEligibility", + "baseName": "PayPal.ProtectionEligibility", + "type": "string" + }, + { + "name": "payPalPayerId", + "baseName": "PayPal.PayerId", + "type": "string" + }, + { + "name": "payPalTransactionId", + "baseName": "PayPal.TransactionId", + "type": "string" + }, + { + "name": "payPalCountryCode", + "baseName": "PayPal.CountryCode", + "type": "string" + }, + { + "name": "payPalFirstName", + "baseName": "PayPal.FirstName", + "type": "string" + }, + { + "name": "payPalLastName", + "baseName": "PayPal.LastName", + "type": "string" + }, + { + "name": "payPalPhone", + "baseName": "PayPal.Phone", + "type": "string" + }, + { + "name": "payPalEmailId", + "baseName": "PayPal.EmailId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRiskStandalone.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataTemporaryServices.ts b/src/typings/payments/additionalDataTemporaryServices.ts new file mode 100644 index 0000000..781cebf --- /dev/null +++ b/src/typings/payments/additionalDataTemporaryServices.ts @@ -0,0 +1,105 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataTemporaryServices { + /** + * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 + */ + 'enhancedSchemeDataTotalTaxAmount'?: string; + /** + * Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataEmployeeName'?: string; + /** + * Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataJobDescription'?: string; + /** + * Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempStartDate'?: string; + /** + * Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempWeekEnding'?: string; + /** + * Name of the individual requesting temporary services. * maxLength: 40 + */ + 'enhancedSchemeDataRequestName'?: string; + /** + * Amount of time worked during a normal operation for the task or job. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursWorked'?: string; + /** + * Amount paid per regular hours worked, minor units. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursRate'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataEmployeeName", + "baseName": "enhancedSchemeData.employeeName", + "type": "string" + }, + { + "name": "enhancedSchemeDataJobDescription", + "baseName": "enhancedSchemeData.jobDescription", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempStartDate", + "baseName": "enhancedSchemeData.tempStartDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempWeekEnding", + "baseName": "enhancedSchemeData.tempWeekEnding", + "type": "string" + }, + { + "name": "enhancedSchemeDataRequestName", + "baseName": "enhancedSchemeData.requestName", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursWorked", + "baseName": "enhancedSchemeData.regularHoursWorked", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursRate", + "baseName": "enhancedSchemeData.regularHoursRate", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataTemporaryServices.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataWallets.ts b/src/typings/payments/additionalDataWallets.ts new file mode 100644 index 0000000..219f814 --- /dev/null +++ b/src/typings/payments/additionalDataWallets.ts @@ -0,0 +1,78 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AdditionalDataWallets { + /** + * The Android Pay token retrieved from the SDK. + */ + 'androidpayToken'?: string; + /** + * The Mastercard Masterpass Transaction ID retrieved from the SDK. + */ + 'masterpassTransactionId'?: string; + /** + * The Apple Pay token retrieved from the SDK. + */ + 'paymentToken'?: string; + /** + * The Google Pay token retrieved from the SDK. + */ + 'paywithgoogleToken'?: string; + /** + * The Samsung Pay token retrieved from the SDK. + */ + 'samsungpayToken'?: string; + /** + * The Visa Checkout Call ID retrieved from the SDK. + */ + 'visacheckoutCallId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpass.transactionId", + "type": "string" + }, + { + "name": "paymentToken", + "baseName": "payment.token", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + }, + { + "name": "visacheckoutCallId", + "baseName": "visacheckout.callId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataWallets.attributeTypeMap; + } +} + diff --git a/src/typings/payments/address.ts b/src/typings/payments/address.ts old mode 100755 new mode 100644 index 8ea527b..5317429 --- a/src/typings/payments/address.ts +++ b/src/typings/payments/address.ts @@ -1,38 +1,78 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Address { + +export class Address { /** - * The name of the city. >Required if either houseNumberOrName, street, postalCode, or stateOrProvince are provided. - */ - city?: string; + * The name of the city. + */ + 'city': string; /** - * The two-character country code of the address. The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). > If you don't know the country or are not collecting the country from the shopper, provide `countryCode` as `ZZ`. - */ - country: string; + * The two-character country code as defined in ISO-3166-1 alpha-2. 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; /** - * The number or name of the house. - */ - houseNumberOrName?: string; + * The number or name of the house. + */ + 'houseNumberOrName': string; /** - * The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. - */ - postalCode?: string; + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; /** - * The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either houseNumberOrName, street, city, or postalCode are provided. - */ - stateOrProvince?: string; + * State or province codes as defined in ISO 3166-2. For example, **SF** in US or **ON** for Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; /** - * The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either houseNumberOrName, city, postalCode, or stateOrProvince are provided. - */ - street?: string; -} \ No newline at end of file + * The name of the street. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': 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": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/payments/amount.ts b/src/typings/payments/amount.ts old mode 100755 new mode 100644 index c3e0246..f58b68d --- a/src/typings/payments/amount.ts +++ b/src/typings/payments/amount.ts @@ -1,22 +1,42 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Amount { + +export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - currency: string; + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; /** - * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; -} \ No newline at end of file + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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/payments/applicationInfo.ts b/src/typings/payments/applicationInfo.ts index 715b344..1eb2fb2 100644 --- a/src/typings/payments/applicationInfo.ts +++ b/src/typings/payments/applicationInfo.ts @@ -1,8 +1,8 @@ /** - * Adyen Payment API - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v50/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/payments/avs.ts b/src/typings/payments/avs.ts new file mode 100644 index 0000000..62e60af --- /dev/null +++ b/src/typings/payments/avs.ts @@ -0,0 +1,49 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class Avs { + /** + * Indicates whether the shopper is allowed to modify the billing address for the current payment request. + */ + 'addressEditable'?: boolean; + /** + * Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks. + */ + 'enabled'?: Avs.EnabledEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressEditable", + "baseName": "addressEditable", + "type": "boolean" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "Avs.EnabledEnum" + } ]; + + static getAttributeTypeMap() { + return Avs.attributeTypeMap; + } +} + +export namespace Avs { + export enum EnabledEnum { + Yes = 'yes', + No = 'no', + Automatic = 'automatic' + } +} diff --git a/src/typings/payments/bankAccount.ts b/src/typings/payments/bankAccount.ts old mode 100755 new mode 100644 index af5c2d4..3b8e163 --- a/src/typings/payments/bankAccount.ts +++ b/src/typings/payments/bankAccount.ts @@ -1,50 +1,105 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BankAccount { + +export class BankAccount { /** - * The bank account number (without separators). - */ - bankAccountNumber?: string; + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; /** - * The bank city. - */ - bankCity?: string; + * The bank city. + */ + 'bankCity'?: string; /** - * The location id of the bank. The field value is `nil` in most cases. - */ - bankLocationId?: string; + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; /** - * The name of the bank. - */ - bankName?: string; + * The name of the bank. + */ + 'bankName'?: string; /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - */ - bic?: string; + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + */ + 'bic'?: string; /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - */ - countryCode?: string; + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - */ - iban?: string; + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - */ - ownerName?: string; + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. + */ + 'ownerName'?: string; /** - * The bank account holder's tax ID. - */ - taxId?: string; -} \ No newline at end of file + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/payments/browserInfo.ts b/src/typings/payments/browserInfo.ts old mode 100755 new mode 100644 index f917413..1a1b294 --- a/src/typings/payments/browserInfo.ts +++ b/src/typings/payments/browserInfo.ts @@ -1,50 +1,105 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BrowserInfo { + +export class BrowserInfo { /** - * The accept header value of the shopper's browser. - */ - acceptHeader: string; + * The accept header value of the shopper\'s browser. + */ + 'acceptHeader': string; /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 32 or 48 bit color depth. - */ - colorDepth: number; + * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 32 or 48 bit color depth. + */ + 'colorDepth': number; /** - * Boolean value indicating if the shopper's browser is able to execute Java. - */ - javaEnabled: boolean; + * Boolean value indicating if the shopper\'s browser is able to execute Java. + */ + 'javaEnabled': boolean; /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. - */ - javaScriptEnabled?: boolean; + * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. + */ + 'javaScriptEnabled'?: boolean; /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). - */ - language: string; + * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). + */ + 'language': string; /** - * The total height of the shopper's device screen in pixels. - */ - screenHeight: number; + * The total height of the shopper\'s device screen in pixels. + */ + 'screenHeight': number; /** - * The total width of the shopper's device screen in pixels. - */ - screenWidth: number; + * The total width of the shopper\'s device screen in pixels. + */ + 'screenWidth': number; /** - * Time difference between UTC time and the shopper's browser local time, in minutes. - */ - timeZoneOffset: number; + * Time difference between UTC time and the shopper\'s browser local time, in minutes. + */ + 'timeZoneOffset': number; /** - * The user agent value of the shopper's browser. - */ - userAgent: string; -} \ No newline at end of file + * The user agent value of the shopper\'s browser. + */ + 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payments/card.ts b/src/typings/payments/card.ts old mode 100755 new mode 100644 index da42dc6..8e8bbbf --- a/src/typings/payments/card.ts +++ b/src/typings/payments/card.ts @@ -1,46 +1,96 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Card { + +export class Card { /** - * The [card verification code](https://docs.adyen.com/payments-essentials/payment-glossary#card_security_code_cvc_cvv_cid_) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - */ - cvc?: string; + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + */ + 'cvc'?: string; /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - */ - expiryMonth: string; + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; /** - * The card expiry year. Format: 4 digits. For example: 2020 - */ - expiryYear: string; + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; /** - * The name of the cardholder, as printed on the card. - */ - holderName: string; + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; /** - * The issue number of the card (for some UK debit cards only). - */ - issueNumber?: string; + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - */ - number: string; + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + */ + 'number': string; /** - * The month component of the start date (for some UK debit cards only). - */ - startMonth?: string; + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; /** - * The year component of the start date (for some UK debit cards only). - */ - startYear?: string; -} \ No newline at end of file + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/payments/checkoutPaymentsAction.ts b/src/typings/payments/checkoutPaymentsAction.ts new file mode 100644 index 0000000..1a2a1c0 --- /dev/null +++ b/src/typings/payments/checkoutPaymentsAction.ts @@ -0,0 +1,225 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Amount } from './amount'; + +export class CheckoutPaymentsAction { + /** + * The voucher alternative reference code. + */ + 'alternativeReference'?: string; + /** + * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + */ + 'data'?: object; + /** + * The URL to download the voucher. + */ + 'downloadUrl'?: string; + /** + * The date time of the voucher expiry. + */ + 'expiresAt'?: string; + 'initialAmount'?: Amount; + /** + * The URL to the detailed instructions to make payment using the voucher. + */ + 'instructionsUrl'?: string; + /** + * The issuer of the voucher. + */ + 'issuer'?: string; + /** + * The shopper telephone number (partially masked). + */ + 'maskedTelephoneNumber'?: string; + /** + * The merchant name. + */ + 'merchantName'?: string; + /** + * The merchant reference. + */ + 'merchantReference'?: string; + /** + * Specifies the HTTP method, for example GET or POST. + */ + 'method'?: string; + /** + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint. In some cases, required for polling. + */ + 'paymentData'?: string; + /** + * Specifies the payment method. + */ + 'paymentMethodType'?: string; + /** + * The contents of the QR code as a UTF8 string. + */ + 'qrCodeData'?: string; + /** + * The voucher reference code. + */ + 'reference'?: string; + /** + * The shopper email. + */ + 'shopperEmail'?: string; + /** + * The shopper name. + */ + 'shopperName'?: string; + 'surcharge'?: Amount; + /** + * A token to pass to the 3DS2 Component to get the fingerprint/challenge. + */ + 'token'?: string; + 'totalAmount'?: Amount; + /** + * Enum that specifies the action that needs to be taken by the client. + */ + 'type'?: CheckoutPaymentsAction.TypeEnum; + /** + * Specifies the URL to redirect to. + */ + 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "alternativeReference", + "baseName": "alternativeReference", + "type": "string" + }, + { + "name": "data", + "baseName": "data", + "type": "object" + }, + { + "name": "downloadUrl", + "baseName": "downloadUrl", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "initialAmount", + "baseName": "initialAmount", + "type": "Amount" + }, + { + "name": "instructionsUrl", + "baseName": "instructionsUrl", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "maskedTelephoneNumber", + "baseName": "maskedTelephoneNumber", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "method", + "baseName": "method", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "qrCodeData", + "baseName": "qrCodeData", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "string" + }, + { + "name": "surcharge", + "baseName": "surcharge", + "type": "Amount" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutPaymentsAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutPaymentsAction.attributeTypeMap; + } +} + +export namespace CheckoutPaymentsAction { + export enum TypeEnum { + Await = 'await', + QrCode = 'qrCode', + Redirect = 'redirect', + ThreeDS2Challenge = 'threeDS2Challenge', + ThreeDS2Fingerprint = 'threeDS2Fingerprint', + Voucher = 'voucher', + WechatpaySDK = 'wechatpaySDK' + } +} diff --git a/src/typings/payments/commonField.ts b/src/typings/payments/commonField.ts index d0ac326..6dd7e0a 100644 --- a/src/typings/payments/commonField.ts +++ b/src/typings/payments/commonField.ts @@ -1,8 +1,8 @@ /** - * Adyen Payment API - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v50/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/payments/company.ts b/src/typings/payments/company.ts new file mode 100644 index 0000000..57437d6 --- /dev/null +++ b/src/typings/payments/company.ts @@ -0,0 +1,78 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class Company { + /** + * The company website\'s home page. + */ + 'homepage'?: string; + /** + * The company name. + */ + 'name'?: string; + /** + * Registration number of the company. + */ + 'registrationNumber'?: string; + /** + * Registry location of the company. + */ + 'registryLocation'?: string; + /** + * Tax ID of the company. + */ + 'taxId'?: string; + /** + * The company type. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "homepage", + "baseName": "homepage", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "registryLocation", + "baseName": "registryLocation", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Company.attributeTypeMap; + } +} + diff --git a/src/typings/payments/configuration.ts b/src/typings/payments/configuration.ts new file mode 100644 index 0000000..039aad2 --- /dev/null +++ b/src/typings/payments/configuration.ts @@ -0,0 +1,61 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Avs } from './avs'; +import { Installments } from './installments'; +import { ShopperInput } from './shopperInput'; + +export class Configuration { + 'avs'?: Avs; + /** + * Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED + */ + 'cardHolderName'?: Configuration.CardHolderNameEnum; + 'installments'?: Installments; + 'shopperInput'?: ShopperInput; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "avs", + "baseName": "avs", + "type": "Avs" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "Configuration.CardHolderNameEnum" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "shopperInput", + "baseName": "shopperInput", + "type": "ShopperInput" + } ]; + + static getAttributeTypeMap() { + return Configuration.attributeTypeMap; + } +} + +export namespace Configuration { + export enum CardHolderNameEnum { + NONE = 'NONE', + OPTIONAL = 'OPTIONAL', + REQUIRED = 'REQUIRED' + } +} diff --git a/src/typings/payments/createPaymentLinkRequest.ts b/src/typings/payments/createPaymentLinkRequest.ts new file mode 100644 index 0000000..953bb28 --- /dev/null +++ b/src/typings/payments/createPaymentLinkRequest.ts @@ -0,0 +1,152 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Address } from './address'; +import { Amount } from './amount'; + +export class CreatePaymentLinkRequest { + /** + * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'billingAddress'?: Address; + /** + * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'blockedPaymentMethods'?: Array; + /** + * The shopper\'s country code. + */ + 'countryCode'?: string; + 'deliveryAddress'?: Address; + /** + * A short description visible on the Pay By Link page. Maximum length: 280 characters. + */ + 'description'?: string; + /** + * The date that the Pay By Link expires; e.g. 2019-03-23T12:25:28Z. If not provided, the default expiry duration is 1 day. + */ + 'expiresAt'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Merchant URL used for redirection after payment is completed + */ + 'returnUrl'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + 'storePaymentMethod'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentLinkRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/createPaymentLinkResponse.ts b/src/typings/payments/createPaymentLinkResponse.ts new file mode 100644 index 0000000..701f66e --- /dev/null +++ b/src/typings/payments/createPaymentLinkResponse.ts @@ -0,0 +1,58 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Amount } from './amount'; + +export class CreatePaymentLinkResponse { + 'amount'?: Amount; + /** + * The date that the Pay By Link expires; e.g. 2019-03-23T12:25:28Z. + */ + 'expiresAt': string; + /** + * The reference that was specified when the Pay By Link URL was created. + */ + 'reference': string; + /** + * The URL at which the shopper can complete the payment. + */ + 'url': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentLinkResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payments/detailsRequest.ts b/src/typings/payments/detailsRequest.ts new file mode 100644 index 0000000..01ee7f0 --- /dev/null +++ b/src/typings/payments/detailsRequest.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class DetailsRequest { + /** + * Use this collection to submit the details that were returned as a result of the `/payments` call. + */ + 'details': object; + /** + * The `paymentData` value that you received in the response to the `/payments` call. + */ + 'paymentData'?: string; + /** + * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. + */ + 'threeDSAuthenticationOnly'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "details", + "baseName": "details", + "type": "object" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return DetailsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/deviceRenderOptions.ts b/src/typings/payments/deviceRenderOptions.ts old mode 100755 new mode 100644 index 138ea9d..51924ad --- a/src/typings/payments/deviceRenderOptions.ts +++ b/src/typings/payments/deviceRenderOptions.ts @@ -1,38 +1,56 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface DeviceRenderOptions { + +export class DeviceRenderOptions { /** - * Supported SDK interface types. Allowed values: * Native * Html * both - */ - sdkInterface?: DeviceRenderOptions.SdkInterfaceEnum; + * Supported SDK interface types. Allowed values: * Native * Html * both + */ + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; /** - * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect - */ - sdkUiType?: DeviceRenderOptions.SdkUiTypeEnum[]; + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + */ + 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } } + export namespace DeviceRenderOptions { - export type SdkInterfaceEnum = 'Html' | 'Native' | 'both'; - export const SdkInterfaceEnum = { - Html: 'Html' as SdkInterfaceEnum, - Native: 'Native' as SdkInterfaceEnum, - Both: 'both' as SdkInterfaceEnum - }; - export type SdkUiTypeEnum = 'multiSelect' | 'otherHtml' | 'outOfBand' | 'singleSelect' | 'text'; - export const SdkUiTypeEnum = { - MultiSelect: 'multiSelect' as SdkUiTypeEnum, - OtherHtml: 'otherHtml' as SdkUiTypeEnum, - OutOfBand: 'outOfBand' as SdkUiTypeEnum, - SingleSelect: 'singleSelect' as SdkUiTypeEnum, - Text: 'text' as SdkUiTypeEnum - }; -} \ No newline at end of file + export enum SdkInterfaceEnum { + Html = 'Html', + Native = 'Native', + Both = 'both' + } + export enum SdkUiTypeEnum { + MultiSelect = 'multiSelect', + OtherHtml = 'otherHtml', + OutOfBand = 'outOfBand', + SingleSelect = 'singleSelect', + Text = 'text' + } +} diff --git a/src/typings/payments/externalPlatform.ts b/src/typings/payments/externalPlatform.ts index a5431b2..efd3e3d 100644 --- a/src/typings/payments/externalPlatform.ts +++ b/src/typings/payments/externalPlatform.ts @@ -1,8 +1,8 @@ /** - * Adyen Payment API - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v50/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/payments/forexQuote.ts b/src/typings/payments/forexQuote.ts old mode 100755 new mode 100644 index e0730b0..3ed514a --- a/src/typings/payments/forexQuote.ts +++ b/src/typings/payments/forexQuote.ts @@ -1,51 +1,121 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ +import { Amount } from './amount'; -export interface ForexQuote { +export class ForexQuote { /** - * The account name. - */ - account?: string; + * The account name. + */ + 'account'?: string; /** - * The account type. - */ - accountType?: string; - baseAmount?: Amount; + * The account type. + */ + 'accountType'?: string; + 'baseAmount'?: Amount; /** - * The base points. - */ - basePoints: number; - buy?: Amount; - interbank?: Amount; + * The base points. + */ + 'basePoints': number; + 'buy'?: Amount; + 'interbank'?: Amount; /** - * The reference assigned to the forex quote request. - */ - reference?: string; - sell?: Amount; + * The reference assigned to the forex quote request. + */ + 'reference'?: string; + 'sell'?: Amount; /** - * The signature to validate the integrity. - */ - signature?: string; + * The signature to validate the integrity. + */ + 'signature'?: string; /** - * The source of the forex quote. - */ - source?: string; + * The source of the forex quote. + */ + 'source'?: string; /** - * The type of forex. - */ - type?: string; + * The type of forex. + */ + 'type'?: string; /** - * The date until which the forex quote is valid. - */ - validTill: Date; -} \ No newline at end of file + * The date until which the forex quote is valid. + */ + 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } +} + diff --git a/src/typings/payments/fraudCheckResult.ts b/src/typings/payments/fraudCheckResult.ts old mode 100755 new mode 100644 index 6f09c6f..0e22026 --- a/src/typings/payments/fraudCheckResult.ts +++ b/src/typings/payments/fraudCheckResult.ts @@ -1,26 +1,51 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface FraudCheckResult { + +export class FraudCheckResult { /** - * The fraud score generated by the risk check. - */ - accountScore: number; + * The fraud score generated by the risk check. + */ + 'accountScore': number; /** - * The ID of the risk check. - */ - checkId: number; + * The ID of the risk check. + */ + 'checkId': number; /** - * The name of the risk check. - */ - name: string; -} \ No newline at end of file + * The name of the risk check. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/payments/fraudResult.ts b/src/typings/payments/fraudResult.ts old mode 100755 new mode 100644 index f05689d..287b9c4 --- a/src/typings/payments/fraudResult.ts +++ b/src/typings/payments/fraudResult.ts @@ -1,23 +1,43 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { FraudCheckResult } from './fraudCheckResult'; + */ +import { FraudCheckResult } from './fraudCheckResult'; -export interface FraudResult { +export class FraudResult { /** - * The total fraud score generated by the risk checks. - */ - accountScore: number; + * The total fraud score generated by the risk checks. + */ + 'accountScore': number; /** - * The result of the individual risk checks. - */ - results?: FraudCheckResult[]; -} \ No newline at end of file + * The result of the individual risk checks. + */ + 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } +} + diff --git a/src/typings/payments/inputDetail.ts b/src/typings/payments/inputDetail.ts new file mode 100644 index 0000000..44aec9c --- /dev/null +++ b/src/typings/payments/inputDetail.ts @@ -0,0 +1,107 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Item } from './item'; +import { SubInputDetail } from './subInputDetail'; + +export class InputDetail { + /** + * Configuration parameters for the required input. + */ + 'configuration'?: object; + /** + * Input details can also be provided recursively. + */ + 'details'?: Array; + /** + * Input details can also be provided recursively (deprecated). + */ + 'inputDetails'?: Array; + /** + * In case of a select, the URL from which to query the items. + */ + 'itemSearchUrl'?: string; + /** + * In case of a select, the items to choose from. + */ + 'items'?: Array; + /** + * The value to provide in the result. + */ + 'key'?: string; + /** + * True if this input value is optional. + */ + 'optional'?: boolean; + /** + * The type of the required input. + */ + 'type'?: string; + /** + * The value can be pre-filled, if available. + */ + 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "itemSearchUrl", + "baseName": "itemSearchUrl", + "type": "string" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InputDetail.attributeTypeMap; + } +} + diff --git a/src/typings/payments/installments.ts b/src/typings/payments/installments.ts old mode 100755 new mode 100644 index 2020d4c..071d601 --- a/src/typings/payments/installments.ts +++ b/src/typings/payments/installments.ts @@ -1,18 +1,33 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Installments { + +export class Installments { /** - * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. - */ - value: number; -} \ No newline at end of file + * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } +} + diff --git a/src/typings/payments/item.ts b/src/typings/payments/item.ts new file mode 100644 index 0000000..3798a85 --- /dev/null +++ b/src/typings/payments/item.ts @@ -0,0 +1,42 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class Item { + /** + * The value to provide in the result. + */ + 'id'?: string; + /** + * The display name. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Item.attributeTypeMap; + } +} + diff --git a/src/typings/payments/lineItem.ts b/src/typings/payments/lineItem.ts new file mode 100644 index 0000000..c2b8761 --- /dev/null +++ b/src/typings/payments/lineItem.ts @@ -0,0 +1,104 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class LineItem { + /** + * Item amount excluding the tax, in minor units. + */ + 'amountExcludingTax'?: number; + /** + * Item amount including the tax, in minor units. + */ + 'amountIncludingTax'?: number; + /** + * Description of the line item. + */ + 'description'?: string; + /** + * ID of the line item. + */ + 'id'?: string; + /** + * Number of items. + */ + 'quantity'?: number; + /** + * Tax amount, in minor units. + */ + 'taxAmount'?: number; + /** + * Tax category: High, Low, None, Zero + */ + 'taxCategory'?: LineItem.TaxCategoryEnum; + /** + * Tax percentage, in minor units. + */ + 'taxPercentage'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amountExcludingTax", + "baseName": "amountExcludingTax", + "type": "number" + }, + { + "name": "amountIncludingTax", + "baseName": "amountIncludingTax", + "type": "number" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "quantity", + "baseName": "quantity", + "type": "number" + }, + { + "name": "taxAmount", + "baseName": "taxAmount", + "type": "number" + }, + { + "name": "taxCategory", + "baseName": "taxCategory", + "type": "LineItem.TaxCategoryEnum" + }, + { + "name": "taxPercentage", + "baseName": "taxPercentage", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return LineItem.attributeTypeMap; + } +} + +export namespace LineItem { + export enum TaxCategoryEnum { + High = 'High', + Low = 'Low', + None = 'None', + Zero = 'Zero' + } +} diff --git a/src/typings/payments/merchantDevice.ts b/src/typings/payments/merchantDevice.ts index 99bc530..d69af1e 100644 --- a/src/typings/payments/merchantDevice.ts +++ b/src/typings/payments/merchantDevice.ts @@ -1,8 +1,8 @@ /** - * Adyen Payment API - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v50/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/payments/merchantRiskIndicator.ts b/src/typings/payments/merchantRiskIndicator.ts old mode 100755 new mode 100644 index eb96c6e..7cbc2e6 --- a/src/typings/payments/merchantRiskIndicator.ts +++ b/src/typings/payments/merchantRiskIndicator.ts @@ -1,67 +1,120 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ +import { Amount } from './amount'; -export interface MerchantRiskIndicator { +export class MerchantRiskIndicator { /** - * Whether the chosen delivery address is identical to the billing address. - */ - addressMatch?: boolean; + * Whether the chosen delivery address is identical to the billing address. + */ + 'addressMatch'?: boolean; /** - * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` - */ - deliveryAddressIndicator?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + */ + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; /** - * The delivery email address (for digital goods). - */ - deliveryEmail?: string; + * The delivery email address (for digital goods). + */ + 'deliveryEmail'?: string; /** - * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` - */ - deliveryTimeframe?: MerchantRiskIndicator.DeliveryTimeframeEnum; - giftCardAmount?: Amount; + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + */ + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount; /** - * Number of individual prepaid or gift cards used for this purchase. - */ - giftCardCount?: number; + * Number of individual prepaid or gift cards used for this purchase. + */ + 'giftCardCount'?: number; /** - * For pre-order purchases, the expected date this product will be available to the shopper. - */ - preOrderDate?: Date; + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + 'preOrderDate'?: Date; /** - * Indicator for whether this transaction is for pre-ordering a product. - */ - preOrderPurchase?: boolean; + * Indicator for whether this transaction is for pre-ordering a product. + */ + 'preOrderPurchase'?: boolean; /** - * Indicator for whether the shopper has already purchased the same items in the past. - */ - reorderItems?: boolean; + * Indicator for whether the shopper has already purchased the same items in the past. + */ + 'reorderItems'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } } + export namespace MerchantRiskIndicator { - export type DeliveryAddressIndicatorEnum = 'shipToBillingAddress' | 'shipToVerifiedAddress' | 'shipToNewAddress' | 'shipToStore' | 'digitalGoods' | 'goodsNotShipped' | 'other'; - export const DeliveryAddressIndicatorEnum = { - ShipToBillingAddress: 'shipToBillingAddress' as DeliveryAddressIndicatorEnum, - ShipToVerifiedAddress: 'shipToVerifiedAddress' as DeliveryAddressIndicatorEnum, - ShipToNewAddress: 'shipToNewAddress' as DeliveryAddressIndicatorEnum, - ShipToStore: 'shipToStore' as DeliveryAddressIndicatorEnum, - DigitalGoods: 'digitalGoods' as DeliveryAddressIndicatorEnum, - GoodsNotShipped: 'goodsNotShipped' as DeliveryAddressIndicatorEnum, - Other: 'other' as DeliveryAddressIndicatorEnum - }; - export type DeliveryTimeframeEnum = 'electronicDelivery' | 'sameDayShipping' | 'overnightShipping' | 'twoOrMoreDaysShipping'; - export const DeliveryTimeframeEnum = { - ElectronicDelivery: 'electronicDelivery' as DeliveryTimeframeEnum, - SameDayShipping: 'sameDayShipping' as DeliveryTimeframeEnum, - OvernightShipping: 'overnightShipping' as DeliveryTimeframeEnum, - TwoOrMoreDaysShipping: 'twoOrMoreDaysShipping' as DeliveryTimeframeEnum - }; -} \ No newline at end of file + export enum DeliveryAddressIndicatorEnum { + ShipToBillingAddress = 'shipToBillingAddress', + ShipToVerifiedAddress = 'shipToVerifiedAddress', + ShipToNewAddress = 'shipToNewAddress', + ShipToStore = 'shipToStore', + DigitalGoods = 'digitalGoods', + GoodsNotShipped = 'goodsNotShipped', + Other = 'other' + } + export enum DeliveryTimeframeEnum { + ElectronicDelivery = 'electronicDelivery', + SameDayShipping = 'sameDayShipping', + OvernightShipping = 'overnightShipping', + TwoOrMoreDaysShipping = 'twoOrMoreDaysShipping' + } +} diff --git a/src/typings/payments/name.ts b/src/typings/payments/name.ts old mode 100755 new mode 100644 index 1aece76..938da52 --- a/src/typings/payments/name.ts +++ b/src/typings/payments/name.ts @@ -1,38 +1,67 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Name { + +export class Name { /** - * The first name. - */ - firstName: string; + * The first name. + */ + 'firstName': string; /** - * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. - */ - gender: Name.GenderEnum; + * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + 'gender': Name.GenderEnum; /** - * The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed. - */ - infix?: string; + * The name\'s infix, if applicable. >A maximum length of twenty (20) characters is imposed. + */ + 'infix'?: string; /** - * The last name. - */ - lastName: string; + * The 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": "gender", + "baseName": "gender", + "type": "Name.GenderEnum" + }, + { + "name": "infix", + "baseName": "infix", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } } + export namespace Name { - export type GenderEnum = 'MALE' | 'FEMALE' | 'UNKNOWN'; - export const GenderEnum = { - MALE: 'MALE' as GenderEnum, - FEMALE: 'FEMALE' as GenderEnum, - UNKNOWN: 'UNKNOWN' as GenderEnum - }; -} \ No newline at end of file + export enum GenderEnum { + MALE = 'MALE', + FEMALE = 'FEMALE', + UNKNOWN = 'UNKNOWN' + } +} diff --git a/src/typings/payments/paymentMethod.ts b/src/typings/payments/paymentMethod.ts new file mode 100644 index 0000000..66476df --- /dev/null +++ b/src/typings/payments/paymentMethod.ts @@ -0,0 +1,104 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { InputDetail } from './inputDetail'; +import { PaymentMethodGroup } from './paymentMethodGroup'; + +export class PaymentMethod { + /** + * List of possible brands. For example: visa, mc. + */ + 'brands'?: Array; + /** + * The configuration of the payment method. + */ + 'configuration'?: object; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'details'?: Array; + 'group'?: PaymentMethodGroup; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'inputDetails'?: Array; + /** + * The displayable name of this payment method. + */ + 'name'?: string; + /** + * Echo data required to send in next calls. + */ + 'paymentMethodData'?: string; + /** + * Indicates whether this payment method supports tokenization or not. + */ + 'supportsRecurring'?: boolean; + /** + * The unique payment method code. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "supportsRecurring", + "baseName": "supportsRecurring", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethod.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentMethodGroup.ts b/src/typings/payments/paymentMethodGroup.ts new file mode 100644 index 0000000..29888dc --- /dev/null +++ b/src/typings/payments/paymentMethodGroup.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class PaymentMethodGroup { + /** + * The name of the group. + */ + 'name'?: string; + /** + * Echo data to be used if the payment method is displayed as part of this group. + */ + 'paymentMethodData'?: string; + /** + * The unique code of the group. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodGroup.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentMethodsGroup.ts b/src/typings/payments/paymentMethodsGroup.ts new file mode 100644 index 0000000..d6fc5dc --- /dev/null +++ b/src/typings/payments/paymentMethodsGroup.ts @@ -0,0 +1,51 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class PaymentMethodsGroup { + /** + * The type to submit for any payment method in this group. + */ + 'groupType'?: string; + /** + * The human-readable name of this group. + */ + 'name'?: string; + /** + * The types of payment methods that belong in this group. + */ + 'types'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "groupType", + "baseName": "groupType", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "types", + "baseName": "types", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsGroup.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentMethodsRequest.ts b/src/typings/payments/paymentMethodsRequest.ts new file mode 100644 index 0000000..917b9b5 --- /dev/null +++ b/src/typings/payments/paymentMethodsRequest.ts @@ -0,0 +1,141 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Amount } from './amount'; +import {AdditionalData3DSecure} from "./additionalData3DSecure"; +import {AdditionalDataAirline} from "./additionalDataAirline"; +import {AdditionalDataCommon} from "./additionalDataCommon"; +import {AdditionalDataLevel23} from "./additionalDataLevel23"; +import {AdditionalDataLodging} from "./additionalDataLodging"; +import {AdditionalDataOpenInvoice} from "./additionalDataOpenInvoice"; +import {AdditionalDataRatepay} from "./additionalDataRatepay"; +import {AdditionalDataRetry} from "./additionalDataRetry"; +import {AdditionalDataRisk} from "./additionalDataRisk"; +import {AdditionalDataRiskStandalone} from "./additionalDataRiskStandalone"; +import {AdditionalDataTemporaryServices} from "./additionalDataTemporaryServices"; +import {AdditionalDataWallets} from "./additionalDataWallets"; + +type AdditionalData = AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCommon | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; +export class PaymentMethodsRequest { + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AdditionalData; + /** + * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'allowedPaymentMethods'?: Array; + 'amount'?: Amount; + /** + * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'blockedPaymentMethods'?: Array; + /** + * The platform where a payment transaction takes place. This field can be used for filtering out payment methods that are only available on specific platforms. Possible values: * iOS * Android * Web + */ + 'channel'?: PaymentMethodsRequest.ChannelEnum; + /** + * The shopper\'s country code. + */ + 'countryCode'?: string; + /** + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AdditionalData" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentMethodsRequest.ChannelEnum" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsRequest.attributeTypeMap; + } +} + +export namespace PaymentMethodsRequest { + export enum ChannelEnum { + IOS = 'iOS', + Android = 'Android', + Web = 'Web' + } +} diff --git a/src/typings/payments/paymentMethodsResponse.ts b/src/typings/payments/paymentMethodsResponse.ts new file mode 100644 index 0000000..1923c8c --- /dev/null +++ b/src/typings/payments/paymentMethodsResponse.ts @@ -0,0 +1,64 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { PaymentMethod } from './paymentMethod'; +import { PaymentMethodsGroup } from './paymentMethodsGroup'; +import { RecurringDetail } from './recurringDetail'; +import { StoredPaymentMethod } from './storedPaymentMethod'; + +export class PaymentMethodsResponse { + /** + * Groups of payment methods. + */ + 'groups'?: Array; + /** + * Detailed list of one-click payment methods. + */ + 'oneClickPaymentMethods'?: Array; + /** + * Detailed list of payment methods required to generate payment forms. + */ + 'paymentMethods'?: Array; + /** + * List of all stored payment methods. + */ + 'storedPaymentMethods'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "groups", + "baseName": "groups", + "type": "Array" + }, + { + "name": "oneClickPaymentMethods", + "baseName": "oneClickPaymentMethods", + "type": "Array" + }, + { + "name": "paymentMethods", + "baseName": "paymentMethods", + "type": "Array" + }, + { + "name": "storedPaymentMethods", + "baseName": "storedPaymentMethods", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentRequest.ts b/src/typings/payments/paymentRequest.ts old mode 100755 new mode 100644 index 10cb322..9230d6f --- a/src/typings/payments/paymentRequest.ts +++ b/src/typings/payments/paymentRequest.ts @@ -1,183 +1,520 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { AccountInfo } from './accountInfo'; + */ + +import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; -import { BankAccount } from './bankAccount'; +import { ApplicationInfo } from './applicationInfo'; import { BrowserInfo } from './browserInfo'; -import { Card } from './card'; +import { Company } from './company'; import { ForexQuote } from './forexQuote'; import { Installments } from './installments'; +import { LineItem } from './lineItem'; import { MerchantRiskIndicator } from './merchantRiskIndicator'; import { Name } from './name'; -import { Recurring } from './recurring'; import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDSecureData } from './threeDSecureData'; +import {AdditionalData3DSecure} from "./additionalData3DSecure"; +import {AdditionalDataAirline} from "./additionalDataAirline"; +import {AdditionalDataCommon} from "./additionalDataCommon"; +import {AdditionalDataLevel23} from "./additionalDataLevel23"; +import {AdditionalDataLodging} from "./additionalDataLodging"; +import {AdditionalDataOpenInvoice} from "./additionalDataOpenInvoice"; +import {AdditionalDataRatepay} from "./additionalDataRatepay"; +import {AdditionalDataRetry} from "./additionalDataRetry"; +import {AdditionalDataRisk} from "./additionalDataRisk"; +import {AdditionalDataRiskStandalone} from "./additionalDataRiskStandalone"; +import {AdditionalDataTemporaryServices} from "./additionalDataTemporaryServices"; +import {AdditionalDataWallets} from "./additionalDataWallets"; +type AdditionalData = AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCommon | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; +export class PaymentRequest { + 'accountInfo'?: AccountInfo; + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AdditionalData; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + */ + 'channel'?: PaymentRequest.ChannelEnum; + 'company'?: Company; + /** + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + */ + 'countryCode'?: string; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + */ + 'deviceFingerprint'?: string; + /** + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + */ + 'enableOneClick'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + */ + 'enablePayOut'?: boolean; + /** + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + */ + 'enableRecurring'?: boolean; + /** + * The type of the entity the payment is processed for. + */ + 'entityType'?: PaymentRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'installments'?: Installments; + /** + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for Klarna, AfterPay, and RatePay. + */ + 'lineItems'?: Array; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator; + /** + * Metadata consists of entries, each of which includes a key and a value. Limitations: Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". + */ + 'metadata'?: object; + 'mpiData'?: ThreeDSecureData; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + /** + * Required for the 3D Secure 2 `channel` **Web** integration. Set this parameter to the origin URL of the page that you are loading the 3D Secure Component from. + */ + 'origin'?: string; + /** + * The collection that contains the type of the payment method and its specific information (e.g. `idealIssuer`). + */ + 'paymentMethod': object; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: string; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – Card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – A transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. + */ + 'recurringProcessingModel'?: PaymentRequest.RecurringProcessingModelEnum; + /** + * Specifies the redirect method (GET or POST) when redirecting back from the issuer. + */ + 'redirectFromIssuerMethod'?: string; + /** + * Specifies the redirect method (GET or POST) when redirecting to the issuer. + */ + 'redirectToIssuerMethod'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * The URL to return to. + */ + 'returnUrl': string; + /** + * The maximum validity of the session. + */ + 'sessionValidity'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for 3D Secure 2 transactions. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentRequest.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * The text to appear on the shopper\'s bank statement. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. + */ + 'splits'?: Array; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + 'storePaymentMethod'?: boolean; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; -export interface PaymentRequest { - accountInfo?: AccountInfo; - additionalAmount?: Amount; - /** - * This field contains additional data, which may be required for a particular payment request. - */ - additionalData?: any; - amount: Amount; - bankAccount?: BankAccount; - billingAddress?: Address; - browserInfo?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; - card?: Card; - /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - dateOfBirth?: Date; - dccQuote?: ForexQuote; - deliveryAddress?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - deliveryDate?: Date; - /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - deviceFingerprint?: string; - /** - * The type of the entity the payment is processed for. - */ - entityType?: PaymentRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - installments?: Installments; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - mcc?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - merchantOrderReference?: string; - merchantRiskIndicator?: MerchantRiskIndicator; - /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: Error \"177\", \"Metadata size exceeds limit\" - */ - metadata?: any; - mpiData?: ThreeDSecureData; - /** - * The two-character country code of the shopper's nationality. - */ - nationality?: string; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - orderReference?: string; - recurring?: Recurring; - /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – Card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – A transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - */ - recurringProcessingModel?: PaymentRequest.RecurringProcessingModelEnum; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - */ - reference: string; - /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - */ - selectedBrand?: string; - /** - * 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; - /** - * A session ID used to identify a payment session. - */ - sessionId?: string; - /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. - */ - shopperEmail?: string; - /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > This field is mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - shopperIP?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: PaymentRequest.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - shopperLocale?: string; - shopperName?: Name; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. - */ - shopperReference?: string; - /** - * The text to appear on the shopper's bank statement. - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. - */ - splits?: Split[]; - /** - * The physical store, for which this payment is processed. - */ - store?: string; - /** - * The shopper's telephone number. - */ - telephoneNumber?: string; - threeDS2RequestData?: ThreeDS2RequestData; - /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - */ - totalsGroup?: string; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - trustedShopper?: boolean; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AdditionalData" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentRequest.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "object" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "object" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest.attributeTypeMap; + } } + export namespace PaymentRequest { - export type EntityTypeEnum = 'NaturalPerson' | 'CompanyName'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - CompanyName: 'CompanyName' as EntityTypeEnum - }; - export type RecurringProcessingModelEnum = 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile'; - export const RecurringProcessingModelEnum = { - CardOnFile: 'CardOnFile' as RecurringProcessingModelEnum, - Subscription: 'Subscription' as RecurringProcessingModelEnum, - UnscheduledCardOnFile: 'UnscheduledCardOnFile' as RecurringProcessingModelEnum - }; - export type ShopperInteractionEnum = 'Ecommerce' | 'ContAuth' | 'Moto' | 'POS'; - export const ShopperInteractionEnum = { - Ecommerce: 'Ecommerce' as ShopperInteractionEnum, - ContAuth: 'ContAuth' as ShopperInteractionEnum, - Moto: 'Moto' as ShopperInteractionEnum, - POS: 'POS' as ShopperInteractionEnum - }; -} \ No newline at end of file + export enum ChannelEnum { + IOS = 'iOS', + Android = 'Android', + Web = 'Web' + } + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + CompanyName = 'CompanyName' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/payments/paymentResponse.ts b/src/typings/payments/paymentResponse.ts new file mode 100644 index 0000000..191f727 --- /dev/null +++ b/src/typings/payments/paymentResponse.ts @@ -0,0 +1,151 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { CheckoutPaymentsAction } from './checkoutPaymentsAction'; +import { FraudResult } from './fraudResult'; +import { InputDetail } from './inputDetail'; +import { Redirect } from './redirect'; + +export class PaymentResponse { + 'action'?: CheckoutPaymentsAction; + /** + * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: object; + /** + * Contains `threeds2.fingerprint` or `threeds2.challengeToken` values to be used in further calls to `/payments/details` endpoint. + */ + 'authentication'?: object; + /** + * When non-empty, contains all the fields that you must submit to the `/payments/details` endpoint. + */ + 'details'?: Array; + 'fraudResult'?: FraudResult; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'merchantReference': string; + /** + * Contains the details that will be presented to the shopper. + */ + 'outputDetails'?: object; + /** + * When non-empty, contains a value that you must submit to the `/payments/details` endpoint. + */ + 'paymentData'?: string; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. + */ + 'pspReference'?: string; + 'redirect'?: Redirect; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + */ + 'refusalReasonCode'?: string; + /** + * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PaymentResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "CheckoutPaymentsAction" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "authentication", + "baseName": "authentication", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "outputDetails", + "baseName": "outputDetails", + "type": "object" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "redirect", + "baseName": "redirect", + "type": "Redirect" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentResponse.attributeTypeMap; + } +} + +export namespace PaymentResponse { + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused' + } +} diff --git a/src/typings/payments/paymentSetupRequest.ts b/src/typings/payments/paymentSetupRequest.ts new file mode 100644 index 0000000..560bb4f --- /dev/null +++ b/src/typings/payments/paymentSetupRequest.ts @@ -0,0 +1,480 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import {Address} from './address'; +import {Amount} from './amount'; +import {ApplicationInfo} from './applicationInfo'; +import {AdditionalData3DSecure} from './additionalData3DSecure' +import {AdditionalDataAirline} from './additionalDataAirline' +import {AdditionalDataCommon} from './additionalDataCommon' +import {AdditionalDataLevel23} from './additionalDataLevel23' +import {AdditionalDataLodging} from './additionalDataLodging' +import {AdditionalDataOpenInvoice} from './additionalDataOpenInvoice' +import {AdditionalDataRatepay} from './additionalDataRatepay' +import {AdditionalDataRetry} from './additionalDataRetry' +import {AdditionalDataRisk} from './additionalDataRisk' +import {AdditionalDataRiskStandalone} from './additionalDataRiskStandalone' +import {AdditionalDataTemporaryServices} from './additionalDataTemporaryServices' +import {AdditionalDataWallets} from './additionalDataWallets' +import {Company} from './company'; +import {Configuration} from './configuration'; +import {ForexQuote} from './forexQuote'; +import {Installments} from './installments'; +import {LineItem} from './lineItem'; +import {Name} from './name'; +import {Split} from './split'; + +type AdditionalData = AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCommon | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; +export class PaymentSetupRequest { + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AdditionalData; + /** + * List of payments methods to be presented to the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'allowedPaymentMethods'?: Array; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + /** + * List of payments methods to be hidden from the shopper. To refer to payment methods, use their `brandCode` from [Payment methods overview](https://docs.adyen.com/payment-methods). + */ + 'blockedPaymentMethods'?: Array; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web + */ + 'channel'?: PaymentSetupRequest.ChannelEnum; + 'company'?: Company; + 'configuration'?: Configuration; + /** + * The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE + */ + 'countryCode': string; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + */ + 'enableOneClick'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for payouts. + */ + 'enablePayOut'?: boolean; + /** + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; + /** + * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + */ + 'enableRecurring'?: boolean; + /** + * The type of the entity the payment is processed for. + */ + 'entityType'?: PaymentSetupRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'installments'?: Installments; + /** + * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for Klarna, AfterPay, and RatePay. + */ + 'lineItems'?: Array; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + /** + * Metadata consists of entries, each of which includes a key and a value. Limitations: Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". + */ + 'metadata'?: object; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + /** + * Required for the Web integration. Set this parameter to the origin URL of the page that you are loading the SDK from. + */ + 'origin'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: string; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * The URL to return to. + */ + 'returnUrl': string; + /** + * The version of the SDK you are using (for Web SDK integrations only). + */ + 'sdkVersion'?: string; + /** + * The maximum validity of the session. + */ + 'sessionValidity'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for 3D Secure 2 transactions. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentSetupRequest.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * The text to appear on the shopper\'s bank statement. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. + */ + 'splits'?: Array; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + 'storePaymentMethod'?: boolean; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * The token obtained when initializing the SDK. > This parameter is required for iOS and Android; not required for Web. + */ + 'token'?: string; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{ name: string, baseName: string, type: string }> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AdditionalData" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentSetupRequest.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "Configuration" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentSetupRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "object" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentSetupRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + }]; + + static getAttributeTypeMap() { + return PaymentSetupRequest.attributeTypeMap; + } +} + +export namespace PaymentSetupRequest { + export enum ChannelEnum { + IOS = 'iOS', + Android = 'Android', + Web = 'Web' + } + + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + CompanyName = 'CompanyName' + } + + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/payments/paymentSetupResponse.ts b/src/typings/payments/paymentSetupResponse.ts new file mode 100644 index 0000000..b1f61d5 --- /dev/null +++ b/src/typings/payments/paymentSetupResponse.ts @@ -0,0 +1,43 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RecurringDetail } from './recurringDetail'; + +export class PaymentSetupResponse { + /** + * The encoded payment session that you need to pass to the SDK. + */ + 'paymentSession'?: string; + /** + * The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request. + */ + 'recurringDetails'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentSession", + "baseName": "paymentSession", + "type": "string" + }, + { + "name": "recurringDetails", + "baseName": "recurringDetails", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentVerificationRequest.ts b/src/typings/payments/paymentVerificationRequest.ts new file mode 100644 index 0000000..4116da5 --- /dev/null +++ b/src/typings/payments/paymentVerificationRequest.ts @@ -0,0 +1,33 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class PaymentVerificationRequest { + /** + * Encrypted and signed payment result data. You should receive this value from the Checkout SDK after the shopper completes the payment. + */ + 'payload': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payload", + "baseName": "payload", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentVerificationResponse.ts b/src/typings/payments/paymentVerificationResponse.ts new file mode 100644 index 0000000..fe0b7bb --- /dev/null +++ b/src/typings/payments/paymentVerificationResponse.ts @@ -0,0 +1,125 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { FraudResult } from './fraudResult'; +import { ServiceError } from './serviceError'; + +export class PaymentVerificationResponse { + /** + * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: object; + 'fraudResult'?: FraudResult; + /** + * A unique value that you provided in the initial `/paymentSession` request as a `reference` field. + */ + 'merchantReference': string; + /** + * The payment method used in the transaction. + */ + 'paymentMethod': string; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. + */ + 'pspReference'?: string; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * Code that specifies the refusal reason. For more information, see [Authorisation refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + */ + 'refusalReasonCode'?: string; + /** + * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PaymentVerificationResponse.ResultCodeEnum; + 'serviceError'?: ServiceError; + /** + * The shopperLocale value provided in the payment request. + */ + 'shopperLocale': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentVerificationResponse.ResultCodeEnum" + }, + { + "name": "serviceError", + "baseName": "serviceError", + "type": "ServiceError" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationResponse.attributeTypeMap; + } +} + +export namespace PaymentVerificationResponse { + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused' + } +} diff --git a/src/typings/payments/recurring.ts b/src/typings/payments/recurring.ts old mode 100755 new mode 100644 index 805f336..b8ed9ed --- a/src/typings/payments/recurring.ts +++ b/src/typings/payments/recurring.ts @@ -1,47 +1,80 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Recurring { + +export class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-essentials/payment-glossary#card_security_code_cvc_cvv_cid_). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payment-glossary#cardnotpresentcnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/features/third-party-payouts). - */ - contract?: Recurring.ContractEnum; + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; /** - * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - */ - recurringExpiry?: Date; + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; /** - * Minimum number of days between authorisations. Only for 3D Secure 2. - */ - recurringFrequency?: string; + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; /** - * The name of the token service. - */ - tokenService?: Recurring.TokenServiceEnum; + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } + export namespace Recurring { - export type ContractEnum = 'ONECLICK' | 'RECURRING' | 'PAYOUT'; - export const ContractEnum = { - ONECLICK: 'ONECLICK' as ContractEnum, - RECURRING: 'RECURRING' as ContractEnum, - PAYOUT: 'PAYOUT' as ContractEnum - }; - export type TokenServiceEnum = 'VISATOKENSERVICE' | 'MCTOKENSERVICE'; - export const TokenServiceEnum = { - VISATOKENSERVICE: 'VISATOKENSERVICE' as TokenServiceEnum, - MCTOKENSERVICE: 'MCTOKENSERVICE' as TokenServiceEnum - }; -} \ No newline at end of file + export enum ContractEnum { + ONECLICK = 'ONECLICK', + RECURRING = 'RECURRING', + PAYOUT = 'PAYOUT' + } + export enum TokenServiceEnum { + VISATOKENSERVICE = 'VISATOKENSERVICE', + MCTOKENSERVICE = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/payments/recurringDetail.ts b/src/typings/payments/recurringDetail.ts new file mode 100644 index 0000000..54ffc06 --- /dev/null +++ b/src/typings/payments/recurringDetail.ts @@ -0,0 +1,120 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { InputDetail } from './inputDetail'; +import { PaymentMethodGroup } from './paymentMethodGroup'; +import { StoredDetails } from './storedDetails'; + +export class RecurringDetail { + /** + * List of possible brands. For example: visa, mc. + */ + 'brands'?: Array; + /** + * The configuration of the payment method. + */ + 'configuration'?: object; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'details'?: Array; + 'group'?: PaymentMethodGroup; + /** + * All input details to be provided to complete the payment with this payment method. + */ + 'inputDetails'?: Array; + /** + * The displayable name of this payment method. + */ + 'name'?: string; + /** + * Echo data required to send in next calls. + */ + 'paymentMethodData'?: string; + /** + * The reference that uniquely identifies the recurring detail. + */ + 'recurringDetailReference'?: string; + 'storedDetails'?: StoredDetails; + /** + * Indicates whether this payment method supports tokenization or not. + */ + 'supportsRecurring'?: boolean; + /** + * The unique payment method code. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedDetails", + "baseName": "storedDetails", + "type": "StoredDetails" + }, + { + "name": "supportsRecurring", + "baseName": "supportsRecurring", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetail.attributeTypeMap; + } +} + diff --git a/src/typings/payments/redirect.ts b/src/typings/payments/redirect.ts new file mode 100644 index 0000000..4652ae3 --- /dev/null +++ b/src/typings/payments/redirect.ts @@ -0,0 +1,57 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class Redirect { + /** + * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + */ + 'data'?: object; + /** + * 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": "object" + }, + { + "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/payments/sDKEphemPubKey.ts b/src/typings/payments/sDKEphemPubKey.ts old mode 100755 new mode 100644 index e67d95f..44c697f --- a/src/typings/payments/sDKEphemPubKey.ts +++ b/src/typings/payments/sDKEphemPubKey.ts @@ -1,30 +1,60 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface SDKEphemPubKey { + +export class SDKEphemPubKey { /** - * The `crv` value as received from the 3D Secure 2 SDK. - */ - crv?: string; + * The `crv` value as received from the 3D Secure 2 SDK. + */ + 'crv'?: string; /** - * The `kty` value as received from the 3D Secure 2 SDK. - */ - kty?: string; + * The `kty` value as received from the 3D Secure 2 SDK. + */ + 'kty'?: string; /** - * The `x` value as received from the 3D Secure 2 SDK. - */ - x?: string; + * The `x` value as received from the 3D Secure 2 SDK. + */ + 'x'?: string; /** - * The `y` value as received from the 3D Secure 2 SDK. - */ - y?: string; -} \ No newline at end of file + * The `y` value as received from the 3D Secure 2 SDK. + */ + 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } +} + diff --git a/src/typings/payments/serviceError.ts b/src/typings/payments/serviceError.ts new file mode 100644 index 0000000..60c18cc --- /dev/null +++ b/src/typings/payments/serviceError.ts @@ -0,0 +1,42 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ServiceError { + 'errorCode'?: string; + 'errorType'?: string; + 'message'?: string; + + 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" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/payments/shopperInput.ts b/src/typings/payments/shopperInput.ts new file mode 100644 index 0000000..b8cb7dd --- /dev/null +++ b/src/typings/payments/shopperInput.ts @@ -0,0 +1,68 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ShopperInput { + /** + * Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly + */ + 'billingAddress'?: ShopperInput.BillingAddressEnum; + /** + * Specifies visibility of delivery address fields. Permitted values: * editable * hidden * readOnly + */ + 'deliveryAddress'?: ShopperInput.DeliveryAddressEnum; + /** + * Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly + */ + 'personalDetails'?: ShopperInput.PersonalDetailsEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "ShopperInput.BillingAddressEnum" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "ShopperInput.DeliveryAddressEnum" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "ShopperInput.PersonalDetailsEnum" + } ]; + + static getAttributeTypeMap() { + return ShopperInput.attributeTypeMap; + } +} + +export namespace ShopperInput { + export enum BillingAddressEnum { + Editable = 'editable', + Hidden = 'hidden', + ReadOnly = 'readOnly' + } + export enum DeliveryAddressEnum { + Editable = 'editable', + Hidden = 'hidden', + ReadOnly = 'readOnly' + } + export enum PersonalDetailsEnum { + Editable = 'editable', + Hidden = 'hidden', + ReadOnly = 'readOnly' + } +} diff --git a/src/typings/payments/shopperInteractionDevice.ts b/src/typings/payments/shopperInteractionDevice.ts index fc9cdf1..bebda32 100644 --- a/src/typings/payments/shopperInteractionDevice.ts +++ b/src/typings/payments/shopperInteractionDevice.ts @@ -1,8 +1,8 @@ /** - * Adyen Payment API - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v50/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * The version of the OpenAPI document: 50 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/payments/split.ts b/src/typings/payments/split.ts old mode 100755 new mode 100644 index fc903dd..0d4ec0e --- a/src/typings/payments/split.ts +++ b/src/typings/payments/split.ts @@ -1,43 +1,77 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { SplitAmount } from './splitAmount'; + */ +import { SplitAmount } from './splitAmount'; -export interface Split { +export class Split { /** - * The account to which this split applies. >Required if the type is `MarketPlace`. - */ - account?: string; - amount: SplitAmount; + * The account to which this split applies. >Required if the type is `MarketPlace`. + */ + 'account'?: string; + 'amount': SplitAmount; /** - * A description of this split. - */ - description?: string; + * A description of this split. + */ + 'description'?: string; /** - * The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`. - */ - reference?: string; + * The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`. + */ + 'reference'?: string; /** - * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `Verification`. - */ - type: Split.TypeEnum; + * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `Verification`. + */ + 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } } + export namespace Split { - export type TypeEnum = 'Commission' | 'Default' | 'MarketPlace' | 'PaymentFee' | 'VAT' | 'Verification'; - export const TypeEnum = { - Commission: 'Commission' as TypeEnum, - Default: 'Default' as TypeEnum, - MarketPlace: 'MarketPlace' as TypeEnum, - PaymentFee: 'PaymentFee' as TypeEnum, - VAT: 'VAT' as TypeEnum, - Verification: 'Verification' as TypeEnum - }; -} \ No newline at end of file + export enum TypeEnum { + Commission = 'Commission', + Default = 'Default', + MarketPlace = 'MarketPlace', + PaymentFee = 'PaymentFee', + VAT = 'VAT', + Verification = 'Verification' + } +} diff --git a/src/typings/payments/splitAmount.ts b/src/typings/payments/splitAmount.ts old mode 100755 new mode 100644 index dcfdeca..d8d9472 --- a/src/typings/payments/splitAmount.ts +++ b/src/typings/payments/splitAmount.ts @@ -1,22 +1,42 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface SplitAmount { + +export class SplitAmount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. - */ - currency?: string; + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + */ + 'currency'?: string; /** - * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; -} \ No newline at end of file + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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 SplitAmount.attributeTypeMap; + } +} + diff --git a/src/typings/payments/storedDetails.ts b/src/typings/payments/storedDetails.ts new file mode 100644 index 0000000..d219eaf --- /dev/null +++ b/src/typings/payments/storedDetails.ts @@ -0,0 +1,47 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { BankAccount } from './bankAccount'; +import { Card } from './card'; + +export class StoredDetails { + 'bank'?: BankAccount; + 'card'?: Card; + /** + * The email associated with stored payment details. + */ + 'emailAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "emailAddress", + "baseName": "emailAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredDetails.attributeTypeMap; + } +} + diff --git a/src/typings/payments/storedPaymentMethod.ts b/src/typings/payments/storedPaymentMethod.ts new file mode 100644 index 0000000..abf1bd4 --- /dev/null +++ b/src/typings/payments/storedPaymentMethod.ts @@ -0,0 +1,114 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class StoredPaymentMethod { + /** + * The brand of the card. + */ + 'brand'?: string; + /** + * The month the card expires. + */ + 'expiryMonth'?: string; + /** + * The year the card expires. + */ + 'expiryYear'?: string; + /** + * The unique payment method code. + */ + 'holderName'?: string; + /** + * A unique identifier of this stored payment method. + */ + 'id'?: string; + /** + * The last four digits of the PAN. + */ + 'lastFour'?: string; + /** + * The display name of the stored payment method. + */ + 'name'?: string; + /** + * The shopper’s email address. + */ + 'shopperEmail'?: string; + /** + * The supported shopper interactions for this stored payment method. + */ + 'supportedShopperInteractions'?: Array; + /** + * The type of payment method. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "lastFour", + "baseName": "lastFour", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "supportedShopperInteractions", + "baseName": "supportedShopperInteractions", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredPaymentMethod.attributeTypeMap; + } +} + diff --git a/src/typings/payments/subInputDetail.ts b/src/typings/payments/subInputDetail.ts new file mode 100644 index 0000000..1a1b2ac --- /dev/null +++ b/src/typings/payments/subInputDetail.ts @@ -0,0 +1,79 @@ +/** + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Item } from './item'; + +export class SubInputDetail { + /** + * Configuration parameters for the required input. + */ + 'configuration'?: object; + /** + * In case of a select, the items to choose from. + */ + 'items'?: Array; + /** + * The value to provide in the result. + */ + 'key'?: string; + /** + * True if this input is optional to provide. + */ + 'optional'?: boolean; + /** + * The type of the required input. + */ + 'type'?: string; + /** + * The value can be pre-filled, if available. + */ + 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "object" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubInputDetail.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2RequestData.ts b/src/typings/payments/threeDS2RequestData.ts old mode 100755 new mode 100644 index 231c7ff..d4d0d1f --- a/src/typings/payments/threeDS2RequestData.ts +++ b/src/typings/payments/threeDS2RequestData.ts @@ -1,82 +1,233 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { DeviceRenderOptions } from './deviceRenderOptions'; + */ + +import { DeviceRenderOptions } from './deviceRenderOptions'; import { SDKEphemPubKey } from './sDKEphemPubKey'; +export class ThreeDS2RequestData { + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerBIN'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerMerchantID'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'authenticationOnly'?: boolean; + /** + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + */ + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; + /** + * The environment of the shopper. Allowed values: * `app` * `browser` + */ + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions; + /** + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + */ + 'mcc'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + */ + 'merchantName'?: string; + /** + * The `messageVersion` value indicating the 3D Secure 2 protocol version. + */ + 'messageVersion'?: string; + /** + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + */ + 'notificationURL'?: string; + /** + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkAppID'?: string; + /** + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkEncData'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey; + /** + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + */ + 'sdkMaxTimeout'?: number; + /** + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkReferenceNumber'?: string; + /** + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkTransID'?: string; + /** + * Completion indicator for the device fingerprinting. + */ + 'threeDSCompInd'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorID'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorName'?: string; + /** + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + */ + 'threeDSRequestorURL'?: string; + /** + * Identify the type of the transaction being authenticated. + */ + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; + /** + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + */ + 'whiteListStatus'?: string; -export interface ThreeDS2RequestData { - /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure-2/3ds2-checkout-authentication-only-integration), and not the payment authorisation. - */ - authenticationOnly?: boolean; - /** - * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` - */ - challengeIndicator?: ThreeDS2RequestData.ChallengeIndicatorEnum; - /** - * The environment of the shopper. Allowed values: * `app` * `browser` - */ - deviceChannel: string; - deviceRenderOptions?: DeviceRenderOptions; - /** - * The `messageVersion` value indicating the 3D Secure 2 protocol version. - */ - messageVersion?: string; - /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - */ - notificationURL?: string; - /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - */ - sdkAppID?: string; - /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. - */ - sdkEncData?: string; - sdkEphemPubKey?: SDKEphemPubKey; - /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Only for `deviceChannel` set to **app**. - */ - sdkMaxTimeout?: number; - /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - */ - sdkReferenceNumber?: string; - /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. - */ - sdkTransID?: string; - /** - * Completion indicator for the device fingerprinting. - */ - threeDSCompInd?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure-2/3ds2-checkout-authentication-only-integration) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - */ - threeDSRequestorID?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure-2/3ds2-checkout-authentication-only-integration) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - */ - threeDSRequestorName?: string; - /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - */ - threeDSRequestorURL?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } } + export namespace ThreeDS2RequestData { - export type ChallengeIndicatorEnum = 'noPreference' | 'requestNoChallenge' | 'requestChallenge'; - export const ChallengeIndicatorEnum = { - NoPreference: 'noPreference' as ChallengeIndicatorEnum, - RequestNoChallenge: 'requestNoChallenge' as ChallengeIndicatorEnum, - RequestChallenge: 'requestChallenge' as ChallengeIndicatorEnum - }; -} \ No newline at end of file + export enum ChallengeIndicatorEnum { + NoPreference = 'noPreference', + RequestNoChallenge = 'requestNoChallenge', + RequestChallenge = 'requestChallenge', + RequestChallengeAsMandate = 'requestChallengeAsMandate' + } + export enum TransactionTypeEnum { + GoodsOrServicePurchase = 'goodsOrServicePurchase', + CheckAcceptance = 'checkAcceptance', + AccountFunding = 'accountFunding', + QuasiCashTransaction = 'quasiCashTransaction', + PrepaidActivationAndLoad = 'prepaidActivationAndLoad' + } +} diff --git a/src/typings/payments/threeDSecureData.ts b/src/typings/payments/threeDSecureData.ts old mode 100755 new mode 100644 index 552977e..bdf00d4 --- a/src/typings/payments/threeDSecureData.ts +++ b/src/typings/payments/threeDSecureData.ts @@ -1,63 +1,114 @@ /** - * Adyen Payment Service - * A set of API endpoints that allow you to initiate, settle, and modify payments on the Adyen payments platform. You can use the API to accept card payments (including One-Click and 3D Secure), bank transfers, ewallets, and many other payment methods. To learn more about the API, visit [Classic integration](https://docs.adyen.com/classic-integration). ## Authentication To connect to the Payments API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Payments API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Payment/v46/authorise ``` + * Adyen Checkout API + * Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments. You can use the same integration for payments made with cards (including One-Click and 3D Secure), mobile wallets, and local payment methods (e.g. iDEAL and Sofort). This API reference provides information on available endpoints and how to interact with them. To learn more about the API, visit [Checkout documentation](https://docs.adyen.com/checkout). ## Authentication Each request to the Checkout API must be signed with an API key. For this, obtain an API Key from your Customer Area, as described in [How to get the API key](https://docs.adyen.com/user-management/how-to-get-the-api-key). Then set this key to the `X-API-Key` header value, for example: ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: Your_Checkout_API_key\" \\ ... ``` Note that when going live, you need to generate a new API Key to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Checkout API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://checkout-test.adyen.com/v51/payments ``` * - * OpenAPI spec version: 46 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ThreeDSecureData { + +export class ThreeDSecureData { /** - * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from challenge flow. If the transaction was frictionless, set this value to **Y**. - */ - authenticationResponse?: ThreeDSecureData.AuthenticationResponseEnum; + * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, set this value to **Y**. + */ + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; /** - * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - */ - cavv?: string; + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + 'cavv'?: string; /** - * The CAVV algorithm used. Include this only for 3D Secure 1. - */ - cavvAlgorithm?: string; + * The CAVV algorithm used. Include this only for 3D Secure 1. + */ + 'cavvAlgorithm'?: string; /** - * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from 3D Secure device fingerprinting result. - */ - directoryResponse?: ThreeDSecureData.DirectoryResponseEnum; + * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`. The possible values are **A** or **Y** for a frictionless flow, or **C** for a challenge flow. + */ + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. - */ - dsTransID?: string; + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + */ + 'dsTransID'?: string; /** - * The electronic commerce indicator. - */ - eci?: string; + * The electronic commerce indicator. + */ + 'eci'?: string; /** - * The version of the 3D Secure protocol. - */ - threeDSVersion?: string; + * The version of the 3D Secure protocol. + */ + 'threeDSVersion'?: string; /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). - */ - xid?: string; + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } } + export namespace ThreeDSecureData { - export type AuthenticationResponseEnum = 'Y' | 'N' | 'U' | 'A'; - export const AuthenticationResponseEnum = { - Y: 'Y' as AuthenticationResponseEnum, - N: 'N' as AuthenticationResponseEnum, - U: 'U' as AuthenticationResponseEnum, - A: 'A' as AuthenticationResponseEnum - }; - export type DirectoryResponseEnum = 'Y' | 'N' | 'U' | 'E' | 'C'; - export const DirectoryResponseEnum = { - Y: 'Y' as DirectoryResponseEnum, - N: 'N' as DirectoryResponseEnum, - U: 'U' as DirectoryResponseEnum, - E: 'E' as DirectoryResponseEnum, - C: 'C' as DirectoryResponseEnum - }; -} \ No newline at end of file + export enum AuthenticationResponseEnum { + Y = 'Y', + N = 'N', + U = 'U', + A = 'A' + } + export enum DirectoryResponseEnum { + A = 'A', + C = 'C', + D = 'D', + I = 'I', + N = 'N', + R = 'R', + U = 'U', + Y = 'Y' + } +} diff --git a/src/typings/payout/accountInfo.ts b/src/typings/payout/accountInfo.ts new file mode 100644 index 0000000..e2458d8 --- /dev/null +++ b/src/typings/payout/accountInfo.ts @@ -0,0 +1,235 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class AccountInfo { + /** + * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; + /** + * Date when the shopper\'s account was last changed. + */ + 'accountChangeDate'?: Date; + /** + * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; + /** + * Date when the shopper\'s account was created. + */ + 'accountCreationDate'?: Date; + /** + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + */ + 'accountType'?: AccountInfo.AccountTypeEnum; + /** + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + 'addCardAttemptsDay'?: number; + /** + * Date the selected delivery address was first used. + */ + 'deliveryAddressUsageDate'?: Date; + /** + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + /** + * Shopper\'s home phone number (including the country code). + */ + 'homePhone'?: string; + /** + * Shopper\'s mobile phone number (including the country code). + */ + 'mobilePhone'?: string; + /** + * Date when the shopper last changed their password. + */ + 'passwordChangeDate'?: Date; + /** + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + 'pastTransactionsDay'?: number; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + 'pastTransactionsYear'?: number; + /** + * Date this payment method was added to the shopper\'s account. + */ + 'paymentAccountAge'?: Date; + /** + * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; + /** + * Number of successful purchases in the last six months. + */ + 'purchasesLast6Months'?: number; + /** + * Whether suspicious activity was recorded on this account. + */ + 'suspiciousActivity'?: boolean; + /** + * Shopper\'s work phone number (including the country code). + */ + 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } +} + +export namespace AccountInfo { + export enum AccountAgeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountChangeIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountTypeEnum { + NotApplicable = 'notApplicable', + Credit = 'credit', + Debit = 'debit' + } + export enum DeliveryAddressUsageIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PasswordChangeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PaymentAccountIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } +} diff --git a/src/typings/payout/address.ts b/src/typings/payout/address.ts old mode 100755 new mode 100644 index 0ed7fa3..52f0a46 --- a/src/typings/payout/address.ts +++ b/src/typings/payout/address.ts @@ -1,38 +1,78 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Address { + +export class Address { /** - * The name of the city. >Required if either houseNumberOrName, street, postalCode, or stateOrProvince are provided. - */ - city?: string; + * The name of the city. + */ + 'city': string; /** - * The two-character country code of the address >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). - */ - country: string; + * The two-character country code as defined in ISO-3166-1 alpha-2. 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; /** - * The number or name of the house. - */ - houseNumberOrName?: string; + * The number or name of the house. + */ + 'houseNumberOrName': string; /** - * The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. >Required if either houseNumberOrName, street, city, or stateOrProvince are provided. - */ - postalCode?: string; + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; /** - * The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either houseNumberOrName, street, city, or postalCode are provided. - */ - stateOrProvince?: string; + * State or province codes as defined in ISO 3166-2. For example, **SF** in US or **ON** for Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; /** - * The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either houseNumberOrName, city, postalCode, or stateOrProvince are provided. - */ - street?: string; -} \ No newline at end of file + * The name of the street. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': 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": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/payout/amount.ts b/src/typings/payout/amount.ts old mode 100755 new mode 100644 index 7f9bfa1..abf1740 --- a/src/typings/payout/amount.ts +++ b/src/typings/payout/amount.ts @@ -1,22 +1,42 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Amount { + +export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - currency: string; + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; /** - * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; -} \ No newline at end of file + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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/payout/applicationInfo.ts b/src/typings/payout/applicationInfo.ts new file mode 100644 index 0000000..67b9c12 --- /dev/null +++ b/src/typings/payout/applicationInfo.ts @@ -0,0 +1,64 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { CommonField } from './commonField'; +import { ExternalPlatform } from './externalPlatform'; +import { MerchantDevice } from './merchantDevice'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; + +export class ApplicationInfo { + 'adyenLibrary'?: CommonField; + 'adyenPaymentSource'?: CommonField; + 'externalPlatform'?: ExternalPlatform; + 'merchantApplication'?: CommonField; + 'merchantDevice'?: MerchantDevice; + 'shopperInteractionDevice'?: ShopperInteractionDevice; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "adyenLibrary", + "baseName": "adyenLibrary", + "type": "CommonField" + }, + { + "name": "adyenPaymentSource", + "baseName": "adyenPaymentSource", + "type": "CommonField" + }, + { + "name": "externalPlatform", + "baseName": "externalPlatform", + "type": "ExternalPlatform" + }, + { + "name": "merchantApplication", + "baseName": "merchantApplication", + "type": "CommonField" + }, + { + "name": "merchantDevice", + "baseName": "merchantDevice", + "type": "MerchantDevice" + }, + { + "name": "shopperInteractionDevice", + "baseName": "shopperInteractionDevice", + "type": "ShopperInteractionDevice" + } ]; + + static getAttributeTypeMap() { + return ApplicationInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payout/bankAccount.ts b/src/typings/payout/bankAccount.ts old mode 100755 new mode 100644 index c03a767..8fbab4c --- a/src/typings/payout/bankAccount.ts +++ b/src/typings/payout/bankAccount.ts @@ -1,50 +1,105 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BankAccount { + +export class BankAccount { /** - * The bank account number (without separators). - */ - bankAccountNumber?: string; + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; /** - * The bank city. - */ - bankCity?: string; + * The bank city. + */ + 'bankCity'?: string; /** - * The location id of the bank. The field value is `nil` in most cases. - */ - bankLocationId?: string; + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; /** - * The name of the bank. - */ - bankName?: string; + * The name of the bank. + */ + 'bankName'?: string; /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - */ - bic?: string; + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + */ + 'bic'?: string; /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - */ - countryCode?: string; + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - */ - iban?: string; + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - */ - ownerName?: string; + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. + */ + 'ownerName'?: string; /** - * The bank account holder's tax ID. - */ - taxId?: string; -} \ No newline at end of file + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/payout/browserInfo.ts b/src/typings/payout/browserInfo.ts old mode 100755 new mode 100644 index b440a78..703e74d --- a/src/typings/payout/browserInfo.ts +++ b/src/typings/payout/browserInfo.ts @@ -1,22 +1,105 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BrowserInfo { + +export class BrowserInfo { /** - * The accept header value of the shopper's browser. - */ - acceptHeader: string; + * The accept header value of the shopper\'s browser. + */ + 'acceptHeader': string; /** - * The user agent value of the shopper's browser. - */ - userAgent: string; -} \ No newline at end of file + * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 32 or 48 bit color depth. + */ + 'colorDepth': number; + /** + * Boolean value indicating if the shopper\'s browser is able to execute Java. + */ + 'javaEnabled': boolean; + /** + * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. + */ + 'javaScriptEnabled'?: boolean; + /** + * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). + */ + 'language': string; + /** + * The total height of the shopper\'s device screen in pixels. + */ + 'screenHeight': number; + /** + * The total width of the shopper\'s device screen in pixels. + */ + 'screenWidth': number; + /** + * Time difference between UTC time and the shopper\'s browser local time, in minutes. + */ + 'timeZoneOffset': number; + /** + * The user agent value of the shopper\'s browser. + */ + 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payout/card.ts b/src/typings/payout/card.ts old mode 100755 new mode 100644 index 87eb73e..e2ddcb6 --- a/src/typings/payout/card.ts +++ b/src/typings/payout/card.ts @@ -1,46 +1,96 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Card { + +export class Card { /** - * The [card verification code](https://docs.adyen.com/payment-glossary#cardsecuritycodecvccvvcid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/features/client-side-encryption), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - */ - cvc?: string; + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + */ + 'cvc'?: string; /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - */ - expiryMonth: string; + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; /** - * The card expiry year. Format: 4 digits. For example: 2020 - */ - expiryYear: string; + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; /** - * The name of the cardholder, as printed on the card. - */ - holderName: string; + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; /** - * The issue number of the card (for some UK debit cards only). - */ - issueNumber?: string; + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - */ - number: string; + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + */ + 'number': string; /** - * The month component of the start date (for some UK debit cards only). - */ - startMonth?: string; + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; /** - * The year component of the start date (for some UK debit cards only). - */ - startYear?: string; -} \ No newline at end of file + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/payout/commonField.ts b/src/typings/payout/commonField.ts new file mode 100644 index 0000000..1d9d71c --- /dev/null +++ b/src/typings/payout/commonField.ts @@ -0,0 +1,42 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class CommonField { + /** + * Name of the field. For example, Name of External Platform. + */ + 'name'?: string; + /** + * Version of the field. For example, Version of External Platform. + */ + 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CommonField.attributeTypeMap; + } +} + diff --git a/src/typings/payout/deviceRenderOptions.ts b/src/typings/payout/deviceRenderOptions.ts new file mode 100644 index 0000000..643c2dd --- /dev/null +++ b/src/typings/payout/deviceRenderOptions.ts @@ -0,0 +1,56 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class DeviceRenderOptions { + /** + * Supported SDK interface types. Allowed values: * Native * Html * both + */ + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; + /** + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + */ + 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } +} + +export namespace DeviceRenderOptions { + export enum SdkInterfaceEnum { + Html = 'Html', + Native = 'Native', + Both = 'both' + } + export enum SdkUiTypeEnum { + MultiSelect = 'multiSelect', + OtherHtml = 'otherHtml', + OutOfBand = 'outOfBand', + SingleSelect = 'singleSelect', + Text = 'text' + } +} diff --git a/src/typings/payout/externalPlatform.ts b/src/typings/payout/externalPlatform.ts new file mode 100644 index 0000000..139e855 --- /dev/null +++ b/src/typings/payout/externalPlatform.ts @@ -0,0 +1,51 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ExternalPlatform { + /** + * External platform integrator. + */ + 'integrator'?: string; + /** + * Name of the field. For example, Name of External Platform. + */ + 'name'?: string; + /** + * Version of the field. For example, Version of External Platform. + */ + 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "integrator", + "baseName": "integrator", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExternalPlatform.attributeTypeMap; + } +} + diff --git a/src/typings/payout/forexQuote.ts b/src/typings/payout/forexQuote.ts old mode 100755 new mode 100644 index c597a38..5a92b6b --- a/src/typings/payout/forexQuote.ts +++ b/src/typings/payout/forexQuote.ts @@ -1,51 +1,121 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ +import { Amount } from './amount'; -export interface ForexQuote { +export class ForexQuote { /** - * The account name. - */ - account?: string; + * The account name. + */ + 'account'?: string; /** - * The account type. - */ - accountType?: string; - baseAmount?: Amount; + * The account type. + */ + 'accountType'?: string; + 'baseAmount'?: Amount; /** - * The base points. - */ - basePoints: number; - buy?: Amount; - interbank?: Amount; + * The base points. + */ + 'basePoints': number; + 'buy'?: Amount; + 'interbank'?: Amount; /** - * The reference assigned to the forex quote request. - */ - reference?: string; - sell?: Amount; + * The reference assigned to the forex quote request. + */ + 'reference'?: string; + 'sell'?: Amount; /** - * The signature to validate the integrity. - */ - signature?: string; + * The signature to validate the integrity. + */ + 'signature'?: string; /** - * The source of the forex quote. - */ - source?: string; + * The source of the forex quote. + */ + 'source'?: string; /** - * The type of forex. - */ - type?: string; + * The type of forex. + */ + 'type'?: string; /** - * The date until which the forex quote is valid. - */ - validTill: Date; -} \ No newline at end of file + * The date until which the forex quote is valid. + */ + 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } +} + diff --git a/src/typings/payout/fraudCheckResult.ts b/src/typings/payout/fraudCheckResult.ts old mode 100755 new mode 100644 index 2d07b37..083418d --- a/src/typings/payout/fraudCheckResult.ts +++ b/src/typings/payout/fraudCheckResult.ts @@ -1,26 +1,51 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface FraudCheckResult { + +export class FraudCheckResult { /** - * The fraud score generated by the risk check. - */ - accountScore: number; + * The fraud score generated by the risk check. + */ + 'accountScore': number; /** - * The ID of the risk check. - */ - checkId: number; + * The ID of the risk check. + */ + 'checkId': number; /** - * The name of the risk check. - */ - name: string; -} \ No newline at end of file + * The name of the risk check. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/payout/fraudResult.ts b/src/typings/payout/fraudResult.ts old mode 100755 new mode 100644 index 502e4db..1c8583c --- a/src/typings/payout/fraudResult.ts +++ b/src/typings/payout/fraudResult.ts @@ -1,23 +1,43 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { FraudCheckResult } from './fraudCheckResult'; + */ +import { FraudCheckResult } from './fraudCheckResult'; -export interface FraudResult { +export class FraudResult { /** - * The total fraud score generated by the risk checks. - */ - accountScore: number; + * The total fraud score generated by the risk checks. + */ + 'accountScore': number; /** - * The result of the individual risk checks. - */ - results?: Array; -} \ No newline at end of file + * The result of the individual risk checks. + */ + 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } +} + diff --git a/src/typings/payout/fundSource.ts b/src/typings/payout/fundSource.ts old mode 100755 new mode 100644 index 7c27103..8d31e8b --- a/src/typings/payout/fundSource.ts +++ b/src/typings/payout/fundSource.ts @@ -1,32 +1,72 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Address } from './address'; + */ + +import { Address } from './address'; import { Card } from './card'; import { Name } from './name'; +export class FundSource { + /** + * a map of name/value pairs for passing in additional/industry-specific data + */ + 'additionalData'?: object; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * the email address of the person + */ + 'shopperEmail'?: string; + 'shopperName'?: Name; + /** + * 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": "object" + }, + { + "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; + } +} -export interface FundSource { - /** - * a map of name/value pairs for passing in additional/industry-specific data - */ - additionalData?: any; - billingAddress?: Address; - card?: Card; - /** - * the email address of the person - */ - shopperEmail?: string; - shopperName?: Name; - /** - * the telephone number of the person - */ - telephoneNumber?: string; -} \ No newline at end of file diff --git a/src/typings/payout/installments.ts b/src/typings/payout/installments.ts old mode 100755 new mode 100644 index 9ebbee8..d521dfa --- a/src/typings/payout/installments.ts +++ b/src/typings/payout/installments.ts @@ -1,18 +1,33 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Installments { + +export class Installments { /** - * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. - */ - value: number; -} \ No newline at end of file + * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } +} + diff --git a/src/typings/payout/merchantDevice.ts b/src/typings/payout/merchantDevice.ts new file mode 100644 index 0000000..3c77d48 --- /dev/null +++ b/src/typings/payout/merchantDevice.ts @@ -0,0 +1,51 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class MerchantDevice { + /** + * Operating system running on the merchant device. + */ + 'os'?: string; + /** + * Version of the operating system on the merchant device. + */ + 'osVersion'?: string; + /** + * Merchant device reference. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDevice.attributeTypeMap; + } +} + diff --git a/src/typings/payout/merchantRiskIndicator.ts b/src/typings/payout/merchantRiskIndicator.ts new file mode 100644 index 0000000..4f72816 --- /dev/null +++ b/src/typings/payout/merchantRiskIndicator.ts @@ -0,0 +1,120 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Amount } from './amount'; + +export class MerchantRiskIndicator { + /** + * Whether the chosen delivery address is identical to the billing address. + */ + 'addressMatch'?: boolean; + /** + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + */ + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + /** + * The delivery email address (for digital goods). + */ + 'deliveryEmail'?: string; + /** + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + */ + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount; + /** + * Number of individual prepaid or gift cards used for this purchase. + */ + 'giftCardCount'?: number; + /** + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + 'preOrderDate'?: Date; + /** + * Indicator for whether this transaction is for pre-ordering a product. + */ + 'preOrderPurchase'?: boolean; + /** + * Indicator for whether the shopper has already purchased the same items in the past. + */ + 'reorderItems'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } +} + +export namespace MerchantRiskIndicator { + export enum DeliveryAddressIndicatorEnum { + ShipToBillingAddress = 'shipToBillingAddress', + ShipToVerifiedAddress = 'shipToVerifiedAddress', + ShipToNewAddress = 'shipToNewAddress', + ShipToStore = 'shipToStore', + DigitalGoods = 'digitalGoods', + GoodsNotShipped = 'goodsNotShipped', + Other = 'other' + } + export enum DeliveryTimeframeEnum { + ElectronicDelivery = 'electronicDelivery', + SameDayShipping = 'sameDayShipping', + OvernightShipping = 'overnightShipping', + TwoOrMoreDaysShipping = 'twoOrMoreDaysShipping' + } +} diff --git a/src/typings/payout/modifyRequest.ts b/src/typings/payout/modifyRequest.ts old mode 100755 new mode 100644 index d5c3259..24f99c0 --- a/src/typings/payout/modifyRequest.ts +++ b/src/typings/payout/modifyRequest.ts @@ -1,26 +1,51 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ModifyRequest { + +export class ModifyRequest { /** - * This field contains additional data, which may be required for a particular payout request. - */ - additionalData?: any; + * This field contains additional data, which may be required for a particular payout request. + */ + 'additionalData'?: object; /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; /** - * The PSP reference received in the `/submitThirdParty` response. - */ - originalReference: string; -} \ No newline at end of file + * The PSP reference received in the `/submitThirdParty` response. + */ + 'originalReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModifyRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payout/modifyResponse.ts b/src/typings/payout/modifyResponse.ts old mode 100755 new mode 100644 index d1975af..f72bd53 --- a/src/typings/payout/modifyResponse.ts +++ b/src/typings/payout/modifyResponse.ts @@ -1,26 +1,51 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ModifyResponse { + +export class ModifyResponse { /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: any; + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: object; /** - * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. - */ - pspReference: string; + * Adyen\'s 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + */ + 'pspReference': string; /** - * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. - */ - response: string; -} \ No newline at end of file + * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + */ + 'response': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModifyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payout/name.ts b/src/typings/payout/name.ts old mode 100755 new mode 100644 index afb046e..489ccfc --- a/src/typings/payout/name.ts +++ b/src/typings/payout/name.ts @@ -1,38 +1,67 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Name { + +export class Name { /** - * The first name. - */ - firstName: string; + * The first name. + */ + 'firstName': string; /** - * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. - */ - gender: Name.GenderEnum; + * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + 'gender': Name.GenderEnum; /** - * The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed. - */ - infix?: string; + * The name\'s infix, if applicable. >A maximum length of twenty (20) characters is imposed. + */ + 'infix'?: string; /** - * The last name. - */ - lastName: string; + * The 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": "gender", + "baseName": "gender", + "type": "Name.GenderEnum" + }, + { + "name": "infix", + "baseName": "infix", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } } + export namespace Name { - export type GenderEnum = 'MALE' | 'FEMALE' | 'UNKNOWN'; - export const GenderEnum = { - MALE: 'MALE' as GenderEnum, - FEMALE: 'FEMALE' as GenderEnum, - UNKNOWN: 'UNKNOWN' as GenderEnum - }; -} \ No newline at end of file + export enum GenderEnum { + MALE = 'MALE', + FEMALE = 'FEMALE', + UNKNOWN = 'UNKNOWN' + } +} diff --git a/src/typings/payout/payoutRequest.ts b/src/typings/payout/payoutRequest.ts old mode 100755 new mode 100644 index 704208b..b9795a9 --- a/src/typings/payout/payoutRequest.ts +++ b/src/typings/payout/payoutRequest.ts @@ -1,169 +1,447 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Address } from './address'; + */ + +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; import { BankAccount } from './bankAccount'; import { BrowserInfo } from './browserInfo'; import { Card } from './card'; import { ForexQuote } from './forexQuote'; import { FundSource } from './fundSource'; import { Installments } from './installments'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; import { Name } from './name'; import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDSecureData } from './threeDSecureData'; +export class PayoutRequest { + 'accountInfo'?: AccountInfo; + 'additionalAmount'?: Amount; + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api/paymentrequest/paymentrequest-additionaldata). + */ + 'additionalData'?: object; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'bankAccount'?: BankAccount; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + 'card'?: Card; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + */ + 'deviceFingerprint'?: string; + /** + * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. + */ + 'enableRealTimeUpdate'?: boolean; + /** + * The type of the entity the payment is processed for. + */ + 'entityType'?: PayoutRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'fundSource'?: FundSource; + 'installments'?: Installments; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator; + /** + * Metadata consists of entries, each of which includes a key and a value. Limitations: Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". + */ + 'metadata'?: object; + 'mpiData'?: ThreeDSecureData; + /** + * The two-character country code of the shopper\'s nationality. + */ + 'nationality'?: string; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + 'recurring'?: Recurring; + /** + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – Card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – A transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. + */ + 'recurringProcessingModel'?: PayoutRequest.RecurringProcessingModelEnum; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + */ + 'selectedBrand'?: string; + /** + * 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; + /** + * A session ID used to identify a payment session. + */ + 'sessionId'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > Required for 3D Secure 2 transactions. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PayoutRequest.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. + */ + 'shopperReference'?: string; + /** + * The text to appear on the shopper\'s bank statement. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The details of how the payment should be split when distributing a payment to a MarketPay Marketplace and its Accounts. + */ + 'splits'?: Array; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + */ + 'totalsGroup'?: string; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; -export interface PayoutRequest { - additionalAmount?: Amount; - /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to the [additionalData section](https://docs.adyen.com/api-reference/payments-api#paymentrequestadditionaldata). - */ - additionalData?: any; - amount: Amount; - bankAccount?: BankAccount; - billingAddress?: Address; - browserInfo?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; - card?: Card; - /** - * The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - dateOfBirth?: Date; - dccQuote?: ForexQuote; - deliveryAddress?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - deliveryDate?: Date; - /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - deviceFingerprint?: string; - /** - * The type of the entity the payment is processed for. - */ - entityType?: PayoutRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - fundSource?: FundSource; - installments?: Installments; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - mcc?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * This reference allows linking multiple transactions to each other. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - merchantOrderReference?: string; - /** - * Metadata consists of entries, each of which includes a key and a value. Limitations: Error \"177\", \"Metadata size exceeds limit\" - */ - metadata?: any; - mpiData?: ThreeDSecureData; - /** - * The two-character country code of the shopper's nationality. - */ - nationality?: string; - /** - * The order reference to link multiple partial payments. - */ - orderReference?: string; - recurring?: Recurring; - /** - * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – Card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. - */ - recurringProcessingModel?: PayoutRequest.RecurringProcessingModelEnum; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. - */ - reference: string; - /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - */ - selectedBrand?: string; - /** - * 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; - /** - * A session ID used to identify a payment session. - */ - sessionId?: string; - /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. - */ - shopperEmail?: string; - /** - * The shopper's IP address. We recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > This field is mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - shopperIP?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: PayoutRequest.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - shopperLocale?: string; - shopperName?: Name; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). > This field is required for recurring payments. - */ - shopperReference?: string; - /** - * The text to appear on the shopper's bank statement. - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * The physical store, for which this payment is processed. - */ - store?: string; - /** - * The shopper's telephone number. - */ - telephoneNumber?: string; - /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - */ - totalsGroup?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "enableRealTimeUpdate", + "baseName": "enableRealTimeUpdate", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PayoutRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "fundSource", + "baseName": "fundSource", + "type": "FundSource" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "object" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PayoutRequest.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PayoutRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PayoutRequest.attributeTypeMap; + } } + export namespace PayoutRequest { - export type EntityTypeEnum = 'NaturalPerson' | 'CompanyName'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - CompanyName: 'CompanyName' as EntityTypeEnum - }; - export type RecurringProcessingModelEnum = 'CardOnFile' | 'Subscription'; - export const RecurringProcessingModelEnum = { - CardOnFile: 'CardOnFile' as RecurringProcessingModelEnum, - Subscription: 'Subscription' as RecurringProcessingModelEnum - }; - export type ShopperInteractionEnum = 'Ecommerce' | 'ContAuth' | 'Moto' | 'POS'; - export const ShopperInteractionEnum = { - Ecommerce: 'Ecommerce' as ShopperInteractionEnum, - ContAuth: 'ContAuth' as ShopperInteractionEnum, - Moto: 'Moto' as ShopperInteractionEnum, - POS: 'POS' as ShopperInteractionEnum - }; -} \ No newline at end of file + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + CompanyName = 'CompanyName' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/payout/payoutResponse.ts b/src/typings/payout/payoutResponse.ts old mode 100755 new mode 100644 index e3ddfe1..5cb8cac --- a/src/typings/payout/payoutResponse.ts +++ b/src/typings/payout/payoutResponse.ts @@ -1,66 +1,134 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ + +import { Amount } from './amount'; import { FraudResult } from './fraudResult'; +export class PayoutResponse { + /** + * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: object; + /** + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'dccAmount'?: Amount; + /** + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'dccSignature'?: string; + 'fraudResult'?: FraudResult; + /** + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + */ + 'issuerUrl'?: string; + /** + * The payment session. + */ + 'md'?: string; + /** + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + */ + 'paRequest'?: string; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. + */ + 'pspReference'?: string; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PayoutResponse.ResultCodeEnum; -export interface PayoutResponse { - /** - * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs**. - */ - additionalData?: any; - /** - * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. - */ - authCode?: string; - dccAmount?: Amount; - /** - * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - dccSignature?: string; - fraudResult?: FraudResult; - /** - * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. - */ - issuerUrl?: string; - /** - * The payment session. - */ - md?: string; - /** - * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/risk-management/3d-secure). - */ - paRequest?: string; - /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > `pspReference` is returned only for non-redirect payment methods. - */ - pspReference?: string; - /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - */ - refusalReason?: string; - /** - * The result of the payment. Possible values: * **Authorised** – Indicates the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **Error** – Indicates an error occurred during processing of the payment. The reason is given in the `refusalReason` field. This is a final state. - */ - resultCode?: PayoutResponse.ResultCodeEnum; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "dccAmount", + "baseName": "dccAmount", + "type": "Amount" + }, + { + "name": "dccSignature", + "baseName": "dccSignature", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "issuerUrl", + "baseName": "issuerUrl", + "type": "string" + }, + { + "name": "md", + "baseName": "md", + "type": "string" + }, + { + "name": "paRequest", + "baseName": "paRequest", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PayoutResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutResponse.attributeTypeMap; + } } + export namespace PayoutResponse { - export type ResultCodeEnum = 'Authorised' | 'PartiallyAuthorised' | 'Refused' | 'Error' | 'Cancelled' | 'Received' | 'RedirectShopper'; - export const ResultCodeEnum = { - Authorised: 'Authorised' as ResultCodeEnum, - PartiallyAuthorised: 'PartiallyAuthorised' as ResultCodeEnum, - Refused: 'Refused' as ResultCodeEnum, - Error: 'Error' as ResultCodeEnum, - Cancelled: 'Cancelled' as ResultCodeEnum, - Received: 'Received' as ResultCodeEnum, - RedirectShopper: 'RedirectShopper' as ResultCodeEnum - }; -} \ No newline at end of file + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused' + } +} diff --git a/src/typings/payout/recurring.ts b/src/typings/payout/recurring.ts old mode 100755 new mode 100644 index 9901677..43fb7ab --- a/src/typings/payout/recurring.ts +++ b/src/typings/payout/recurring.ts @@ -1,39 +1,80 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Recurring { + +export class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payment-glossary#cardsecuritycodecvccvvcid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payment-glossary#cardnotpresentcnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/features/third-party-payouts). - */ - contract?: Recurring.ContractEnum; + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; /** - * The name of the token service. - */ - tokenService?: Recurring.TokenServiceEnum; + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } + export namespace Recurring { - export type ContractEnum = 'ONECLICK' | 'RECURRING' | 'PAYOUT'; - export const ContractEnum = { - ONECLICK: 'ONECLICK' as ContractEnum, - RECURRING: 'RECURRING' as ContractEnum, - PAYOUT: 'PAYOUT' as ContractEnum - }; - export type TokenServiceEnum = 'VISATOKENSERVICE' | 'MCTOKENSERVICE'; - export const TokenServiceEnum = { - VISATOKENSERVICE: 'VISATOKENSERVICE' as TokenServiceEnum, - MCTOKENSERVICE: 'MCTOKENSERVICE' as TokenServiceEnum - }; -} \ No newline at end of file + export enum ContractEnum { + ONECLICK = 'ONECLICK', + RECURRING = 'RECURRING', + PAYOUT = 'PAYOUT' + } + export enum TokenServiceEnum { + VISATOKENSERVICE = 'VISATOKENSERVICE', + MCTOKENSERVICE = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/payout/sDKEphemPubKey.ts b/src/typings/payout/sDKEphemPubKey.ts new file mode 100644 index 0000000..4498c11 --- /dev/null +++ b/src/typings/payout/sDKEphemPubKey.ts @@ -0,0 +1,60 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class SDKEphemPubKey { + /** + * The `crv` value as received from the 3D Secure 2 SDK. + */ + 'crv'?: string; + /** + * The `kty` value as received from the 3D Secure 2 SDK. + */ + 'kty'?: string; + /** + * The `x` value as received from the 3D Secure 2 SDK. + */ + 'x'?: string; + /** + * The `y` value as received from the 3D Secure 2 SDK. + */ + 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } +} + diff --git a/src/typings/payout/shopperInteractionDevice.ts b/src/typings/payout/shopperInteractionDevice.ts new file mode 100644 index 0000000..9e003f8 --- /dev/null +++ b/src/typings/payout/shopperInteractionDevice.ts @@ -0,0 +1,51 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ShopperInteractionDevice { + /** + * Locale on the shopper interaction device. + */ + 'locale'?: string; + /** + * Operating system running on the shopper interaction device. + */ + 'os'?: string; + /** + * Version of the operating system on the shopper interaction device. + */ + 'osVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "locale", + "baseName": "locale", + "type": "string" + }, + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShopperInteractionDevice.attributeTypeMap; + } +} + diff --git a/src/typings/payout/split.ts b/src/typings/payout/split.ts new file mode 100644 index 0000000..ac8dab9 --- /dev/null +++ b/src/typings/payout/split.ts @@ -0,0 +1,77 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { SplitAmount } from './splitAmount'; + +export class Split { + /** + * The account to which this split applies. >Required if the type is `MarketPlace`. + */ + 'account'?: string; + 'amount': SplitAmount; + /** + * A description of this split. + */ + 'description'?: string; + /** + * The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. >Required if the type is `MarketPlace`. + */ + 'reference'?: string; + /** + * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `Verification`. + */ + 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } +} + +export namespace Split { + export enum TypeEnum { + Commission = 'Commission', + Default = 'Default', + MarketPlace = 'MarketPlace', + PaymentFee = 'PaymentFee', + VAT = 'VAT', + Verification = 'Verification' + } +} diff --git a/src/typings/payout/splitAmount.ts b/src/typings/payout/splitAmount.ts new file mode 100644 index 0000000..1fc399e --- /dev/null +++ b/src/typings/payout/splitAmount.ts @@ -0,0 +1,42 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class SplitAmount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + */ + 'currency'?: string; + /** + * The payable amount that can be charged for the transaction. The transaction amount needs to be represented in minor units according to the [following table](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 SplitAmount.attributeTypeMap; + } +} + diff --git a/src/typings/payout/storeDetailAndSubmitRequest.ts b/src/typings/payout/storeDetailAndSubmitRequest.ts old mode 100755 new mode 100644 index bd5f856..901356e --- a/src/typings/payout/storeDetailAndSubmitRequest.ts +++ b/src/typings/payout/storeDetailAndSubmitRequest.ts @@ -1,81 +1,180 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Address } from './address'; + */ + +import { Address } from './address'; import { Amount } from './amount'; import { BankAccount } from './bankAccount'; import { Card } from './card'; import { Name } from './name'; import { Recurring } from './recurring'; +export class StoreDetailAndSubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: object; + 'amount': Amount; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + */ + 'dateOfBirth': Date; + /** + * The type of the entity the payout is processed for. + */ + 'entityType': StoreDetailAndSubmitRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). + */ + 'nationality': string; + 'recurring': Recurring; + /** + * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + */ + 'reference': string; + /** + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + */ + 'selectedBrand'?: string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payment transaction. + */ + 'shopperReference': string; + /** + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; -export interface StoreDetailAndSubmitRequest { - /** - * This field contains additional data, which may be required for a particular request. - */ - additionalData?: any; - amount: Amount; - bank?: BankAccount; - billingAddress?: Address; - card?: Card; - /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. - */ - dateOfBirth: Date; - /** - * The type of the entity the payout is processed for. - */ - entityType: StoreDetailAndSubmitRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). - */ - nationality: string; - recurring: Recurring; - /** - * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. - */ - reference: string; - /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. - */ - selectedBrand?: string; - /** - * The shopper's email address. - */ - shopperEmail: string; - shopperName?: Name; - /** - * The shopper's reference for the payment transaction. - */ - shopperReference: string; - /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "StoreDetailAndSubmitRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailAndSubmitRequest.attributeTypeMap; + } } + export namespace StoreDetailAndSubmitRequest { - export type EntityTypeEnum = 'NaturalPerson' | 'Company'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - Company: 'Company' as EntityTypeEnum - }; -} \ No newline at end of file + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payout/storeDetailAndSubmitResponse.ts b/src/typings/payout/storeDetailAndSubmitResponse.ts old mode 100755 new mode 100644 index f47d7ab..1853f13 --- a/src/typings/payout/storeDetailAndSubmitResponse.ts +++ b/src/typings/payout/storeDetailAndSubmitResponse.ts @@ -1,30 +1,60 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface StoreDetailAndSubmitResponse { + +export class StoreDetailAndSubmitResponse { /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: any; + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: object; /** - * A new reference to uniquely identify this request. - */ - pspReference: string; + * A new reference to uniquely identify this request. + */ + 'pspReference': string; /** - * In case of refusal, an informational message for the reason. - */ - refusalReason?: string; + * In case of refusal, an informational message for the reason. + */ + 'refusalReason'?: string; /** - * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. - */ - resultCode: string; -} \ No newline at end of file + * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailAndSubmitResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payout/storeDetailRequest.ts b/src/typings/payout/storeDetailRequest.ts old mode 100755 new mode 100644 index d59f936..85c38e9 --- a/src/typings/payout/storeDetailRequest.ts +++ b/src/typings/payout/storeDetailRequest.ts @@ -1,71 +1,155 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Address } from './address'; + */ + +import { Address } from './address'; import { BankAccount } from './bankAccount'; import { Card } from './card'; import { Name } from './name'; import { Recurring } from './recurring'; +export class StoreDetailRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: object; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + */ + 'dateOfBirth': Date; + /** + * The type of the entity the payout is processed for. + */ + 'entityType': StoreDetailRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). + */ + 'nationality': string; + 'recurring': Recurring; + /** + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + */ + 'selectedBrand'?: string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payment transaction. + */ + 'shopperReference': string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; -export interface StoreDetailRequest { - /** - * This field contains additional data, which may be required for a particular request. - */ - additionalData?: any; - bank?: BankAccount; - billingAddress?: Address; - card?: Card; - /** - * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. - */ - dateOfBirth: Date; - /** - * The type of the entity the payout is processed for. - */ - entityType: StoreDetailRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). - */ - nationality: string; - recurring: Recurring; - /** - * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. - */ - selectedBrand?: string; - /** - * The shopper's email address. - */ - shopperEmail: string; - shopperName?: Name; - /** - * The shopper's reference for the payment transaction. - */ - shopperReference: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "StoreDetailRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailRequest.attributeTypeMap; + } } + export namespace StoreDetailRequest { - export type EntityTypeEnum = 'NaturalPerson' | 'Company'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - Company: 'Company' as EntityTypeEnum - }; -} \ No newline at end of file + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payout/storeDetailResponse.ts b/src/typings/payout/storeDetailResponse.ts old mode 100755 new mode 100644 index ce899b9..a5250aa --- a/src/typings/payout/storeDetailResponse.ts +++ b/src/typings/payout/storeDetailResponse.ts @@ -1,30 +1,60 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface StoreDetailResponse { + +export class StoreDetailResponse { /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: any; + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: object; /** - * A new reference to uniquely identify this request. - */ - pspReference: string; + * A new reference to uniquely identify this request. + */ + 'pspReference': string; /** - * The token which you can use later on for submitting the payout. - */ - recurringDetailReference: string; + * The token which you can use later on for submitting the payout. + */ + 'recurringDetailReference': string; /** - * The result code of the transaction. `Success` indicates that the details were stored successfully. - */ - resultCode: string; -} \ No newline at end of file + * The result code of the transaction. `Success` indicates that the details were stored successfully. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payout/submitRequest.ts b/src/typings/payout/submitRequest.ts old mode 100755 new mode 100644 index af5c965..0baaca6 --- a/src/typings/payout/submitRequest.ts +++ b/src/typings/payout/submitRequest.ts @@ -1,75 +1,159 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Amount } from './amount'; + */ + +import { Amount } from './amount'; import { Name } from './name'; import { Recurring } from './recurring'; +export class SubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: object; + 'amount': Amount; + /** + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + */ + 'dateOfBirth'?: Date; + /** + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + */ + 'entityType'?: SubmitRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier you want to process the transaction request with. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). > This field is required to update the existing nationality that is associated with this recurring contract. + */ + 'nationality'?: string; + 'recurring': Recurring; + /** + * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + */ + 'reference': string; + /** + * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + */ + 'selectedRecurringDetailReference': string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payout transaction. + */ + 'shopperReference': string; + /** + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; -export interface SubmitRequest { - /** - * This field contains additional data, which may be required for a particular request. - */ - additionalData?: any; - amount: Amount; - /** - * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. - */ - dateOfBirth?: Date; - /** - * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. - */ - entityType?: SubmitRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; - /** - * The merchant account identifier you want to process the transaction request with. - */ - merchantAccount: string; - /** - * The shopper's nationality. A valid value is an ISO 2-character country code (e.g. 'NL'). > This field is required to update the existing nationality that is associated with this recurring contract. - */ - nationality?: string; - recurring: Recurring; - /** - * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. - */ - reference: string; - /** - * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. - */ - selectedRecurringDetailReference: string; - /** - * The shopper's email address. - */ - shopperEmail: string; - shopperName?: Name; - /** - * The shopper's reference for the payout transaction. - */ - shopperReference: string; - /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "SubmitRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "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": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubmitRequest.attributeTypeMap; + } } + export namespace SubmitRequest { - export type EntityTypeEnum = 'NaturalPerson' | 'Company'; - export const EntityTypeEnum = { - NaturalPerson: 'NaturalPerson' as EntityTypeEnum, - Company: 'Company' as EntityTypeEnum - }; -} \ No newline at end of file + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payout/submitResponse.ts b/src/typings/payout/submitResponse.ts old mode 100755 new mode 100644 index be3fd01..620f344 --- a/src/typings/payout/submitResponse.ts +++ b/src/typings/payout/submitResponse.ts @@ -1,30 +1,60 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface SubmitResponse { + +export class SubmitResponse { /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: any; + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: object; /** - * A new reference to uniquely identify this request. - */ - pspReference: string; + * A new reference to uniquely identify this request. + */ + 'pspReference': string; /** - * In case of refusal, an informational message for the reason. - */ - refusalReason?: string; + * In case of refusal, an informational message for the reason. + */ + 'refusalReason'?: string; /** - * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. - */ - resultCode: string; -} \ No newline at end of file + * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubmitResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payout/threeDS2RequestData.ts b/src/typings/payout/threeDS2RequestData.ts new file mode 100644 index 0000000..2b37b7c --- /dev/null +++ b/src/typings/payout/threeDS2RequestData.ts @@ -0,0 +1,233 @@ +/** + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). + * + * The version of the OpenAPI document: 51 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; + +export class ThreeDS2RequestData { + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerBIN'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerMerchantID'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only), and not the payment authorisation. + */ + 'authenticationOnly'?: boolean; + /** + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + */ + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; + /** + * The environment of the shopper. Allowed values: * `app` * `browser` + */ + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions; + /** + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + */ + 'mcc'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + */ + 'merchantName'?: string; + /** + * The `messageVersion` value indicating the 3D Secure 2 protocol version. + */ + 'messageVersion'?: string; + /** + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + */ + 'notificationURL'?: string; + /** + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkAppID'?: string; + /** + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkEncData'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey; + /** + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + */ + 'sdkMaxTimeout'?: number; + /** + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkReferenceNumber'?: string; + /** + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkTransID'?: string; + /** + * Completion indicator for the device fingerprinting. + */ + 'threeDSCompInd'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorID'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorName'?: string; + /** + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + */ + 'threeDSRequestorURL'?: string; + /** + * Identify the type of the transaction being authenticated. + */ + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; + /** + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + */ + 'whiteListStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } +} + +export namespace ThreeDS2RequestData { + export enum ChallengeIndicatorEnum { + NoPreference = 'noPreference', + RequestNoChallenge = 'requestNoChallenge', + RequestChallenge = 'requestChallenge', + RequestChallengeAsMandate = 'requestChallengeAsMandate' + } + export enum TransactionTypeEnum { + GoodsOrServicePurchase = 'goodsOrServicePurchase', + CheckAcceptance = 'checkAcceptance', + AccountFunding = 'accountFunding', + QuasiCashTransaction = 'quasiCashTransaction', + PrepaidActivationAndLoad = 'prepaidActivationAndLoad' + } +} diff --git a/src/typings/payout/threeDSecureData.ts b/src/typings/payout/threeDSecureData.ts old mode 100755 new mode 100644 index fc90cc7..d1dd278 --- a/src/typings/payout/threeDSecureData.ts +++ b/src/typings/payout/threeDSecureData.ts @@ -1,54 +1,114 @@ /** - * Adyen Payout Service - * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Third-party payouts](https://docs.adyen.com/features/third-party-payouts). + * Adyen Payout API + * A set of API endpoints that allow you to store payout details, confirm, or decline a payout. For more information, refer to [Online payouts](https://docs.adyen.com/checkout/online-payouts). * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 51 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface ThreeDSecureData { + +export class ThreeDSecureData { /** - * The authentication response if the shopper was redirected. - */ - authenticationResponse?: ThreeDSecureData.AuthenticationResponseEnum; + * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, set this value to **Y**. + */ + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; /** - * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - */ - cavv?: string; + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + 'cavv'?: string; /** - * The CAVV algorithm used. - */ - cavvAlgorithm?: string; + * The CAVV algorithm used. Include this only for 3D Secure 1. + */ + 'cavvAlgorithm'?: string; /** - * The enrollment response from the 3D directory server. - */ - directoryResponse?: ThreeDSecureData.DirectoryResponseEnum; + * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`. The possible values are **A** or **Y** for a frictionless flow, or **C** for a challenge flow. + */ + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; /** - * The electronic commerce indicator. - */ - eci?: string; + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + */ + 'dsTransID'?: string; /** - * The transaction identifier (base64 encoded, 20 bytes in a decoded form). - */ - xid?: string; + * The electronic commerce indicator. + */ + 'eci'?: string; + /** + * The version of the 3D Secure protocol. + */ + 'threeDSVersion'?: string; + /** + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } } + export namespace ThreeDSecureData { - export type AuthenticationResponseEnum = 'Y' | 'N' | 'U' | 'A'; - export const AuthenticationResponseEnum = { - Y: 'Y' as AuthenticationResponseEnum, - N: 'N' as AuthenticationResponseEnum, - U: 'U' as AuthenticationResponseEnum, - A: 'A' as AuthenticationResponseEnum - }; - export type DirectoryResponseEnum = 'Y' | 'N' | 'U' | 'E'; - export const DirectoryResponseEnum = { - Y: 'Y' as DirectoryResponseEnum, - N: 'N' as DirectoryResponseEnum, - U: 'U' as DirectoryResponseEnum, - E: 'E' as DirectoryResponseEnum - }; -} \ No newline at end of file + export enum AuthenticationResponseEnum { + Y = 'Y', + N = 'N', + U = 'U', + A = 'A' + } + export enum DirectoryResponseEnum { + A = 'A', + C = 'C', + D = 'D', + I = 'I', + N = 'N', + R = 'R', + U = 'U', + Y = 'Y' + } +} diff --git a/src/typings/recurring/address.ts b/src/typings/recurring/address.ts old mode 100755 new mode 100644 index ffbc060..120a753 --- a/src/typings/recurring/address.ts +++ b/src/typings/recurring/address.ts @@ -1,38 +1,78 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Address { + +export class Address { /** - * The name of the city. >Required if either houseNumberOrName, street, postalCode, or stateOrProvince are provided. - */ - city?: string; + * The name of the city. + */ + 'city': string; /** - * The two-character country code of the address. The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). > If you don't know the country or are not collecting the country from the shopper, provide `countryCode` as `ZZ`. - */ - country: string; + * The two-character country code as defined in ISO-3166-1 alpha-2. 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; /** - * The number or name of the house. - */ - houseNumberOrName?: string; + * The number or name of the house. + */ + 'houseNumberOrName': string; /** - * The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. - */ - postalCode?: string; + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; /** - * The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either houseNumberOrName, street, city, or postalCode are provided. - */ - stateOrProvince?: string; + * State or province codes as defined in ISO 3166-2. For example, **SF** in US or **ON** for Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; /** - * The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either houseNumberOrName, city, postalCode, or stateOrProvince are provided. - */ - street?: string; -} \ No newline at end of file + * The name of the street. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': 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": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/bankAccount.ts b/src/typings/recurring/bankAccount.ts old mode 100755 new mode 100644 index d9ac076..441f330 --- a/src/typings/recurring/bankAccount.ts +++ b/src/typings/recurring/bankAccount.ts @@ -1,50 +1,105 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface BankAccount { + +export class BankAccount { /** - * The bank account number (without separators). - */ - bankAccountNumber?: string; + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; /** - * The bank city. - */ - bankCity?: string; + * The bank city. + */ + 'bankCity'?: string; /** - * The location id of the bank. The field value is `nil` in most cases. - */ - bankLocationId?: string; + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; /** - * The name of the bank. - */ - bankName?: string; + * The name of the bank. + */ + 'bankName'?: string; /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - */ - bic?: string; + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + */ + 'bic'?: string; /** - * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. 'NL'). - */ - countryCode?: string; + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - */ - iban?: string; + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; /** - * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - */ - ownerName?: string; + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * χ12 is converted to ch12. * üA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. + */ + 'ownerName'?: string; /** - * The bank account holder's tax ID. - */ - taxId?: string; -} \ No newline at end of file + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/card.ts b/src/typings/recurring/card.ts old mode 100755 new mode 100644 index d075a4b..ddd9cff --- a/src/typings/recurring/card.ts +++ b/src/typings/recurring/card.ts @@ -1,46 +1,96 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Card { + +export class Card { /** - * The [card verification code](https://docs.adyen.com/payments-essentials/payment-glossary#card_security_code_cvc_cvv_cid_) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. - */ - cvc?: string; + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + */ + 'cvc'?: string; /** - * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - */ - expiryMonth: string; + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; /** - * The card expiry year. Format: 4 digits. For example: 2020 - */ - expiryYear: string; + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; /** - * The name of the cardholder, as printed on the card. - */ - holderName: string; + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; /** - * The issue number of the card (for some UK debit cards only). - */ - issueNumber?: string; + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; /** - * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. - */ - number: string; + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + */ + 'number': string; /** - * The month component of the start date (for some UK debit cards only). - */ - startMonth?: string; + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; /** - * The year component of the start date (for some UK debit cards only). - */ - startYear?: string; -} \ No newline at end of file + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/disableRequest.ts b/src/typings/recurring/disableRequest.ts old mode 100755 new mode 100644 index d49fbac..860edec --- a/src/typings/recurring/disableRequest.ts +++ b/src/typings/recurring/disableRequest.ts @@ -1,30 +1,60 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface DisableRequest { + +export class DisableRequest { /** - * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT - */ - contract?: string; + * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT + */ + 'contract'?: string; /** - * The merchant account identifier with which you want to process the transaction. - */ - merchantAccount: string; + * The merchant account identifier with which you want to process the transaction. + */ + 'merchantAccount': string; /** - * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. - */ - recurringDetailReference?: string; + * The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details. + */ + 'recurringDetailReference'?: string; /** - * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. - */ - shopperReference: string; -} \ No newline at end of file + * The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + */ + 'shopperReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DisableRequest.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/disableResult.ts b/src/typings/recurring/disableResult.ts old mode 100755 new mode 100644 index 24644ec..037aa5f --- a/src/typings/recurring/disableResult.ts +++ b/src/typings/recurring/disableResult.ts @@ -1,18 +1,33 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface DisableResult { + +export class DisableResult { /** - * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. - */ - response?: string; -} \ No newline at end of file + * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. + */ + 'response'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "response", + "baseName": "response", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DisableResult.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/name.ts b/src/typings/recurring/name.ts old mode 100755 new mode 100644 index 974f1f6..8046d00 --- a/src/typings/recurring/name.ts +++ b/src/typings/recurring/name.ts @@ -1,38 +1,67 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Name { + +export class Name { /** - * The first name. - */ - firstName: string; + * The first name. + */ + 'firstName': string; /** - * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. - */ - gender: Name.GenderEnum; + * The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + 'gender': Name.GenderEnum; /** - * The name's infix, if applicable. >A maximum length of twenty (20) characters is imposed. - */ - infix?: string; + * The name\'s infix, if applicable. >A maximum length of twenty (20) characters is imposed. + */ + 'infix'?: string; /** - * The last name. - */ - lastName: string; + * The 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": "gender", + "baseName": "gender", + "type": "Name.GenderEnum" + }, + { + "name": "infix", + "baseName": "infix", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } } + export namespace Name { - export type GenderEnum = 'MALE' | 'FEMALE' | 'UNKNOWN'; - export const GenderEnum = { - MALE: 'MALE' as GenderEnum, - FEMALE: 'FEMALE' as GenderEnum, - UNKNOWN: 'UNKNOWN' as GenderEnum - }; -} \ No newline at end of file + export enum GenderEnum { + MALE = 'MALE', + FEMALE = 'FEMALE', + UNKNOWN = 'UNKNOWN' + } +} diff --git a/src/typings/recurring/recurring.ts b/src/typings/recurring/recurring.ts old mode 100755 new mode 100644 index 7a50841..e367928 --- a/src/typings/recurring/recurring.ts +++ b/src/typings/recurring/recurring.ts @@ -1,39 +1,80 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ -export interface Recurring { + +export class Recurring { /** - * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-essentials/payment-glossary#card_security_code_cvc_cvv_cid_). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-essentials/payment-glossary#card_not_present_cnp_). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/features/third-party-payouts). - */ - contract?: Recurring.ContractEnum; + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; /** - * The name of the token service. - */ - tokenService?: Recurring.TokenServiceEnum; + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } + export namespace Recurring { - export type ContractEnum = 'ONECLICK' | 'RECURRING' | 'PAYOUT'; - export const ContractEnum = { - ONECLICK: 'ONECLICK' as ContractEnum, - RECURRING: 'RECURRING' as ContractEnum, - PAYOUT: 'PAYOUT' as ContractEnum - }; - export type TokenServiceEnum = 'VISATOKENSERVICE' | 'MCTOKENSERVICE'; - export const TokenServiceEnum = { - VISATOKENSERVICE: 'VISATOKENSERVICE' as TokenServiceEnum, - MCTOKENSERVICE: 'MCTOKENSERVICE' as TokenServiceEnum - }; -} \ No newline at end of file + export enum ContractEnum { + ONECLICK = 'ONECLICK', + RECURRING = 'RECURRING', + PAYOUT = 'PAYOUT' + } + export enum TokenServiceEnum { + VISATOKENSERVICE = 'VISATOKENSERVICE', + MCTOKENSERVICE = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/recurring/recurringDetail.ts b/src/typings/recurring/recurringDetail.ts old mode 100755 new mode 100644 index 77b0461..4cb077d --- a/src/typings/recurring/recurringDetail.ts +++ b/src/typings/recurring/recurringDetail.ts @@ -1,66 +1,151 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Address } from './address'; + */ + +import { Address } from './address'; import { BankAccount } from './bankAccount'; import { Card } from './card'; import { Name } from './name'; +export class RecurringDetail { + /** + * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: object; + /** + * The alias of the credit card number. Applies only to recurring contracts storing credit card details + */ + 'alias'?: string; + /** + * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. + */ + 'aliasType'?: string; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * Types of recurring contracts. + */ + 'contractTypes'?: Array; + /** + * The date when the recurring details were created. + */ + 'creationDate'?: Date; + /** + * The `pspReference` of the first recurring payment that created the recurring detail. + */ + 'firstPspReference'?: string; + /** + * An optional descriptive name for this recurring detail. + */ + 'name'?: string; + /** + * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/api-reference/common-api/paymentmethodvariant). + */ + 'paymentMethodVariant'?: string; + /** + * The reference that uniquely identifies the recurring detail. + */ + 'recurringDetailReference': string; + 'shopperName'?: Name; + /** + * A shopper\'s social security number (only in countries where it is legal to collect). + */ + 'socialSecurityNumber'?: string; + /** + * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". + */ + 'variant': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "contractTypes", + "baseName": "contractTypes", + "type": "Array" + }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, + { + "name": "firstPspReference", + "baseName": "firstPspReference", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "variant", + "baseName": "variant", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetail.attributeTypeMap; + } +} -export interface RecurringDetail { - /** - * This field contains additional data, which may be returned in a particular response. The additionalData object consists of entries, each of which includes the key and value. For more information on possible key-value pairs, refer to [RecurringDetail.additionalData](https://docs.adyen.com/api-reference/recurring-api#recurringdetailadditionaldata). - */ - additionalData?: any; - /** - * The alias of the credit card number. Applies only to recurring contracts storing credit card details - */ - alias?: string; - /** - * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. - */ - aliasType?: string; - bank?: BankAccount; - billingAddress?: Address; - card?: Card; - /** - * Types of recurring contracts. - */ - contractTypes?: string[]; - /** - * The date when the recurring details were created. - */ - creationDate?: Date; - /** - * The `pspReference` of the first recurring payment that created the recurring detail. - */ - firstPspReference?: string; - /** - * An optional descriptive name for this recurring detail. - */ - name?: string; - /** - * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/api-reference/common-api/paymentmethodvariant). - */ - paymentMethodVariant?: string; - /** - * The reference that uniquely identifies the recurring detail. - */ - recurringDetailReference: string; - shopperName?: Name; - /** - * A shopper's social security number (only in countries where it is legal to collect). - */ - socialSecurityNumber?: string; - /** - * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". - */ - variant: string; -} \ No newline at end of file diff --git a/src/typings/recurring/recurringDetailsRequest.ts b/src/typings/recurring/recurringDetailsRequest.ts old mode 100755 new mode 100644 index a200fd3..3107e5b --- a/src/typings/recurring/recurringDetailsRequest.ts +++ b/src/typings/recurring/recurringDetailsRequest.ts @@ -1,24 +1,49 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { Recurring } from './recurring'; + */ +import { Recurring } from './recurring'; -export interface RecurringDetailsRequest { +export class RecurringDetailsRequest { /** - * The merchant account identifier you want to process the (transaction) request with. - */ - merchantAccount: string; - recurring?: Recurring; + * The merchant account identifier you want to process the (transaction) request with. + */ + 'merchantAccount': string; + 'recurring'?: Recurring; /** - * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). - */ - shopperReference: string; -} \ No newline at end of file + * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + */ + 'shopperReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetailsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/recurringDetailsResult.ts b/src/typings/recurring/recurringDetailsResult.ts old mode 100755 new mode 100644 index f09fb49..70f6c74 --- a/src/typings/recurring/recurringDetailsResult.ts +++ b/src/typings/recurring/recurringDetailsResult.ts @@ -1,31 +1,61 @@ /** - * Adyen Recurring Service - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/features/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v30/disable ``` + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` * - * OpenAPI spec version: 30 + * The version of the OpenAPI document: 49 * Contact: support@adyen.com * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. - */import { RecurringDetail } from './recurringDetail'; + */ +import { RecurringDetail } from './recurringDetail'; -export interface RecurringDetailsResult { +export class RecurringDetailsResult { /** - * The date when the recurring details were created. - */ - creationDate?: Date; + * The date when the recurring details were created. + */ + 'creationDate'?: Date; /** - * Payment details stored for recurring payments. - */ - details?: RecurringDetail[]; + * Payment details stored for recurring payments. + */ + 'details'?: Array; /** - * The most recent email for this shopper (if available). - */ - lastKnownShopperEmail?: string; + * The most recent email for this shopper (if available). + */ + 'lastKnownShopperEmail'?: string; /** - * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). - */ - shopperReference?: string; -} \ No newline at end of file + * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "lastKnownShopperEmail", + "baseName": "lastKnownShopperEmail", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetailsResult.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/scheduleAccountUpdaterRequest.ts b/src/typings/recurring/scheduleAccountUpdaterRequest.ts new file mode 100644 index 0000000..a32c9a9 --- /dev/null +++ b/src/typings/recurring/scheduleAccountUpdaterRequest.ts @@ -0,0 +1,76 @@ +/** + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` + * + * The version of the OpenAPI document: 49 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { Card } from './card'; + +export class ScheduleAccountUpdaterRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: object; + 'card'?: Card; + /** + * Account of the merchant. + */ + 'merchantAccount': string; + /** + * A reference that merchants can apply for the call. + */ + 'reference': string; + /** + * The selected detail recurring reference. Optional if `card` is provided. + */ + 'selectedRecurringDetailReference'?: string; + /** + * The reference of the shopper that owns the recurring contract. Optional if `card` is provided. + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "object" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ScheduleAccountUpdaterRequest.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/scheduleAccountUpdaterResult.ts b/src/typings/recurring/scheduleAccountUpdaterResult.ts new file mode 100644 index 0000000..41ca0a3 --- /dev/null +++ b/src/typings/recurring/scheduleAccountUpdaterResult.ts @@ -0,0 +1,42 @@ +/** + * Adyen Recurring API + * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/checkout/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/user-management/how-to-get-the-web-service-ws-user-password). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` + * + * The version of the OpenAPI document: 49 + * Contact: support@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export class ScheduleAccountUpdaterResult { + /** + * Adyen\'s 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference': string; + /** + * The result of scheduling an Account Updater. If scheduling was successful, this field returns **Success**; otherwise it contains the error message. + */ + 'result': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "result", + "baseName": "result", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ScheduleAccountUpdaterResult.attributeTypeMap; + } +} + diff --git a/tsconfig.json b/tsconfig.json index a217ce2..3c02bce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,8 @@ "resolveJsonModule": true, "forceConsistentCasingInFileNames": true, "strict": true, - "noUnusedLocals": true + "noUnusedLocals": true, + "suppressImplicitAnyIndexErrors": true }, "include": ["src"], "exclude": ["node_modules"] diff --git a/yarn.lock b/yarn.lock index 83a2447..bf3fd67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,19 +16,19 @@ dependencies: "@babel/highlight" "^7.0.0" -"@babel/core@7.6.4": - version "7.6.4" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.6.4.tgz#6ebd9fe00925f6c3e177bb726a188b5f578088ff" - integrity sha512-Rm0HGw101GY8FTzpWSyRbki/jzq+/PkNQJ+nSulrdY6gFGOsNseCqD6KHRYe2E+EdzuBdr2pxCp6s4Uk6eJ+XQ== +"@babel/core@7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.2.tgz#ea5b99693bcfc058116f42fa1dd54da412b29d91" + integrity sha512-eeD7VEZKfhK1KUXGiyPFettgF3m513f8FoBSWiQ1xTvl1RAopLs42Wp9+Ze911I6H0N9lNqJMDgoZT7gHsipeQ== dependencies: "@babel/code-frame" "^7.5.5" - "@babel/generator" "^7.6.4" - "@babel/helpers" "^7.6.2" - "@babel/parser" "^7.6.4" - "@babel/template" "^7.6.0" - "@babel/traverse" "^7.6.3" - "@babel/types" "^7.6.3" - convert-source-map "^1.1.0" + "@babel/generator" "^7.7.2" + "@babel/helpers" "^7.7.0" + "@babel/parser" "^7.7.2" + "@babel/template" "^7.7.0" + "@babel/traverse" "^7.7.2" + "@babel/types" "^7.7.2" + convert-source-map "^1.7.0" debug "^4.1.0" json5 "^2.1.0" lodash "^4.17.13" @@ -78,32 +78,22 @@ source-map "^0.5.0" trim-right "^1.0.1" -"@babel/generator@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.6.2.tgz#dac8a3c2df118334c2a29ff3446da1636a8f8c03" - integrity sha512-j8iHaIW4gGPnViaIHI7e9t/Hl8qLjERI6DcV9kEpAIDJsAOrcnXqRS7t+QbhL76pwbtqP+QCQLL0z1CyVmtjjQ== +"@babel/generator@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.0.tgz#c6d4d1f7a0d6e139cbd01aca73170b0bff5425b4" + integrity sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw== dependencies: - "@babel/types" "^7.6.0" + "@babel/types" "^7.7.0" jsesc "^2.5.1" lodash "^4.17.13" source-map "^0.5.0" -"@babel/generator@^7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.6.3.tgz#71d5375264f93ec7bac7d9f35a67067733f5578e" - integrity sha512-hLhYbAb3pHwxjlijC4AQ7mqZdcoujiNaW7izCT04CIowHK8psN0IN8QjDv0iyFtycF5FowUOTwDloIheI25aMw== +"@babel/generator@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.2.tgz#2f4852d04131a5e17ea4f6645488b5da66ebf3af" + integrity sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ== dependencies: - "@babel/types" "^7.6.3" - jsesc "^2.5.1" - lodash "^4.17.13" - source-map "^0.6.1" - -"@babel/generator@^7.6.4": - version "7.6.4" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.6.4.tgz#a4f8437287bf9671b07f483b76e3bb731bc97671" - integrity sha512-jsBuXkFoZxk0yWLyGI9llT9oiQ2FeTASmRFE32U+aaDTfoE92t78eroO7PTpU/OrYq38hlcDM6vbfLDaOLy+7w== - dependencies: - "@babel/types" "^7.6.3" + "@babel/types" "^7.7.2" jsesc "^2.5.1" lodash "^4.17.13" source-map "^0.5.0" @@ -115,6 +105,13 @@ dependencies: "@babel/types" "^7.0.0" +"@babel/helper-annotate-as-pure@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.0.tgz#efc54032d43891fe267679e63f6860aa7dbf4a5e" + integrity sha512-k50CQxMlYTYo+GGyUGFwpxKVtxVJi9yh61sXZji3zYHccK9RYliZGSTOgci85T+r+0VFN2nWbGM04PIqwfrpMg== + dependencies: + "@babel/types" "^7.7.0" + "@babel/helper-builder-binary-assignment-operator-visitor@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz#6b69628dfe4087798e0c4ed98e3d4a6b2fbd2f5f" @@ -132,37 +129,33 @@ "@babel/traverse" "^7.4.4" "@babel/types" "^7.4.4" -"@babel/helper-create-class-features-plugin@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.5.5.tgz#401f302c8ddbc0edd36f7c6b2887d8fa1122e5a4" - integrity sha512-ZsxkyYiRA7Bg+ZTRpPvB6AbOFKTFFK4LrvTet8lInm0V468MWCaSYJE+I7v2z2r8KNLtYiV+K5kTCnR7dvyZjg== +"@babel/helper-create-class-features-plugin@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.7.0.tgz#bcdc223abbfdd386f94196ae2544987f8df775e8" + integrity sha512-MZiB5qvTWoyiFOgootmRSDV1udjIqJW/8lmxgzKq6oDqxdmHUjeP2ZUOmgHdYjmUVNABqRrHjYAYRvj8Eox/UA== dependencies: - "@babel/helper-function-name" "^7.1.0" - "@babel/helper-member-expression-to-functions" "^7.5.5" - "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-function-name" "^7.7.0" + "@babel/helper-member-expression-to-functions" "^7.7.0" + "@babel/helper-optimise-call-expression" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-replace-supers" "^7.5.5" - "@babel/helper-split-export-declaration" "^7.4.4" + "@babel/helper-replace-supers" "^7.7.0" + "@babel/helper-split-export-declaration" "^7.7.0" -"@babel/helper-create-class-features-plugin@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.6.0.tgz#769711acca889be371e9bc2eb68641d55218021f" - integrity sha512-O1QWBko4fzGju6VoVvrZg0RROCVifcLxiApnGP3OWfWzvxRZFCoBD81K5ur5e3bVY2Vf/5rIJm8cqPKn8HUJng== +"@babel/helper-create-regexp-features-plugin@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.0.tgz#2e8badfe201cfafb5d930f46cf1e0b6f1cdcab23" + integrity sha512-ZhagAAVGD3L6MPM9/zZi7RRteonfBFLVUz3kjsnYsMAtr9hOJCKI9BAKIMpqn3NyWicPieoX779UL+7/3BEAOA== dependencies: - "@babel/helper-function-name" "^7.1.0" - "@babel/helper-member-expression-to-functions" "^7.5.5" - "@babel/helper-optimise-call-expression" "^7.0.0" - "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-replace-supers" "^7.5.5" - "@babel/helper-split-export-declaration" "^7.4.4" + "@babel/helper-regex" "^7.4.4" + regexpu-core "^4.6.0" -"@babel/helper-define-map@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.5.5.tgz#3dec32c2046f37e09b28c93eb0b103fd2a25d369" - integrity sha512-fTfxx7i0B5NJqvUOBBGREnrqbTxRh7zinBANpZXAVDlsZxYdclDp467G1sQ8VZYMnAURY3RpBUAgOYT9GfzHBg== +"@babel/helper-define-map@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.7.0.tgz#60b0e9fd60def9de5054c38afde8c8ee409c7529" + integrity sha512-kPKWPb0dMpZi+ov1hJiwse9dWweZsz3V9rP4KdytnX1E7z3cTNmFGglwklzFPuqIcHLIY3bgKSs4vkwXXdflQA== dependencies: - "@babel/helper-function-name" "^7.1.0" - "@babel/types" "^7.5.5" + "@babel/helper-function-name" "^7.7.0" + "@babel/types" "^7.7.0" lodash "^4.17.13" "@babel/helper-explode-assignable-expression@^7.1.0": @@ -182,6 +175,15 @@ "@babel/template" "^7.1.0" "@babel/types" "^7.0.0" +"@babel/helper-function-name@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.7.0.tgz#44a5ad151cfff8ed2599c91682dda2ec2c8430a3" + integrity sha512-tDsJgMUAP00Ugv8O2aGEua5I2apkaQO7lBGUq1ocwN3G23JE5Dcq0uh3GvFTChPa4b40AWiAsLvCZOA2rdnQ7Q== + dependencies: + "@babel/helper-get-function-arity" "^7.7.0" + "@babel/template" "^7.7.0" + "@babel/types" "^7.7.0" + "@babel/helper-get-function-arity@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3" @@ -189,6 +191,13 @@ dependencies: "@babel/types" "^7.0.0" +"@babel/helper-get-function-arity@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.0.tgz#c604886bc97287a1d1398092bc666bc3d7d7aa2d" + integrity sha512-tLdojOTz4vWcEnHWHCuPN5P85JLZWbm5Fx5ZsMEMPhF3Uoe3O7awrbM2nQ04bDOUToH/2tH/ezKEOR8zEYzqyw== + dependencies: + "@babel/types" "^7.7.0" + "@babel/helper-hoist-variables@^7.4.4": version "7.4.4" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.4.tgz#0298b5f25c8c09c53102d52ac4a98f773eb2850a" @@ -196,6 +205,13 @@ dependencies: "@babel/types" "^7.4.4" +"@babel/helper-hoist-variables@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.0.tgz#b4552e4cfe5577d7de7b183e193e84e4ec538c81" + integrity sha512-LUe/92NqsDAkJjjCEWkNe+/PcpnisvnqdlRe19FahVapa4jndeuJ+FBiTX1rcAKWKcJGE+C3Q3tuEuxkSmCEiQ== + dependencies: + "@babel/types" "^7.7.0" + "@babel/helper-member-expression-to-functions@^7.5.5": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.5.5.tgz#1fb5b8ec4453a93c439ee9fe3aeea4a84b76b590" @@ -203,6 +219,13 @@ dependencies: "@babel/types" "^7.5.5" +"@babel/helper-member-expression-to-functions@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.0.tgz#472b93003a57071f95a541ea6c2b098398bcad8a" + integrity sha512-QaCZLO2RtBcmvO/ekOLp8p7R5X2JriKRizeDpm5ChATAFWrrYDcDxPuCIBXKyBjY+i1vYSdcUTMIb8psfxHDPA== + dependencies: + "@babel/types" "^7.7.0" + "@babel/helper-module-imports@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d" @@ -210,7 +233,14 @@ dependencies: "@babel/types" "^7.0.0" -"@babel/helper-module-transforms@^7.1.0", "@babel/helper-module-transforms@^7.4.4": +"@babel/helper-module-imports@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.7.0.tgz#99c095889466e5f7b6d66d98dffc58baaf42654d" + integrity sha512-Dv3hLKIC1jyfTkClvyEkYP2OlkzNvWs5+Q8WgPbxM5LMeorons7iPP91JM+DU7tRbhqA1ZeooPaMFvQrn23RHw== + dependencies: + "@babel/types" "^7.7.0" + +"@babel/helper-module-transforms@^7.1.0": version "7.4.4" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.4.4.tgz#96115ea42a2f139e619e98ed46df6019b94414b8" integrity sha512-3Z1yp8TVQf+B4ynN7WoHPKS8EkdTbgAEy0nU0rs/1Kw4pDgmvYH3rz3aI11KgxKCba2cn7N+tqzV1mY2HMN96w== @@ -222,6 +252,18 @@ "@babel/types" "^7.4.4" lodash "^4.17.11" +"@babel/helper-module-transforms@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.7.0.tgz#154a69f0c5b8fd4d39e49750ff7ac4faa3f36786" + integrity sha512-rXEefBuheUYQyX4WjV19tuknrJFwyKw0HgzRwbkyTbB+Dshlq7eqkWbyjzToLrMZk/5wKVKdWFluiAsVkHXvuQ== + dependencies: + "@babel/helper-module-imports" "^7.7.0" + "@babel/helper-simple-access" "^7.7.0" + "@babel/helper-split-export-declaration" "^7.7.0" + "@babel/template" "^7.7.0" + "@babel/types" "^7.7.0" + lodash "^4.17.13" + "@babel/helper-optimise-call-expression@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz#a2920c5702b073c15de51106200aa8cad20497d5" @@ -229,6 +271,13 @@ dependencies: "@babel/types" "^7.0.0" +"@babel/helper-optimise-call-expression@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.0.tgz#4f66a216116a66164135dc618c5d8b7a959f9365" + integrity sha512-48TeqmbazjNU/65niiiJIJRc5JozB8acui1OS7bSd6PgxfuovWsvjfWSzlgx+gPFdVveNzUdpdIg5l56Pl5jqg== + dependencies: + "@babel/types" "^7.7.0" + "@babel/helper-plugin-utils@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz#bbb3fbee98661c569034237cc03967ba99b4f250" @@ -241,16 +290,16 @@ dependencies: lodash "^4.17.11" -"@babel/helper-remap-async-to-generator@^7.1.0": - version "7.1.0" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz#361d80821b6f38da75bd3f0785ece20a88c5fe7f" - integrity sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg== +"@babel/helper-remap-async-to-generator@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.0.tgz#4d69ec653e8bff5bce62f5d33fc1508f223c75a7" + integrity sha512-pHx7RN8X0UNHPB/fnuDnRXVZ316ZigkO8y8D835JlZ2SSdFKb6yH9MIYRU4fy/KPe5sPHDFOPvf8QLdbAGGiyw== dependencies: - "@babel/helper-annotate-as-pure" "^7.0.0" - "@babel/helper-wrap-function" "^7.1.0" - "@babel/template" "^7.1.0" - "@babel/traverse" "^7.1.0" - "@babel/types" "^7.0.0" + "@babel/helper-annotate-as-pure" "^7.7.0" + "@babel/helper-wrap-function" "^7.7.0" + "@babel/template" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" "@babel/helper-replace-supers@^7.5.5": version "7.5.5" @@ -262,6 +311,16 @@ "@babel/traverse" "^7.5.5" "@babel/types" "^7.5.5" +"@babel/helper-replace-supers@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.7.0.tgz#d5365c8667fe7cbd13b8ddddceb9bd7f2b387512" + integrity sha512-5ALYEul5V8xNdxEeWvRsBzLMxQksT7MaStpxjJf9KsnLxpAKBtfw5NeMKZJSYDa0lKdOcy0g+JT/f5mPSulUgg== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.7.0" + "@babel/helper-optimise-call-expression" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" + "@babel/helper-simple-access@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz#65eeb954c8c245beaa4e859da6188f39d71e585c" @@ -270,6 +329,14 @@ "@babel/template" "^7.1.0" "@babel/types" "^7.0.0" +"@babel/helper-simple-access@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.7.0.tgz#97a8b6c52105d76031b86237dc1852b44837243d" + integrity sha512-AJ7IZD7Eem3zZRuj5JtzFAptBw7pMlS3y8Qv09vaBWoFsle0d1kAn5Wq6Q9MyBXITPOKnxwkZKoAm4bopmv26g== + dependencies: + "@babel/template" "^7.7.0" + "@babel/types" "^7.7.0" + "@babel/helper-split-export-declaration@^7.4.4": version "7.4.4" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz#ff94894a340be78f53f06af038b205c49d993677" @@ -277,15 +344,22 @@ dependencies: "@babel/types" "^7.4.4" -"@babel/helper-wrap-function@^7.1.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz#c4e0012445769e2815b55296ead43a958549f6fa" - integrity sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ== +"@babel/helper-split-export-declaration@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.0.tgz#1365e74ea6c614deeb56ebffabd71006a0eb2300" + integrity sha512-HgYSI8rH08neWlAH3CcdkFg9qX9YsZysZI5GD8LjhQib/mM0jGOZOVkoUiiV2Hu978fRtjtsGsW6w0pKHUWtqA== dependencies: - "@babel/helper-function-name" "^7.1.0" - "@babel/template" "^7.1.0" - "@babel/traverse" "^7.1.0" - "@babel/types" "^7.2.0" + "@babel/types" "^7.7.0" + +"@babel/helper-wrap-function@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.7.0.tgz#15af3d3e98f8417a60554acbb6c14e75e0b33b74" + integrity sha512-sd4QjeMgQqzshSjecZjOp8uKfUtnpmCyQhKQrVJBBgeHAB/0FPi33h3AbVlVp07qQtMD4QgYSzaMI7VwncNK/w== + dependencies: + "@babel/helper-function-name" "^7.7.0" + "@babel/template" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" "@babel/helpers@^7.5.0": version "7.5.1" @@ -296,14 +370,14 @@ "@babel/traverse" "^7.5.0" "@babel/types" "^7.5.0" -"@babel/helpers@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.6.2.tgz#681ffe489ea4dcc55f23ce469e58e59c1c045153" - integrity sha512-3/bAUL8zZxYs1cdX2ilEE0WobqbCmKWr/889lf2SS0PpDcpEIY8pb1CCyz0pEcX3pEb+MCbks1jIokz2xLtGTA== +"@babel/helpers@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.7.0.tgz#359bb5ac3b4726f7c1fde0ec75f64b3f4275d60b" + integrity sha512-VnNwL4YOhbejHb7x/b5F39Zdg5vIQpUUNzJwx0ww1EcVRt41bbGRZWhAURrfY32T5zTT3qwNOQFWpn+P0i0a2g== dependencies: - "@babel/template" "^7.6.0" - "@babel/traverse" "^7.6.2" - "@babel/types" "^7.6.0" + "@babel/template" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" "@babel/highlight@^7.0.0": version "7.5.0" @@ -324,47 +398,37 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.5.5.tgz#02f077ac8817d3df4a832ef59de67565e71cca4b" integrity sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g== -"@babel/parser@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.6.0.tgz#3e05d0647432a8326cb28d0de03895ae5a57f39b" - integrity sha512-+o2q111WEx4srBs7L9eJmcwi655eD8sXniLqMB93TBK9GrNzGrxDWSjiqz2hLU0Ha8MTXFIP0yd9fNdP+m43ZQ== +"@babel/parser@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.0.tgz#232618f6e8947bc54b407fa1f1c91a22758e7159" + integrity sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ== -"@babel/parser@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.6.2.tgz#205e9c95e16ba3b8b96090677a67c9d6075b70a1" - integrity sha512-mdFqWrSPCmikBoaBYMuBulzTIKuXVPtEISFbRRVNwMWpCms/hmE2kRq0bblUHaNRKrjRlmVbx1sDHmjmRgD2Xg== +"@babel/parser@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.2.tgz#ea8334dc77416bfd9473eb470fd00d8245b3943b" + integrity sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w== -"@babel/parser@^7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.6.3.tgz#9eff8b9c3eeae16a74d8d4ff30da2bd0d6f0487e" - integrity sha512-sUZdXlva1dt2Vw2RqbMkmfoImubO0D0gaCrNngV6Hi0DA4x3o4mlrq0tbfY0dZEUIccH8I6wQ4qgEtwcpOR6Qg== - -"@babel/parser@^7.6.4": - version "7.6.4" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.6.4.tgz#cb9b36a7482110282d5cb6dd424ec9262b473d81" - integrity sha512-D8RHPW5qd0Vbyo3qb+YjO5nvUVRTXFLQ/FsDxJU2Nqz4uB5EnUN0ZQSEYpvTIbRuttig1XbHWU5oMeQwQSAA+A== - -"@babel/plugin-proposal-async-generator-functions@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e" - integrity sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ== +"@babel/plugin-proposal-async-generator-functions@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.0.tgz#83ef2d6044496b4c15d8b4904e2219e6dccc6971" + integrity sha512-ot/EZVvf3mXtZq0Pd0+tSOfGWMizqmOohXmNZg6LNFjHOV+wOPv7BvVYh8oPR8LhpIP3ye8nNooKL50YRWxpYA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-remap-async-to-generator" "^7.1.0" + "@babel/helper-remap-async-to-generator" "^7.7.0" "@babel/plugin-syntax-async-generators" "^7.2.0" -"@babel/plugin-proposal-class-properties@7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.5.5.tgz#a974cfae1e37c3110e71f3c6a2e48b8e71958cd4" - integrity sha512-AF79FsnWFxjlaosgdi421vmYG6/jg79bVD0dpD44QdgobzHKuLZ6S3vl8la9qIeSwGi8i1fS0O1mfuDAAdo1/A== +"@babel/plugin-proposal-class-properties@7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.7.0.tgz#ac54e728ecf81d90e8f4d2a9c05a890457107917" + integrity sha512-tufDcFA1Vj+eWvwHN+jvMN6QsV5o+vUlytNKrbMiCeDL0F2j92RURzUsUMWE5EJkLyWxjdUslCsMQa9FWth16A== dependencies: - "@babel/helper-create-class-features-plugin" "^7.5.5" + "@babel/helper-create-class-features-plugin" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-proposal-dynamic-import@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz#e532202db4838723691b10a67b8ce509e397c506" - integrity sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw== +"@babel/plugin-proposal-dynamic-import@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.0.tgz#dc02a8bad8d653fb59daf085516fa416edd2aa7f" + integrity sha512-7poL3Xi+QFPC7sGAzEIbXUyYzGJwbc2+gSD0AkiC5k52kH2cqHdqxm5hNFfLW3cRSTcx9bN0Fl7/6zWcLLnKAQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-dynamic-import" "^7.2.0" @@ -393,14 +457,13 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" -"@babel/plugin-proposal-unicode-property-regex@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.6.2.tgz#05413762894f41bfe42b9a5e80919bd575dcc802" - integrity sha512-NxHETdmpeSCtiatMRYWVJo7266rrvAC3DTeG5exQBIH/fMIUK7ejDNznBbn3HQl/o9peymRRg7Yqkx6PdUXmMw== +"@babel/plugin-proposal-unicode-property-regex@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.0.tgz#549fe1717a1bd0a2a7e63163841cb37e78179d5d" + integrity sha512-mk34H+hp7kRBWJOOAR0ZMGCydgKMD4iN9TpDRp3IIcbunltxEY89XSimc6WbtSLCDrwcdy/EEw7h5CFCzxTchw== dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-regex" "^7.4.4" - regexpu-core "^4.6.0" "@babel/plugin-syntax-async-generators@^7.2.0": version "7.2.0" @@ -437,6 +500,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" +"@babel/plugin-syntax-top-level-await@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.0.tgz#f5699549f50bbe8d12b1843a4e82f0a37bb65f4d" + integrity sha512-hi8FUNiFIY1fnUI2n1ViB1DR0R4QeK4iHcTlW6aJkrPoTdb8Rf1EMQ6GT3f67DDkYyWgew9DFoOZ6gOoEsdzTA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-typescript@^7.2.0": version "7.3.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.3.3.tgz#a7cc3f66119a9f7ebe2de5383cce193473d65991" @@ -451,14 +521,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-async-to-generator@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz#89a3848a0166623b5bc481164b5936ab947e887e" - integrity sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg== +"@babel/plugin-transform-async-to-generator@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.0.tgz#e2b84f11952cf5913fe3438b7d2585042772f492" + integrity sha512-vLI2EFLVvRBL3d8roAMqtVY0Bm9C1QzLkdS57hiKrjUBSqsQYrBsMCeOg/0KK7B0eK9V71J5mWcha9yyoI2tZw== dependencies: - "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-module-imports" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-remap-async-to-generator" "^7.1.0" + "@babel/helper-remap-async-to-generator" "^7.7.0" "@babel/plugin-transform-block-scoped-functions@^7.2.0": version "7.2.0" @@ -475,18 +545,18 @@ "@babel/helper-plugin-utils" "^7.0.0" lodash "^4.17.13" -"@babel/plugin-transform-classes@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.5.5.tgz#d094299d9bd680a14a2a0edae38305ad60fb4de9" - integrity sha512-U2htCNK/6e9K7jGyJ++1p5XRU+LJjrwtoiVn9SzRlDT2KubcZ11OOwy3s24TjHxPgxNwonCYP7U2K51uVYCMDg== +"@babel/plugin-transform-classes@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.0.tgz#b411ecc1b8822d24b81e5d184f24149136eddd4a" + integrity sha512-/b3cKIZwGeUesZheU9jNYcwrEA7f/Bo4IdPmvp7oHgvks2majB5BoT5byAql44fiNQYOPzhk2w8DbgfuafkMoA== dependencies: - "@babel/helper-annotate-as-pure" "^7.0.0" - "@babel/helper-define-map" "^7.5.5" - "@babel/helper-function-name" "^7.1.0" - "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-annotate-as-pure" "^7.7.0" + "@babel/helper-define-map" "^7.7.0" + "@babel/helper-function-name" "^7.7.0" + "@babel/helper-optimise-call-expression" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-replace-supers" "^7.5.5" - "@babel/helper-split-export-declaration" "^7.4.4" + "@babel/helper-replace-supers" "^7.7.0" + "@babel/helper-split-export-declaration" "^7.7.0" globals "^11.1.0" "@babel/plugin-transform-computed-properties@^7.2.0": @@ -503,14 +573,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-dotall-regex@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.6.2.tgz#44abb948b88f0199a627024e1508acaf8dc9b2f9" - integrity sha512-KGKT9aqKV+9YMZSkowzYoYEiHqgaDhGmPNZlZxX6UeHC4z30nC1J9IrZuGqbYFB1jaIGdv91ujpze0exiVK8bA== +"@babel/plugin-transform-dotall-regex@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.0.tgz#c5c9ecacab3a5e0c11db6981610f0c32fd698b3b" + integrity sha512-3QQlF7hSBnSuM1hQ0pS3pmAbWLax/uGNCbPBND9y+oJ4Y776jsyujG2k0Sn2Aj2a0QwVOiOFL5QVPA7spjvzSA== dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-regex" "^7.4.4" - regexpu-core "^4.6.0" "@babel/plugin-transform-duplicate-keys@^7.5.0": version "7.5.0" @@ -534,12 +603,12 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-function-name@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.4.tgz#e1436116abb0610c2259094848754ac5230922ad" - integrity sha512-iU9pv7U+2jC9ANQkKeNF6DrPy4GBa4NWQtl6dHB4Pb3izX2JOEvDTFarlNsBj/63ZEzNNIAMs3Qw4fNCcSOXJA== +"@babel/plugin-transform-function-name@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.0.tgz#0fa786f1eef52e3b7d4fc02e54b2129de8a04c2a" + integrity sha512-P5HKu0d9+CzZxP5jcrWdpe7ZlFDe24bmqP6a6X8BHEBl/eizAsY8K6LX8LASZL0Jxdjm5eEfzp+FIrxCm/p8bA== dependencies: - "@babel/helper-function-name" "^7.1.0" + "@babel/helper-function-name" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-transform-literals@^7.2.0": @@ -565,39 +634,39 @@ "@babel/helper-plugin-utils" "^7.0.0" babel-plugin-dynamic-import-node "^2.3.0" -"@babel/plugin-transform-modules-commonjs@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.6.0.tgz#39dfe957de4420445f1fcf88b68a2e4aa4515486" - integrity sha512-Ma93Ix95PNSEngqomy5LSBMAQvYKVe3dy+JlVJSHEXZR5ASL9lQBedMiCyVtmTLraIDVRE3ZjTZvmXXD2Ozw3g== +"@babel/plugin-transform-modules-commonjs@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.0.tgz#3e5ffb4fd8c947feede69cbe24c9554ab4113fe3" + integrity sha512-KEMyWNNWnjOom8vR/1+d+Ocz/mILZG/eyHHO06OuBQ2aNhxT62fr4y6fGOplRx+CxCSp3IFwesL8WdINfY/3kg== dependencies: - "@babel/helper-module-transforms" "^7.4.4" + "@babel/helper-module-transforms" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-simple-access" "^7.1.0" + "@babel/helper-simple-access" "^7.7.0" babel-plugin-dynamic-import-node "^2.3.0" -"@babel/plugin-transform-modules-systemjs@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz#e75266a13ef94202db2a0620977756f51d52d249" - integrity sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg== +"@babel/plugin-transform-modules-systemjs@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.0.tgz#9baf471213af9761c1617bb12fd278e629041417" + integrity sha512-ZAuFgYjJzDNv77AjXRqzQGlQl4HdUM6j296ee4fwKVZfhDR9LAGxfvXjBkb06gNETPnN0sLqRm9Gxg4wZH6dXg== dependencies: - "@babel/helper-hoist-variables" "^7.4.4" + "@babel/helper-hoist-variables" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" babel-plugin-dynamic-import-node "^2.3.0" -"@babel/plugin-transform-modules-umd@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz#7678ce75169f0877b8eb2235538c074268dd01ae" - integrity sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw== +"@babel/plugin-transform-modules-umd@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.0.tgz#d62c7da16670908e1d8c68ca0b5d4c0097b69966" + integrity sha512-u7eBA03zmUswQ9LQ7Qw0/ieC1pcAkbp5OQatbWUzY1PaBccvuJXUkYzoN1g7cqp7dbTu6Dp9bXyalBvD04AANA== dependencies: - "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-module-transforms" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-named-capturing-groups-regex@^7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.6.3.tgz#aaa6e409dd4fb2e50b6e2a91f7e3a3149dbce0cf" - integrity sha512-jTkk7/uE6H2s5w6VlMHeWuH+Pcy2lmdwFoeWCVnvIrDUnB5gQqTVI8WfmEAhF2CDEarGrknZcmSFg1+bkfCoSw== +"@babel/plugin-transform-named-capturing-groups-regex@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.0.tgz#358e6fd869b9a4d8f5cbc79e4ed4fc340e60dcaf" + integrity sha512-+SicSJoKouPctL+j1pqktRVCgy+xAch1hWWTMy13j0IflnyNjaoskj+DwRQFimHbLqO3sq2oN2CXMvXq3Bgapg== dependencies: - regexpu-core "^4.6.0" + "@babel/helper-create-regexp-features-plugin" "^7.7.0" "@babel/plugin-transform-new-target@^7.4.4": version "7.4.4" @@ -630,10 +699,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-regenerator@^7.4.5": - version "7.4.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.5.tgz#629dc82512c55cee01341fb27bdfcb210354680f" - integrity sha512-gBKRh5qAaCWntnd09S8QC7r3auLCqq5DI6O0DlfoyDjslSBVqBibrMdsqO+Uhmx3+BlOmE/Kw1HFxmGbv0N9dA== +"@babel/plugin-transform-regenerator@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.0.tgz#f1b20b535e7716b622c99e989259d7dd942dd9cc" + integrity sha512-AXmvnC+0wuj/cFkkS/HFHIojxH3ffSXE+ttulrqWjZZRaUOonfJc60e1wSNT4rV8tIunvu/R3wCp71/tLAa9xg== dependencies: regenerator-transform "^0.14.0" @@ -691,92 +760,92 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-typescript@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.6.0.tgz#48d78405f1aa856ebeea7288a48a19ed8da377a6" - integrity sha512-yzw7EopOOr6saONZ3KA3lpizKnWRTe+rfBqg4AmQbSow7ik7fqmzrfIqt053osLwLE2AaTqGinLM2tl6+M/uog== +"@babel/plugin-transform-typescript@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.2.tgz#eb9f14c516b5d36f4d6f3a9d7badae6d0fc313d4" + integrity sha512-UWhDaJRqdPUtdK1s0sKYdoRuqK0NepjZto2UZltvuCgMoMZmdjhgz5hcRokie/3aYEaSz3xvusyoayVaq4PjRg== dependencies: - "@babel/helper-create-class-features-plugin" "^7.6.0" + "@babel/helper-create-class-features-plugin" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-typescript" "^7.2.0" -"@babel/plugin-transform-unicode-regex@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.6.2.tgz#b692aad888a7e8d8b1b214be6b9dc03d5031f698" - integrity sha512-orZI6cWlR3nk2YmYdb0gImrgCUwb5cBUwjf6Ks6dvNVvXERkwtJWOQaEOjPiu0Gu1Tq6Yq/hruCZZOOi9F34Dw== +"@babel/plugin-transform-unicode-regex@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.0.tgz#743d9bcc44080e3cc7d49259a066efa30f9187a3" + integrity sha512-RrThb0gdrNwFAqEAAx9OWgtx6ICK69x7i9tCnMdVrxQwSDp/Abu9DXFU5Hh16VP33Rmxh04+NGW28NsIkFvFKA== dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-regex" "^7.4.4" - regexpu-core "^4.6.0" -"@babel/preset-env@7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.6.3.tgz#9e1bf05a2e2d687036d24c40e4639dc46cef2271" - integrity sha512-CWQkn7EVnwzlOdR5NOm2+pfgSNEZmvGjOhlCHBDq0J8/EStr+G+FvPEiz9B56dR6MoiUFjXhfE4hjLoAKKJtIQ== +"@babel/preset-env@7.7.1": + version "7.7.1" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.1.tgz#04a2ff53552c5885cf1083e291c8dd5490f744bb" + integrity sha512-/93SWhi3PxcVTDpSqC+Dp4YxUu3qZ4m7I76k0w73wYfn7bGVuRIO4QUz95aJksbS+AD1/mT1Ie7rbkT0wSplaA== dependencies: - "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-module-imports" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-proposal-async-generator-functions" "^7.2.0" - "@babel/plugin-proposal-dynamic-import" "^7.5.0" + "@babel/plugin-proposal-async-generator-functions" "^7.7.0" + "@babel/plugin-proposal-dynamic-import" "^7.7.0" "@babel/plugin-proposal-json-strings" "^7.2.0" "@babel/plugin-proposal-object-rest-spread" "^7.6.2" "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" - "@babel/plugin-proposal-unicode-property-regex" "^7.6.2" + "@babel/plugin-proposal-unicode-property-regex" "^7.7.0" "@babel/plugin-syntax-async-generators" "^7.2.0" "@babel/plugin-syntax-dynamic-import" "^7.2.0" "@babel/plugin-syntax-json-strings" "^7.2.0" "@babel/plugin-syntax-object-rest-spread" "^7.2.0" "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + "@babel/plugin-syntax-top-level-await" "^7.7.0" "@babel/plugin-transform-arrow-functions" "^7.2.0" - "@babel/plugin-transform-async-to-generator" "^7.5.0" + "@babel/plugin-transform-async-to-generator" "^7.7.0" "@babel/plugin-transform-block-scoped-functions" "^7.2.0" "@babel/plugin-transform-block-scoping" "^7.6.3" - "@babel/plugin-transform-classes" "^7.5.5" + "@babel/plugin-transform-classes" "^7.7.0" "@babel/plugin-transform-computed-properties" "^7.2.0" "@babel/plugin-transform-destructuring" "^7.6.0" - "@babel/plugin-transform-dotall-regex" "^7.6.2" + "@babel/plugin-transform-dotall-regex" "^7.7.0" "@babel/plugin-transform-duplicate-keys" "^7.5.0" "@babel/plugin-transform-exponentiation-operator" "^7.2.0" "@babel/plugin-transform-for-of" "^7.4.4" - "@babel/plugin-transform-function-name" "^7.4.4" + "@babel/plugin-transform-function-name" "^7.7.0" "@babel/plugin-transform-literals" "^7.2.0" "@babel/plugin-transform-member-expression-literals" "^7.2.0" "@babel/plugin-transform-modules-amd" "^7.5.0" - "@babel/plugin-transform-modules-commonjs" "^7.6.0" - "@babel/plugin-transform-modules-systemjs" "^7.5.0" - "@babel/plugin-transform-modules-umd" "^7.2.0" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.6.3" + "@babel/plugin-transform-modules-commonjs" "^7.7.0" + "@babel/plugin-transform-modules-systemjs" "^7.7.0" + "@babel/plugin-transform-modules-umd" "^7.7.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.7.0" "@babel/plugin-transform-new-target" "^7.4.4" "@babel/plugin-transform-object-super" "^7.5.5" "@babel/plugin-transform-parameters" "^7.4.4" "@babel/plugin-transform-property-literals" "^7.2.0" - "@babel/plugin-transform-regenerator" "^7.4.5" + "@babel/plugin-transform-regenerator" "^7.7.0" "@babel/plugin-transform-reserved-words" "^7.2.0" "@babel/plugin-transform-shorthand-properties" "^7.2.0" "@babel/plugin-transform-spread" "^7.6.2" "@babel/plugin-transform-sticky-regex" "^7.2.0" "@babel/plugin-transform-template-literals" "^7.4.4" "@babel/plugin-transform-typeof-symbol" "^7.2.0" - "@babel/plugin-transform-unicode-regex" "^7.6.2" - "@babel/types" "^7.6.3" + "@babel/plugin-transform-unicode-regex" "^7.7.0" + "@babel/types" "^7.7.1" browserslist "^4.6.0" core-js-compat "^3.1.1" invariant "^2.2.2" js-levenshtein "^1.1.3" semver "^5.5.0" -"@babel/preset-typescript@7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.6.0.tgz#25768cb8830280baf47c45ab1a519a9977498c98" - integrity sha512-4xKw3tTcCm0qApyT6PqM9qniseCE79xGHiUnNdKGdxNsGUc2X7WwZybqIpnTmoukg3nhPceI5KPNzNqLNeIJww== +"@babel/preset-typescript@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.7.2.tgz#f71c8bba2ae02f11b29dbf7d6a35f47bbe011632" + integrity sha512-1B4HthAelaLGfNRyrWqJtBEjXX1ulThCrLQ5B2VOtEAznWFIFXFJahgXImqppy66lx/Oh+cOSCQdJzZqh2Jh5g== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-transform-typescript" "^7.6.0" + "@babel/plugin-transform-typescript" "^7.7.2" -"@babel/runtime@7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.6.3.tgz#935122c74c73d2240cafd32ddb5fc2a6cd35cf1f" - integrity sha512-kq6anf9JGjW8Nt5rYfEuGRaEAaH1mkv3Bbu6rYvLOpPh/RusSJXuKPEAoZ7L7gybZkchE8+NV5g9vKF4AGAtsA== +"@babel/runtime@7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.2.tgz#111a78002a5c25fc8e3361bedc9529c696b85a6a" + integrity sha512-JONRbXbTXc9WQE2mAZd1p0Z3DZ/6vaQIkgYMSTP3KjRCyd7rCZCcfhCyX+YjwcKxcZ82UrxbRD358bpExNgrjw== dependencies: regenerator-runtime "^0.13.2" @@ -789,14 +858,14 @@ "@babel/parser" "^7.4.4" "@babel/types" "^7.4.4" -"@babel/template@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.6.0.tgz#7f0159c7f5012230dad64cca42ec9bdb5c9536e6" - integrity sha512-5AEH2EXD8euCk446b7edmgFdub/qfH1SN6Nii3+fyXP807QRx9Q73A2N5hNwRRslC2H9sNzaFhsPubkS4L8oNQ== +"@babel/template@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.0.tgz#4fadc1b8e734d97f56de39c77de76f2562e597d0" + integrity sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ== dependencies: "@babel/code-frame" "^7.0.0" - "@babel/parser" "^7.6.0" - "@babel/types" "^7.6.0" + "@babel/parser" "^7.7.0" + "@babel/types" "^7.7.0" "@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.0": version "7.5.0" @@ -828,37 +897,37 @@ globals "^11.1.0" lodash "^4.17.13" -"@babel/traverse@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.6.2.tgz#b0e2bfd401d339ce0e6c05690206d1e11502ce2c" - integrity sha512-8fRE76xNwNttVEF2TwxJDGBLWthUkHWSldmfuBzVRmEDWOtu4XdINTgN7TDWzuLg4bbeIMLvfMFD9we5YcWkRQ== +"@babel/traverse@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.7.0.tgz#9f5744346b8d10097fd2ec2eeffcaf19813cbfaf" + integrity sha512-ea/3wRZc//e/uwCpuBX2itrhI0U9l7+FsrKWyKGNyvWbuMcCG7ATKY2VI4wlg2b2TA39HHwIxnvmXvtiKsyn7w== dependencies: "@babel/code-frame" "^7.5.5" - "@babel/generator" "^7.6.2" - "@babel/helper-function-name" "^7.1.0" - "@babel/helper-split-export-declaration" "^7.4.4" - "@babel/parser" "^7.6.2" - "@babel/types" "^7.6.0" + "@babel/generator" "^7.7.0" + "@babel/helper-function-name" "^7.7.0" + "@babel/helper-split-export-declaration" "^7.7.0" + "@babel/parser" "^7.7.0" + "@babel/types" "^7.7.0" debug "^4.1.0" globals "^11.1.0" lodash "^4.17.13" -"@babel/traverse@^7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.6.3.tgz#66d7dba146b086703c0fb10dd588b7364cec47f9" - integrity sha512-unn7P4LGsijIxaAJo/wpoU11zN+2IaClkQAxcJWBNCMS6cmVh802IyLHNkAjQ0iYnRS3nnxk5O3fuXW28IMxTw== +"@babel/traverse@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.7.2.tgz#ef0a65e07a2f3c550967366b3d9b62a2dcbeae09" + integrity sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw== dependencies: "@babel/code-frame" "^7.5.5" - "@babel/generator" "^7.6.3" - "@babel/helper-function-name" "^7.1.0" - "@babel/helper-split-export-declaration" "^7.4.4" - "@babel/parser" "^7.6.3" - "@babel/types" "^7.6.3" + "@babel/generator" "^7.7.2" + "@babel/helper-function-name" "^7.7.0" + "@babel/helper-split-export-declaration" "^7.7.0" + "@babel/parser" "^7.7.2" + "@babel/types" "^7.7.2" debug "^4.1.0" globals "^11.1.0" lodash "^4.17.13" -"@babel/types@^7.0.0", "@babel/types@^7.2.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.5.0": +"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.5.0": version "7.5.0" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.5.0.tgz#e47d43840c2e7f9105bc4d3a2c371b4d0c7832ab" integrity sha512-UFpDVqRABKsW01bvw7/wSUe56uy6RXM5+VJibVVAybDGxEW25jdwiFJEf7ASvSaC7sN7rbE/l3cLp2izav+CtQ== @@ -876,19 +945,28 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" -"@babel/types@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.6.0.tgz#1b5eaad0736e963bd2c6cf7911a53c84a7b35c08" - integrity sha512-+wLIp3XW60cvkZP/pvKMM85qoJbx7Hn3tNUpkGBLsGaSEYRz8Ut389/UsSa+wSBwSchtsLJm5IsqlA5sXawqew== +"@babel/types@^7.7.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.0.tgz#bdf5967277ced7590da452c31d60853d0beb5d4f" + integrity sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ== dependencies: esutils "^2.0.2" lodash "^4.17.13" to-fast-properties "^2.0.0" -"@babel/types@^7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.6.3.tgz#3f07d96f854f98e2fbd45c64b0cb942d11e8ba09" - integrity sha512-CqbcpTxMcpuQTMhjI37ZHVgjBkysg5icREQIEZ0eG1yCNwg3oy+5AaLiOKmjsCj6nqOsa6Hf0ObjRVwokb7srA== +"@babel/types@^7.7.1": + version "7.7.1" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.1.tgz#8b08ea368f2baff236613512cf67109e76285827" + integrity sha512-kN/XdANDab9x1z5gcjDc9ePpxexkt+1EQ2MQUiM4XnMvQfvp87/+6kY4Ko2maLXH+tei/DgJ/ybFITeqqRwDiA== + dependencies: + esutils "^2.0.2" + lodash "^4.17.13" + to-fast-properties "^2.0.0" + +"@babel/types@^7.7.2": + version "7.7.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.2.tgz#550b82e5571dcd174af576e23f0adba7ffc683f7" + integrity sha512-YTf6PXoh3+eZgRCBzzP25Bugd2ngmpQVrk7kXX0i5N9BO7TFBtIgZYs7WtxtOGs8e6A4ZI7ECkbBCEHeXocvOA== dependencies: esutils "^2.0.2" lodash "^4.17.13" @@ -1225,17 +1303,12 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest-diff@*": - version "20.0.1" - resolved "https://registry.yarnpkg.com/@types/jest-diff/-/jest-diff-20.0.1.tgz#35cc15b9c4f30a18ef21852e255fdb02f6d59b89" - integrity sha512-yALhelO3i0hqZwhjtcr6dYyaLoCHbAMshwtj6cGxTvHZAKXHsYGdff6E8EPw3xLKY0ELUTQ69Q1rQiJENnccMA== - -"@types/jest@24.0.21": - version "24.0.21" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.21.tgz#2c0a25440e025bb265f4a17d8b79b11b231426bf" - integrity sha512-uyqFvx78Tuy0h5iLCPWRCvi5HhWwEqhIj30doitp191oYLqlCxUyAJHdWVm5+Nr271/vPnkyt6rWeEIjGowBTg== +"@types/jest@^24.0.23": + version "24.0.23" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.23.tgz#046f8e2ade026fe831623e361a36b6fb9a4463e4" + integrity sha512-L7MBvwfNpe7yVPTXLn32df/EK+AMBFAFvZrRuArGs7npEWnlziUXK+5GMIUTI4NIuwok3XibsjXCs5HxviYXjg== dependencies: - "@types/jest-diff" "*" + jest-diff "^24.3.0" "@types/json-schema@^7.0.3": version "7.0.3" @@ -1259,10 +1332,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.8.tgz#e469b4bf9d1c9832aee4907ba8a051494357c12c" integrity sha512-aX+gFgA5GHcDi89KG5keey2zf0WfZk/HAQotEamsK2kbey+8yGKcson0hbK8E+v0NArlCJQCqMP161YhV6ZXLg== -"@types/node@11.15.0": - version "11.15.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.0.tgz#1a0974a5bfdf5eee1b85945790a03bcea2f63fa5" - integrity sha512-JRq4kw1GQZrF90YRrp3C1kIoioAEj9PweNF2Qgp/6XZYVgXPl7OWKdggFNtRxlBPyl40Fz/bOhCnXuKMFaJ06w== +"@types/node@11.15.2": + version "11.15.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.2.tgz#998b9cacc5f26e441d8396340818fde8e08aada5" + integrity sha512-BqCU9uIFkUH9Sgo2uLYbmIiFB1T+VBiM8AI/El3LIAI5KzwtckeSG+3WOYZr9aMoX4UIvRFBWBeSaOu6hFue2Q== "@types/stack-utils@^1.0.1": version "1.0.1" @@ -1281,46 +1354,48 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.6.0.tgz#e82ed43fc4527b21bfe35c20a2d6e4ed49fc7957" - integrity sha512-iCcXREU4RciLmLniwKLRPCOFVXrkF7z27XuHq5DrykpREv/mz6ztKAyLg2fdkM0hQC7659p5ZF5uStH7uzAJ/w== +"@typescript-eslint/eslint-plugin@2.8.0": + version "2.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.8.0.tgz#eca584d46094ebebc3cb3e9fb625bfbc904a534d" + integrity sha512-ohqul5s6XEB0AzPWZCuJF5Fd6qC0b4+l5BGEnrlpmvXxvyymb8yw8Bs4YMF8usNAeuCJK87eFIHy8g8GFvOtGA== dependencies: - "@typescript-eslint/experimental-utils" "2.6.0" - eslint-utils "^1.4.2" + "@typescript-eslint/experimental-utils" "2.8.0" + eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" - regexpp "^2.0.1" + regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.0.tgz#ed70bef72822bff54031ff0615fc888b9e2b6e8a" - integrity sha512-34BAFpNOwHXeqT+AvdalLxOvcPYnCxA5JGmBAFL64RGMdP0u65rXjii7l/nwpgk5aLEE1LaqF+SsCU0/Cb64xA== +"@typescript-eslint/experimental-utils@2.8.0": + version "2.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.8.0.tgz#208b4164d175587e9b03ce6fea97d55f19c30ca9" + integrity sha512-jZ05E4SxCbbXseQGXOKf3ESKcsGxT8Ucpkp1jiVp55MGhOvZB2twmWKf894PAuVQTCgbPbJz9ZbRDqtUWzP8xA== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.6.0" + "@typescript-eslint/typescript-estree" "2.8.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.6.0.tgz#5106295c6a7056287b4719e24aae8d6293d5af49" - integrity sha512-AvLejMmkcjRTJ2KD72v565W4slSrrzUIzkReu1JN34b8JnsEsxx7S9Xx/qXEuMQas0mkdUfETr0j3zOhq2DIqQ== +"@typescript-eslint/parser@2.8.0": + version "2.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.8.0.tgz#e10f7c40c8cf2fb19920c879311e6c46ad17bacb" + integrity sha512-NseXWzhkucq+JM2HgqAAoKEzGQMb5LuTRjFPLQzGIdLthXMNUfuiskbl7QSykvWW6mvzCtYbw1fYWGa2EIaekw== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.6.0" - "@typescript-eslint/typescript-estree" "2.6.0" + "@typescript-eslint/experimental-utils" "2.8.0" + "@typescript-eslint/typescript-estree" "2.8.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.6.0": - version "2.6.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.0.tgz#d3e9d8e001492e2b9124c4d4bd4e7f03c0fd7254" - integrity sha512-A3lSBVIdj2Gp0lFEL6in2eSPqJ33uAc3Ko+Y4brhjkxzjbzLnwBH22CwsW2sCo+iwogfIyvb56/AJri15H0u5Q== +"@typescript-eslint/typescript-estree@2.8.0": + version "2.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.8.0.tgz#fcc3fe6532840085d29b75432c8a59895876aeca" + integrity sha512-ksvjBDTdbAQ04cR5JyFSDX113k66FxH1tAXmi+dj6hufsl/G0eMc/f1GgLjEVPkYClDbRKv+rnBFuE5EusomUw== dependencies: debug "^4.1.1" - glob "^7.1.4" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" is-glob "^4.0.1" lodash.unescape "4.0.1" semver "^6.3.0" + tsutils "^3.17.1" "@webassemblyjs/ast@1.8.5": version "1.8.5" @@ -1919,6 +1994,11 @@ browser-resolve@^1.11.3: dependencies: resolve "1.1.7" +browser-stdout@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" + integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== + browserify-aes@^1.0.0, browserify-aes@^1.0.4: version "1.2.0" resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" @@ -1987,6 +2067,13 @@ browserslist@^4.6.0, browserslist@^4.6.2: electron-to-chromium "^1.3.164" node-releases "^1.1.23" +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + bser@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.0.tgz#65fc784bf7f87c009b973c12db6546902fa9c7b5" @@ -1999,7 +2086,7 @@ btoa-lite@^1.0.0: resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" integrity sha1-M3dm2hWAEhD92VbCLpxokaudAzc= -buffer-from@^1.0.0: +buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== @@ -2096,6 +2183,11 @@ callsites@^3.0.0: resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + camelcase@^5.0.0, camelcase@^5.3.1: version "5.3.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" @@ -2256,6 +2348,14 @@ co@^4.6.0: resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= +cobertura-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/cobertura-parse/-/cobertura-parse-1.0.5.tgz#3a8c5d30a97468496a2aabd04b8fa4fb7c3cd20e" + integrity sha512-uYJfkGhzw1wibe/8jqqHmSaPNWFguzq/IlSj83u3cSnZho/lUnfj0mLTmZGmB3AiKCOTYr22TYwpR1sXy2JEkg== + dependencies: + mocha "5.0.5" + xml2js "0.4.19" + code-point-at@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" @@ -2288,6 +2388,11 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" +commander@2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" + integrity sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ== + commander@^2.20.0, commander@~2.20.0: version "2.20.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" @@ -2354,6 +2459,13 @@ convert-source-map@^1.1.0, convert-source-map@^1.4.0: dependencies: safe-buffer "~5.1.1" +convert-source-map@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" + integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== + dependencies: + safe-buffer "~5.1.1" + copy-concurrently@^1.0.0: version "1.0.5" resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0" @@ -2400,17 +2512,17 @@ cosmiconfig@5.2.1: js-yaml "^3.13.1" parse-json "^4.0.0" -coveralls@3.0.7: - version "3.0.7" - resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.7.tgz#1eca48e47976e9573d6a2f18b97c2fea4026f34a" - integrity sha512-mUuH2MFOYB2oBaA4D4Ykqi9LaEYpMMlsiOMJOrv358yAjP6enPIk55fod2fNJ8AvwoYXStWQls37rA+s5e7boA== +coveralls@3.0.8: + version "3.0.8" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.8.tgz#3ed8f0ebdcf8a87ff3f9f4bde220b86d998ebe64" + integrity sha512-lkQlg29RhV9zwB0gDaEAWoap8xPgFxtPsVIpTNiDDtWNrvtP1/RmGJRRAV/Loz2gihmppObkSL0wnptEGUXaOQ== dependencies: - growl "~> 1.10.0" + cobertura-parse "^1.0.5" js-yaml "^3.13.1" - lcov-parse "^0.0.10" + lcov-parse "^1.0.0" log-driver "^1.2.7" minimist "^1.2.0" - request "^2.86.0" + request "^2.88.0" create-ecdh@^4.0.0: version "4.0.3" @@ -2523,6 +2635,13 @@ date-now@^0.1.4: resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= +debug@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== + dependencies: + ms "2.0.0" + debug@4.1.1, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" @@ -2680,6 +2799,11 @@ diff-sequences@^24.9.0: resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5" integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew== +diff@3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.5.0.tgz#800c0dd1e0a8bfbc95835c202ad220fe317e5a12" + integrity sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA== + diffie-hellman@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" @@ -2841,7 +2965,7 @@ es6-promisify@^5.0.0: dependencies: es6-promise "^4.0.3" -escape-string-regexp@^1.0.5: +escape-string-regexp@1.0.5, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= @@ -2874,13 +2998,6 @@ eslint-scope@^5.0.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-utils@^1.4.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.2.tgz#166a5180ef6ab7eb462f162fd0e6f2463d7309ab" - integrity sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q== - dependencies: - eslint-visitor-keys "^1.0.0" - eslint-utils@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" @@ -2888,11 +3005,6 @@ eslint-utils@^1.4.3: dependencies: eslint-visitor-keys "^1.1.0" -eslint-visitor-keys@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" - integrity sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ== - eslint-visitor-keys@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" @@ -3135,7 +3247,7 @@ fast-glob@^3.0.3: merge2 "^1.2.3" micromatch "^4.0.2" -fast-json-stable-stringify@^2.0.0: +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= @@ -3426,6 +3538,18 @@ glob-parent@^5.0.0: dependencies: is-glob "^4.0.1" +glob@7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + integrity sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.1.4" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" @@ -3438,6 +3562,18 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.6: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + global-dirs@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" @@ -3522,10 +3658,10 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.0.tgz#8d8fdc73977cb04104721cb53666c1ca64cd328b" integrity sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg== -"growl@~> 1.10.0": - version "1.10.5" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" - integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== +growl@1.10.3: + version "1.10.3" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.3.tgz#1926ba90cf3edfe2adb4927f5880bc22c66c790f" + integrity sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q== growly@^1.3.0: version "1.3.0" @@ -3556,6 +3692,11 @@ har-validator@~5.1.0: ajv "^6.5.5" har-schema "^2.0.0" +has-flag@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" + integrity sha1-6CB68cx7MNRGzHC3NLXovhj4jVE= + has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" @@ -3635,6 +3776,11 @@ hash.js@^1.0.0, hash.js@^1.0.3: inherits "^2.0.3" minimalistic-assert "^1.0.1" +he@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" + integrity sha1-k0EP0hsAlzUVH4howvJx80J+I/0= + hmac-drbg@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -4229,7 +4375,7 @@ jest-config@^24.9.0: pretty-format "^24.9.0" realpath-native "^1.1.0" -jest-diff@^24.9.0: +jest-diff@^24.3.0, jest-diff@^24.9.0: version "24.9.0" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.9.0.tgz#931b7d0d5778a1baf7452cb816e325e3724055da" integrity sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ== @@ -4640,6 +4786,13 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= +json5@2.x: + version "2.1.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.1.tgz#81b6cb04e9ba496f1c7005d07b4368a2638f90b6" + integrity sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ== + dependencies: + minimist "^1.2.0" + json5@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" @@ -4714,10 +4867,10 @@ lcid@^2.0.0: dependencies: invert-kv "^2.0.0" -lcov-parse@^0.0.10: - version "0.0.10" - resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" - integrity sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM= +lcov-parse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0" + integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A= left-pad@^1.3.0: version "1.3.0" @@ -4786,6 +4939,11 @@ lodash.get@^4.4.2: resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= +lodash.memoize@4.x: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + lodash.set@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" @@ -4880,6 +5038,11 @@ make-dir@^2.0.0, make-dir@^2.1.0: pify "^4.0.1" semver "^5.6.0" +make-error@1.x: + version "1.3.5" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.5.tgz#efe4e81f6db28cadd605c70f29c831b58ef776c8" + integrity sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g== + makeerror@1.0.x: version "1.0.11" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" @@ -5082,13 +5245,29 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@^0.5.0, mkdirp@^0.5.1: +mkdirp@0.5.1, mkdirp@0.x, mkdirp@^0.5.0, mkdirp@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= dependencies: minimist "0.0.8" +mocha@5.0.5: + version "5.0.5" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-5.0.5.tgz#e228e3386b9387a4710007a641f127b00be44b52" + integrity sha512-3MM3UjZ5p8EJrYpG7s+29HAI9G7sTzKEe4+w37Dg0QP7qL4XGsV+Q2xet2cE37AqdgN1OtYQB6Vl98YiPV3PgA== + dependencies: + browser-stdout "1.3.1" + commander "2.11.0" + debug "3.1.0" + diff "3.5.0" + escape-string-regexp "1.0.5" + glob "7.1.2" + growl "1.10.3" + he "1.1.1" + mkdirp "0.5.1" + supports-color "4.4.0" + move-concurrently@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92" @@ -5162,10 +5341,10 @@ nice-try@^1.0.4: resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== -nock@11.6.0: - version "11.6.0" - resolved "https://registry.yarnpkg.com/nock/-/nock-11.6.0.tgz#481961e0cf78794f200ea71e25d948d668446717" - integrity sha512-9ocFR68CxS6nf2XtQNpdSh5n4QQSKl87DhXgLnHO/RD4CsGThFtu8/QG6myHTnrUHRE6JSKpiGjLJdRe2ZSlIA== +nock@11.7.0: + version "11.7.0" + resolved "https://registry.yarnpkg.com/nock/-/nock-11.7.0.tgz#5eaae8b8a55c0dfc014d05692c8cf3d31d61a342" + integrity sha512-7c1jhHew74C33OBeRYyQENT+YXQiejpwIrEjinh6dRurBae+Ei4QjeUaPlkptIF0ZacEiVCnw8dWaxqepkiihg== dependencies: chai "^4.1.2" debug "^4.1.0" @@ -6011,6 +6190,11 @@ regexpp@^2.0.1: resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== +regexpp@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.0.0.tgz#dd63982ee3300e67b41c1956f850aa680d9d330e" + integrity sha512-Z+hNr7RAVWxznLPuA7DIh8UNX1j9CDrUQxskw9IrBE1Dxue2lyXT+shqEIeLUjrokxIP8CMy1WkjgG3rTsd5/g== + regexpu-core@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.6.0.tgz#2037c18b327cfce8a6fea2a4ec441f2432afb8b6" @@ -6115,7 +6299,7 @@ request-promise-native@^1.0.5: stealthy-require "^1.1.1" tough-cookie "^2.3.3" -request@^2.86.0, request@^2.87.0: +request@^2.87.0, request@^2.88.0: version "2.88.0" resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== @@ -6191,7 +6375,7 @@ resolve@1.1.7: resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= -resolve@^1.1.6: +resolve@1.x, resolve@^1.1.6: version "1.12.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== @@ -6318,7 +6502,7 @@ sane@^4.0.3: minimist "^1.1.1" walker "~1.0.5" -sax@^1.2.4: +sax@>=0.6.0, sax@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== @@ -6349,7 +6533,7 @@ semver@6.3.0, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^5.0.3: +semver@^5.0.3, semver@^5.5: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== @@ -6724,6 +6908,13 @@ strip-json-comments@~2.0.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= +supports-color@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.4.0.tgz#883f7ddabc165142b2a61427f3352ded195d1a3e" + integrity sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ== + dependencies: + has-flag "^2.0.0" + supports-color@6.1.0, supports-color@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" @@ -6936,6 +7127,22 @@ trim-right@^1.0.1: resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= +ts-jest@^24.1.0: + version "24.1.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-24.1.0.tgz#2eaa813271a2987b7e6c3fefbda196301c131734" + integrity sha512-HEGfrIEAZKfu1pkaxB9au17b1d9b56YZSqz5eCVE8mX68+5reOvlM93xGOzzCREIov9mdH7JBG+s0UyNAqr0tQ== + dependencies: + bs-logger "0.x" + buffer-from "1.x" + fast-json-stable-stringify "2.x" + json5 "2.x" + lodash.memoize "4.x" + make-error "1.x" + mkdirp "0.x" + resolve "1.x" + semver "^5.5" + yargs-parser "10.x" + ts-loader@6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.2.1.tgz#67939d5772e8a8c6bdaf6277ca023a4812da02ef" @@ -7003,10 +7210,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@3.6.4: - version "3.6.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.6.4.tgz#b18752bb3792bc1a0281335f7f6ebf1bbfc5b91d" - integrity sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg== +typescript@3.7.2: + version "3.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.2.tgz#27e489b95fa5909445e9fef5ee48d81697ad18fb" + integrity sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ== uglify-js@^3.1.4: version "3.6.0" @@ -7244,10 +7451,10 @@ webidl-conversions@^4.0.2: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== -webpack-cli@3.3.9: - version "3.3.9" - resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.9.tgz#79c27e71f94b7fe324d594ab64a8e396b9daa91a" - integrity sha512-xwnSxWl8nZtBl/AFJCOn9pG7s5CYUYdZxmmukv+fAHLcBIHM36dImfpQg3WfShZXeArkWlf6QRw24Klcsv8a5A== +webpack-cli@3.3.10: + version "3.3.10" + resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-3.3.10.tgz#17b279267e9b4fb549023fae170da8e6e766da13" + integrity sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg== dependencies: chalk "2.4.2" cross-spawn "6.0.5" @@ -7442,6 +7649,19 @@ xml-name-validator@^3.0.0: resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== +xml2js@0.4.19: + version "0.4.19" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" + integrity sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q== + dependencies: + sax ">=0.6.0" + xmlbuilder "~9.0.1" + +xmlbuilder@~9.0.1: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + integrity sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0= + xtend@^4.0.0, xtend@~4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" @@ -7462,6 +7682,13 @@ yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== +yargs-parser@10.x: + version "10.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" + integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== + dependencies: + camelcase "^4.1.0" + yargs-parser@15.0.0: version "15.0.0" resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.0.tgz#cdd7a97490ec836195f59f3f4dbe5ea9e8f75f08"