From d4891fe97d50095f9b95197d23865d24710af674 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 31 Oct 2019 09:08:51 +0200 Subject: [PATCH 01/53] Update dependency webpack-cli to v3.3.10 (#163) --- package-lock.json | 16 ++++------------ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c7ef37..4158ce2 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": { @@ -6595,14 +6595,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": { @@ -9800,9 +9792,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", diff --git a/package.json b/package.json index d3a2618..e1cd096 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "ts-loader": "6.2.1", "typescript": "3.6.4", "webpack": "4.41.2", - "webpack-cli": "3.3.9" + "webpack-cli": "3.3.10" }, "dependencies": { "https-proxy-agent": "3.0.1" diff --git a/yarn.lock b/yarn.lock index 83a2447..0a2ca2e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7244,10 +7244,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" From 5b28d9d806508aefc51470526fd10e6497cc9f1a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 31 Oct 2019 09:30:27 +0200 Subject: [PATCH 02/53] Update dependency @types/node to v11.15.2 (#162) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4158ce2..a1c705a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1472,9 +1472,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": { diff --git a/package.json b/package.json index e1cd096..38f95be 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@babel/runtime": "7.6.3", "@types/jest": "24.0.21", "@types/nock": "10.0.3", - "@types/node": "11.15.0", + "@types/node": "11.15.2", "@typescript-eslint/eslint-plugin": "2.6.0", "@typescript-eslint/parser": "2.6.0", "babel-loader": "8.0.6", diff --git a/yarn.lock b/yarn.lock index 0a2ca2e..532e94c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1259,10 +1259,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" From fbe374e394470c8fece9fcb1e51eac57a6ca2a6c Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 1 Nov 2019 11:34:35 +0200 Subject: [PATCH 03/53] Update dependency nock to v11.7.0 (#164) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index a1c705a..fc7e01f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6830,9 +6830,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", diff --git a/package.json b/package.json index 38f95be..d3e63d7 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "coveralls": "3.0.7", "eslint": "6.6.0", "jest": "24.9.0", - "nock": "11.6.0", + "nock": "11.7.0", "release-it": "12.4.3", "ts-loader": "6.2.1", "typescript": "3.6.4", diff --git a/yarn.lock b/yarn.lock index 532e94c..fc2b7d0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5162,10 +5162,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" From 2990f71d1180072e84e5e659f3020f252fcf3f69 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 5 Nov 2019 09:07:14 +0200 Subject: [PATCH 04/53] Update typescript-eslint monorepo to v2.6.1 (#165) --- package-lock.json | 35 ++++++++++++++++++----------------- package.json | 4 ++-- yarn.lock | 41 +++++++++++++++++++++-------------------- 3 files changed, 41 insertions(+), 39 deletions(-) diff --git a/package-lock.json b/package-lock.json index fc7e01f..6508bbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1499,12 +1499,12 @@ "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.6.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.6.1.tgz", + "integrity": "sha512-Z0rddsGqioKbvqfohg7BwkFC3PuNLsB+GE9QkFza7tiDzuHoy0y823Y+oGNDzxNZrYyLjqkZtCTl4vCqOmEN4g==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.6.0", + "@typescript-eslint/experimental-utils": "2.6.1", "eslint-utils": "^1.4.2", "functional-red-black-tree": "^1.0.1", "regexpp": "^2.0.1", @@ -1512,39 +1512,40 @@ } }, "@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.6.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.1.tgz", + "integrity": "sha512-EVrrUhl5yBt7fC7c62lWmriq4MIc49zpN3JmrKqfiFXPXCM5ErfEcZYfKOhZXkW6MBjFcJ5kGZqu1b+lyyExUw==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.6.0", + "@typescript-eslint/typescript-estree": "2.6.1", "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.6.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.6.1.tgz", + "integrity": "sha512-PDPkUkZ4c7yA+FWqigjwf3ngPUgoLaGjMlFh6TRtbjhqxFBnkElDfckSjm98q9cMr4xRzZ15VrS/xKm6QHYf0w==", "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.6.1", + "@typescript-eslint/typescript-estree": "2.6.1", "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.6.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.1.tgz", + "integrity": "sha512-+sTnssW6bcbDZKE8Ce7VV6LdzkQz2Bxk7jzk1J8H1rovoTxnm6iXvYIyncvNsaB/kBCOM63j/LNJfm27bNdUoA==", "dev": true, "requires": { "debug": "^4.1.1", "glob": "^7.1.4", "is-glob": "^4.0.1", "lodash.unescape": "4.0.1", - "semver": "^6.3.0" + "semver": "^6.3.0", + "tsutils": "^3.17.1" }, "dependencies": { "debug": { diff --git a/package.json b/package.json index d3e63d7..685f64a 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "@types/jest": "24.0.21", "@types/nock": "10.0.3", "@types/node": "11.15.2", - "@typescript-eslint/eslint-plugin": "2.6.0", - "@typescript-eslint/parser": "2.6.0", + "@typescript-eslint/eslint-plugin": "2.6.1", + "@typescript-eslint/parser": "2.6.1", "babel-loader": "8.0.6", "coveralls": "3.0.7", "eslint": "6.6.0", diff --git a/yarn.lock b/yarn.lock index fc2b7d0..373b9bc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1281,46 +1281,47 @@ 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.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.6.1.tgz#e34972a24f8aba0861f9ccf7130acd74fd11e079" + integrity sha512-Z0rddsGqioKbvqfohg7BwkFC3PuNLsB+GE9QkFza7tiDzuHoy0y823Y+oGNDzxNZrYyLjqkZtCTl4vCqOmEN4g== dependencies: - "@typescript-eslint/experimental-utils" "2.6.0" + "@typescript-eslint/experimental-utils" "2.6.1" eslint-utils "^1.4.2" functional-red-black-tree "^1.0.1" regexpp "^2.0.1" 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.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.1.tgz#eddaca17a399ebf93a8628923233b4f93793acfd" + integrity sha512-EVrrUhl5yBt7fC7c62lWmriq4MIc49zpN3JmrKqfiFXPXCM5ErfEcZYfKOhZXkW6MBjFcJ5kGZqu1b+lyyExUw== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.6.0" + "@typescript-eslint/typescript-estree" "2.6.1" 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.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.6.1.tgz#3c00116baa0d696bc334ca18ac5286b34793993c" + integrity sha512-PDPkUkZ4c7yA+FWqigjwf3ngPUgoLaGjMlFh6TRtbjhqxFBnkElDfckSjm98q9cMr4xRzZ15VrS/xKm6QHYf0w== 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.6.1" + "@typescript-eslint/typescript-estree" "2.6.1" 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.6.1": + version "2.6.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.1.tgz#fb363dd4ca23384745c5ea4b7f4c867432b00d31" + integrity sha512-+sTnssW6bcbDZKE8Ce7VV6LdzkQz2Bxk7jzk1J8H1rovoTxnm6iXvYIyncvNsaB/kBCOM63j/LNJfm27bNdUoA== dependencies: debug "^4.1.1" glob "^7.1.4" 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" From b8062f7a94aac64716b554528c5cc05225a76a82 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 5 Nov 2019 13:16:08 +0200 Subject: [PATCH 05/53] Update babel monorepo to v7.7.0 (#166) --- package-lock.json | 1519 ++++++++++++++++++++++++++++++++++++--------- package.json | 10 +- yarn.lock | 548 ++++++++-------- 3 files changed, 1533 insertions(+), 544 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6508bbd..c63780c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,18 +14,18 @@ } }, "@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.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.0.tgz", + "integrity": "sha512-Bb1NjZCaiwTQC/ARL+MwDpgocdnwWDCaugvkGt6cxfBzQa8Whv1JybBoUEiBDKl8Ni3H3c7Fykwk7QChUsHRlg==", "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", + "@babel/generator": "^7.7.0", + "@babel/helpers": "^7.7.0", + "@babel/parser": "^7.7.0", + "@babel/template": "^7.7.0", + "@babel/traverse": "^7.7.0", + "@babel/types": "^7.7.0", "convert-source-map": "^1.1.0", "debug": "^4.1.0", "json5": "^2.1.0", @@ -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.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" } }, + "@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" } }, "@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.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", @@ -106,68 +146,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.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-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.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-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.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-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.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-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.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-function-name": { @@ -191,21 +570,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.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-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 +623,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.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-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 +722,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.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-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.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-split-export-declaration": { @@ -300,87 +990,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.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/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.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": { @@ -412,30 +1224,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 +1285,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 +1339,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 +1367,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.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/plugin-transform-block-scoped-functions": { @@ -577,19 +1419,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.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/plugin-transform-computed-properties": { @@ -611,14 +1512,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 +1550,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.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/plugin-transform-literals": { @@ -689,45 +1639,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 +1720,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 +1797,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.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.0.tgz", + "integrity": "sha512-y3KYbcfKe+8ziRXiGhhnGrVysDBo5+aJdB+x8sanM0K41cnmK7Q5vBlQLMbOnW/HPjLG9bg7dLgYDQZZG9T09g==", "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.0", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.0.tgz", + "integrity": "sha512-AgvG8VJDehjK0Ky86xvaqKpx0ASKQk63dfghqqFt6yf9gqmcvc5TodM0ZT0XZvw9fxfrG1PqJ1Xt+8bDnHv9xw==", "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.0", "browserslist": "^4.6.0", "core-js-compat": "^3.1.1", "invariant": "^2.2.2", @@ -926,10 +1876,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.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", @@ -940,19 +1899,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.0", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.0.tgz", + "integrity": "sha512-WZ3qvtAJy8w/i6wqq5PuDnkCUXaLUTHIlJujfGHmHxsT5veAbEdEjl3cC/3nXfyD0bzlWsIiMdUhZgrXjd9QWg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-transform-typescript": "^7.6.0" + "@babel/plugin-transform-typescript": "^7.7.0" } }, "@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.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.0.tgz", + "integrity": "sha512-xdf3hZAzoqL9q7ItTe/KyUGw214oXdHmq2XhW8ANRuo2KMX+s17RK+z4DsQiPkdOqCjep14eNTneRoiTs9T1AQ==", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" @@ -2401,14 +3360,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": { @@ -2572,9 +3531,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": { @@ -2956,12 +3915,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": { @@ -3433,9 +4392,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.302", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.302.tgz", + "integrity": "sha512-1qConyiVEbj4xZRBXqtGR003+9tV0rJF0PS6aeO0Ln/UL637js9hdwweCl07meh/kJoI2N4W8q3R3g3F5z46ww==", "dev": true }, "elliptic": { @@ -6926,9 +7885,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" @@ -7887,9 +8846,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": { diff --git a/package.json b/package.json index 685f64a..23b13ab 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,13 @@ "author": "Ricardo Ambrogi", "license": "MIT", "devDependencies": { - "@babel/core": "7.6.4", - "@babel/plugin-proposal-class-properties": "7.5.5", + "@babel/core": "7.7.0", + "@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", + "@babel/preset-env": "7.7.0", + "@babel/preset-typescript": "7.7.0", + "@babel/runtime": "7.7.0", "@types/jest": "24.0.21", "@types/nock": "10.0.3", "@types/node": "11.15.2", diff --git a/yarn.lock b/yarn.lock index 373b9bc..da70a9e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,18 +16,18 @@ 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.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.0.tgz#461d2948b1a7113088baf999499bcbd39a7faa3b" + integrity sha512-Bb1NjZCaiwTQC/ARL+MwDpgocdnwWDCaugvkGt6cxfBzQa8Whv1JybBoUEiBDKl8Ni3H3c7Fykwk7QChUsHRlg== 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" + "@babel/generator" "^7.7.0" + "@babel/helpers" "^7.7.0" + "@babel/parser" "^7.7.0" + "@babel/template" "^7.7.0" + "@babel/traverse" "^7.7.0" + "@babel/types" "^7.7.0" convert-source-map "^1.1.0" debug "^4.1.0" json5 "^2.1.0" @@ -78,32 +78,12 @@ 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" - 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== - 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.0" jsesc "^2.5.1" lodash "^4.17.13" source-map "^0.5.0" @@ -115,6 +95,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 +119,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 +165,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 +181,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 +195,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 +209,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 +223,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 +242,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 +261,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 +280,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 +301,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 +319,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 +334,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 +360,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 +388,32 @@ 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.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 +442,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 +485,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 +506,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 +530,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 +558,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 +588,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 +619,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 +684,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 +745,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.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.0.tgz#182be03fa8bd2ffd0629791a1eaa4373b7589d38" + integrity sha512-y3KYbcfKe+8ziRXiGhhnGrVysDBo5+aJdB+x8sanM0K41cnmK7Q5vBlQLMbOnW/HPjLG9bg7dLgYDQZZG9T09g== 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.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.0.tgz#46dccc1df6b6a195044421b3f61a029866d92eef" + integrity sha512-AgvG8VJDehjK0Ky86xvaqKpx0ASKQk63dfghqqFt6yf9gqmcvc5TodM0ZT0XZvw9fxfrG1PqJ1Xt+8bDnHv9xw== 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.0" 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.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.7.0.tgz#5d7682d938160ceaf51c3d4239e9521ef893474c" + integrity sha512-WZ3qvtAJy8w/i6wqq5PuDnkCUXaLUTHIlJujfGHmHxsT5veAbEdEjl3cC/3nXfyD0bzlWsIiMdUhZgrXjd9QWg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-transform-typescript" "^7.6.0" + "@babel/plugin-transform-typescript" "^7.7.0" -"@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.0": + version "7.7.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.0.tgz#9b309d493864d69e0b9ec093e1426535a76b4b94" + integrity sha512-xdf3hZAzoqL9q7ItTe/KyUGw214oXdHmq2XhW8ANRuo2KMX+s17RK+z4DsQiPkdOqCjep14eNTneRoiTs9T1AQ== dependencies: regenerator-runtime "^0.13.2" @@ -789,14 +843,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 +882,22 @@ 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== - 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" - 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 +915,10 @@ 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== - 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.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" From 43556da382524b7933346171fc5dcab32e92f7d5 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 6 Nov 2019 08:35:48 +0200 Subject: [PATCH 06/53] Update babel monorepo to v7.7.1 (#167) --- package-lock.json | 104 +++++++++++++++++++++++----------------------- package.json | 4 +- yarn.lock | 27 ++++++++---- 3 files changed, 72 insertions(+), 63 deletions(-) diff --git a/package-lock.json b/package-lock.json index c63780c..0e86378 100644 --- a/package-lock.json +++ b/package-lock.json @@ -155,9 +155,9 @@ }, "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==", + "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", @@ -178,9 +178,9 @@ }, "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==", + "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", @@ -277,9 +277,9 @@ } }, "@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==", + "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", @@ -430,9 +430,9 @@ } }, "@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==", + "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", @@ -528,9 +528,9 @@ } }, "@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==", + "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", @@ -579,9 +579,9 @@ }, "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==", + "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", @@ -672,9 +672,9 @@ } }, "@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==", + "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", @@ -810,9 +810,9 @@ } }, "@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==", + "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", @@ -968,9 +968,9 @@ } }, "@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==", + "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", @@ -1077,9 +1077,9 @@ } }, "@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==", + "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", @@ -1387,9 +1387,9 @@ } }, "@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==", + "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", @@ -1481,9 +1481,9 @@ } }, "@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==", + "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", @@ -1597,9 +1597,9 @@ } }, "@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==", + "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", @@ -1818,9 +1818,9 @@ } }, "@babel/preset-env": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.0.tgz", - "integrity": "sha512-AgvG8VJDehjK0Ky86xvaqKpx0ASKQk63dfghqqFt6yf9gqmcvc5TodM0ZT0XZvw9fxfrG1PqJ1Xt+8bDnHv9xw==", + "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.7.0", @@ -1868,7 +1868,7 @@ "@babel/plugin-transform-template-literals": "^7.4.4", "@babel/plugin-transform-typeof-symbol": "^7.2.0", "@babel/plugin-transform-unicode-regex": "^7.7.0", - "@babel/types": "^7.7.0", + "@babel/types": "^7.7.1", "browserslist": "^4.6.0", "core-js-compat": "^3.1.1", "invariant": "^2.2.2", @@ -1886,9 +1886,9 @@ } }, "@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==", + "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", @@ -1909,9 +1909,9 @@ } }, "@babel/runtime": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.0.tgz", - "integrity": "sha512-xdf3hZAzoqL9q7ItTe/KyUGw214oXdHmq2XhW8ANRuo2KMX+s17RK+z4DsQiPkdOqCjep14eNTneRoiTs9T1AQ==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.1.tgz", + "integrity": "sha512-SQ0sS7KUJDvgCI2cpZG0nJygO6002oTbhgSuw4WcocsnbxLwL5Q8I3fqbJdyBAc3uFrWZiR2JomseuxSuci3SQ==", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" @@ -4392,9 +4392,9 @@ } }, "electron-to-chromium": { - "version": "1.3.302", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.302.tgz", - "integrity": "sha512-1qConyiVEbj4xZRBXqtGR003+9tV0rJF0PS6aeO0Ln/UL637js9hdwweCl07meh/kJoI2N4W8q3R3g3F5z46ww==", + "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": { diff --git a/package.json b/package.json index 23b13ab..e2d77b8 100644 --- a/package.json +++ b/package.json @@ -42,9 +42,9 @@ "@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.7.0", + "@babel/preset-env": "7.7.1", "@babel/preset-typescript": "7.7.0", - "@babel/runtime": "7.7.0", + "@babel/runtime": "7.7.1", "@types/jest": "24.0.21", "@types/nock": "10.0.3", "@types/node": "11.15.2", diff --git a/yarn.lock b/yarn.lock index da70a9e..f360b07 100644 --- a/yarn.lock +++ b/yarn.lock @@ -762,10 +762,10 @@ "@babel/helper-create-regexp-features-plugin" "^7.7.0" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/preset-env@7.7.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.0.tgz#46dccc1df6b6a195044421b3f61a029866d92eef" - integrity sha512-AgvG8VJDehjK0Ky86xvaqKpx0ASKQk63dfghqqFt6yf9gqmcvc5TodM0ZT0XZvw9fxfrG1PqJ1Xt+8bDnHv9xw== +"@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.7.0" "@babel/helper-plugin-utils" "^7.0.0" @@ -812,7 +812,7 @@ "@babel/plugin-transform-template-literals" "^7.4.4" "@babel/plugin-transform-typeof-symbol" "^7.2.0" "@babel/plugin-transform-unicode-regex" "^7.7.0" - "@babel/types" "^7.7.0" + "@babel/types" "^7.7.1" browserslist "^4.6.0" core-js-compat "^3.1.1" invariant "^2.2.2" @@ -827,10 +827,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-transform-typescript" "^7.7.0" -"@babel/runtime@7.7.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.0.tgz#9b309d493864d69e0b9ec093e1426535a76b4b94" - integrity sha512-xdf3hZAzoqL9q7ItTe/KyUGw214oXdHmq2XhW8ANRuo2KMX+s17RK+z4DsQiPkdOqCjep14eNTneRoiTs9T1AQ== +"@babel/runtime@7.7.1": + version "7.7.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.1.tgz#b223497bbfbcbbb38116673904debc71470ca528" + integrity sha512-SQ0sS7KUJDvgCI2cpZG0nJygO6002oTbhgSuw4WcocsnbxLwL5Q8I3fqbJdyBAc3uFrWZiR2JomseuxSuci3SQ== dependencies: regenerator-runtime "^0.13.2" @@ -924,6 +924,15 @@ lodash "^4.17.13" to-fast-properties "^2.0.0" +"@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" + "@cnakazawa/watch@^1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef" From 0a4349b86d29162a0c68603ea598c7cbc690b382 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 6 Nov 2019 08:36:20 +0200 Subject: [PATCH 07/53] Update dependency typescript to v3.7.2 (#168) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0e86378..0ff9457 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10365,9 +10365,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": { diff --git a/package.json b/package.json index e2d77b8..d5cfe9b 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "nock": "11.7.0", "release-it": "12.4.3", "ts-loader": "6.2.1", - "typescript": "3.6.4", + "typescript": "3.7.2", "webpack": "4.41.2", "webpack-cli": "3.3.10" }, diff --git a/yarn.lock b/yarn.lock index f360b07..8c1065b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7043,10 +7043,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" From a2447c6a09d722b8158ae6a86185f7087fe6446b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 6 Nov 2019 10:39:44 +0200 Subject: [PATCH 08/53] Update dependency @types/jest to v24.0.22 (#169) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ff9457..446c895 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2395,9 +2395,9 @@ } }, "@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.22", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.22.tgz", + "integrity": "sha512-t2OvhNZnrNjlzi2i0/cxbLVM59WN15I2r1Qtb7wDv28PnV9IzrPtagFRey/S9ezdLD0zyh1XGMQIEQND2YEfrw==", "dev": true, "requires": { "@types/jest-diff": "*" diff --git a/package.json b/package.json index d5cfe9b..f4588b7 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@babel/preset-env": "7.7.1", "@babel/preset-typescript": "7.7.0", "@babel/runtime": "7.7.1", - "@types/jest": "24.0.21", + "@types/jest": "24.0.22", "@types/nock": "10.0.3", "@types/node": "11.15.2", "@typescript-eslint/eslint-plugin": "2.6.1", diff --git a/yarn.lock b/yarn.lock index 8c1065b..3d655d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1269,10 +1269,10 @@ 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.22": + version "24.0.22" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.22.tgz#08a50be08e78aba850a1185626e71d31e2336145" + integrity sha512-t2OvhNZnrNjlzi2i0/cxbLVM59WN15I2r1Qtb7wDv28PnV9IzrPtagFRey/S9ezdLD0zyh1XGMQIEQND2YEfrw== dependencies: "@types/jest-diff" "*" From 5f7a9b3611bce6a9ec755e3cdefd23151df484e4 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 7 Nov 2019 08:37:51 +0200 Subject: [PATCH 09/53] Update babel monorepo to v7.7.2 (#170) --- package-lock.json | 109 +++++++++++++++++++++++++--------------------- package.json | 6 +-- yarn.lock | 90 ++++++++++++++++++++++++++++---------- 3 files changed, 130 insertions(+), 75 deletions(-) diff --git a/package-lock.json b/package-lock.json index 446c895..1a33e43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,19 +14,19 @@ } }, "@babel/core": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.0.tgz", - "integrity": "sha512-Bb1NjZCaiwTQC/ARL+MwDpgocdnwWDCaugvkGt6cxfBzQa8Whv1JybBoUEiBDKl8Ni3H3c7Fykwk7QChUsHRlg==", + "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.7.0", + "@babel/generator": "^7.7.2", "@babel/helpers": "^7.7.0", - "@babel/parser": "^7.7.0", + "@babel/parser": "^7.7.2", "@babel/template": "^7.7.0", - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0", - "convert-source-map": "^1.1.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,12 +36,12 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "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.0", + "@babel/types": "^7.7.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" @@ -77,9 +77,9 @@ } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.2.tgz", + "integrity": "sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==", "dev": true }, "@babel/template": { @@ -94,26 +94,26 @@ } }, "@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==", + "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.0", + "@babel/generator": "^7.7.2", "@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", + "@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.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.0.tgz", - "integrity": "sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ==", + "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", @@ -121,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", @@ -1110,12 +1119,12 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "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.0", + "@babel/types": "^7.7.2", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0" @@ -1151,9 +1160,9 @@ } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.2.tgz", + "integrity": "sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==", "dev": true }, "@babel/template": { @@ -1168,26 +1177,26 @@ } }, "@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==", + "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.0", + "@babel/generator": "^7.7.2", "@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", + "@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.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.0.tgz", - "integrity": "sha512-ptM1jeXPYi3BfRBelzbTgL/7aP99oYJCbLtGha8phqRY3EeXch+i6LuxRcNQAIgL++yyNPR/rO6cGLDc0cvUMQ==", + "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", @@ -1797,9 +1806,9 @@ } }, "@babel/plugin-transform-typescript": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.0.tgz", - "integrity": "sha512-y3KYbcfKe+8ziRXiGhhnGrVysDBo5+aJdB+x8sanM0K41cnmK7Q5vBlQLMbOnW/HPjLG9bg7dLgYDQZZG9T09g==", + "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.7.0", @@ -1899,19 +1908,19 @@ } }, "@babel/preset-typescript": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.0.tgz", - "integrity": "sha512-WZ3qvtAJy8w/i6wqq5PuDnkCUXaLUTHIlJujfGHmHxsT5veAbEdEjl3cC/3nXfyD0bzlWsIiMdUhZgrXjd9QWg==", + "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.7.0" + "@babel/plugin-transform-typescript": "^7.7.2" } }, "@babel/runtime": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.1.tgz", - "integrity": "sha512-SQ0sS7KUJDvgCI2cpZG0nJygO6002oTbhgSuw4WcocsnbxLwL5Q8I3fqbJdyBAc3uFrWZiR2JomseuxSuci3SQ==", + "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" diff --git a/package.json b/package.json index f4588b7..3ee0dfc 100644 --- a/package.json +++ b/package.json @@ -38,13 +38,13 @@ "author": "Ricardo Ambrogi", "license": "MIT", "devDependencies": { - "@babel/core": "7.7.0", + "@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.7.1", - "@babel/preset-typescript": "7.7.0", - "@babel/runtime": "7.7.1", + "@babel/preset-typescript": "7.7.2", + "@babel/runtime": "7.7.2", "@types/jest": "24.0.22", "@types/nock": "10.0.3", "@types/node": "11.15.2", diff --git a/yarn.lock b/yarn.lock index 3d655d8..0d1acc6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,19 +16,19 @@ dependencies: "@babel/highlight" "^7.0.0" -"@babel/core@7.7.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.0.tgz#461d2948b1a7113088baf999499bcbd39a7faa3b" - integrity sha512-Bb1NjZCaiwTQC/ARL+MwDpgocdnwWDCaugvkGt6cxfBzQa8Whv1JybBoUEiBDKl8Ni3H3c7Fykwk7QChUsHRlg== +"@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.7.0" + "@babel/generator" "^7.7.2" "@babel/helpers" "^7.7.0" - "@babel/parser" "^7.7.0" + "@babel/parser" "^7.7.2" "@babel/template" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" - convert-source-map "^1.1.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" @@ -88,6 +88,16 @@ lodash "^4.17.13" source-map "^0.5.0" +"@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.7.2" + jsesc "^2.5.1" + lodash "^4.17.13" + source-map "^0.5.0" + "@babel/helper-annotate-as-pure@^7.0.0": version "7.0.0" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32" @@ -393,6 +403,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.0.tgz#232618f6e8947bc54b407fa1f1c91a22758e7159" integrity sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ== +"@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/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" @@ -745,10 +760,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-typescript@^7.7.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.0.tgz#182be03fa8bd2ffd0629791a1eaa4373b7589d38" - integrity sha512-y3KYbcfKe+8ziRXiGhhnGrVysDBo5+aJdB+x8sanM0K41cnmK7Q5vBlQLMbOnW/HPjLG9bg7dLgYDQZZG9T09g== +"@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.7.0" "@babel/helper-plugin-utils" "^7.0.0" @@ -819,18 +834,18 @@ js-levenshtein "^1.1.3" semver "^5.5.0" -"@babel/preset-typescript@7.7.0": - version "7.7.0" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.7.0.tgz#5d7682d938160ceaf51c3d4239e9521ef893474c" - integrity sha512-WZ3qvtAJy8w/i6wqq5PuDnkCUXaLUTHIlJujfGHmHxsT5veAbEdEjl3cC/3nXfyD0bzlWsIiMdUhZgrXjd9QWg== +"@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.7.0" + "@babel/plugin-transform-typescript" "^7.7.2" -"@babel/runtime@7.7.1": - version "7.7.1" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.1.tgz#b223497bbfbcbbb38116673904debc71470ca528" - integrity sha512-SQ0sS7KUJDvgCI2cpZG0nJygO6002oTbhgSuw4WcocsnbxLwL5Q8I3fqbJdyBAc3uFrWZiR2JomseuxSuci3SQ== +"@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" @@ -897,6 +912,21 @@ globals "^11.1.0" lodash "^4.17.13" +"@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.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.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" @@ -933,6 +963,15 @@ 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" + to-fast-properties "^2.0.0" + "@cnakazawa/watch@^1.0.3": version "1.0.3" resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef" @@ -2394,6 +2433,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" From af9bbc563094fec4c02b6378f1c01bd86adc48ca Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 12 Nov 2019 08:40:55 +0100 Subject: [PATCH 10/53] Update typescript-eslint monorepo to v2.7.0 (#171) --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1a33e43..6f75031 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2467,12 +2467,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.6.1.tgz", - "integrity": "sha512-Z0rddsGqioKbvqfohg7BwkFC3PuNLsB+GE9QkFza7tiDzuHoy0y823Y+oGNDzxNZrYyLjqkZtCTl4vCqOmEN4g==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.7.0.tgz", + "integrity": "sha512-H5G7yi0b0FgmqaEUpzyBlVh0d9lq4cWG2ap0RKa6BkF3rpBb6IrAoubt1NWh9R2kRs/f0k6XwRDiDz3X/FqXhQ==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.6.1", + "@typescript-eslint/experimental-utils": "2.7.0", "eslint-utils": "^1.4.2", "functional-red-black-tree": "^1.0.1", "regexpp": "^2.0.1", @@ -2480,32 +2480,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.1.tgz", - "integrity": "sha512-EVrrUhl5yBt7fC7c62lWmriq4MIc49zpN3JmrKqfiFXPXCM5ErfEcZYfKOhZXkW6MBjFcJ5kGZqu1b+lyyExUw==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.7.0.tgz", + "integrity": "sha512-9/L/OJh2a5G2ltgBWJpHRfGnt61AgDeH6rsdg59BH0naQseSwR7abwHq3D5/op0KYD/zFT4LS5gGvWcMmegTEg==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.6.1", + "@typescript-eslint/typescript-estree": "2.7.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.6.1.tgz", - "integrity": "sha512-PDPkUkZ4c7yA+FWqigjwf3ngPUgoLaGjMlFh6TRtbjhqxFBnkElDfckSjm98q9cMr4xRzZ15VrS/xKm6QHYf0w==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.7.0.tgz", + "integrity": "sha512-ctC0g0ZvYclxMh/xI+tyqP0EC2fAo6KicN9Wm2EIao+8OppLfxji7KAGJosQHSGBj3TcqUrA96AjgXuKa5ob2g==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.6.1", - "@typescript-eslint/typescript-estree": "2.6.1", + "@typescript-eslint/experimental-utils": "2.7.0", + "@typescript-eslint/typescript-estree": "2.7.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.1.tgz", - "integrity": "sha512-+sTnssW6bcbDZKE8Ce7VV6LdzkQz2Bxk7jzk1J8H1rovoTxnm6iXvYIyncvNsaB/kBCOM63j/LNJfm27bNdUoA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.7.0.tgz", + "integrity": "sha512-vVCE/DY72N4RiJ/2f10PTyYekX2OLaltuSIBqeHYI44GQ940VCYioInIb8jKMrK9u855OEJdFC+HmWAZTnC+Ag==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index 3ee0dfc..22af2a7 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "@types/jest": "24.0.22", "@types/nock": "10.0.3", "@types/node": "11.15.2", - "@typescript-eslint/eslint-plugin": "2.6.1", - "@typescript-eslint/parser": "2.6.1", + "@typescript-eslint/eslint-plugin": "2.7.0", + "@typescript-eslint/parser": "2.7.0", "babel-loader": "8.0.6", "coveralls": "3.0.7", "eslint": "6.6.0", diff --git a/yarn.lock b/yarn.lock index 0d1acc6..33b26fb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1359,40 +1359,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.6.1": - version "2.6.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.6.1.tgz#e34972a24f8aba0861f9ccf7130acd74fd11e079" - integrity sha512-Z0rddsGqioKbvqfohg7BwkFC3PuNLsB+GE9QkFza7tiDzuHoy0y823Y+oGNDzxNZrYyLjqkZtCTl4vCqOmEN4g== +"@typescript-eslint/eslint-plugin@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.7.0.tgz#dff176bdb73dfd7e2e43062452189bd1b9db6021" + integrity sha512-H5G7yi0b0FgmqaEUpzyBlVh0d9lq4cWG2ap0RKa6BkF3rpBb6IrAoubt1NWh9R2kRs/f0k6XwRDiDz3X/FqXhQ== dependencies: - "@typescript-eslint/experimental-utils" "2.6.1" + "@typescript-eslint/experimental-utils" "2.7.0" eslint-utils "^1.4.2" functional-red-black-tree "^1.0.1" regexpp "^2.0.1" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.6.1": - version "2.6.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.6.1.tgz#eddaca17a399ebf93a8628923233b4f93793acfd" - integrity sha512-EVrrUhl5yBt7fC7c62lWmriq4MIc49zpN3JmrKqfiFXPXCM5ErfEcZYfKOhZXkW6MBjFcJ5kGZqu1b+lyyExUw== +"@typescript-eslint/experimental-utils@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.7.0.tgz#58d790a3884df3041b5a5e08f9e5e6b7c41864b5" + integrity sha512-9/L/OJh2a5G2ltgBWJpHRfGnt61AgDeH6rsdg59BH0naQseSwR7abwHq3D5/op0KYD/zFT4LS5gGvWcMmegTEg== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.6.1" + "@typescript-eslint/typescript-estree" "2.7.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.6.1": - version "2.6.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.6.1.tgz#3c00116baa0d696bc334ca18ac5286b34793993c" - integrity sha512-PDPkUkZ4c7yA+FWqigjwf3ngPUgoLaGjMlFh6TRtbjhqxFBnkElDfckSjm98q9cMr4xRzZ15VrS/xKm6QHYf0w== +"@typescript-eslint/parser@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.7.0.tgz#b5e6a4944e2b68dba1e7fbfd5242e09ff552fd12" + integrity sha512-ctC0g0ZvYclxMh/xI+tyqP0EC2fAo6KicN9Wm2EIao+8OppLfxji7KAGJosQHSGBj3TcqUrA96AjgXuKa5ob2g== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.6.1" - "@typescript-eslint/typescript-estree" "2.6.1" + "@typescript-eslint/experimental-utils" "2.7.0" + "@typescript-eslint/typescript-estree" "2.7.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.6.1": - version "2.6.1" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.6.1.tgz#fb363dd4ca23384745c5ea4b7f4c867432b00d31" - integrity sha512-+sTnssW6bcbDZKE8Ce7VV6LdzkQz2Bxk7jzk1J8H1rovoTxnm6iXvYIyncvNsaB/kBCOM63j/LNJfm27bNdUoA== +"@typescript-eslint/typescript-estree@2.7.0": + version "2.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.7.0.tgz#34fd98c77a07b40d04d5b4203eddd3abeab909f4" + integrity sha512-vVCE/DY72N4RiJ/2f10PTyYekX2OLaltuSIBqeHYI44GQ940VCYioInIb8jKMrK9u855OEJdFC+HmWAZTnC+Ag== dependencies: debug "^4.1.1" glob "^7.1.4" From 439e95b2f331e92f3c7b90100404d435653ae5f1 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 13 Nov 2019 10:36:41 +0100 Subject: [PATCH 11/53] Update dependency @types/jest to v24.0.23 (#172) --- package-lock.json | 14 ++++---------- package.json | 2 +- yarn.lock | 17 ++++++----------- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6f75031..3f62317 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2404,20 +2404,14 @@ } }, "@types/jest": { - "version": "24.0.22", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.22.tgz", - "integrity": "sha512-t2OvhNZnrNjlzi2i0/cxbLVM59WN15I2r1Qtb7wDv28PnV9IzrPtagFRey/S9ezdLD0zyh1XGMQIEQND2YEfrw==", + "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", diff --git a/package.json b/package.json index 22af2a7..3af4316 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@babel/preset-env": "7.7.1", "@babel/preset-typescript": "7.7.2", "@babel/runtime": "7.7.2", - "@types/jest": "24.0.22", + "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.2", "@typescript-eslint/eslint-plugin": "2.7.0", diff --git a/yarn.lock b/yarn.lock index 33b26fb..25b68e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1303,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.22": - version "24.0.22" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.22.tgz#08a50be08e78aba850a1185626e71d31e2336145" - integrity sha512-t2OvhNZnrNjlzi2i0/cxbLVM59WN15I2r1Qtb7wDv28PnV9IzrPtagFRey/S9ezdLD0zyh1XGMQIEQND2YEfrw== +"@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" @@ -4315,7 +4310,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== From 5f7ad6833951d340f7415b01de3a8ffad913939d Mon Sep 17 00:00:00 2001 From: Grant Date: Thu, 7 Nov 2019 09:41:44 +0100 Subject: [PATCH 12/53] New contribution guidelines Updated README.md and added CONTRIBUTING.md --- CONTRIBUTING.md | 20 ++++++++++++++++++++ README.md | 8 ++++++++ 2 files changed, 28 insertions(+) create mode 100644 CONTRIBUTING.md 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. From fa19242b0c1b848c670244ddf6c4349cab1dd19f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 19 Nov 2019 07:41:42 +0100 Subject: [PATCH 13/53] Update typescript-eslint monorepo to v2.8.0 (#174) --- package-lock.json | 61 +++++++++++++++++++++++++------------ package.json | 4 +-- yarn.lock | 76 +++++++++++++++++++++++++---------------------- 3 files changed, 85 insertions(+), 56 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f62317..0ca5f8a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2461,49 +2461,58 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.7.0.tgz", - "integrity": "sha512-H5G7yi0b0FgmqaEUpzyBlVh0d9lq4cWG2ap0RKa6BkF3rpBb6IrAoubt1NWh9R2kRs/f0k6XwRDiDz3X/FqXhQ==", + "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.7.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.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.7.0.tgz", - "integrity": "sha512-9/L/OJh2a5G2ltgBWJpHRfGnt61AgDeH6rsdg59BH0naQseSwR7abwHq3D5/op0KYD/zFT4LS5gGvWcMmegTEg==", + "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.7.0", + "@typescript-eslint/typescript-estree": "2.8.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.7.0.tgz", - "integrity": "sha512-ctC0g0ZvYclxMh/xI+tyqP0EC2fAo6KicN9Wm2EIao+8OppLfxji7KAGJosQHSGBj3TcqUrA96AjgXuKa5ob2g==", + "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.7.0", - "@typescript-eslint/typescript-estree": "2.7.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.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.7.0.tgz", - "integrity": "sha512-vVCE/DY72N4RiJ/2f10PTyYekX2OLaltuSIBqeHYI44GQ940VCYioInIb8jKMrK9u855OEJdFC+HmWAZTnC+Ag==", + "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", @@ -2519,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", diff --git a/package.json b/package.json index 3af4316..aed13a5 100644 --- a/package.json +++ b/package.json @@ -48,8 +48,8 @@ "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.2", - "@typescript-eslint/eslint-plugin": "2.7.0", - "@typescript-eslint/parser": "2.7.0", + "@typescript-eslint/eslint-plugin": "2.8.0", + "@typescript-eslint/parser": "2.8.0", "babel-loader": "8.0.6", "coveralls": "3.0.7", "eslint": "6.6.0", diff --git a/yarn.lock b/yarn.lock index 25b68e9..69c6432 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1354,43 +1354,44 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.7.0.tgz#dff176bdb73dfd7e2e43062452189bd1b9db6021" - integrity sha512-H5G7yi0b0FgmqaEUpzyBlVh0d9lq4cWG2ap0RKa6BkF3rpBb6IrAoubt1NWh9R2kRs/f0k6XwRDiDz3X/FqXhQ== +"@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.7.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.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.7.0.tgz#58d790a3884df3041b5a5e08f9e5e6b7c41864b5" - integrity sha512-9/L/OJh2a5G2ltgBWJpHRfGnt61AgDeH6rsdg59BH0naQseSwR7abwHq3D5/op0KYD/zFT4LS5gGvWcMmegTEg== +"@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.7.0" + "@typescript-eslint/typescript-estree" "2.8.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.7.0.tgz#b5e6a4944e2b68dba1e7fbfd5242e09ff552fd12" - integrity sha512-ctC0g0ZvYclxMh/xI+tyqP0EC2fAo6KicN9Wm2EIao+8OppLfxji7KAGJosQHSGBj3TcqUrA96AjgXuKa5ob2g== +"@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.7.0" - "@typescript-eslint/typescript-estree" "2.7.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.7.0": - version "2.7.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.7.0.tgz#34fd98c77a07b40d04d5b4203eddd3abeab909f4" - integrity sha512-vVCE/DY72N4RiJ/2f10PTyYekX2OLaltuSIBqeHYI44GQ940VCYioInIb8jKMrK9u855OEJdFC+HmWAZTnC+Ag== +"@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" @@ -2955,13 +2956,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" @@ -2969,11 +2963,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" @@ -3519,6 +3508,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" @@ -6092,6 +6093,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" From 0a2fcda73acaccd02c1821a56dd4ae9af50c9dd9 Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Tue, 19 Nov 2019 13:40:24 +0100 Subject: [PATCH 14/53] Create nodejs.yml --- .github/workflows/nodejs.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..6318898 --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,26 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [8.x, 10.x, 12.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + npm run build --if-present + npm test + env: + CI: true From 99a9b58528e95abc1384d1b29a9eb6fc12647535 Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Tue, 19 Nov 2019 13:42:11 +0100 Subject: [PATCH 15/53] Delete nodejs.yml --- .github/workflows/nodejs.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/nodejs.yml diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index 6318898..0000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Node CI - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [8.x, 10.x, 12.x] - - steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm install, build, and test - run: | - npm ci - npm run build --if-present - npm test - env: - CI: true From bdc7336b2fa7006c1f7ec3f49059a5874fa83e67 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 21 Nov 2019 10:14:55 +0100 Subject: [PATCH 16/53] Update dependency coveralls to v3.0.8 (#175) --- package-lock.json | 138 ++++++++++++++++++++++++++++++++++++++++++---- package.json | 2 +- yarn.lock | 126 +++++++++++++++++++++++++++++++++++------- 3 files changed, 234 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0ca5f8a..3f05449 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3314,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", @@ -3795,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", @@ -3995,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": { @@ -4322,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", @@ -5962,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": { @@ -6088,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", @@ -7340,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": { @@ -7746,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", @@ -11056,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 aed13a5..52ecfdc 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@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.7.0", diff --git a/yarn.lock b/yarn.lock index 69c6432..292fc6f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1994,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" @@ -2331,6 +2336,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" @@ -2363,6 +2376,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" @@ -2482,17 +2500,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" @@ -2605,6 +2623,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" @@ -2762,6 +2787,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" @@ -2923,7 +2953,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= @@ -3496,6 +3526,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" @@ -3604,10 +3646,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" @@ -3638,6 +3680,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" @@ -3717,6 +3764,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" @@ -4796,10 +4848,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" @@ -5164,13 +5216,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.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" @@ -6202,7 +6270,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== @@ -6405,7 +6473,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== @@ -6811,6 +6879,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" @@ -7529,6 +7604,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" From 5d316702902278771e77c8daf482d7d08bec6c41 Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Fri, 22 Nov 2019 09:08:50 +0100 Subject: [PATCH 17/53] Update API type definitions (#176) --- .babelrc | 22 - babel.config.js | 25 + jest.config.js | 1 + package.json | 8 +- src/__tests__/binLookup.spec.ts | 4 +- src/__tests__/checkout.spec.ts | 9 +- src/__tests__/payout.spec.ts | 29 +- src/__tests__/recurring.spec.ts | 11 +- src/typings/binLookup/amount.ts | 46 +- src/typings/binLookup/cardBin.ts | 134 +++- .../binLookup/costEstimateAssumptions.ts | 57 +- src/typings/binLookup/costEstimateRequest.ts | 145 ++-- src/typings/binLookup/costEstimateResponse.ts | 66 +- src/typings/binLookup/dSPublicKeyDetail.ts | 57 +- src/typings/binLookup/merchantDetails.ts | 57 +- src/typings/binLookup/recurring.ts | 99 ++- .../binLookup/threeDS2CardRangeDetail.ts | 79 +- .../binLookup/threeDSAvailabilityRequest.ts | 90 ++- .../binLookup/threeDSAvailabilityResponse.ts | 85 ++- src/typings/checkout/accountInfo.ts | 307 +++++--- .../checkout/additionalData3DSecure.ts | 51 ++ src/typings/checkout/additionalDataAirline.ts | 267 +++++++ .../checkout/additionalDataCarRental.ts | 231 ++++++ src/typings/checkout/additionalDataCommon.ts | 78 ++ src/typings/checkout/additionalDataLevel23.ts | 177 +++++ src/typings/checkout/additionalDataLodging.ts | 177 +++++ .../checkout/additionalDataOpenInvoice.ts | 123 ++++ src/typings/checkout/additionalDataRatepay.ts | 96 +++ src/typings/checkout/additionalDataRetry.ts | 51 ++ src/typings/checkout/additionalDataRisk.ts | 384 ++++++++++ .../checkout/additionalDataRiskStandalone.ts | 159 ++++ .../additionalDataTemporaryServices.ts | 105 +++ src/typings/checkout/additionalDataWallets.ts | 78 ++ src/typings/checkout/address.ts | 90 ++- src/typings/checkout/amount.ts | 46 +- src/typings/checkout/applicationInfo.ts | 4 +- src/typings/checkout/avs.ts | 57 +- src/typings/checkout/bankAccount.ts | 123 +++- src/typings/checkout/browserInfo.ts | 123 +++- src/typings/checkout/card.ts | 112 ++- .../checkout/checkoutPaymentsAction.ts | 225 ++++++ src/typings/checkout/commonField.ts | 4 +- src/typings/checkout/company.ts | 90 ++- src/typings/checkout/configuration.ts | 71 +- .../checkout/createPaymentLinkRequest.ts | 152 ++++ .../checkout/createPaymentLinkResponse.ts | 58 ++ src/typings/checkout/detailsRequest.ts | 57 +- src/typings/checkout/deviceRenderOptions.ts | 74 +- src/typings/checkout/externalPlatform.ts | 4 +- src/typings/checkout/forexQuote.ts | 144 +++- src/typings/checkout/fraudCheckResult.ts | 59 +- src/typings/checkout/fraudResult.ts | 50 +- src/typings/checkout/inputDetail.ts | 141 ++-- src/typings/checkout/installments.ts | 37 +- src/typings/checkout/item.ts | 48 +- src/typings/checkout/lineItem.ts | 127 +++- src/typings/checkout/merchantDevice.ts | 4 +- src/typings/checkout/merchantRiskIndicator.ts | 155 ++-- src/typings/checkout/name.ts | 81 +- src/typings/checkout/paymentMethod.ts | 137 ++-- src/typings/checkout/paymentMethodGroup.ts | 59 +- src/typings/checkout/paymentMethodsGroup.ts | 59 +- src/typings/checkout/paymentMethodsRequest.ts | 165 +++-- .../checkout/paymentMethodsResponse.ts | 77 +- src/typings/checkout/paymentRequest.ts | 690 +++++++++++++----- src/typings/checkout/paymentResponse.ts | 197 +++-- src/typings/checkout/paymentSetupRequest.ts | 637 +++++++++++----- src/typings/checkout/paymentSetupResponse.ts | 47 +- .../checkout/paymentVerificationRequest.ts | 37 +- .../checkout/paymentVerificationResponse.ts | 172 +++-- src/typings/checkout/recurring.ts | 101 ++- src/typings/checkout/recurringDetail.ts | 151 +++- src/typings/checkout/redirect.ts | 68 +- src/typings/checkout/sDKEphemPubKey.ts | 70 +- src/typings/checkout/serviceError.ts | 47 +- src/typings/checkout/shopperInput.ts | 92 ++- .../checkout/shopperInteractionDevice.ts | 4 +- src/typings/checkout/split.ts | 96 ++- src/typings/checkout/splitAmount.ts | 48 +- src/typings/checkout/storedDetails.ts | 55 +- src/typings/checkout/storedPaymentMethod.ts | 4 +- src/typings/checkout/subInputDetail.ts | 94 ++- src/typings/checkout/threeDS2RequestData.ts | 302 ++++++-- src/typings/checkout/threeDSecureData.ts | 145 ++-- src/typings/payments/accountInfo.ts | 307 +++++--- .../payments/additionalData3DSecure.ts | 51 ++ src/typings/payments/additionalDataAirline.ts | 267 +++++++ .../payments/additionalDataCarRental.ts | 231 ++++++ src/typings/payments/additionalDataCommon.ts | 78 ++ src/typings/payments/additionalDataLevel23.ts | 177 +++++ src/typings/payments/additionalDataLodging.ts | 177 +++++ .../payments/additionalDataOpenInvoice.ts | 123 ++++ src/typings/payments/additionalDataRatepay.ts | 96 +++ src/typings/payments/additionalDataRetry.ts | 51 ++ src/typings/payments/additionalDataRisk.ts | 384 ++++++++++ .../payments/additionalDataRiskStandalone.ts | 159 ++++ .../additionalDataTemporaryServices.ts | 105 +++ src/typings/payments/additionalDataWallets.ts | 78 ++ src/typings/payments/address.ts | 90 ++- src/typings/payments/amount.ts | 46 +- src/typings/payments/applicationInfo.ts | 6 +- src/typings/payments/avs.ts | 49 ++ src/typings/payments/bankAccount.ts | 123 +++- src/typings/payments/browserInfo.ts | 123 +++- src/typings/payments/card.ts | 112 ++- .../payments/checkoutPaymentsAction.ts | 225 ++++++ src/typings/payments/commonField.ts | 6 +- src/typings/payments/company.ts | 78 ++ src/typings/payments/configuration.ts | 61 ++ .../payments/createPaymentLinkRequest.ts | 152 ++++ .../payments/createPaymentLinkResponse.ts | 58 ++ src/typings/payments/detailsRequest.ts | 51 ++ src/typings/payments/deviceRenderOptions.ts | 72 +- src/typings/payments/externalPlatform.ts | 6 +- src/typings/payments/forexQuote.ts | 142 +++- src/typings/payments/fraudCheckResult.ts | 57 +- src/typings/payments/fraudResult.ts | 48 +- src/typings/payments/inputDetail.ts | 107 +++ src/typings/payments/installments.ts | 35 +- src/typings/payments/item.ts | 42 ++ src/typings/payments/lineItem.ts | 104 +++ src/typings/payments/merchantDevice.ts | 6 +- src/typings/payments/merchantRiskIndicator.ts | 153 ++-- src/typings/payments/name.ts | 79 +- src/typings/payments/paymentMethod.ts | 104 +++ src/typings/payments/paymentMethodGroup.ts | 51 ++ src/typings/payments/paymentMethodsGroup.ts | 51 ++ src/typings/payments/paymentMethodsRequest.ts | 141 ++++ .../payments/paymentMethodsResponse.ts | 64 ++ src/typings/payments/paymentRequest.ts | 665 ++++++++++++----- src/typings/payments/paymentResponse.ts | 151 ++++ src/typings/payments/paymentSetupRequest.ts | 480 ++++++++++++ src/typings/payments/paymentSetupResponse.ts | 43 ++ .../payments/paymentVerificationRequest.ts | 33 + .../payments/paymentVerificationResponse.ts | 125 ++++ src/typings/payments/recurring.ts | 99 ++- src/typings/payments/recurringDetail.ts | 120 +++ src/typings/payments/redirect.ts | 57 ++ src/typings/payments/sDKEphemPubKey.ts | 68 +- src/typings/payments/serviceError.ts | 42 ++ src/typings/payments/shopperInput.ts | 68 ++ .../payments/shopperInteractionDevice.ts | 6 +- src/typings/payments/split.ts | 94 ++- src/typings/payments/splitAmount.ts | 46 +- src/typings/payments/storedDetails.ts | 47 ++ src/typings/payments/storedPaymentMethod.ts | 114 +++ src/typings/payments/subInputDetail.ts | 79 ++ src/typings/payments/threeDS2RequestData.ts | 295 ++++++-- src/typings/payments/threeDSecureData.ts | 143 ++-- src/typings/payout/accountInfo.ts | 235 ++++++ src/typings/payout/address.ts | 90 ++- src/typings/payout/amount.ts | 46 +- src/typings/payout/applicationInfo.ts | 64 ++ src/typings/payout/bankAccount.ts | 123 +++- src/typings/payout/browserInfo.ts | 109 ++- src/typings/payout/card.ts | 112 ++- src/typings/payout/commonField.ts | 42 ++ src/typings/payout/deviceRenderOptions.ts | 56 ++ src/typings/payout/externalPlatform.ts | 51 ++ src/typings/payout/forexQuote.ts | 142 +++- src/typings/payout/fraudCheckResult.ts | 57 +- src/typings/payout/fraudResult.ts | 48 +- src/typings/payout/fundSource.ts | 86 ++- src/typings/payout/installments.ts | 35 +- src/typings/payout/merchantDevice.ts | 51 ++ src/typings/payout/merchantRiskIndicator.ts | 120 +++ src/typings/payout/modifyRequest.ts | 57 +- src/typings/payout/modifyResponse.ts | 57 +- src/typings/payout/name.ts | 79 +- src/typings/payout/payoutRequest.ts | 578 +++++++++++---- src/typings/payout/payoutResponse.ts | 180 +++-- src/typings/payout/recurring.ts | 95 ++- src/typings/payout/sDKEphemPubKey.ts | 60 ++ .../payout/shopperInteractionDevice.ts | 51 ++ src/typings/payout/split.ts | 77 ++ src/typings/payout/splitAmount.ts | 42 ++ .../payout/storeDetailAndSubmitRequest.ts | 233 ++++-- .../payout/storeDetailAndSubmitResponse.ts | 68 +- src/typings/payout/storeDetailRequest.ts | 200 +++-- src/typings/payout/storeDetailResponse.ts | 68 +- src/typings/payout/submitRequest.ts | 212 ++++-- src/typings/payout/submitResponse.ts | 68 +- src/typings/payout/threeDS2RequestData.ts | 233 ++++++ src/typings/payout/threeDSecureData.ts | 138 +++- src/typings/recurring/address.ts | 90 ++- src/typings/recurring/bankAccount.ts | 123 +++- src/typings/recurring/card.ts | 112 ++- src/typings/recurring/disableRequest.ts | 68 +- src/typings/recurring/disableResult.ts | 35 +- src/typings/recurring/name.ts | 79 +- src/typings/recurring/recurring.ts | 95 ++- src/typings/recurring/recurringDetail.ts | 197 +++-- .../recurring/recurringDetailsRequest.ts | 55 +- .../recurring/recurringDetailsResult.ts | 70 +- .../scheduleAccountUpdaterRequest.ts | 76 ++ .../recurring/scheduleAccountUpdaterResult.ts | 42 ++ tsconfig.json | 3 +- yarn.lock | 66 +- 198 files changed, 17750 insertions(+), 3823 deletions(-) delete mode 100755 .babelrc create mode 100755 babel.config.js mode change 100755 => 100644 src/typings/binLookup/amount.ts mode change 100755 => 100644 src/typings/binLookup/cardBin.ts mode change 100755 => 100644 src/typings/binLookup/costEstimateAssumptions.ts mode change 100755 => 100644 src/typings/binLookup/costEstimateRequest.ts mode change 100755 => 100644 src/typings/binLookup/costEstimateResponse.ts mode change 100755 => 100644 src/typings/binLookup/dSPublicKeyDetail.ts mode change 100755 => 100644 src/typings/binLookup/merchantDetails.ts mode change 100755 => 100644 src/typings/binLookup/recurring.ts mode change 100755 => 100644 src/typings/binLookup/threeDS2CardRangeDetail.ts mode change 100755 => 100644 src/typings/binLookup/threeDSAvailabilityRequest.ts mode change 100755 => 100644 src/typings/binLookup/threeDSAvailabilityResponse.ts mode change 100755 => 100644 src/typings/checkout/accountInfo.ts create mode 100644 src/typings/checkout/additionalData3DSecure.ts create mode 100644 src/typings/checkout/additionalDataAirline.ts create mode 100644 src/typings/checkout/additionalDataCarRental.ts create mode 100644 src/typings/checkout/additionalDataCommon.ts create mode 100644 src/typings/checkout/additionalDataLevel23.ts create mode 100644 src/typings/checkout/additionalDataLodging.ts create mode 100644 src/typings/checkout/additionalDataOpenInvoice.ts create mode 100644 src/typings/checkout/additionalDataRatepay.ts create mode 100644 src/typings/checkout/additionalDataRetry.ts create mode 100644 src/typings/checkout/additionalDataRisk.ts create mode 100644 src/typings/checkout/additionalDataRiskStandalone.ts create mode 100644 src/typings/checkout/additionalDataTemporaryServices.ts create mode 100644 src/typings/checkout/additionalDataWallets.ts mode change 100755 => 100644 src/typings/checkout/address.ts mode change 100755 => 100644 src/typings/checkout/amount.ts mode change 100755 => 100644 src/typings/checkout/avs.ts mode change 100755 => 100644 src/typings/checkout/bankAccount.ts mode change 100755 => 100644 src/typings/checkout/browserInfo.ts mode change 100755 => 100644 src/typings/checkout/card.ts create mode 100644 src/typings/checkout/checkoutPaymentsAction.ts mode change 100755 => 100644 src/typings/checkout/company.ts mode change 100755 => 100644 src/typings/checkout/configuration.ts create mode 100644 src/typings/checkout/createPaymentLinkRequest.ts create mode 100644 src/typings/checkout/createPaymentLinkResponse.ts mode change 100755 => 100644 src/typings/checkout/detailsRequest.ts mode change 100755 => 100644 src/typings/checkout/deviceRenderOptions.ts mode change 100755 => 100644 src/typings/checkout/forexQuote.ts mode change 100755 => 100644 src/typings/checkout/fraudCheckResult.ts mode change 100755 => 100644 src/typings/checkout/fraudResult.ts mode change 100755 => 100644 src/typings/checkout/inputDetail.ts mode change 100755 => 100644 src/typings/checkout/installments.ts mode change 100755 => 100644 src/typings/checkout/item.ts mode change 100755 => 100644 src/typings/checkout/lineItem.ts mode change 100755 => 100644 src/typings/checkout/merchantRiskIndicator.ts mode change 100755 => 100644 src/typings/checkout/name.ts mode change 100755 => 100644 src/typings/checkout/paymentMethod.ts mode change 100755 => 100644 src/typings/checkout/paymentMethodGroup.ts mode change 100755 => 100644 src/typings/checkout/paymentMethodsGroup.ts mode change 100755 => 100644 src/typings/checkout/paymentMethodsRequest.ts mode change 100755 => 100644 src/typings/checkout/paymentMethodsResponse.ts mode change 100755 => 100644 src/typings/checkout/paymentRequest.ts mode change 100755 => 100644 src/typings/checkout/paymentResponse.ts mode change 100755 => 100644 src/typings/checkout/paymentSetupRequest.ts mode change 100755 => 100644 src/typings/checkout/paymentSetupResponse.ts mode change 100755 => 100644 src/typings/checkout/paymentVerificationRequest.ts mode change 100755 => 100644 src/typings/checkout/paymentVerificationResponse.ts mode change 100755 => 100644 src/typings/checkout/recurring.ts mode change 100755 => 100644 src/typings/checkout/recurringDetail.ts mode change 100755 => 100644 src/typings/checkout/redirect.ts mode change 100755 => 100644 src/typings/checkout/sDKEphemPubKey.ts mode change 100755 => 100644 src/typings/checkout/serviceError.ts mode change 100755 => 100644 src/typings/checkout/shopperInput.ts mode change 100755 => 100644 src/typings/checkout/split.ts mode change 100755 => 100644 src/typings/checkout/splitAmount.ts mode change 100755 => 100644 src/typings/checkout/storedDetails.ts mode change 100755 => 100644 src/typings/checkout/subInputDetail.ts mode change 100755 => 100644 src/typings/checkout/threeDS2RequestData.ts mode change 100755 => 100644 src/typings/checkout/threeDSecureData.ts mode change 100755 => 100644 src/typings/payments/accountInfo.ts create mode 100644 src/typings/payments/additionalData3DSecure.ts create mode 100644 src/typings/payments/additionalDataAirline.ts create mode 100644 src/typings/payments/additionalDataCarRental.ts create mode 100644 src/typings/payments/additionalDataCommon.ts create mode 100644 src/typings/payments/additionalDataLevel23.ts create mode 100644 src/typings/payments/additionalDataLodging.ts create mode 100644 src/typings/payments/additionalDataOpenInvoice.ts create mode 100644 src/typings/payments/additionalDataRatepay.ts create mode 100644 src/typings/payments/additionalDataRetry.ts create mode 100644 src/typings/payments/additionalDataRisk.ts create mode 100644 src/typings/payments/additionalDataRiskStandalone.ts create mode 100644 src/typings/payments/additionalDataTemporaryServices.ts create mode 100644 src/typings/payments/additionalDataWallets.ts mode change 100755 => 100644 src/typings/payments/address.ts mode change 100755 => 100644 src/typings/payments/amount.ts create mode 100644 src/typings/payments/avs.ts mode change 100755 => 100644 src/typings/payments/bankAccount.ts mode change 100755 => 100644 src/typings/payments/browserInfo.ts mode change 100755 => 100644 src/typings/payments/card.ts create mode 100644 src/typings/payments/checkoutPaymentsAction.ts create mode 100644 src/typings/payments/company.ts create mode 100644 src/typings/payments/configuration.ts create mode 100644 src/typings/payments/createPaymentLinkRequest.ts create mode 100644 src/typings/payments/createPaymentLinkResponse.ts create mode 100644 src/typings/payments/detailsRequest.ts mode change 100755 => 100644 src/typings/payments/deviceRenderOptions.ts mode change 100755 => 100644 src/typings/payments/forexQuote.ts mode change 100755 => 100644 src/typings/payments/fraudCheckResult.ts mode change 100755 => 100644 src/typings/payments/fraudResult.ts create mode 100644 src/typings/payments/inputDetail.ts mode change 100755 => 100644 src/typings/payments/installments.ts create mode 100644 src/typings/payments/item.ts create mode 100644 src/typings/payments/lineItem.ts mode change 100755 => 100644 src/typings/payments/merchantRiskIndicator.ts mode change 100755 => 100644 src/typings/payments/name.ts create mode 100644 src/typings/payments/paymentMethod.ts create mode 100644 src/typings/payments/paymentMethodGroup.ts create mode 100644 src/typings/payments/paymentMethodsGroup.ts create mode 100644 src/typings/payments/paymentMethodsRequest.ts create mode 100644 src/typings/payments/paymentMethodsResponse.ts mode change 100755 => 100644 src/typings/payments/paymentRequest.ts create mode 100644 src/typings/payments/paymentResponse.ts create mode 100644 src/typings/payments/paymentSetupRequest.ts create mode 100644 src/typings/payments/paymentSetupResponse.ts create mode 100644 src/typings/payments/paymentVerificationRequest.ts create mode 100644 src/typings/payments/paymentVerificationResponse.ts mode change 100755 => 100644 src/typings/payments/recurring.ts create mode 100644 src/typings/payments/recurringDetail.ts create mode 100644 src/typings/payments/redirect.ts mode change 100755 => 100644 src/typings/payments/sDKEphemPubKey.ts create mode 100644 src/typings/payments/serviceError.ts create mode 100644 src/typings/payments/shopperInput.ts mode change 100755 => 100644 src/typings/payments/split.ts mode change 100755 => 100644 src/typings/payments/splitAmount.ts create mode 100644 src/typings/payments/storedDetails.ts create mode 100644 src/typings/payments/storedPaymentMethod.ts create mode 100644 src/typings/payments/subInputDetail.ts mode change 100755 => 100644 src/typings/payments/threeDS2RequestData.ts mode change 100755 => 100644 src/typings/payments/threeDSecureData.ts create mode 100644 src/typings/payout/accountInfo.ts mode change 100755 => 100644 src/typings/payout/address.ts mode change 100755 => 100644 src/typings/payout/amount.ts create mode 100644 src/typings/payout/applicationInfo.ts mode change 100755 => 100644 src/typings/payout/bankAccount.ts mode change 100755 => 100644 src/typings/payout/browserInfo.ts mode change 100755 => 100644 src/typings/payout/card.ts create mode 100644 src/typings/payout/commonField.ts create mode 100644 src/typings/payout/deviceRenderOptions.ts create mode 100644 src/typings/payout/externalPlatform.ts mode change 100755 => 100644 src/typings/payout/forexQuote.ts mode change 100755 => 100644 src/typings/payout/fraudCheckResult.ts mode change 100755 => 100644 src/typings/payout/fraudResult.ts mode change 100755 => 100644 src/typings/payout/fundSource.ts mode change 100755 => 100644 src/typings/payout/installments.ts create mode 100644 src/typings/payout/merchantDevice.ts create mode 100644 src/typings/payout/merchantRiskIndicator.ts mode change 100755 => 100644 src/typings/payout/modifyRequest.ts mode change 100755 => 100644 src/typings/payout/modifyResponse.ts mode change 100755 => 100644 src/typings/payout/name.ts mode change 100755 => 100644 src/typings/payout/payoutRequest.ts mode change 100755 => 100644 src/typings/payout/payoutResponse.ts mode change 100755 => 100644 src/typings/payout/recurring.ts create mode 100644 src/typings/payout/sDKEphemPubKey.ts create mode 100644 src/typings/payout/shopperInteractionDevice.ts create mode 100644 src/typings/payout/split.ts create mode 100644 src/typings/payout/splitAmount.ts mode change 100755 => 100644 src/typings/payout/storeDetailAndSubmitRequest.ts mode change 100755 => 100644 src/typings/payout/storeDetailAndSubmitResponse.ts mode change 100755 => 100644 src/typings/payout/storeDetailRequest.ts mode change 100755 => 100644 src/typings/payout/storeDetailResponse.ts mode change 100755 => 100644 src/typings/payout/submitRequest.ts mode change 100755 => 100644 src/typings/payout/submitResponse.ts create mode 100644 src/typings/payout/threeDS2RequestData.ts mode change 100755 => 100644 src/typings/payout/threeDSecureData.ts mode change 100755 => 100644 src/typings/recurring/address.ts mode change 100755 => 100644 src/typings/recurring/bankAccount.ts mode change 100755 => 100644 src/typings/recurring/card.ts mode change 100755 => 100644 src/typings/recurring/disableRequest.ts mode change 100755 => 100644 src/typings/recurring/disableResult.ts mode change 100755 => 100644 src/typings/recurring/name.ts mode change 100755 => 100644 src/typings/recurring/recurring.ts mode change 100755 => 100644 src/typings/recurring/recurringDetail.ts mode change 100755 => 100644 src/typings/recurring/recurringDetailsRequest.ts mode change 100755 => 100644 src/typings/recurring/recurringDetailsResult.ts create mode 100644 src/typings/recurring/scheduleAccountUpdaterRequest.ts create mode 100644 src/typings/recurring/scheduleAccountUpdaterResult.ts 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/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.json b/package.json index 52ecfdc..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", @@ -42,10 +42,11 @@ "@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/plugin-transform-typescript": "^7.7.2", "@babel/preset-env": "7.7.1", - "@babel/preset-typescript": "7.7.2", + "@babel/preset-typescript": "^7.7.2", "@babel/runtime": "7.7.2", - "@types/jest": "24.0.23", + "@types/jest": "^24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.2", "@typescript-eslint/eslint-plugin": "2.8.0", @@ -56,6 +57,7 @@ "jest": "24.9.0", "nock": "11.7.0", "release-it": "12.4.3", + "ts-jest": "^24.1.0", "ts-loader": "6.2.1", "typescript": "3.7.2", "webpack": "4.41.2", 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 292fc6f..bf3fd67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -834,7 +834,7 @@ js-levenshtein "^1.1.3" semver "^5.5.0" -"@babel/preset-typescript@7.7.2": +"@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== @@ -1303,7 +1303,7 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@24.0.23": +"@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== @@ -2067,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" @@ -2079,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== @@ -2176,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" @@ -3235,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= @@ -4774,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" @@ -4920,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" @@ -5014,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" @@ -5216,7 +5245,7 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@0.5.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= @@ -6346,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== @@ -6504,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== @@ -7098,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" @@ -7637,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" From 4fe9e4f6a0e2dcd1578e0dda31ca5057039d8892 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 22 Nov 2019 14:14:05 +0100 Subject: [PATCH 18/53] Pin dependencies (#178) --- package-lock.json | 58 ++++++++++++++++++++++++++++++++++++++++++++++- package.json | 8 +++---- yarn.lock | 8 +++---- 3 files changed, 65 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f05449..66223d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "2.1.7", + "version": "2.1.8", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -3402,6 +3402,15 @@ "node-releases": "^1.1.38" } }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, "bser": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.0.tgz", @@ -7471,6 +7480,12 @@ "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", "dev": true }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, "lodash.set": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", @@ -7550,6 +7565,12 @@ "semver": "^5.6.0" } }, + "make-error": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", + "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", + "dev": true + }, "makeerror": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", @@ -10361,6 +10382,41 @@ "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", "dev": true }, + "ts-jest": { + "version": "24.1.0", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.1.0.tgz", + "integrity": "sha512-HEGfrIEAZKfu1pkaxB9au17b1d9b56YZSqz5eCVE8mX68+5reOvlM93xGOzzCREIov9mdH7JBG+s0UyNAqr0tQ==", + "dev": true, + "requires": { + "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" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } + } + }, "ts-loader": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-6.2.1.tgz", diff --git a/package.json b/package.json index 01e28d9..a4521a5 100644 --- a/package.json +++ b/package.json @@ -42,11 +42,11 @@ "@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/plugin-transform-typescript": "^7.7.2", + "@babel/plugin-transform-typescript": "7.7.2", "@babel/preset-env": "7.7.1", - "@babel/preset-typescript": "^7.7.2", + "@babel/preset-typescript": "7.7.2", "@babel/runtime": "7.7.2", - "@types/jest": "^24.0.23", + "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.2", "@typescript-eslint/eslint-plugin": "2.8.0", @@ -57,7 +57,7 @@ "jest": "24.9.0", "nock": "11.7.0", "release-it": "12.4.3", - "ts-jest": "^24.1.0", + "ts-jest": "24.1.0", "ts-loader": "6.2.1", "typescript": "3.7.2", "webpack": "4.41.2", diff --git a/yarn.lock b/yarn.lock index bf3fd67..246d846 100644 --- a/yarn.lock +++ b/yarn.lock @@ -760,7 +760,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-typescript@^7.7.2": +"@babel/plugin-transform-typescript@7.7.2", "@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== @@ -834,7 +834,7 @@ js-levenshtein "^1.1.3" semver "^5.5.0" -"@babel/preset-typescript@^7.7.2": +"@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== @@ -1303,7 +1303,7 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@^24.0.23": +"@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== @@ -7127,7 +7127,7 @@ 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: +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== From a5259a443ccc48895c29dc17f48d9196dad80866 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 25 Nov 2019 08:08:58 +0100 Subject: [PATCH 19/53] Update babel monorepo to v7.7.4 (#181) --- package-lock.json | 1571 +++++++++++++++++++++++---------------------- package.json | 16 +- yarn.lock | 1050 +++++++++++++----------------- 3 files changed, 1253 insertions(+), 1384 deletions(-) diff --git a/package-lock.json b/package-lock.json index 66223d0..05d1abd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,18 +14,18 @@ } }, "@babel/core": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.2.tgz", - "integrity": "sha512-eeD7VEZKfhK1KUXGiyPFettgF3m513f8FoBSWiQ1xTvl1RAopLs42Wp9+Ze911I6H0N9lNqJMDgoZT7gHsipeQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.4.tgz", + "integrity": "sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@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", + "@babel/generator": "^7.7.4", + "@babel/helpers": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "json5": "^2.1.0", @@ -36,84 +36,84 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", - "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.2", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.2.tgz", - "integrity": "sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@babel/traverse": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", - "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -155,18 +155,18 @@ } }, "@babel/helper-annotate-as-pure": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz", + "integrity": "sha512-2BQmQgECKzYKFPpiycoF9tlb5HA4lrVyAmLLVK177EcQAqjVLciUb2/R+n1boQ9y5ENV3uz2ZqiNw7QMBBw1Og==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" }, "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -177,19 +177,19 @@ } }, "@babel/helper-builder-binary-assignment-operator-visitor": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.4.tgz", + "integrity": "sha512-Biq/d/WtvfftWZ9Uf39hbPBYDUo986m5Bb4zhkeYDGUllF43D+nUe5M6Vuo6/8JDK/0YX/uBdeoQpyaNhNugZQ==", "dev": true, "requires": { - "@babel/helper-explode-assignable-expression": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/helper-explode-assignable-expression": "^7.7.4", + "@babel/types": "^7.7.4" }, "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -200,95 +200,95 @@ } }, "@babel/helper-call-delegate": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.7.4.tgz", + "integrity": "sha512-8JH9/B7J7tCYJ2PpWVpw9JhPuEVHztagNVuQAFBVFYluRMlpG7F1CgKEgGeL6KFqcsIa92ZYVj6DSc0XwmN1ZA==", "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.7.0", - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/helper-hoist-variables": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.0", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -308,69 +308,69 @@ } }, "@babel/helper-create-class-features-plugin": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.7.4.tgz", + "integrity": "sha512-l+OnKACG4uiDHQ/aJT8dwpR+LhCJALxL0mJ6nzjB25e5IPwqV1VOsY7ah6UB1DG+VOXAIMtuC54rFJGiHkxjgA==", "dev": true, "requires": { - "@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-function-name": "^7.7.4", + "@babel/helper-member-expression-to-functions": "^7.7.4", + "@babel/helper-optimise-call-expression": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.7.0", - "@babel/helper-split-export-declaration": "^7.7.0" + "@babel/helper-replace-supers": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4" }, "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -381,9 +381,9 @@ } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.4.tgz", + "integrity": "sha512-Mt+jBKaxL0zfOIWrfQpnfYCN7/rS6GKx6CCCfuoqVVd+17R8zNDlzVYmIi9qyb2wOk002NsmSTDymkIygDUH7A==", "dev": true, "requires": { "@babel/helper-regex": "^7.4.4", @@ -391,57 +391,57 @@ } }, "@babel/helper-define-map": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.7.0.tgz", - "integrity": "sha512-kPKWPb0dMpZi+ov1hJiwse9dWweZsz3V9rP4KdytnX1E7z3cTNmFGglwklzFPuqIcHLIY3bgKSs4vkwXXdflQA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.7.4.tgz", + "integrity": "sha512-v5LorqOa0nVQUvAUTUF3KPastvUt/HzByXNamKQ6RdJRTV7j8rLL+WB5C/MzzWAwOomxDhYFb1wLLxHqox86lg==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.7.0", - "@babel/types": "^7.7.0", + "@babel/helper-function-name": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -452,94 +452,94 @@ } }, "@babel/helper-explode-assignable-expression": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.4.tgz", + "integrity": "sha512-2/SicuFrNSXsZNBxe5UGdLr+HZg+raWBLE9vC98bdYOKX/U6PY0mdGlYUJdtTDPSU0Lw0PNbKKDpwYHJLn2jLg==", "dev": true, "requires": { - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.0", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -579,18 +579,18 @@ } }, "@babel/helper-hoist-variables": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.4.tgz", + "integrity": "sha512-wQC4xyvc1Jo/FnLirL6CEgPgPCa8M74tOdjWpRhQYapz5JC7u3NYU1zCVoVAGCE3EaIP9T1A3iW0WLJ+reZlpQ==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" }, "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -601,18 +601,18 @@ } }, "@babel/helper-member-expression-to-functions": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.4.tgz", + "integrity": "sha512-9KcA1X2E3OjXl/ykfMMInBK+uVdfIVakVe7W7Lg3wfXUNyS3Q1HWLFRwZIjhqiCGbslummPDnmb7vIekS0C1vw==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" }, "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -623,67 +623,71 @@ } }, "@babel/helper-module-imports": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz", - "integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz", + "integrity": "sha512-dGcrX6K9l8258WFjyDLJwuVKxR4XZfU0/vTUgOQYWEnRD8mgr+p4d6fCUMq/ys0h4CCt/S5JhbvtyErjWouAUQ==", "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "^7.7.4" + }, + "dependencies": { + "@babel/types": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/helper-module-transforms": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.4.tgz", + "integrity": "sha512-ehGBu4mXrhs0FxAqN8tWkzF8GSIGAiEumu4ONZ/hD9M88uHcD+Yu2ttKfOCgwzoesJOJrtQh7trI5YPbRtMmnA==", "dev": true, "requires": { - "@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", + "@babel/helper-module-imports": "^7.7.4", + "@babel/helper-simple-access": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -694,18 +698,18 @@ } }, "@babel/helper-optimise-call-expression": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz", + "integrity": "sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" }, "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -731,97 +735,97 @@ } }, "@babel/helper-remap-async-to-generator": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.4.tgz", + "integrity": "sha512-Sk4xmtVdM9sA/jCI80f+KS+Md+ZHIpjuqmYPk1M7F/upHou5e4ReYmExAiu6PVe65BhJPZA2CY9x9k4BqE5klw==", "dev": true, "requires": { - "@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-annotate-as-pure": "^7.7.4", + "@babel/helper-wrap-function": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.0", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -841,96 +845,96 @@ } }, "@babel/helper-replace-supers": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.7.4.tgz", + "integrity": "sha512-pP0tfgg9hsZWo5ZboYGuBn/bbYT/hdLPVSS4NMmiRJdwWhP0IznPwN9AE1JwyGsjSPLC364I0Qh5p+EPkGPNpg==", "dev": true, "requires": { - "@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-member-expression-to-functions": "^7.7.4", + "@babel/helper-optimise-call-expression": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.0", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -950,36 +954,36 @@ } }, "@babel/helper-simple-access": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.7.0.tgz", - "integrity": "sha512-AJ7IZD7Eem3zZRuj5JtzFAptBw7pMlS3y8Qv09vaBWoFsle0d1kAn5Wq6Q9MyBXITPOKnxwkZKoAm4bopmv26g==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.7.4.tgz", + "integrity": "sha512-zK7THeEXfan7UlWsG2A6CI/L9jVnI5+xxKZOdej39Y0YtDYKx9raHk5F2EtK9K8DHRTihYwg20ADt9S36GR78A==", "dev": true, "requires": { - "@babel/template": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -999,96 +1003,96 @@ } }, "@babel/helper-wrap-function": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.7.4.tgz", + "integrity": "sha512-VsfzZt6wmsocOaVU0OokwrIytHND55yvyT4BPB9AIIgwr8+x7617hetdJTsuGwygN5RC6mxA9EJztTjuwm2ofg==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.7.0", - "@babel/template": "^7.7.0", - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/helper-function-name": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/generator": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.0.tgz", - "integrity": "sha512-1wdJ6UxHyL1XoJQ119JmvuRX27LRih7iYStMPZOWAjQqeAabFg3dYXKMpgihma+to+0ADsTVVt6oRyUxWZw6Mw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.0", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -1108,95 +1112,95 @@ } }, "@babel/helpers": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.7.0.tgz", - "integrity": "sha512-VnNwL4YOhbejHb7x/b5F39Zdg5vIQpUUNzJwx0ww1EcVRt41bbGRZWhAURrfY32T5zTT3qwNOQFWpn+P0i0a2g==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.7.4.tgz", + "integrity": "sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg==", "dev": true, "requires": { - "@babel/template": "^7.7.0", - "@babel/traverse": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/template": "^7.7.4", + "@babel/traverse": "^7.7.4", + "@babel/types": "^7.7.4" }, "dependencies": { "@babel/generator": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.2.tgz", - "integrity": "sha512-WthSArvAjYLz4TcbKOi88me+KmDJdKSlfwwN8CnUYn9jBkzhq0ZEPuBfkAWIvjJ3AdEV1Cf/+eSQTnp3IDJKlQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", + "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", "dev": true, "requires": { - "@babel/types": "^7.7.2", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.2.tgz", - "integrity": "sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@babel/traverse": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.2.tgz", - "integrity": "sha512-TM01cXib2+rgIZrGJOLaHV/iZUAxf4A0dt5auY6KNZ+cm6aschuJGqKJM3ROTt3raPUdIDk9siAufIFEleRwtw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", + "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", "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", + "@babel/generator": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -1233,98 +1237,109 @@ "dev": true }, "@babel/plugin-proposal-async-generator-functions": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.4.tgz", + "integrity": "sha512-1ypyZvGRXriY/QP668+s8sFr2mqinhkRDMPSQLNghCQE+GAkFtp+wkHVvg2+Hdki8gwP+NFzJBJ/N1BfzCCDEw==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-remap-async-to-generator": "^7.7.0", - "@babel/plugin-syntax-async-generators": "^7.2.0" + "@babel/helper-remap-async-to-generator": "^7.7.4", + "@babel/plugin-syntax-async-generators": "^7.7.4" } }, "@babel/plugin-proposal-class-properties": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.7.4.tgz", + "integrity": "sha512-EcuXeV4Hv1X3+Q1TsuOmyyxeTRiSqurGJ26+I/FW1WbymmRRapVORm6x1Zl3iDIHyRxEs+VXWp6qnlcfcJSbbw==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.7.0", + "@babel/helper-create-class-features-plugin": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-proposal-dynamic-import": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.4.tgz", + "integrity": "sha512-StH+nGAdO6qDB1l8sZ5UBV8AC3F2VW2I8Vfld73TMKyptMU9DY5YsJAS8U81+vEtxcH3Y/La0wG0btDrhpnhjQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.2.0" + "@babel/plugin-syntax-dynamic-import": "^7.7.4" } }, "@babel/plugin-proposal-json-strings": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz", - "integrity": "sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.7.4.tgz", + "integrity": "sha512-wQvt3akcBTfLU/wYoqm/ws7YOAQKu8EVJEvHip/mzkNtjaclQoCCIqKXFP5/eyfnfbQCDV3OLRIK3mIVyXuZlw==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-json-strings": "^7.2.0" + "@babel/plugin-syntax-json-strings": "^7.7.4" } }, "@babel/plugin-proposal-object-rest-spread": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz", - "integrity": "sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz", + "integrity": "sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-object-rest-spread": "^7.2.0" + "@babel/plugin-syntax-object-rest-spread": "^7.7.4" + }, + "dependencies": { + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz", + "integrity": "sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + } } }, "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz", - "integrity": "sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.7.4.tgz", + "integrity": "sha512-DyM7U2bnsQerCQ+sejcTNZh8KQEUuC3ufzdnVnSiUv/qoGJp2Z3hanKL18KDhsBT5Wj6a7CMT5mdyCNJsEaA9w==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-optional-catch-binding": "^7.2.0" + "@babel/plugin-syntax-optional-catch-binding": "^7.7.4" } }, "@babel/plugin-proposal-unicode-property-regex": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz", + "integrity": "sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-create-regexp-features-plugin": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-syntax-async-generators": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz", - "integrity": "sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.7.4.tgz", + "integrity": "sha512-Li4+EjSpBgxcsmeEF8IFcfV/+yJGxHXDirDkEoyFjumuwbmfCVHUt0HuowD/iGM7OhIRyXJH9YXxqiH6N815+g==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-syntax-dynamic-import": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz", - "integrity": "sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.7.4.tgz", + "integrity": "sha512-jHQW0vbRGvwQNgyVxwDh4yuXu4bH1f5/EICJLAhl1SblLs2CDhrsmCk+v5XLdE9wxtAFRyxx+P//Iw+a5L/tTg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-syntax-json-strings": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz", - "integrity": "sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.7.4.tgz", + "integrity": "sha512-QpGupahTQW1mHRXddMG5srgpHWqRLwJnJZKXTigB9RPFCCGbDGCgBeM/iC82ICXp414WeYx/tD54w7M2qRqTMg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" @@ -1340,87 +1355,65 @@ } }, "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz", - "integrity": "sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.7.4.tgz", + "integrity": "sha512-4ZSuzWgFxqHRE31Glu+fEr/MirNZOMYmD/0BhBWyLyOOQz/gTAl7QmWm2hX1QxEIXsr2vkdlwxIzTyiYRC4xcQ==", "dev": true, "requires": { "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.4.tgz", + "integrity": "sha512-wdsOw0MvkL1UIgiQ/IFr3ETcfv1xb8RMM0H9wbiDyLaJFyiDg5oZvDLCXosIXmFeIlweML5iOBXAkqddkYNizg==", "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", - "integrity": "sha512-dGwbSMA1YhVS8+31CnPR7LB4pcbrzcV99wQzby4uAfrkZPYZlQ7ImwdpzLqi6Z6IL02b8IAL379CaMwo0x5Lag==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.7.4.tgz", + "integrity": "sha512-77blgY18Hud4NM1ggTA8xVT/dBENQf17OpiToSa2jSmEY3fWXD2jwrdVlO4kq5yzUTeF15WSQ6b4fByNvJcjpQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-arrow-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz", - "integrity": "sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.7.4.tgz", + "integrity": "sha512-zUXy3e8jBNPiffmqkHRNDdZM2r8DWhCB7HhcoyZjiK1TxYEluLHAvQuYnTT+ARqRpabWqy/NHkO6e3MsYB5YfA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-async-to-generator": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.4.tgz", + "integrity": "sha512-zpUTZphp5nHokuy8yLlyafxCJ0rSlFoSHypTUWgpdwoDXWQcseaect7cJ8Ppk6nunOM6+5rPMkod4OYKPR5MUg==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.7.0", + "@babel/helper-module-imports": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.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/helper-remap-async-to-generator": "^7.7.4" } }, "@babel/plugin-transform-block-scoped-functions": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz", - "integrity": "sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.7.4.tgz", + "integrity": "sha512-kqtQzwtKcpPclHYjLK//3lH8OFsCDuDJBaFhVwf8kqdnF6MN4l618UDlcA7TfRs3FayrHj+svYnSX8MC9zmUyQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-block-scoping": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.3.tgz", - "integrity": "sha512-7hvrg75dubcO3ZI2rjYTzUrEuh1E9IyDEhhB6qfcooxhDA33xx2MasuLVgdxzcP6R/lipAC6n9ub9maNW6RKdw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.7.4.tgz", + "integrity": "sha512-2VBe9u0G+fDt9B5OV5DQH4KBf5DoiNkwFKOz0TCvBWvdAN2rOykCTkrL+jTLxfCAm76l9Qo5OqL7HBOx2dWggg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -1428,71 +1421,71 @@ } }, "@babel/plugin-transform-classes": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.0.tgz", - "integrity": "sha512-/b3cKIZwGeUesZheU9jNYcwrEA7f/Bo4IdPmvp7oHgvks2majB5BoT5byAql44fiNQYOPzhk2w8DbgfuafkMoA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.4.tgz", + "integrity": "sha512-sK1mjWat7K+buWRuImEzjNf68qrKcrddtpQo3swi9j7dUcG6y6R6+Di039QN2bD1dykeswlagupEmpOatFHHUg==", "dev": true, "requires": { - "@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-annotate-as-pure": "^7.7.4", + "@babel/helper-define-map": "^7.7.4", + "@babel/helper-function-name": "^7.7.4", + "@babel/helper-optimise-call-expression": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.7.0", - "@babel/helper-split-export-declaration": "^7.7.0", + "@babel/helper-replace-supers": "^7.7.4", + "@babel/helper-split-export-declaration": "^7.7.4", "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", + "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -1503,112 +1496,112 @@ } }, "@babel/plugin-transform-computed-properties": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz", - "integrity": "sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.7.4.tgz", + "integrity": "sha512-bSNsOsZnlpLLyQew35rl4Fma3yKWqK3ImWMSC/Nc+6nGjC9s5NFWAer1YQ899/6s9HxO2zQC1WoFNfkOqRkqRQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-destructuring": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.6.0.tgz", - "integrity": "sha512-2bGIS5P1v4+sWTCnKNDZDxbGvEqi0ijeqM/YqHtVGrvG2y0ySgnEEhXErvE9dA0bnIzY9bIzdFK0jFA46ASIIQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.7.4.tgz", + "integrity": "sha512-4jFMXI1Cu2aXbcXXl8Lr6YubCn6Oc7k9lLsu8v61TZh+1jny2BWmdtvY9zSUlLdGUvcy9DMAWyZEOqjsbeg/wA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-dotall-regex": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz", + "integrity": "sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-create-regexp-features-plugin": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-duplicate-keys": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz", - "integrity": "sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.7.4.tgz", + "integrity": "sha512-g1y4/G6xGWMD85Tlft5XedGaZBCIVN+/P0bs6eabmcPP9egFleMAo65OOjlhcz1njpwagyY3t0nsQC9oTFegJA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-exponentiation-operator": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz", - "integrity": "sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.7.4.tgz", + "integrity": "sha512-MCqiLfCKm6KEA1dglf6Uqq1ElDIZwFuzz1WH5mTf8k2uQSxEJMbOIEh7IZv7uichr7PMfi5YVSrr1vz+ipp7AQ==", "dev": true, "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.1.0", + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-for-of": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz", - "integrity": "sha512-9T/5Dlr14Z9TIEXLXkt8T1DU7F24cbhwhMNUziN3hB1AXoZcdzPcTiKGRn/6iOymDqtTKWnr/BtRKN9JwbKtdQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.7.4.tgz", + "integrity": "sha512-zZ1fD1B8keYtEcKF+M1TROfeHTKnijcVQm0yO/Yu1f7qoDoxEIc/+GX6Go430Bg84eM/xwPFp0+h4EbZg7epAA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-function-name": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.4.tgz", + "integrity": "sha512-E/x09TvjHNhsULs2IusN+aJNRV5zKwxu1cpirZyRPw+FyyIKEHPXTsadj48bVpc1R5Qq1B5ZkzumuFLytnbT6g==", "dev": true, "requires": { - "@babel/helper-function-name": "^7.7.0", + "@babel/helper-function-name": "^7.7.4", "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", + "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", "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": "^7.7.4", + "@babel/template": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/types": "^7.7.4" } }, "@babel/parser": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.0.tgz", - "integrity": "sha512-GqL+Z0d7B7ADlQBMXlJgvXEbtt5qlqd1YQ5fr12hTSfh7O/vgrEIvJxU2e7aSVrEUn75zTZ6Nd0s8tthrlZnrQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", + "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", "dev": true }, "@babel/template": { - "version": "7.7.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.0.tgz", - "integrity": "sha512-OKcwSYOW1mhWbnTBgQY5lvg1Fxg+VyfQGjcBduZFljfc044J5iDlnDSfhQ867O17XHiSCxYHUxHg2b7ryitbUQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", + "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.0", - "@babel/types": "^7.7.0" + "@babel/parser": "^7.7.4", + "@babel/types": "^7.7.4" } }, "@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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -1619,167 +1612,189 @@ } }, "@babel/plugin-transform-literals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz", - "integrity": "sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.7.4.tgz", + "integrity": "sha512-X2MSV7LfJFm4aZfxd0yLVFrEXAgPqYoDG53Br/tCKiKYfX0MjVjQeWPIhPHHsCqzwQANq+FLN786fF5rgLS+gw==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-member-expression-literals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz", - "integrity": "sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.7.4.tgz", + "integrity": "sha512-9VMwMO7i69LHTesL0RdGy93JU6a+qOPuvB4F4d0kR0zyVjJRVJRaoaGjhtki6SzQUu8yen/vxPKN6CWnCUw6bA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-modules-amd": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz", - "integrity": "sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.4.tgz", + "integrity": "sha512-/542/5LNA18YDtg1F+QHvvUSlxdvjZoD/aldQwkq+E3WCkbEjNSN9zdrOXaSlfg3IfGi22ijzecklF/A7kVZFQ==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-module-transforms": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-commonjs": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.4.tgz", + "integrity": "sha512-k8iVS7Jhc367IcNF53KCwIXtKAH7czev866ThsTgy8CwlXjnKZna2VHwChglzLleYrcHz1eQEIJlGRQxB53nqA==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.7.0", + "@babel/helper-module-transforms": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-simple-access": "^7.7.0", + "@babel/helper-simple-access": "^7.7.4", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-systemjs": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.4.tgz", + "integrity": "sha512-y2c96hmcsUi6LrMqvmNDPBBiGCiQu0aYqpHatVVu6kD4mFEXKjyNxd/drc18XXAf9dv7UXjrZwBVmTTGaGP8iw==", "dev": true, "requires": { - "@babel/helper-hoist-variables": "^7.7.0", + "@babel/helper-hoist-variables": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-umd": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.4.tgz", + "integrity": "sha512-u2B8TIi0qZI4j8q4C51ktfO7E3cQ0qnaXFI1/OXITordD40tt17g/sXqgNNCcMTcBFKrUPcGDx+TBJuZxLx7tw==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.7.0", + "@babel/helper-module-transforms": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-named-capturing-groups-regex": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.4.tgz", + "integrity": "sha512-jBUkiqLKvUWpv9GLSuHUFYdmHg0ujC1JEYoZUfeOOfNydZXp1sXObgyPatpcwjWgsdBGsagWW0cdJpX/DO2jMw==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.7.0" + "@babel/helper-create-regexp-features-plugin": "^7.7.4" } }, "@babel/plugin-transform-new-target": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.4.tgz", - "integrity": "sha512-r1z3T2DNGQwwe2vPGZMBNjioT2scgWzK9BCnDEh+46z8EEwXBq24uRzd65I7pjtugzPSj921aM15RpESgzsSuA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.7.4.tgz", + "integrity": "sha512-CnPRiNtOG1vRodnsyGX37bHQleHE14B9dnnlgSeEs3ek3fHN1A1SScglTCg1sfbe7sRQ2BUcpgpTpWSfMKz3gg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-object-super": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.5.5.tgz", - "integrity": "sha512-un1zJQAhSosGFBduPgN/YFNvWVpRuHKU7IHBglLoLZsGmruJPOo6pbInneflUdmq7YvSVqhpPs5zdBvLnteltQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.7.4.tgz", + "integrity": "sha512-ho+dAEhC2aRnff2JCA0SAK7V2R62zJd/7dmtoe7MHcso4C2mS+vZjn1Pb1pCVZvJs1mgsvv5+7sT+m3Bysb6eg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/helper-replace-supers": "^7.5.5" + "@babel/helper-replace-supers": "^7.7.4" } }, "@babel/plugin-transform-parameters": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.4.tgz", - "integrity": "sha512-oMh5DUO1V63nZcu/ZVLQFqiihBGo4OpxJxR1otF50GMeCLiRx5nUdtokd+u9SuVJrvvuIh9OosRFPP4pIPnwmw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz", + "integrity": "sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw==", "dev": true, "requires": { - "@babel/helper-call-delegate": "^7.4.4", - "@babel/helper-get-function-arity": "^7.0.0", + "@babel/helper-call-delegate": "^7.7.4", + "@babel/helper-get-function-arity": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" + }, + "dependencies": { + "@babel/helper-get-function-arity": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", + "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", + "dev": true, + "requires": { + "@babel/types": "^7.7.4" + } + }, + "@babel/types": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.13", + "to-fast-properties": "^2.0.0" + } + } } }, "@babel/plugin-transform-property-literals": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz", - "integrity": "sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.7.4.tgz", + "integrity": "sha512-MatJhlC4iHsIskWYyawl53KuHrt+kALSADLQQ/HkhTjX954fkxIEh4q5slL4oRAnsm/eDoZ4q0CIZpcqBuxhJQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-regenerator": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.4.tgz", + "integrity": "sha512-e7MWl5UJvmPEwFJTwkBlPmqixCtr9yAASBqff4ggXTNicZiwbF8Eefzm6NVgfiBp7JdAGItecnctKTgH44q2Jw==", "dev": true, "requires": { "regenerator-transform": "^0.14.0" } }, "@babel/plugin-transform-reserved-words": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz", - "integrity": "sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.7.4.tgz", + "integrity": "sha512-OrPiUB5s5XvkCO1lS7D8ZtHcswIC57j62acAnJZKqGGnHP+TIc/ljQSrgdX/QyOTdEK5COAhuc820Hi1q2UgLQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-runtime": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.6.2.tgz", - "integrity": "sha512-cqULw/QB4yl73cS5Y0TZlQSjDvNkzDbu0FurTZyHlJpWE5T3PCMdnyV+xXoH1opr1ldyHODe3QAX3OMAii5NxA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.4.tgz", + "integrity": "sha512-O8kSkS5fP74Ad/8pfsCMGa8sBRdLxYoSReaARRNSz3FbFQj3z/QUvoUmJ28gn9BO93YfnXc3j+Xyaqe8cKDNBQ==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-module-imports": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", "resolve": "^1.8.1", "semver": "^5.5.1" } }, "@babel/plugin-transform-shorthand-properties": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz", - "integrity": "sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.7.4.tgz", + "integrity": "sha512-q+suddWRfIcnyG5YiDP58sT65AJDZSUhXQDZE3r04AuqD6d/XLaQPPXSBzP2zGerkgBivqtQm9XKGLuHqBID6Q==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-spread": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.6.2.tgz", - "integrity": "sha512-DpSvPFryKdK1x+EDJYCy28nmAaIMdxmhot62jAXF/o99iA33Zj2Lmcp3vDmz+MUh0LNYVPvfj5iC3feb3/+PFg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.7.4.tgz", + "integrity": "sha512-8OSs0FLe5/80cndziPlg4R0K6HcWSM0zyNhHhLsmw/Nc5MaA49cAsnoJ/t/YZf8qkG7fD+UjTRaApVDB526d7Q==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-sticky-regex": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz", - "integrity": "sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.7.4.tgz", + "integrity": "sha512-Ls2NASyL6qtVe1H1hXts9yuEeONV2TJZmplLONkMPUG158CtmnrzW5Q5teibM5UVOFjG0D3IC5mzXR6pPpUY7A==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -1787,97 +1802,97 @@ } }, "@babel/plugin-transform-template-literals": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.4.4.tgz", - "integrity": "sha512-mQrEC4TWkhLN0z8ygIvEL9ZEToPhG5K7KDW3pzGqOfIGZ28Jb0POUkeWcoz8HnHvhFy6dwAT1j8OzqN8s804+g==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.7.4.tgz", + "integrity": "sha512-sA+KxLwF3QwGj5abMHkHgshp9+rRz+oY9uoRil4CyLtgEuE/88dpkeWgNk5qKVsJE9iSfly3nvHapdRiIS2wnQ==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-annotate-as-pure": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-typeof-symbol": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz", - "integrity": "sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.7.4.tgz", + "integrity": "sha512-KQPUQ/7mqe2m0B8VecdyaW5XcQYaePyl9R7IsKd+irzj6jvbhoGnRE+M0aNkyAzI07VfUQ9266L5xMARitV3wg==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/plugin-transform-typescript": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.2.tgz", - "integrity": "sha512-UWhDaJRqdPUtdK1s0sKYdoRuqK0NepjZto2UZltvuCgMoMZmdjhgz5hcRokie/3aYEaSz3xvusyoayVaq4PjRg==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.4.tgz", + "integrity": "sha512-X8e3tcPEKnwwPVG+vP/vSqEShkwODOEeyQGod82qrIuidwIrfnsGn11qPM1jBLF4MqguTXXYzm58d0dY+/wdpg==", "dev": true, "requires": { - "@babel/helper-create-class-features-plugin": "^7.7.0", + "@babel/helper-create-class-features-plugin": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-syntax-typescript": "^7.2.0" + "@babel/plugin-syntax-typescript": "^7.7.4" } }, "@babel/plugin-transform-unicode-regex": { - "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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.4.tgz", + "integrity": "sha512-N77UUIV+WCvE+5yHw+oks3m18/umd7y392Zv7mYTpFqHtkpcc+QUz+gLJNTWVlWROIWeLqY0f3OjZxV5TcXnRw==", "dev": true, "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.7.0", + "@babel/helper-create-regexp-features-plugin": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.0" } }, "@babel/preset-env": { - "version": "7.7.1", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.1.tgz", - "integrity": "sha512-/93SWhi3PxcVTDpSqC+Dp4YxUu3qZ4m7I76k0w73wYfn7bGVuRIO4QUz95aJksbS+AD1/mT1Ie7rbkT0wSplaA==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.4.tgz", + "integrity": "sha512-Dg+ciGJjwvC1NIe/DGblMbcGq1HOtKbw8RLl4nIjlfcILKEOkWT/vRqPpumswABEBVudii6dnVwrBtzD7ibm4g==", "dev": true, "requires": { - "@babel/helper-module-imports": "^7.7.0", + "@babel/helper-module-imports": "^7.7.4", "@babel/helper-plugin-utils": "^7.0.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.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.7.0", - "@babel/plugin-transform-block-scoped-functions": "^7.2.0", - "@babel/plugin-transform-block-scoping": "^7.6.3", - "@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.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.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.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.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.7.0", - "@babel/types": "^7.7.1", + "@babel/plugin-proposal-async-generator-functions": "^7.7.4", + "@babel/plugin-proposal-dynamic-import": "^7.7.4", + "@babel/plugin-proposal-json-strings": "^7.7.4", + "@babel/plugin-proposal-object-rest-spread": "^7.7.4", + "@babel/plugin-proposal-optional-catch-binding": "^7.7.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.7.4", + "@babel/plugin-syntax-async-generators": "^7.7.4", + "@babel/plugin-syntax-dynamic-import": "^7.7.4", + "@babel/plugin-syntax-json-strings": "^7.7.4", + "@babel/plugin-syntax-object-rest-spread": "^7.7.4", + "@babel/plugin-syntax-optional-catch-binding": "^7.7.4", + "@babel/plugin-syntax-top-level-await": "^7.7.4", + "@babel/plugin-transform-arrow-functions": "^7.7.4", + "@babel/plugin-transform-async-to-generator": "^7.7.4", + "@babel/plugin-transform-block-scoped-functions": "^7.7.4", + "@babel/plugin-transform-block-scoping": "^7.7.4", + "@babel/plugin-transform-classes": "^7.7.4", + "@babel/plugin-transform-computed-properties": "^7.7.4", + "@babel/plugin-transform-destructuring": "^7.7.4", + "@babel/plugin-transform-dotall-regex": "^7.7.4", + "@babel/plugin-transform-duplicate-keys": "^7.7.4", + "@babel/plugin-transform-exponentiation-operator": "^7.7.4", + "@babel/plugin-transform-for-of": "^7.7.4", + "@babel/plugin-transform-function-name": "^7.7.4", + "@babel/plugin-transform-literals": "^7.7.4", + "@babel/plugin-transform-member-expression-literals": "^7.7.4", + "@babel/plugin-transform-modules-amd": "^7.7.4", + "@babel/plugin-transform-modules-commonjs": "^7.7.4", + "@babel/plugin-transform-modules-systemjs": "^7.7.4", + "@babel/plugin-transform-modules-umd": "^7.7.4", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4", + "@babel/plugin-transform-new-target": "^7.7.4", + "@babel/plugin-transform-object-super": "^7.7.4", + "@babel/plugin-transform-parameters": "^7.7.4", + "@babel/plugin-transform-property-literals": "^7.7.4", + "@babel/plugin-transform-regenerator": "^7.7.4", + "@babel/plugin-transform-reserved-words": "^7.7.4", + "@babel/plugin-transform-shorthand-properties": "^7.7.4", + "@babel/plugin-transform-spread": "^7.7.4", + "@babel/plugin-transform-sticky-regex": "^7.7.4", + "@babel/plugin-transform-template-literals": "^7.7.4", + "@babel/plugin-transform-typeof-symbol": "^7.7.4", + "@babel/plugin-transform-unicode-regex": "^7.7.4", + "@babel/types": "^7.7.4", "browserslist": "^4.6.0", "core-js-compat": "^3.1.1", "invariant": "^2.2.2", @@ -1885,19 +1900,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==", + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz", + "integrity": "sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==", "dev": true, "requires": { - "@babel/types": "^7.7.0" + "@babel/helper-plugin-utils": "^7.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==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", + "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", "dev": true, "requires": { "esutils": "^2.0.2", @@ -1908,19 +1923,19 @@ } }, "@babel/preset-typescript": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.2.tgz", - "integrity": "sha512-1B4HthAelaLGfNRyrWqJtBEjXX1ulThCrLQ5B2VOtEAznWFIFXFJahgXImqppy66lx/Oh+cOSCQdJzZqh2Jh5g==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.4.tgz", + "integrity": "sha512-rqrjxfdiHPsnuPur0jKrIIGQCIgoTWMTjlbWE69G4QJ6TIOVnnRnIJhUxNTL/VwDmEAVX08Tq3B1nirer5341w==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-transform-typescript": "^7.7.2" + "@babel/plugin-transform-typescript": "^7.7.4" } }, "@babel/runtime": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.2.tgz", - "integrity": "sha512-JONRbXbTXc9WQE2mAZd1p0Z3DZ/6vaQIkgYMSTP3KjRCyd7rCZCcfhCyX+YjwcKxcZ82UrxbRD358bpExNgrjw==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.4.tgz", + "integrity": "sha512-r24eVUUr0QqNZa+qrImUk8fn5SPhHq+IfYvIoIMg0do3GdK9sMdiLKP3GYVVaxpPKORgm8KRKaNTEhAjgIpLMw==", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" @@ -3392,14 +3407,14 @@ } }, "browserslist": { - "version": "4.7.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.2.tgz", - "integrity": "sha512-uZavT/gZXJd2UTi9Ov7/Z340WOSQ3+m1iBVRUknf+okKxonL9P83S3ctiBDtuRmRu8PiCHjqyueqQ9HYlJhxiw==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.3.tgz", + "integrity": "sha512-jWvmhqYpx+9EZm/FxcZSbUZyDEvDTLDi3nSAKbzEkyWvtI0mNSmUosey+5awDW1RUlrgXbQb5A6qY1xQH9U6MQ==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001004", - "electron-to-chromium": "^1.3.295", - "node-releases": "^1.1.38" + "caniuse-lite": "^1.0.30001010", + "electron-to-chromium": "^1.3.306", + "node-releases": "^1.1.40" } }, "bs-logger": { @@ -3572,9 +3587,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001008", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001008.tgz", - "integrity": "sha512-b8DJyb+VVXZGRgJUa30cbk8gKHZ3LOZTBLaUEEVr2P4xpmFigOCc62CO4uzquW641Ouq1Rm9N+rWLWdSYDaDIw==", + "version": "1.0.30001011", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001011.tgz", + "integrity": "sha512-h+Eqyn/YA6o6ZTqpS86PyRmNWOs1r54EBDcd2NTwwfsXQ8re1B38SnB+p2RKF8OUsyEIjeDU8XGec1RGO/wYCg==", "dev": true }, "capture-exit": { @@ -3966,12 +3981,12 @@ "dev": true }, "core-js-compat": { - "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==", + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.2.tgz", + "integrity": "sha512-W0Aj+LM3EAxxjD0Kp2o4be8UlnxIZHNupBv2znqrheR4aY2nOn91794k/xoSp+SxqqriiZpTsSwBtZr60cbkwQ==", "dev": true, "requires": { - "browserslist": "^4.7.2", + "browserslist": "^4.7.3", "semver": "^6.3.0" }, "dependencies": { @@ -4449,9 +4464,9 @@ } }, "electron-to-chromium": { - "version": "1.3.303", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.303.tgz", - "integrity": "sha512-xDFPmMjJ0gQBsVwspB0bjcbFn3MVcvU0sxXYmh1UMbZ6rDogQVM3vSyOvTO4rym1KlnJIU6nqzK3qs0yKudmjw==", + "version": "1.3.311", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.311.tgz", + "integrity": "sha512-7GH6RKCzziLzJ9ejmbiBEdzHZsc6C3eRpav14dmRfTWMpNgMqpP1ukw/FU/Le2fR+ep642naq7a23xNdmh2s+A==", "dev": true }, "elliptic": { @@ -8030,9 +8045,9 @@ } }, "node-releases": { - "version": "1.1.39", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.39.tgz", - "integrity": "sha512-8MRC/ErwNCHOlAFycy9OPca46fQYUjbJRDcZTHVWIGXIjYLM73k70vv3WkYutVnM4cCo4hE0MqBVVZjP6vjISA==", + "version": "1.1.41", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.41.tgz", + "integrity": "sha512-+IctMa7wIs8Cfsa8iYzeaLTFwv5Y4r5jZud+4AnfymzeEXKBCavFX0KBgzVaPVqf0ywa6PrO8/b+bPqdwjGBSg==", "dev": true, "requires": { "semver": "^6.3.0" diff --git a/package.json b/package.json index a4521a5..a33f58a 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,14 @@ "author": "Ricardo Ambrogi", "license": "MIT", "devDependencies": { - "@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/plugin-transform-typescript": "7.7.2", - "@babel/preset-env": "7.7.1", - "@babel/preset-typescript": "7.7.2", - "@babel/runtime": "7.7.2", + "@babel/core": "7.7.4", + "@babel/plugin-proposal-class-properties": "7.7.4", + "@babel/plugin-proposal-object-rest-spread": "7.7.4", + "@babel/plugin-transform-runtime": "7.7.4", + "@babel/plugin-transform-typescript": "7.7.4", + "@babel/preset-env": "7.7.4", + "@babel/preset-typescript": "7.7.4", + "@babel/runtime": "7.7.4", "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.2", diff --git a/yarn.lock b/yarn.lock index 246d846..ec35e54 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,18 +16,18 @@ dependencies: "@babel/highlight" "^7.0.0" -"@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== +"@babel/core@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.4.tgz#37e864532200cb6b50ee9a4045f5f817840166ab" + integrity sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ== dependencies: "@babel/code-frame" "^7.5.5" - "@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" + "@babel/generator" "^7.7.4" + "@babel/helpers" "^7.7.4" + "@babel/parser" "^7.7.4" + "@babel/template" "^7.7.4" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" convert-source-map "^1.7.0" debug "^4.1.0" json5 "^2.1.0" @@ -67,104 +67,76 @@ source-map "^0.5.0" trim-right "^1.0.1" -"@babel/generator@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.5.5.tgz#873a7f936a3c89491b43536d12245b626664e3cf" - integrity sha512-ETI/4vyTSxTzGnU2c49XHv2zhExkv9JHLTwDAFz85kmcwuShvYG2H08FwgIguQf4JC75CBnXAUM5PqeF4fj0nQ== +"@babel/generator@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.4.tgz#db651e2840ca9aa66f327dcec1dc5f5fa9611369" + integrity sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg== dependencies: - "@babel/types" "^7.5.5" - jsesc "^2.5.1" - lodash "^4.17.13" - source-map "^0.5.0" - trim-right "^1.0.1" - -"@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.7.0" + "@babel/types" "^7.7.4" jsesc "^2.5.1" lodash "^4.17.13" source-map "^0.5.0" -"@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== +"@babel/helper-annotate-as-pure@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz#bb3faf1e74b74bd547e867e48f551fa6b098b6ce" + integrity sha512-2BQmQgECKzYKFPpiycoF9tlb5HA4lrVyAmLLVK177EcQAqjVLciUb2/R+n1boQ9y5ENV3uz2ZqiNw7QMBBw1Og== dependencies: - "@babel/types" "^7.7.2" - jsesc "^2.5.1" - lodash "^4.17.13" - source-map "^0.5.0" + "@babel/types" "^7.7.4" -"@babel/helper-annotate-as-pure@^7.0.0": - version "7.0.0" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32" - integrity sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q== +"@babel/helper-builder-binary-assignment-operator-visitor@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.4.tgz#5f73f2b28580e224b5b9bd03146a4015d6217f5f" + integrity sha512-Biq/d/WtvfftWZ9Uf39hbPBYDUo986m5Bb4zhkeYDGUllF43D+nUe5M6Vuo6/8JDK/0YX/uBdeoQpyaNhNugZQ== dependencies: - "@babel/types" "^7.0.0" + "@babel/helper-explode-assignable-expression" "^7.7.4" + "@babel/types" "^7.7.4" -"@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== +"@babel/helper-call-delegate@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.7.4.tgz#621b83e596722b50c0066f9dc37d3232e461b801" + integrity sha512-8JH9/B7J7tCYJ2PpWVpw9JhPuEVHztagNVuQAFBVFYluRMlpG7F1CgKEgGeL6KFqcsIa92ZYVj6DSc0XwmN1ZA== dependencies: - "@babel/types" "^7.7.0" + "@babel/helper-hoist-variables" "^7.7.4" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" -"@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" - integrity sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w== +"@babel/helper-create-class-features-plugin@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.7.4.tgz#fce60939fd50618610942320a8d951b3b639da2d" + integrity sha512-l+OnKACG4uiDHQ/aJT8dwpR+LhCJALxL0mJ6nzjB25e5IPwqV1VOsY7ah6UB1DG+VOXAIMtuC54rFJGiHkxjgA== dependencies: - "@babel/helper-explode-assignable-expression" "^7.1.0" - "@babel/types" "^7.0.0" - -"@babel/helper-call-delegate@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.4.4.tgz#87c1f8ca19ad552a736a7a27b1c1fcf8b1ff1f43" - integrity sha512-l79boDFJ8S1c5hvQvG+rc+wHw6IuH7YldmRKsYtpbawsxURu/paVy57FZMomGK22/JckepaikOkY0MoAmdyOlQ== - dependencies: - "@babel/helper-hoist-variables" "^7.4.4" - "@babel/traverse" "^7.4.4" - "@babel/types" "^7.4.4" - -"@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.7.0" - "@babel/helper-member-expression-to-functions" "^7.7.0" - "@babel/helper-optimise-call-expression" "^7.7.0" + "@babel/helper-function-name" "^7.7.4" + "@babel/helper-member-expression-to-functions" "^7.7.4" + "@babel/helper-optimise-call-expression" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-replace-supers" "^7.7.0" - "@babel/helper-split-export-declaration" "^7.7.0" + "@babel/helper-replace-supers" "^7.7.4" + "@babel/helper-split-export-declaration" "^7.7.4" -"@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== +"@babel/helper-create-regexp-features-plugin@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.4.tgz#6d5762359fd34f4da1500e4cff9955b5299aaf59" + integrity sha512-Mt+jBKaxL0zfOIWrfQpnfYCN7/rS6GKx6CCCfuoqVVd+17R8zNDlzVYmIi9qyb2wOk002NsmSTDymkIygDUH7A== dependencies: "@babel/helper-regex" "^7.4.4" regexpu-core "^4.6.0" -"@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== +"@babel/helper-define-map@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.7.4.tgz#2841bf92eb8bd9c906851546fe6b9d45e162f176" + integrity sha512-v5LorqOa0nVQUvAUTUF3KPastvUt/HzByXNamKQ6RdJRTV7j8rLL+WB5C/MzzWAwOomxDhYFb1wLLxHqox86lg== dependencies: - "@babel/helper-function-name" "^7.7.0" - "@babel/types" "^7.7.0" + "@babel/helper-function-name" "^7.7.4" + "@babel/types" "^7.7.4" lodash "^4.17.13" -"@babel/helper-explode-assignable-expression@^7.1.0": - version "7.1.0" - resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz#537fa13f6f1674df745b0c00ec8fe4e99681c8f6" - integrity sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA== +"@babel/helper-explode-assignable-expression@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.4.tgz#fa700878e008d85dc51ba43e9fb835cddfe05c84" + integrity sha512-2/SicuFrNSXsZNBxe5UGdLr+HZg+raWBLE9vC98bdYOKX/U6PY0mdGlYUJdtTDPSU0Lw0PNbKKDpwYHJLn2jLg== dependencies: - "@babel/traverse" "^7.1.0" - "@babel/types" "^7.0.0" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" "@babel/helper-function-name@^7.1.0": version "7.1.0" @@ -175,14 +147,14 @@ "@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== +"@babel/helper-function-name@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz#ab6e041e7135d436d8f0a3eca15de5b67a341a2e" + integrity sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ== 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.7.4" + "@babel/template" "^7.7.4" + "@babel/types" "^7.7.4" "@babel/helper-get-function-arity@^7.0.0": version "7.0.0" @@ -191,92 +163,52 @@ 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== +"@babel/helper-get-function-arity@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz#cb46348d2f8808e632f0ab048172130e636005f0" + integrity sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA== dependencies: - "@babel/types" "^7.7.0" + "@babel/types" "^7.7.4" -"@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" - integrity sha512-VYk2/H/BnYbZDDg39hr3t2kKyifAm1W6zHRfhx8jGjIHpQEBv9dry7oQ2f3+J703TLu69nYdxsovl0XYfcnK4w== +"@babel/helper-hoist-variables@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.4.tgz#612384e3d823fdfaaf9fce31550fe5d4db0f3d12" + integrity sha512-wQC4xyvc1Jo/FnLirL6CEgPgPCa8M74tOdjWpRhQYapz5JC7u3NYU1zCVoVAGCE3EaIP9T1A3iW0WLJ+reZlpQ== dependencies: - "@babel/types" "^7.4.4" + "@babel/types" "^7.7.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== +"@babel/helper-member-expression-to-functions@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.4.tgz#356438e2569df7321a8326644d4b790d2122cb74" + integrity sha512-9KcA1X2E3OjXl/ykfMMInBK+uVdfIVakVe7W7Lg3wfXUNyS3Q1HWLFRwZIjhqiCGbslummPDnmb7vIekS0C1vw== dependencies: - "@babel/types" "^7.7.0" + "@babel/types" "^7.7.4" -"@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" - integrity sha512-5qZ3D1uMclSNqYcXqiHoA0meVdv+xUEex9em2fqMnrk/scphGlGgg66zjMrPJESPwrFJ6sbfFQYUSa0Mz7FabA== +"@babel/helper-module-imports@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz#e5a92529f8888bf319a6376abfbd1cebc491ad91" + integrity sha512-dGcrX6K9l8258WFjyDLJwuVKxR4XZfU0/vTUgOQYWEnRD8mgr+p4d6fCUMq/ys0h4CCt/S5JhbvtyErjWouAUQ== dependencies: - "@babel/types" "^7.5.5" + "@babel/types" "^7.7.4" -"@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== +"@babel/helper-module-transforms@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.7.4.tgz#8d7cdb1e1f8ea3d8c38b067345924ac4f8e0879a" + integrity sha512-ehGBu4mXrhs0FxAqN8tWkzF8GSIGAiEumu4ONZ/hD9M88uHcD+Yu2ttKfOCgwzoesJOJrtQh7trI5YPbRtMmnA== 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" - integrity sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A== - dependencies: - "@babel/types" "^7.0.0" - -"@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== - dependencies: - "@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.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" + "@babel/helper-module-imports" "^7.7.4" + "@babel/helper-simple-access" "^7.7.4" + "@babel/helper-split-export-declaration" "^7.7.4" + "@babel/template" "^7.7.4" + "@babel/types" "^7.7.4" 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" - integrity sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g== +"@babel/helper-optimise-call-expression@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz#034af31370d2995242aa4df402c3b7794b2dcdf2" + integrity sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg== 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/types" "^7.7.4" "@babel/helper-plugin-utils@^7.0.0": version "7.0.0" @@ -290,52 +222,34 @@ dependencies: lodash "^4.17.11" -"@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== +"@babel/helper-remap-async-to-generator@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.4.tgz#c68c2407350d9af0e061ed6726afb4fff16d0234" + integrity sha512-Sk4xmtVdM9sA/jCI80f+KS+Md+ZHIpjuqmYPk1M7F/upHou5e4ReYmExAiu6PVe65BhJPZA2CY9x9k4BqE5klw== dependencies: - "@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-annotate-as-pure" "^7.7.4" + "@babel/helper-wrap-function" "^7.7.4" + "@babel/template" "^7.7.4" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" -"@babel/helper-replace-supers@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.5.5.tgz#f84ce43df031222d2bad068d2626cb5799c34bc2" - integrity sha512-XvRFWrNnlsow2u7jXDuH4jDDctkxbS7gXssrP4q2nUD606ukXHRvydj346wmNg+zAgpFx4MWf4+usfC93bElJg== +"@babel/helper-replace-supers@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.7.4.tgz#3c881a6a6a7571275a72d82e6107126ec9e2cdd2" + integrity sha512-pP0tfgg9hsZWo5ZboYGuBn/bbYT/hdLPVSS4NMmiRJdwWhP0IznPwN9AE1JwyGsjSPLC364I0Qh5p+EPkGPNpg== dependencies: - "@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.4" + "@babel/helper-optimise-call-expression" "^7.7.4" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" -"@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== +"@babel/helper-simple-access@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.7.4.tgz#a169a0adb1b5f418cfc19f22586b2ebf58a9a294" + integrity sha512-zK7THeEXfan7UlWsG2A6CI/L9jVnI5+xxKZOdej39Y0YtDYKx9raHk5F2EtK9K8DHRTihYwg20ADt9S36GR78A== 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" - integrity sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w== - dependencies: - "@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/template" "^7.7.4" + "@babel/types" "^7.7.4" "@babel/helper-split-export-declaration@^7.4.4": version "7.4.4" @@ -344,22 +258,22 @@ dependencies: "@babel/types" "^7.4.4" -"@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== +"@babel/helper-split-export-declaration@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz#57292af60443c4a3622cf74040ddc28e68336fd8" + integrity sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug== dependencies: - "@babel/types" "^7.7.0" + "@babel/types" "^7.7.4" -"@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== +"@babel/helper-wrap-function@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.7.4.tgz#37ab7fed5150e22d9d7266e830072c0cdd8baace" + integrity sha512-VsfzZt6wmsocOaVU0OokwrIytHND55yvyT4BPB9AIIgwr8+x7617hetdJTsuGwygN5RC6mxA9EJztTjuwm2ofg== dependencies: - "@babel/helper-function-name" "^7.7.0" - "@babel/template" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" + "@babel/helper-function-name" "^7.7.4" + "@babel/template" "^7.7.4" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" "@babel/helpers@^7.5.0": version "7.5.1" @@ -370,14 +284,14 @@ "@babel/traverse" "^7.5.0" "@babel/types" "^7.5.0" -"@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== +"@babel/helpers@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.7.4.tgz#62c215b9e6c712dadc15a9a0dcab76c92a940302" + integrity sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg== dependencies: - "@babel/template" "^7.7.0" - "@babel/traverse" "^7.7.0" - "@babel/types" "^7.7.0" + "@babel/template" "^7.7.4" + "@babel/traverse" "^7.7.4" + "@babel/types" "^7.7.4" "@babel/highlight@^7.0.0": version "7.5.0" @@ -393,459 +307,456 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.5.0.tgz#3e0713dff89ad6ae37faec3b29dcfc5c979770b7" integrity sha512-I5nW8AhGpOXGCCNYGc+p7ExQIBxRFnS2fd/d862bNOKvmoEPjYPcfIjsfdy0ujagYOIYPczKgD9l3FsgTkAzKA== -"@babel/parser@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.5.5.tgz#02f077ac8817d3df4a832ef59de67565e71cca4b" - integrity sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g== +"@babel/parser@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.4.tgz#75ab2d7110c2cf2fa949959afb05fa346d2231bb" + integrity sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g== -"@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.7.2": - version "7.7.2" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.2.tgz#ea8334dc77416bfd9473eb470fd00d8245b3943b" - integrity sha512-DDaR5e0g4ZTb9aP7cpSZLkACEBdoLGwJDWgHtBhrGX7Q1RjhdoMOfexICj5cqTAtpowjGQWfcvfnQG7G2kAB5w== - -"@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== +"@babel/plugin-proposal-async-generator-functions@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.4.tgz#0351c5ac0a9e927845fffd5b82af476947b7ce6d" + integrity sha512-1ypyZvGRXriY/QP668+s8sFr2mqinhkRDMPSQLNghCQE+GAkFtp+wkHVvg2+Hdki8gwP+NFzJBJ/N1BfzCCDEw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-remap-async-to-generator" "^7.7.0" - "@babel/plugin-syntax-async-generators" "^7.2.0" + "@babel/helper-remap-async-to-generator" "^7.7.4" + "@babel/plugin-syntax-async-generators" "^7.7.4" -"@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== +"@babel/plugin-proposal-class-properties@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.7.4.tgz#2f964f0cb18b948450362742e33e15211e77c2ba" + integrity sha512-EcuXeV4Hv1X3+Q1TsuOmyyxeTRiSqurGJ26+I/FW1WbymmRRapVORm6x1Zl3iDIHyRxEs+VXWp6qnlcfcJSbbw== dependencies: - "@babel/helper-create-class-features-plugin" "^7.7.0" + "@babel/helper-create-class-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@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== +"@babel/plugin-proposal-dynamic-import@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.4.tgz#dde64a7f127691758cbfed6cf70de0fa5879d52d" + integrity sha512-StH+nGAdO6qDB1l8sZ5UBV8AC3F2VW2I8Vfld73TMKyptMU9DY5YsJAS8U81+vEtxcH3Y/La0wG0btDrhpnhjQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-syntax-dynamic-import" "^7.2.0" + "@babel/plugin-syntax-dynamic-import" "^7.7.4" -"@babel/plugin-proposal-json-strings@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz#568ecc446c6148ae6b267f02551130891e29f317" - integrity sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg== +"@babel/plugin-proposal-json-strings@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.7.4.tgz#7700a6bfda771d8dc81973249eac416c6b4c697d" + integrity sha512-wQvt3akcBTfLU/wYoqm/ws7YOAQKu8EVJEvHip/mzkNtjaclQoCCIqKXFP5/eyfnfbQCDV3OLRIK3mIVyXuZlw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-syntax-json-strings" "^7.2.0" + "@babel/plugin-syntax-json-strings" "^7.7.4" -"@babel/plugin-proposal-object-rest-spread@7.6.2", "@babel/plugin-proposal-object-rest-spread@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.6.2.tgz#8ffccc8f3a6545e9f78988b6bf4fe881b88e8096" - integrity sha512-LDBXlmADCsMZV1Y9OQwMc0MyGZ8Ta/zlD9N67BfQT8uYwkRswiu2hU6nJKrjrt/58aH/vqfQlR/9yId/7A2gWw== +"@babel/plugin-proposal-object-rest-spread@7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz#cc57849894a5c774214178c8ab64f6334ec8af71" + integrity sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-syntax-object-rest-spread" "^7.7.4" -"@babel/plugin-proposal-optional-catch-binding@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz#135d81edb68a081e55e56ec48541ece8065c38f5" - integrity sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g== +"@babel/plugin-proposal-optional-catch-binding@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.7.4.tgz#ec21e8aeb09ec6711bc0a39ca49520abee1de379" + integrity sha512-DyM7U2bnsQerCQ+sejcTNZh8KQEUuC3ufzdnVnSiUv/qoGJp2Z3hanKL18KDhsBT5Wj6a7CMT5mdyCNJsEaA9w== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.7.4" -"@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== +"@babel/plugin-proposal-unicode-property-regex@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz#7c239ccaf09470dbe1d453d50057460e84517ebb" + integrity sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.7.0" + "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-syntax-async-generators@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz#69e1f0db34c6f5a0cf7e2b3323bf159a76c8cb7f" - integrity sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg== +"@babel/plugin-syntax-async-generators@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.7.4.tgz#331aaf310a10c80c44a66b238b6e49132bd3c889" + integrity sha512-Li4+EjSpBgxcsmeEF8IFcfV/+yJGxHXDirDkEoyFjumuwbmfCVHUt0HuowD/iGM7OhIRyXJH9YXxqiH6N815+g== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-syntax-dynamic-import@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz#69c159ffaf4998122161ad8ebc5e6d1f55df8612" - integrity sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w== +"@babel/plugin-syntax-dynamic-import@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.7.4.tgz#29ca3b4415abfe4a5ec381e903862ad1a54c3aec" + integrity sha512-jHQW0vbRGvwQNgyVxwDh4yuXu4bH1f5/EICJLAhl1SblLs2CDhrsmCk+v5XLdE9wxtAFRyxx+P//Iw+a5L/tTg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-syntax-json-strings@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz#72bd13f6ffe1d25938129d2a186b11fd62951470" - integrity sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg== +"@babel/plugin-syntax-json-strings@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.7.4.tgz#86e63f7d2e22f9e27129ac4e83ea989a382e86cc" + integrity sha512-QpGupahTQW1mHRXddMG5srgpHWqRLwJnJZKXTigB9RPFCCGbDGCgBeM/iC82ICXp414WeYx/tD54w7M2qRqTMg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.2.0": +"@babel/plugin-syntax-object-rest-spread@^7.0.0": version "7.2.0" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz#3b7a3e733510c57e820b9142a6579ac8b0dfad2e" integrity sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-syntax-optional-catch-binding@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz#a94013d6eda8908dfe6a477e7f9eda85656ecf5c" - integrity sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w== +"@babel/plugin-syntax-object-rest-spread@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz#47cf220d19d6d0d7b154304701f468fc1cc6ff46" + integrity sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg== 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== +"@babel/plugin-syntax-optional-catch-binding@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.7.4.tgz#a3e38f59f4b6233867b4a92dcb0ee05b2c334aa6" + integrity sha512-4ZSuzWgFxqHRE31Glu+fEr/MirNZOMYmD/0BhBWyLyOOQz/gTAl7QmWm2hX1QxEIXsr2vkdlwxIzTyiYRC4xcQ== 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" - integrity sha512-dGwbSMA1YhVS8+31CnPR7LB4pcbrzcV99wQzby4uAfrkZPYZlQ7ImwdpzLqi6Z6IL02b8IAL379CaMwo0x5Lag== +"@babel/plugin-syntax-top-level-await@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.4.tgz#bd7d8fa7b9fee793a36e4027fd6dd1aa32f946da" + integrity sha512-wdsOw0MvkL1UIgiQ/IFr3ETcfv1xb8RMM0H9wbiDyLaJFyiDg5oZvDLCXosIXmFeIlweML5iOBXAkqddkYNizg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-arrow-functions@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz#9aeafbe4d6ffc6563bf8f8372091628f00779550" - integrity sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg== +"@babel/plugin-syntax-typescript@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.7.4.tgz#5d037ffa10f3b25a16f32570ebbe7a8c2efa304b" + integrity sha512-77blgY18Hud4NM1ggTA8xVT/dBENQf17OpiToSa2jSmEY3fWXD2jwrdVlO4kq5yzUTeF15WSQ6b4fByNvJcjpQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@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.7.0" - "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-remap-async-to-generator" "^7.7.0" - -"@babel/plugin-transform-block-scoped-functions@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz#5d3cc11e8d5ddd752aa64c9148d0db6cb79fd190" - integrity sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w== +"@babel/plugin-transform-arrow-functions@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.7.4.tgz#76309bd578addd8aee3b379d809c802305a98a12" + integrity sha512-zUXy3e8jBNPiffmqkHRNDdZM2r8DWhCB7HhcoyZjiK1TxYEluLHAvQuYnTT+ARqRpabWqy/NHkO6e3MsYB5YfA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-block-scoping@^7.6.3": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.6.3.tgz#6e854e51fbbaa84351b15d4ddafe342f3a5d542a" - integrity sha512-7hvrg75dubcO3ZI2rjYTzUrEuh1E9IyDEhhB6qfcooxhDA33xx2MasuLVgdxzcP6R/lipAC6n9ub9maNW6RKdw== +"@babel/plugin-transform-async-to-generator@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.4.tgz#694cbeae6d613a34ef0292713fa42fb45c4470ba" + integrity sha512-zpUTZphp5nHokuy8yLlyafxCJ0rSlFoSHypTUWgpdwoDXWQcseaect7cJ8Ppk6nunOM6+5rPMkod4OYKPR5MUg== + dependencies: + "@babel/helper-module-imports" "^7.7.4" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-remap-async-to-generator" "^7.7.4" + +"@babel/plugin-transform-block-scoped-functions@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.7.4.tgz#d0d9d5c269c78eaea76227ace214b8d01e4d837b" + integrity sha512-kqtQzwtKcpPclHYjLK//3lH8OFsCDuDJBaFhVwf8kqdnF6MN4l618UDlcA7TfRs3FayrHj+svYnSX8MC9zmUyQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-block-scoping@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.7.4.tgz#200aad0dcd6bb80372f94d9e628ea062c58bf224" + integrity sha512-2VBe9u0G+fDt9B5OV5DQH4KBf5DoiNkwFKOz0TCvBWvdAN2rOykCTkrL+jTLxfCAm76l9Qo5OqL7HBOx2dWggg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" lodash "^4.17.13" -"@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== +"@babel/plugin-transform-classes@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.4.tgz#c92c14be0a1399e15df72667067a8f510c9400ec" + integrity sha512-sK1mjWat7K+buWRuImEzjNf68qrKcrddtpQo3swi9j7dUcG6y6R6+Di039QN2bD1dykeswlagupEmpOatFHHUg== dependencies: - "@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-annotate-as-pure" "^7.7.4" + "@babel/helper-define-map" "^7.7.4" + "@babel/helper-function-name" "^7.7.4" + "@babel/helper-optimise-call-expression" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-replace-supers" "^7.7.0" - "@babel/helper-split-export-declaration" "^7.7.0" + "@babel/helper-replace-supers" "^7.7.4" + "@babel/helper-split-export-declaration" "^7.7.4" globals "^11.1.0" -"@babel/plugin-transform-computed-properties@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz#83a7df6a658865b1c8f641d510c6f3af220216da" - integrity sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA== +"@babel/plugin-transform-computed-properties@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.7.4.tgz#e856c1628d3238ffe12d668eb42559f79a81910d" + integrity sha512-bSNsOsZnlpLLyQew35rl4Fma3yKWqK3ImWMSC/Nc+6nGjC9s5NFWAer1YQ899/6s9HxO2zQC1WoFNfkOqRkqRQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-destructuring@^7.6.0": - version "7.6.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.6.0.tgz#44bbe08b57f4480094d57d9ffbcd96d309075ba6" - integrity sha512-2bGIS5P1v4+sWTCnKNDZDxbGvEqi0ijeqM/YqHtVGrvG2y0ySgnEEhXErvE9dA0bnIzY9bIzdFK0jFA46ASIIQ== +"@babel/plugin-transform-destructuring@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.7.4.tgz#2b713729e5054a1135097b6a67da1b6fe8789267" + integrity sha512-4jFMXI1Cu2aXbcXXl8Lr6YubCn6Oc7k9lLsu8v61TZh+1jny2BWmdtvY9zSUlLdGUvcy9DMAWyZEOqjsbeg/wA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@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== +"@babel/plugin-transform-dotall-regex@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz#f7ccda61118c5b7a2599a72d5e3210884a021e96" + integrity sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.7.0" + "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-duplicate-keys@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz#c5dbf5106bf84cdf691222c0974c12b1df931853" - integrity sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ== +"@babel/plugin-transform-duplicate-keys@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.7.4.tgz#3d21731a42e3f598a73835299dd0169c3b90ac91" + integrity sha512-g1y4/G6xGWMD85Tlft5XedGaZBCIVN+/P0bs6eabmcPP9egFleMAo65OOjlhcz1njpwagyY3t0nsQC9oTFegJA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-exponentiation-operator@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz#a63868289e5b4007f7054d46491af51435766008" - integrity sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A== +"@babel/plugin-transform-exponentiation-operator@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.7.4.tgz#dd30c0191e3a1ba19bcc7e389bdfddc0729d5db9" + integrity sha512-MCqiLfCKm6KEA1dglf6Uqq1ElDIZwFuzz1WH5mTf8k2uQSxEJMbOIEh7IZv7uichr7PMfi5YVSrr1vz+ipp7AQ== dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.1.0" + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-for-of@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz#0267fc735e24c808ba173866c6c4d1440fc3c556" - integrity sha512-9T/5Dlr14Z9TIEXLXkt8T1DU7F24cbhwhMNUziN3hB1AXoZcdzPcTiKGRn/6iOymDqtTKWnr/BtRKN9JwbKtdQ== +"@babel/plugin-transform-for-of@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.7.4.tgz#248800e3a5e507b1f103d8b4ca998e77c63932bc" + integrity sha512-zZ1fD1B8keYtEcKF+M1TROfeHTKnijcVQm0yO/Yu1f7qoDoxEIc/+GX6Go430Bg84eM/xwPFp0+h4EbZg7epAA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@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== +"@babel/plugin-transform-function-name@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.4.tgz#75a6d3303d50db638ff8b5385d12451c865025b1" + integrity sha512-E/x09TvjHNhsULs2IusN+aJNRV5zKwxu1cpirZyRPw+FyyIKEHPXTsadj48bVpc1R5Qq1B5ZkzumuFLytnbT6g== dependencies: - "@babel/helper-function-name" "^7.7.0" + "@babel/helper-function-name" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-literals@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz#690353e81f9267dad4fd8cfd77eafa86aba53ea1" - integrity sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg== +"@babel/plugin-transform-literals@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.7.4.tgz#27fe87d2b5017a2a5a34d1c41a6b9f6a6262643e" + integrity sha512-X2MSV7LfJFm4aZfxd0yLVFrEXAgPqYoDG53Br/tCKiKYfX0MjVjQeWPIhPHHsCqzwQANq+FLN786fF5rgLS+gw== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-member-expression-literals@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz#fa10aa5c58a2cb6afcf2c9ffa8cb4d8b3d489a2d" - integrity sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA== +"@babel/plugin-transform-member-expression-literals@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.7.4.tgz#aee127f2f3339fc34ce5e3055d7ffbf7aa26f19a" + integrity sha512-9VMwMO7i69LHTesL0RdGy93JU6a+qOPuvB4F4d0kR0zyVjJRVJRaoaGjhtki6SzQUu8yen/vxPKN6CWnCUw6bA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-modules-amd@^7.5.0": - version "7.5.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz#ef00435d46da0a5961aa728a1d2ecff063e4fb91" - integrity sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg== +"@babel/plugin-transform-modules-amd@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.4.tgz#276b3845ca2b228f2995e453adc2e6f54d72fb71" + integrity sha512-/542/5LNA18YDtg1F+QHvvUSlxdvjZoD/aldQwkq+E3WCkbEjNSN9zdrOXaSlfg3IfGi22ijzecklF/A7kVZFQ== dependencies: - "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-module-transforms" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" babel-plugin-dynamic-import-node "^2.3.0" -"@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== +"@babel/plugin-transform-modules-commonjs@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.4.tgz#bee4386e550446343dd52a571eda47851ff857a3" + integrity sha512-k8iVS7Jhc367IcNF53KCwIXtKAH7czev866ThsTgy8CwlXjnKZna2VHwChglzLleYrcHz1eQEIJlGRQxB53nqA== dependencies: - "@babel/helper-module-transforms" "^7.7.0" + "@babel/helper-module-transforms" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-simple-access" "^7.7.0" + "@babel/helper-simple-access" "^7.7.4" babel-plugin-dynamic-import-node "^2.3.0" -"@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== +"@babel/plugin-transform-modules-systemjs@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.4.tgz#cd98152339d3e763dfe838b7d4273edaf520bb30" + integrity sha512-y2c96hmcsUi6LrMqvmNDPBBiGCiQu0aYqpHatVVu6kD4mFEXKjyNxd/drc18XXAf9dv7UXjrZwBVmTTGaGP8iw== dependencies: - "@babel/helper-hoist-variables" "^7.7.0" + "@babel/helper-hoist-variables" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" babel-plugin-dynamic-import-node "^2.3.0" -"@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== +"@babel/plugin-transform-modules-umd@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.4.tgz#1027c355a118de0aae9fee00ad7813c584d9061f" + integrity sha512-u2B8TIi0qZI4j8q4C51ktfO7E3cQ0qnaXFI1/OXITordD40tt17g/sXqgNNCcMTcBFKrUPcGDx+TBJuZxLx7tw== dependencies: - "@babel/helper-module-transforms" "^7.7.0" + "@babel/helper-module-transforms" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@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== +"@babel/plugin-transform-named-capturing-groups-regex@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.4.tgz#fb3bcc4ee4198e7385805007373d6b6f42c98220" + integrity sha512-jBUkiqLKvUWpv9GLSuHUFYdmHg0ujC1JEYoZUfeOOfNydZXp1sXObgyPatpcwjWgsdBGsagWW0cdJpX/DO2jMw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.7.0" + "@babel/helper-create-regexp-features-plugin" "^7.7.4" -"@babel/plugin-transform-new-target@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.4.tgz#18d120438b0cc9ee95a47f2c72bc9768fbed60a5" - integrity sha512-r1z3T2DNGQwwe2vPGZMBNjioT2scgWzK9BCnDEh+46z8EEwXBq24uRzd65I7pjtugzPSj921aM15RpESgzsSuA== +"@babel/plugin-transform-new-target@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.7.4.tgz#4a0753d2d60639437be07b592a9e58ee00720167" + integrity sha512-CnPRiNtOG1vRodnsyGX37bHQleHE14B9dnnlgSeEs3ek3fHN1A1SScglTCg1sfbe7sRQ2BUcpgpTpWSfMKz3gg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-object-super@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.5.5.tgz#c70021df834073c65eb613b8679cc4a381d1a9f9" - integrity sha512-un1zJQAhSosGFBduPgN/YFNvWVpRuHKU7IHBglLoLZsGmruJPOo6pbInneflUdmq7YvSVqhpPs5zdBvLnteltQ== +"@babel/plugin-transform-object-super@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.7.4.tgz#48488937a2d586c0148451bf51af9d7dda567262" + integrity sha512-ho+dAEhC2aRnff2JCA0SAK7V2R62zJd/7dmtoe7MHcso4C2mS+vZjn1Pb1pCVZvJs1mgsvv5+7sT+m3Bysb6eg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/helper-replace-supers" "^7.5.5" + "@babel/helper-replace-supers" "^7.7.4" -"@babel/plugin-transform-parameters@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.4.tgz#7556cf03f318bd2719fe4c922d2d808be5571e16" - integrity sha512-oMh5DUO1V63nZcu/ZVLQFqiihBGo4OpxJxR1otF50GMeCLiRx5nUdtokd+u9SuVJrvvuIh9OosRFPP4pIPnwmw== +"@babel/plugin-transform-parameters@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz#da4555c97f39b51ac089d31c7380f03bca4075ce" + integrity sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw== dependencies: - "@babel/helper-call-delegate" "^7.4.4" - "@babel/helper-get-function-arity" "^7.0.0" + "@babel/helper-call-delegate" "^7.7.4" + "@babel/helper-get-function-arity" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-property-literals@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz#03e33f653f5b25c4eb572c98b9485055b389e905" - integrity sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ== +"@babel/plugin-transform-property-literals@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.7.4.tgz#2388d6505ef89b266103f450f9167e6bd73f98c2" + integrity sha512-MatJhlC4iHsIskWYyawl53KuHrt+kALSADLQQ/HkhTjX954fkxIEh4q5slL4oRAnsm/eDoZ4q0CIZpcqBuxhJQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@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== +"@babel/plugin-transform-regenerator@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.4.tgz#d18eac0312a70152d7d914cbed2dc3999601cfc0" + integrity sha512-e7MWl5UJvmPEwFJTwkBlPmqixCtr9yAASBqff4ggXTNicZiwbF8Eefzm6NVgfiBp7JdAGItecnctKTgH44q2Jw== dependencies: regenerator-transform "^0.14.0" -"@babel/plugin-transform-reserved-words@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz#4792af87c998a49367597d07fedf02636d2e1634" - integrity sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw== +"@babel/plugin-transform-reserved-words@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.7.4.tgz#6a7cf123ad175bb5c69aec8f6f0770387ed3f1eb" + integrity sha512-OrPiUB5s5XvkCO1lS7D8ZtHcswIC57j62acAnJZKqGGnHP+TIc/ljQSrgdX/QyOTdEK5COAhuc820Hi1q2UgLQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-runtime@7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.6.2.tgz#2669f67c1fae0ae8d8bf696e4263ad52cb98b6f8" - integrity sha512-cqULw/QB4yl73cS5Y0TZlQSjDvNkzDbu0FurTZyHlJpWE5T3PCMdnyV+xXoH1opr1ldyHODe3QAX3OMAii5NxA== +"@babel/plugin-transform-runtime@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.4.tgz#51fe458c1c1fa98a8b07934f4ed38b6cd62177a6" + integrity sha512-O8kSkS5fP74Ad/8pfsCMGa8sBRdLxYoSReaARRNSz3FbFQj3z/QUvoUmJ28gn9BO93YfnXc3j+Xyaqe8cKDNBQ== dependencies: - "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-module-imports" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" resolve "^1.8.1" semver "^5.5.1" -"@babel/plugin-transform-shorthand-properties@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0" - integrity sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg== +"@babel/plugin-transform-shorthand-properties@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.7.4.tgz#74a0a9b2f6d67a684c6fbfd5f0458eb7ba99891e" + integrity sha512-q+suddWRfIcnyG5YiDP58sT65AJDZSUhXQDZE3r04AuqD6d/XLaQPPXSBzP2zGerkgBivqtQm9XKGLuHqBID6Q== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-spread@^7.6.2": - version "7.6.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.6.2.tgz#fc77cf798b24b10c46e1b51b1b88c2bf661bb8dd" - integrity sha512-DpSvPFryKdK1x+EDJYCy28nmAaIMdxmhot62jAXF/o99iA33Zj2Lmcp3vDmz+MUh0LNYVPvfj5iC3feb3/+PFg== +"@babel/plugin-transform-spread@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.7.4.tgz#aa673b356fe6b7e70d69b6e33a17fef641008578" + integrity sha512-8OSs0FLe5/80cndziPlg4R0K6HcWSM0zyNhHhLsmw/Nc5MaA49cAsnoJ/t/YZf8qkG7fD+UjTRaApVDB526d7Q== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-sticky-regex@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz#a1e454b5995560a9c1e0d537dfc15061fd2687e1" - integrity sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw== +"@babel/plugin-transform-sticky-regex@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.7.4.tgz#ffb68c05090c30732076b1285dc1401b404a123c" + integrity sha512-Ls2NASyL6qtVe1H1hXts9yuEeONV2TJZmplLONkMPUG158CtmnrzW5Q5teibM5UVOFjG0D3IC5mzXR6pPpUY7A== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-regex" "^7.0.0" -"@babel/plugin-transform-template-literals@^7.4.4": - version "7.4.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.4.4.tgz#9d28fea7bbce637fb7612a0750989d8321d4bcb0" - integrity sha512-mQrEC4TWkhLN0z8ygIvEL9ZEToPhG5K7KDW3pzGqOfIGZ28Jb0POUkeWcoz8HnHvhFy6dwAT1j8OzqN8s804+g== +"@babel/plugin-transform-template-literals@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.7.4.tgz#1eb6411736dd3fe87dbd20cc6668e5121c17d604" + integrity sha512-sA+KxLwF3QwGj5abMHkHgshp9+rRz+oY9uoRil4CyLtgEuE/88dpkeWgNk5qKVsJE9iSfly3nvHapdRiIS2wnQ== dependencies: - "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-annotate-as-pure" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-typeof-symbol@^7.2.0": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz#117d2bcec2fbf64b4b59d1f9819894682d29f2b2" - integrity sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw== +"@babel/plugin-transform-typeof-symbol@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.7.4.tgz#3174626214f2d6de322882e498a38e8371b2140e" + integrity sha512-KQPUQ/7mqe2m0B8VecdyaW5XcQYaePyl9R7IsKd+irzj6jvbhoGnRE+M0aNkyAzI07VfUQ9266L5xMARitV3wg== dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-typescript@7.7.2", "@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== +"@babel/plugin-transform-typescript@7.7.4", "@babel/plugin-transform-typescript@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.4.tgz#2974fd05f4e85c695acaf497f432342de9fc0636" + integrity sha512-X8e3tcPEKnwwPVG+vP/vSqEShkwODOEeyQGod82qrIuidwIrfnsGn11qPM1jBLF4MqguTXXYzm58d0dY+/wdpg== dependencies: - "@babel/helper-create-class-features-plugin" "^7.7.0" + "@babel/helper-create-class-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-syntax-typescript" "^7.2.0" + "@babel/plugin-syntax-typescript" "^7.7.4" -"@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== +"@babel/plugin-transform-unicode-regex@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.4.tgz#a3c0f65b117c4c81c5b6484f2a5e7b95346b83ae" + integrity sha512-N77UUIV+WCvE+5yHw+oks3m18/umd7y392Zv7mYTpFqHtkpcc+QUz+gLJNTWVlWROIWeLqY0f3OjZxV5TcXnRw== dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.7.0" + "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@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== +"@babel/preset-env@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.4.tgz#ccaf309ae8d1ee2409c85a4e2b5e280ceee830f8" + integrity sha512-Dg+ciGJjwvC1NIe/DGblMbcGq1HOtKbw8RLl4nIjlfcILKEOkWT/vRqPpumswABEBVudii6dnVwrBtzD7ibm4g== dependencies: - "@babel/helper-module-imports" "^7.7.0" + "@babel/helper-module-imports" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.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.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.7.0" - "@babel/plugin-transform-block-scoped-functions" "^7.2.0" - "@babel/plugin-transform-block-scoping" "^7.6.3" - "@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.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.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.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.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.7.0" - "@babel/types" "^7.7.1" + "@babel/plugin-proposal-async-generator-functions" "^7.7.4" + "@babel/plugin-proposal-dynamic-import" "^7.7.4" + "@babel/plugin-proposal-json-strings" "^7.7.4" + "@babel/plugin-proposal-object-rest-spread" "^7.7.4" + "@babel/plugin-proposal-optional-catch-binding" "^7.7.4" + "@babel/plugin-proposal-unicode-property-regex" "^7.7.4" + "@babel/plugin-syntax-async-generators" "^7.7.4" + "@babel/plugin-syntax-dynamic-import" "^7.7.4" + "@babel/plugin-syntax-json-strings" "^7.7.4" + "@babel/plugin-syntax-object-rest-spread" "^7.7.4" + "@babel/plugin-syntax-optional-catch-binding" "^7.7.4" + "@babel/plugin-syntax-top-level-await" "^7.7.4" + "@babel/plugin-transform-arrow-functions" "^7.7.4" + "@babel/plugin-transform-async-to-generator" "^7.7.4" + "@babel/plugin-transform-block-scoped-functions" "^7.7.4" + "@babel/plugin-transform-block-scoping" "^7.7.4" + "@babel/plugin-transform-classes" "^7.7.4" + "@babel/plugin-transform-computed-properties" "^7.7.4" + "@babel/plugin-transform-destructuring" "^7.7.4" + "@babel/plugin-transform-dotall-regex" "^7.7.4" + "@babel/plugin-transform-duplicate-keys" "^7.7.4" + "@babel/plugin-transform-exponentiation-operator" "^7.7.4" + "@babel/plugin-transform-for-of" "^7.7.4" + "@babel/plugin-transform-function-name" "^7.7.4" + "@babel/plugin-transform-literals" "^7.7.4" + "@babel/plugin-transform-member-expression-literals" "^7.7.4" + "@babel/plugin-transform-modules-amd" "^7.7.4" + "@babel/plugin-transform-modules-commonjs" "^7.7.4" + "@babel/plugin-transform-modules-systemjs" "^7.7.4" + "@babel/plugin-transform-modules-umd" "^7.7.4" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.7.4" + "@babel/plugin-transform-new-target" "^7.7.4" + "@babel/plugin-transform-object-super" "^7.7.4" + "@babel/plugin-transform-parameters" "^7.7.4" + "@babel/plugin-transform-property-literals" "^7.7.4" + "@babel/plugin-transform-regenerator" "^7.7.4" + "@babel/plugin-transform-reserved-words" "^7.7.4" + "@babel/plugin-transform-shorthand-properties" "^7.7.4" + "@babel/plugin-transform-spread" "^7.7.4" + "@babel/plugin-transform-sticky-regex" "^7.7.4" + "@babel/plugin-transform-template-literals" "^7.7.4" + "@babel/plugin-transform-typeof-symbol" "^7.7.4" + "@babel/plugin-transform-unicode-regex" "^7.7.4" + "@babel/types" "^7.7.4" 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.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== +"@babel/preset-typescript@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.7.4.tgz#780059a78e6fa7f7a4c87f027292a86b31ce080a" + integrity sha512-rqrjxfdiHPsnuPur0jKrIIGQCIgoTWMTjlbWE69G4QJ6TIOVnnRnIJhUxNTL/VwDmEAVX08Tq3B1nirer5341w== dependencies: "@babel/helper-plugin-utils" "^7.0.0" - "@babel/plugin-transform-typescript" "^7.7.2" + "@babel/plugin-transform-typescript" "^7.7.4" -"@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== +"@babel/runtime@7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.4.tgz#b23a856751e4bf099262f867767889c0e3fe175b" + integrity sha512-r24eVUUr0QqNZa+qrImUk8fn5SPhHq+IfYvIoIMg0do3GdK9sMdiLKP3GYVVaxpPKORgm8KRKaNTEhAjgIpLMw== dependencies: regenerator-runtime "^0.13.2" @@ -858,16 +769,16 @@ "@babel/parser" "^7.4.4" "@babel/types" "^7.4.4" -"@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== +"@babel/template@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.7.4.tgz#428a7d9eecffe27deac0a98e23bf8e3675d2a77b" + integrity sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw== dependencies: "@babel/code-frame" "^7.0.0" - "@babel/parser" "^7.7.0" - "@babel/types" "^7.7.0" + "@babel/parser" "^7.7.4" + "@babel/types" "^7.7.4" -"@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.0": +"@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.5.0": version "7.5.0" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.5.0.tgz#4216d6586854ef5c3c4592dab56ec7eb78485485" integrity sha512-SnA9aLbyOCcnnbQEGwdfBggnc142h/rbqqsXcaATj2hZcegCl903pUD/lfpsNBlBSuWow/YDfRyJuWi2EPR5cg== @@ -882,47 +793,17 @@ globals "^11.1.0" lodash "^4.17.11" -"@babel/traverse@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.5.5.tgz#f664f8f368ed32988cd648da9f72d5ca70f165bb" - integrity sha512-MqB0782whsfffYfSjH4TM+LMjrJnhCNEDMDIjeTpl+ASaUvxcjoiVCo/sM1GhS1pHOXYfWVCYneLjMckuUxDaQ== +"@babel/traverse@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.7.4.tgz#9c1e7c60fb679fe4fcfaa42500833333c2058558" + integrity sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw== dependencies: "@babel/code-frame" "^7.5.5" - "@babel/generator" "^7.5.5" - "@babel/helper-function-name" "^7.1.0" - "@babel/helper-split-export-declaration" "^7.4.4" - "@babel/parser" "^7.5.5" - "@babel/types" "^7.5.5" - debug "^4.1.0" - globals "^11.1.0" - lodash "^4.17.13" - -"@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.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.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.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" + "@babel/generator" "^7.7.4" + "@babel/helper-function-name" "^7.7.4" + "@babel/helper-split-export-declaration" "^7.7.4" + "@babel/parser" "^7.7.4" + "@babel/types" "^7.7.4" debug "^4.1.0" globals "^11.1.0" lodash "^4.17.13" @@ -936,37 +817,10 @@ lodash "^4.17.11" to-fast-properties "^2.0.0" -"@babel/types@^7.5.5": - version "7.5.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.5.5.tgz#97b9f728e182785909aa4ab56264f090a028d18a" - integrity sha512-s63F9nJioLqOlW3UkyMd+BYhXt44YuaFm/VV0VwuteqjYwRrObkU7ra9pY4wAJR3oXi8hJrMcrcJdO/HH33vtw== - dependencies: - esutils "^2.0.2" - lodash "^4.17.13" - to-fast-properties "^2.0.0" - -"@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.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== +"@babel/types@^7.7.4": + version "7.7.4" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.7.4.tgz#516570d539e44ddf308c07569c258ff94fde9193" + integrity sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA== dependencies: esutils "^2.0.2" lodash "^4.17.13" From 02796824ccefce5e8d02c7cdd96566e655849d4d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 25 Nov 2019 08:09:12 +0100 Subject: [PATCH 20/53] Update dependency eslint to v6.7.1 (#180) --- package-lock.json | 91 ++++++++++++++++++++++++++++++++++++----------- package.json | 2 +- yarn.lock | 47 +++++++++++++++++++----- 3 files changed, 109 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index 05d1abd..63db25b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4611,9 +4611,9 @@ } }, "eslint": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.6.0.tgz", - "integrity": "sha512-PpEBq7b6qY/qrOmpYQ/jTMDYfuQMELR4g4WI1M/NaSDDD/bdcMb+dj4Hgks7p41kW2caXsPsEZAEAyAgjVVC0g==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.1.tgz", + "integrity": "sha512-UWzBS79pNcsDSxgxbdjkmzn/B6BhsXMfUaOHnNwyE8nD+Q6pyT96ow2MccVayUTV4yMid4qLhMiQaywctRkBLA==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -4631,7 +4631,7 @@ "file-entry-cache": "^5.0.1", "functional-red-black-tree": "^1.0.1", "glob-parent": "^5.0.0", - "globals": "^11.7.0", + "globals": "^12.1.0", "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", @@ -4644,7 +4644,7 @@ "minimatch": "^3.0.4", "mkdirp": "^0.5.1", "natural-compare": "^1.4.0", - "optionator": "^0.8.2", + "optionator": "^0.8.3", "progress": "^2.0.0", "regexpp": "^2.0.1", "semver": "^6.1.2", @@ -4664,13 +4664,27 @@ "ms": "^2.1.1" } }, - "eslint-utils": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.4.3.tgz", - "integrity": "sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==", + "globals": { + "version": "12.3.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", + "integrity": "sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==", "dev": true, "requires": { - "eslint-visitor-keys": "^1.1.0" + "type-fest": "^0.8.1" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" } }, "semver": { @@ -4678,6 +4692,12 @@ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true } } }, @@ -6244,9 +6264,9 @@ } }, "import-fresh": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", - "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", + "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", "dev": true, "requires": { "parent-module": "^1.0.0", @@ -6342,14 +6362,20 @@ }, "dependencies": { "ansi-escapes": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.2.1.tgz", - "integrity": "sha512-Cg3ymMAdN10wOk/VYfLV7KCQyv7EDirJ64500sU7n9UlmioEtDuU5Gd+hj73hXSU/ex7tHJSssmyftDdkMLO8Q==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.0.tgz", + "integrity": "sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==", "dev": true, "requires": { - "type-fest": "^0.5.2" + "type-fest": "^0.8.1" } }, + "ansi-regex": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", + "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "dev": true + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -6363,15 +6389,32 @@ "dev": true }, "string-width": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.1.0.tgz", - "integrity": "sha512-NrX+1dVVh+6Y9dnQ19pR0pP4FiEIlUvdTGn8pw6CKTNq5sgib2nIhmUNT5TAmhWmvKr3WcxBcP3E8nWezuipuQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", + "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", "dev": true, "requires": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^5.2.0" + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "strip-ansi": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", + "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.0" + } + } } + }, + "type-fest": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", + "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "dev": true } } }, @@ -11139,6 +11182,12 @@ "execa": "^1.0.0" } }, + "word-wrap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "dev": true + }, "wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", diff --git a/package.json b/package.json index a33f58a..466904f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@typescript-eslint/parser": "2.8.0", "babel-loader": "8.0.6", "coveralls": "3.0.8", - "eslint": "6.6.0", + "eslint": "6.7.1", "jest": "24.9.0", "nock": "11.7.0", "release-it": "12.4.3", diff --git a/yarn.lock b/yarn.lock index ec35e54..519927e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2864,10 +2864,10 @@ eslint-visitor-keys@^1.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== -eslint@6.6.0: - version "6.6.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.6.0.tgz#4a01a2fb48d32aacef5530ee9c5a78f11a8afd04" - integrity sha512-PpEBq7b6qY/qrOmpYQ/jTMDYfuQMELR4g4WI1M/NaSDDD/bdcMb+dj4Hgks7p41kW2caXsPsEZAEAyAgjVVC0g== +eslint@6.7.1: + version "6.7.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.7.1.tgz#269ccccec3ef60ab32358a44d147ac209154b919" + integrity sha512-UWzBS79pNcsDSxgxbdjkmzn/B6BhsXMfUaOHnNwyE8nD+Q6pyT96ow2MccVayUTV4yMid4qLhMiQaywctRkBLA== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" @@ -2884,7 +2884,7 @@ eslint@6.6.0: file-entry-cache "^5.0.1" functional-red-black-tree "^1.0.1" glob-parent "^5.0.0" - globals "^11.7.0" + globals "^12.1.0" ignore "^4.0.6" import-fresh "^3.0.0" imurmurhash "^0.1.4" @@ -2897,7 +2897,7 @@ eslint@6.6.0: minimatch "^3.0.4" mkdirp "^0.5.1" natural-compare "^1.4.0" - optionator "^0.8.2" + optionator "^0.8.3" progress "^2.0.0" regexpp "^2.0.1" semver "^6.1.2" @@ -3106,7 +3106,7 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^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= -fast-levenshtein@~2.0.4: +fast-levenshtein@~2.0.4, fast-levenshtein@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= @@ -3471,11 +3471,18 @@ global-prefix@^3.0.0: kind-of "^6.0.2" which "^1.3.1" -globals@^11.1.0, globals@^11.7.0: +globals@^11.1.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== +globals@^12.1.0: + version "12.3.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.3.0.tgz#1e564ee5c4dded2ab098b0f88f24702a3c56be13" + integrity sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw== + dependencies: + type-fest "^0.8.1" + globby@10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.1.tgz#4782c34cb75dd683351335c5829cc3420e606b22" @@ -5448,7 +5455,7 @@ optimist@^0.6.1: minimist "~0.0.1" wordwrap "~0.0.2" -optionator@^0.8.1, optionator@^0.8.2: +optionator@^0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q= @@ -5460,6 +5467,18 @@ optionator@^0.8.1, optionator@^0.8.2: type-check "~0.3.2" wordwrap "~1.0.0" +optionator@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + ora@4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/ora/-/ora-4.0.2.tgz#0e1e68fd45b135d28648b27cf08081fa6e8a297d" @@ -7059,6 +7078,11 @@ type-fest@^0.5.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.5.2.tgz#d6ef42a0356c6cd45f49485c3b6281fc148e48a2" integrity sha512-DWkS49EQKVX//Tbupb9TFa19c7+MK1XmzkrZUR8TAktmE/DizXoaoJV6TZ/tSIPXipqNiRI6CyAe7x69Jb6RSw== +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + typedarray@^0.0.6: version "0.0.6" resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" @@ -7430,6 +7454,11 @@ windows-release@^3.1.0: dependencies: execa "^1.0.0" +word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" From 0db48543f56771194456db311a4f4bf198a80b7b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 25 Nov 2019 08:09:26 +0100 Subject: [PATCH 21/53] Update dependency ts-jest to v24.2.0 (#179) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63db25b..abe961e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10441,9 +10441,9 @@ "dev": true }, "ts-jest": { - "version": "24.1.0", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.1.0.tgz", - "integrity": "sha512-HEGfrIEAZKfu1pkaxB9au17b1d9b56YZSqz5eCVE8mX68+5reOvlM93xGOzzCREIov9mdH7JBG+s0UyNAqr0tQ==", + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.2.0.tgz", + "integrity": "sha512-Yc+HLyldlIC9iIK8xEN7tV960Or56N49MDP7hubCZUeI7EbIOTsas6rXCMB4kQjLACJ7eDOF4xWEO5qumpKsag==", "dev": true, "requires": { "bs-logger": "0.x", diff --git a/package.json b/package.json index 466904f..02f597c 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "jest": "24.9.0", "nock": "11.7.0", "release-it": "12.4.3", - "ts-jest": "24.1.0", + "ts-jest": "24.2.0", "ts-loader": "6.2.1", "typescript": "3.7.2", "webpack": "4.41.2", diff --git a/yarn.lock b/yarn.lock index 519927e..05d3330 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7000,10 +7000,10 @@ 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== +ts-jest@24.2.0: + version "24.2.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-24.2.0.tgz#7abca28c2b4b0a1fdd715cd667d65d047ea4e768" + integrity sha512-Yc+HLyldlIC9iIK8xEN7tV960Or56N49MDP7hubCZUeI7EbIOTsas6rXCMB4kQjLACJ7eDOF4xWEO5qumpKsag== dependencies: bs-logger "0.x" buffer-from "1.x" From 4c528dbe710cb41f6621db33525f740c1a4b2476 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 26 Nov 2019 08:10:36 +0100 Subject: [PATCH 22/53] Update typescript-eslint monorepo to v2.9.0 (#182) --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index abe961e..04fc6c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2476,12 +2476,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.8.0.tgz", - "integrity": "sha512-ohqul5s6XEB0AzPWZCuJF5Fd6qC0b4+l5BGEnrlpmvXxvyymb8yw8Bs4YMF8usNAeuCJK87eFIHy8g8GFvOtGA==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.9.0.tgz", + "integrity": "sha512-98rfOt3NYn5Gr9wekTB8TexxN6oM8ZRvYuphPs1Atfsy419SDLYCaE30aJkRiiTCwGEY98vOhFsEVm7Zs4toQQ==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.8.0", + "@typescript-eslint/experimental-utils": "2.9.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2497,32 +2497,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.8.0.tgz", - "integrity": "sha512-jZ05E4SxCbbXseQGXOKf3ESKcsGxT8Ucpkp1jiVp55MGhOvZB2twmWKf894PAuVQTCgbPbJz9ZbRDqtUWzP8xA==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.9.0.tgz", + "integrity": "sha512-0lOLFdpdJsCMqMSZT7l7W2ta0+GX8A3iefG3FovJjrX+QR8y6htFlFdU7aOVPL6pDvt6XcsOb8fxk5sq+girTw==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.8.0", + "@typescript-eslint/typescript-estree": "2.9.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.8.0.tgz", - "integrity": "sha512-NseXWzhkucq+JM2HgqAAoKEzGQMb5LuTRjFPLQzGIdLthXMNUfuiskbl7QSykvWW6mvzCtYbw1fYWGa2EIaekw==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.9.0.tgz", + "integrity": "sha512-fJ+dNs3CCvEsJK2/Vg5c2ZjuQ860ySOAsodDPwBaVlrGvRN+iCNC8kUfLFL8cT49W4GSiLPa/bHiMjYXA7EhKQ==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.8.0", - "@typescript-eslint/typescript-estree": "2.8.0", + "@typescript-eslint/experimental-utils": "2.9.0", + "@typescript-eslint/typescript-estree": "2.9.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "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==", + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.9.0.tgz", + "integrity": "sha512-v6btSPXEWCP594eZbM+JCXuFoXWXyF/z8kaSBSdCb83DF+Y7+xItW29SsKtSULgLemqJBT+LpT+0ZqdfH7QVmA==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index 02f597c..ac61c2f 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.2", - "@typescript-eslint/eslint-plugin": "2.8.0", - "@typescript-eslint/parser": "2.8.0", + "@typescript-eslint/eslint-plugin": "2.9.0", + "@typescript-eslint/parser": "2.9.0", "babel-loader": "8.0.6", "coveralls": "3.0.8", "eslint": "6.7.1", diff --git a/yarn.lock b/yarn.lock index 05d3330..700faab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1208,40 +1208,40 @@ dependencies: "@types/yargs-parser" "*" -"@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== +"@typescript-eslint/eslint-plugin@2.9.0": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.9.0.tgz#fa810282c0e45f6c2310b9c0dfcd25bff97ab7e9" + integrity sha512-98rfOt3NYn5Gr9wekTB8TexxN6oM8ZRvYuphPs1Atfsy419SDLYCaE30aJkRiiTCwGEY98vOhFsEVm7Zs4toQQ== dependencies: - "@typescript-eslint/experimental-utils" "2.8.0" + "@typescript-eslint/experimental-utils" "2.9.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@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== +"@typescript-eslint/experimental-utils@2.9.0": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.9.0.tgz#bbe99a8d9510240c055fc4b17230dd0192ba3c7f" + integrity sha512-0lOLFdpdJsCMqMSZT7l7W2ta0+GX8A3iefG3FovJjrX+QR8y6htFlFdU7aOVPL6pDvt6XcsOb8fxk5sq+girTw== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.8.0" + "@typescript-eslint/typescript-estree" "2.9.0" eslint-scope "^5.0.0" -"@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== +"@typescript-eslint/parser@2.9.0": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.9.0.tgz#2e9cf438de119b143f642a3a406e1e27eb70b7cd" + integrity sha512-fJ+dNs3CCvEsJK2/Vg5c2ZjuQ860ySOAsodDPwBaVlrGvRN+iCNC8kUfLFL8cT49W4GSiLPa/bHiMjYXA7EhKQ== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.8.0" - "@typescript-eslint/typescript-estree" "2.8.0" + "@typescript-eslint/experimental-utils" "2.9.0" + "@typescript-eslint/typescript-estree" "2.9.0" eslint-visitor-keys "^1.1.0" -"@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== +"@typescript-eslint/typescript-estree@2.9.0": + version "2.9.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.9.0.tgz#09138daf8f47d0e494ba7db9e77394e928803017" + integrity sha512-v6btSPXEWCP594eZbM+JCXuFoXWXyF/z8kaSBSdCb83DF+Y7+xItW29SsKtSULgLemqJBT+LpT+0ZqdfH7QVmA== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From 554f8c8a01ec60a35fcd175154e170fafe569fbb Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 26 Nov 2019 08:16:59 +0100 Subject: [PATCH 23/53] Update dependency @types/node to v11.15.3 (#183) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 04fc6c4..3eecd87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2449,9 +2449,9 @@ } }, "@types/node": { - "version": "11.15.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.2.tgz", - "integrity": "sha512-BqCU9uIFkUH9Sgo2uLYbmIiFB1T+VBiM8AI/El3LIAI5KzwtckeSG+3WOYZr9aMoX4UIvRFBWBeSaOu6hFue2Q==", + "version": "11.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.3.tgz", + "integrity": "sha512-5RzvXVietaB8S4dwDjxjltAOHtTO87fiksjqjWGZih97j6KSrdCDaRfmYMNrgrLM87odGBrsTHAl6N3fLraQaw==", "dev": true }, "@types/stack-utils": { diff --git a/package.json b/package.json index ac61c2f..458d461 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@babel/runtime": "7.7.4", "@types/jest": "24.0.23", "@types/nock": "10.0.3", - "@types/node": "11.15.2", + "@types/node": "11.15.3", "@typescript-eslint/eslint-plugin": "2.9.0", "@typescript-eslint/parser": "2.9.0", "babel-loader": "8.0.6", diff --git a/yarn.lock b/yarn.lock index 700faab..2e0557f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1186,10 +1186,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.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/node@11.15.3": + version "11.15.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.3.tgz#cb7f19846a83ac5a88fc22756b74633cdeb476a7" + integrity sha512-5RzvXVietaB8S4dwDjxjltAOHtTO87fiksjqjWGZih97j6KSrdCDaRfmYMNrgrLM87odGBrsTHAl6N3fLraQaw== "@types/stack-utils@^1.0.1": version "1.0.1" From 7626667f994aa2e0e4973a34728de41f6e789596 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 27 Nov 2019 07:35:03 +0100 Subject: [PATCH 24/53] Update dependency coveralls to v3.0.9 (#184) --- package-lock.json | 127 ++-------------------------------------------- package.json | 2 +- yarn.lock | 108 +++------------------------------------ 3 files changed, 11 insertions(+), 226 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3eecd87..bf13c0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3329,12 +3329,6 @@ } } }, - "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", @@ -3825,16 +3819,6 @@ "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", @@ -4035,12 +4019,11 @@ } }, "coveralls": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.8.tgz", - "integrity": "sha512-lkQlg29RhV9zwB0gDaEAWoap8xPgFxtPsVIpTNiDDtWNrvtP1/RmGJRRAV/Loz2gihmppObkSL0wnptEGUXaOQ==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.0.9.tgz", + "integrity": "sha512-nNBg3B1+4iDox5A5zqHKzUTiwl2ey4k2o0NEcVZYvl+GOSJdKBj4AJGKLv6h3SvWch7tABHePAQOSZWM9E2hMg==", "dev": true, "requires": { - "cobertura-parse": "^1.0.5", "js-yaml": "^3.13.1", "lcov-parse": "^1.0.0", "log-driver": "^1.2.7", @@ -4362,12 +4345,6 @@ } } }, - "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", @@ -6027,12 +6004,6 @@ "integrity": "sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q==", "dev": true }, - "growl": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", - "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", - "dev": true - }, "growly": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", @@ -6154,12 +6125,6 @@ "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", @@ -7853,76 +7818,6 @@ } } }, - "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", @@ -11274,22 +11169,6 @@ "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 458d461..4223eab 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@typescript-eslint/eslint-plugin": "2.9.0", "@typescript-eslint/parser": "2.9.0", "babel-loader": "8.0.6", - "coveralls": "3.0.8", + "coveralls": "3.0.9", "eslint": "6.7.1", "jest": "24.9.0", "nock": "11.7.0", diff --git a/yarn.lock b/yarn.lock index 2e0557f..d23d744 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1848,11 +1848,6 @@ 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" @@ -2202,14 +2197,6 @@ 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" @@ -2242,11 +2229,6 @@ 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" @@ -2366,12 +2348,11 @@ cosmiconfig@5.2.1: js-yaml "^3.13.1" parse-json "^4.0.0" -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== +coveralls@3.0.9: + version "3.0.9" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.9.tgz#8cfc5a5525f84884e2948a0bf0f1c0e90aac0420" + integrity sha512-nNBg3B1+4iDox5A5zqHKzUTiwl2ey4k2o0NEcVZYvl+GOSJdKBj4AJGKLv6h3SvWch7tABHePAQOSZWM9E2hMg== dependencies: - cobertura-parse "^1.0.5" js-yaml "^3.13.1" lcov-parse "^1.0.0" log-driver "^1.2.7" @@ -2489,13 +2470,6 @@ 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" @@ -2653,11 +2627,6 @@ 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" @@ -2819,7 +2788,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= @@ -3392,18 +3361,6 @@ 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" @@ -3519,11 +3476,6 @@ 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.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" resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" @@ -3553,11 +3505,6 @@ 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" @@ -3637,11 +3584,6 @@ 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" @@ -5106,29 +5048,13 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@0.5.1, mkdirp@0.x, mkdirp@^0.5.0, 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" @@ -6375,7 +6301,7 @@ sane@^4.0.3: minimist "^1.1.1" walker "~1.0.5" -sax@>=0.6.0, sax@^1.2.4: +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== @@ -6781,13 +6707,6 @@ 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" @@ -7532,19 +7451,6 @@ 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" From 4294caac37e98bc37e9fd000e78a98ca78570aef Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 1 Dec 2019 10:45:51 +0100 Subject: [PATCH 25/53] Update dependency eslint to v6.7.2 (#185) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index bf13c0a..be9c9b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4588,9 +4588,9 @@ } }, "eslint": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.1.tgz", - "integrity": "sha512-UWzBS79pNcsDSxgxbdjkmzn/B6BhsXMfUaOHnNwyE8nD+Q6pyT96ow2MccVayUTV4yMid4qLhMiQaywctRkBLA==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.2.tgz", + "integrity": "sha512-qMlSWJaCSxDFr8fBPvJM9kJwbazrhNcBU3+DszDW1OlEwKBBRWsJc7NJFelvwQpanHCR14cOLD41x8Eqvo3Nng==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", diff --git a/package.json b/package.json index 4223eab..37934ce 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@typescript-eslint/parser": "2.9.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", - "eslint": "6.7.1", + "eslint": "6.7.2", "jest": "24.9.0", "nock": "11.7.0", "release-it": "12.4.3", diff --git a/yarn.lock b/yarn.lock index d23d744..3c878e9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2833,10 +2833,10 @@ eslint-visitor-keys@^1.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== -eslint@6.7.1: - version "6.7.1" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.7.1.tgz#269ccccec3ef60ab32358a44d147ac209154b919" - integrity sha512-UWzBS79pNcsDSxgxbdjkmzn/B6BhsXMfUaOHnNwyE8nD+Q6pyT96ow2MccVayUTV4yMid4qLhMiQaywctRkBLA== +eslint@6.7.2: + version "6.7.2" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.7.2.tgz#c17707ca4ad7b2d8af986a33feba71e18a9fecd1" + integrity sha512-qMlSWJaCSxDFr8fBPvJM9kJwbazrhNcBU3+DszDW1OlEwKBBRWsJc7NJFelvwQpanHCR14cOLD41x8Eqvo3Nng== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" From 11b21d03c2ca4a2c5c8a9df0553ab670dc7e10b8 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 3 Dec 2019 07:33:39 +0100 Subject: [PATCH 26/53] Update typescript-eslint monorepo to v2.10.0 (#186) --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index be9c9b6..fab8005 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2476,12 +2476,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.9.0.tgz", - "integrity": "sha512-98rfOt3NYn5Gr9wekTB8TexxN6oM8ZRvYuphPs1Atfsy419SDLYCaE30aJkRiiTCwGEY98vOhFsEVm7Zs4toQQ==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz", + "integrity": "sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.9.0", + "@typescript-eslint/experimental-utils": "2.10.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2497,32 +2497,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.9.0.tgz", - "integrity": "sha512-0lOLFdpdJsCMqMSZT7l7W2ta0+GX8A3iefG3FovJjrX+QR8y6htFlFdU7aOVPL6pDvt6XcsOb8fxk5sq+girTw==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz", + "integrity": "sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.9.0", + "@typescript-eslint/typescript-estree": "2.10.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.9.0.tgz", - "integrity": "sha512-fJ+dNs3CCvEsJK2/Vg5c2ZjuQ860ySOAsodDPwBaVlrGvRN+iCNC8kUfLFL8cT49W4GSiLPa/bHiMjYXA7EhKQ==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.10.0.tgz", + "integrity": "sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.9.0", - "@typescript-eslint/typescript-estree": "2.9.0", + "@typescript-eslint/experimental-utils": "2.10.0", + "@typescript-eslint/typescript-estree": "2.10.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.9.0.tgz", - "integrity": "sha512-v6btSPXEWCP594eZbM+JCXuFoXWXyF/z8kaSBSdCb83DF+Y7+xItW29SsKtSULgLemqJBT+LpT+0ZqdfH7QVmA==", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz", + "integrity": "sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index 37934ce..d8c6b2b 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.3", - "@typescript-eslint/eslint-plugin": "2.9.0", - "@typescript-eslint/parser": "2.9.0", + "@typescript-eslint/eslint-plugin": "2.10.0", + "@typescript-eslint/parser": "2.10.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", "eslint": "6.7.2", diff --git a/yarn.lock b/yarn.lock index 3c878e9..6032521 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1208,40 +1208,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.9.0": - version "2.9.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.9.0.tgz#fa810282c0e45f6c2310b9c0dfcd25bff97ab7e9" - integrity sha512-98rfOt3NYn5Gr9wekTB8TexxN6oM8ZRvYuphPs1Atfsy419SDLYCaE30aJkRiiTCwGEY98vOhFsEVm7Zs4toQQ== +"@typescript-eslint/eslint-plugin@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz#c4cb103275e555e8a7e9b3d14c5951eb6d431e70" + integrity sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw== dependencies: - "@typescript-eslint/experimental-utils" "2.9.0" + "@typescript-eslint/experimental-utils" "2.10.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.9.0": - version "2.9.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.9.0.tgz#bbe99a8d9510240c055fc4b17230dd0192ba3c7f" - integrity sha512-0lOLFdpdJsCMqMSZT7l7W2ta0+GX8A3iefG3FovJjrX+QR8y6htFlFdU7aOVPL6pDvt6XcsOb8fxk5sq+girTw== +"@typescript-eslint/experimental-utils@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz#8db1656cdfd3d9dcbdbf360b8274dea76f0b2c2c" + integrity sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.9.0" + "@typescript-eslint/typescript-estree" "2.10.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.9.0": - version "2.9.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.9.0.tgz#2e9cf438de119b143f642a3a406e1e27eb70b7cd" - integrity sha512-fJ+dNs3CCvEsJK2/Vg5c2ZjuQ860ySOAsodDPwBaVlrGvRN+iCNC8kUfLFL8cT49W4GSiLPa/bHiMjYXA7EhKQ== +"@typescript-eslint/parser@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.10.0.tgz#24b2e48384ab6d5a6121e4c4faf8892c79657ad3" + integrity sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.9.0" - "@typescript-eslint/typescript-estree" "2.9.0" + "@typescript-eslint/experimental-utils" "2.10.0" + "@typescript-eslint/typescript-estree" "2.10.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.9.0": - version "2.9.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.9.0.tgz#09138daf8f47d0e494ba7db9e77394e928803017" - integrity sha512-v6btSPXEWCP594eZbM+JCXuFoXWXyF/z8kaSBSdCb83DF+Y7+xItW29SsKtSULgLemqJBT+LpT+0ZqdfH7QVmA== +"@typescript-eslint/typescript-estree@2.10.0": + version "2.10.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz#89cdabd5e8c774e9d590588cb42fb9afd14dcbd9" + integrity sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From cb7dace01766b1e251eef91be07dedb55e5f5b2e Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 4 Dec 2019 09:59:38 +0100 Subject: [PATCH 27/53] Update dependency typescript to v3.7.3 (#187) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index fab8005..d672486 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10498,9 +10498,9 @@ "dev": true }, "typescript": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz", - "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==", + "version": "3.7.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz", + "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index d8c6b2b..60eb9c5 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "release-it": "12.4.3", "ts-jest": "24.2.0", "ts-loader": "6.2.1", - "typescript": "3.7.2", + "typescript": "3.7.3", "webpack": "4.41.2", "webpack-cli": "3.3.10" }, diff --git a/yarn.lock b/yarn.lock index 6032521..1377753 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7007,10 +7007,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -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== +typescript@3.7.3: + version "3.7.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.3.tgz#b36840668a16458a7025b9eabfad11b66ab85c69" + integrity sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw== uglify-js@^3.1.4: version "3.6.0" From 732752ee61749d697f053ef252b03b9a9336c19d Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 9 Dec 2019 07:35:04 +0100 Subject: [PATCH 28/53] Update babel monorepo (#188) --- package-lock.json | 166 +++++++++++++++++++++++----------------------- package.json | 8 +-- yarn.lock | 135 +++++++++++++++++++++++-------------- 3 files changed, 173 insertions(+), 136 deletions(-) diff --git a/package-lock.json b/package-lock.json index d672486..d5e4c2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,15 +14,15 @@ } }, "@babel/core": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.4.tgz", - "integrity": "sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.5.tgz", + "integrity": "sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", "@babel/generator": "^7.7.4", "@babel/helpers": "^7.7.4", - "@babel/parser": "^7.7.4", + "@babel/parser": "^7.7.5", "@babel/template": "^7.7.4", "@babel/traverse": "^7.7.4", "@babel/types": "^7.7.4", @@ -77,9 +77,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -252,9 +252,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -422,9 +422,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -503,9 +503,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -645,9 +645,9 @@ } }, "@babel/helper-module-transforms": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.4.tgz", - "integrity": "sha512-ehGBu4mXrhs0FxAqN8tWkzF8GSIGAiEumu4ONZ/hD9M88uHcD+Yu2ttKfOCgwzoesJOJrtQh7trI5YPbRtMmnA==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.5.tgz", + "integrity": "sha512-A7pSxyJf1gN5qXVcidwLWydjftUN878VkalhXX5iQDuGyiGK3sOrrKKHF4/A4fwHtnsotv/NipwAeLzY4KQPvw==", "dev": true, "requires": { "@babel/helper-module-imports": "^7.7.4", @@ -668,9 +668,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -789,9 +789,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -964,9 +964,9 @@ }, "dependencies": { "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -1056,9 +1056,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -1164,9 +1164,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -1466,9 +1466,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -1582,9 +1582,9 @@ } }, "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", + "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", "dev": true }, "@babel/template": { @@ -1630,23 +1630,23 @@ } }, "@babel/plugin-transform-modules-amd": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.4.tgz", - "integrity": "sha512-/542/5LNA18YDtg1F+QHvvUSlxdvjZoD/aldQwkq+E3WCkbEjNSN9zdrOXaSlfg3IfGi22ijzecklF/A7kVZFQ==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.5.tgz", + "integrity": "sha512-CT57FG4A2ZUNU1v+HdvDSDrjNWBrtCmSH6YbbgN3Lrf0Di/q/lWRxZrE72p3+HCCz9UjfZOEBdphgC0nzOS6DQ==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.7.4", + "@babel/helper-module-transforms": "^7.7.5", "@babel/helper-plugin-utils": "^7.0.0", "babel-plugin-dynamic-import-node": "^2.3.0" } }, "@babel/plugin-transform-modules-commonjs": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.4.tgz", - "integrity": "sha512-k8iVS7Jhc367IcNF53KCwIXtKAH7czev866ThsTgy8CwlXjnKZna2VHwChglzLleYrcHz1eQEIJlGRQxB53nqA==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.5.tgz", + "integrity": "sha512-9Cq4zTFExwFhQI6MT1aFxgqhIsMWQWDVwOgLzl7PTWJHsNaqFvklAU+Oz6AQLAS0dJKTwZSOCo20INwktxpi3Q==", "dev": true, "requires": { - "@babel/helper-module-transforms": "^7.7.4", + "@babel/helper-module-transforms": "^7.7.5", "@babel/helper-plugin-utils": "^7.0.0", "@babel/helper-simple-access": "^7.7.4", "babel-plugin-dynamic-import-node": "^2.3.0" @@ -1744,9 +1744,9 @@ } }, "@babel/plugin-transform-regenerator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.4.tgz", - "integrity": "sha512-e7MWl5UJvmPEwFJTwkBlPmqixCtr9yAASBqff4ggXTNicZiwbF8Eefzm6NVgfiBp7JdAGItecnctKTgH44q2Jw==", + "version": "7.7.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.5.tgz", + "integrity": "sha512-/8I8tPvX2FkuEyWbjRCt4qTAgZK0DVy8QRguhA524UH48RfGJy94On2ri+dCuwOpcerPRl9O4ebQkRcVzIaGBw==", "dev": true, "requires": { "regenerator-transform": "^0.14.0" @@ -1762,9 +1762,9 @@ } }, "@babel/plugin-transform-runtime": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.4.tgz", - "integrity": "sha512-O8kSkS5fP74Ad/8pfsCMGa8sBRdLxYoSReaARRNSz3FbFQj3z/QUvoUmJ28gn9BO93YfnXc3j+Xyaqe8cKDNBQ==", + "version": "7.7.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.6.tgz", + "integrity": "sha512-tajQY+YmXR7JjTwRvwL4HePqoL3DYxpYXIHKVvrOIvJmeHe2y1w4tz5qz9ObUDC9m76rCzIMPyn4eERuwA4a4A==", "dev": true, "requires": { "@babel/helper-module-imports": "^7.7.4", @@ -1842,9 +1842,9 @@ } }, "@babel/preset-env": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.4.tgz", - "integrity": "sha512-Dg+ciGJjwvC1NIe/DGblMbcGq1HOtKbw8RLl4nIjlfcILKEOkWT/vRqPpumswABEBVudii6dnVwrBtzD7ibm4g==", + "version": "7.7.6", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.6.tgz", + "integrity": "sha512-k5hO17iF/Q7tR9Jv8PdNBZWYW6RofxhnxKjBMc0nG4JTaWvOTiPoO/RLFwAKcA4FpmuBFm6jkoqaRJLGi0zdaQ==", "dev": true, "requires": { "@babel/helper-module-imports": "^7.7.4", @@ -1875,8 +1875,8 @@ "@babel/plugin-transform-function-name": "^7.7.4", "@babel/plugin-transform-literals": "^7.7.4", "@babel/plugin-transform-member-expression-literals": "^7.7.4", - "@babel/plugin-transform-modules-amd": "^7.7.4", - "@babel/plugin-transform-modules-commonjs": "^7.7.4", + "@babel/plugin-transform-modules-amd": "^7.7.5", + "@babel/plugin-transform-modules-commonjs": "^7.7.5", "@babel/plugin-transform-modules-systemjs": "^7.7.4", "@babel/plugin-transform-modules-umd": "^7.7.4", "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4", @@ -1884,7 +1884,7 @@ "@babel/plugin-transform-object-super": "^7.7.4", "@babel/plugin-transform-parameters": "^7.7.4", "@babel/plugin-transform-property-literals": "^7.7.4", - "@babel/plugin-transform-regenerator": "^7.7.4", + "@babel/plugin-transform-regenerator": "^7.7.5", "@babel/plugin-transform-reserved-words": "^7.7.4", "@babel/plugin-transform-shorthand-properties": "^7.7.4", "@babel/plugin-transform-spread": "^7.7.4", @@ -1894,7 +1894,7 @@ "@babel/plugin-transform-unicode-regex": "^7.7.4", "@babel/types": "^7.7.4", "browserslist": "^4.6.0", - "core-js-compat": "^3.1.1", + "core-js-compat": "^3.4.7", "invariant": "^2.2.2", "js-levenshtein": "^1.1.3", "semver": "^5.5.0" @@ -1933,9 +1933,9 @@ } }, "@babel/runtime": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.4.tgz", - "integrity": "sha512-r24eVUUr0QqNZa+qrImUk8fn5SPhHq+IfYvIoIMg0do3GdK9sMdiLKP3GYVVaxpPKORgm8KRKaNTEhAjgIpLMw==", + "version": "7.7.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.6.tgz", + "integrity": "sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw==", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" @@ -3401,14 +3401,14 @@ } }, "browserslist": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.7.3.tgz", - "integrity": "sha512-jWvmhqYpx+9EZm/FxcZSbUZyDEvDTLDi3nSAKbzEkyWvtI0mNSmUosey+5awDW1RUlrgXbQb5A6qY1xQH9U6MQ==", + "version": "4.8.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.8.2.tgz", + "integrity": "sha512-+M4oeaTplPm/f1pXDw84YohEv7B1i/2Aisei8s4s6k3QsoSHa7i5sz8u/cGQkkatCPxMASKxPualR4wwYgVboA==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001010", - "electron-to-chromium": "^1.3.306", - "node-releases": "^1.1.40" + "caniuse-lite": "^1.0.30001015", + "electron-to-chromium": "^1.3.322", + "node-releases": "^1.1.42" } }, "bs-logger": { @@ -3581,9 +3581,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001011", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001011.tgz", - "integrity": "sha512-h+Eqyn/YA6o6ZTqpS86PyRmNWOs1r54EBDcd2NTwwfsXQ8re1B38SnB+p2RKF8OUsyEIjeDU8XGec1RGO/wYCg==", + "version": "1.0.30001015", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001015.tgz", + "integrity": "sha512-/xL2AbW/XWHNu1gnIrO8UitBGoFthcsDgU9VLK1/dpsoxbaD5LscHozKze05R6WLsBvLhqv78dAPozMFQBYLbQ==", "dev": true }, "capture-exit": { @@ -3965,12 +3965,12 @@ "dev": true }, "core-js-compat": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.2.tgz", - "integrity": "sha512-W0Aj+LM3EAxxjD0Kp2o4be8UlnxIZHNupBv2znqrheR4aY2nOn91794k/xoSp+SxqqriiZpTsSwBtZr60cbkwQ==", + "version": "3.4.7", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.7.tgz", + "integrity": "sha512-57+mgz/P/xsGdjwQYkwtBZR3LuISaxD1dEwVDtbk8xJMqAmwqaxLOvnNT7kdJ7jYE/NjNptyzXi+IQFMi/2fCw==", "dev": true, "requires": { - "browserslist": "^4.7.3", + "browserslist": "^4.8.0", "semver": "^6.3.0" }, "dependencies": { @@ -4441,9 +4441,9 @@ } }, "electron-to-chromium": { - "version": "1.3.311", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.311.tgz", - "integrity": "sha512-7GH6RKCzziLzJ9ejmbiBEdzHZsc6C3eRpav14dmRfTWMpNgMqpP1ukw/FU/Le2fR+ep642naq7a23xNdmh2s+A==", + "version": "1.3.322", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz", + "integrity": "sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA==", "dev": true }, "elliptic": { @@ -7983,9 +7983,9 @@ } }, "node-releases": { - "version": "1.1.41", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.41.tgz", - "integrity": "sha512-+IctMa7wIs8Cfsa8iYzeaLTFwv5Y4r5jZud+4AnfymzeEXKBCavFX0KBgzVaPVqf0ywa6PrO8/b+bPqdwjGBSg==", + "version": "1.1.42", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.42.tgz", + "integrity": "sha512-OQ/ESmUqGawI2PRX+XIRao44qWYBBfN54ImQYdWVTQqUckuejOg76ysSqDBK8NG3zwySRVnX36JwDQ6x+9GxzA==", "dev": true, "requires": { "semver": "^6.3.0" diff --git a/package.json b/package.json index 60eb9c5..614371a 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,14 @@ "author": "Ricardo Ambrogi", "license": "MIT", "devDependencies": { - "@babel/core": "7.7.4", + "@babel/core": "7.7.5", "@babel/plugin-proposal-class-properties": "7.7.4", "@babel/plugin-proposal-object-rest-spread": "7.7.4", - "@babel/plugin-transform-runtime": "7.7.4", + "@babel/plugin-transform-runtime": "7.7.6", "@babel/plugin-transform-typescript": "7.7.4", - "@babel/preset-env": "7.7.4", + "@babel/preset-env": "7.7.6", "@babel/preset-typescript": "7.7.4", - "@babel/runtime": "7.7.4", + "@babel/runtime": "7.7.6", "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.3", diff --git a/yarn.lock b/yarn.lock index 1377753..4df03b3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,15 +16,15 @@ dependencies: "@babel/highlight" "^7.0.0" -"@babel/core@7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.4.tgz#37e864532200cb6b50ee9a4045f5f817840166ab" - integrity sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ== +"@babel/core@7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.5.tgz#ae1323cd035b5160293307f50647e83f8ba62f7e" + integrity sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw== dependencies: "@babel/code-frame" "^7.5.5" "@babel/generator" "^7.7.4" "@babel/helpers" "^7.7.4" - "@babel/parser" "^7.7.4" + "@babel/parser" "^7.7.5" "@babel/template" "^7.7.4" "@babel/traverse" "^7.7.4" "@babel/types" "^7.7.4" @@ -203,6 +203,18 @@ "@babel/types" "^7.7.4" lodash "^4.17.13" +"@babel/helper-module-transforms@^7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.7.5.tgz#d044da7ffd91ec967db25cd6748f704b6b244835" + integrity sha512-A7pSxyJf1gN5qXVcidwLWydjftUN878VkalhXX5iQDuGyiGK3sOrrKKHF4/A4fwHtnsotv/NipwAeLzY4KQPvw== + dependencies: + "@babel/helper-module-imports" "^7.7.4" + "@babel/helper-simple-access" "^7.7.4" + "@babel/helper-split-export-declaration" "^7.7.4" + "@babel/template" "^7.7.4" + "@babel/types" "^7.7.4" + lodash "^4.17.13" + "@babel/helper-optimise-call-expression@^7.7.4": version "7.7.4" resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz#034af31370d2995242aa4df402c3b7794b2dcdf2" @@ -312,6 +324,11 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.4.tgz#75ab2d7110c2cf2fa949959afb05fa346d2231bb" integrity sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g== +"@babel/parser@^7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.5.tgz#cbf45321619ac12d83363fcf9c94bb67fa646d71" + integrity sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig== + "@babel/plugin-proposal-async-generator-functions@^7.7.4": version "7.7.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.4.tgz#0351c5ac0a9e927845fffd5b82af476947b7ce6d" @@ -536,21 +553,21 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-modules-amd@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.4.tgz#276b3845ca2b228f2995e453adc2e6f54d72fb71" - integrity sha512-/542/5LNA18YDtg1F+QHvvUSlxdvjZoD/aldQwkq+E3WCkbEjNSN9zdrOXaSlfg3IfGi22ijzecklF/A7kVZFQ== +"@babel/plugin-transform-modules-amd@^7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.5.tgz#39e0fb717224b59475b306402bb8eedab01e729c" + integrity sha512-CT57FG4A2ZUNU1v+HdvDSDrjNWBrtCmSH6YbbgN3Lrf0Di/q/lWRxZrE72p3+HCCz9UjfZOEBdphgC0nzOS6DQ== dependencies: - "@babel/helper-module-transforms" "^7.7.4" + "@babel/helper-module-transforms" "^7.7.5" "@babel/helper-plugin-utils" "^7.0.0" babel-plugin-dynamic-import-node "^2.3.0" -"@babel/plugin-transform-modules-commonjs@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.4.tgz#bee4386e550446343dd52a571eda47851ff857a3" - integrity sha512-k8iVS7Jhc367IcNF53KCwIXtKAH7czev866ThsTgy8CwlXjnKZna2VHwChglzLleYrcHz1eQEIJlGRQxB53nqA== +"@babel/plugin-transform-modules-commonjs@^7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.5.tgz#1d27f5eb0bcf7543e774950e5b2fa782e637b345" + integrity sha512-9Cq4zTFExwFhQI6MT1aFxgqhIsMWQWDVwOgLzl7PTWJHsNaqFvklAU+Oz6AQLAS0dJKTwZSOCo20INwktxpi3Q== dependencies: - "@babel/helper-module-transforms" "^7.7.4" + "@babel/helper-module-transforms" "^7.7.5" "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-simple-access" "^7.7.4" babel-plugin-dynamic-import-node "^2.3.0" @@ -610,10 +627,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-regenerator@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.4.tgz#d18eac0312a70152d7d914cbed2dc3999601cfc0" - integrity sha512-e7MWl5UJvmPEwFJTwkBlPmqixCtr9yAASBqff4ggXTNicZiwbF8Eefzm6NVgfiBp7JdAGItecnctKTgH44q2Jw== +"@babel/plugin-transform-regenerator@^7.7.5": + version "7.7.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.5.tgz#3a8757ee1a2780f390e89f246065ecf59c26fce9" + integrity sha512-/8I8tPvX2FkuEyWbjRCt4qTAgZK0DVy8QRguhA524UH48RfGJy94On2ri+dCuwOpcerPRl9O4ebQkRcVzIaGBw== dependencies: regenerator-transform "^0.14.0" @@ -624,10 +641,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-runtime@7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.4.tgz#51fe458c1c1fa98a8b07934f4ed38b6cd62177a6" - integrity sha512-O8kSkS5fP74Ad/8pfsCMGa8sBRdLxYoSReaARRNSz3FbFQj3z/QUvoUmJ28gn9BO93YfnXc3j+Xyaqe8cKDNBQ== +"@babel/plugin-transform-runtime@7.7.6": + version "7.7.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.7.6.tgz#4f2b548c88922fb98ec1c242afd4733ee3e12f61" + integrity sha512-tajQY+YmXR7JjTwRvwL4HePqoL3DYxpYXIHKVvrOIvJmeHe2y1w4tz5qz9ObUDC9m76rCzIMPyn4eERuwA4a4A== dependencies: "@babel/helper-module-imports" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" @@ -688,10 +705,10 @@ "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/preset-env@7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.4.tgz#ccaf309ae8d1ee2409c85a4e2b5e280ceee830f8" - integrity sha512-Dg+ciGJjwvC1NIe/DGblMbcGq1HOtKbw8RLl4nIjlfcILKEOkWT/vRqPpumswABEBVudii6dnVwrBtzD7ibm4g== +"@babel/preset-env@7.7.6": + version "7.7.6" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.6.tgz#39ac600427bbb94eec6b27953f1dfa1d64d457b2" + integrity sha512-k5hO17iF/Q7tR9Jv8PdNBZWYW6RofxhnxKjBMc0nG4JTaWvOTiPoO/RLFwAKcA4FpmuBFm6jkoqaRJLGi0zdaQ== dependencies: "@babel/helper-module-imports" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" @@ -721,8 +738,8 @@ "@babel/plugin-transform-function-name" "^7.7.4" "@babel/plugin-transform-literals" "^7.7.4" "@babel/plugin-transform-member-expression-literals" "^7.7.4" - "@babel/plugin-transform-modules-amd" "^7.7.4" - "@babel/plugin-transform-modules-commonjs" "^7.7.4" + "@babel/plugin-transform-modules-amd" "^7.7.5" + "@babel/plugin-transform-modules-commonjs" "^7.7.5" "@babel/plugin-transform-modules-systemjs" "^7.7.4" "@babel/plugin-transform-modules-umd" "^7.7.4" "@babel/plugin-transform-named-capturing-groups-regex" "^7.7.4" @@ -730,7 +747,7 @@ "@babel/plugin-transform-object-super" "^7.7.4" "@babel/plugin-transform-parameters" "^7.7.4" "@babel/plugin-transform-property-literals" "^7.7.4" - "@babel/plugin-transform-regenerator" "^7.7.4" + "@babel/plugin-transform-regenerator" "^7.7.5" "@babel/plugin-transform-reserved-words" "^7.7.4" "@babel/plugin-transform-shorthand-properties" "^7.7.4" "@babel/plugin-transform-spread" "^7.7.4" @@ -740,7 +757,7 @@ "@babel/plugin-transform-unicode-regex" "^7.7.4" "@babel/types" "^7.7.4" browserslist "^4.6.0" - core-js-compat "^3.1.1" + core-js-compat "^3.4.7" invariant "^2.2.2" js-levenshtein "^1.1.3" semver "^5.5.0" @@ -753,10 +770,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-transform-typescript" "^7.7.4" -"@babel/runtime@7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.4.tgz#b23a856751e4bf099262f867767889c0e3fe175b" - integrity sha512-r24eVUUr0QqNZa+qrImUk8fn5SPhHq+IfYvIoIMg0do3GdK9sMdiLKP3GYVVaxpPKORgm8KRKaNTEhAjgIpLMw== +"@babel/runtime@7.7.6": + version "7.7.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.6.tgz#d18c511121aff1b4f2cd1d452f1bac9601dd830f" + integrity sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw== dependencies: regenerator-runtime "^0.13.2" @@ -1907,7 +1924,7 @@ browserify-zlib@^0.2.0: dependencies: pako "~1.0.5" -browserslist@^4.6.0, browserslist@^4.6.2: +browserslist@^4.6.0: version "4.6.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.6.3.tgz#0530cbc6ab0c1f3fc8c819c72377ba55cf647f05" integrity sha512-CNBqTCq22RKM8wKJNowcqihHJ4SkI8CGeK7KOR9tPboXUuS5Zk5lQgzzTbs4oxD8x+6HUshZUa2OyNI9lR93bQ== @@ -1916,6 +1933,15 @@ browserslist@^4.6.0, browserslist@^4.6.2: electron-to-chromium "^1.3.164" node-releases "^1.1.23" +browserslist@^4.8.0: + version "4.8.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.8.2.tgz#b45720ad5fbc8713b7253c20766f701c9a694289" + integrity sha512-+M4oeaTplPm/f1pXDw84YohEv7B1i/2Aisei8s4s6k3QsoSHa7i5sz8u/cGQkkatCPxMASKxPualR4wwYgVboA== + dependencies: + caniuse-lite "^1.0.30001015" + electron-to-chromium "^1.3.322" + node-releases "^1.1.42" + bs-logger@0.x: version "0.2.6" resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" @@ -2047,6 +2073,11 @@ caniuse-lite@^1.0.30000975: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000981.tgz#5b6828803362363e5a1deba2eb550185cf6cec8f" integrity sha512-JTByHj4DQgL2crHNMK6PibqAMrqqb/Vvh0JrsTJVSWG4VSUrT16EklkuRZofurlMjgA9e+zlCM4Y39F3kootMQ== +caniuse-lite@^1.0.30001015: + version "1.0.30001015" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001015.tgz#15a7ddf66aba786a71d99626bc8f2b91c6f0f5f0" + integrity sha512-/xL2AbW/XWHNu1gnIrO8UitBGoFthcsDgU9VLK1/dpsoxbaD5LscHozKze05R6WLsBvLhqv78dAPozMFQBYLbQ== + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -2319,19 +2350,13 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= -core-js-compat@^3.1.1: - version "3.1.4" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1.4.tgz#e4d0c40fbd01e65b1d457980fe4112d4358a7408" - integrity sha512-Z5zbO9f1d0YrJdoaQhphVAnKPimX92D6z8lCGphH89MNRxlL1prI9ExJPqVwP0/kgkQCv8c4GJGT8X16yUncOg== +core-js-compat@^3.4.7: + version "3.4.7" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.4.7.tgz#39f8080b1d92a524d6d90505c42b9c5c1eb90611" + integrity sha512-57+mgz/P/xsGdjwQYkwtBZR3LuISaxD1dEwVDtbk8xJMqAmwqaxLOvnNT7kdJ7jYE/NjNptyzXi+IQFMi/2fCw== dependencies: - browserslist "^4.6.2" - core-js-pure "3.1.4" - semver "^6.1.1" - -core-js-pure@3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.1.4.tgz#5fa17dc77002a169a3566cc48dc774d2e13e3769" - integrity sha512-uJ4Z7iPNwiu1foygbcZYJsJs1jiXrTTCvxfLDXNhI/I+NHbSIEyr548y4fcsCEyWY0XgfAG/qqaunJ1SThHenA== + browserslist "^4.8.0" + semver "^6.3.0" core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" @@ -2697,6 +2722,11 @@ electron-to-chromium@^1.3.164: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.188.tgz#e28e1afe4bb229989e280bfd3b395c7ec03c8b7a" integrity sha512-tEQcughYIMj8WDMc59EGEtNxdGgwal/oLLTDw+NEqJRJwGflQvH3aiyiexrWeZOETP4/ko78PVr6gwNhdozvuQ== +electron-to-chromium@^1.3.322: + version "1.3.322" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz#a6f7e1c79025c2b05838e8e344f6e89eb83213a8" + integrity sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA== + elliptic@^6.0.0: version "6.5.0" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.0.tgz#2b8ed4c891b7de3200e14412a5b8248c7af505ca" @@ -5218,6 +5248,13 @@ node-releases@^1.1.23: dependencies: semver "^5.3.0" +node-releases@^1.1.42: + version "1.1.42" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.42.tgz#a999f6a62f8746981f6da90627a8d2fc090bbad7" + integrity sha512-OQ/ESmUqGawI2PRX+XIRao44qWYBBfN54ImQYdWVTQqUckuejOg76ysSqDBK8NG3zwySRVnX36JwDQ6x+9GxzA== + dependencies: + semver "^6.3.0" + nopt@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" @@ -6337,7 +6374,7 @@ semver@^5.0.3, semver@^5.5: resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== -semver@^6.0.0, semver@^6.1.1, semver@^6.1.2: +semver@^6.0.0, semver@^6.1.2: version "6.2.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.2.0.tgz#4d813d9590aaf8a9192693d6c85b9344de5901db" integrity sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A== From 53546d639eab62a6c6c1a95544c819b784c3a0a7 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 10 Dec 2019 10:38:35 +0200 Subject: [PATCH 29/53] Update typescript-eslint monorepo to v2.11.0 (#189) --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5e4c2d..04c0ab7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2476,12 +2476,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz", - "integrity": "sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz", + "integrity": "sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.10.0", + "@typescript-eslint/experimental-utils": "2.11.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2497,32 +2497,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz", - "integrity": "sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz", + "integrity": "sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.10.0", + "@typescript-eslint/typescript-estree": "2.11.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.10.0.tgz", - "integrity": "sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.11.0.tgz", + "integrity": "sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.10.0", - "@typescript-eslint/typescript-estree": "2.10.0", + "@typescript-eslint/experimental-utils": "2.11.0", + "@typescript-eslint/typescript-estree": "2.11.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz", - "integrity": "sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g==", + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz", + "integrity": "sha512-HGY4+d4MagO6cKMcKfIKaTMxcAv7dEVnji2Zi+vi5VV8uWAM631KjAB5GxFcexMYrwKT0EekRiiGK1/Sd7VFGA==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index 614371a..af81404 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.3", - "@typescript-eslint/eslint-plugin": "2.10.0", - "@typescript-eslint/parser": "2.10.0", + "@typescript-eslint/eslint-plugin": "2.11.0", + "@typescript-eslint/parser": "2.11.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", "eslint": "6.7.2", diff --git a/yarn.lock b/yarn.lock index 4df03b3..76a2935 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1225,40 +1225,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.10.0": - version "2.10.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz#c4cb103275e555e8a7e9b3d14c5951eb6d431e70" - integrity sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw== +"@typescript-eslint/eslint-plugin@2.11.0": + version "2.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz#4477c33491ccf0a9a3f4a30ef84978fa0ea0cad2" + integrity sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA== dependencies: - "@typescript-eslint/experimental-utils" "2.10.0" + "@typescript-eslint/experimental-utils" "2.11.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.10.0": - version "2.10.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz#8db1656cdfd3d9dcbdbf360b8274dea76f0b2c2c" - integrity sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ== +"@typescript-eslint/experimental-utils@2.11.0": + version "2.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz#cef18e6b122706c65248a5d8984a9779ed1e52ac" + integrity sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.10.0" + "@typescript-eslint/typescript-estree" "2.11.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.10.0": - version "2.10.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.10.0.tgz#24b2e48384ab6d5a6121e4c4faf8892c79657ad3" - integrity sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g== +"@typescript-eslint/parser@2.11.0": + version "2.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.11.0.tgz#cdcc3be73ee31cbef089af5ff97ccaa380ef6e8b" + integrity sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.10.0" - "@typescript-eslint/typescript-estree" "2.10.0" + "@typescript-eslint/experimental-utils" "2.11.0" + "@typescript-eslint/typescript-estree" "2.11.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.10.0": - version "2.10.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz#89cdabd5e8c774e9d590588cb42fb9afd14dcbd9" - integrity sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g== +"@typescript-eslint/typescript-estree@2.11.0": + version "2.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz#21ada6504274cd1644855926312c798fc697e9fb" + integrity sha512-HGY4+d4MagO6cKMcKfIKaTMxcAv7dEVnji2Zi+vi5VV8uWAM631KjAB5GxFcexMYrwKT0EekRiiGK1/Sd7VFGA== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From 2ca33216058f3f7a4b05bfbca805e64fbb7b528b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 11 Dec 2019 09:37:02 +0200 Subject: [PATCH 30/53] Update dependency https-proxy-agent to v4 (#190) --- package-lock.json | 22 +++++++++++----------- package.json | 2 +- yarn.lock | 24 ++++++++++++------------ 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index 04c0ab7..67d197e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2796,9 +2796,9 @@ "dev": true }, "agent-base": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", - "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-5.0.0.tgz", + "integrity": "sha512-bx4LotUmXlmHABuGlTIwhcVP5U8FDqFVNGzAscDDIDf+2jfpTt219tj0XigIa9K8z1zuPCYjU6emS9YW/yExBQ==", "requires": { "es6-promisify": "^5.0.0" } @@ -4167,9 +4167,9 @@ "dev": true }, "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "requires": { "ms": "^2.1.1" } @@ -6184,12 +6184,12 @@ "dev": true }, "https-proxy-agent": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz", - "integrity": "sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz", + "integrity": "sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==", "requires": { - "agent-base": "^4.3.0", - "debug": "^3.1.0" + "agent-base": "5", + "debug": "4" } }, "iconv-lite": { diff --git a/package.json b/package.json index af81404..e552e06 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,6 @@ "webpack-cli": "3.3.10" }, "dependencies": { - "https-proxy-agent": "3.0.1" + "https-proxy-agent": "4.0.0" } } diff --git a/yarn.lock b/yarn.lock index 76a2935..7476ef8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1472,10 +1472,10 @@ acorn@^7.1.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c" integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ== -agent-base@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" - integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== +agent-base@5: + version "5.0.0" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-5.0.0.tgz#9b1fbf3e74b43f3cf42691d855f46886d7f80a60" + integrity sha512-bx4LotUmXlmHABuGlTIwhcVP5U8FDqFVNGzAscDDIDf+2jfpTt219tj0XigIa9K8z1zuPCYjU6emS9YW/yExBQ== dependencies: es6-promisify "^5.0.0" @@ -2495,7 +2495,7 @@ date-now@^0.1.4: resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= -debug@4.1.1, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: +debug@4, 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" integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== @@ -2509,7 +2509,7 @@ debug@^2.2.0, debug@^2.3.3: dependencies: ms "2.0.0" -debug@^3.1.0, debug@^3.2.6: +debug@^3.2.6: version "3.2.6" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== @@ -3661,13 +3661,13 @@ https-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= -https-proxy-agent@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz#b8c286433e87602311b01c8ea34413d856a4af81" - integrity sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg== +https-proxy-agent@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz#702b71fb5520a132a66de1f67541d9e62154d82b" + integrity sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg== dependencies: - agent-base "^4.3.0" - debug "^3.1.0" + agent-base "5" + debug "4" iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4: version "0.4.24" From cbfccd9d0559e9aa909c202551100e84044c64e5 Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Wed, 11 Dec 2019 12:44:37 +0100 Subject: [PATCH 31/53] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eb95aa5..700ceef 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Version](https://img.shields.io/npm/v/@adyen/api-library.svg)](https://www.npmjs.com/package/@adyen/api-library) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Adyen_adyen-node-api-library&metric=alert_status)](https://sonarcloud.io/dashboard?id=Adyen_adyen-node-api-library) -The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages. +The Adyen API Library for NodeJS enables you to work with Adyen APIs. ## Integration The Library supports all APIs under the following services: From d9457857cb0a2e1006f1033a524ccadadd554b6f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 16 Dec 2019 11:44:29 +0200 Subject: [PATCH 32/53] Update dependency webpack to v4.41.3 (#191) --- package-lock.json | 87 +++++++++++++++++++++-------------------------- package.json | 2 +- yarn.lock | 28 +++++++-------- 3 files changed, 54 insertions(+), 63 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67d197e..cbb58cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3215,9 +3215,9 @@ "dev": true }, "bluebird": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.1.tgz", - "integrity": "sha512-DdmyoGCleJnkbp3nkbxTLJ18rjDsE4yCggEwKNXkeV123sPNfOCYeDoeuOY+F2FrSjO1YXcTU+dsy96KMy+gcg==", + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, "bn.js": { @@ -3436,9 +3436,9 @@ "dev": true }, "buffer": { - "version": "4.9.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", - "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.2.tgz", + "integrity": "sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==", "dev": true, "requires": { "base64-js": "^1.0.2", @@ -3921,13 +3921,10 @@ } }, "console-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", - "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", - "dev": true, - "requires": { - "date-now": "^0.1.4" - } + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.2.0.tgz", + "integrity": "sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA==", + "dev": true }, "constants-browserify": { "version": "1.0.0", @@ -4160,12 +4157,6 @@ } } }, - "date-now": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", - "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", - "dev": true - }, "debug": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", @@ -4304,9 +4295,9 @@ "dev": true }, "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", + "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", "dev": true, "requires": { "inherits": "^2.0.1", @@ -4447,9 +4438,9 @@ "dev": true }, "elliptic": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz", - "integrity": "sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==", + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz", + "integrity": "sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==", "dev": true, "requires": { "bn.js": "^4.4.0", @@ -9496,9 +9487,9 @@ } }, "serialize-javascript": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", - "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.2.tgz", + "integrity": "sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ==", "dev": true }, "set-blocking": { @@ -9918,9 +9909,9 @@ } }, "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", + "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==", "dev": true }, "string-length": { @@ -10135,9 +10126,9 @@ } }, "terser": { - "version": "4.3.8", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.3.8.tgz", - "integrity": "sha512-otmIRlRVmLChAWsnSFNO0Bfk6YySuBp6G9qrHiJwlLDd4mxe2ta4sjI7TzIR+W1nBMjilzrMcPOz9pSusgx3hQ==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.2.tgz", + "integrity": "sha512-Uufrsvhj9O1ikwgITGsZ5EZS6qPokUOkCegS7fYOdGTv+OA90vndUbU6PEjr5ePqHfNUbGyMO7xyIZv2MhsALQ==", "dev": true, "requires": { "commander": "^2.20.0", @@ -10154,16 +10145,16 @@ } }, "terser-webpack-plugin": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz", - "integrity": "sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz", + "integrity": "sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==", "dev": true, "requires": { "cacache": "^12.0.2", "find-cache-dir": "^2.1.0", "is-wsl": "^1.1.0", "schema-utils": "^1.0.0", - "serialize-javascript": "^1.7.0", + "serialize-javascript": "^2.1.2", "source-map": "^0.6.1", "terser": "^4.1.2", "webpack-sources": "^1.4.0", @@ -10786,9 +10777,9 @@ } }, "vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", + "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", "dev": true }, "w3c-hr-time": { @@ -10836,9 +10827,9 @@ "dev": true }, "webpack": { - "version": "4.41.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.2.tgz", - "integrity": "sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A==", + "version": "4.41.3", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.3.tgz", + "integrity": "sha512-EcNzP9jGoxpQAXq1VOoTet0ik7/VVU1MovIfcUSAjLowc7GhcQku/sOXALvq5nPpSei2HF6VRhibeJSC3i/Law==", "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", @@ -10861,15 +10852,15 @@ "node-libs-browser": "^2.2.1", "schema-utils": "^1.0.0", "tapable": "^1.1.3", - "terser-webpack-plugin": "^1.4.1", + "terser-webpack-plugin": "^1.4.3", "watchpack": "^1.6.0", "webpack-sources": "^1.4.1" }, "dependencies": { "acorn": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.3.0.tgz", - "integrity": "sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.4.0.tgz", + "integrity": "sha512-gac8OEcQ2Li1dxIEWGZzsp2BitJxwkwcOm0zHAJLcPJaVvm58FRnk6RkuLRpU1EujipU2ZFODv2P9DLMfnV8mw==", "dev": true }, "eslint-scope": { diff --git a/package.json b/package.json index e552e06..0bbe1c4 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "ts-jest": "24.2.0", "ts-loader": "6.2.1", "typescript": "3.7.3", - "webpack": "4.41.2", + "webpack": "4.41.3", "webpack-cli": "3.3.10" }, "dependencies": { diff --git a/yarn.lock b/yarn.lock index 7476ef8..0d87f48 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6379,10 +6379,10 @@ semver@^6.0.0, semver@^6.1.2: resolved "https://registry.yarnpkg.com/semver/-/semver-6.2.0.tgz#4d813d9590aaf8a9192693d6c85b9344de5901db" integrity sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A== -serialize-javascript@^1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.7.0.tgz#d6e0dfb2a3832a8c94468e6eb1db97e55a192a65" - integrity sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA== +serialize-javascript@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61" + integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" @@ -6805,16 +6805,16 @@ term-size@^1.2.0: dependencies: execa "^0.7.0" -terser-webpack-plugin@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz#61b18e40eaee5be97e771cdbb10ed1280888c2b4" - integrity sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg== +terser-webpack-plugin@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c" + integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA== dependencies: cacache "^12.0.2" find-cache-dir "^2.1.0" is-wsl "^1.1.0" schema-utils "^1.0.0" - serialize-javascript "^1.7.0" + serialize-javascript "^2.1.2" source-map "^0.6.1" terser "^4.1.2" webpack-sources "^1.4.0" @@ -7310,10 +7310,10 @@ webpack-sources@^1.4.0, webpack-sources@^1.4.1: source-list-map "^2.0.0" source-map "~0.6.1" -webpack@4.41.2: - version "4.41.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.2.tgz#c34ec76daa3a8468c9b61a50336d8e3303dce74e" - integrity sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A== +webpack@4.41.3: + version "4.41.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.3.tgz#cb7592c43080337dbc9be9e98fc6478eb3981026" + integrity sha512-EcNzP9jGoxpQAXq1VOoTet0ik7/VVU1MovIfcUSAjLowc7GhcQku/sOXALvq5nPpSei2HF6VRhibeJSC3i/Law== dependencies: "@webassemblyjs/ast" "1.8.5" "@webassemblyjs/helper-module-context" "1.8.5" @@ -7335,7 +7335,7 @@ webpack@4.41.2: node-libs-browser "^2.2.1" schema-utils "^1.0.0" tapable "^1.1.3" - terser-webpack-plugin "^1.4.1" + terser-webpack-plugin "^1.4.3" watchpack "^1.6.0" webpack-sources "^1.4.1" From 6ad466654a220da3bfe6f460b5563a308c8348b4 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 17 Dec 2019 10:37:04 +0200 Subject: [PATCH 33/53] Update typescript-eslint monorepo to v2.12.0 (#193) --- package-lock.json | 41 ++++++++++++++++------------------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 47 deletions(-) diff --git a/package-lock.json b/package-lock.json index cbb58cb..0022a43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2476,12 +2476,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz", - "integrity": "sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.12.0.tgz", + "integrity": "sha512-1t4r9rpLuEwl3hgt90jY18wJHSyb0E3orVL3DaqwmpiSDHmHiSspVsvsFF78BJ/3NNG3qmeso836jpuBWYziAA==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.11.0", + "@typescript-eslint/experimental-utils": "2.12.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2497,32 +2497,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz", - "integrity": "sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.12.0.tgz", + "integrity": "sha512-jv4gYpw5N5BrWF3ntROvCuLe1IjRenLy5+U57J24NbPGwZFAjhnM45qpq0nDH1y/AZMb3Br25YiNVwyPbz6RkA==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.11.0", + "@typescript-eslint/typescript-estree": "2.12.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.11.0.tgz", - "integrity": "sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.12.0.tgz", + "integrity": "sha512-lPdkwpdzxEfjI8TyTzZqPatkrswLSVu4bqUgnB03fHSOwpC7KSerPgJRgIAf11UGNf7HKjJV6oaPZI4AghLU6g==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.11.0", - "@typescript-eslint/typescript-estree": "2.11.0", + "@typescript-eslint/experimental-utils": "2.12.0", + "@typescript-eslint/typescript-estree": "2.12.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz", - "integrity": "sha512-HGY4+d4MagO6cKMcKfIKaTMxcAv7dEVnji2Zi+vi5VV8uWAM631KjAB5GxFcexMYrwKT0EekRiiGK1/Sd7VFGA==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.12.0.tgz", + "integrity": "sha512-rGehVfjHEn8Frh9UW02ZZIfJs6SIIxIu/K1bbci8rFfDE/1lQ8krIJy5OXOV3DVnNdDPtoiPOdEANkLMrwXbiQ==", "dev": true, "requires": { "debug": "^4.1.1", @@ -2534,15 +2534,6 @@ "tsutils": "^3.17.1" }, "dependencies": { - "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" - } - }, "glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", diff --git a/package.json b/package.json index 0bbe1c4..e57b2ad 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.23", "@types/nock": "10.0.3", "@types/node": "11.15.3", - "@typescript-eslint/eslint-plugin": "2.11.0", - "@typescript-eslint/parser": "2.11.0", + "@typescript-eslint/eslint-plugin": "2.12.0", + "@typescript-eslint/parser": "2.12.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", "eslint": "6.7.2", diff --git a/yarn.lock b/yarn.lock index 0d87f48..cacc9c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1225,40 +1225,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.11.0": - version "2.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz#4477c33491ccf0a9a3f4a30ef84978fa0ea0cad2" - integrity sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA== +"@typescript-eslint/eslint-plugin@2.12.0": + version "2.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.12.0.tgz#0da7cbca7b24f4c6919e9eb31c704bfb126f90ad" + integrity sha512-1t4r9rpLuEwl3hgt90jY18wJHSyb0E3orVL3DaqwmpiSDHmHiSspVsvsFF78BJ/3NNG3qmeso836jpuBWYziAA== dependencies: - "@typescript-eslint/experimental-utils" "2.11.0" + "@typescript-eslint/experimental-utils" "2.12.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.11.0": - version "2.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz#cef18e6b122706c65248a5d8984a9779ed1e52ac" - integrity sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ== +"@typescript-eslint/experimental-utils@2.12.0": + version "2.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.12.0.tgz#e0a76ffb6293e058748408a191921e453c31d40d" + integrity sha512-jv4gYpw5N5BrWF3ntROvCuLe1IjRenLy5+U57J24NbPGwZFAjhnM45qpq0nDH1y/AZMb3Br25YiNVwyPbz6RkA== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.11.0" + "@typescript-eslint/typescript-estree" "2.12.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.11.0": - version "2.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.11.0.tgz#cdcc3be73ee31cbef089af5ff97ccaa380ef6e8b" - integrity sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A== +"@typescript-eslint/parser@2.12.0": + version "2.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.12.0.tgz#393f1604943a4ca570bb1a45bc8834e9b9158884" + integrity sha512-lPdkwpdzxEfjI8TyTzZqPatkrswLSVu4bqUgnB03fHSOwpC7KSerPgJRgIAf11UGNf7HKjJV6oaPZI4AghLU6g== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.11.0" - "@typescript-eslint/typescript-estree" "2.11.0" + "@typescript-eslint/experimental-utils" "2.12.0" + "@typescript-eslint/typescript-estree" "2.12.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.11.0": - version "2.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz#21ada6504274cd1644855926312c798fc697e9fb" - integrity sha512-HGY4+d4MagO6cKMcKfIKaTMxcAv7dEVnji2Zi+vi5VV8uWAM631KjAB5GxFcexMYrwKT0EekRiiGK1/Sd7VFGA== +"@typescript-eslint/typescript-estree@2.12.0": + version "2.12.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.12.0.tgz#bd9e547ccffd17dfab0c3ab0947c80c8e2eb914c" + integrity sha512-rGehVfjHEn8Frh9UW02ZZIfJs6SIIxIu/K1bbci8rFfDE/1lQ8krIJy5OXOV3DVnNdDPtoiPOdEANkLMrwXbiQ== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From 54e7b903bf6685af0830d33eac447dba4d62ce2a Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Wed, 18 Dec 2019 20:36:30 +0100 Subject: [PATCH 34/53] add application info to sale to acquirer data (#192) * add application info to sale to acquirer data * set app info if it doesnt exist --- src/services/terminalCloudAPI.ts | 23 ++++++++++++++++++----- src/typings/nexo.ts | 8 +++++++- src/typings/terminal.ts | 13 +++++++++++-- src/utils/mergeDeep.ts | 26 ++++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 8 deletions(-) create mode 100644 src/utils/mergeDeep.ts diff --git a/src/services/terminalCloudAPI.ts b/src/services/terminalCloudAPI.ts index d28defc..0184565 100644 --- a/src/services/terminalCloudAPI.ts +++ b/src/services/terminalCloudAPI.ts @@ -25,6 +25,8 @@ import getJsonResponse from "../helpers/getJsonResponse"; import {Convert, TerminalApiRequest, TerminalApiResponse} from "../typings/terminal"; import Async from "./resource/terminal/cloud/async"; import Sync from "./resource/terminal/cloud/sync"; +import {ApplicationInfo} from "../typings/applicationInfo"; +import mergeDeep from "../utils/mergeDeep"; class TerminalCloudAPI extends ApiKeyAuthenticatedService { private readonly terminalApiAsync: Async; @@ -36,17 +38,28 @@ class TerminalCloudAPI extends ApiKeyAuthenticatedService { this.terminalApiSync = new Sync(this); } + private static setApplicationInfo(request: TerminalApiRequest): TerminalApiRequest { + const applicationInfo = new ApplicationInfo(); + + const saleToAcquirerData = {applicationInfo}; + const saleData = {saleToAcquirerData}; + const paymentRequest = {saleData}; + const saleToPoiRequest = {paymentRequest}; + const newRequest = {saleToPoiRequest}; + + return mergeDeep(request, newRequest); + } + public async(terminalApiRequest: TerminalApiRequest): Promise { - return getJsonResponse( - this.terminalApiAsync, - Convert.terminalApiRequestToJson(terminalApiRequest), - ); + const request = TerminalCloudAPI.setApplicationInfo(terminalApiRequest); + return getJsonResponse(this.terminalApiAsync, Convert.terminalApiRequestToJson(request)); } public async sync(terminalApiRequest: TerminalApiRequest): Promise { + const request = TerminalCloudAPI.setApplicationInfo(terminalApiRequest); const response = await getJsonResponse( this.terminalApiSync, - Convert.terminalApiRequestToJson(terminalApiRequest), + Convert.terminalApiRequestToJson(request), ); return Convert.toTerminalApiResponse(JSON.stringify(response)); diff --git a/src/typings/nexo.ts b/src/typings/nexo.ts index 771075d..28bca19 100644 --- a/src/typings/nexo.ts +++ b/src/typings/nexo.ts @@ -1,5 +1,7 @@ // Generated using typescript-generator version 2.14.505 on 2019-06-06 08:35:05. +import {ApplicationInfo} from "./applicationInfo"; + export interface AbortRequest { MessageReference: MessageReference; AbortReason: string; @@ -904,7 +906,7 @@ export interface SaleData { SaleTerminalData?: SaleTerminalData; SponsoredMerchant?: SponsoredMerchant[]; SaleToPOIData?: string; - SaleToAcquirerData?: string; + SaleToAcquirerData?: SaleToAcquirerData; SaleToIssuerData?: SaleToIssuerData; OperatorID?: string; OperatorLanguage?: string; @@ -1087,6 +1089,10 @@ export interface SponsoredMerchant { RegistrationID: string; } +export interface SaleToAcquirerData { + applicationInfo?: ApplicationInfo; +} + export interface StoredValueAccountID { value?: string; StoredValueAccountType: StoredValueAccountType; diff --git a/src/typings/terminal.ts b/src/typings/terminal.ts index 3107ea0..224098a 100644 --- a/src/typings/terminal.ts +++ b/src/typings/terminal.ts @@ -231,6 +231,8 @@ // These functions will throw an error if the JSON doesn't // match the expected interface, even if the JSON is valid. +import {ApplicationInfo} from "./applicationInfo"; + export interface TerminalApiRequest { saleToPoiRequest: SaleToPoiRequest; } @@ -901,7 +903,7 @@ export interface SaleData { operatorLanguage?: string; saleReferenceId?: string; saleTerminalData?: SaleTerminalData; - saleToAcquirerData?: string; + saleToAcquirerData?: SaleToAcquirerData; saleToIssuerData?: SaleToIssuerData; saleToPoiData?: string; saleTransactionId: TransactionIdentification; @@ -965,6 +967,10 @@ export enum ServiceProfilesType { Synchro = "Synchro", } +export interface SaleToAcquirerData { + applicationInfo?: ApplicationInfo +} + export enum TerminalEnvironmentType { Attended = "Attended", SemiAttended = "SemiAttended", @@ -4311,7 +4317,7 @@ const typeMap: any = { { json: "OperatorLanguage", js: "operatorLanguage", typ: u(undefined, "") }, { json: "SaleReferenceID", js: "saleReferenceId", typ: u(undefined, "") }, { json: "SaleTerminalData", js: "saleTerminalData", typ: u(undefined, r("SaleTerminalData")) }, - { json: "SaleToAcquirerData", js: "saleToAcquirerData", typ: u(undefined, "") }, + { json: "SaleToAcquirerData", js: "saleToAcquirerData", typ: u(undefined, r("SaleToAcquirerData")) }, { json: "SaleToIssuerData", js: "saleToIssuerData", typ: u(undefined, r("SaleToIssuerData")) }, { json: "SaleToPOIData", js: "saleToPoiData", typ: u(undefined, "") }, { json: "SaleTransactionID", js: "saleTransactionId", typ: r("TransactionIdentification") }, @@ -4325,6 +4331,9 @@ const typeMap: any = { { json: "TerminalEnvironment", js: "terminalEnvironment", typ: u(undefined, r("TerminalEnvironmentType")) }, { json: "TotalsGroupID", js: "totalsGroupId", typ: u(undefined, "") }, ], "any"), + "SaleToAcquirerData": o([ + { json: "ApplicationInfo", js: "applicationInfo", typ: u(undefined, "any") }, + ], "any"), "SaleProfile": o([ { json: "GenericProfile", js: "genericProfile", typ: u(undefined, r("GenericProfileType")) }, { json: "ServiceProfiles", js: "serviceProfiles", typ: u(undefined, a(r("ServiceProfilesType"))) }, diff --git a/src/utils/mergeDeep.ts b/src/utils/mergeDeep.ts new file mode 100644 index 0000000..3451d58 --- /dev/null +++ b/src/utils/mergeDeep.ts @@ -0,0 +1,26 @@ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function mergeDeep(target: T, source: object | any): T { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const isObject = (obj: object | any): boolean => obj && typeof obj === "object"; + + if (!isObject(target) || !isObject(source)) { + return source; + } + + Object.keys(source).forEach(key => { + const targetValue = target[key]; + const sourceValue = source[key]; + + if (Array.isArray(targetValue) && Array.isArray(sourceValue)) { + target[key] = targetValue.concat(sourceValue); + } else if (isObject(targetValue) && isObject(sourceValue)) { + target[key] = mergeDeep(Object.assign({}, targetValue), sourceValue); + } else { + target[key] = sourceValue; + } + }); + + return target; +} + +export default mergeDeep; \ No newline at end of file From 5135a538e0314726047ed7a13ee58d65a9a2fd82 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Wed, 18 Dec 2019 21:36:58 +0200 Subject: [PATCH 35/53] Update dependency @types/jest to v24.0.24 (#194) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0022a43..dc80a6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2419,9 +2419,9 @@ } }, "@types/jest": { - "version": "24.0.23", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.23.tgz", - "integrity": "sha512-L7MBvwfNpe7yVPTXLn32df/EK+AMBFAFvZrRuArGs7npEWnlziUXK+5GMIUTI4NIuwok3XibsjXCs5HxviYXjg==", + "version": "24.0.24", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.24.tgz", + "integrity": "sha512-vgaG968EDPSJPMunEDdZvZgvxYSmeH8wKqBlHSkBt1pV2XlLEVDzsj1ZhLuI4iG4Pv841tES61txSBF0obh4CQ==", "dev": true, "requires": { "jest-diff": "^24.3.0" diff --git a/package.json b/package.json index e57b2ad..57dbec9 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@babel/preset-env": "7.7.6", "@babel/preset-typescript": "7.7.4", "@babel/runtime": "7.7.6", - "@types/jest": "24.0.23", + "@types/jest": "24.0.24", "@types/nock": "10.0.3", "@types/node": "11.15.3", "@typescript-eslint/eslint-plugin": "2.12.0", diff --git a/yarn.lock b/yarn.lock index cacc9c9..d9dcbef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1174,10 +1174,10 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@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== +"@types/jest@24.0.24": + version "24.0.24" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.24.tgz#0f2f523dc77cc1bc6bef34eaf287ede887a73f05" + integrity sha512-vgaG968EDPSJPMunEDdZvZgvxYSmeH8wKqBlHSkBt1pV2XlLEVDzsj1ZhLuI4iG4Pv841tES61txSBF0obh4CQ== dependencies: jest-diff "^24.3.0" From 62497d123cde3ae9e8b6a793acf4105776b61167 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 19 Dec 2019 08:34:54 +0200 Subject: [PATCH 36/53] Update babel monorepo to v7.7.7 (#195) --- package-lock.json | 252 ++++++++++++++++++---------------------------- package.json | 10 +- yarn.lock | 115 ++++++++++++--------- 3 files changed, 169 insertions(+), 208 deletions(-) diff --git a/package-lock.json b/package-lock.json index dc80a6b..0371869 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,15 +14,15 @@ } }, "@babel/core": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.5.tgz", - "integrity": "sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.7.tgz", + "integrity": "sha512-jlSjuj/7z138NLZALxVgrx13AOtqip42ATZP7+kYl53GvDV6+4dCek1mVUo8z8c8Xnw/mx2q3d9HWh3griuesQ==", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.7.4", + "@babel/generator": "^7.7.7", "@babel/helpers": "^7.7.4", - "@babel/parser": "^7.7.5", + "@babel/parser": "^7.7.7", "@babel/template": "^7.7.4", "@babel/traverse": "^7.7.4", "@babel/types": "^7.7.4", @@ -36,9 +36,9 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.7.tgz", + "integrity": "sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ==", "dev": true, "requires": { "@babel/types": "^7.7.4", @@ -77,9 +77,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -129,15 +129,6 @@ "requires": { "safe-buffer": "~5.1.1" } - }, - "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" - } } } }, @@ -211,9 +202,9 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.7.tgz", + "integrity": "sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ==", "dev": true, "requires": { "@babel/types": "^7.7.4", @@ -252,9 +243,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -295,15 +286,6 @@ "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" - } } } }, @@ -422,9 +404,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -462,9 +444,9 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.7.tgz", + "integrity": "sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ==", "dev": true, "requires": { "@babel/types": "^7.7.4", @@ -503,9 +485,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -546,15 +528,6 @@ "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" - } } } }, @@ -668,9 +641,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -748,9 +721,9 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.7.tgz", + "integrity": "sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ==", "dev": true, "requires": { "@babel/types": "^7.7.4", @@ -789,9 +762,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -832,15 +805,6 @@ "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" - } } } }, @@ -964,9 +928,9 @@ }, "dependencies": { "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -1015,9 +979,9 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.7.tgz", + "integrity": "sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ==", "dev": true, "requires": { "@babel/types": "^7.7.4", @@ -1056,9 +1020,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -1099,15 +1063,6 @@ "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" - } } } }, @@ -1123,9 +1078,9 @@ }, "dependencies": { "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.7.tgz", + "integrity": "sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ==", "dev": true, "requires": { "@babel/types": "^7.7.4", @@ -1164,9 +1119,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -1207,15 +1162,6 @@ "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" - } } } }, @@ -1278,9 +1224,9 @@ } }, "@babel/plugin-proposal-object-rest-spread": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz", - "integrity": "sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.7.tgz", + "integrity": "sha512-3qp9I8lelgzNedI3hrhkvhaEYree6+WHnyA/q4Dza9z7iEIs1eyhWyJnetk3jJ69RT0AT4G0UhEGwyGFJ7GUuQ==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -1309,9 +1255,9 @@ } }, "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz", - "integrity": "sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.7.tgz", + "integrity": "sha512-80PbkKyORBUVm1fbTLrHpYdJxMThzM1UqFGh0ALEhO9TYbG86Ah9zQYAB/84axz2vcxefDLdZwWwZNlYARlu9w==", "dev": true, "requires": { "@babel/helper-create-regexp-features-plugin": "^7.7.4", @@ -1466,9 +1412,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -1514,9 +1460,9 @@ } }, "@babel/plugin-transform-dotall-regex": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz", - "integrity": "sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.7.tgz", + "integrity": "sha512-b4in+YlTeE/QmTgrllnb3bHA0HntYvjz8O3Mcbx75UBPJA2xhb5A8nle498VhxSXJHQefjtQxpnLPehDJ4TRlg==", "dev": true, "requires": { "@babel/helper-create-regexp-features-plugin": "^7.7.4", @@ -1582,9 +1528,9 @@ } }, "@babel/parser": { - "version": "7.7.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.5.tgz", - "integrity": "sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.7.tgz", + "integrity": "sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw==", "dev": true }, "@babel/template": { @@ -1702,9 +1648,9 @@ } }, "@babel/plugin-transform-parameters": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz", - "integrity": "sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.7.tgz", + "integrity": "sha512-OhGSrf9ZBrr1fw84oFXj5hgi8Nmg+E2w5L7NhnG0lPvpDtqd7dbyilM2/vR8CKbJ907RyxPh2kj6sBCSSfI9Ew==", "dev": true, "requires": { "@babel/helper-call-delegate": "^7.7.4", @@ -1842,9 +1788,9 @@ } }, "@babel/preset-env": { - "version": "7.7.6", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.6.tgz", - "integrity": "sha512-k5hO17iF/Q7tR9Jv8PdNBZWYW6RofxhnxKjBMc0nG4JTaWvOTiPoO/RLFwAKcA4FpmuBFm6jkoqaRJLGi0zdaQ==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.7.tgz", + "integrity": "sha512-pCu0hrSSDVI7kCVUOdcMNQEbOPJ52E+LrQ14sN8uL2ALfSqePZQlKrOy+tM4uhEdYlCHi4imr8Zz2cZe9oSdIg==", "dev": true, "requires": { "@babel/helper-module-imports": "^7.7.4", @@ -1852,9 +1798,9 @@ "@babel/plugin-proposal-async-generator-functions": "^7.7.4", "@babel/plugin-proposal-dynamic-import": "^7.7.4", "@babel/plugin-proposal-json-strings": "^7.7.4", - "@babel/plugin-proposal-object-rest-spread": "^7.7.4", + "@babel/plugin-proposal-object-rest-spread": "^7.7.7", "@babel/plugin-proposal-optional-catch-binding": "^7.7.4", - "@babel/plugin-proposal-unicode-property-regex": "^7.7.4", + "@babel/plugin-proposal-unicode-property-regex": "^7.7.7", "@babel/plugin-syntax-async-generators": "^7.7.4", "@babel/plugin-syntax-dynamic-import": "^7.7.4", "@babel/plugin-syntax-json-strings": "^7.7.4", @@ -1868,7 +1814,7 @@ "@babel/plugin-transform-classes": "^7.7.4", "@babel/plugin-transform-computed-properties": "^7.7.4", "@babel/plugin-transform-destructuring": "^7.7.4", - "@babel/plugin-transform-dotall-regex": "^7.7.4", + "@babel/plugin-transform-dotall-regex": "^7.7.7", "@babel/plugin-transform-duplicate-keys": "^7.7.4", "@babel/plugin-transform-exponentiation-operator": "^7.7.4", "@babel/plugin-transform-for-of": "^7.7.4", @@ -1882,7 +1828,7 @@ "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4", "@babel/plugin-transform-new-target": "^7.7.4", "@babel/plugin-transform-object-super": "^7.7.4", - "@babel/plugin-transform-parameters": "^7.7.4", + "@babel/plugin-transform-parameters": "^7.7.7", "@babel/plugin-transform-property-literals": "^7.7.4", "@babel/plugin-transform-regenerator": "^7.7.5", "@babel/plugin-transform-reserved-words": "^7.7.4", @@ -1894,7 +1840,7 @@ "@babel/plugin-transform-unicode-regex": "^7.7.4", "@babel/types": "^7.7.4", "browserslist": "^4.6.0", - "core-js-compat": "^3.4.7", + "core-js-compat": "^3.6.0", "invariant": "^2.2.2", "js-levenshtein": "^1.1.3", "semver": "^5.5.0" @@ -1923,9 +1869,9 @@ } }, "@babel/preset-typescript": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.4.tgz", - "integrity": "sha512-rqrjxfdiHPsnuPur0jKrIIGQCIgoTWMTjlbWE69G4QJ6TIOVnnRnIJhUxNTL/VwDmEAVX08Tq3B1nirer5341w==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.7.tgz", + "integrity": "sha512-Apg0sCTovsSA+pEaI8efnA44b9x4X/7z4P8vsWMiN8rSUaM4y4+Shl5NMWnMl6njvt96+CEb6jwpXAKYAVCSQA==", "dev": true, "requires": { "@babel/helper-plugin-utils": "^7.0.0", @@ -1933,9 +1879,9 @@ } }, "@babel/runtime": { - "version": "7.7.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.6.tgz", - "integrity": "sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw==", + "version": "7.7.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.7.tgz", + "integrity": "sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA==", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" @@ -3572,9 +3518,9 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001015", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001015.tgz", - "integrity": "sha512-/xL2AbW/XWHNu1gnIrO8UitBGoFthcsDgU9VLK1/dpsoxbaD5LscHozKze05R6WLsBvLhqv78dAPozMFQBYLbQ==", + "version": "1.0.30001016", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001016.tgz", + "integrity": "sha512-yYQ2QfotceRiH4U+h1Us86WJXtVHDmy3nEKIdYPsZCYnOV5/tMgGbmoIlrMzmh2VXlproqYtVaKeGDBkMZifFA==", "dev": true }, "capture-exit": { @@ -3953,19 +3899,19 @@ "dev": true }, "core-js-compat": { - "version": "3.4.7", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.7.tgz", - "integrity": "sha512-57+mgz/P/xsGdjwQYkwtBZR3LuISaxD1dEwVDtbk8xJMqAmwqaxLOvnNT7kdJ7jYE/NjNptyzXi+IQFMi/2fCw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.6.0.tgz", + "integrity": "sha512-Z3eCNjGgoYluH89Jt4wVkfYsc/VdLrA2/woX5lm0isO/pCT+P+Y+o65bOuEnjDJLthdwTBxbCVzptTXtc18fJg==", "dev": true, "requires": { - "browserslist": "^4.8.0", - "semver": "^6.3.0" + "browserslist": "^4.8.2", + "semver": "7.0.0" }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", + "integrity": "sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==", "dev": true } } @@ -7965,9 +7911,9 @@ } }, "node-releases": { - "version": "1.1.42", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.42.tgz", - "integrity": "sha512-OQ/ESmUqGawI2PRX+XIRao44qWYBBfN54ImQYdWVTQqUckuejOg76ysSqDBK8NG3zwySRVnX36JwDQ6x+9GxzA==", + "version": "1.1.43", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.43.tgz", + "integrity": "sha512-Rmfnj52WNhvr83MvuAWHEqXVoZXCcDQssSOffU4n4XOL9sPrP61mSZ88g25NqmABDvH7PiAlFCzoSCSdzA293w==", "dev": true, "requires": { "semver": "^6.3.0" @@ -8932,9 +8878,9 @@ "dev": true }, "regjsparser": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz", - "integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.1.tgz", + "integrity": "sha512-7LutE94sz/NKSYegK+/4E77+8DipxF+Qn2Tmu362AcmsF2NYq/wx3+ObvU90TKEhjf7hQoFXo23ajjrXP7eUgg==", "dev": true, "requires": { "jsesc": "~0.5.0" diff --git a/package.json b/package.json index 57dbec9..200ec53 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,14 @@ "author": "Ricardo Ambrogi", "license": "MIT", "devDependencies": { - "@babel/core": "7.7.5", + "@babel/core": "7.7.7", "@babel/plugin-proposal-class-properties": "7.7.4", - "@babel/plugin-proposal-object-rest-spread": "7.7.4", + "@babel/plugin-proposal-object-rest-spread": "7.7.7", "@babel/plugin-transform-runtime": "7.7.6", "@babel/plugin-transform-typescript": "7.7.4", - "@babel/preset-env": "7.7.6", - "@babel/preset-typescript": "7.7.4", - "@babel/runtime": "7.7.6", + "@babel/preset-env": "7.7.7", + "@babel/preset-typescript": "7.7.7", + "@babel/runtime": "7.7.7", "@types/jest": "24.0.24", "@types/nock": "10.0.3", "@types/node": "11.15.3", diff --git a/yarn.lock b/yarn.lock index d9dcbef..af255ee 100644 --- a/yarn.lock +++ b/yarn.lock @@ -16,15 +16,15 @@ dependencies: "@babel/highlight" "^7.0.0" -"@babel/core@7.7.5": - version "7.7.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.5.tgz#ae1323cd035b5160293307f50647e83f8ba62f7e" - integrity sha512-M42+ScN4+1S9iB6f+TL7QBpoQETxbclx+KNoKJABghnKYE+fMzSGqst0BZJc8CpI625bwPwYgUyRvxZ+0mZzpw== +"@babel/core@7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.7.7.tgz#ee155d2e12300bcc0cff6a8ad46f2af5063803e9" + integrity sha512-jlSjuj/7z138NLZALxVgrx13AOtqip42ATZP7+kYl53GvDV6+4dCek1mVUo8z8c8Xnw/mx2q3d9HWh3griuesQ== dependencies: "@babel/code-frame" "^7.5.5" - "@babel/generator" "^7.7.4" + "@babel/generator" "^7.7.7" "@babel/helpers" "^7.7.4" - "@babel/parser" "^7.7.5" + "@babel/parser" "^7.7.7" "@babel/template" "^7.7.4" "@babel/traverse" "^7.7.4" "@babel/types" "^7.7.4" @@ -77,6 +77,16 @@ lodash "^4.17.13" source-map "^0.5.0" +"@babel/generator@^7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.7.7.tgz#859ac733c44c74148e1a72980a64ec84b85f4f45" + integrity sha512-/AOIBpHh/JU1l0ZFS4kiRCBnLi6OTHzh0RPk3h9isBxkkqELtQNFi1Vr/tiG9p1yfoUdKVwISuXWQR+hwwM4VQ== + dependencies: + "@babel/types" "^7.7.4" + jsesc "^2.5.1" + lodash "^4.17.13" + source-map "^0.5.0" + "@babel/helper-annotate-as-pure@^7.7.4": version "7.7.4" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz#bb3faf1e74b74bd547e867e48f551fa6b098b6ce" @@ -324,10 +334,10 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.4.tgz#75ab2d7110c2cf2fa949959afb05fa346d2231bb" integrity sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g== -"@babel/parser@^7.7.5": - version "7.7.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.5.tgz#cbf45321619ac12d83363fcf9c94bb67fa646d71" - integrity sha512-KNlOe9+/nk4i29g0VXgl8PEXIRms5xKLJeuZ6UptN0fHv+jDiriG+y94X6qAgWTR0h3KaoM1wK5G5h7MHFRSig== +"@babel/parser@^7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.7.7.tgz#1b886595419cf92d811316d5b715a53ff38b4937" + integrity sha512-WtTZMZAZLbeymhkd/sEaPD8IQyGAhmuTuvTzLiCFM7iXiVdY0gc0IaI+cW0fh1BnSMbJSzXX6/fHllgHKwHhXw== "@babel/plugin-proposal-async-generator-functions@^7.7.4": version "7.7.4" @@ -362,10 +372,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-json-strings" "^7.7.4" -"@babel/plugin-proposal-object-rest-spread@7.7.4", "@babel/plugin-proposal-object-rest-spread@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz#cc57849894a5c774214178c8ab64f6334ec8af71" - integrity sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ== +"@babel/plugin-proposal-object-rest-spread@7.7.7", "@babel/plugin-proposal-object-rest-spread@^7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.7.tgz#9f27075004ab99be08c5c1bd653a2985813cb370" + integrity sha512-3qp9I8lelgzNedI3hrhkvhaEYree6+WHnyA/q4Dza9z7iEIs1eyhWyJnetk3jJ69RT0AT4G0UhEGwyGFJ7GUuQ== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-object-rest-spread" "^7.7.4" @@ -378,10 +388,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-syntax-optional-catch-binding" "^7.7.4" -"@babel/plugin-proposal-unicode-property-regex@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz#7c239ccaf09470dbe1d453d50057460e84517ebb" - integrity sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA== +"@babel/plugin-proposal-unicode-property-regex@^7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.7.tgz#433fa9dac64f953c12578b29633f456b68831c4e" + integrity sha512-80PbkKyORBUVm1fbTLrHpYdJxMThzM1UqFGh0ALEhO9TYbG86Ah9zQYAB/84axz2vcxefDLdZwWwZNlYARlu9w== dependencies: "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" @@ -501,10 +511,10 @@ dependencies: "@babel/helper-plugin-utils" "^7.0.0" -"@babel/plugin-transform-dotall-regex@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz#f7ccda61118c5b7a2599a72d5e3210884a021e96" - integrity sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw== +"@babel/plugin-transform-dotall-regex@^7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.7.tgz#3e9713f1b69f339e87fa796b097d73ded16b937b" + integrity sha512-b4in+YlTeE/QmTgrllnb3bHA0HntYvjz8O3Mcbx75UBPJA2xhb5A8nle498VhxSXJHQefjtQxpnLPehDJ4TRlg== dependencies: "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" @@ -611,10 +621,10 @@ "@babel/helper-plugin-utils" "^7.0.0" "@babel/helper-replace-supers" "^7.7.4" -"@babel/plugin-transform-parameters@^7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz#da4555c97f39b51ac089d31c7380f03bca4075ce" - integrity sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw== +"@babel/plugin-transform-parameters@^7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.7.tgz#7a884b2460164dc5f194f668332736584c760007" + integrity sha512-OhGSrf9ZBrr1fw84oFXj5hgi8Nmg+E2w5L7NhnG0lPvpDtqd7dbyilM2/vR8CKbJ907RyxPh2kj6sBCSSfI9Ew== dependencies: "@babel/helper-call-delegate" "^7.7.4" "@babel/helper-get-function-arity" "^7.7.4" @@ -705,19 +715,19 @@ "@babel/helper-create-regexp-features-plugin" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" -"@babel/preset-env@7.7.6": - version "7.7.6" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.6.tgz#39ac600427bbb94eec6b27953f1dfa1d64d457b2" - integrity sha512-k5hO17iF/Q7tR9Jv8PdNBZWYW6RofxhnxKjBMc0nG4JTaWvOTiPoO/RLFwAKcA4FpmuBFm6jkoqaRJLGi0zdaQ== +"@babel/preset-env@7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.7.7.tgz#c294167b91e53e7e36d820e943ece8d0c7fe46ac" + integrity sha512-pCu0hrSSDVI7kCVUOdcMNQEbOPJ52E+LrQ14sN8uL2ALfSqePZQlKrOy+tM4uhEdYlCHi4imr8Zz2cZe9oSdIg== dependencies: "@babel/helper-module-imports" "^7.7.4" "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-proposal-async-generator-functions" "^7.7.4" "@babel/plugin-proposal-dynamic-import" "^7.7.4" "@babel/plugin-proposal-json-strings" "^7.7.4" - "@babel/plugin-proposal-object-rest-spread" "^7.7.4" + "@babel/plugin-proposal-object-rest-spread" "^7.7.7" "@babel/plugin-proposal-optional-catch-binding" "^7.7.4" - "@babel/plugin-proposal-unicode-property-regex" "^7.7.4" + "@babel/plugin-proposal-unicode-property-regex" "^7.7.7" "@babel/plugin-syntax-async-generators" "^7.7.4" "@babel/plugin-syntax-dynamic-import" "^7.7.4" "@babel/plugin-syntax-json-strings" "^7.7.4" @@ -731,7 +741,7 @@ "@babel/plugin-transform-classes" "^7.7.4" "@babel/plugin-transform-computed-properties" "^7.7.4" "@babel/plugin-transform-destructuring" "^7.7.4" - "@babel/plugin-transform-dotall-regex" "^7.7.4" + "@babel/plugin-transform-dotall-regex" "^7.7.7" "@babel/plugin-transform-duplicate-keys" "^7.7.4" "@babel/plugin-transform-exponentiation-operator" "^7.7.4" "@babel/plugin-transform-for-of" "^7.7.4" @@ -745,7 +755,7 @@ "@babel/plugin-transform-named-capturing-groups-regex" "^7.7.4" "@babel/plugin-transform-new-target" "^7.7.4" "@babel/plugin-transform-object-super" "^7.7.4" - "@babel/plugin-transform-parameters" "^7.7.4" + "@babel/plugin-transform-parameters" "^7.7.7" "@babel/plugin-transform-property-literals" "^7.7.4" "@babel/plugin-transform-regenerator" "^7.7.5" "@babel/plugin-transform-reserved-words" "^7.7.4" @@ -757,23 +767,23 @@ "@babel/plugin-transform-unicode-regex" "^7.7.4" "@babel/types" "^7.7.4" browserslist "^4.6.0" - core-js-compat "^3.4.7" + core-js-compat "^3.6.0" invariant "^2.2.2" js-levenshtein "^1.1.3" semver "^5.5.0" -"@babel/preset-typescript@7.7.4": - version "7.7.4" - resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.7.4.tgz#780059a78e6fa7f7a4c87f027292a86b31ce080a" - integrity sha512-rqrjxfdiHPsnuPur0jKrIIGQCIgoTWMTjlbWE69G4QJ6TIOVnnRnIJhUxNTL/VwDmEAVX08Tq3B1nirer5341w== +"@babel/preset-typescript@7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.7.7.tgz#69ddea54e8b4e491ccbf94147e673b2ac6e11e2e" + integrity sha512-Apg0sCTovsSA+pEaI8efnA44b9x4X/7z4P8vsWMiN8rSUaM4y4+Shl5NMWnMl6njvt96+CEb6jwpXAKYAVCSQA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" "@babel/plugin-transform-typescript" "^7.7.4" -"@babel/runtime@7.7.6": - version "7.7.6" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.6.tgz#d18c511121aff1b4f2cd1d452f1bac9601dd830f" - integrity sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw== +"@babel/runtime@7.7.7": + version "7.7.7" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.7.7.tgz#194769ca8d6d7790ec23605af9ee3e42a0aa79cf" + integrity sha512-uCnC2JEVAu8AKB5do1WRIsvrdJ0flYx/A/9f/6chdacnEZ7LmavjdsDXr5ksYBegxtuTPR5Va9/+13QF/kFkCA== dependencies: regenerator-runtime "^0.13.2" @@ -1933,7 +1943,7 @@ browserslist@^4.6.0: electron-to-chromium "^1.3.164" node-releases "^1.1.23" -browserslist@^4.8.0: +browserslist@^4.8.2: version "4.8.2" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.8.2.tgz#b45720ad5fbc8713b7253c20766f701c9a694289" integrity sha512-+M4oeaTplPm/f1pXDw84YohEv7B1i/2Aisei8s4s6k3QsoSHa7i5sz8u/cGQkkatCPxMASKxPualR4wwYgVboA== @@ -2350,13 +2360,13 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= -core-js-compat@^3.4.7: - version "3.4.7" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.4.7.tgz#39f8080b1d92a524d6d90505c42b9c5c1eb90611" - integrity sha512-57+mgz/P/xsGdjwQYkwtBZR3LuISaxD1dEwVDtbk8xJMqAmwqaxLOvnNT7kdJ7jYE/NjNptyzXi+IQFMi/2fCw== +core-js-compat@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.0.tgz#4eb6cb69d03d99159ed7c860cd5fcf7d23a62ea9" + integrity sha512-Z3eCNjGgoYluH89Jt4wVkfYsc/VdLrA2/woX5lm0isO/pCT+P+Y+o65bOuEnjDJLthdwTBxbCVzptTXtc18fJg== dependencies: - browserslist "^4.8.0" - semver "^6.3.0" + browserslist "^4.8.2" + semver "7.0.0" core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" @@ -6369,6 +6379,11 @@ 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@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" + integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== + semver@^5.0.3, semver@^5.5: version "5.7.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" From e69d27fa30617c429836817c92183d3f3104c988 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 19 Dec 2019 11:05:51 +0200 Subject: [PATCH 37/53] Update dependency webpack to v4.41.4 (#196) --- package-lock.json | 12 ++++++------ package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0371869..cae5bfb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10063,9 +10063,9 @@ } }, "terser": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.2.tgz", - "integrity": "sha512-Uufrsvhj9O1ikwgITGsZ5EZS6qPokUOkCegS7fYOdGTv+OA90vndUbU6PEjr5ePqHfNUbGyMO7xyIZv2MhsALQ==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.3.tgz", + "integrity": "sha512-0ikKraVtRDKGzHrzkCv5rUNDzqlhmhowOBqC0XqUHFpW+vJ45+20/IFBcebwKfiS2Z9fJin6Eo+F1zLZsxi8RA==", "dev": true, "requires": { "commander": "^2.20.0", @@ -10764,9 +10764,9 @@ "dev": true }, "webpack": { - "version": "4.41.3", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.3.tgz", - "integrity": "sha512-EcNzP9jGoxpQAXq1VOoTet0ik7/VVU1MovIfcUSAjLowc7GhcQku/sOXALvq5nPpSei2HF6VRhibeJSC3i/Law==", + "version": "4.41.4", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.4.tgz", + "integrity": "sha512-Lc+2uB6NjpCWsHI3trkoISOI64h9QYIXenbEWj3bn3oyjfB1lEBXjWAfAyY2sM0rZn41oD5V91OLwKRwS6Wp8Q==", "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", diff --git a/package.json b/package.json index 200ec53..6c19c72 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "ts-jest": "24.2.0", "ts-loader": "6.2.1", "typescript": "3.7.3", - "webpack": "4.41.3", + "webpack": "4.41.4", "webpack-cli": "3.3.10" }, "dependencies": { diff --git a/yarn.lock b/yarn.lock index af255ee..82629c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7325,10 +7325,10 @@ webpack-sources@^1.4.0, webpack-sources@^1.4.1: source-list-map "^2.0.0" source-map "~0.6.1" -webpack@4.41.3: - version "4.41.3" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.3.tgz#cb7592c43080337dbc9be9e98fc6478eb3981026" - integrity sha512-EcNzP9jGoxpQAXq1VOoTet0ik7/VVU1MovIfcUSAjLowc7GhcQku/sOXALvq5nPpSei2HF6VRhibeJSC3i/Law== +webpack@4.41.4: + version "4.41.4" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.4.tgz#4bec4125224bdf50efa8be6226c19047599cd034" + integrity sha512-Lc+2uB6NjpCWsHI3trkoISOI64h9QYIXenbEWj3bn3oyjfB1lEBXjWAfAyY2sM0rZn41oD5V91OLwKRwS6Wp8Q== dependencies: "@webassemblyjs/ast" "1.8.5" "@webassemblyjs/helper-module-context" "1.8.5" From 52ce784767d632e473fefc9b0267f00ee1487425 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 22 Dec 2019 18:36:22 +0200 Subject: [PATCH 38/53] Update dependency typescript to v3.7.4 (#198) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index cae5bfb..cc4510f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10426,9 +10426,9 @@ "dev": true }, "typescript": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz", - "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==", + "version": "3.7.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.4.tgz", + "integrity": "sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index 6c19c72..b067848 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "release-it": "12.4.3", "ts-jest": "24.2.0", "ts-loader": "6.2.1", - "typescript": "3.7.3", + "typescript": "3.7.4", "webpack": "4.41.4", "webpack-cli": "3.3.10" }, diff --git a/yarn.lock b/yarn.lock index 82629c8..d1a19f1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7059,10 +7059,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@3.7.3: - version "3.7.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.3.tgz#b36840668a16458a7025b9eabfad11b66ab85c69" - integrity sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw== +typescript@3.7.4: + version "3.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.4.tgz#1743a5ec5fef6a1fa9f3e4708e33c81c73876c19" + integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw== uglify-js@^3.1.4: version "3.6.0" From d2581b491cdcd6473281b138c0be1b4033fb7c30 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sun, 22 Dec 2019 18:36:50 +0200 Subject: [PATCH 39/53] Update dependency eslint to v6.8.0 (#197) --- package-lock.json | 23 +++++++---------------- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index cc4510f..94da5ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4516,9 +4516,9 @@ } }, "eslint": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.2.tgz", - "integrity": "sha512-qMlSWJaCSxDFr8fBPvJM9kJwbazrhNcBU3+DszDW1OlEwKBBRWsJc7NJFelvwQpanHCR14cOLD41x8Eqvo3Nng==", + "version": "6.8.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.8.0.tgz", + "integrity": "sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", @@ -4560,15 +4560,6 @@ "v8-compile-cache": "^2.0.3" }, "dependencies": { - "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" - } - }, "globals": { "version": "12.3.0", "resolved": "https://registry.npmjs.org/globals/-/globals-12.3.0.tgz", @@ -6234,9 +6225,9 @@ "dev": true }, "inquirer": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.0.tgz", - "integrity": "sha512-rSdC7zelHdRQFkWnhsMu2+2SO41mpv2oF2zy4tMhmiLWkcKbOAs87fWAJhVXttKVwhdZvymvnuM95EyEXg2/tQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-7.0.1.tgz", + "integrity": "sha512-V1FFQ3TIO15det8PijPLFR9M9baSlnRs9nL7zWu1MNVA2T9YVl9ZbrHJhYs7e9X8jeMZ3lr2JH/rdHFgNCBdYw==", "dev": true, "requires": { "ansi-escapes": "^4.2.1", @@ -6248,7 +6239,7 @@ "lodash": "^4.17.15", "mute-stream": "0.0.8", "run-async": "^2.2.0", - "rxjs": "^6.4.0", + "rxjs": "^6.5.3", "string-width": "^4.1.0", "strip-ansi": "^5.1.0", "through": "^2.3.6" diff --git a/package.json b/package.json index b067848..da90d4f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@typescript-eslint/parser": "2.12.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", - "eslint": "6.7.2", + "eslint": "6.8.0", "jest": "24.9.0", "nock": "11.7.0", "release-it": "12.4.3", diff --git a/yarn.lock b/yarn.lock index d1a19f1..c62134b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2873,10 +2873,10 @@ eslint-visitor-keys@^1.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== -eslint@6.7.2: - version "6.7.2" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.7.2.tgz#c17707ca4ad7b2d8af986a33feba71e18a9fecd1" - integrity sha512-qMlSWJaCSxDFr8fBPvJM9kJwbazrhNcBU3+DszDW1OlEwKBBRWsJc7NJFelvwQpanHCR14cOLD41x8Eqvo3Nng== +eslint@6.8.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" + integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== dependencies: "@babel/code-frame" "^7.0.0" ajv "^6.10.0" From 6377fe9f4d47bcfdf068e652e237f5012630b945 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 24 Dec 2019 08:33:10 +0200 Subject: [PATCH 40/53] Update typescript-eslint monorepo to v2.13.0 (#199) --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index 94da5ac..c60792a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2422,12 +2422,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.12.0.tgz", - "integrity": "sha512-1t4r9rpLuEwl3hgt90jY18wJHSyb0E3orVL3DaqwmpiSDHmHiSspVsvsFF78BJ/3NNG3qmeso836jpuBWYziAA==", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.13.0.tgz", + "integrity": "sha512-QoiANo0MMGNa8ej/yX3BrW5dZj5d8HYcKiM2fyYUlezECqn8Xc7T/e4EUdiGinn8jhBrn+9X47E9TWaaup3u1g==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.12.0", + "@typescript-eslint/experimental-utils": "2.13.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2443,32 +2443,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.12.0.tgz", - "integrity": "sha512-jv4gYpw5N5BrWF3ntROvCuLe1IjRenLy5+U57J24NbPGwZFAjhnM45qpq0nDH1y/AZMb3Br25YiNVwyPbz6RkA==", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.13.0.tgz", + "integrity": "sha512-+Hss3clwa6aNiC8ZjA45wEm4FutDV5HsVXPl/rDug1THq6gEtOYRGLqS3JlTk7mSnL5TbJz0LpEbzbPnKvY6sw==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.12.0", + "@typescript-eslint/typescript-estree": "2.13.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.12.0.tgz", - "integrity": "sha512-lPdkwpdzxEfjI8TyTzZqPatkrswLSVu4bqUgnB03fHSOwpC7KSerPgJRgIAf11UGNf7HKjJV6oaPZI4AghLU6g==", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.13.0.tgz", + "integrity": "sha512-vbDeLr5QRJ1K7x5iRK8J9wuGwR9OVyd1zDAY9XFAQvAosHVjSVbDgkm328ayE6hx2QWVGhwvGaEhedcqAbfQcA==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.12.0", - "@typescript-eslint/typescript-estree": "2.12.0", + "@typescript-eslint/experimental-utils": "2.13.0", + "@typescript-eslint/typescript-estree": "2.13.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.12.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.12.0.tgz", - "integrity": "sha512-rGehVfjHEn8Frh9UW02ZZIfJs6SIIxIu/K1bbci8rFfDE/1lQ8krIJy5OXOV3DVnNdDPtoiPOdEANkLMrwXbiQ==", + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.13.0.tgz", + "integrity": "sha512-t21Mg5cc8T3ADEUGwDisHLIubgXKjuNRbkpzDMLb7/JMmgCe/gHM9FaaujokLey+gwTuLF5ndSQ7/EfQqrQx4g==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index da90d4f..562283a 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.24", "@types/nock": "10.0.3", "@types/node": "11.15.3", - "@typescript-eslint/eslint-plugin": "2.12.0", - "@typescript-eslint/parser": "2.12.0", + "@typescript-eslint/eslint-plugin": "2.13.0", + "@typescript-eslint/parser": "2.13.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", "eslint": "6.8.0", diff --git a/yarn.lock b/yarn.lock index c62134b..7dbc5af 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1235,40 +1235,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.12.0": - version "2.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.12.0.tgz#0da7cbca7b24f4c6919e9eb31c704bfb126f90ad" - integrity sha512-1t4r9rpLuEwl3hgt90jY18wJHSyb0E3orVL3DaqwmpiSDHmHiSspVsvsFF78BJ/3NNG3qmeso836jpuBWYziAA== +"@typescript-eslint/eslint-plugin@2.13.0": + version "2.13.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.13.0.tgz#57e933fe16a2fc66dbac059af0d6d85d921d748e" + integrity sha512-QoiANo0MMGNa8ej/yX3BrW5dZj5d8HYcKiM2fyYUlezECqn8Xc7T/e4EUdiGinn8jhBrn+9X47E9TWaaup3u1g== dependencies: - "@typescript-eslint/experimental-utils" "2.12.0" + "@typescript-eslint/experimental-utils" "2.13.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.12.0": - version "2.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.12.0.tgz#e0a76ffb6293e058748408a191921e453c31d40d" - integrity sha512-jv4gYpw5N5BrWF3ntROvCuLe1IjRenLy5+U57J24NbPGwZFAjhnM45qpq0nDH1y/AZMb3Br25YiNVwyPbz6RkA== +"@typescript-eslint/experimental-utils@2.13.0": + version "2.13.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.13.0.tgz#958614faa6f77599ee2b241740e0ea402482533d" + integrity sha512-+Hss3clwa6aNiC8ZjA45wEm4FutDV5HsVXPl/rDug1THq6gEtOYRGLqS3JlTk7mSnL5TbJz0LpEbzbPnKvY6sw== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.12.0" + "@typescript-eslint/typescript-estree" "2.13.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.12.0": - version "2.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.12.0.tgz#393f1604943a4ca570bb1a45bc8834e9b9158884" - integrity sha512-lPdkwpdzxEfjI8TyTzZqPatkrswLSVu4bqUgnB03fHSOwpC7KSerPgJRgIAf11UGNf7HKjJV6oaPZI4AghLU6g== +"@typescript-eslint/parser@2.13.0": + version "2.13.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.13.0.tgz#ea1ab394cf9ca17467e3da7f96eca9309f57c326" + integrity sha512-vbDeLr5QRJ1K7x5iRK8J9wuGwR9OVyd1zDAY9XFAQvAosHVjSVbDgkm328ayE6hx2QWVGhwvGaEhedcqAbfQcA== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.12.0" - "@typescript-eslint/typescript-estree" "2.12.0" + "@typescript-eslint/experimental-utils" "2.13.0" + "@typescript-eslint/typescript-estree" "2.13.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.12.0": - version "2.12.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.12.0.tgz#bd9e547ccffd17dfab0c3ab0947c80c8e2eb914c" - integrity sha512-rGehVfjHEn8Frh9UW02ZZIfJs6SIIxIu/K1bbci8rFfDE/1lQ8krIJy5OXOV3DVnNdDPtoiPOdEANkLMrwXbiQ== +"@typescript-eslint/typescript-estree@2.13.0": + version "2.13.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.13.0.tgz#a2e746867da772c857c13853219fced10d2566bc" + integrity sha512-t21Mg5cc8T3ADEUGwDisHLIubgXKjuNRbkpzDMLb7/JMmgCe/gHM9FaaujokLey+gwTuLF5ndSQ7/EfQqrQx4g== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From bb3874fc9cf47f9ce95986d1d2b51dd270575bbb Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 27 Dec 2019 11:09:39 +0200 Subject: [PATCH 41/53] Update dependency @types/jest to v24.0.25 (#200) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index c60792a..2f308a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2365,9 +2365,9 @@ } }, "@types/jest": { - "version": "24.0.24", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.24.tgz", - "integrity": "sha512-vgaG968EDPSJPMunEDdZvZgvxYSmeH8wKqBlHSkBt1pV2XlLEVDzsj1ZhLuI4iG4Pv841tES61txSBF0obh4CQ==", + "version": "24.0.25", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.25.tgz", + "integrity": "sha512-hnP1WpjN4KbGEK4dLayul6lgtys6FPz0UfxMeMQCv0M+sTnzN3ConfiO72jHgLxl119guHgI8gLqDOrRLsyp2g==", "dev": true, "requires": { "jest-diff": "^24.3.0" diff --git a/package.json b/package.json index 562283a..54f6806 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@babel/preset-env": "7.7.7", "@babel/preset-typescript": "7.7.7", "@babel/runtime": "7.7.7", - "@types/jest": "24.0.24", + "@types/jest": "24.0.25", "@types/nock": "10.0.3", "@types/node": "11.15.3", "@typescript-eslint/eslint-plugin": "2.13.0", diff --git a/yarn.lock b/yarn.lock index 7dbc5af..5ec343c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1184,10 +1184,10 @@ "@types/istanbul-lib-coverage" "*" "@types/istanbul-lib-report" "*" -"@types/jest@24.0.24": - version "24.0.24" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.24.tgz#0f2f523dc77cc1bc6bef34eaf287ede887a73f05" - integrity sha512-vgaG968EDPSJPMunEDdZvZgvxYSmeH8wKqBlHSkBt1pV2XlLEVDzsj1ZhLuI4iG4Pv841tES61txSBF0obh4CQ== +"@types/jest@24.0.25": + version "24.0.25" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.25.tgz#2aba377824ce040114aa906ad2cac2c85351360f" + integrity sha512-hnP1WpjN4KbGEK4dLayul6lgtys6FPz0UfxMeMQCv0M+sTnzN3ConfiO72jHgLxl119guHgI8gLqDOrRLsyp2g== dependencies: jest-diff "^24.3.0" From 7ca2c61b1a457ef7c8e2915b0a3b6a4c8612540e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 27 Dec 2019 12:22:14 +0100 Subject: [PATCH 42/53] Bump handlebars from 4.1.2 to 4.5.3 (#201) Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.5.3) Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- yarn.lock | 21 +++++++++++++-------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f308a8..48f47c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5930,9 +5930,9 @@ "dev": true }, "handlebars": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.2.1.tgz", - "integrity": "sha512-bqPIlDk06UWbVEIFoYj+LVo42WhK96J+b25l7hbFDpxrOXMphFM3fNIm+cluwg4Pk2jiLjWU5nHQY7igGE75NQ==", + "version": "4.5.3", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.3.tgz", + "integrity": "sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA==", "dev": true, "requires": { "neo-async": "^2.6.0", diff --git a/yarn.lock b/yarn.lock index 5ec343c..e87d467 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2270,11 +2270,16 @@ combined-stream@^1.0.6, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -commander@^2.20.0, commander@~2.20.0: +commander@^2.20.0: version "2.20.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== +commander@~2.20.3: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + commondir@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" @@ -3522,9 +3527,9 @@ growly@^1.3.0: integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= handlebars@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.1.2.tgz#b6b37c1ced0306b221e094fc7aca3ec23b131b67" - integrity sha512-nvfrjqvt9xQ8Z/w0ijewdD/vvWDTOweBUm96NTr66Wfvo1mJenBLwcYmPs3TIBP5ruzYGD7Hx/DaM9RmhroGPw== + version "4.5.3" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.5.3.tgz#5cf75bd8714f7605713511a56be7c349becb0482" + integrity sha512-3yPecJoJHK/4c6aZhSvxOyG4vJKDshV36VHp0iVCDVh7o9w2vwi3NSnL2MMPj3YdduqaBcu7cGbggJQM0br9xA== dependencies: neo-async "^2.6.0" optimist "^0.6.1" @@ -7065,11 +7070,11 @@ typescript@3.7.4: integrity sha512-A25xv5XCtarLwXpcDNZzCGvW2D1S3/bACratYBx2sax8PefsFhlYmkQicKHvpYflFS8if4zne5zT5kpJ7pzuvw== uglify-js@^3.1.4: - version "3.6.0" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5" - integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg== + version "3.7.3" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.7.3.tgz#f918fce9182f466d5140f24bb0ff35c2d32dcc6a" + integrity sha512-7tINm46/3puUA4hCkKYo4Xdts+JDaVC9ZPRcG8Xw9R4nhO/gZgUM3TENq8IF4Vatk8qCig4MzP/c8G4u2BkVQg== dependencies: - commander "~2.20.0" + commander "~2.20.3" source-map "~0.6.1" unicode-canonical-property-names-ecmascript@^1.0.4: From 75d056c1b17a914b0bb9ee358e7eaab05e108ee0 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 30 Dec 2019 09:47:45 +0200 Subject: [PATCH 43/53] Update dependency webpack to v4.41.5 (#202) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 48f47c9..a7202ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10755,9 +10755,9 @@ "dev": true }, "webpack": { - "version": "4.41.4", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.4.tgz", - "integrity": "sha512-Lc+2uB6NjpCWsHI3trkoISOI64h9QYIXenbEWj3bn3oyjfB1lEBXjWAfAyY2sM0rZn41oD5V91OLwKRwS6Wp8Q==", + "version": "4.41.5", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.5.tgz", + "integrity": "sha512-wp0Co4vpyumnp3KlkmpM5LWuzvZYayDwM2n17EHFr4qxBBbRokC7DJawPJC7TfSFZ9HZ6GsdH40EBj4UV0nmpw==", "dev": true, "requires": { "@webassemblyjs/ast": "1.8.5", diff --git a/package.json b/package.json index 54f6806..a60e64f 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "ts-jest": "24.2.0", "ts-loader": "6.2.1", "typescript": "3.7.4", - "webpack": "4.41.4", + "webpack": "4.41.5", "webpack-cli": "3.3.10" }, "dependencies": { diff --git a/yarn.lock b/yarn.lock index e87d467..0a679cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7330,10 +7330,10 @@ webpack-sources@^1.4.0, webpack-sources@^1.4.1: source-list-map "^2.0.0" source-map "~0.6.1" -webpack@4.41.4: - version "4.41.4" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.4.tgz#4bec4125224bdf50efa8be6226c19047599cd034" - integrity sha512-Lc+2uB6NjpCWsHI3trkoISOI64h9QYIXenbEWj3bn3oyjfB1lEBXjWAfAyY2sM0rZn41oD5V91OLwKRwS6Wp8Q== +webpack@4.41.5: + version "4.41.5" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.5.tgz#3210f1886bce5310e62bb97204d18c263341b77c" + integrity sha512-wp0Co4vpyumnp3KlkmpM5LWuzvZYayDwM2n17EHFr4qxBBbRokC7DJawPJC7TfSFZ9HZ6GsdH40EBj4UV0nmpw== dependencies: "@webassemblyjs/ast" "1.8.5" "@webassemblyjs/helper-module-context" "1.8.5" From 14dc2285bcfab9b9d851cc18800245c27ab10b93 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 31 Dec 2019 09:36:33 +0200 Subject: [PATCH 44/53] Update typescript-eslint monorepo to v2.14.0 (#203) --- package-lock.json | 38 +++++++++++++++++++------------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/package-lock.json b/package-lock.json index a7202ae..ff29450 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2374,9 +2374,9 @@ } }, "@types/json-schema": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.3.tgz", - "integrity": "sha512-Il2DtDVRGDcqjDtE+rF8iqg1CArehSK84HZJCT7AMITlyXRBpuPhqGLDQMowraqqu1coEaimg4ZOqggt6L6L+A==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.4.tgz", + "integrity": "sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA==", "dev": true }, "@types/minimatch": { @@ -2422,12 +2422,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.13.0.tgz", - "integrity": "sha512-QoiANo0MMGNa8ej/yX3BrW5dZj5d8HYcKiM2fyYUlezECqn8Xc7T/e4EUdiGinn8jhBrn+9X47E9TWaaup3u1g==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz", + "integrity": "sha512-sneOJ3Hu0m5whJiVIxGBZZZMxMJ7c0LhAJzeMJgHo+n5wFs+/6rSR/gl7crkdR2kNwfOOSdzdc0gMvatG4dX2Q==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.13.0", + "@typescript-eslint/experimental-utils": "2.14.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2443,32 +2443,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.13.0.tgz", - "integrity": "sha512-+Hss3clwa6aNiC8ZjA45wEm4FutDV5HsVXPl/rDug1THq6gEtOYRGLqS3JlTk7mSnL5TbJz0LpEbzbPnKvY6sw==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.14.0.tgz", + "integrity": "sha512-KcyKS7G6IWnIgl3ZpyxyBCxhkBPV+0a5Jjy2g5HxlrbG2ZLQNFeneIBVXdaBCYOVjvGmGGFKom1kgiAY75SDeQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.13.0", + "@typescript-eslint/typescript-estree": "2.14.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.13.0.tgz", - "integrity": "sha512-vbDeLr5QRJ1K7x5iRK8J9wuGwR9OVyd1zDAY9XFAQvAosHVjSVbDgkm328ayE6hx2QWVGhwvGaEhedcqAbfQcA==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.14.0.tgz", + "integrity": "sha512-haS+8D35fUydIs+zdSf4BxpOartb/DjrZ2IxQ5sR8zyGfd77uT9ZJZYF8+I0WPhzqHmfafUBx8MYpcp8pfaoSA==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.13.0", - "@typescript-eslint/typescript-estree": "2.13.0", + "@typescript-eslint/experimental-utils": "2.14.0", + "@typescript-eslint/typescript-estree": "2.14.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.13.0.tgz", - "integrity": "sha512-t21Mg5cc8T3ADEUGwDisHLIubgXKjuNRbkpzDMLb7/JMmgCe/gHM9FaaujokLey+gwTuLF5ndSQ7/EfQqrQx4g==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.14.0.tgz", + "integrity": "sha512-pnLpUcMNG7GfFFfNQbEX6f1aPa5fMnH2G9By+A1yovYI4VIOK2DzkaRuUlIkbagpAcrxQHLqovI1YWqEcXyRnA==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index a60e64f..fcb0873 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.25", "@types/nock": "10.0.3", "@types/node": "11.15.3", - "@typescript-eslint/eslint-plugin": "2.13.0", - "@typescript-eslint/parser": "2.13.0", + "@typescript-eslint/eslint-plugin": "2.14.0", + "@typescript-eslint/parser": "2.14.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", "eslint": "6.8.0", diff --git a/yarn.lock b/yarn.lock index 0a679cd..ec5ab31 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1235,40 +1235,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.13.0.tgz#57e933fe16a2fc66dbac059af0d6d85d921d748e" - integrity sha512-QoiANo0MMGNa8ej/yX3BrW5dZj5d8HYcKiM2fyYUlezECqn8Xc7T/e4EUdiGinn8jhBrn+9X47E9TWaaup3u1g== +"@typescript-eslint/eslint-plugin@2.14.0": + version "2.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz#c74447400537d4eb7aae1e31879ab43e6c662a8a" + integrity sha512-sneOJ3Hu0m5whJiVIxGBZZZMxMJ7c0LhAJzeMJgHo+n5wFs+/6rSR/gl7crkdR2kNwfOOSdzdc0gMvatG4dX2Q== dependencies: - "@typescript-eslint/experimental-utils" "2.13.0" + "@typescript-eslint/experimental-utils" "2.14.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.13.0.tgz#958614faa6f77599ee2b241740e0ea402482533d" - integrity sha512-+Hss3clwa6aNiC8ZjA45wEm4FutDV5HsVXPl/rDug1THq6gEtOYRGLqS3JlTk7mSnL5TbJz0LpEbzbPnKvY6sw== +"@typescript-eslint/experimental-utils@2.14.0": + version "2.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.14.0.tgz#e9179fa3c44e00b3106b85d7b69342901fb43e3b" + integrity sha512-KcyKS7G6IWnIgl3ZpyxyBCxhkBPV+0a5Jjy2g5HxlrbG2ZLQNFeneIBVXdaBCYOVjvGmGGFKom1kgiAY75SDeQ== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.13.0" + "@typescript-eslint/typescript-estree" "2.14.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.13.0.tgz#ea1ab394cf9ca17467e3da7f96eca9309f57c326" - integrity sha512-vbDeLr5QRJ1K7x5iRK8J9wuGwR9OVyd1zDAY9XFAQvAosHVjSVbDgkm328ayE6hx2QWVGhwvGaEhedcqAbfQcA== +"@typescript-eslint/parser@2.14.0": + version "2.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.14.0.tgz#30fa0523d86d74172a5e32274558404ba4262cd6" + integrity sha512-haS+8D35fUydIs+zdSf4BxpOartb/DjrZ2IxQ5sR8zyGfd77uT9ZJZYF8+I0WPhzqHmfafUBx8MYpcp8pfaoSA== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.13.0" - "@typescript-eslint/typescript-estree" "2.13.0" + "@typescript-eslint/experimental-utils" "2.14.0" + "@typescript-eslint/typescript-estree" "2.14.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.13.0": - version "2.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.13.0.tgz#a2e746867da772c857c13853219fced10d2566bc" - integrity sha512-t21Mg5cc8T3ADEUGwDisHLIubgXKjuNRbkpzDMLb7/JMmgCe/gHM9FaaujokLey+gwTuLF5ndSQ7/EfQqrQx4g== +"@typescript-eslint/typescript-estree@2.14.0": + version "2.14.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.14.0.tgz#c67698acdc14547f095eeefe908958d93e1a648d" + integrity sha512-pnLpUcMNG7GfFFfNQbEX6f1aPa5fMnH2G9By+A1yovYI4VIOK2DzkaRuUlIkbagpAcrxQHLqovI1YWqEcXyRnA== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From 68431357b821e39d5e79baddfae77eb55c843e59 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 3 Jan 2020 08:53:02 +0200 Subject: [PATCH 45/53] Update dependency nock to v11.7.1 (#204) --- package-lock.json | 71 ++--------------------------------------------- package.json | 2 +- yarn.lock | 53 +++-------------------------------- 3 files changed, 8 insertions(+), 118 deletions(-) diff --git a/package-lock.json b/package-lock.json index ff29450..148ff4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2921,12 +2921,6 @@ "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", "dev": true }, - "assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true - }, "assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", @@ -3538,20 +3532,6 @@ "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", "dev": true }, - "chai": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", - "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", - "dev": true, - "requires": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^3.0.1", - "get-func-name": "^2.0.0", - "pathval": "^1.1.0", - "type-detect": "^4.0.5" - } - }, "chalk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", @@ -3575,12 +3555,6 @@ "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", "dev": true }, - "check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", - "dev": true - }, "chokidar": { "version": "2.1.8", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.8.tgz", @@ -4123,15 +4097,6 @@ "mimic-response": "^1.0.0" } }, - "deep-eql": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", - "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", - "dev": true, - "requires": { - "type-detect": "^4.0.0" - } - }, "deep-extend": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", @@ -5746,12 +5711,6 @@ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true }, - "get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", - "dev": true - }, "get-stream": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", @@ -7807,28 +7766,16 @@ "dev": true }, "nock": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/nock/-/nock-11.7.0.tgz", - "integrity": "sha512-7c1jhHew74C33OBeRYyQENT+YXQiejpwIrEjinh6dRurBae+Ei4QjeUaPlkptIF0ZacEiVCnw8dWaxqepkiihg==", + "version": "11.7.1", + "resolved": "https://registry.npmjs.org/nock/-/nock-11.7.1.tgz", + "integrity": "sha512-fW+dlMyquAEvgtmGoRHftKrNnJ7yZcbINQDTW7OKRoTYa+11GA0u0UokWHuvCyZrG5TXkplnEv2jmj6R3vvImg==", "dev": true, "requires": { - "chai": "^4.1.2", "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", "lodash": "^4.17.13", "mkdirp": "^0.5.0", "propagate": "^2.0.0" - }, - "dependencies": { - "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" - } - } } }, "node-fetch": { @@ -8433,12 +8380,6 @@ } } }, - "pathval": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", - "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", - "dev": true - }, "pbkdf2": { "version": "3.0.17", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", @@ -10398,12 +10339,6 @@ "prelude-ls": "~1.1.2" } }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, "type-fest": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.5.2.tgz", diff --git a/package.json b/package.json index fcb0873..d9336af 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "coveralls": "3.0.9", "eslint": "6.8.0", "jest": "24.9.0", - "nock": "11.7.0", + "nock": "11.7.1", "release-it": "12.4.3", "ts-jest": "24.2.0", "ts-loader": "6.2.1", diff --git a/yarn.lock b/yarn.lock index ec5ab31..6d286e5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1647,11 +1647,6 @@ assert@^1.1.1: object-assign "^4.1.1" util "0.10.3" -assertion-error@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" - integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== - assign-symbols@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" @@ -2100,18 +2095,6 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -chai@^4.1.2: - version "4.2.0" - resolved "https://registry.yarnpkg.com/chai/-/chai-4.2.0.tgz#760aa72cf20e3795e84b12877ce0e83737aa29e5" - integrity sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw== - dependencies: - assertion-error "^1.1.0" - check-error "^1.0.2" - deep-eql "^3.0.1" - get-func-name "^2.0.0" - pathval "^1.1.0" - type-detect "^4.0.5" - chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" @@ -2131,11 +2114,6 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -check-error@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" - integrity sha1-V00xLt2Iu13YkS6Sht1sCu1KrII= - chokidar@^2.0.2: version "2.1.6" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.6.tgz#b6cad653a929e244ce8a834244164d241fa954c5" @@ -2548,13 +2526,6 @@ decompress-response@^3.3.0: dependencies: mimic-response "^1.0.0" -deep-eql@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df" - integrity sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw== - dependencies: - type-detect "^4.0.0" - deep-extend@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" @@ -3340,11 +3311,6 @@ get-caller-file@^2.0.1: resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== -get-func-name@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" - integrity sha1-6td0q+5y4gQJQzoGY2YCPdaIekE= - get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -5173,12 +5139,11 @@ nice-try@^1.0.4: resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== -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== +nock@11.7.1: + version "11.7.1" + resolved "https://registry.yarnpkg.com/nock/-/nock-11.7.1.tgz#761971f24093e291af6e1f0af5b6eb048b94b1c1" + integrity sha512-fW+dlMyquAEvgtmGoRHftKrNnJ7yZcbINQDTW7OKRoTYa+11GA0u0UokWHuvCyZrG5TXkplnEv2jmj6R3vvImg== dependencies: - chai "^4.1.2" debug "^4.1.0" json-stringify-safe "^5.0.1" lodash "^4.17.13" @@ -5711,11 +5676,6 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== -pathval@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0" - integrity sha1-uULm1L3mUwBe9rcTYd74cn0GReA= - pbkdf2@^3.0.3: version "3.0.17" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.17.tgz#976c206530617b14ebb32114239f7b09336e93a6" @@ -7039,11 +6999,6 @@ type-check@~0.3.2: dependencies: prelude-ls "~1.1.2" -type-detect@^4.0.0, type-detect@^4.0.5: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - type-fest@^0.3.0: version "0.3.1" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" From 6208bd4b72a56ed2c70746c5cb086a43ffcf14ad Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 6 Jan 2020 09:31:09 +0200 Subject: [PATCH 46/53] Update dependency @types/node to v11.15.4 (#205) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 148ff4e..07ca812 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2395,9 +2395,9 @@ } }, "@types/node": { - "version": "11.15.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.3.tgz", - "integrity": "sha512-5RzvXVietaB8S4dwDjxjltAOHtTO87fiksjqjWGZih97j6KSrdCDaRfmYMNrgrLM87odGBrsTHAl6N3fLraQaw==", + "version": "11.15.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.15.4.tgz", + "integrity": "sha512-z7deEbNOPcS7pb7uyaZhbITh18ruGghYh86VmUL2zJPKeu9tEAqF0goQH0dhWamHoBJpkyWroNxPZjzNvbYVCw==", "dev": true }, "@types/stack-utils": { diff --git a/package.json b/package.json index d9336af..ae8cf21 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@babel/runtime": "7.7.7", "@types/jest": "24.0.25", "@types/nock": "10.0.3", - "@types/node": "11.15.3", + "@types/node": "11.15.4", "@typescript-eslint/eslint-plugin": "2.14.0", "@typescript-eslint/parser": "2.14.0", "babel-loader": "8.0.6", diff --git a/yarn.lock b/yarn.lock index 6d286e5..fb18e3f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1213,10 +1213,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.3": - version "11.15.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.3.tgz#cb7f19846a83ac5a88fc22756b74633cdeb476a7" - integrity sha512-5RzvXVietaB8S4dwDjxjltAOHtTO87fiksjqjWGZih97j6KSrdCDaRfmYMNrgrLM87odGBrsTHAl6N3fLraQaw== +"@types/node@11.15.4": + version "11.15.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.4.tgz#2c8d58f726cfbbd9b76d179475fd386d650a2fda" + integrity sha512-z7deEbNOPcS7pb7uyaZhbITh18ruGghYh86VmUL2zJPKeu9tEAqF0goQH0dhWamHoBJpkyWroNxPZjzNvbYVCw== "@types/stack-utils@^1.0.1": version "1.0.1" From bf4648af0f3e949872865c38e6bbf2020211e154 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 7 Jan 2020 08:34:57 +0200 Subject: [PATCH 47/53] Update dependency ts-jest to v24.3.0 (#207) --- package-lock.json | 6 +++--- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 07ca812..8d4850e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10196,9 +10196,9 @@ "dev": true }, "ts-jest": { - "version": "24.2.0", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.2.0.tgz", - "integrity": "sha512-Yc+HLyldlIC9iIK8xEN7tV960Or56N49MDP7hubCZUeI7EbIOTsas6rXCMB4kQjLACJ7eDOF4xWEO5qumpKsag==", + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.3.0.tgz", + "integrity": "sha512-Hb94C/+QRIgjVZlJyiWwouYUF+siNJHJHknyspaOcZ+OQAIdFG/UrdQVXw/0B8Z3No34xkUXZJpOTy9alOWdVQ==", "dev": true, "requires": { "bs-logger": "0.x", diff --git a/package.json b/package.json index ae8cf21..3fd9623 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "jest": "24.9.0", "nock": "11.7.1", "release-it": "12.4.3", - "ts-jest": "24.2.0", + "ts-jest": "24.3.0", "ts-loader": "6.2.1", "typescript": "3.7.4", "webpack": "4.41.5", diff --git a/yarn.lock b/yarn.lock index fb18e3f..e842f88 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6936,10 +6936,10 @@ 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.2.0: - version "24.2.0" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-24.2.0.tgz#7abca28c2b4b0a1fdd715cd667d65d047ea4e768" - integrity sha512-Yc+HLyldlIC9iIK8xEN7tV960Or56N49MDP7hubCZUeI7EbIOTsas6rXCMB4kQjLACJ7eDOF4xWEO5qumpKsag== +ts-jest@24.3.0: + version "24.3.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-24.3.0.tgz#b97814e3eab359ea840a1ac112deae68aa440869" + integrity sha512-Hb94C/+QRIgjVZlJyiWwouYUF+siNJHJHknyspaOcZ+OQAIdFG/UrdQVXw/0B8Z3No34xkUXZJpOTy9alOWdVQ== dependencies: bs-logger "0.x" buffer-from "1.x" From a9542bd5680d254c173042ee35aeb29a546b10e1 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 7 Jan 2020 08:36:02 +0200 Subject: [PATCH 48/53] Update typescript-eslint monorepo to v2.15.0 (#206) --- package-lock.json | 32 ++++++++++++++++---------------- package.json | 4 ++-- yarn.lock | 40 ++++++++++++++++++++-------------------- 3 files changed, 38 insertions(+), 38 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8d4850e..e9fa1b8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2422,12 +2422,12 @@ "dev": true }, "@typescript-eslint/eslint-plugin": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz", - "integrity": "sha512-sneOJ3Hu0m5whJiVIxGBZZZMxMJ7c0LhAJzeMJgHo+n5wFs+/6rSR/gl7crkdR2kNwfOOSdzdc0gMvatG4dX2Q==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.15.0.tgz", + "integrity": "sha512-XRJFznI5v4K1WvIrWmjFjBAdQWaUTz4xJEdqR7+wAFsv6Q9dP3mOlE6BMNT3pdlp9eF1+bC5m5LZTmLMqffCVw==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "2.14.0", + "@typescript-eslint/experimental-utils": "2.15.0", "eslint-utils": "^1.4.3", "functional-red-black-tree": "^1.0.1", "regexpp": "^3.0.0", @@ -2443,32 +2443,32 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.14.0.tgz", - "integrity": "sha512-KcyKS7G6IWnIgl3ZpyxyBCxhkBPV+0a5Jjy2g5HxlrbG2ZLQNFeneIBVXdaBCYOVjvGmGGFKom1kgiAY75SDeQ==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.15.0.tgz", + "integrity": "sha512-Qkxu5zndY5hqlcQkmA88gfLvqQulMpX/TN91XC7OuXsRf4XG5xLGie0sbpX97o/oeccjeZYRMipIsjKk/tjDHA==", "dev": true, "requires": { "@types/json-schema": "^7.0.3", - "@typescript-eslint/typescript-estree": "2.14.0", + "@typescript-eslint/typescript-estree": "2.15.0", "eslint-scope": "^5.0.0" } }, "@typescript-eslint/parser": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.14.0.tgz", - "integrity": "sha512-haS+8D35fUydIs+zdSf4BxpOartb/DjrZ2IxQ5sR8zyGfd77uT9ZJZYF8+I0WPhzqHmfafUBx8MYpcp8pfaoSA==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.15.0.tgz", + "integrity": "sha512-6iSgQsqAYTaHw59t0tdjzZJluRAjswdGltzKEdLtcJOxR2UVTPHYvZRqkAVGCkaMVb6Fpa60NnuozNCvsSpA9g==", "dev": true, "requires": { "@types/eslint-visitor-keys": "^1.0.0", - "@typescript-eslint/experimental-utils": "2.14.0", - "@typescript-eslint/typescript-estree": "2.14.0", + "@typescript-eslint/experimental-utils": "2.15.0", + "@typescript-eslint/typescript-estree": "2.15.0", "eslint-visitor-keys": "^1.1.0" } }, "@typescript-eslint/typescript-estree": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.14.0.tgz", - "integrity": "sha512-pnLpUcMNG7GfFFfNQbEX6f1aPa5fMnH2G9By+A1yovYI4VIOK2DzkaRuUlIkbagpAcrxQHLqovI1YWqEcXyRnA==", + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.15.0.tgz", + "integrity": "sha512-L6Pog+w3VZzXkAdyqA0VlwybF8WcwZX+mufso86CMxSdWmcizJ38lgBdpqTbc9bo92iyi0rOvmATKiwl+amjxg==", "dev": true, "requires": { "debug": "^4.1.1", diff --git a/package.json b/package.json index 3fd9623..1e5a439 100644 --- a/package.json +++ b/package.json @@ -49,8 +49,8 @@ "@types/jest": "24.0.25", "@types/nock": "10.0.3", "@types/node": "11.15.4", - "@typescript-eslint/eslint-plugin": "2.14.0", - "@typescript-eslint/parser": "2.14.0", + "@typescript-eslint/eslint-plugin": "2.15.0", + "@typescript-eslint/parser": "2.15.0", "babel-loader": "8.0.6", "coveralls": "3.0.9", "eslint": "6.8.0", diff --git a/yarn.lock b/yarn.lock index e842f88..08677cf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1235,40 +1235,40 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.14.0.tgz#c74447400537d4eb7aae1e31879ab43e6c662a8a" - integrity sha512-sneOJ3Hu0m5whJiVIxGBZZZMxMJ7c0LhAJzeMJgHo+n5wFs+/6rSR/gl7crkdR2kNwfOOSdzdc0gMvatG4dX2Q== +"@typescript-eslint/eslint-plugin@2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.15.0.tgz#5442c30b687ffd576ff74cfea46a6d7bfb0ee893" + integrity sha512-XRJFznI5v4K1WvIrWmjFjBAdQWaUTz4xJEdqR7+wAFsv6Q9dP3mOlE6BMNT3pdlp9eF1+bC5m5LZTmLMqffCVw== dependencies: - "@typescript-eslint/experimental-utils" "2.14.0" + "@typescript-eslint/experimental-utils" "2.15.0" eslint-utils "^1.4.3" functional-red-black-tree "^1.0.1" regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.14.0.tgz#e9179fa3c44e00b3106b85d7b69342901fb43e3b" - integrity sha512-KcyKS7G6IWnIgl3ZpyxyBCxhkBPV+0a5Jjy2g5HxlrbG2ZLQNFeneIBVXdaBCYOVjvGmGGFKom1kgiAY75SDeQ== +"@typescript-eslint/experimental-utils@2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.15.0.tgz#41e35313bfaef91650ddb5380846d1c78a780070" + integrity sha512-Qkxu5zndY5hqlcQkmA88gfLvqQulMpX/TN91XC7OuXsRf4XG5xLGie0sbpX97o/oeccjeZYRMipIsjKk/tjDHA== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.14.0" + "@typescript-eslint/typescript-estree" "2.15.0" eslint-scope "^5.0.0" -"@typescript-eslint/parser@2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.14.0.tgz#30fa0523d86d74172a5e32274558404ba4262cd6" - integrity sha512-haS+8D35fUydIs+zdSf4BxpOartb/DjrZ2IxQ5sR8zyGfd77uT9ZJZYF8+I0WPhzqHmfafUBx8MYpcp8pfaoSA== +"@typescript-eslint/parser@2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.15.0.tgz#379a71a51b0429bc3bc55c5f8aab831bf607e411" + integrity sha512-6iSgQsqAYTaHw59t0tdjzZJluRAjswdGltzKEdLtcJOxR2UVTPHYvZRqkAVGCkaMVb6Fpa60NnuozNCvsSpA9g== dependencies: "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.14.0" - "@typescript-eslint/typescript-estree" "2.14.0" + "@typescript-eslint/experimental-utils" "2.15.0" + "@typescript-eslint/typescript-estree" "2.15.0" eslint-visitor-keys "^1.1.0" -"@typescript-eslint/typescript-estree@2.14.0": - version "2.14.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.14.0.tgz#c67698acdc14547f095eeefe908958d93e1a648d" - integrity sha512-pnLpUcMNG7GfFFfNQbEX6f1aPa5fMnH2G9By+A1yovYI4VIOK2DzkaRuUlIkbagpAcrxQHLqovI1YWqEcXyRnA== +"@typescript-eslint/typescript-estree@2.15.0": + version "2.15.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.15.0.tgz#79ae52eed8701b164d91e968a65d85a9105e76d3" + integrity sha512-L6Pog+w3VZzXkAdyqA0VlwybF8WcwZX+mufso86CMxSdWmcizJ38lgBdpqTbc9bo92iyi0rOvmATKiwl+amjxg== dependencies: debug "^4.1.1" eslint-visitor-keys "^1.1.0" From 395957d996abc26b383452e8f708e871dee0bb82 Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Tue, 7 Jan 2020 10:28:40 +0100 Subject: [PATCH 49/53] [PW-1980] Adds paymentLinks service (#209) * Adds paymentLinks service * Update typescript models --- src/__tests__/checkout.spec.ts | 57 +- src/client.ts | 2 +- src/services/checkout.ts | 12 + .../resource/checkout/paymentLinks.ts | 35 ++ .../checkout/additionalData3DSecure.ts | 9 + .../checkout/additionalDataRiskStandalone.ts | 2 +- src/typings/checkout/address.ts | 2 +- src/typings/checkout/paymentMethodACH.ts | 42 ++ .../checkout/paymentMethodAmazonPay.ts | 42 ++ .../checkout/paymentMethodAndroidPay.ts | 42 ++ src/typings/checkout/paymentMethodApplePay.ts | 42 ++ src/typings/checkout/paymentMethodCard.ts | 78 +++ src/typings/checkout/paymentMethodDotpay.ts | 42 ++ .../paymentMethodDragonpayEBanking.ts | 42 ++ .../paymentMethodDragonpayOtcBanking.ts | 42 ++ .../paymentMethodDragonpayOtcNonBanking.ts | 42 ++ .../paymentMethodDragonpayOtcPhilippines.ts | 42 ++ src/typings/checkout/paymentMethodGiropay.ts | 42 ++ src/typings/checkout/paymentMethodIDeal.ts | 42 ++ .../paymentMethodLianLianPayEbankingCredit.ts | 42 ++ .../paymentMethodLianLianPayEbankingDebit.ts | 42 ++ ...mentMethodLianLianPayEbankingEnterprise.ts | 42 ++ .../paymentMethodMOLpayEBankingMalaysia.ts | 42 ++ .../paymentMethodMOLpayEBankingThailand.ts | 42 ++ .../paymentMethodMOLpayEBankingVietnam.ts | 42 ++ .../checkout/paymentMethodPayWithGoogle.ts | 60 ++ .../checkout/paymentMethodQIWIWallet.ts | 51 ++ .../checkout/paymentMethodSamsungpay.ts | 42 ++ .../checkout/paymentMethodSchemeGiftCard.ts | 114 ++++ .../checkout/paymentMethodSepaDirectDebit.ts | 51 ++ src/typings/checkout/paymentMethodVipps.ts | 42 ++ src/typings/checkout/paymentMethodsRequest.ts | 20 +- src/typings/checkout/paymentRequest.ts | 20 +- src/typings/checkout/paymentResponse.ts | 2 +- src/typings/checkout/paymentSetupRequest.ts | 20 +- .../checkout/paymentVerificationResponse.ts | 2 +- src/typings/checkout/threeDS2RequestData.ts | 14 +- src/typings/payments/accountInfo.ts | 4 +- .../payments/additionalData3DSecure.ts | 13 +- src/typings/payments/additionalDataAirline.ts | 4 +- .../payments/additionalDataCarRental.ts | 4 +- src/typings/payments/additionalDataCommon.ts | 4 +- src/typings/payments/additionalDataLevel23.ts | 4 +- src/typings/payments/additionalDataLodging.ts | 4 +- .../payments/additionalDataModifications.ts | 33 ++ .../payments/additionalDataOpenInvoice.ts | 4 +- src/typings/payments/additionalDataRatepay.ts | 4 +- src/typings/payments/additionalDataRetry.ts | 4 +- src/typings/payments/additionalDataRisk.ts | 4 +- .../payments/additionalDataRiskStandalone.ts | 6 +- .../additionalDataTemporaryServices.ts | 4 +- src/typings/payments/additionalDataWallets.ts | 4 +- src/typings/payments/address.ts | 6 +- src/typings/payments/amount.ts | 4 +- src/typings/payments/applicationInfo.ts | 4 +- .../payments/authenticationResultRequest.ts | 42 ++ .../payments/authenticationResultResponse.ts | 38 ++ src/typings/payments/bankAccount.ts | 4 +- src/typings/payments/browserInfo.ts | 4 +- src/typings/payments/card.ts | 4 +- src/typings/payments/commonField.ts | 4 +- src/typings/payments/deviceRenderOptions.ts | 4 +- src/typings/payments/externalPlatform.ts | 4 +- src/typings/payments/forexQuote.ts | 4 +- src/typings/payments/fraudCheckResult.ts | 4 +- src/typings/payments/fraudResult.ts | 4 +- src/typings/payments/installments.ts | 4 +- src/typings/payments/merchantDevice.ts | 4 +- src/typings/payments/merchantRiskIndicator.ts | 4 +- src/typings/payments/modificationRequest.ts | 147 +++-- src/typings/payments/modificationResult.ts | 70 ++- src/typings/payments/name.ts | 4 +- src/typings/payments/paymentRequest.ts | 217 +++---- src/typings/payments/paymentRequest3d.ts | 550 +++++++++++++----- src/typings/payments/paymentRequest3ds2.ts | 544 ++++++++++++----- src/typings/payments/paymentResult.ts | 184 ++++-- src/typings/payments/recurring.ts | 4 +- .../responseAdditionalDataBillingAddress.ts | 78 +++ .../payments/responseAdditionalDataCard.ts | 87 +++ .../payments/responseAdditionalDataCommon.ts | 258 ++++++++ .../responseAdditionalDataDeliveryAddress.ts | 78 +++ .../responseAdditionalDataInstallments.ts | 132 +++++ src/typings/payments/sDKEphemPubKey.ts | 4 +- .../payments/shopperInteractionDevice.ts | 4 +- src/typings/payments/split.ts | 6 +- src/typings/payments/splitAmount.ts | 4 +- src/typings/payments/threeDS1Result.ts | 78 +++ src/typings/payments/threeDS2RequestData.ts | 18 +- src/typings/payments/threeDS2Result.ts | 128 +++- src/typings/payments/threeDS2ResultRequest.ts | 46 +- .../payments/threeDS2ResultResponse.ts | 33 +- src/typings/payments/threeDSecureData.ts | 4 +- 92 files changed, 3494 insertions(+), 775 deletions(-) create mode 100644 src/services/resource/checkout/paymentLinks.ts create mode 100644 src/typings/checkout/paymentMethodACH.ts create mode 100644 src/typings/checkout/paymentMethodAmazonPay.ts create mode 100644 src/typings/checkout/paymentMethodAndroidPay.ts create mode 100644 src/typings/checkout/paymentMethodApplePay.ts create mode 100644 src/typings/checkout/paymentMethodCard.ts create mode 100644 src/typings/checkout/paymentMethodDotpay.ts create mode 100644 src/typings/checkout/paymentMethodDragonpayEBanking.ts create mode 100644 src/typings/checkout/paymentMethodDragonpayOtcBanking.ts create mode 100644 src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts create mode 100644 src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts create mode 100644 src/typings/checkout/paymentMethodGiropay.ts create mode 100644 src/typings/checkout/paymentMethodIDeal.ts create mode 100644 src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts create mode 100644 src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts create mode 100644 src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts create mode 100644 src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts create mode 100644 src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts create mode 100644 src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts create mode 100644 src/typings/checkout/paymentMethodPayWithGoogle.ts create mode 100644 src/typings/checkout/paymentMethodQIWIWallet.ts create mode 100644 src/typings/checkout/paymentMethodSamsungpay.ts create mode 100644 src/typings/checkout/paymentMethodSchemeGiftCard.ts create mode 100644 src/typings/checkout/paymentMethodSepaDirectDebit.ts create mode 100644 src/typings/checkout/paymentMethodVipps.ts create mode 100644 src/typings/payments/additionalDataModifications.ts create mode 100644 src/typings/payments/authenticationResultRequest.ts create mode 100644 src/typings/payments/authenticationResultResponse.ts mode change 100755 => 100644 src/typings/payments/modificationRequest.ts mode change 100755 => 100644 src/typings/payments/modificationResult.ts mode change 100755 => 100644 src/typings/payments/paymentRequest3d.ts mode change 100755 => 100644 src/typings/payments/paymentRequest3ds2.ts mode change 100755 => 100644 src/typings/payments/paymentResult.ts create mode 100644 src/typings/payments/responseAdditionalDataBillingAddress.ts create mode 100644 src/typings/payments/responseAdditionalDataCard.ts create mode 100644 src/typings/payments/responseAdditionalDataCommon.ts create mode 100644 src/typings/payments/responseAdditionalDataDeliveryAddress.ts create mode 100644 src/typings/payments/responseAdditionalDataInstallments.ts create mode 100644 src/typings/payments/threeDS1Result.ts mode change 100755 => 100644 src/typings/payments/threeDS2Result.ts mode change 100755 => 100644 src/typings/payments/threeDS2ResultRequest.ts mode change 100755 => 100644 src/typings/payments/threeDS2ResultResponse.ts diff --git a/src/__tests__/checkout.spec.ts b/src/__tests__/checkout.spec.ts index 51d3fa0..f367d68 100644 --- a/src/__tests__/checkout.spec.ts +++ b/src/__tests__/checkout.spec.ts @@ -39,6 +39,11 @@ import { PaymentSetupRequest, PaymentVerificationRequest } from "../typings/checkout"; import HttpClientException from "../httpClient/httpClientException"; +import {CreatePaymentLinkRequest} from "../typings/payments/createPaymentLinkRequest"; +import {CreatePaymentLinkResponse} from "../typings/checkout/createPaymentLinkResponse"; + +const merchantAccount = "MagentoMerchantTest"; +const reference = "Your order number"; function createAmountObject(currency: string, value: number): Amount { return { @@ -69,9 +74,9 @@ export function createPaymentsCheckoutRequest(): PaymentRequest { return { amount: createAmountObject("USD", 1000), - merchantAccount: "MagentoMerchantTest", + merchantAccount, paymentMethod: paymentMethodDetails, - reference: "Your order number", + reference, returnUrl: "https://your-company.com/...", }; } @@ -80,8 +85,8 @@ function createPaymentSessionRequest(): PaymentSetupRequest { return { amount: createAmountObject("USD", 1000), countryCode: "NL", - merchantAccount: "MagentoMerchantTest", - reference: "Your order number", + merchantAccount, + reference, returnUrl: "https://your-company.com/...", }; } @@ -133,6 +138,50 @@ describe("Checkout", (): void => { } }); + it("should have valid payment link", async (): Promise => { + const amount = createAmountObject("BRL", 1000); + const expiresAt = "2019-12-17T10:05:29Z"; + const paymentLinkRequest: CreatePaymentLinkRequest = { + allowedPaymentMethods: ["scheme", "boletobancario"], + amount, + countryCode: "BR", + merchantAccount, + shopperReference: "shopperReference", + shopperEmail: "test@email.com", + shopperLocale: "pt_BR", + billingAddress: { + street: "Roque Petroni Jr", + postalCode: "59000060", + city: "São Paulo", + houseNumberOrName: "999", + country: "BR", + stateOrProvince: "SP" + }, + deliveryAddress: { + street: "Roque Petroni Jr", + postalCode: "59000060", + city: "São Paulo", + houseNumberOrName: "999", + country: "BR", + stateOrProvince: "SP" + }, + expiresAt, + reference + }; + + const paymentLinkSuccess: CreatePaymentLinkResponse = { + amount, + expiresAt, + reference, + url: "paymentLinkResponse.url" + }; + + scope.post("/paymentLinks").reply(200, paymentLinkSuccess); + + const paymentSuccessLinkResponse = await checkout.paymentLinks(paymentLinkRequest); + expect(paymentLinkSuccess).toEqual(paymentSuccessLinkResponse); + }); + it("should have payment details", async (): Promise => { scope.post("/payments/details") .reply(200, paymentDetailsSuccess); diff --git a/src/client.ts b/src/client.ts index ddfbafd..9bded13 100644 --- a/src/client.ts +++ b/src/client.ts @@ -64,7 +64,7 @@ class Client { public static LIB_VERSION: string = version; public static CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout"; public static CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout"; - public static CHECKOUT_API_VERSION = "v49"; + public static CHECKOUT_API_VERSION = "v51"; public static BIN_LOOKUP_PAL_SUFFIX = "/pal/servlet/BinLookup/"; public static BIN_LOOKUP_API_VERSION = "v40"; public static CHECKOUT_UTILITY_API_VERSION = "v1"; diff --git a/src/services/checkout.ts b/src/services/checkout.ts index 77ac83d..6459cb8 100644 --- a/src/services/checkout.ts +++ b/src/services/checkout.ts @@ -32,7 +32,10 @@ import Payments from "./resource/checkout/payments"; import PaymentsDetails from "./resource/checkout/paymentsDetails"; import PaymentSession from "./resource/checkout/paymentSession"; import PaymentsResult from "./resource/checkout/paymentsResult"; +import PaymentLinks from "./resource/checkout/paymentLinks"; import setApplicationInfo from "../helpers/setApplicationInfo"; +import {CreatePaymentLinkResponse} from "../typings/checkout/createPaymentLinkResponse"; +import {CreatePaymentLinkRequest} from "../typings/checkout/createPaymentLinkRequest"; class Checkout extends ApiKeyAuthenticatedService { private readonly _payments: Payments; @@ -40,6 +43,7 @@ class Checkout extends ApiKeyAuthenticatedService { private readonly _paymentsDetails: PaymentsDetails; private readonly _paymentSession: PaymentSession; private readonly _paymentsResult: PaymentsResult; + private readonly _paymentLinks: PaymentLinks; public constructor(client: Client) { super(client); @@ -48,6 +52,7 @@ class Checkout extends ApiKeyAuthenticatedService { this._paymentsDetails = new PaymentsDetails(this); this._paymentSession = new PaymentSession(this); this._paymentsResult = new PaymentsResult(this); + this._paymentLinks = new PaymentLinks(this); } public payments(paymentsRequest: PaymentRequest, requestOptions?: RequestOptions): Promise { @@ -65,6 +70,13 @@ class Checkout extends ApiKeyAuthenticatedService { ); } + public paymentLinks(paymentLinkRequest: CreatePaymentLinkRequest): Promise { + return getJsonResponse( + this._paymentLinks, + paymentLinkRequest + ); + } + public paymentsDetails(paymentsDetailsRequest: DetailsRequest): Promise { return getJsonResponse( this._paymentsDetails, diff --git a/src/services/resource/checkout/paymentLinks.ts b/src/services/resource/checkout/paymentLinks.ts new file mode 100644 index 0000000..d87978f --- /dev/null +++ b/src/services/resource/checkout/paymentLinks.ts @@ -0,0 +1,35 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class PaymentLinks extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}/paymentLinks`, + ); + } +} + +export default PaymentLinks; diff --git a/src/typings/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts index a0156f9..7ab8499 100644 --- a/src/typings/checkout/additionalData3DSecure.ts +++ b/src/typings/checkout/additionalData3DSecure.ts @@ -24,6 +24,10 @@ export class AdditionalData3DSecure { * In case of Secure+, this field must be set to **CUPSecurePlus**. */ 'mpiImplementationType'?: string; + /** + * Indicates the [exemption type](https://docs-admin.is.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + */ + 'scaExemption'?: string; static discriminator: string | undefined = undefined; @@ -42,6 +46,11 @@ export class AdditionalData3DSecure { "name": "mpiImplementationType", "baseName": "mpiImplementationType", "type": "string" + }, + { + "name": "scaExemption", + "baseName": "scaExemption", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/additionalDataRiskStandalone.ts b/src/typings/checkout/additionalDataRiskStandalone.ts index e892ba5..bb0b026 100644 --- a/src/typings/checkout/additionalDataRiskStandalone.ts +++ b/src/typings/checkout/additionalDataRiskStandalone.ts @@ -13,7 +13,7 @@ export class AdditionalDataRiskStandalone { /** - * Raw AVS result received from the acquirer, where available. Example: 7 + * Raw AVS result received from the acquirer, where available. Example: D */ 'avsResultRaw'?: string; /** diff --git a/src/typings/checkout/address.ts b/src/typings/checkout/address.ts index 5317429..05e6a3f 100644 --- a/src/typings/checkout/address.ts +++ b/src/typings/checkout/address.ts @@ -29,7 +29,7 @@ export class Address { */ 'postalCode': 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. + * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ 'stateOrProvince'?: string; /** diff --git a/src/typings/checkout/paymentMethodACH.ts b/src/typings/checkout/paymentMethodACH.ts new file mode 100644 index 0000000..cc76e2a --- /dev/null +++ b/src/typings/checkout/paymentMethodACH.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 PaymentMethodACH { + /** + * Must be set to **ach**. + */ + 'type': string; + /** + * The bank account, from which the funds should be deducted. + */ + 'bankAccount': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodACH.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodAmazonPay.ts b/src/typings/checkout/paymentMethodAmazonPay.ts new file mode 100644 index 0000000..4a0a9e5 --- /dev/null +++ b/src/typings/checkout/paymentMethodAmazonPay.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 PaymentMethodAmazonPay { + /** + * Must be set to **androidpay**. + */ + 'type': string; + /** + * The stringified and base64 encoded paymentData retrieved from the Amazon framework. + */ + 'amazonPayToken': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "amazonPayToken", + "baseName": "amazonPayToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodAmazonPay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodAndroidPay.ts b/src/typings/checkout/paymentMethodAndroidPay.ts new file mode 100644 index 0000000..f672089 --- /dev/null +++ b/src/typings/checkout/paymentMethodAndroidPay.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 PaymentMethodAndroidPay { + /** + * Must be set to **androidpay**. + */ + 'type': string; + /** + * The stringified and base64 encoded paymentData retrieved from the Android framework. + */ + 'androidpayToken': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodAndroidPay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodApplePay.ts b/src/typings/checkout/paymentMethodApplePay.ts new file mode 100644 index 0000000..64b7888 --- /dev/null +++ b/src/typings/checkout/paymentMethodApplePay.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 PaymentMethodApplePay { + /** + * Must be set to **applepay**. + */ + 'type': string; + /** + * The stringified and base64 encoded paymentData retrieved from the Apple framework. + */ + 'applepayToken': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "applepayToken", + "baseName": "applepay.token", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodApplePay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodCard.ts b/src/typings/checkout/paymentMethodCard.ts new file mode 100644 index 0000000..2cb89da --- /dev/null +++ b/src/typings/checkout/paymentMethodCard.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 PaymentMethodCard { + /** + * Must be set to **scheme**. + */ + 'type': 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 + */ + '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 year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; + /** + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; + /** + * The card number (4-19 characters). Do not use any separators. + */ + 'number': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "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": "number", + "baseName": "number", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodCard.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodDotpay.ts b/src/typings/checkout/paymentMethodDotpay.ts new file mode 100644 index 0000000..ddc774d --- /dev/null +++ b/src/typings/checkout/paymentMethodDotpay.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 PaymentMethodDotpay { + /** + * Must be set to **dotpay**. + */ + 'type': string; + /** + * The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodDotpay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodDragonpayEBanking.ts b/src/typings/checkout/paymentMethodDragonpayEBanking.ts new file mode 100644 index 0000000..e1b3281 --- /dev/null +++ b/src/typings/checkout/paymentMethodDragonpayEBanking.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 PaymentMethodDragonpayEBanking { + /** + * Must be set to **dragonpay_ebanking**. + */ + 'type': string; + /** + * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodDragonpayEBanking.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodDragonpayOtcBanking.ts b/src/typings/checkout/paymentMethodDragonpayOtcBanking.ts new file mode 100644 index 0000000..27cdd33 --- /dev/null +++ b/src/typings/checkout/paymentMethodDragonpayOtcBanking.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 PaymentMethodDragonpayOtcBanking { + /** + * Must be set to **dragonpay_otc_banking**. + */ + 'type': string; + /** + * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodDragonpayOtcBanking.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts b/src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts new file mode 100644 index 0000000..debe0d6 --- /dev/null +++ b/src/typings/checkout/paymentMethodDragonpayOtcNonBanking.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 PaymentMethodDragonpayOtcNonBanking { + /** + * Must be set to **dragonpay_otc_non_banking**. + */ + 'type': string; + /** + * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodDragonpayOtcNonBanking.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts b/src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts new file mode 100644 index 0000000..162e1dd --- /dev/null +++ b/src/typings/checkout/paymentMethodDragonpayOtcPhilippines.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 PaymentMethodDragonpayOtcPhilippines { + /** + * Must be set to **dragonpay_otc_philippines**. + */ + 'type': string; + /** + * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodDragonpayOtcPhilippines.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodGiropay.ts b/src/typings/checkout/paymentMethodGiropay.ts new file mode 100644 index 0000000..b729c23 --- /dev/null +++ b/src/typings/checkout/paymentMethodGiropay.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 PaymentMethodGiropay { + /** + * Must be set to **giropay**. + */ + 'type': string; + /** + * The bank identifier code (BIC) of the selected issuing bank. + */ + 'bic': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodGiropay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodIDeal.ts b/src/typings/checkout/paymentMethodIDeal.ts new file mode 100644 index 0000000..9983869 --- /dev/null +++ b/src/typings/checkout/paymentMethodIDeal.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 PaymentMethodIDeal { + /** + * Must be set to **dotpay**. + */ + 'type': string; + /** + * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDeal issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodIDeal.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts b/src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts new file mode 100644 index 0000000..3657660 --- /dev/null +++ b/src/typings/checkout/paymentMethodLianLianPayEbankingCredit.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 PaymentMethodLianLianPayEbankingCredit { + /** + * Must be set to **lianlianpay_ebanking_credit**. + */ + 'type': string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodLianLianPayEbankingCredit.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts b/src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts new file mode 100644 index 0000000..75402c8 --- /dev/null +++ b/src/typings/checkout/paymentMethodLianLianPayEbankingDebit.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 PaymentMethodLianLianPayEbankingDebit { + /** + * Must be set to **lianlianpay_ebanking_debit**. + */ + 'type': string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodLianLianPayEbankingDebit.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts b/src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts new file mode 100644 index 0000000..9efcd16 --- /dev/null +++ b/src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.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 PaymentMethodLianLianPayEbankingEnterprise { + /** + * Must be set to **lianlianpay_ebanking_enterprise**. + */ + 'type': string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodLianLianPayEbankingEnterprise.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts b/src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts new file mode 100644 index 0000000..fa27bc6 --- /dev/null +++ b/src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.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 PaymentMethodMOLpayEBankingMalaysia { + /** + * Must be set to **molpay_ebanking_fpx_MY**. + */ + 'type': string; + /** + * The MOLpay issuer value of the shopper\'s selected bank. Set this to an **id** of a MOLpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodMOLpayEBankingMalaysia.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts b/src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts new file mode 100644 index 0000000..1e86027 --- /dev/null +++ b/src/typings/checkout/paymentMethodMOLpayEBankingThailand.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 PaymentMethodMOLpayEBankingThailand { + /** + * Must be set to **molpay_ebanking_TH**. + */ + 'type': string; + /** + * The MOLpay issuer value of the shopper\'s selected bank. Set this to an **id** of a MOLpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodMOLpayEBankingThailand.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts b/src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts new file mode 100644 index 0000000..ee83762 --- /dev/null +++ b/src/typings/checkout/paymentMethodMOLpayEBankingVietnam.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 PaymentMethodMOLpayEBankingVietnam { + /** + * Must be set to **molpay_ebanking_VN**. + */ + 'type': string; + /** + * The MOLpay issuer value of the shopper\'s selected bank. Set this to an **id** of a MOLpay issuer to preselect it. + */ + 'issuer': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodMOLpayEBankingVietnam.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodPayWithGoogle.ts b/src/typings/checkout/paymentMethodPayWithGoogle.ts new file mode 100644 index 0000000..890a13a --- /dev/null +++ b/src/typings/checkout/paymentMethodPayWithGoogle.ts @@ -0,0 +1,60 @@ +/** + * 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 PaymentMethodPayWithGoogle { + /** + * Must be set to **paywithgoogle**. + */ + 'type'?: string; + /** + * The stringified and base64 encoded paymentData retrieved from the Google framework. + */ + 'paywithgoogleToken': string; + /** + * The stringified and base64 encoded paymentData retrieved from the Google framework. + */ + 'googlePayToken': string; + /** + * The card type provided by the shopper. + */ + 'googlePayCardNetwork': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "googlePayToken", + "baseName": "googlePayToken", + "type": "string" + }, + { + "name": "googlePayCardNetwork", + "baseName": "googlePayCardNetwork", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodPayWithGoogle.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodQIWIWallet.ts b/src/typings/checkout/paymentMethodQIWIWallet.ts new file mode 100644 index 0000000..7627750 --- /dev/null +++ b/src/typings/checkout/paymentMethodQIWIWallet.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 PaymentMethodQIWIWallet { + /** + * Must be set to **qiwiwallet**. + */ + 'type': string; + /** + * The shopper\'s telephone number prefix. + */ + 'qiwiwalletTelephoneNumberPrefix': string; + /** + * The shopper\'s telephone number. + */ + 'qiwiwalletTelephoneNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "qiwiwalletTelephoneNumberPrefix", + "baseName": "qiwiwallet.telephoneNumberPrefix", + "type": "string" + }, + { + "name": "qiwiwalletTelephoneNumber", + "baseName": "qiwiwallet.telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodQIWIWallet.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodSamsungpay.ts b/src/typings/checkout/paymentMethodSamsungpay.ts new file mode 100644 index 0000000..08ef95b --- /dev/null +++ b/src/typings/checkout/paymentMethodSamsungpay.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 PaymentMethodSamsungpay { + /** + * Must be set to **samsungpay**. + */ + 'type': string; + /** + * The stringified and base64 encoded paymentData retrieved from the Samsung framework. + */ + 'samsungpayToken': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodSamsungpay.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodSchemeGiftCard.ts b/src/typings/checkout/paymentMethodSchemeGiftCard.ts new file mode 100644 index 0000000..225fbec --- /dev/null +++ b/src/typings/checkout/paymentMethodSchemeGiftCard.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 PaymentMethodSchemeGiftCard { + /** + * Must be set to **scheme**. + */ + 'type': 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 + */ + '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 year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; + /** + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; + /** + * The card number (4-19 characters). Do not use any separators. + */ + 'number': string; + /** + * The encrypted [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 + */ + 'encryptedSecurityCode': string; + /** + * The encrypted card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'encryptedExpiryMonth': string; + /** + * The encrypted card expiry year. Format: 4 digits. For example: 2020 + */ + 'encryptedExpiryYear': string; + /** + * The encrypted card number (4-19 characters). Do not use any separators. + */ + 'encryptedCardNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "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": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "encryptedSecurityCode", + "baseName": "encryptedSecurityCode", + "type": "string" + }, + { + "name": "encryptedExpiryMonth", + "baseName": "encryptedExpiryMonth", + "type": "string" + }, + { + "name": "encryptedExpiryYear", + "baseName": "encryptedExpiryYear", + "type": "string" + }, + { + "name": "encryptedCardNumber", + "baseName": "encryptedCardNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodSchemeGiftCard.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodSepaDirectDebit.ts b/src/typings/checkout/paymentMethodSepaDirectDebit.ts new file mode 100644 index 0000000..194fdea --- /dev/null +++ b/src/typings/checkout/paymentMethodSepaDirectDebit.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 PaymentMethodSepaDirectDebit { + /** + * Must be set to **sepadirectdebit**. + */ + 'type': string; + /** + * The shopper\'s international bank account number (IBAN). + */ + 'sepaIbanNumber': string; + /** + * The name on the SEPA bank account. + */ + 'sepaOwnerName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "sepaIbanNumber", + "baseName": "sepa.ibanNumber", + "type": "string" + }, + { + "name": "sepaOwnerName", + "baseName": "sepa.ownerName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodSepaDirectDebit.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodVipps.ts b/src/typings/checkout/paymentMethodVipps.ts new file mode 100644 index 0000000..63dfdaa --- /dev/null +++ b/src/typings/checkout/paymentMethodVipps.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 PaymentMethodVipps { + /** + * Must be set to **vipps**. + */ + 'type': string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodVipps.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index a7d775b..dd789d2 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -11,25 +11,13 @@ */ 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"; +import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices'; -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; + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices; /** * 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). */ @@ -64,7 +52,7 @@ export class PaymentMethodsRequest { */ '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. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ 'threeDSAuthenticationOnly'?: boolean; @@ -74,7 +62,7 @@ export class PaymentMethodsRequest { { "name": "additionalData", "baseName": "additionalData", - "type": "AdditionalData" + "type": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices" }, { "name": "allowedPaymentMethods", diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index 1a2384c..af0bf88 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -13,6 +13,7 @@ import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; +import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices'; import { ApplicationInfo } from './applicationInfo'; import { BrowserInfo } from './browserInfo'; import { Company } from './company'; @@ -24,26 +25,13 @@ import { Name } from './name'; import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDSecureData } from './threeDSecureData'; -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; + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices; 'amount': Amount; 'applicationInfo'?: ApplicationInfo; 'billingAddress'?: Address; @@ -209,7 +197,7 @@ export class PaymentRequest { '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. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ 'threeDSAuthenticationOnly'?: boolean; /** @@ -228,7 +216,7 @@ export class PaymentRequest { { "name": "additionalData", "baseName": "additionalData", - "type": "AdditionalData" + "type": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices" }, { "name": "amount", diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index 191f727..08a804c 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -56,7 +56,7 @@ export class PaymentResponse { */ '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. + * 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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). * **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; diff --git a/src/typings/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts index 3031698..e1130a2 100644 --- a/src/typings/checkout/paymentSetupRequest.ts +++ b/src/typings/checkout/paymentSetupRequest.ts @@ -12,6 +12,7 @@ import { Address } from './address'; import { Amount } from './amount'; +import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices'; import { ApplicationInfo } from './applicationInfo'; import { Company } from './company'; import { Configuration } from './configuration'; @@ -20,25 +21,12 @@ 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; + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices; /** * 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). */ @@ -193,7 +181,7 @@ export class PaymentSetupRequest { */ '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. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ 'threeDSAuthenticationOnly'?: boolean; /** @@ -211,7 +199,7 @@ export class PaymentSetupRequest { { "name": "additionalData", "baseName": "additionalData", - "type": "AdditionalData" + "type": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices" }, { "name": "allowedPaymentMethods", diff --git a/src/typings/checkout/paymentVerificationResponse.ts b/src/typings/checkout/paymentVerificationResponse.ts index fe0b7bb..d3d2544 100644 --- a/src/typings/checkout/paymentVerificationResponse.ts +++ b/src/typings/checkout/paymentVerificationResponse.ts @@ -40,7 +40,7 @@ export class PaymentVerificationResponse { */ '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. + * 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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). * **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; diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index d4d0d1f..5ab5600 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -15,15 +15,15 @@ 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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ 'authenticationOnly'?: boolean; /** @@ -36,11 +36,11 @@ export class ThreeDS2RequestData { '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. + * 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/other-3ds-flows/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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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; /** @@ -77,11 +77,11 @@ export class ThreeDS2RequestData { */ '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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ 'threeDSRequestorName'?: string; /** diff --git a/src/typings/payments/accountInfo.ts b/src/typings/payments/accountInfo.ts index c5022cc..ec31ed4 100644 --- a/src/typings/payments/accountInfo.ts +++ b/src/typings/payments/accountInfo.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalData3DSecure.ts b/src/typings/payments/additionalData3DSecure.ts index a0156f9..c178b42 100644 --- a/src/typings/payments/additionalData3DSecure.ts +++ b/src/typings/payments/additionalData3DSecure.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com @@ -24,6 +24,10 @@ export class AdditionalData3DSecure { * In case of Secure+, this field must be set to **CUPSecurePlus**. */ 'mpiImplementationType'?: string; + /** + * Indicates the [exemption type](https://docs-admin.is.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + */ + 'scaExemption'?: string; static discriminator: string | undefined = undefined; @@ -42,6 +46,11 @@ export class AdditionalData3DSecure { "name": "mpiImplementationType", "baseName": "mpiImplementationType", "type": "string" + }, + { + "name": "scaExemption", + "baseName": "scaExemption", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payments/additionalDataAirline.ts b/src/typings/payments/additionalDataAirline.ts index ac9b38d..470be7b 100644 --- a/src/typings/payments/additionalDataAirline.ts +++ b/src/typings/payments/additionalDataAirline.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataCarRental.ts b/src/typings/payments/additionalDataCarRental.ts index 15b8451..80caa8d 100644 --- a/src/typings/payments/additionalDataCarRental.ts +++ b/src/typings/payments/additionalDataCarRental.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataCommon.ts b/src/typings/payments/additionalDataCommon.ts index 7784656..9de1c5a 100644 --- a/src/typings/payments/additionalDataCommon.ts +++ b/src/typings/payments/additionalDataCommon.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataLevel23.ts b/src/typings/payments/additionalDataLevel23.ts index 373aabc..04abd5d 100644 --- a/src/typings/payments/additionalDataLevel23.ts +++ b/src/typings/payments/additionalDataLevel23.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataLodging.ts b/src/typings/payments/additionalDataLodging.ts index 564fa0d..96ea473 100644 --- a/src/typings/payments/additionalDataLodging.ts +++ b/src/typings/payments/additionalDataLodging.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataModifications.ts b/src/typings/payments/additionalDataModifications.ts new file mode 100644 index 0000000..198fff9 --- /dev/null +++ b/src/typings/payments/additionalDataModifications.ts @@ -0,0 +1,33 @@ +/** + * 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/v51/authorise ``` + * + * 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 AdditionalDataModifications { + /** + * This is the installment option selected by the shopper. It is required only if specified by the user. + */ + 'installmentPaymentDataSelectedInstallmentOption'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataSelectedInstallmentOption", + "baseName": "installmentPaymentData.selectedInstallmentOption", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataModifications.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataOpenInvoice.ts b/src/typings/payments/additionalDataOpenInvoice.ts index 50f31d0..5bc4f43 100644 --- a/src/typings/payments/additionalDataOpenInvoice.ts +++ b/src/typings/payments/additionalDataOpenInvoice.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataRatepay.ts b/src/typings/payments/additionalDataRatepay.ts index c385ade..df0ae02 100644 --- a/src/typings/payments/additionalDataRatepay.ts +++ b/src/typings/payments/additionalDataRatepay.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataRetry.ts b/src/typings/payments/additionalDataRetry.ts index 494be1a..ac2def1 100644 --- a/src/typings/payments/additionalDataRetry.ts +++ b/src/typings/payments/additionalDataRetry.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataRisk.ts b/src/typings/payments/additionalDataRisk.ts index 9adca3c..26ce278 100644 --- a/src/typings/payments/additionalDataRisk.ts +++ b/src/typings/payments/additionalDataRisk.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataRiskStandalone.ts b/src/typings/payments/additionalDataRiskStandalone.ts index e892ba5..ed8046e 100644 --- a/src/typings/payments/additionalDataRiskStandalone.ts +++ b/src/typings/payments/additionalDataRiskStandalone.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com @@ -13,7 +13,7 @@ export class AdditionalDataRiskStandalone { /** - * Raw AVS result received from the acquirer, where available. Example: 7 + * Raw AVS result received from the acquirer, where available. Example: D */ 'avsResultRaw'?: string; /** diff --git a/src/typings/payments/additionalDataTemporaryServices.ts b/src/typings/payments/additionalDataTemporaryServices.ts index 781cebf..33d7f77 100644 --- a/src/typings/payments/additionalDataTemporaryServices.ts +++ b/src/typings/payments/additionalDataTemporaryServices.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/additionalDataWallets.ts b/src/typings/payments/additionalDataWallets.ts index 219f814..a0374ed 100644 --- a/src/typings/payments/additionalDataWallets.ts +++ b/src/typings/payments/additionalDataWallets.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/address.ts b/src/typings/payments/address.ts index 5317429..8f6940a 100644 --- a/src/typings/payments/address.ts +++ b/src/typings/payments/address.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com @@ -29,7 +29,7 @@ export class Address { */ 'postalCode': 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. + * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ 'stateOrProvince'?: string; /** diff --git a/src/typings/payments/amount.ts b/src/typings/payments/amount.ts index f58b68d..dfa7e7e 100644 --- a/src/typings/payments/amount.ts +++ b/src/typings/payments/amount.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/applicationInfo.ts b/src/typings/payments/applicationInfo.ts index 1eb2fb2..1cb8547 100644 --- a/src/typings/payments/applicationInfo.ts +++ b/src/typings/payments/applicationInfo.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/authenticationResultRequest.ts b/src/typings/payments/authenticationResultRequest.ts new file mode 100644 index 0000000..ab447ed --- /dev/null +++ b/src/typings/payments/authenticationResultRequest.ts @@ -0,0 +1,42 @@ +/** + * 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/v51/authorise ``` + * + * 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 AuthenticationResultRequest { + /** + * The merchant account identifier, with which the authentication was processed. + */ + 'merchantAccount': string; + /** + * The pspReference identifier for the transaction. + */ + 'pspReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AuthenticationResultRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/authenticationResultResponse.ts b/src/typings/payments/authenticationResultResponse.ts new file mode 100644 index 0000000..1cb9997 --- /dev/null +++ b/src/typings/payments/authenticationResultResponse.ts @@ -0,0 +1,38 @@ +/** + * 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/v51/authorise ``` + * + * 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 { ThreeDS1Result } from './threeDS1Result'; +import { ThreeDS2Result } from './threeDS2Result'; + +export class AuthenticationResultResponse { + 'threeDS1Result'?: ThreeDS1Result; + 'threeDS2Result'?: ThreeDS2Result; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDS1Result", + "baseName": "threeDS1Result", + "type": "ThreeDS1Result" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + } ]; + + static getAttributeTypeMap() { + return AuthenticationResultResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payments/bankAccount.ts b/src/typings/payments/bankAccount.ts index 3b8e163..31e602d 100644 --- a/src/typings/payments/bankAccount.ts +++ b/src/typings/payments/bankAccount.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/browserInfo.ts b/src/typings/payments/browserInfo.ts index 1a1b294..3dbd95f 100644 --- a/src/typings/payments/browserInfo.ts +++ b/src/typings/payments/browserInfo.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/card.ts b/src/typings/payments/card.ts index 8e8bbbf..1492e01 100644 --- a/src/typings/payments/card.ts +++ b/src/typings/payments/card.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/commonField.ts b/src/typings/payments/commonField.ts index 6dd7e0a..1d36454 100644 --- a/src/typings/payments/commonField.ts +++ b/src/typings/payments/commonField.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/deviceRenderOptions.ts b/src/typings/payments/deviceRenderOptions.ts index 51924ad..b67f32b 100644 --- a/src/typings/payments/deviceRenderOptions.ts +++ b/src/typings/payments/deviceRenderOptions.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/externalPlatform.ts b/src/typings/payments/externalPlatform.ts index efd3e3d..0a2db41 100644 --- a/src/typings/payments/externalPlatform.ts +++ b/src/typings/payments/externalPlatform.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/forexQuote.ts b/src/typings/payments/forexQuote.ts index 3ed514a..182d82f 100644 --- a/src/typings/payments/forexQuote.ts +++ b/src/typings/payments/forexQuote.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/fraudCheckResult.ts b/src/typings/payments/fraudCheckResult.ts index 0e22026..edb124b 100644 --- a/src/typings/payments/fraudCheckResult.ts +++ b/src/typings/payments/fraudCheckResult.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/fraudResult.ts b/src/typings/payments/fraudResult.ts index 287b9c4..b100e9b 100644 --- a/src/typings/payments/fraudResult.ts +++ b/src/typings/payments/fraudResult.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/installments.ts b/src/typings/payments/installments.ts index 071d601..afebcf1 100644 --- a/src/typings/payments/installments.ts +++ b/src/typings/payments/installments.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/merchantDevice.ts b/src/typings/payments/merchantDevice.ts index d69af1e..a9155a4 100644 --- a/src/typings/payments/merchantDevice.ts +++ b/src/typings/payments/merchantDevice.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/merchantRiskIndicator.ts b/src/typings/payments/merchantRiskIndicator.ts index 7cbc2e6..195d2e3 100644 --- a/src/typings/payments/merchantRiskIndicator.ts +++ b/src/typings/payments/merchantRiskIndicator.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/modificationRequest.ts b/src/typings/payments/modificationRequest.ts old mode 100755 new mode 100644 index 03b851f..22fb692 --- a/src/typings/payments/modificationRequest.ts +++ b/src/typings/payments/modificationRequest.ts @@ -1,53 +1,112 @@ /** - * 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 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/v51/authorise ``` * - * 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 { AnyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; import { Split } from './split'; import { ThreeDSecureData } from './threeDSecureData'; -import {ApplicationInfo} from "../applicationInfo"; +export class ModificationRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount'?: Amount; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference': string; + /** + * Optionally, you can specify your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * The details of how the payment should be split when distributing a payment to a Marketpay Marketplace and its Accounts. + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AnyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModificationRequest.attributeTypeMap; + } +} -export interface ModificationRequest { - /** - * This field contains additional data, which may be required for a particular modification 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 [ModificationRequest.additionalData](https://docs.adyen.com/api-reference/payments-api/modificationrequest/modificationrequest-additionaldata) section. - */ - additionalData?: any; - /** - * The merchant account that is used to process the payment. - */ - applicationInfo?: ApplicationInfo; - merchantAccount: string; - modificationAmount?: Amount; - mpiData?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - originalMerchantReference?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - originalReference: string; - /** - * Optionally, you can specify your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - reference?: string; - /** - * The details of how the payment should be split when distributing a payment to a Marketpay Marketplace and its Accounts. - */ - splits?: Split[]; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - tenderReference?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - uniqueTerminalId?: string; -} \ No newline at end of file diff --git a/src/typings/payments/modificationResult.ts b/src/typings/payments/modificationResult.ts old mode 100755 new mode 100644 index ae92076..7175f08 --- a/src/typings/payments/modificationResult.ts +++ b/src/typings/payments/modificationResult.ts @@ -1,35 +1,59 @@ /** - * 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 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/v51/authorise ``` * - * 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 ModificationResult { + +export class ModificationResult { /** - * This field contains additional data, which may be returned in a particular modification response. - */ - additionalData?: any; + * This field contains additional data, which may be returned in a particular modification response. + */ + 'additionalData'?: object; /** - * 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?: 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'?: string; /** - * Indicates if the modification request has been received for processing. - */ - response?: ModificationResult.ResponseEnum; + * Indicates if the modification request has been received for processing. + */ + 'response'?: ModificationResult.ResponseEnum; + + 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": "ModificationResult.ResponseEnum" + } ]; + + static getAttributeTypeMap() { + return ModificationResult.attributeTypeMap; + } } + export namespace ModificationResult { - export type ResponseEnum = '[capture-received]' | '[cancel-received]' | '[refund-received]' | '[cancelOrRefund-received]'; - export const ResponseEnum = { - CaptureReceived: '[capture-received]' as ResponseEnum, - CancelReceived: '[cancel-received]' as ResponseEnum, - RefundReceived: '[refund-received]' as ResponseEnum, - CancelOrRefundReceived: '[cancelOrRefund-received]' as ResponseEnum - }; -} \ No newline at end of file + export enum ResponseEnum { + CaptureReceived = '[capture-received]', + CancelReceived = '[cancel-received]', + RefundReceived = '[refund-received]', + CancelOrRefundReceived = '[cancelOrRefund-received]' + } +} diff --git a/src/typings/payments/name.ts b/src/typings/payments/name.ts index 938da52..085262e 100644 --- a/src/typings/payments/name.ts +++ b/src/typings/payments/name.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/paymentRequest.ts b/src/typings/payments/paymentRequest.ts index 9230d6f..317c798 100644 --- a/src/typings/payments/paymentRequest.ts +++ b/src/typings/payments/paymentRequest.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com @@ -13,54 +13,37 @@ import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; +import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; import { ApplicationInfo } from './applicationInfo'; +import { BankAccount } from './bankAccount'; import { BrowserInfo } from './browserInfo'; -import { Company } from './company'; +import { Card } from './card'; 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; + '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. */ - 'additionalData'?: AdditionalData; + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; 'amount': Amount; 'applicationInfo'?: ApplicationInfo; + 'bankAccount'?: BankAccount; '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; + 'card'?: Card; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ @@ -76,22 +59,10 @@ export class PaymentRequest { */ '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; @@ -101,10 +72,6 @@ export class PaymentRequest { '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; @@ -123,49 +90,34 @@ export class PaymentRequest { '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; - /** - * 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; + '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; /** - * 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. + * 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. */ - 'returnUrl': string; + 'selectedBrand'?: string; /** - * The maximum validity of the session. + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ - 'sessionValidity'?: string; + '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**. */ @@ -200,19 +152,23 @@ export class PaymentRequest { */ 'splits'?: Array; /** - * When true and `shopperReference` is provided, the payment details will be stored. + * The physical store, for which this payment is processed. */ - 'storePaymentMethod'?: boolean; + '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. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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; @@ -225,10 +181,15 @@ export class PaymentRequest { "baseName": "accountInfo", "type": "AccountInfo" }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, { "name": "additionalData", "baseName": "additionalData", - "type": "AdditionalData" + "type": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" }, { "name": "amount", @@ -240,6 +201,11 @@ export class PaymentRequest { "baseName": "applicationInfo", "type": "ApplicationInfo" }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccount" + }, { "name": "billingAddress", "baseName": "billingAddress", @@ -256,19 +222,9 @@ export class PaymentRequest { "type": "number" }, { - "name": "channel", - "baseName": "channel", - "type": "PaymentRequest.ChannelEnum" - }, - { - "name": "company", - "baseName": "company", - "type": "Company" - }, - { - "name": "countryCode", - "baseName": "countryCode", - "type": "string" + "name": "card", + "baseName": "card", + "type": "Card" }, { "name": "dateOfBirth", @@ -295,26 +251,11 @@ export class PaymentRequest { "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", @@ -330,11 +271,6 @@ export class PaymentRequest { "baseName": "installments", "type": "Installments" }, - { - "name": "lineItems", - "baseName": "lineItems", - "type": "Array" - }, { "name": "mcc", "baseName": "mcc", @@ -365,59 +301,44 @@ export class PaymentRequest { "baseName": "mpiData", "type": "ThreeDSecureData" }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, { "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": "recurring", + "baseName": "recurring", + "type": "Recurring" }, { "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", + "name": "selectedBrand", + "baseName": "selectedBrand", "type": "string" }, { - "name": "sessionValidity", - "baseName": "sessionValidity", + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", "type": "string" }, { @@ -466,9 +387,9 @@ export class PaymentRequest { "type": "Array" }, { - "name": "storePaymentMethod", - "baseName": "storePaymentMethod", - "type": "boolean" + "name": "store", + "baseName": "store", + "type": "string" }, { "name": "telephoneNumber", @@ -485,6 +406,11 @@ export class PaymentRequest { "baseName": "threeDSAuthenticationOnly", "type": "boolean" }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, { "name": "trustedShopper", "baseName": "trustedShopper", @@ -497,11 +423,6 @@ export class PaymentRequest { } export namespace PaymentRequest { - export enum ChannelEnum { - IOS = 'iOS', - Android = 'Android', - Web = 'Web' - } export enum EntityTypeEnum { NaturalPerson = 'NaturalPerson', CompanyName = 'CompanyName' diff --git a/src/typings/payments/paymentRequest3d.ts b/src/typings/payments/paymentRequest3d.ts old mode 100755 new mode 100644 index a75568d..17cf7a2 --- a/src/typings/payments/paymentRequest3d.ts +++ b/src/typings/payments/paymentRequest3d.ts @@ -1,16 +1,20 @@ /** - * 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 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/v51/authorise ``` * - * 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 { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; +import { ApplicationInfo } from './applicationInfo'; import { BrowserInfo } from './browserInfo'; import { ForexQuote } from './forexQuote'; import { Installments } from './installments'; @@ -20,153 +24,393 @@ import { Recurring } from './recurring'; import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; +export class PaymentRequest3d { + '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. + */ + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; + 'amount'?: Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * 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; + /** + * 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 payment session identifier returned by the card issuer. + */ + 'md': 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; + /** + * 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; + /** + * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + */ + 'paResponse': 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'?: PaymentRequest3d.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'?: PaymentRequest3d.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/other-3ds-flows/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 PaymentRequest3d { - 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#paymentrequestadditionaldata). - */ - additionalData?: any; - amount?: Amount; - billingAddress?: Address; - browserInfo?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; - /** - * 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; - /** - * 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 payment session identifier returned by the card issuer. - */ - md: 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; - /** - * 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; - /** - * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. - */ - paResponse: 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?: PaymentRequest3d.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?: PaymentRequest3d.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": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" + }, + { + "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": "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": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "md", + "baseName": "md", + "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": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "paResponse", + "baseName": "paResponse", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest3d.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": "PaymentRequest3d.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 PaymentRequest3d.attributeTypeMap; + } } + export namespace PaymentRequest3d { - 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 RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/payments/paymentRequest3ds2.ts b/src/typings/payments/paymentRequest3ds2.ts old mode 100755 new mode 100644 index 5f6c6bd..09b6922 --- a/src/typings/payments/paymentRequest3ds2.ts +++ b/src/typings/payments/paymentRequest3ds2.ts @@ -1,16 +1,20 @@ /** - * 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 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/v51/authorise ``` * - * 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 { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; +import { ApplicationInfo } from './applicationInfo'; import { BrowserInfo } from './browserInfo'; import { ForexQuote } from './forexQuote'; import { Installments } from './installments'; @@ -21,150 +25,390 @@ import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDS2Result } from './threeDS2Result'; +export class PaymentRequest3ds2 { + '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. + */ + 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * 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; + /** + * 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: 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; + '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'?: PaymentRequest3ds2.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'?: PaymentRequest3ds2.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; + 'threeDS2Result'?: ThreeDS2Result; + /** + * The ThreeDS2Token that was returned in the /authorise call. + */ + 'threeDS2Token'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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 PaymentRequest3ds2 { - 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#paymentrequestadditionaldata). - */ - additionalData?: any; - amount: Amount; - billingAddress?: Address; - browserInfo?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; - /** - * 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; - /** - * 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; - /** - * 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?: PaymentRequest3ds2.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?: PaymentRequest3ds2.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; - threeDS2Result?: ThreeDS2Result; - /** - * The ThreeDS2Token that was returned in the /authorise call. - */ - threeDS2Token?: string; - /** - * 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": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" + }, + { + "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": "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": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "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": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest3ds2.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": "PaymentRequest3ds2.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": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + }, + { + "name": "threeDS2Token", + "baseName": "threeDS2Token", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest3ds2.attributeTypeMap; + } } + export namespace PaymentRequest3ds2 { - 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 RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + POS = 'POS' + } +} diff --git a/src/typings/payments/paymentResult.ts b/src/typings/payments/paymentResult.ts old mode 100755 new mode 100644 index 97b73cf..eb7663d --- a/src/typings/payments/paymentResult.ts +++ b/src/typings/payments/paymentResult.ts @@ -1,69 +1,135 @@ /** - * 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 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/v51/authorise ``` * - * 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 { AnyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments } from './anyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments'; import { FraudResult } from './fraudResult'; +export class PaymentResult { + /** + * 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'?: AnyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments; + /** + * 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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). * **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'?: PaymentResult.ResultCodeEnum; -export interface PaymentResult { - /** - * 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/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. * **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?: PaymentResult.ResultCodeEnum; + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "AnyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments" + }, + { + "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": "PaymentResult.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentResult.attributeTypeMap; + } } + export namespace PaymentResult { - 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/payments/recurring.ts b/src/typings/payments/recurring.ts index b8ed9ed..a602773 100644 --- a/src/typings/payments/recurring.ts +++ b/src/typings/payments/recurring.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/responseAdditionalDataBillingAddress.ts b/src/typings/payments/responseAdditionalDataBillingAddress.ts new file mode 100644 index 0000000..f5d9eb7 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataBillingAddress.ts @@ -0,0 +1,78 @@ +/** + * 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/v51/authorise ``` + * + * 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 ResponseAdditionalDataBillingAddress { + /** + * The billing address city passed in the payment request. + */ + 'billingAddressCity'?: string; + /** + * The billing address country passed in the payment request. Example: NL + */ + 'billingAddressCountry'?: string; + /** + * The billing address house number or name passed in the payment request. + */ + 'billingAddressHouseNumberOrName'?: string; + /** + * The billing address postal code passed in the payment request. Example: 1011 DJ + */ + 'billingAddressPostalCode'?: string; + /** + * The billing address state or province passed in the payment request. Example: NH + */ + 'billingAddressStateOrProvince'?: string; + /** + * The billing address street passed in the payment request. + */ + 'billingAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddressCity", + "baseName": "billingAddress.city", + "type": "string" + }, + { + "name": "billingAddressCountry", + "baseName": "billingAddress.country", + "type": "string" + }, + { + "name": "billingAddressHouseNumberOrName", + "baseName": "billingAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "billingAddressPostalCode", + "baseName": "billingAddress.postalCode", + "type": "string" + }, + { + "name": "billingAddressStateOrProvince", + "baseName": "billingAddress.stateOrProvince", + "type": "string" + }, + { + "name": "billingAddressStreet", + "baseName": "billingAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataBillingAddress.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataCard.ts b/src/typings/payments/responseAdditionalDataCard.ts new file mode 100644 index 0000000..b287719 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataCard.ts @@ -0,0 +1,87 @@ +/** + * 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/v51/authorise ``` + * + * 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 ResponseAdditionalDataCard { + /** + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Example: 521234 + */ + 'cardBin'?: string; + /** + * The cardholder name passed in the payment request. + */ + 'cardHolderName'?: string; + /** + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + */ + 'cardIssuingBank'?: string; + /** + * The country where the card was issued. Example: US + */ + 'cardIssuingCountry'?: string; + /** + * The currency in which the card is issued, if this information is available. Example: USD + */ + 'cardIssuingCurrency'?: string; + /** + * The card payment method used for the transaction. Example: amex + */ + 'cardPaymentMethod'?: string; + /** + * The last four digits of a card number. > Returned only in case of a card payment. + */ + 'cardSummary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "string" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "string" + }, + { + "name": "cardIssuingBank", + "baseName": "cardIssuingBank", + "type": "string" + }, + { + "name": "cardIssuingCountry", + "baseName": "cardIssuingCountry", + "type": "string" + }, + { + "name": "cardIssuingCurrency", + "baseName": "cardIssuingCurrency", + "type": "string" + }, + { + "name": "cardPaymentMethod", + "baseName": "cardPaymentMethod", + "type": "string" + }, + { + "name": "cardSummary", + "baseName": "cardSummary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCard.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataCommon.ts b/src/typings/payments/responseAdditionalDataCommon.ts new file mode 100644 index 0000000..a58c6db --- /dev/null +++ b/src/typings/payments/responseAdditionalDataCommon.ts @@ -0,0 +1,258 @@ +/** + * 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/v51/authorise ``` + * + * 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 ResponseAdditionalDataCommon { + /** + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + */ + 'acquirerAccountCode'?: string; + /** + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + */ + 'acquirerCode'?: string; + /** + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + */ + 'acquirerReference'?: string; + /** + * The Adyen alias of the card. Example: H167852639363479 + */ + 'alias'?: string; + /** + * The type of the card alias. Example: Default + */ + 'aliasType'?: string; + /** + * 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. Example: 58747 + */ + 'authCode'?: string; + /** + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountCurrency'?: string; + /** + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountValue'?: string; + /** + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + */ + 'avsResult'?: string; + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 'avsResultRaw'?: string; + /** + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + */ + 'bic'?: string; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + */ + 'dsTransID'?: string; + /** + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + */ + 'eci'?: string; + /** + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + */ + 'expiryDate'?: string; + /** + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + */ + 'extraCostsCurrency'?: string; + /** + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + */ + 'extraCostsValue'?: string; + /** + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + */ + 'fraudCheckItemNrFraudCheckname'?: string; + /** + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional 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 \"Y\" or \"D\". + */ + 'fundsAvailability'?: string; + /** + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + */ + 'inferredRefusalReason'?: string; + /** + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + */ + 'issuerCountry'?: string; + /** + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + */ + 'networkTxReference'?: string; + /** + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + */ + 'ownerName'?: string; + /** + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + */ + 'paymentAccountReference'?: string; + /** + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + */ + 'paymentMethodVariant'?: 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) + */ + 'payoutEligible'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerAccountCode", + "baseName": "acquirerAccountCode", + "type": "string" + }, + { + "name": "acquirerCode", + "baseName": "acquirerCode", + "type": "string" + }, + { + "name": "acquirerReference", + "baseName": "acquirerReference", + "type": "string" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "authorisedAmountCurrency", + "baseName": "authorisedAmountCurrency", + "type": "string" + }, + { + "name": "authorisedAmountValue", + "baseName": "authorisedAmountValue", + "type": "string" + }, + { + "name": "avsResult", + "baseName": "avsResult", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "extraCostsCurrency", + "baseName": "extraCostsCurrency", + "type": "string" + }, + { + "name": "extraCostsValue", + "baseName": "extraCostsValue", + "type": "string" + }, + { + "name": "fraudCheckItemNrFraudCheckname", + "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", + "type": "string" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "inferredRefusalReason", + "baseName": "inferredRefusalReason", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "paymentAccountReference", + "baseName": "paymentAccountReference", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCommon.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataDeliveryAddress.ts b/src/typings/payments/responseAdditionalDataDeliveryAddress.ts new file mode 100644 index 0000000..92123d3 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataDeliveryAddress.ts @@ -0,0 +1,78 @@ +/** + * 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/v51/authorise ``` + * + * 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 ResponseAdditionalDataDeliveryAddress { + /** + * The delivery address city passed in the payment request. + */ + 'deliveryAddressCity'?: string; + /** + * The delivery address country passed in the payment request. Example: NL + */ + 'deliveryAddressCountry'?: string; + /** + * The delivery address house number or name passed in the payment request. + */ + 'deliveryAddressHouseNumberOrName'?: string; + /** + * The delivery address postal code passed in the payment request. Example: 1011 DJ + */ + 'deliveryAddressPostalCode'?: string; + /** + * The delivery address state or province passed in the payment request. Example: NH + */ + 'deliveryAddressStateOrProvince'?: string; + /** + * The delivery address street passed in the payment request. + */ + 'deliveryAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "deliveryAddressCity", + "baseName": "deliveryAddress.city", + "type": "string" + }, + { + "name": "deliveryAddressCountry", + "baseName": "deliveryAddress.country", + "type": "string" + }, + { + "name": "deliveryAddressHouseNumberOrName", + "baseName": "deliveryAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "deliveryAddressPostalCode", + "baseName": "deliveryAddress.postalCode", + "type": "string" + }, + { + "name": "deliveryAddressStateOrProvince", + "baseName": "deliveryAddress.stateOrProvince", + "type": "string" + }, + { + "name": "deliveryAddressStreet", + "baseName": "deliveryAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataDeliveryAddress.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataInstallments.ts b/src/typings/payments/responseAdditionalDataInstallments.ts new file mode 100644 index 0000000..92685d4 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataInstallments.ts @@ -0,0 +1,132 @@ +/** + * 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/v51/authorise ``` + * + * 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 ResponseAdditionalDataInstallments { + /** + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + */ + 'installmentsValue'?: string; + /** + * Type of installment. The value of `installmentType` should be **IssuerFinanced**. + */ + 'installmentPaymentDataInstallmentType'?: string; + /** + * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + */ + 'installmentPaymentDataPaymentOptions'?: string; + /** + * Total number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrNumberOfInstallments'?: string; + /** + * Interest rate for the installment period. + */ + 'installmentPaymentDataOptionItemNrInterestRate'?: string; + /** + * Installment fee amount in minor units. + */ + 'installmentPaymentDataOptionItemNrInstallmentFee'?: string; + /** + * Annual interest rate. + */ + 'installmentPaymentDataOptionItemNrAnnualPercentageRate'?: string; + /** + * First Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrFirstInstallmentAmount'?: string; + /** + * Subsequent Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrSubsequentInstallmentAmount'?: string; + /** + * Minimum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMinimumNumberOfInstallments'?: string; + /** + * Maximum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMaximumNumberOfInstallments'?: string; + /** + * Total amount in minor units. + */ + 'installmentPaymentDataOptionItemNrTotalAmountDue'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentsValue", + "baseName": "installments.value", + "type": "string" + }, + { + "name": "installmentPaymentDataInstallmentType", + "baseName": "installmentPaymentData.installmentType", + "type": "string" + }, + { + "name": "installmentPaymentDataPaymentOptions", + "baseName": "installmentPaymentData.paymentOptions", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInterestRate", + "baseName": "installmentPaymentData.option[itemNr].interestRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInstallmentFee", + "baseName": "installmentPaymentData.option[itemNr].installmentFee", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", + "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrTotalAmountDue", + "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataInstallments.attributeTypeMap; + } +} + diff --git a/src/typings/payments/sDKEphemPubKey.ts b/src/typings/payments/sDKEphemPubKey.ts index 44c697f..e10698a 100644 --- a/src/typings/payments/sDKEphemPubKey.ts +++ b/src/typings/payments/sDKEphemPubKey.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/shopperInteractionDevice.ts b/src/typings/payments/shopperInteractionDevice.ts index bebda32..613f6db 100644 --- a/src/typings/payments/shopperInteractionDevice.ts +++ b/src/typings/payments/shopperInteractionDevice.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/split.ts b/src/typings/payments/split.ts index 0d4ec0e..f81f8ef 100644 --- a/src/typings/payments/split.ts +++ b/src/typings/payments/split.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com @@ -27,7 +27,7 @@ export class Split { */ 'reference'?: string; /** - * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `Verification`. + * The type of this split. >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`. */ 'type': Split.TypeEnum; diff --git a/src/typings/payments/splitAmount.ts b/src/typings/payments/splitAmount.ts index d8d9472..1e7d857 100644 --- a/src/typings/payments/splitAmount.ts +++ b/src/typings/payments/splitAmount.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com diff --git a/src/typings/payments/threeDS1Result.ts b/src/typings/payments/threeDS1Result.ts new file mode 100644 index 0000000..ce56856 --- /dev/null +++ b/src/typings/payments/threeDS1Result.ts @@ -0,0 +1,78 @@ +/** + * 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/v51/authorise ``` + * + * 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 ThreeDS1Result { + /** + * The cardholder authentication value (base64 encoded). + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. + */ + 'cavvAlgorithm'?: string; + /** + * 3D Secure Electronic Commerce Indicator (ECI). + */ + 'eci'?: string; + /** + * The authentication response from the ACS. + */ + 'threeDAuthenticatedResponse'?: string; + /** + * Whether 3D Secure was offered or not. + */ + 'threeDOfferedResponse'?: string; + /** + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS1Result.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2RequestData.ts b/src/typings/payments/threeDS2RequestData.ts index d4d0d1f..2935317 100644 --- a/src/typings/payments/threeDS2RequestData.ts +++ b/src/typings/payments/threeDS2RequestData.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com @@ -15,15 +15,15 @@ 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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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. + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. */ 'authenticationOnly'?: boolean; /** @@ -36,11 +36,11 @@ export class ThreeDS2RequestData { '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. + * 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/other-3ds-flows/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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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; /** @@ -77,11 +77,11 @@ export class ThreeDS2RequestData { */ '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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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. + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ 'threeDSRequestorName'?: string; /** diff --git a/src/typings/payments/threeDS2Result.ts b/src/typings/payments/threeDS2Result.ts old mode 100755 new mode 100644 index c3080da..6a174a4 --- a/src/typings/payments/threeDS2Result.ts +++ b/src/typings/payments/threeDS2Result.ts @@ -1,42 +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 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/v51/authorise ``` * - * 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 ThreeDS2Result { + +export class ThreeDS2Result { /** - * The `authenticationValue` value as defined in the 3D Secure 2 specification. - */ - authenticationValue?: string; + * The `authenticationValue` value as defined in the 3D Secure 2 specification. + */ + 'authenticationValue'?: string; /** - * The `dsTransID` value as defined in the 3D Secure 2 specification. - */ - dsTransID?: string; + * The algorithm used by the ACS to calculate the authentication value, only for CartesBancaires integrations. + */ + 'cavvAlgorithm'?: string; /** - * The `eci` value as defined in the 3D Secure 2 specification. - */ - eci?: string; + * The `dsTransID` value as defined in the 3D Secure 2 specification. + */ + 'dsTransID'?: string; /** - * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - */ - threeDSServerTransID?: string; + * The `eci` value as defined in the 3D Secure 2 specification. + */ + 'eci'?: string; /** - * The `timestamp` value of the 3D Secure 2 authentication. - */ - timestamp?: string; + * The `messageVersion` value as defined in the 3D Secure 2 specification. + */ + 'messageVersion'?: string; /** - * The `transStatus` value as defined in the 3D Secure 2 specification. - */ - transStatus?: string; + * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + */ + 'threeDSServerTransID'?: string; /** - * The `transStatusReason` value as defined in the 3D Secure 2 specification. - */ - transStatusReason?: string; -} \ No newline at end of file + * The `timestamp` value of the 3D Secure 2 authentication. + */ + 'timestamp'?: string; + /** + * The `transStatus` value as defined in the 3D Secure 2 specification. + */ + 'transStatus'?: string; + /** + * The `transStatusReason` value as defined in the 3D Secure 2 specification. + */ + 'transStatusReason'?: string; + /** + * The `whiteListStatus` value as defined in the 3D Secure 2 specification. + */ + 'whiteListStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationValue", + "baseName": "authenticationValue", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "threeDSServerTransID", + "baseName": "threeDSServerTransID", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "string" + }, + { + "name": "transStatus", + "baseName": "transStatus", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2Result.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2ResultRequest.ts b/src/typings/payments/threeDS2ResultRequest.ts old mode 100755 new mode 100644 index 85c23b0..a27c2c8 --- a/src/typings/payments/threeDS2ResultRequest.ts +++ b/src/typings/payments/threeDS2ResultRequest.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 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/v51/authorise ``` * - * 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 ThreeDS2ResultRequest { + +export class ThreeDS2ResultRequest { /** - * 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 pspReference returned in the /authorise call. - */ - pspReference: string; -} \ No newline at end of file + * The pspReference returned in the /authorise call. + */ + 'pspReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2ResultRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2ResultResponse.ts b/src/typings/payments/threeDS2ResultResponse.ts old mode 100755 new mode 100644 index c0c7ecd..54f6b79 --- a/src/typings/payments/threeDS2ResultResponse.ts +++ b/src/typings/payments/threeDS2ResultResponse.ts @@ -1,16 +1,31 @@ /** - * 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 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/v51/authorise ``` * - * 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 { ThreeDS2Result } from './threeDS2Result'; + */ +import { ThreeDS2Result } from './threeDS2Result'; + +export class ThreeDS2ResultResponse { + 'threeDS2Result'?: ThreeDS2Result; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2ResultResponse.attributeTypeMap; + } +} -export interface ThreeDS2ResultResponse { - threeDS2Result?: ThreeDS2Result; -} \ No newline at end of file diff --git a/src/typings/payments/threeDSecureData.ts b/src/typings/payments/threeDSecureData.ts index bdf00d4..be2c3f1 100644 --- a/src/typings/payments/threeDSecureData.ts +++ b/src/typings/payments/threeDSecureData.ts @@ -1,6 +1,6 @@ /** - * 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 ``` + * 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/v51/authorise ``` * * The version of the OpenAPI document: 51 * Contact: support@adyen.com From 77d1175be1b99daec4651b9c690e6e18539ea61e Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Tue, 7 Jan 2020 15:17:54 +0100 Subject: [PATCH 50/53] Node API Library v2.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1e5a439..e3ddde6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "2.1.8", + "version": "2.2.0", "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", From 99edca9ad8bbecc98f5af3a4487fb1e90e4d4e5e Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Wed, 8 Jan 2020 10:27:41 +0100 Subject: [PATCH 51/53] Update package.json Co-Authored-By: Alessio Zampatti --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e3ddde6..76cf4a6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@adyen/api-library", "version": "2.2.0", - "description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.", + "description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.", "main": "dist/lib/src/index.js", "types": "dist/lib/src/index.d.ts", "module": "dist/lib-esm/src/index.js", From 4fbc6659773251fb2d727ec9b4b887f26e2a6533 Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Wed, 8 Jan 2020 12:10:03 +0100 Subject: [PATCH 52/53] use grouped type definitions (#210) --- jest.config.js | 4 + package.json | 2 +- src/__tests__/binLookup.spec.ts | 9 +- src/__tests__/checkout.spec.ts | 41 +- src/__tests__/checkoutUtility.spec.ts | 10 +- src/__tests__/hmacValidator.spec.ts | 6 +- src/__tests__/httpClient.spec.ts | 1 - src/__tests__/payout.spec.ts | 43 +- src/__tests__/recurring.spec.ts | 8 +- src/client.ts | 3 +- src/config.ts | 2 - src/constants/apiConstants.ts | 85 + src/{typings => }/constants/nexoConstants.ts | 8 +- src/helpers/getJsonResponse.ts | 7 +- .../httpClient/clientInterface.ts | 9 +- src/httpClient/httpURLConnectionClient.ts | 29 +- src/security/nexoCrypto.ts | 8 +- src/security/nexoDerivedKeyGenerator.ts | 12 +- src/services/binLookup.ts | 14 +- src/services/checkout.ts | 35 +- src/services/checkoutUtility.ts | 5 +- src/services/modification.ts | 54 +- src/services/payout.ts | 30 +- src/services/recurring.ts | 9 +- src/services/resource.ts | 5 +- src/services/terminalCloudAPI.ts | 2 +- src/typings/amount.ts | 22 + src/typings/apiError.ts | 21 + src/typings/applicationInfo.ts | 21 + src/typings/binLookup.ts | 341 ++ src/typings/binLookup/amount.ts | 42 - src/typings/binLookup/binDetail.ts | 33 - src/typings/binLookup/cardBin.ts | 114 - .../binLookup/costEstimateAssumptions.ts | 51 - src/typings/binLookup/costEstimateRequest.ts | 114 - src/typings/binLookup/costEstimateResponse.ts | 56 - src/typings/binLookup/dSPublicKeyDetail.ts | 51 - src/typings/binLookup/index.ts | 11 - src/typings/binLookup/merchantDetails.ts | 51 - src/typings/binLookup/recurring.ts | 80 - .../binLookup/threeDS2CardRangeDetail.ts | 69 - .../binLookup/threeDSAvailabilityRequest.ts | 78 - .../binLookup/threeDSAvailabilityResponse.ts | 69 - src/typings/checkout.ts | 3528 +++++++++++++++++ src/typings/checkout/accountInfo.ts | 235 -- .../checkout/additionalData3DSecure.ts | 60 - src/typings/checkout/additionalDataAirline.ts | 267 -- .../checkout/additionalDataCarRental.ts | 231 -- src/typings/checkout/additionalDataCommon.ts | 78 - src/typings/checkout/additionalDataLevel23.ts | 177 - src/typings/checkout/additionalDataLodging.ts | 177 - .../checkout/additionalDataOpenInvoice.ts | 123 - src/typings/checkout/additionalDataRatepay.ts | 96 - src/typings/checkout/additionalDataRetry.ts | 51 - src/typings/checkout/additionalDataRisk.ts | 384 -- .../checkout/additionalDataRiskStandalone.ts | 159 - .../additionalDataTemporaryServices.ts | 105 - src/typings/checkout/additionalDataWallets.ts | 78 - src/typings/checkout/address.ts | 78 - src/typings/checkout/amount.ts | 42 - src/typings/checkout/applicationInfo.ts | 64 - src/typings/checkout/avs.ts | 49 - src/typings/checkout/bankAccount.ts | 105 - src/typings/checkout/browserInfo.ts | 105 - src/typings/checkout/card.ts | 96 - .../checkout/checkoutPaymentsAction.ts | 225 -- src/typings/checkout/commonField.ts | 42 - src/typings/checkout/company.ts | 78 - src/typings/checkout/configuration.ts | 61 - .../checkout/createPaymentLinkRequest.ts | 152 - .../checkout/createPaymentLinkResponse.ts | 58 - src/typings/checkout/detailsRequest.ts | 51 - src/typings/checkout/deviceRenderOptions.ts | 56 - src/typings/checkout/externalPlatform.ts | 51 - src/typings/checkout/forexQuote.ts | 121 - src/typings/checkout/fraudCheckResult.ts | 51 - src/typings/checkout/fraudResult.ts | 43 - src/typings/checkout/index.ts | 45 - src/typings/checkout/inputDetail.ts | 107 - src/typings/checkout/installments.ts | 33 - src/typings/checkout/item.ts | 42 - src/typings/checkout/lineItem.ts | 104 - src/typings/checkout/merchantDevice.ts | 51 - src/typings/checkout/merchantRiskIndicator.ts | 120 - src/typings/checkout/name.ts | 67 - src/typings/checkout/paymentMethod.ts | 104 - src/typings/checkout/paymentMethodACH.ts | 42 - .../checkout/paymentMethodAmazonPay.ts | 42 - .../checkout/paymentMethodAndroidPay.ts | 42 - src/typings/checkout/paymentMethodApplePay.ts | 42 - src/typings/checkout/paymentMethodCard.ts | 78 - src/typings/checkout/paymentMethodDotpay.ts | 42 - .../paymentMethodDragonpayEBanking.ts | 42 - .../paymentMethodDragonpayOtcBanking.ts | 42 - .../paymentMethodDragonpayOtcNonBanking.ts | 42 - .../paymentMethodDragonpayOtcPhilippines.ts | 42 - src/typings/checkout/paymentMethodGiropay.ts | 42 - src/typings/checkout/paymentMethodGroup.ts | 51 - src/typings/checkout/paymentMethodIDeal.ts | 42 - .../paymentMethodLianLianPayEbankingCredit.ts | 42 - .../paymentMethodLianLianPayEbankingDebit.ts | 42 - ...mentMethodLianLianPayEbankingEnterprise.ts | 42 - .../paymentMethodMOLpayEBankingMalaysia.ts | 42 - .../paymentMethodMOLpayEBankingThailand.ts | 42 - .../paymentMethodMOLpayEBankingVietnam.ts | 42 - .../checkout/paymentMethodPayWithGoogle.ts | 60 - .../checkout/paymentMethodQIWIWallet.ts | 51 - .../checkout/paymentMethodSamsungpay.ts | 42 - .../checkout/paymentMethodSchemeGiftCard.ts | 114 - .../checkout/paymentMethodSepaDirectDebit.ts | 51 - src/typings/checkout/paymentMethodVipps.ts | 42 - src/typings/checkout/paymentMethodsGroup.ts | 51 - src/typings/checkout/paymentMethodsRequest.ts | 129 - .../checkout/paymentMethodsResponse.ts | 64 - src/typings/checkout/paymentRequest.ts | 508 --- src/typings/checkout/paymentResponse.ts | 151 - src/typings/checkout/paymentSetupRequest.ts | 466 --- src/typings/checkout/paymentSetupResponse.ts | 43 - .../checkout/paymentVerificationRequest.ts | 33 - .../checkout/paymentVerificationResponse.ts | 125 - src/typings/checkout/recurring.ts | 80 - src/typings/checkout/recurringDetail.ts | 120 - src/typings/checkout/redirect.ts | 57 - src/typings/checkout/sDKEphemPubKey.ts | 60 - src/typings/checkout/serviceError.ts | 42 - src/typings/checkout/shopperInput.ts | 68 - .../checkout/shopperInteractionDevice.ts | 51 - src/typings/checkout/split.ts | 77 - src/typings/checkout/splitAmount.ts | 42 - src/typings/checkout/storedDetails.ts | 47 - src/typings/checkout/storedPaymentMethod.ts | 114 - src/typings/checkout/subInputDetail.ts | 79 - src/typings/checkout/threeDS2RequestData.ts | 233 -- src/typings/checkout/threeDSecureData.ts | 114 - src/typings/checkoutUtility.ts | 46 + .../checkoutUtility/checkoutUtilityRequest.ts | 18 - .../checkoutUtilityResponse.ts | 20 - src/typings/checkoutUtility/index.ts | 4 - src/typings/constants/apiConstants.ts | 83 - src/typings/enums/environment.ts | 3 +- src/typings/enums/vatCategory.ts | 4 +- src/typings/marketPayAccount.ts | 1339 +++++++ src/typings/marketPayFund.ts | 615 +++ src/typings/marketPayHostedOnboardingPage.ts | 96 + .../marketPayNotificationConfiguration.ts | 249 ++ src/typings/marketPayNotifications.ts | 1804 +++++++++ src/typings/nexo.ts | 21 + src/typings/notification.ts | 21 + src/typings/payments.ts | 3162 +++++++++++++++ src/typings/payments/accountInfo.ts | 235 -- .../payments/additionalData3DSecure.ts | 60 - src/typings/payments/additionalDataAirline.ts | 267 -- .../payments/additionalDataCarRental.ts | 231 -- src/typings/payments/additionalDataCommon.ts | 78 - src/typings/payments/additionalDataLevel23.ts | 177 - src/typings/payments/additionalDataLodging.ts | 177 - .../payments/additionalDataModifications.ts | 33 - .../payments/additionalDataOpenInvoice.ts | 123 - src/typings/payments/additionalDataRatepay.ts | 96 - src/typings/payments/additionalDataRetry.ts | 51 - src/typings/payments/additionalDataRisk.ts | 384 -- .../payments/additionalDataRiskStandalone.ts | 159 - .../additionalDataTemporaryServices.ts | 105 - src/typings/payments/additionalDataWallets.ts | 78 - src/typings/payments/address.ts | 78 - src/typings/payments/amount.ts | 42 - src/typings/payments/applicationInfo.ts | 64 - .../payments/authenticationResultRequest.ts | 42 - .../payments/authenticationResultResponse.ts | 38 - src/typings/payments/avs.ts | 49 - src/typings/payments/bankAccount.ts | 105 - src/typings/payments/browserInfo.ts | 105 - src/typings/payments/card.ts | 96 - .../payments/checkoutPaymentsAction.ts | 225 -- src/typings/payments/commonField.ts | 42 - src/typings/payments/company.ts | 78 - src/typings/payments/configuration.ts | 61 - .../payments/createPaymentLinkRequest.ts | 152 - .../payments/createPaymentLinkResponse.ts | 58 - src/typings/payments/detailsRequest.ts | 51 - src/typings/payments/deviceRenderOptions.ts | 56 - src/typings/payments/externalPlatform.ts | 51 - src/typings/payments/forexQuote.ts | 121 - src/typings/payments/fraudCheckResult.ts | 51 - src/typings/payments/fraudResult.ts | 43 - src/typings/payments/index.ts | 28 - src/typings/payments/inputDetail.ts | 107 - src/typings/payments/installments.ts | 33 - src/typings/payments/item.ts | 42 - src/typings/payments/lineItem.ts | 104 - src/typings/payments/merchantDevice.ts | 51 - src/typings/payments/merchantRiskIndicator.ts | 120 - src/typings/payments/modificationRequest.ts | 112 - src/typings/payments/modificationResult.ts | 59 - src/typings/payments/name.ts | 67 - src/typings/payments/paymentMethod.ts | 104 - src/typings/payments/paymentMethodGroup.ts | 51 - src/typings/payments/paymentMethodsGroup.ts | 51 - src/typings/payments/paymentMethodsRequest.ts | 141 - .../payments/paymentMethodsResponse.ts | 64 - src/typings/payments/paymentRequest.ts | 441 --- src/typings/payments/paymentRequest3d.ts | 416 -- src/typings/payments/paymentRequest3ds2.ts | 414 -- src/typings/payments/paymentResponse.ts | 151 - src/typings/payments/paymentResult.ts | 135 - src/typings/payments/paymentSetupRequest.ts | 480 --- src/typings/payments/paymentSetupResponse.ts | 43 - .../payments/paymentVerificationRequest.ts | 33 - .../payments/paymentVerificationResponse.ts | 125 - src/typings/payments/recurring.ts | 80 - src/typings/payments/recurringDetail.ts | 120 - src/typings/payments/redirect.ts | 57 - .../responseAdditionalDataBillingAddress.ts | 78 - .../payments/responseAdditionalDataCard.ts | 87 - .../payments/responseAdditionalDataCommon.ts | 258 -- .../responseAdditionalDataDeliveryAddress.ts | 78 - .../responseAdditionalDataInstallments.ts | 132 - src/typings/payments/sDKEphemPubKey.ts | 60 - src/typings/payments/serviceError.ts | 42 - src/typings/payments/shopperInput.ts | 68 - .../payments/shopperInteractionDevice.ts | 51 - src/typings/payments/split.ts | 77 - src/typings/payments/splitAmount.ts | 42 - src/typings/payments/storedDetails.ts | 47 - src/typings/payments/storedPaymentMethod.ts | 114 - src/typings/payments/subInputDetail.ts | 79 - src/typings/payments/threeDS1Result.ts | 78 - src/typings/payments/threeDS2RequestData.ts | 233 -- src/typings/payments/threeDS2Result.ts | 114 - src/typings/payments/threeDS2ResultRequest.ts | 42 - .../payments/threeDS2ResultResponse.ts | 31 - src/typings/payments/threeDSecureData.ts | 114 - src/typings/payout/accountInfo.ts | 235 -- src/typings/payout/address.ts | 78 - src/typings/payout/amount.ts | 42 - src/typings/payout/applicationInfo.ts | 64 - src/typings/payout/bankAccount.ts | 105 - src/typings/payout/browserInfo.ts | 105 - src/typings/payout/card.ts | 96 - src/typings/payout/commonField.ts | 42 - src/typings/payout/deviceRenderOptions.ts | 56 - src/typings/payout/externalPlatform.ts | 51 - src/typings/payout/forexQuote.ts | 121 - src/typings/payout/fraudCheckResult.ts | 51 - src/typings/payout/fraudResult.ts | 43 - src/typings/payout/fundSource.ts | 72 - src/typings/payout/index.ts | 23 - src/typings/payout/installments.ts | 33 - src/typings/payout/merchantDevice.ts | 51 - src/typings/payout/merchantRiskIndicator.ts | 120 - src/typings/payout/modifyRequest.ts | 51 - src/typings/payout/modifyResponse.ts | 51 - src/typings/payout/name.ts | 67 - src/typings/payout/payoutRequest.ts | 447 --- src/typings/payout/payoutResponse.ts | 134 - src/typings/payout/recurring.ts | 80 - src/typings/payout/sDKEphemPubKey.ts | 60 - .../payout/shopperInteractionDevice.ts | 51 - src/typings/payout/split.ts | 77 - src/typings/payout/splitAmount.ts | 42 - .../payout/storeDetailAndSubmitRequest.ts | 180 - .../payout/storeDetailAndSubmitResponse.ts | 60 - src/typings/payout/storeDetailRequest.ts | 155 - src/typings/payout/storeDetailResponse.ts | 60 - src/typings/payout/submitRequest.ts | 159 - src/typings/payout/submitResponse.ts | 60 - src/typings/payout/threeDS2RequestData.ts | 233 -- src/typings/payout/threeDSecureData.ts | 114 - src/typings/payouts.ts | 1479 +++++++ src/typings/recurring.ts | 383 ++ src/typings/recurring/address.ts | 78 - src/typings/recurring/bankAccount.ts | 105 - src/typings/recurring/card.ts | 96 - src/typings/recurring/disableRequest.ts | 60 - src/typings/recurring/disableResult.ts | 33 - src/typings/recurring/index.ts | 10 - src/typings/recurring/name.ts | 67 - src/typings/recurring/recurring.ts | 80 - src/typings/recurring/recurringDetail.ts | 151 - .../recurring/recurringDetailsRequest.ts | 49 - .../recurring/recurringDetailsResult.ts | 61 - .../scheduleAccountUpdaterRequest.ts | 76 - .../recurring/scheduleAccountUpdaterResult.ts | 42 - src/typings/requestOptions.d.ts | 28 + src/typings/requestOptions.ts | 8 - src/typings/terminal.ts | 21 + src/utils/hmacValidator.ts | 7 +- yarn.lock | 8 +- 288 files changed, 13446 insertions(+), 23238 deletions(-) create mode 100644 src/constants/apiConstants.ts rename src/{typings => }/constants/nexoConstants.ts (88%) rename src/{typings => }/httpClient/clientInterface.ts (82%) create mode 100644 src/typings/binLookup.ts delete mode 100644 src/typings/binLookup/amount.ts delete mode 100644 src/typings/binLookup/binDetail.ts delete mode 100644 src/typings/binLookup/cardBin.ts delete mode 100644 src/typings/binLookup/costEstimateAssumptions.ts delete mode 100644 src/typings/binLookup/costEstimateRequest.ts delete mode 100644 src/typings/binLookup/costEstimateResponse.ts delete mode 100644 src/typings/binLookup/dSPublicKeyDetail.ts delete mode 100755 src/typings/binLookup/index.ts delete mode 100644 src/typings/binLookup/merchantDetails.ts delete mode 100644 src/typings/binLookup/recurring.ts delete mode 100644 src/typings/binLookup/threeDS2CardRangeDetail.ts delete mode 100644 src/typings/binLookup/threeDSAvailabilityRequest.ts delete mode 100644 src/typings/binLookup/threeDSAvailabilityResponse.ts create mode 100644 src/typings/checkout.ts delete mode 100644 src/typings/checkout/accountInfo.ts delete mode 100644 src/typings/checkout/additionalData3DSecure.ts delete mode 100644 src/typings/checkout/additionalDataAirline.ts delete mode 100644 src/typings/checkout/additionalDataCarRental.ts delete mode 100644 src/typings/checkout/additionalDataCommon.ts delete mode 100644 src/typings/checkout/additionalDataLevel23.ts delete mode 100644 src/typings/checkout/additionalDataLodging.ts delete mode 100644 src/typings/checkout/additionalDataOpenInvoice.ts delete mode 100644 src/typings/checkout/additionalDataRatepay.ts delete mode 100644 src/typings/checkout/additionalDataRetry.ts delete mode 100644 src/typings/checkout/additionalDataRisk.ts delete mode 100644 src/typings/checkout/additionalDataRiskStandalone.ts delete mode 100644 src/typings/checkout/additionalDataTemporaryServices.ts delete mode 100644 src/typings/checkout/additionalDataWallets.ts delete mode 100644 src/typings/checkout/address.ts delete mode 100644 src/typings/checkout/amount.ts delete mode 100644 src/typings/checkout/applicationInfo.ts delete mode 100644 src/typings/checkout/avs.ts delete mode 100644 src/typings/checkout/bankAccount.ts delete mode 100644 src/typings/checkout/browserInfo.ts delete mode 100644 src/typings/checkout/card.ts delete mode 100644 src/typings/checkout/checkoutPaymentsAction.ts delete mode 100644 src/typings/checkout/commonField.ts delete mode 100644 src/typings/checkout/company.ts delete mode 100644 src/typings/checkout/configuration.ts delete mode 100644 src/typings/checkout/createPaymentLinkRequest.ts delete mode 100644 src/typings/checkout/createPaymentLinkResponse.ts delete mode 100644 src/typings/checkout/detailsRequest.ts delete mode 100644 src/typings/checkout/deviceRenderOptions.ts delete mode 100644 src/typings/checkout/externalPlatform.ts delete mode 100644 src/typings/checkout/forexQuote.ts delete mode 100644 src/typings/checkout/fraudCheckResult.ts delete mode 100644 src/typings/checkout/fraudResult.ts delete mode 100755 src/typings/checkout/index.ts delete mode 100644 src/typings/checkout/inputDetail.ts delete mode 100644 src/typings/checkout/installments.ts delete mode 100644 src/typings/checkout/item.ts delete mode 100644 src/typings/checkout/lineItem.ts delete mode 100644 src/typings/checkout/merchantDevice.ts delete mode 100644 src/typings/checkout/merchantRiskIndicator.ts delete mode 100644 src/typings/checkout/name.ts delete mode 100644 src/typings/checkout/paymentMethod.ts delete mode 100644 src/typings/checkout/paymentMethodACH.ts delete mode 100644 src/typings/checkout/paymentMethodAmazonPay.ts delete mode 100644 src/typings/checkout/paymentMethodAndroidPay.ts delete mode 100644 src/typings/checkout/paymentMethodApplePay.ts delete mode 100644 src/typings/checkout/paymentMethodCard.ts delete mode 100644 src/typings/checkout/paymentMethodDotpay.ts delete mode 100644 src/typings/checkout/paymentMethodDragonpayEBanking.ts delete mode 100644 src/typings/checkout/paymentMethodDragonpayOtcBanking.ts delete mode 100644 src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts delete mode 100644 src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts delete mode 100644 src/typings/checkout/paymentMethodGiropay.ts delete mode 100644 src/typings/checkout/paymentMethodGroup.ts delete mode 100644 src/typings/checkout/paymentMethodIDeal.ts delete mode 100644 src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts delete mode 100644 src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts delete mode 100644 src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts delete mode 100644 src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts delete mode 100644 src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts delete mode 100644 src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts delete mode 100644 src/typings/checkout/paymentMethodPayWithGoogle.ts delete mode 100644 src/typings/checkout/paymentMethodQIWIWallet.ts delete mode 100644 src/typings/checkout/paymentMethodSamsungpay.ts delete mode 100644 src/typings/checkout/paymentMethodSchemeGiftCard.ts delete mode 100644 src/typings/checkout/paymentMethodSepaDirectDebit.ts delete mode 100644 src/typings/checkout/paymentMethodVipps.ts delete mode 100644 src/typings/checkout/paymentMethodsGroup.ts delete mode 100644 src/typings/checkout/paymentMethodsRequest.ts delete mode 100644 src/typings/checkout/paymentMethodsResponse.ts delete mode 100644 src/typings/checkout/paymentRequest.ts delete mode 100644 src/typings/checkout/paymentResponse.ts delete mode 100644 src/typings/checkout/paymentSetupRequest.ts delete mode 100644 src/typings/checkout/paymentSetupResponse.ts delete mode 100644 src/typings/checkout/paymentVerificationRequest.ts delete mode 100644 src/typings/checkout/paymentVerificationResponse.ts delete mode 100644 src/typings/checkout/recurring.ts delete mode 100644 src/typings/checkout/recurringDetail.ts delete mode 100644 src/typings/checkout/redirect.ts delete mode 100644 src/typings/checkout/sDKEphemPubKey.ts delete mode 100644 src/typings/checkout/serviceError.ts delete mode 100644 src/typings/checkout/shopperInput.ts delete mode 100644 src/typings/checkout/shopperInteractionDevice.ts delete mode 100644 src/typings/checkout/split.ts delete mode 100644 src/typings/checkout/splitAmount.ts delete mode 100644 src/typings/checkout/storedDetails.ts delete mode 100644 src/typings/checkout/storedPaymentMethod.ts delete mode 100644 src/typings/checkout/subInputDetail.ts delete mode 100644 src/typings/checkout/threeDS2RequestData.ts delete mode 100644 src/typings/checkout/threeDSecureData.ts create mode 100644 src/typings/checkoutUtility.ts delete mode 100755 src/typings/checkoutUtility/checkoutUtilityRequest.ts delete mode 100755 src/typings/checkoutUtility/checkoutUtilityResponse.ts delete mode 100755 src/typings/checkoutUtility/index.ts delete mode 100644 src/typings/constants/apiConstants.ts create mode 100644 src/typings/marketPayAccount.ts create mode 100644 src/typings/marketPayFund.ts create mode 100644 src/typings/marketPayHostedOnboardingPage.ts create mode 100644 src/typings/marketPayNotificationConfiguration.ts create mode 100644 src/typings/marketPayNotifications.ts create mode 100644 src/typings/payments.ts delete mode 100644 src/typings/payments/accountInfo.ts delete mode 100644 src/typings/payments/additionalData3DSecure.ts delete mode 100644 src/typings/payments/additionalDataAirline.ts delete mode 100644 src/typings/payments/additionalDataCarRental.ts delete mode 100644 src/typings/payments/additionalDataCommon.ts delete mode 100644 src/typings/payments/additionalDataLevel23.ts delete mode 100644 src/typings/payments/additionalDataLodging.ts delete mode 100644 src/typings/payments/additionalDataModifications.ts delete mode 100644 src/typings/payments/additionalDataOpenInvoice.ts delete mode 100644 src/typings/payments/additionalDataRatepay.ts delete mode 100644 src/typings/payments/additionalDataRetry.ts delete mode 100644 src/typings/payments/additionalDataRisk.ts delete mode 100644 src/typings/payments/additionalDataRiskStandalone.ts delete mode 100644 src/typings/payments/additionalDataTemporaryServices.ts delete mode 100644 src/typings/payments/additionalDataWallets.ts delete mode 100644 src/typings/payments/address.ts delete mode 100644 src/typings/payments/amount.ts delete mode 100644 src/typings/payments/applicationInfo.ts delete mode 100644 src/typings/payments/authenticationResultRequest.ts delete mode 100644 src/typings/payments/authenticationResultResponse.ts delete mode 100644 src/typings/payments/avs.ts delete mode 100644 src/typings/payments/bankAccount.ts delete mode 100644 src/typings/payments/browserInfo.ts delete mode 100644 src/typings/payments/card.ts delete mode 100644 src/typings/payments/checkoutPaymentsAction.ts delete mode 100644 src/typings/payments/commonField.ts delete mode 100644 src/typings/payments/company.ts delete mode 100644 src/typings/payments/configuration.ts delete mode 100644 src/typings/payments/createPaymentLinkRequest.ts delete mode 100644 src/typings/payments/createPaymentLinkResponse.ts delete mode 100644 src/typings/payments/detailsRequest.ts delete mode 100644 src/typings/payments/deviceRenderOptions.ts delete mode 100644 src/typings/payments/externalPlatform.ts delete mode 100644 src/typings/payments/forexQuote.ts delete mode 100644 src/typings/payments/fraudCheckResult.ts delete mode 100644 src/typings/payments/fraudResult.ts delete mode 100755 src/typings/payments/index.ts delete mode 100644 src/typings/payments/inputDetail.ts delete mode 100644 src/typings/payments/installments.ts delete mode 100644 src/typings/payments/item.ts delete mode 100644 src/typings/payments/lineItem.ts delete mode 100644 src/typings/payments/merchantDevice.ts delete mode 100644 src/typings/payments/merchantRiskIndicator.ts delete mode 100644 src/typings/payments/modificationRequest.ts delete mode 100644 src/typings/payments/modificationResult.ts delete mode 100644 src/typings/payments/name.ts delete mode 100644 src/typings/payments/paymentMethod.ts delete mode 100644 src/typings/payments/paymentMethodGroup.ts delete mode 100644 src/typings/payments/paymentMethodsGroup.ts delete mode 100644 src/typings/payments/paymentMethodsRequest.ts delete mode 100644 src/typings/payments/paymentMethodsResponse.ts delete mode 100644 src/typings/payments/paymentRequest.ts delete mode 100644 src/typings/payments/paymentRequest3d.ts delete mode 100644 src/typings/payments/paymentRequest3ds2.ts delete mode 100644 src/typings/payments/paymentResponse.ts delete mode 100644 src/typings/payments/paymentResult.ts delete mode 100644 src/typings/payments/paymentSetupRequest.ts delete mode 100644 src/typings/payments/paymentSetupResponse.ts delete mode 100644 src/typings/payments/paymentVerificationRequest.ts delete mode 100644 src/typings/payments/paymentVerificationResponse.ts delete mode 100644 src/typings/payments/recurring.ts delete mode 100644 src/typings/payments/recurringDetail.ts delete mode 100644 src/typings/payments/redirect.ts delete mode 100644 src/typings/payments/responseAdditionalDataBillingAddress.ts delete mode 100644 src/typings/payments/responseAdditionalDataCard.ts delete mode 100644 src/typings/payments/responseAdditionalDataCommon.ts delete mode 100644 src/typings/payments/responseAdditionalDataDeliveryAddress.ts delete mode 100644 src/typings/payments/responseAdditionalDataInstallments.ts delete mode 100644 src/typings/payments/sDKEphemPubKey.ts delete mode 100644 src/typings/payments/serviceError.ts delete mode 100644 src/typings/payments/shopperInput.ts delete mode 100644 src/typings/payments/shopperInteractionDevice.ts delete mode 100644 src/typings/payments/split.ts delete mode 100644 src/typings/payments/splitAmount.ts delete mode 100644 src/typings/payments/storedDetails.ts delete mode 100644 src/typings/payments/storedPaymentMethod.ts delete mode 100644 src/typings/payments/subInputDetail.ts delete mode 100644 src/typings/payments/threeDS1Result.ts delete mode 100644 src/typings/payments/threeDS2RequestData.ts delete mode 100644 src/typings/payments/threeDS2Result.ts delete mode 100644 src/typings/payments/threeDS2ResultRequest.ts delete mode 100644 src/typings/payments/threeDS2ResultResponse.ts delete mode 100644 src/typings/payments/threeDSecureData.ts delete mode 100644 src/typings/payout/accountInfo.ts delete mode 100644 src/typings/payout/address.ts delete mode 100644 src/typings/payout/amount.ts delete mode 100644 src/typings/payout/applicationInfo.ts delete mode 100644 src/typings/payout/bankAccount.ts delete mode 100644 src/typings/payout/browserInfo.ts delete mode 100644 src/typings/payout/card.ts delete mode 100644 src/typings/payout/commonField.ts delete mode 100644 src/typings/payout/deviceRenderOptions.ts delete mode 100644 src/typings/payout/externalPlatform.ts delete mode 100644 src/typings/payout/forexQuote.ts delete mode 100644 src/typings/payout/fraudCheckResult.ts delete mode 100644 src/typings/payout/fraudResult.ts delete mode 100644 src/typings/payout/fundSource.ts delete mode 100755 src/typings/payout/index.ts delete mode 100644 src/typings/payout/installments.ts delete mode 100644 src/typings/payout/merchantDevice.ts delete mode 100644 src/typings/payout/merchantRiskIndicator.ts delete mode 100644 src/typings/payout/modifyRequest.ts delete mode 100644 src/typings/payout/modifyResponse.ts delete mode 100644 src/typings/payout/name.ts delete mode 100644 src/typings/payout/payoutRequest.ts delete mode 100644 src/typings/payout/payoutResponse.ts delete mode 100644 src/typings/payout/recurring.ts delete mode 100644 src/typings/payout/sDKEphemPubKey.ts delete mode 100644 src/typings/payout/shopperInteractionDevice.ts delete mode 100644 src/typings/payout/split.ts delete mode 100644 src/typings/payout/splitAmount.ts delete mode 100644 src/typings/payout/storeDetailAndSubmitRequest.ts delete mode 100644 src/typings/payout/storeDetailAndSubmitResponse.ts delete mode 100644 src/typings/payout/storeDetailRequest.ts delete mode 100644 src/typings/payout/storeDetailResponse.ts delete mode 100644 src/typings/payout/submitRequest.ts delete mode 100644 src/typings/payout/submitResponse.ts delete mode 100644 src/typings/payout/threeDS2RequestData.ts delete mode 100644 src/typings/payout/threeDSecureData.ts create mode 100644 src/typings/payouts.ts create mode 100644 src/typings/recurring.ts delete mode 100644 src/typings/recurring/address.ts delete mode 100644 src/typings/recurring/bankAccount.ts delete mode 100644 src/typings/recurring/card.ts delete mode 100644 src/typings/recurring/disableRequest.ts delete mode 100644 src/typings/recurring/disableResult.ts delete mode 100755 src/typings/recurring/index.ts delete mode 100644 src/typings/recurring/name.ts delete mode 100644 src/typings/recurring/recurring.ts delete mode 100644 src/typings/recurring/recurringDetail.ts delete mode 100644 src/typings/recurring/recurringDetailsRequest.ts delete mode 100644 src/typings/recurring/recurringDetailsResult.ts delete mode 100644 src/typings/recurring/scheduleAccountUpdaterRequest.ts delete mode 100644 src/typings/recurring/scheduleAccountUpdaterResult.ts create mode 100644 src/typings/requestOptions.d.ts delete mode 100644 src/typings/requestOptions.ts diff --git a/jest.config.js b/jest.config.js index 905696a..081ee65 100644 --- a/jest.config.js +++ b/jest.config.js @@ -33,5 +33,9 @@ module.exports = { ], testMatch: [ "**/__tests__/*.ts" + ], + testPathIgnorePatterns : [ + "/node_modules", + "/dist" ] }; diff --git a/package.json b/package.json index 76cf4a6..cbc636d 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@babel/runtime": "7.7.7", "@types/jest": "24.0.25", "@types/nock": "10.0.3", - "@types/node": "11.15.4", + "@types/node": "13.1.4", "@typescript-eslint/eslint-plugin": "2.15.0", "@typescript-eslint/parser": "2.15.0", "babel-loader": "8.0.6", diff --git a/src/__tests__/binLookup.spec.ts b/src/__tests__/binLookup.spec.ts index 0834d7f..478d2ff 100644 --- a/src/__tests__/binLookup.spec.ts +++ b/src/__tests__/binLookup.spec.ts @@ -21,7 +21,6 @@ import nock from "nock"; import {createMockClientFromResponse} from "../__mocks__/base"; import BinLookup from "../services/binLookup"; -import {CostEstimateRequest, ThreeDSAvailabilityRequest} from "../typings/binLookup"; import Client from "../client"; import HttpClientException from "../httpClient/httpClientException"; @@ -54,7 +53,7 @@ beforeEach((): void => { describe("Bin Lookup", function (): void { it("should succeed on get 3ds availability", async function (): Promise { - const threeDSAvailabilityRequest: ThreeDSAvailabilityRequest = { + const threeDSAvailabilityRequest: IBinLookup.ThreeDSAvailabilityRequest = { merchantAccount: "MOCK_MERCHANT_ACCOUNT", brands: ["randomBrand"], cardNumber: "4111111111111111" @@ -79,7 +78,7 @@ describe("Bin Lookup", function (): void { .reply(403, JSON.stringify({status: 403, message: "fail", errorCode: "171"})); try { - await binLookup.get3dsAvailability(threeDSAvailabilityRequest as unknown as ThreeDSAvailabilityRequest); + await binLookup.get3dsAvailability(threeDSAvailabilityRequest as unknown as IBinLookup.ThreeDSAvailabilityRequest); fail("Expected request to fail"); } catch (e) { expect(e instanceof HttpClientException).toBeTruthy(); @@ -92,7 +91,7 @@ describe("Bin Lookup", function (): void { resultCode: "Unsupported", surchargeType: "ZERO" }; - const costEstimateRequest: CostEstimateRequest = { + const costEstimateRequest: IBinLookup.CostEstimateRequest = { amount: { currency: "EUR", value: 1000 }, assumptions: { assumeLevel3Data: true, @@ -105,7 +104,7 @@ describe("Bin Lookup", function (): void { mcc: "7411", enrolledIn3DSecure: true }, - shopperInteraction: CostEstimateRequest.ShopperInteractionEnum.Ecommerce + shopperInteraction: "Ecommerce" }; scope.post("/getCostEstimate") diff --git a/src/__tests__/checkout.spec.ts b/src/__tests__/checkout.spec.ts index f367d68..f8eb444 100644 --- a/src/__tests__/checkout.spec.ts +++ b/src/__tests__/checkout.spec.ts @@ -28,31 +28,20 @@ import {paymentSessionSuccess} from "../__mocks__/checkout/paymentSessionSucess" import {paymentsResultMultibancoSuccess} from "../__mocks__/checkout/paymentsResultMultibancoSuccess"; import {paymentsResultSuccess} from "../__mocks__/checkout/paymentsResultSucess"; import Client from "../client"; -import { TYPE_SCHEME } from "../typings/constants/apiConstants"; import Checkout from "../services/checkout"; -import { - Amount, - DetailsRequest, - PaymentMethodsRequest, - PaymentRequest, - PaymentResponse, - PaymentSetupRequest, PaymentVerificationRequest -} from "../typings/checkout"; import HttpClientException from "../httpClient/httpClientException"; -import {CreatePaymentLinkRequest} from "../typings/payments/createPaymentLinkRequest"; -import {CreatePaymentLinkResponse} from "../typings/checkout/createPaymentLinkResponse"; const merchantAccount = "MagentoMerchantTest"; const reference = "Your order number"; -function createAmountObject(currency: string, value: number): Amount { +function createAmountObject(currency: string, value: number): ICheckout.Amount { return { currency, value, }; } -function createPaymentsDetailsRequest(): DetailsRequest { +function createPaymentsDetailsRequest(): ICheckout.DetailsRequest { return { details: { MD: "mdValue", @@ -62,14 +51,14 @@ function createPaymentsDetailsRequest(): DetailsRequest { }; } -export function createPaymentsCheckoutRequest(): PaymentRequest { +export function createPaymentsCheckoutRequest(): ICheckout.PaymentRequest { const paymentMethodDetails = { cvc: "737", expiryMonth: "10", expiryYear: "2018", holderName: "John Smith", number: "4111111111111111", - type: TYPE_SCHEME, + type: "scheme", }; return { @@ -81,7 +70,7 @@ export function createPaymentsCheckoutRequest(): PaymentRequest { }; } -function createPaymentSessionRequest(): PaymentSetupRequest { +function createPaymentSessionRequest(): ICheckout.PaymentSetupRequest { return { amount: createAmountObject("USD", 1000), countryCode: "NL", @@ -106,8 +95,8 @@ describe("Checkout", (): void => { scope.post("/payments") .reply(200, paymentsSuccess); - const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest(); - const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest); + const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest(); + const paymentsResponse: ICheckout.PaymentResponse = await checkout.payments(paymentsRequest); expect(paymentsResponse.pspReference).toEqual("8535296650153317"); }); @@ -116,7 +105,7 @@ describe("Checkout", (): void => { scope.post("/payments") .reply(401); - const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest(); + const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest(); await checkout.payments(paymentsRequest); } catch (e) { expect(e instanceof HttpClientException).toBeTruthy(); @@ -124,7 +113,7 @@ describe("Checkout", (): void => { }); it("should have valid payment methods", async (): Promise => { - const paymentMethodsRequest: PaymentMethodsRequest = {merchantAccount: "MagentoMerchantTest"}; + const paymentMethodsRequest: ICheckout.PaymentMethodsRequest = {merchantAccount: "MagentoMerchantTest"}; scope.post("/paymentMethods") .reply(200, paymentMethodsSuccess); @@ -141,7 +130,7 @@ describe("Checkout", (): void => { it("should have valid payment link", async (): Promise => { const amount = createAmountObject("BRL", 1000); const expiresAt = "2019-12-17T10:05:29Z"; - const paymentLinkRequest: CreatePaymentLinkRequest = { + const paymentLinkRequest: ICheckout.CreatePaymentLinkRequest = { allowedPaymentMethods: ["scheme", "boletobancario"], amount, countryCode: "BR", @@ -169,7 +158,7 @@ describe("Checkout", (): void => { reference }; - const paymentLinkSuccess: CreatePaymentLinkResponse = { + const paymentLinkSuccess: ICheckout.CreatePaymentLinkResponse = { amount, expiresAt, reference, @@ -195,7 +184,7 @@ describe("Checkout", (): void => { scope.post("/paymentSession") .reply(200, paymentSessionSuccess); const checkout: Checkout = new Checkout(client); - const paymentSessionRequest: PaymentSetupRequest = createPaymentSessionRequest(); + const paymentSessionRequest: ICheckout.PaymentSetupRequest = createPaymentSessionRequest(); const paymentSessionResponse = await checkout.paymentSession(paymentSessionRequest); expect(paymentSessionResponse.paymentSession).not.toBeUndefined(); }); @@ -205,7 +194,7 @@ describe("Checkout", (): void => { scope.post("/payments/result") .reply(200, paymentsResultSuccess); const checkout = new Checkout(client); - const paymentResultRequest: PaymentVerificationRequest = { + const paymentResultRequest: ICheckout.PaymentVerificationRequest = { payload: "This is a test payload", }; const paymentResultResponse = await checkout.paymentResult(paymentResultRequest); @@ -229,8 +218,8 @@ describe("Checkout", (): void => { .reply(200, paymentsResultMultibancoSuccess); const checkout: Checkout = new Checkout(client); - const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest(); - const paymentsResponse: PaymentResponse = await checkout.payments(paymentsRequest); + const paymentsRequest: ICheckout.PaymentRequest = createPaymentsCheckoutRequest(); + const paymentsResponse: ICheckout.PaymentResponse = await checkout.payments(paymentsRequest); expect(paymentsResponse.pspReference).toEqual("8111111111111111"); if (paymentsResponse.additionalData) { diff --git a/src/__tests__/checkoutUtility.spec.ts b/src/__tests__/checkoutUtility.spec.ts index 34d55de..620a9a4 100644 --- a/src/__tests__/checkoutUtility.spec.ts +++ b/src/__tests__/checkoutUtility.spec.ts @@ -23,14 +23,13 @@ import nock from "nock"; import { createMockClientFromResponse } from "../__mocks__/base"; import {originKeysSuccess} from "../__mocks__/checkoutUtility/originkeysSuccess"; import CheckoutUtility from "../services/checkoutUtility"; -import {CheckoutUtilityRequest} from "../typings/checkoutUtility"; import Client from "../client"; describe("Checkout Utility", (): void => { it("should get origin keys", async (): Promise => { const client = createMockClientFromResponse(); const checkoutUtility = new CheckoutUtility(client); - const originKeysRequest: CheckoutUtilityRequest = { + const originKeysRequest: ICheckoutUtility.CheckoutUtilityRequest = { originDomains: ["www.test.com", "https://www.your-domain2.com"], }; @@ -39,7 +38,10 @@ describe("Checkout Utility", (): void => { .reply(200, originKeysSuccess); const originKeysResponse = await checkoutUtility.originKeys(originKeysRequest); - expect(originKeysResponse.originKeys["https://www.your-domain1.com"]) - .toEqual("pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI"); + if (originKeysResponse.originKeys) { + return expect(originKeysResponse.originKeys["https://www.your-domain1.com"]) + .toEqual("pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI"); + } + fail("Error: originKeysResponse.originKeys is empty"); }); }); diff --git a/src/__tests__/hmacValidator.spec.ts b/src/__tests__/hmacValidator.spec.ts index 004c8dd..a5db481 100644 --- a/src/__tests__/hmacValidator.spec.ts +++ b/src/__tests__/hmacValidator.spec.ts @@ -1,6 +1,6 @@ import HmacValidator from "../utils/hmacValidator"; import {NotificationRequestItem} from "../typings/notification"; -import {HMAC_SIGNATURE} from "../typings/constants/apiConstants"; +import {ApiConstants} from "../constants/apiConstants"; const key = "DFB1EB5485895CFA84146406857104ABB4CBCABDC8AAF103A624C8F6A3EAAB00"; const expectedSign = "ipnxGCaUZ4l8TUW75a71/ghd2Fe5ffvX0pV4TLTntIc="; @@ -15,7 +15,7 @@ const notificationRequestItem: NotificationRequestItem = { paymentMethod: "VISA", reason: "reason", success: "true", - additionalData: { [HMAC_SIGNATURE]: expectedSign }, + additionalData: { [ApiConstants.HMAC_SIGNATURE]: expectedSign }, }; describe("HMAC Validator", function (): void { @@ -52,7 +52,7 @@ describe("HMAC Validator", function (): void { it("should have invalid hmac", function (): void { const invalidNotification = { ...notificationRequestItem, - additionalData: { [HMAC_SIGNATURE]: "notValidSign" } + additionalData: { [ApiConstants.HMAC_SIGNATURE]: "notValidSign" } }; const hmacValidator = new HmacValidator(); const result = hmacValidator.validateHMAC(invalidNotification, key); diff --git a/src/__tests__/httpClient.spec.ts b/src/__tests__/httpClient.spec.ts index ded85bb..13377a6 100644 --- a/src/__tests__/httpClient.spec.ts +++ b/src/__tests__/httpClient.spec.ts @@ -4,7 +4,6 @@ import Checkout from "../services/checkout"; import ApiException from "../services/exception/apiException"; import {createPaymentsCheckoutRequest} from "./checkout.spec"; import HttpClientException from "../httpClient/httpClientException"; -import {Environment} from "../typings/enums/environment"; beforeEach((): void => { nock.cleanAll(); diff --git a/src/__tests__/payout.spec.ts b/src/__tests__/payout.spec.ts index e968774..b9cf340 100644 --- a/src/__tests__/payout.spec.ts +++ b/src/__tests__/payout.spec.ts @@ -1,16 +1,9 @@ import nock from "nock"; import {createMockClientFromResponse} from "../__mocks__/base"; import Payout from "../services/payout"; -import { - ModifyRequest, - PayoutRequest, - Recurring, - StoreDetailAndSubmitRequest, - StoreDetailRequest, - SubmitRequest -} from "../typings/payout"; -import {FRAUD_MANUAL_REVIEW, FRAUD_RESULT_TYPE} from "../typings/constants/apiConstants"; import Client from "../client"; +import StoreDetailRequest = IPayouts.StoreDetailRequest; +import {ApiConstants} from "../constants/apiConstants"; const storeDetailAndSubmitThirdParty = JSON.stringify({ additionalData: { @@ -38,37 +31,37 @@ const amountAndReference = { }; const defaultData = { - dateOfBirth: new Date(), + dateOfBirth: (new Date()).toISOString(), nationality: "NL", shopperEmail: "johndoe@email.com", shopperReference: "shopperReference", }; -const mockStoreDetailRequest = (merchantAccount: string): StoreDetailRequest => ({ +const mockStoreDetailRequest = (merchantAccount: string): IPayouts.StoreDetailRequest => ({ ...defaultData, - entityType: StoreDetailRequest.EntityTypeEnum.NaturalPerson, + entityType: "NaturalPerson", recurring: { - contract: Recurring.ContractEnum.ONECLICK + contract: "ONECLICK" }, merchantAccount, }); -const mockSubmitRequest = (merchantAccount: string): SubmitRequest => ({ +const mockSubmitRequest = (merchantAccount: string): IPayouts.SubmitRequest => ({ selectedRecurringDetailReference: "LATEST", recurring: { - contract: Recurring.ContractEnum.ONECLICK + contract: "ONECLICK" }, ...defaultData, ...amountAndReference, merchantAccount, }); -const mockStoreDetailAndSubmitRequest = (merchantAccount: string): StoreDetailAndSubmitRequest => ({ +const mockStoreDetailAndSubmitRequest = (merchantAccount: string): IPayouts.StoreDetailAndSubmitRequest => ({ ...amountAndReference, ...(mockStoreDetailRequest(merchantAccount)), }); -const mockPayoutRequest = (merchantAccount: string): PayoutRequest => ({ +const mockPayoutRequest = (merchantAccount: string): IPayouts.PayoutRequest => ({ ...amountAndReference, ...defaultData, card: { @@ -92,7 +85,7 @@ beforeEach((): void => { describe("PayoutTest", function (): void { it("should succeed on store detail and submit third party", async function (): Promise { - const request: StoreDetailAndSubmitRequest = mockStoreDetailAndSubmitRequest(`${client.config.merchantAccount}`); + const request: IPayouts.StoreDetailAndSubmitRequest = mockStoreDetailAndSubmitRequest(`${client.config.merchantAccount}`); scope.post("/storeDetail").reply(200, storeDetailAndSubmitThirdParty); const result = await payout.storeDetail(request); @@ -100,8 +93,8 @@ describe("PayoutTest", function (): void { expect(result.pspReference).toEqual("8515131751004933"); if (result.additionalData) { - expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN"); - expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false"); + expect(result.additionalData[ApiConstants.FRAUD_RESULT_TYPE]).toEqual("GREEN"); + expect(result.additionalData[ApiConstants.FRAUD_MANUAL_REVIEW]).toEqual("false"); } }); @@ -122,7 +115,7 @@ describe("PayoutTest", function (): void { response: "[payout-confirm-received]" }); - const request: ModifyRequest = { + const request: IPayouts.ModifyRequest = { merchantAccount: "MOCKED_MERCHANT_ACCOUNT", originalReference: "reference" }; @@ -135,15 +128,15 @@ describe("PayoutTest", function (): void { it("should succeed on submit third party", async function (): Promise { scope.post("/submitThirdParty").reply(200, storeDetailAndSubmitThirdParty); - const request: SubmitRequest = mockSubmitRequest("MOCKED_MERCHANT_ACC"); + const request: IPayouts.SubmitRequest = mockSubmitRequest("MOCKED_MERCHANT_ACC"); const result = await payout.submitThirdparty(request); expect(result.resultCode).toEqual("[payout-submit-received]"); expect(result.pspReference).toEqual("8515131751004933"); if (result.additionalData) { - expect(result.additionalData[FRAUD_RESULT_TYPE]).toEqual("GREEN"); - expect(result.additionalData[FRAUD_MANUAL_REVIEW]).toEqual("false"); + expect(result.additionalData[ApiConstants.FRAUD_RESULT_TYPE]).toEqual("GREEN"); + expect(result.additionalData[ApiConstants.FRAUD_MANUAL_REVIEW]).toEqual("false"); } }); @@ -153,7 +146,7 @@ describe("PayoutTest", function (): void { response: "[payout-confirm-received]" }); - const request: ModifyRequest = { + const request: IPayouts.ModifyRequest = { merchantAccount: "MOCKED_MERCHANT_ACC", originalReference: "reference" }; diff --git a/src/__tests__/recurring.spec.ts b/src/__tests__/recurring.spec.ts index 0c8c18f..09c5ec1 100644 --- a/src/__tests__/recurring.spec.ts +++ b/src/__tests__/recurring.spec.ts @@ -2,15 +2,13 @@ import nock from "nock"; 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 { RecurringDetailsRequest } from "../typings/recurring/recurringDetailsRequest"; import Client from "../client"; -const createRecurringDetailsRequest = (): RecurringDetailsRequest => { +const createRecurringDetailsRequest = (): IRecurring.RecurringDetailsRequest => { return { merchantAccount: "MerchantAccount", - recurring: { contract: RecurringType.ContractEnum.ONECLICK }, + recurring: { contract: "ONECLICK" }, shopperReference: "test-123", }; }; @@ -39,7 +37,7 @@ describe("Recurring", (): void => { scope.post("/disable") .reply(200, disableSuccess); - const request: DisableRequest = { + const request: IRecurring.DisableRequest = { merchantAccount: "MerchantAccount", recurringDetailReference: "reference", shopperReference: "test-123", diff --git a/src/client.ts b/src/client.ts index 9bded13..d3ae5c4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -20,10 +20,9 @@ */ import Config from "./config"; -import ClientInterface from "./typings/httpClient/clientInterface"; import HttpURLConnectionClient from "./httpClient/httpURLConnectionClient"; -import { Environment } from "./typings/enums/environment"; import {version} from "../package.json"; +import ClientInterface from "./httpClient/clientInterface"; type ClientParametersOverload = | { config: Config } diff --git a/src/config.ts b/src/config.ts index 2f02ba5..31210cc 100644 --- a/src/config.ts +++ b/src/config.ts @@ -18,8 +18,6 @@ * This file is open source and available under the MIT license. * See the LICENSE file for more info. */ -import { Environment } from "./typings/enums/environment"; - interface ConfigConstructor { username?: string; password?: string; diff --git a/src/constants/apiConstants.ts b/src/constants/apiConstants.ts new file mode 100644 index 0000000..4c3147e --- /dev/null +++ b/src/constants/apiConstants.ts @@ -0,0 +1,85 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + +export enum ApiConstants { + TRANSACTION_NOT_PERMITTED = "Transaction Not Permitted", + CVC_DECLINED = "CVC Declined", + RESTRICTED_CARD = "Restricted Card", + PAYMENT_DETAIL_NOT_FOUND = "803 PaymentDetail not found", + REFUSED = "Refused", + + REFUSAL_REASON_RAW = "refusalReasonRaw", + PAYMENT_METHOD = "paymentMethod", + EXPIRY_DATE = "expiryDate", + CARD_BIN = "cardBin", + CARD_HOLDER_NAME = "cardHolderName", + CARD_SUMMARY = "cardSummary", + THREE_D_OFFERERED = "threeDOffered", + THREE_D_AUTHENTICATED = "threeDAuthenticated", + AVS_RESULT = "avsResult", + PAYMENT_TOKEN = "payment.token", + FRAUD_RESULT_TYPE = "fraudResultType", + FRAUD_MANUAL_REVIEW = "fraudManualReview", + AUTH_CODE = "authCode", + + BOLETO_BARCODE_REFERENCE = "boletobancario.barCodeReference", + BOLETO_DATA = "boletobancario.data", + BOLETO_DUE_DATE = "boletobancario.dueDate", + BOLETO_URL = "boletobancario.url", + BOLETO_EXPIRATION_DATE = "boletobancario.expirationDate", + + MULTIBANCO_ENTITY = "comprafacil.entity", + MULTIBANCO_AMOUNT = "comprafacil.amount", + MULTIBANCO_DEADLINE = "comprafacil.deadline", + MULTIBANCO_REFERENCE = "comprafacil.reference", + + HMAC_SIGNATURE = "hmacSignature", + + JSON = "card.encrypted.json", + + BOLETO_SANTANDER = "boletobancario_santander", + + NUMBER = "number", + EXPIRY_MONTH = "expiryMonth", + EXPIRY_YEAR = "expiryYear", + CVC = "cvc", + ENCRYPTED_CARD_NUMBER = "encryptedCardNumber", + ENCRYPTED_EXPIRY_MONTH = "encryptedExpiryMonth", + ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear", + ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode", + METHOD_TYPE = "type", + HOLDER_NAME = "holderName", + RECURRING_DETAIL_REFERENCE = "recurringDetailReference", + STORE_DETAILS = "storeDetails", + + MD = "MD", + PAREQ = "PaReq", + + TYPE_SCHEME = "scheme", + + IDEMPOTENCY_KEY = "Idempotency-Key", + ACCEPT_CHARSET = "Accept-Charset", + USER_AGENT = "User-Agent", + METHOD_POST = "POST", + CONTENT_TYPE = "Content-Type", + API_KEY = "X-API-Key", + APPLICATION_JSON_TYPE = "application/json", +} diff --git a/src/typings/constants/nexoConstants.ts b/src/constants/nexoConstants.ts similarity index 88% rename from src/typings/constants/nexoConstants.ts rename to src/constants/nexoConstants.ts index 751f074..dc6d1a8 100644 --- a/src/typings/constants/nexoConstants.ts +++ b/src/constants/nexoConstants.ts @@ -19,6 +19,8 @@ * See the LICENSE file for more info. */ -export const NEXO_HMAC_KEY_LENGTH = 32; -export const NEXO_CIPHER_KEY_LENGTH = 32; -export const NEXO_IV_LENGTH = 16; +export enum NexoEnum { + HMAC_KEY_LENGTH = 32, + CIPHER_KEY_LENGTH = 32, + IV_LENGTH = 16 +} diff --git a/src/helpers/getJsonResponse.ts b/src/helpers/getJsonResponse.ts index 414f356..2f4f797 100644 --- a/src/helpers/getJsonResponse.ts +++ b/src/helpers/getJsonResponse.ts @@ -20,17 +20,16 @@ */ import Resource from "../services/resource"; -import { RequestOptions } from "../typings/requestOptions"; import HttpClientException from "../httpClient/httpClientException"; import ApiException from "../services/exception/apiException"; -async function getJsonResponse(resource: Resource, jsonRequest: T | string, requestOptions?: RequestOptions): Promise; -async function getJsonResponse(resource: Resource, jsonRequest: T | string, requestOptions?: RequestOptions): Promise; +async function getJsonResponse(resource: Resource, jsonRequest: T | string, requestOptions?: IRequest.Options): Promise; +async function getJsonResponse(resource: Resource, jsonRequest: T | string, requestOptions?: IRequest.Options): Promise; async function getJsonResponse( resource: Resource, jsonRequest: T | string, - requestOptions: RequestOptions = {}, + requestOptions: IRequest.Options = {}, ): Promise { const request = typeof jsonRequest === "string" ? jsonRequest : JSON.stringify(jsonRequest); const response = await resource.request(request, requestOptions); diff --git a/src/typings/httpClient/clientInterface.ts b/src/httpClient/clientInterface.ts similarity index 82% rename from src/typings/httpClient/clientInterface.ts rename to src/httpClient/clientInterface.ts index b7e1d51..9c226f2 100644 --- a/src/typings/httpClient/clientInterface.ts +++ b/src/httpClient/clientInterface.ts @@ -18,15 +18,14 @@ * This file is open source and available under the MIT license. * See the LICENSE file for more info. */ -import Config from "../../config"; -import { RequestOptions } from "../requestOptions"; import { AgentOptions } from "https"; -import HttpClientException from "../../httpClient/httpClientException"; -import ApiException from "../../services/exception/apiException"; +import HttpClientException from "./httpClientException"; +import ApiException from "../services/exception/apiException"; +import {Config} from "../index"; interface ClientInterface { request( - endpoint: string, json: string, config: Config, isApiKeyRequired: boolean, requestOptions?: RequestOptions, + endpoint: string, json: string, config: Config, isApiKeyRequired: boolean, requestOptions?: IRequest.Options, ): Promise; post(endpoint: string, postParameters: [string, string][], config: Config): Promise; proxy?: AgentOptions; diff --git a/src/httpClient/httpURLConnectionClient.ts b/src/httpClient/httpURLConnectionClient.ts index 4181af6..d9b04f9 100644 --- a/src/httpClient/httpURLConnectionClient.ts +++ b/src/httpClient/httpURLConnectionClient.ts @@ -27,21 +27,12 @@ import * as fs from "fs"; import {URL} from "url"; import Client from "../client"; import Config from "../config"; -import { - ACCEPT_CHARSET, - API_KEY, - APPLICATION_JSON_TYPE, - CONTENT_TYPE, - IDEMPOTENCY_KEY, - METHOD_POST, - USER_AGENT, -} from "../typings/constants/apiConstants"; -import { RequestOptions } from "../typings/requestOptions"; -import ClientInterface from "../typings/httpClient/clientInterface"; import HttpClientException from "./httpClientException"; import checkServerIdentity from "../helpers/checkServerIdentity"; import {ApiError} from "../typings/apiError"; import ApiException from "../services/exception/apiException"; +import ClientInterface from "./clientInterface"; +import {ApiConstants} from "../constants/apiConstants"; class HttpURLConnectionClient implements ClientInterface { private static CHARSET = "utf-8"; @@ -50,7 +41,7 @@ class HttpURLConnectionClient implements ClientInterface { public request( endpoint: string, json: string, config: Config, isApiRequired: boolean, - requestOptions: RequestOptions, + requestOptions: IRequest.Options, ): Promise { requestOptions.headers = {}; requestOptions.timeout = config.connectionTimeoutMillis; @@ -66,7 +57,7 @@ class HttpURLConnectionClient implements ClientInterface { } if (apiKey) { - requestOptions.headers[API_KEY] = apiKey; + requestOptions.headers[ApiConstants.API_KEY] = apiKey; } else { const authString = `${config.username}:${config.password}`; const authStringEnc = new Buffer(authString).toString("base64"); @@ -74,7 +65,7 @@ class HttpURLConnectionClient implements ClientInterface { requestOptions.headers.Authorization = `Basic ${authStringEnc}`; } - requestOptions.headers[CONTENT_TYPE] = APPLICATION_JSON_TYPE; + requestOptions.headers[ApiConstants.CONTENT_TYPE] = ApiConstants.APPLICATION_JSON_TYPE; const httpConnection: ClientRequest = this.createRequest(endpoint, requestOptions, config.applicationName); return this.doPostRequest(httpConnection, json); @@ -86,7 +77,7 @@ class HttpURLConnectionClient implements ClientInterface { return this.doPostRequest(connectionRequest, postQuery); } - private createRequest(endpoint: string, requestOptions: RequestOptions, applicationName?: string): ClientRequest { + private createRequest(endpoint: string, requestOptions: IRequest.Options, applicationName?: string): ClientRequest { if (!requestOptions.headers) { requestOptions.headers = {}; } @@ -98,7 +89,7 @@ class HttpURLConnectionClient implements ClientInterface { requestOptions.path = url.pathname; if (requestOptions && requestOptions.idempotencyKey) { - requestOptions.headers[IDEMPOTENCY_KEY] = requestOptions.idempotencyKey; + requestOptions.headers[ApiConstants.IDEMPOTENCY_KEY] = requestOptions.idempotencyKey; delete requestOptions.idempotencyKey; } @@ -110,9 +101,9 @@ class HttpURLConnectionClient implements ClientInterface { } requestOptions.headers["Cache-Control"] = "no-cache"; - requestOptions.method = METHOD_POST; - requestOptions.headers[ACCEPT_CHARSET] = HttpURLConnectionClient.CHARSET; - requestOptions.headers[USER_AGENT] = `${applicationName} ${Client.LIB_NAME}/${Client.LIB_VERSION}`; + requestOptions.method = ApiConstants.METHOD_POST; + requestOptions.headers[ApiConstants.ACCEPT_CHARSET] = HttpURLConnectionClient.CHARSET; + requestOptions.headers[ApiConstants.USER_AGENT] = `${applicationName} ${Client.LIB_NAME}/${Client.LIB_VERSION}`; return httpsRequest(requestOptions); } diff --git a/src/security/nexoCrypto.ts b/src/security/nexoCrypto.ts index 3a5b930..f94d1b1 100644 --- a/src/security/nexoCrypto.ts +++ b/src/security/nexoCrypto.ts @@ -21,7 +21,6 @@ import {Cipher, createCipheriv, createDecipheriv, createHmac, randomBytes} from "crypto"; import NexoCryptoException from "../services/exception/nexoCryptoException"; -import {NEXO_IV_LENGTH} from "../typings/constants/nexoConstants"; import { MessageHeader, NexoDerivedKey, @@ -31,6 +30,7 @@ import { } from "../typings/terminal"; import InvalidSecurityKeyException from "./exception/invalidSecurityKeyException"; import NexoDerivedKeyGenerator from "./nexoDerivedKeyGenerator"; +import {NexoEnum} from "../constants/nexoConstants"; enum Modes { ENCRYPT, @@ -91,8 +91,8 @@ class NexoCrypto { } private static crypt(bytes: Buffer, dk: NexoDerivedKey, ivNonce: Buffer, mode: Modes): Buffer { - const actualIV = Buffer.alloc(NEXO_IV_LENGTH); - for (let i = 0; i < NEXO_IV_LENGTH; i++) { + const actualIV = Buffer.alloc(NexoEnum.IV_LENGTH); + for (let i = 0; i < NexoEnum.IV_LENGTH; i++) { actualIV[i] = dk.iv[i] ^ ivNonce[i]; } @@ -111,7 +111,7 @@ class NexoCrypto { } private static generateRandomIvNonce(): Buffer { - return randomBytes(NEXO_IV_LENGTH); + return randomBytes(NexoEnum.IV_LENGTH); } private validateHmac(receivedHmac: Buffer, decryptedMessage: Buffer, derivedKey: NexoDerivedKey): void { diff --git a/src/security/nexoDerivedKeyGenerator.ts b/src/security/nexoDerivedKeyGenerator.ts index 5b4464c..44149d9 100644 --- a/src/security/nexoDerivedKeyGenerator.ts +++ b/src/security/nexoDerivedKeyGenerator.ts @@ -20,26 +20,26 @@ */ import {pbkdf2Sync} from "crypto"; -import {NEXO_CIPHER_KEY_LENGTH, NEXO_HMAC_KEY_LENGTH, NEXO_IV_LENGTH} from "../typings/constants/nexoConstants"; import { NexoDerivedKey } from "../typings/terminal"; +import {NexoEnum} from "../constants/nexoConstants"; class NexoDerivedKeyGenerator { public static deriveKeyMaterial(passphrase: string): NexoDerivedKey { const pass = Buffer.from(passphrase, "binary"); const salt = Buffer.from("AdyenNexoV1Salt", "binary"); const iterations = 4000; - const keylen = NEXO_CIPHER_KEY_LENGTH + NEXO_HMAC_KEY_LENGTH + NEXO_IV_LENGTH; + const keylen = NexoEnum.CIPHER_KEY_LENGTH + NexoEnum.HMAC_KEY_LENGTH + NexoEnum.IV_LENGTH; const key = pbkdf2Sync(pass, salt, iterations, keylen * 8, "sha1"); return NexoDerivedKeyGenerator.readKeyData(key); } private static readKeyData(key: Buffer): NexoDerivedKey { return { - cipherKey: key.slice(NEXO_HMAC_KEY_LENGTH, NEXO_HMAC_KEY_LENGTH + NEXO_CIPHER_KEY_LENGTH), - hmacKey: key.slice(0, NEXO_HMAC_KEY_LENGTH), + cipherKey: key.slice(NexoEnum.HMAC_KEY_LENGTH, NexoEnum.HMAC_KEY_LENGTH + NexoEnum.CIPHER_KEY_LENGTH), + hmacKey: key.slice(0, NexoEnum.HMAC_KEY_LENGTH), iv: key.slice( - NEXO_HMAC_KEY_LENGTH + NEXO_CIPHER_KEY_LENGTH, - NEXO_CIPHER_KEY_LENGTH + NEXO_HMAC_KEY_LENGTH + NEXO_IV_LENGTH, + NexoEnum.HMAC_KEY_LENGTH + NexoEnum.CIPHER_KEY_LENGTH, + NexoEnum.CIPHER_KEY_LENGTH + NexoEnum.HMAC_KEY_LENGTH + NexoEnum.IV_LENGTH, ), }; } diff --git a/src/services/binLookup.ts b/src/services/binLookup.ts index b59b36f..2546ff2 100644 --- a/src/services/binLookup.ts +++ b/src/services/binLookup.ts @@ -22,12 +22,6 @@ import ApiKeyAuthenticatedService from "../apiKeyAuthenticatedService"; import Client from "../client"; import GetCostEstimate from "./resource/binLookup/getCostEstimate"; import Get3dsAvailability from "./resource/binLookup/get3dsAvailability"; -import { - CostEstimateRequest, - CostEstimateResponse, - ThreeDSAvailabilityRequest, - ThreeDSAvailabilityResponse -} from "../typings/binLookup"; import getJsonResponse from "../helpers/getJsonResponse"; class BinLookup extends ApiKeyAuthenticatedService { @@ -40,15 +34,15 @@ class BinLookup extends ApiKeyAuthenticatedService { this._getCostEstimate = new GetCostEstimate(this); } - public get3dsAvailability(request: ThreeDSAvailabilityRequest): Promise { - return getJsonResponse( + public get3dsAvailability(request: IBinLookup.ThreeDSAvailabilityRequest): Promise { + return getJsonResponse( this._get3dsAvailability, request ); } - public getCostEstimate(request: CostEstimateRequest): Promise { - return getJsonResponse( + public getCostEstimate(request: IBinLookup.CostEstimateRequest): Promise { + return getJsonResponse( this._getCostEstimate, request ); diff --git a/src/services/checkout.ts b/src/services/checkout.ts index 6459cb8..b4b686d 100644 --- a/src/services/checkout.ts +++ b/src/services/checkout.ts @@ -22,11 +22,6 @@ import ApiKeyAuthenticatedService from "../apiKeyAuthenticatedService"; import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; -import { - DetailsRequest, PaymentMethodsRequest, PaymentMethodsResponse, PaymentRequest, PaymentResponse, PaymentSetupRequest, - PaymentSetupResponse, PaymentVerificationRequest, PaymentVerificationResponse, -} from "../typings/checkout"; -import { RequestOptions } from "../typings/requestOptions"; import PaymentMethods from "./resource/checkout/paymentMethods"; import Payments from "./resource/checkout/payments"; import PaymentsDetails from "./resource/checkout/paymentsDetails"; @@ -34,8 +29,6 @@ import PaymentSession from "./resource/checkout/paymentSession"; import PaymentsResult from "./resource/checkout/paymentsResult"; import PaymentLinks from "./resource/checkout/paymentLinks"; import setApplicationInfo from "../helpers/setApplicationInfo"; -import {CreatePaymentLinkResponse} from "../typings/checkout/createPaymentLinkResponse"; -import {CreatePaymentLinkRequest} from "../typings/checkout/createPaymentLinkRequest"; class Checkout extends ApiKeyAuthenticatedService { private readonly _payments: Payments; @@ -55,48 +48,48 @@ class Checkout extends ApiKeyAuthenticatedService { this._paymentLinks = new PaymentLinks(this); } - public payments(paymentsRequest: PaymentRequest, requestOptions?: RequestOptions): Promise { - return getJsonResponse( + public payments(paymentsRequest: ICheckout.PaymentRequest, requestOptions?: IRequest.Options): Promise { + return getJsonResponse( this._payments, setApplicationInfo(paymentsRequest), requestOptions, ); } - public paymentMethods(paymentMethodsRequest: PaymentMethodsRequest): Promise { - return getJsonResponse( + public paymentMethods(paymentMethodsRequest: ICheckout.PaymentMethodsRequest): Promise { + return getJsonResponse( this._paymentMethods, paymentMethodsRequest, ); } - public paymentLinks(paymentLinkRequest: CreatePaymentLinkRequest): Promise { - return getJsonResponse( + public paymentLinks(paymentLinkRequest: ICheckout.CreatePaymentLinkRequest): Promise { + return getJsonResponse( this._paymentLinks, paymentLinkRequest ); } - public paymentsDetails(paymentsDetailsRequest: DetailsRequest): Promise { - return getJsonResponse( + public paymentsDetails(paymentsDetailsRequest: ICheckout.DetailsRequest): Promise { + return getJsonResponse( this._paymentsDetails, paymentsDetailsRequest, ); } public paymentSession( - paymentSessionRequest: PaymentSetupRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + paymentSessionRequest: ICheckout.PaymentSetupRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._paymentSession, paymentSessionRequest, requestOptions, ); } - public paymentResult(paymentResultRequest: PaymentVerificationRequest): Promise { - return getJsonResponse( + public paymentResult(paymentResultRequest: ICheckout.PaymentVerificationRequest): Promise { + return getJsonResponse( this._paymentsResult, paymentResultRequest, ); diff --git a/src/services/checkoutUtility.ts b/src/services/checkoutUtility.ts index 3d46555..881a7ee 100644 --- a/src/services/checkoutUtility.ts +++ b/src/services/checkoutUtility.ts @@ -22,7 +22,6 @@ import ApiKeyAuthenticatedService from "../apiKeyAuthenticatedService"; import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; -import { CheckoutUtilityRequest, CheckoutUtilityResponse } from "../typings/checkoutUtility"; import OriginKeys from "./resource/checkoutUtility/originKeys"; class CheckoutUtility extends ApiKeyAuthenticatedService { @@ -33,8 +32,8 @@ class CheckoutUtility extends ApiKeyAuthenticatedService { this._originKeys = new OriginKeys(this); } - public originKeys(originKeysRequest: CheckoutUtilityRequest): Promise { - return getJsonResponse( + public originKeys(originKeysRequest: ICheckoutUtility.CheckoutUtilityRequest): Promise { + return getJsonResponse( this._originKeys, originKeysRequest, ); diff --git a/src/services/modification.ts b/src/services/modification.ts index 98af8aa..8ad69ad 100644 --- a/src/services/modification.ts +++ b/src/services/modification.ts @@ -21,8 +21,6 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; -import { ModificationRequest, ModificationResult } from "../typings/payments"; -import { RequestOptions } from "../typings/requestOptions"; import AdjustAuthorisation from "./resource/modification/adjustAuthorisation"; import Cancel from "./resource/modification/cancel"; import CancelOrRefund from "./resource/modification/cancelOrRefund"; @@ -30,6 +28,10 @@ import Capture from "./resource/modification/capture"; import Refund from "./resource/modification/refund"; import TechnicalCancel from "./resource/modification/technicalCancel"; import setApplicationInfo from "../helpers/setApplicationInfo"; +import {ApplicationInfo} from "../typings/applicationInfo"; + +interface AppInfo { applicationInfo?: ApplicationInfo } +type GenericRequest = T & AppInfo; class Modification extends Service { private readonly _cancelOrRefund: CancelOrRefund; @@ -50,10 +52,10 @@ class Modification extends Service { } public capture( - captureRequest: ModificationRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + captureRequest: GenericRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._capture, setApplicationInfo(captureRequest), requestOptions, @@ -61,10 +63,10 @@ class Modification extends Service { } public cancelOrRefund( - cancelOrRefundRequest: ModificationRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + cancelOrRefundRequest: GenericRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._cancelOrRefund, setApplicationInfo(cancelOrRefundRequest), requestOptions, @@ -72,10 +74,10 @@ class Modification extends Service { } public refund( - refundRequest: ModificationRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + refundRequest: GenericRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._refund, setApplicationInfo(refundRequest), requestOptions, @@ -83,10 +85,10 @@ class Modification extends Service { } public cancel( - cancelRequest: ModificationRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + cancelRequest: GenericRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._cancel, setApplicationInfo(cancelRequest), requestOptions, @@ -94,10 +96,10 @@ class Modification extends Service { } public technicalCancel( - technicalCancelRequest: ModificationRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + technicalCancelRequest: GenericRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._technicalCancel, setApplicationInfo(technicalCancelRequest), requestOptions, @@ -105,10 +107,10 @@ class Modification extends Service { } public adjustAuthorisation( - adjustAuthorisationRequest: ModificationRequest, - requestOptions?: RequestOptions, - ): Promise { - return getJsonResponse( + adjustAuthorisationRequest: GenericRequest, + requestOptions?: IRequest.Options, + ): Promise { + return getJsonResponse( this._adjustAuthorisation, setApplicationInfo(adjustAuthorisationRequest), requestOptions, diff --git a/src/services/payout.ts b/src/services/payout.ts index 8ea15f7..0b96d96 100644 --- a/src/services/payout.ts +++ b/src/services/payout.ts @@ -26,12 +26,6 @@ import SubmitThirdParty from "./resource/payout/submitThirdParty"; import ConfirmThirdParty from "./resource/payout/confirmThirdParty"; import PayoutResource from "./resource/payout/payout"; import StoreDetailAndSubmitThirdParty from "./resource/payout/storeDetailAndSubmitThirdParty"; -import { - ModifyRequest, - ModifyResponse, - StoreDetailAndSubmitRequest, - StoreDetailAndSubmitResponse, StoreDetailRequest, StoreDetailResponse, SubmitRequest, SubmitResponse, PayoutRequest, PayoutResponse -} from "../typings/payout"; import getJsonResponse from "../helpers/getJsonResponse"; class Payout extends Service { @@ -53,43 +47,43 @@ class Payout extends Service { this._payout = new PayoutResource(this); } - public storeDetailAndSubmitThirdParty(request: StoreDetailAndSubmitRequest): Promise { - return getJsonResponse( + public storeDetailAndSubmitThirdParty(request: IPayouts.StoreDetailAndSubmitRequest): Promise { + return getJsonResponse( this._storeDetailAndSubmitThirdParty, request ); } - public confirmThirdParty(request: ModifyRequest): Promise { - return getJsonResponse( + public confirmThirdParty(request: IPayouts.ModifyRequest): Promise { + return getJsonResponse( this._confirmThirdParty, request ); } - public declineThirdParty(request: ModifyRequest): Promise { - return getJsonResponse( + public declineThirdParty(request: IPayouts.ModifyRequest): Promise { + return getJsonResponse( this._declineThirdParty, request ); } - public storeDetail(request: StoreDetailRequest): Promise { - return getJsonResponse( + public storeDetail(request: IPayouts.StoreDetailRequest): Promise { + return getJsonResponse( this._storeDetail, request ); } - public submitThirdparty(request: SubmitRequest): Promise { - return getJsonResponse( + public submitThirdparty(request: IPayouts.SubmitRequest): Promise { + return getJsonResponse( this._submitThirdParty, request ); } - public payout(request: PayoutRequest): Promise { - return getJsonResponse( + public payout(request: IPayouts.PayoutRequest): Promise { + return getJsonResponse( this._payout, request ); diff --git a/src/services/recurring.ts b/src/services/recurring.ts index 0c1c5e9..3da7687 100644 --- a/src/services/recurring.ts +++ b/src/services/recurring.ts @@ -22,7 +22,6 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; -import { DisableRequest, DisableResult, RecurringDetailsRequest, RecurringDetailsResult } from "../typings/recurring"; import Disable from "./resource/recurring/disable"; import ListRecurringDetails from "./resource/recurring/listRecurringDetails"; @@ -36,15 +35,15 @@ class Recurring extends Service { this._disable = new Disable(this); } - public listRecurringDetails(request: RecurringDetailsRequest): Promise { - return getJsonResponse( + public listRecurringDetails(request: IRecurring.RecurringDetailsRequest): Promise { + return getJsonResponse( this._listRecurringDetails, request, ); } - public disable(request: DisableRequest): Promise { - return getJsonResponse( + public disable(request: IRecurring.DisableRequest): Promise { + return getJsonResponse( this._disable, request, ); diff --git a/src/services/resource.ts b/src/services/resource.ts index 9a3827b..3f1b191 100644 --- a/src/services/resource.ts +++ b/src/services/resource.ts @@ -20,11 +20,10 @@ */ import Config from "../config"; -import ClientInterface from "../typings/httpClient/clientInterface"; import Service from "../service"; -import { RequestOptions } from "../typings/requestOptions"; import HttpClientException from "../httpClient/httpClientException"; import ApiException from "./exception/apiException"; +import ClientInterface from "../httpClient/clientInterface"; abstract class Resource { protected endpoint: string; @@ -35,7 +34,7 @@ abstract class Resource { this.endpoint = endpoint; } - public request(json: string, requestOptions?: RequestOptions): Promise { + public request(json: string, requestOptions?: IRequest.Options): Promise { const clientInterface: ClientInterface = this.service.client.httpClient; const config: Config = this.service.client.config; diff --git a/src/services/terminalCloudAPI.ts b/src/services/terminalCloudAPI.ts index 0184565..1de484a 100644 --- a/src/services/terminalCloudAPI.ts +++ b/src/services/terminalCloudAPI.ts @@ -25,8 +25,8 @@ import getJsonResponse from "../helpers/getJsonResponse"; import {Convert, TerminalApiRequest, TerminalApiResponse} from "../typings/terminal"; import Async from "./resource/terminal/cloud/async"; import Sync from "./resource/terminal/cloud/sync"; -import {ApplicationInfo} from "../typings/applicationInfo"; import mergeDeep from "../utils/mergeDeep"; +import {ApplicationInfo} from "../typings/applicationInfo"; class TerminalCloudAPI extends ApiKeyAuthenticatedService { private readonly terminalApiAsync: Async; diff --git a/src/typings/amount.ts b/src/typings/amount.ts index 2a5a301..cde2075 100644 --- a/src/typings/amount.ts +++ b/src/typings/amount.ts @@ -1,3 +1,25 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + export interface Amount { currency: string; value: number; diff --git a/src/typings/apiError.ts b/src/typings/apiError.ts index 7011721..efaff1f 100644 --- a/src/typings/apiError.ts +++ b/src/typings/apiError.ts @@ -1,3 +1,24 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + // Generated using typescript-generator version 2.14.505 on 2019-06-04 08:51:10. export interface ApiError { diff --git a/src/typings/applicationInfo.ts b/src/typings/applicationInfo.ts index 5df98ee..49a8757 100644 --- a/src/typings/applicationInfo.ts +++ b/src/typings/applicationInfo.ts @@ -1,3 +1,24 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + // Generated using typescript-generator version 2.14.505 on 2019-06-11 10:28:22. import Client from "../client"; diff --git a/src/typings/binLookup.ts b/src/typings/binLookup.ts new file mode 100644 index 0000000..0ec4d63 --- /dev/null +++ b/src/typings/binLookup.ts @@ -0,0 +1,341 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of BinLookup: v50 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IBinLookup { + export interface Amount { + /** + * 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; // int64 + } + export interface BinDetail { + /** + * The country where the card was issued. + */ + issuerCountry?: string; + } + export interface CardBin { + /** + * 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; + /** + * 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; + /** + * The issuing bank of the card. + */ + issuingBank?: string; + /** + * The country where the card was issued from. + */ + issuingCountry?: string; + /** + * The currency of the card. + */ + issuingCurrency?: 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; + /** + * The last four digits of the card number. + */ + summary?: string; + } + export interface CostEstimateAssumptions { + /** + * 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 not zero, the number of installments. + */ + installments?: number; // int32 + } + export interface CostEstimateRequest { + /** + * The transaction amount used as a base for the cost estimation. + */ + amount: IBinLookup.Amount; + /** + * Assumptions made for the expected characteristics of the transaction, for which the charges are being estimated. + */ + assumptions?: IBinLookup.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; + /** + * Additional data for merchants who don't use Adyen as the payment authorisation gateway. + */ + merchantDetails?: IBinLookup.MerchantDetails; + /** + * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/checkout/tokenization). + */ + recurring?: IBinLookup.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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 CostEstimateResponse { + /** + * Card BIN details. + */ + cardBin?: IBinLookup.CardBin; + /** + * The estimated cost (scheme fee + interchange) in the settlement currency. If the settlement currency cannot be determined, the fee in EUR is returned. + */ + costEstimateAmount?: IBinLookup.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; + } + export interface DSPublicKeyDetail { + /** + * Card brand. + */ + brand?: 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; // byte + } + export interface 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; + /** + * 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; + } + namespace Post { + export type RequestBody = IBinLookup.CostEstimateRequest; + namespace Responses { + export type $200 = IBinLookup.CostEstimateResponse; + } + } + export interface 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-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?: "ONECLICK" | "RECURRING" | "PAYOUT"; + /** + * A descriptive name for this detail. + */ + recurringDetailName?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + recurringExpiry?: string; // date-time + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + recurringFrequency?: string; + /** + * The name of the token service. + */ + tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; + } + export interface ThreeDS2CardRangeDetail { + /** + * Card brand. + */ + brandCode?: string; + /** + * BIN end range. + */ + endRange?: string; + /** + * BIN start range. + */ + startRange?: 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; + } + export interface 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/paymentrequest/paymentrequest-additionaldata). + */ + additionalData?: { + }; + /** + * List of brands. + */ + brands: string[]; + /** + * Card number or BIN. + */ + cardNumber?: string; + /** + * The merchant account identifier. + */ + merchantAccount: 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; + } + export interface ThreeDSAvailabilityResponse { + /** + * Bin Group Details + */ + binDetails?: IBinLookup.BinDetail; + /** + * List of Directory Server (DS) public keys. + */ + dsPublicKeys?: IBinLookup.DSPublicKeyDetail[]; + /** + * Indicator if 3D Secure 1 is supported. + */ + threeDS1Supported?: boolean; + /** + * List of brand and card range pairs. + */ + threeDS2CardRangeDetails?: IBinLookup.ThreeDS2CardRangeDetail[]; + /** + * Indicator if 3D Secure 2 is supported. + */ + threeDS2supported?: boolean; + } +} diff --git a/src/typings/binLookup/amount.ts b/src/typings/binLookup/amount.ts deleted file mode 100644 index 160bfc9..0000000 --- a/src/typings/binLookup/amount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 Amount { - /** - * 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; - - 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/binDetail.ts b/src/typings/binLookup/binDetail.ts deleted file mode 100644 index afeb39c..0000000 --- a/src/typings/binLookup/binDetail.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 BinDetail { - /** - * The country where the card was issued. - */ - 'issuerCountry'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "issuerCountry", - "baseName": "issuerCountry", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BinDetail.attributeTypeMap; - } -} - diff --git a/src/typings/binLookup/cardBin.ts b/src/typings/binLookup/cardBin.ts deleted file mode 100644 index 46fe167..0000000 --- a/src/typings/binLookup/cardBin.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 CardBin { - /** - * 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; - /** - * 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; - /** - * The issuing bank of the card. - */ - 'issuingBank'?: string; - /** - * The country where the card was issued from. - */ - 'issuingCountry'?: string; - /** - * The currency of the card. - */ - 'issuingCurrency'?: 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; - /** - * 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 deleted file mode 100644 index 6bb1133..0000000 --- a/src/typings/binLookup/costEstimateAssumptions.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 CostEstimateAssumptions { - /** - * 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 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 deleted file mode 100644 index 459fd89..0000000 --- a/src/typings/binLookup/costEstimateRequest.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 { 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; - - 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 enum ShopperInteractionEnum { - Ecommerce = 'Ecommerce', - ContAuth = 'ContAuth', - Moto = 'Moto', - POS = 'POS' - } -} diff --git a/src/typings/binLookup/costEstimateResponse.ts b/src/typings/binLookup/costEstimateResponse.ts deleted file mode 100644 index 992d7d0..0000000 --- a/src/typings/binLookup/costEstimateResponse.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 { 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; - } -} - diff --git a/src/typings/binLookup/dSPublicKeyDetail.ts b/src/typings/binLookup/dSPublicKeyDetail.ts deleted file mode 100644 index 0ab196d..0000000 --- a/src/typings/binLookup/dSPublicKeyDetail.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 DSPublicKeyDetail { - /** - * Card brand. - */ - 'brand'?: 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; - - 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/index.ts b/src/typings/binLookup/index.ts deleted file mode 100755 index 2a15be9..0000000 --- a/src/typings/binLookup/index.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from './amount'; -export * from './cardBin'; -export * from './costEstimateAssumptions'; -export * from './costEstimateRequest'; -export * from './costEstimateResponse'; -export * from './dSPublicKeyDetail'; -export * from './merchantDetails'; -export * from './recurring'; -export * from './threeDS2CardRangeDetail'; -export * from './threeDSAvailabilityRequest'; -export * from './threeDSAvailabilityResponse'; diff --git a/src/typings/binLookup/merchantDetails.ts b/src/typings/binLookup/merchantDetails.ts deleted file mode 100644 index 66280c0..0000000 --- a/src/typings/binLookup/merchantDetails.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 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; - /** - * 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; - - 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 deleted file mode 100644 index d5fb5b6..0000000 --- a/src/typings/binLookup/recurring.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 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-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; - /** - * 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 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 deleted file mode 100644 index d0d453a..0000000 --- a/src/typings/binLookup/threeDS2CardRangeDetail.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 ThreeDS2CardRangeDetail { - /** - * Card brand. - */ - 'brandCode'?: string; - /** - * BIN end range. - */ - 'endRange'?: string; - /** - * BIN start range. - */ - 'startRange'?: 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; - - 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 deleted file mode 100644 index 067c9cf..0000000 --- a/src/typings/binLookup/threeDSAvailabilityRequest.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 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/paymentrequest/paymentrequest-additionaldata). - */ - 'additionalData'?: object; - /** - * List of brands. - */ - 'brands': Array; - /** - * Card number or BIN. - */ - 'cardNumber'?: string; - /** - * The merchant account identifier. - */ - 'merchantAccount': 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; - - 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 deleted file mode 100644 index 6a54f9d..0000000 --- a/src/typings/binLookup/threeDSAvailabilityResponse.ts +++ /dev/null @@ -1,69 +0,0 @@ -/** - * 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. - * - * The version of the OpenAPI document: 50 - * 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 { 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; - } -} - diff --git a/src/typings/checkout.ts b/src/typings/checkout.ts new file mode 100644 index 0000000..dd9c504 --- /dev/null +++ b/src/typings/checkout.ts @@ -0,0 +1,3528 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of Checkout: v51 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace ICheckout { + export interface 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?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Date when the shopper's account was last changed. + */ + accountChangeDate?: string; // date-time + /** + * Indicator for the length of time since the shopper's account was last updated. + * Allowed values: + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + accountChangeIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Date when the shopper's account was created. + */ + accountCreationDate?: string; // date-time + /** + * Indicates the type of account. For example, for a multi-account card product. + * Allowed values: + * * notApplicable + * * credit + * * debit + */ + accountType?: "notApplicable" | "credit" | "debit"; + /** + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + addCardAttemptsDay?: number; // int32 + /** + * Date the selected delivery address was first used. + */ + deliveryAddressUsageDate?: string; // date-time + /** + * Indicator for the length of time since this delivery address was first used. + * Allowed values: + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + deliveryAddressUsageIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * 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?: string; // date-time + /** + * Indicator when the shopper has changed their password. + * Allowed values: + * * notApplicable + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + passwordChangeIndicator?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + pastTransactionsDay?: number; // int32 + /** + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + pastTransactionsYear?: number; // int32 + /** + * Date this payment method was added to the shopper's account. + */ + paymentAccountAge?: string; // date-time + /** + * 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?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Number of successful purchases in the last six months. + */ + purchasesLast6Months?: number; // int32 + /** + * Whether suspicious activity was recorded on this account. + */ + suspiciousActivity?: boolean; + /** + * Shopper's work phone number (including the country code). + */ + workPhone?: string; + } + export interface 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; + /** + * Indicates the [exemption type](https://docs-admin.is.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: + * * **lowValue** + * * **secureCorporate** + * * **trustedBeneficiary** + * * **transactionRiskAnalysis** + */ + scaExemption?: string; + } + export interface AdditionalDataAirline { + /** + * Passenger name, initials, and a title. + * * Format: last name + first name or initials + title. + * * Example: *FLYER / MARY MS*. + * * minLength: 1 + * * maxLength: 49 + */ + "airline.passenger_name"?: 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 + */ + "airline.computerized_reservation_system"?: 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 + */ + "airline.airline_code"?: string; + /** + * The ticket's unique identifier. + * * minLength: 1 + * * maxLength: 150 + */ + "airline.ticket_number"?: 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 + */ + "airline.flight_date"?: string; + /** + * Reference number; alphanumeric. + * * minLength: 0 + * * maxLength: 20 + */ + "airline.customer_reference_number"?: string; + /** + * Address of the place/agency that issued the ticket. + * * minLength: 0 + * * maxLength: 16 + */ + "airline.ticket_issue_address"?: 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 + */ + "airline.airline_designator_code"?: string; + /** + * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. + * * minLength: 1 + * * maxLength: 8 + */ + "airline.travel_agency_code"?: string; + /** + * The name of the travel agency. + * * minLength: 1 + * * maxLength: 25 + */ + "airline.travel_agency_name"?: string; + /** + * 2-letter agency plan identifier; alphabetical. + * * minLength: 2 + * * maxLength: 2 + */ + "airline.agency_plan_name"?: string; + /** + * Reference number for the invoice, issued by the agency. + * * minLength: 1 + * * maxLength: 6 + */ + "airline.agency_invoice_number"?: 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 + */ + "airline.boarding_fee"?: 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 + */ + "airline.leg.depart_airport"?: string; + /** + * The flight identifier. + * * minLength: 1 + * * maxLength: 5 + */ + "airline.leg.flight_number"?: 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 + */ + "airline.leg.carrier_code"?: string; + /** + * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. + * * minLength: 1 + * * maxLength: 7 + */ + "airline.leg.fare_base_code"?: 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 + */ + "airline.leg.class_of_travel"?: 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 + */ + "airline.leg.stop_over_code"?: 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 + */ + "airline.leg.destination_code"?: 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 + */ + "airline.leg.date_of_travel"?: 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 + */ + "airline.leg.depart_tax"?: string; + /** + * Passenger first name/given name. + * > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + "airline.passenger.first_name"?: string; + /** + * Passenger last name/family name. + * > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + "airline.passenger.last_name"?: 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 + */ + "airline.passenger.traveller_type"?: string; + /** + * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the '+' and '-' signs. + * * minLength: 3 + * * maxLength: 30 + */ + "airline.passenger.telephone_number"?: string; + /** + * Date of birth of the passenger. + * + * Date format: `yyyy-MM-dd` + * * minLength: 10 + * * maxLength: 10 + */ + "airline.passenger.date_of_birth"?: string; + } + export interface AdditionalDataCarRental { + /** + * The rental agreement number associated with this car rental. + * * Format: Alphanumeric + * * maxLength: 14 + */ + "carRental.rentalAgreementNumber"?: string; + /** + * The name of the person renting the car. + * * Format: Alphanumeric + * * maxLength: 26 + */ + "carRental.renterName"?: string; + /** + * The city where the car must be returned. + * * Format: Alphanumeric + * * maxLength: 18 + */ + "carRental.returnCity"?: string; + /** + * The state or province where the car must be returned. + * * Format: Alphanumeric + * * maxLength: 3 + */ + "carRental.returnStateProvince"?: string; + /** + * The country where the car must be returned. + * * Format: Alphanumeric + * * maxLength: 2 + */ + "carRental.returnCountry"?: string; + /** + * Agency code, phone number, or address abbreviation + * * Format: Alphanumeric + * * maxLength: 10 + */ + "carRental.returnLocationId"?: string; + /** + * The last date to return the car by. + * * Date format: `yyyyMMdd` + */ + "carRental.returnDate"?: string; + /** + * Pick-up date. + * * Date format: `yyyyMMdd` + */ + "carRental.checkOutDate"?: string; + /** + * The customer service phone number of the car rental company. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "carRental.customerServiceTollFreeNumber"?: string; + /** + * Daily rental rate. + * * Format: Alphanumeric + * * maxLength: 12 + */ + "carRental.rate"?: string; + /** + * Specifies whether the given rate is applied daily or weekly. + * * D - Daily rate. + * * W - Weekly rate. + */ + "carRental.rateIndicator"?: string; + /** + * The location from which the car is rented. + * * Format: Alphanumeric + * * maxLength: 18 + */ + "carRental.locationCity"?: string; + /** + * Pick-up date. + * * Date format: `yyyyMMdd` + */ + "carRental.locationStateProvince"?: string; + /** + * The customer service phone number of the car rental company. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "carRental.locationCountry"?: string; + /** + * Daily rental rate. + * * Format: Alphanumeric + * * maxLength: 12 + */ + "carRental.rentalClassId"?: string; + /** + * Specifies whether the given rate is applied daily or weekly. + * * D - Daily rate. + * * W - Weekly rate. + */ + "carRental.daysRented"?: 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 + */ + "carRental.taxExemptIndicator"?: 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 + */ + "travelEntertainmentAuthData.market"?: string; + /** + * Number of nights. This should be included in the auth message. + * * Format: Numeric + * * maxLength: 2 + */ + "travelEntertainmentAuthData.duration"?: string; + /** + * Any fuel charges associated with the rental. + * * Format: Numeric + * * maxLength: 12 + */ + "carRental.fuelCharges"?: string; + /** + * Any insurance charges associated with the rental. + * * Format: Numeric + * * maxLength: 12 + */ + "carRental.insuranceCharges"?: string; + /** + * Indicates if the customer was a "no-show" (neither keeps nor cancels their booking). + * * 0 - Not applicable. + * * 1 - Customer was a no show. + */ + "carRental.noShowIndicator"?: string; + /** + * Charge associated with not returning a vehicle to the original rental location. + */ + "carRental.oneWayDropOffCharges"?: string; + } + export interface 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; + } + export interface AdditionalDataLevel23 { + /** + * Customer code, if supplied by a customer. + * Encoding: ASCII. + * Max length: 25 characters. + * > Required for Level 2 and Level 3 data. + */ + "enhancedSchemeData.customerReference"?: 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. + */ + "enhancedSchemeData.totalTaxAmount"?: number; + /** + * Shipping amount, in minor units. + * + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.freightAmount"?: number; + /** + * Duty amount, in minor units. + * + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.dutyAmount"?: number; + /** + * The postal code of a destination address. + * + * Encoding: ASCII. + * Max length: 10 characters. + * > Required for American Express. + */ + "enhancedSchemeData.destinationPostalCode"?: string; + /** + * Destination state or province code. + * + * Encoding: ASCII.Max length: 3 characters. + */ + "enhancedSchemeData.destinationStateProvinceCode"?: string; + /** + * The postal code of a "ship-from" address. + * + * Encoding: ASCII. + * Max length: 10 characters. + */ + "enhancedSchemeData.shipFromPostalCode"?: string; + /** + * Destination country code. + * + * Encoding: ASCII. + * Max length: 3 characters. + */ + "enhancedSchemeData.destinationCountryCode"?: string; + /** + * Order date. + * * Format: `ddMMyy` + * + * Encoding: ASCII. + * Max length: 6 characters. + */ + "enhancedSchemeData.orderDate"?: string; + /** + * Item commodity code. + * Encoding: ASCII. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"?: string; + /** + * Item description. + * Encoding: ASCII. + * Max length: 26 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].description"?: string; + /** + * Product code. + * Encoding: ASCII. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].productCode"?: string; + /** + * Quantity, specified as an integer value. + * Value must be greater than 0. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].quantity"?: number; + /** + * Item unit of measurement. + * Encoding: ASCII. + * Max length: 3 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"?: string; + /** + * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"?: number; + /** + * Discount amount, in minor units. + * + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"?: number; + /** + * Total amount, in minor units. + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"?: number; + } + export interface AdditionalDataLodging { + /** + * The toll free phone number for the hotel/lodgings. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "lodging.customerServiceTollFreeNumber"?: string; + /** + * The arrival date. + * * Date format: `yyyyMMdd` + */ + "lodging.checkInDate"?: string; + /** + * The departure date. + * * Date format: `yyyyMMdd` + */ + "lodging.checkOutDate"?: string; + /** + * Card acceptor’s internal invoice or billing ID reference number. + * * Format: Alphanumeric + * * maxLength: 25 + */ + "lodging.folioNumber"?: string; + /** + * Identifies specific lodging property location by its local phone number. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "lodging.propertyPhoneNumber"?: string; + /** + * The rate of the room. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.room1.rate"?: string; + /** + * The total amount of tax to be paid. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.room1.tax"?: string; + /** + * Total number of nights the room will be rented. + * * Format: Numeric + * * maxLength: 4 + */ + "lodging.room1.numberOfNights"?: 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 + */ + "lodging.fireSafetyActIndicator"?: 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 + */ + "travelEntertainmentAuthData.market"?: string; + /** + * Number of nights. This should be included in the auth message. + * * Format: Numeric + * * maxLength: 2 + */ + "travelEntertainmentAuthData.duration"?: string; + /** + * The folio cash advances. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.folioCashAdvances"?: string; + /** + * Any charges for food and beverages associated with the booking. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.foodBeverageCharges"?: 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 + */ + "lodging.noShowIndicator"?: string; + /** + * Prepaid expenses for the booking. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.prepaidExpenses"?: string; + /** + * Total tax amount. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.totalTax"?: string; + /** + * Total room tax amount. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.totalRoomTax"?: string; + } + export interface 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. + */ + "openinvoicedata.numberOfLines"?: 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. + */ + "openinvoicedata.merchantData"?: string; + /** + * Required for the Klarna account, identifying an installment plan. Include Klarna’s `pclassid` for the installment plan. + */ + "openinvoicedata.installmentConfigurationKey"?: string; + /** + * The three-character ISO currency code. + */ + "openinvoicedata.line[itemNr].currencyCode"?: string; + /** + * A text description of the product the invoice line refers to. + */ + "openinvoicedata.line[itemNr].description"?: string; + /** + * The price for one item in the invoice line, represented in minor units. + * + * The due amount for the item, VAT excluded. + */ + "openinvoicedata.line[itemNr].itemAmount"?: number; + /** + * The VAT due for one item in the invoice line, represented in minor units. + */ + "openinvoicedata.line[itemNr].itemVatAmount"?: number; + /** + * The VAT percentage for one item in the invoice line, represented in minor units. + * + * For example, 19% VAT is specified as 1900. + */ + "openinvoicedata.line[itemNr].itemVatPercentage"?: number; + /** + * A unique id for this item. Required for RatePay if the description of each item is not unique. + */ + "openinvoicedata.line[itemNr].itemId"?: string; + /** + * The number of units purchased of a specific product. + */ + "openinvoicedata.line[itemNr].numberOfItems"?: number; + /** + * The country-specific VAT category a product falls under. + * + * Allowed values: + * * High + * * Low + * * None. + */ + "openinvoicedata.line[itemNr].vatCategory"?: string; + } + export interface AdditionalDataRatepay { + /** + * Amount the customer has to pay each month. + */ + "ratepay.installmentAmount"?: number; + /** + * Amount of the last installment. + */ + "ratepay.lastInstallmentAmount"?: number; + /** + * Interest rate of this installment. Double + */ + "ratepay.interestRate"?: number; + /** + * Calendar day of the first payment. + */ + "ratepay.paymentFirstday"?: number; + /** + * Identification name or number for the invoice, defined by the merchant. + */ + "ratepaydata.invoiceId"?: string; + /** + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + */ + "ratepaydata.invoiceDate"?: string; + /** + * Date the merchant delivered the goods to the customer. + */ + "ratepaydata.deliveryDate"?: string; + /** + * Date by which the customer must settle the payment. + */ + "ratepaydata.dueDate"?: string; + } + export interface 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. + */ + "retry.chainAttemptNumber"?: 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. + */ + "retry.orderAttemptNumber"?: 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. + */ + "retry.skipRetry"?: boolean; + } + export interface 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. + */ + "riskdata.deliveryMethod"?: 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). + */ + "riskdata.accountCreationDate"?: 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). + */ + "riskdata.shopperAccountCreationDate"?: 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). + */ + "riskdata.externalRiskScore"?: 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). + */ + "riskdata.externalSuspectedFraud"?: string; + /** + * A code corresponding to a telecom network operator + * + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + "riskdata.operatorCode"?: 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). + */ + "riskdata.operatorCountry"?: { + }; + /** + * 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). + */ + "riskdata.operatorName"?: string; + /** + * Product code of a telecom product. + * + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + "riskdata.operatorProductCode"?: 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. + */ + "riskdata.paymentMethod"?: string; + /** + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules) for visacheckout, masterpass, and paywithgoogle. + */ + "riskdata.paymentDataSource"?: 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). + */ + "riskdata.previousSuccessfulOrders"?: 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). + */ + "riskdata.referralMethod"?: 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). + */ + "riskdata.referrerUserName"?: string; + /** + * The id of the risk profile to use instead of the merchant account's currently set risk profile. + */ + "riskdata.riskProfileId"?: 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). + */ + "riskdata.secondaryPhoneNumber"?: { + }; + /** + * Name of the shipping method. + * + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + "riskdata.shippingMethod"?: 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). + */ + "riskdata.shopperCountry"?: 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). + */ + "riskdata.simDistributor"?: 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). + */ + "riskdata.userName"?: 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). + */ + "riskdata.userStatus"?: 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). + */ + "riskdata.browserLanguage"?: string; + /** + * ID of the item. + */ + "riskdata.basket.item[itemNr].itemID"?: string; + /** + * A text description of the product the invoice line refers to. + */ + "riskdata.basket.item[itemNr].productTitle"?: string; + /** + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + "riskdata.basket.item[itemNr].amountPerItem"?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + "riskdata.basket.item[itemNr].currency"?: string; + /** + * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + */ + "riskdata.basket.item[itemNr].upc"?: string; + /** + * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + */ + "riskdata.basket.item[itemNr].sku"?: string; + /** + * Brand of the item. + */ + "riskdata.basket.item[itemNr].brand"?: string; + /** + * Manufacturer of the item. + */ + "riskdata.basket.item[itemNr].manufacturer"?: string; + /** + * Category of the item. + */ + "riskdata.basket.item[itemNr].category"?: string; + /** + * Color of the item. + */ + "riskdata.basket.item[itemNr].color"?: string; + /** + * Size of the item. + */ + "riskdata.basket.item[itemNr].size"?: string; + /** + * Quantity of the item purchased. + */ + "riskdata.basket.item[itemNr].quantity"?: string; + /** + * Email associated with the given product in the basket (usually in electronic gift cards). + */ + "riskdata.basket.item[itemNr].receiverEmail"?: string; + /** + * Code of the promotion. + */ + "riskdata.promotions.promotion[itemNr].promotionCode"?: string; + /** + * Name of the promotion. + */ + "riskdata.promotions.promotion[itemNr].promotionName"?: string; + /** + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"?: 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. + */ + "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"?: string; + } + export interface AdditionalDataRiskStandalone { + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 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. + */ + "risk.token"?: 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. + */ + "PayPal.ProtectionEligibility"?: string; + /** + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + */ + "PayPal.PayerId"?: string; + /** + * Unique transaction ID of the payment. + */ + "PayPal.TransactionId"?: string; + /** + * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + */ + "PayPal.CountryCode"?: string; + /** + * Shopper's first name. + */ + "PayPal.FirstName"?: string; + /** + * Shopper's last name. + */ + "PayPal.LastName"?: string; + /** + * Shopper's phone number. + */ + "PayPal.Phone"?: string; + /** + * Shopper's email. + */ + "PayPal.EmailId"?: string; + } + export interface AdditionalDataTemporaryServices { + /** + * Customer code, if supplied by a customer. + * * Encoding: ASCII + * * maxLength: 25 + */ + "enhancedSchemeData.customerReference"?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00 + * * maxLength: 12 + */ + "enhancedSchemeData.totalTaxAmount"?: string; + /** + * Name or ID associated with the individual working in a temporary capacity. + * * maxLength: 40 + */ + "enhancedSchemeData.employeeName"?: string; + /** + * Description of the job or task of the individual working in a temporary capacity. + * * maxLength: 40 + */ + "enhancedSchemeData.jobDescription"?: string; + /** + * Date for the beginning of the pay period. + * * Format: ddMMyy + * * maxLength: 6 + */ + "enhancedSchemeData.tempStartDate"?: string; + /** + * Date of the end of the billing cycle. + * * Format: ddMMyy + * * maxLength: 6 + */ + "enhancedSchemeData.tempWeekEnding"?: string; + /** + * Name of the individual requesting temporary services. + * * maxLength: 40 + */ + "enhancedSchemeData.requestName"?: string; + /** + * Amount of time worked during a normal operation for the task or job. + * * maxLength: 7 + */ + "enhancedSchemeData.regularHoursWorked"?: string; + /** + * Amount paid per regular hours worked, minor units. + * * maxLength: 7 + */ + "enhancedSchemeData.regularHoursRate"?: string; + } + export interface AdditionalDataWallets { + /** + * The Android Pay token retrieved from the SDK. + */ + "androidpay.token"?: string; + /** + * The Mastercard Masterpass Transaction ID retrieved from the SDK. + */ + "masterpass.transactionId"?: string; + /** + * The Apple Pay token retrieved from the SDK. + */ + "payment.token"?: string; + /** + * The Google Pay token retrieved from the SDK. + */ + "paywithgoogle.token"?: string; + /** + * The Samsung Pay token retrieved from the SDK. + */ + "samsungpay.token"?: string; + /** + * The Visa Checkout Call ID retrieved from the SDK. + */ + "visacheckout.callId"?: string; + } + export interface Address { + /** + * The name of the city. + */ + city: 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; + /** + * 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; + /** + * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in 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`. + */ + street: string; + } + export interface Amount { + /** + * 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; // int64 + } + export interface ApplicationInfo { + /** + * Adyen-developed software, such as libraries and plugins, used to interact with the Adyen API. For example, Magento plugin, Java API library, etc. + */ + adyenLibrary?: ICheckout.CommonField; + /** + * Adyen-developed software to get payment details. For example, Checkout SDK, Secured Fields SDK, etc. + */ + adyenPaymentSource?: ICheckout.CommonField; + /** + * Third-party developed platform used to initiate payment requests. For example, Magento, Zuora, etc. + */ + externalPlatform?: ICheckout.ExternalPlatform; + /** + * Merchant developed software, such as cashier application, used to interact with the Adyen API. + */ + merchantApplication?: ICheckout.CommonField; + /** + * Merchant device information. + */ + merchantDevice?: ICheckout.MerchantDevice; + /** + * Shopper interaction device, such as terminal, mobile device or web browser, to initiate payment requests. + */ + shopperInteractionDevice?: ICheckout.ShopperInteractionDevice; + } + export interface 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?: "yes" | "no" | "automatic"; + } + export interface BankAccount { + /** + * The bank account number (without separators). + */ + bankAccountNumber?: string; + /** + * The bank city. + */ + bankCity?: 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 [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; + /** + * 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 bank account holder's tax ID. + */ + taxId?: string; + } + export interface BrowserInfo { + /** + * 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; // int32 + /** + * 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; // int32 + /** + * The total width of the shopper's device screen in pixels. + */ + screenWidth: number; // int32 + /** + * Time difference between UTC time and the shopper's browser local time, in minutes. + */ + timeZoneOffset: number; // int32 + /** + * The user agent value of the shopper's browser. + */ + userAgent: string; + } + export interface Card { + /** + * 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 year. + * Format: 4 digits. For example: 2020 + */ + expiryYear: 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 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 year component of the start date (for some UK debit cards only). + */ + startYear?: string; + } + export interface 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?: { + }; + /** + * The URL to download the voucher. + */ + downloadUrl?: string; + /** + * The date time of the voucher expiry. + */ + expiresAt?: string; + /** + * The initial amount. + */ + initialAmount?: ICheckout.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; + /** + * The surcharge amount. + */ + surcharge?: ICheckout.Amount; + /** + * A token to pass to the 3DS2 Component to get the fingerprint/challenge. + */ + token?: string; + /** + * The total amount (initial plus surcharge amount). + */ + totalAmount?: ICheckout.Amount; + /** + * Enum that specifies the action that needs to be taken by the client. + */ + type?: "await" | "qrCode" | "redirect" | "threeDS2Challenge" | "threeDS2Fingerprint" | "voucher" | "wechatpaySDK"; + /** + * Specifies the URL to redirect to. + */ + url?: string; + } + export interface 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; + } + export interface 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; + } + export interface Configuration { + /** + * Describes the configuration for AVS ([Address Verification System](https://en.wikipedia.org/wiki/Address_Verification_System)). + */ + avs?: ICheckout.Avs; + /** + * Determines whether the cardholder name should be provided or not. + * + * Permitted values: + * * NONE + * * OPTIONAL + * * REQUIRED + */ + cardHolderName?: "NONE" | "OPTIONAL" | "REQUIRED"; + /** + * Describes the configuration for [installment payments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: ICheckout.Installments; + /** + * Determines how to display the details fields. + */ + shopperInput?: ICheckout.ShopperInput; + } + export interface 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?: string[]; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount: ICheckout.Amount; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: ICheckout.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?: string[]; + /** + * The shopper's country code. + */ + countryCode?: string; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: ICheckout.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; + } + export interface CreatePaymentLinkResponse { + /** + * The amount for which the Pay By Link URL was created. + */ + amount?: ICheckout.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; + } + export interface DetailsRequest { + /** + * Use this collection to submit the details that were returned as a result of the `/payments` call. + */ + details: { + }; + /** + * 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; + } + export interface DeviceRenderOptions { + /** + * Supported SDK interface types. + * Allowed values: + * * Native + * * Html + * * both + */ + sdkInterface?: "Html" | "Native" | "both"; + /** + * UI types supported for displaying specific challenges. + * Allowed values: + * * text + * * singleSelect + * * outOfBand + * * otherHtml + * * multiSelect + */ + sdkUiType?: ("multiSelect" | "otherHtml" | "outOfBand" | "singleSelect" | "text")[]; + } + export interface 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; + } + export interface ForexQuote { + /** + * The account name. + */ + account?: string; + /** + * The account type. + */ + accountType?: string; + /** + * The base amount. + */ + baseAmount?: ICheckout.Amount; + /** + * The base points. + */ + basePoints: number; // int32 + /** + * The buy rate. + */ + buy?: ICheckout.Amount; + /** + * The interbank amount. + */ + interbank?: ICheckout.Amount; + /** + * The reference assigned to the forex quote request. + */ + reference?: string; + /** + * The sell rate. + */ + sell?: ICheckout.Amount; + /** + * The signature to validate the integrity. + */ + signature?: string; + /** + * The source of the forex quote. + */ + source?: string; + /** + * The type of forex. + */ + type?: string; + /** + * The date until which the forex quote is valid. + */ + validTill: string; // date-time + } + export interface FraudCheckResult { + /** + * The fraud score generated by the risk check. + */ + accountScore: number; // int32 + /** + * The ID of the risk check. + */ + checkId: number; // int32 + /** + * The name of the risk check. + */ + name: string; + } + export interface FraudResult { + /** + * The total fraud score generated by the risk checks. + */ + accountScore: number; // int32 + /** + * The result of the individual risk checks. + */ + results?: ICheckout.FraudCheckResult[]; + } + export interface InputDetail { + /** + * Configuration parameters for the required input. + */ + configuration?: { + }; + /** + * Input details can also be provided recursively. + */ + details?: ICheckout.SubInputDetail[]; + /** + * Input details can also be provided recursively (deprecated). + */ + inputDetails?: ICheckout.SubInputDetail[]; + /** + * 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?: ICheckout.Item[]; + /** + * 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; + } + export interface 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; // int32 + } + export interface Item { + /** + * The value to provide in the result. + */ + id?: string; + /** + * The display name. + */ + name?: string; + } + export interface LineItem { + /** + * Item amount excluding the tax, in minor units. + */ + amountExcludingTax?: number; // int64 + /** + * Item amount including the tax, in minor units. + */ + amountIncludingTax?: number; // int64 + /** + * Description of the line item. + */ + description?: string; + /** + * ID of the line item. + */ + id?: string; + /** + * Number of items. + */ + quantity?: number; // int64 + /** + * Tax amount, in minor units. + */ + taxAmount?: number; // int64 + /** + * Tax category: High, Low, None, Zero + */ + taxCategory?: "High" | "Low" | "None" | "Zero"; + /** + * Tax percentage, in minor units. + */ + taxPercentage?: number; // int64 + } + export interface 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; + } + export interface 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?: "shipToBillingAddress" | "shipToVerifiedAddress" | "shipToNewAddress" | "shipToStore" | "digitalGoods" | "goodsNotShipped" | "other"; + /** + * 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?: "electronicDelivery" | "sameDayShipping" | "overnightShipping" | "twoOrMoreDaysShipping"; + /** + * The amount of prepaid or gift cards used for this purchase. + */ + giftCardAmount?: ICheckout.Amount; + /** + * Number of individual prepaid or gift cards used for this purchase. + */ + giftCardCount?: number; // int32 + /** + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + preOrderDate?: string; // date-time + /** + * 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; + } + export interface Name { + /** + * The first name. + */ + firstName: string; + /** + * The gender. + * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + gender: "MALE" | "FEMALE" | "UNKNOWN"; + /** + * The name's infix, if applicable. + * >A maximum length of twenty (20) characters is imposed. + */ + infix?: string; + /** + * The last name. + */ + lastName: string; + } + export interface PaymentMethod { + /** + * List of possible brands. For example: visa, mc. + */ + brands?: string[]; + /** + * The configuration of the payment method. + */ + configuration?: { + }; + /** + * All input details to be provided to complete the payment with this payment method. + */ + details?: ICheckout.InputDetail[]; + /** + * The group where this payment method belongs to. + */ + group?: ICheckout.PaymentMethodGroup; + /** + * All input details to be provided to complete the payment with this payment method. + */ + inputDetails?: ICheckout.InputDetail[]; + /** + * 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; + } + export interface PaymentMethodACH { + /** + * Must be set to **ach**. + */ + type: string; + /** + * The bank account, from which the funds should be deducted. + */ + bankAccount: string; + } + export interface PaymentMethodAmazonPay { + /** + * Must be set to **androidpay**. + */ + type: string; + /** + * The stringified and base64 encoded paymentData retrieved from the Amazon framework. + */ + amazonPayToken: string; + } + export interface PaymentMethodAndroidPay { + /** + * Must be set to **androidpay**. + */ + type: string; + /** + * The stringified and base64 encoded paymentData retrieved from the Android framework. + */ + "androidpay.token": string; + } + export interface PaymentMethodApplePay { + /** + * Must be set to **applepay**. + */ + type: string; + /** + * The stringified and base64 encoded paymentData retrieved from the Apple framework. + */ + "applepay.token": string; + } + export interface PaymentMethodCard { + /** + * Must be set to **scheme**. + */ + type: 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 + */ + 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 year. + * Format: 4 digits. For example: 2020 + */ + expiryYear: string; + /** + * The name of the cardholder, as printed on the card. + */ + holderName: string; + /** + * The card number (4-19 characters). Do not use any separators. + */ + number: string; + } + export interface PaymentMethodDotpay { + /** + * Must be set to **dotpay**. + */ + type: string; + /** + * The Dotpay issuer value of the shopper's selected bank. Set this to an **id** of a Dotpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodDragonpayEBanking { + /** + * Must be set to **dragonpay_ebanking**. + */ + type: string; + /** + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodDragonpayOtcBanking { + /** + * Must be set to **dragonpay_otc_banking**. + */ + type: string; + /** + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodDragonpayOtcNonBanking { + /** + * Must be set to **dragonpay_otc_non_banking**. + */ + type: string; + /** + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodDragonpayOtcPhilippines { + /** + * Must be set to **dragonpay_otc_philippines**. + */ + type: string; + /** + * The Dragonpay issuer value of the shopper's selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodGiropay { + /** + * Must be set to **giropay**. + */ + type: string; + /** + * The bank identifier code (BIC) of the selected issuing bank. + */ + bic: string; + } + export interface 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; + } + export interface PaymentMethodIDeal { + /** + * Must be set to **dotpay**. + */ + type: string; + /** + * The iDEAL issuer value of the shopper's selected bank. Set this to an **id** of an iDeal issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodLianLianPayEbankingCredit { + /** + * Must be set to **lianlianpay_ebanking_credit**. + */ + type: string; + /** + * The shopper's telephone number. + */ + telephoneNumber: string; + } + export interface PaymentMethodLianLianPayEbankingDebit { + /** + * Must be set to **lianlianpay_ebanking_debit**. + */ + type: string; + /** + * The shopper's telephone number. + */ + telephoneNumber: string; + } + export interface PaymentMethodLianLianPayEbankingEnterprise { + /** + * Must be set to **lianlianpay_ebanking_enterprise**. + */ + type: string; + /** + * The shopper's telephone number. + */ + telephoneNumber: string; + } + export interface PaymentMethodMOLpayEBankingMalaysia { + /** + * Must be set to **molpay_ebanking_fpx_MY**. + */ + type: string; + /** + * The MOLpay issuer value of the shopper's selected bank. Set this to an **id** of a MOLpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodMOLpayEBankingThailand { + /** + * Must be set to **molpay_ebanking_TH**. + */ + type: string; + /** + * The MOLpay issuer value of the shopper's selected bank. Set this to an **id** of a MOLpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodMOLpayEBankingVietnam { + /** + * Must be set to **molpay_ebanking_VN**. + */ + type: string; + /** + * The MOLpay issuer value of the shopper's selected bank. Set this to an **id** of a MOLpay issuer to preselect it. + */ + issuer: string; + } + export interface PaymentMethodPayWithGoogle { + /** + * Must be set to **paywithgoogle**. + */ + type?: string; + /** + * The stringified and base64 encoded paymentData retrieved from the Google framework. + */ + "paywithgoogle.token": string; + /** + * The stringified and base64 encoded paymentData retrieved from the Google framework. + */ + googlePayToken: string; + /** + * The card type provided by the shopper. + */ + googlePayCardNetwork: string; + } + export interface PaymentMethodQIWIWallet { + /** + * Must be set to **qiwiwallet**. + */ + type: string; + /** + * The shopper's telephone number prefix. + */ + "qiwiwallet.telephoneNumberPrefix": string; + /** + * The shopper's telephone number. + */ + "qiwiwallet.telephoneNumber": string; + } + export interface PaymentMethodSamsungpay { + /** + * Must be set to **samsungpay**. + */ + type: string; + /** + * The stringified and base64 encoded paymentData retrieved from the Samsung framework. + */ + "samsungpay.token": string; + } + export interface PaymentMethodSchemeGiftCard { + /** + * Must be set to **scheme**. + */ + type: 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 + */ + 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 year. + * Format: 4 digits. For example: 2020 + */ + expiryYear: string; + /** + * The name of the cardholder, as printed on the card. + */ + holderName: string; + /** + * The card number (4-19 characters). Do not use any separators. + */ + number: string; + /** + * The encrypted [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 + */ + encryptedSecurityCode: string; + /** + * The encrypted card expiry month. + * Format: 2 digits, zero-padded for single digits. For example: + * * 03 = March + * * 11 = November + */ + encryptedExpiryMonth: string; + /** + * The encrypted card expiry year. + * Format: 4 digits. For example: 2020 + */ + encryptedExpiryYear: string; + /** + * The encrypted card number (4-19 characters). Do not use any separators. + */ + encryptedCardNumber: string; + } + export interface PaymentMethodSepaDirectDebit { + /** + * Must be set to **sepadirectdebit**. + */ + type: string; + /** + * The shopper's international bank account number (IBAN). + */ + "sepa.ibanNumber": string; + /** + * The name on the SEPA bank account. + */ + "sepa.ownerName": string; + } + export interface PaymentMethodVipps { + /** + * Must be set to **vipps**. + */ + type: string; + /** + * The shopper's telephone number. + */ + telephoneNumber: string; + } + export interface 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?: string[]; + } + export interface 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?: ICheckout.AdditionalDataCommon | ICheckout.AdditionalData3DSecure | ICheckout.AdditionalDataAirline | ICheckout.AdditionalDataCarRental | ICheckout.AdditionalDataLevel23 | ICheckout.AdditionalDataLodging | ICheckout.AdditionalDataOpenInvoice | ICheckout.AdditionalDataRatepay | ICheckout.AdditionalDataRetry | ICheckout.AdditionalDataRisk | ICheckout.AdditionalDataRiskStandalone | ICheckout.AdditionalDataTemporaryServices; + /** + * 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?: string[]; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount?: ICheckout.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?: string[]; + /** + * 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?: "iOS" | "Android" | "Web"; + /** + * 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/other-3ds-flows/authentication-only), and not the payment authorisation. + */ + threeDSAuthenticationOnly?: boolean; + } + export interface PaymentMethodsResponse { + /** + * Groups of payment methods. + */ + groups?: ICheckout.PaymentMethodsGroup[]; + /** + * Detailed list of one-click payment methods. + */ + oneClickPaymentMethods?: ICheckout.RecurringDetail[]; + /** + * Detailed list of payment methods required to generate payment forms. + */ + paymentMethods?: ICheckout.PaymentMethod[]; + /** + * List of all stored payment methods. + */ + storedPaymentMethods?: ICheckout.StoredPaymentMethod[]; + } + export interface PaymentRequest { + /** + * Shopper account information for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + accountInfo?: ICheckout.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?: ICheckout.AdditionalDataCommon | ICheckout.AdditionalData3DSecure | ICheckout.AdditionalDataAirline | ICheckout.AdditionalDataCarRental | ICheckout.AdditionalDataLevel23 | ICheckout.AdditionalDataLodging | ICheckout.AdditionalDataOpenInvoice | ICheckout.AdditionalDataRatepay | ICheckout.AdditionalDataRetry | ICheckout.AdditionalDataRisk | ICheckout.AdditionalDataRiskStandalone | ICheckout.AdditionalDataTemporaryServices; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount: ICheckout.Amount; + /** + * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). + */ + applicationInfo?: ICheckout.ApplicationInfo; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: ICheckout.Address; + /** + * The shopper's browser information. + * > For 3D Secure 2 transactions, `browserInfo` is required for `channel` **web** (or `deviceChannel` **browser**). + */ + browserInfo?: ICheckout.BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + captureDelayHours?: number; // int32 + /** + * 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?: "iOS" | "Android" | "Web"; + /** + * Information regarding the company + */ + company?: ICheckout.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?: string; // date-time + /** + * The forex quote as returned in the response of the forex service. + */ + dccQuote?: ICheckout.ForexQuote; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: ICheckout.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?: string; // date-time + /** + * 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?: "NaturalPerson" | "CompanyName"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: ICheckout.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?: ICheckout.LineItem[]; + /** + * 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; + /** + * Additional risk fields for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + merchantRiskIndicator?: ICheckout.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?: { + }; + /** + * Authentication data produced by an MPI (Mastercard SecureCode or Verified By Visa). + */ + mpiData?: ICheckout.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: { + }; + /** + * 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?: "CardOnFile" | "Subscription" | "UnscheduledCardOnFile"; + /** + * 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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 full name and gender (if specified). + */ + shopperName?: ICheckout.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?: ICheckout.Split[]; + /** + * When true and `shopperReference` is provided, the payment details will be stored. + */ + storePaymentMethod?: boolean; + /** + * The shopper's telephone number. + */ + telephoneNumber?: string; + /** + * Request fields for 3D Secure 2. + */ + threeDS2RequestData?: ICheckout.ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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 PaymentResponse { + /** + * Action to be taken for completing the payment. + */ + action?: ICheckout.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?: { + }; + /** + * Contains `threeds2.fingerprint` or `threeds2.challengeToken` values to be used in further calls to `/payments/details` endpoint. + */ + authentication?: { + }; + /** + * When non-empty, contains all the fields that you must submit to the `/payments/details` endpoint. + */ + details?: ICheckout.InputDetail[]; + /** + * The fraud result properties of the payment. + */ + fraudResult?: ICheckout.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?: { + }; + /** + * 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; + /** + * When the payment flow requires a redirect, this object contains information about the redirect URL. + */ + redirect?: ICheckout.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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). + * * **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?: "AuthenticationFinished" | "Authorised" | "Cancelled" | "ChallengeShopper" | "Error" | "IdentifyShopper" | "Pending" | "PresentToShopper" | "Received" | "RedirectShopper" | "Refused"; + } + 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. + */ + additionalData?: ICheckout.AdditionalDataCommon | ICheckout.AdditionalData3DSecure | ICheckout.AdditionalDataAirline | ICheckout.AdditionalDataCarRental | ICheckout.AdditionalDataLevel23 | ICheckout.AdditionalDataLodging | ICheckout.AdditionalDataOpenInvoice | ICheckout.AdditionalDataRatepay | ICheckout.AdditionalDataRetry | ICheckout.AdditionalDataRisk | ICheckout.AdditionalDataRiskStandalone | ICheckout.AdditionalDataTemporaryServices; + /** + * 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?: string[]; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount: ICheckout.Amount; + /** + * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). + */ + applicationInfo?: ICheckout.ApplicationInfo; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: ICheckout.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?: string[]; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + captureDelayHours?: number; // int32 + /** + * 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?: "iOS" | "Android" | "Web"; + /** + * Information regarding the company + */ + company?: ICheckout.Company; + /** + * Specify configurations to enable additional features. + */ + configuration?: ICheckout.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?: string; // date-time + /** + * The forex quote as returned in the response of the forex service. + */ + dccQuote?: ICheckout.ForexQuote; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: ICheckout.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?: string; // date-time + /** + * 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?: "NaturalPerson" | "CompanyName"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: ICheckout.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?: ICheckout.LineItem[]; + /** + * 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?: { + }; + /** + * 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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 full name and gender (if specified). + */ + shopperName?: ICheckout.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?: ICheckout.Split[]; + /** + * 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/other-3ds-flows/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 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?: ICheckout.RecurringDetail[]; + } + export interface PaymentVerificationRequest { + /** + * Encrypted and signed payment result data. You should receive this value from the Checkout SDK after the shopper completes the payment. + */ + payload: 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?: { + }; + /** + * The fraud result properties of the payment. + */ + fraudResult?: ICheckout.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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). + * * **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?: "AuthenticationFinished" | "Authorised" | "Cancelled" | "ChallengeShopper" | "Error" | "IdentifyShopper" | "Pending" | "PresentToShopper" | "Received" | "RedirectShopper" | "Refused"; + /** + * The type of the error. + */ + serviceError?: ICheckout.ServiceError; + /** + * The shopperLocale value provided in the payment request. + */ + shopperLocale: string; + } + namespace Post { + export type RequestBody = ICheckout.PaymentVerificationRequest; + namespace Responses { + export type $200 = ICheckout.PaymentVerificationResponse; + } + } + export interface 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-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?: "ONECLICK" | "RECURRING" | "PAYOUT"; + /** + * A descriptive name for this detail. + */ + recurringDetailName?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + recurringExpiry?: string; // date-time + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + recurringFrequency?: string; + /** + * The name of the token service. + */ + tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; + } + export interface RecurringDetail { + /** + * List of possible brands. For example: visa, mc. + */ + brands?: string[]; + /** + * The configuration of the payment method. + */ + configuration?: { + }; + /** + * All input details to be provided to complete the payment with this payment method. + */ + details?: ICheckout.InputDetail[]; + /** + * The group where this payment method belongs to. + */ + group?: ICheckout.PaymentMethodGroup; + /** + * All input details to be provided to complete the payment with this payment method. + */ + inputDetails?: ICheckout.InputDetail[]; + /** + * 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; + /** + * Contains information on previously stored payment details. + */ + storedDetails?: ICheckout.StoredDetails; + /** + * Indicates whether this payment method supports tokenization or not. + */ + supportsRecurring?: boolean; + /** + * The unique payment method code. + */ + type?: string; + } + export interface Redirect { + /** + * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. + */ + data?: { + }; + /** + * The web method that you must use to access the redirect URL. + * + * Possible values: GET, POST. + */ + method?: "GET" | "POST"; + /** + * The URL, to which you must redirect a shopper to complete a payment. + */ + url?: string; + } + export interface 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; + } + export interface ServiceError { + errorCode?: string; + errorType?: string; + message?: string; + } + export interface ShopperInput { + /** + * Specifies visibility of billing address fields. + * + * Permitted values: + * * editable + * * hidden + * * readOnly + */ + billingAddress?: "editable" | "hidden" | "readOnly"; + /** + * Specifies visibility of delivery address fields. + * + * Permitted values: + * * editable + * * hidden + * * readOnly + */ + deliveryAddress?: "editable" | "hidden" | "readOnly"; + /** + * Specifies visibility of personal details. + * + * Permitted values: + * * editable + * * hidden + * * readOnly + */ + personalDetails?: "editable" | "hidden" | "readOnly"; + } + export interface 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; + } + export interface Split { + /** + * The account to which this split applies. + * + * >Required if the type is `MarketPlace`. + */ + account?: string; + /** + * The amount of this split. + */ + amount: ICheckout.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: "Commission" | "Default" | "MarketPlace" | "PaymentFee" | "VAT" | "Verification"; + } + export interface 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; // int64 + } + export interface StoredDetails { + /** + * The stored bank account. + */ + bank?: ICheckout.BankAccount; + /** + * The stored card information. + */ + card?: ICheckout.Card; + /** + * The email associated with stored payment details. + */ + emailAddress?: string; + } + export interface 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?: string[]; + /** + * The type of payment method. + */ + type?: string; + } + export interface SubInputDetail { + /** + * Configuration parameters for the required input. + */ + configuration?: { + }; + /** + * In case of a select, the items to choose from. + */ + items?: ICheckout.Item[]; + /** + * 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; + } + export interface ThreeDS2RequestData { + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate"; + /** + * The environment of the shopper. + * Allowed values: + * * `app` + * * `browser` + */ + deviceChannel: string; + /** + * Display options for the 3D Secure 2 SDK. + * Optional and only for `deviceChannel` **app**. + */ + deviceRenderOptions?: ICheckout.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/other-3ds-flows/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/other-3ds-flows/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; + /** + * The `sdkEphemPubKey` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. + */ + sdkEphemPubKey?: ICheckout.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; // int32 + /** + * 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/other-3ds-flows/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/other-3ds-flows/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?: "goodsOrServicePurchase" | "checkAcceptance" | "accountFunding" | "quasiCashTransaction" | "prepaidActivationAndLoad"; + /** + * 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 ThreeDSecureData { + /** + * 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?: "Y" | "N" | "U" | "A"; + /** + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + cavv?: string; // byte + /** + * 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 the `ARes`. The possible values are **A** or **Y** for a frictionless flow, or **C** for a challenge flow. + */ + directoryResponse?: "A" | "C" | "D" | "I" | "N" | "R" | "U" | "Y"; + /** + * 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 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; // byte + } +} diff --git a/src/typings/checkout/accountInfo.ts b/src/typings/checkout/accountInfo.ts deleted file mode 100644 index c5022cc..0000000 --- a/src/typings/checkout/accountInfo.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * 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 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/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts deleted file mode 100644 index 7ab8499..0000000 --- a/src/typings/checkout/additionalData3DSecure.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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; - /** - * Indicates the [exemption type](https://docs-admin.is.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - */ - 'scaExemption'?: 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" - }, - { - "name": "scaExemption", - "baseName": "scaExemption", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalData3DSecure.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts deleted file mode 100644 index ac9b38d..0000000 --- a/src/typings/checkout/additionalDataAirline.ts +++ /dev/null @@ -1,267 +0,0 @@ -/** - * 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 deleted file mode 100644 index 15b8451..0000000 --- a/src/typings/checkout/additionalDataCarRental.ts +++ /dev/null @@ -1,231 +0,0 @@ -/** - * 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 deleted file mode 100644 index 7784656..0000000 --- a/src/typings/checkout/additionalDataCommon.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 deleted file mode 100644 index 373aabc..0000000 --- a/src/typings/checkout/additionalDataLevel23.ts +++ /dev/null @@ -1,177 +0,0 @@ -/** - * 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 deleted file mode 100644 index 564fa0d..0000000 --- a/src/typings/checkout/additionalDataLodging.ts +++ /dev/null @@ -1,177 +0,0 @@ -/** - * 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 deleted file mode 100644 index 50f31d0..0000000 --- a/src/typings/checkout/additionalDataOpenInvoice.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * 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 deleted file mode 100644 index c385ade..0000000 --- a/src/typings/checkout/additionalDataRatepay.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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 deleted file mode 100644 index 494be1a..0000000 --- a/src/typings/checkout/additionalDataRetry.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index 9adca3c..0000000 --- a/src/typings/checkout/additionalDataRisk.ts +++ /dev/null @@ -1,384 +0,0 @@ -/** - * 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 deleted file mode 100644 index bb0b026..0000000 --- a/src/typings/checkout/additionalDataRiskStandalone.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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: D - */ - '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 deleted file mode 100644 index 781cebf..0000000 --- a/src/typings/checkout/additionalDataTemporaryServices.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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 deleted file mode 100644 index 219f814..0000000 --- a/src/typings/checkout/additionalDataWallets.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 deleted file mode 100644 index 05e6a3f..0000000 --- a/src/typings/checkout/address.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 Address { - /** - * The name of the city. - */ - 'city': 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; - /** - * 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; - /** - * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in 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`. - */ - '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 deleted file mode 100644 index f58b68d..0000000 --- a/src/typings/checkout/amount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 Amount { - /** - * 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; - - 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 deleted file mode 100644 index 1eb2fb2..0000000 --- a/src/typings/checkout/applicationInfo.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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 { 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/checkout/avs.ts b/src/typings/checkout/avs.ts deleted file mode 100644 index 62e60af..0000000 --- a/src/typings/checkout/avs.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * 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/checkout/bankAccount.ts b/src/typings/checkout/bankAccount.ts deleted file mode 100644 index 3b8e163..0000000 --- a/src/typings/checkout/bankAccount.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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 BankAccount { - /** - * The bank account number (without separators). - */ - 'bankAccountNumber'?: string; - /** - * The bank city. - */ - 'bankCity'?: 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 [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; - /** - * 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 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 deleted file mode 100644 index 1a1b294..0000000 --- a/src/typings/checkout/browserInfo.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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 BrowserInfo { - /** - * 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; - /** - * 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/checkout/card.ts b/src/typings/checkout/card.ts deleted file mode 100644 index 8e8bbbf..0000000 --- a/src/typings/checkout/card.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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 Card { - /** - * 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 year. Format: 4 digits. For example: 2020 - */ - 'expiryYear': 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 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 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 deleted file mode 100644 index 1a2a1c0..0000000 --- a/src/typings/checkout/checkoutPaymentsAction.ts +++ /dev/null @@ -1,225 +0,0 @@ -/** - * 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 deleted file mode 100644 index 6dd7e0a..0000000 --- a/src/typings/checkout/commonField.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 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/checkout/company.ts b/src/typings/checkout/company.ts deleted file mode 100644 index 57437d6..0000000 --- a/src/typings/checkout/company.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/checkout/configuration.ts b/src/typings/checkout/configuration.ts deleted file mode 100644 index 039aad2..0000000 --- a/src/typings/checkout/configuration.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 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/checkout/createPaymentLinkRequest.ts b/src/typings/checkout/createPaymentLinkRequest.ts deleted file mode 100644 index 953bb28..0000000 --- a/src/typings/checkout/createPaymentLinkRequest.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * 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 deleted file mode 100644 index 701f66e..0000000 --- a/src/typings/checkout/createPaymentLinkResponse.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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 deleted file mode 100644 index 01ee7f0..0000000 --- a/src/typings/checkout/detailsRequest.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/checkout/deviceRenderOptions.ts b/src/typings/checkout/deviceRenderOptions.ts deleted file mode 100644 index 51924ad..0000000 --- a/src/typings/checkout/deviceRenderOptions.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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 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/checkout/externalPlatform.ts b/src/typings/checkout/externalPlatform.ts deleted file mode 100644 index efd3e3d..0000000 --- a/src/typings/checkout/externalPlatform.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 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/checkout/forexQuote.ts b/src/typings/checkout/forexQuote.ts deleted file mode 100644 index 3ed514a..0000000 --- a/src/typings/checkout/forexQuote.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * 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 ForexQuote { - /** - * The account name. - */ - 'account'?: string; - /** - * The account type. - */ - 'accountType'?: string; - 'baseAmount'?: Amount; - /** - * The base points. - */ - 'basePoints': number; - 'buy'?: Amount; - 'interbank'?: Amount; - /** - * The reference assigned to the forex quote request. - */ - 'reference'?: string; - 'sell'?: Amount; - /** - * The signature to validate the integrity. - */ - 'signature'?: string; - /** - * The source of the forex quote. - */ - 'source'?: string; - /** - * The type of forex. - */ - 'type'?: string; - /** - * 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 deleted file mode 100644 index 0e22026..0000000 --- a/src/typings/checkout/fraudCheckResult.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 FraudCheckResult { - /** - * The fraud score generated by the risk check. - */ - 'accountScore': number; - /** - * The ID of the risk check. - */ - 'checkId': number; - /** - * 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 deleted file mode 100644 index 287b9c4..0000000 --- a/src/typings/checkout/fraudResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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 { FraudCheckResult } from './fraudCheckResult'; - -export class FraudResult { - /** - * The total fraud score generated by the risk checks. - */ - 'accountScore': number; - /** - * 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/index.ts b/src/typings/checkout/index.ts deleted file mode 100755 index 52dbf6b..0000000 --- a/src/typings/checkout/index.ts +++ /dev/null @@ -1,45 +0,0 @@ - - -export * from './accountInfo'; -export * from './address'; -export * from './amount'; -export * from './avs'; -export * from './bankAccount'; -export * from './browserInfo'; -export * from './card'; -export * from './company'; -export * from './configuration'; -export * from './detailsRequest'; -export * from './deviceRenderOptions'; -export * from './forexQuote'; -export * from './fraudCheckResult'; -export * from './fraudResult'; -export * from './inputDetail'; -export * from './installments'; -export * from './item'; -export * from './lineItem'; -export * from './merchantRiskIndicator'; -export * from './name'; -export * from './paymentMethod'; -export * from './paymentMethodGroup'; -export * from './paymentMethodsGroup'; -export * from './paymentMethodsRequest'; -export * from './paymentMethodsResponse'; -export * from './paymentRequest'; -export * from './paymentResponse'; -export * from './paymentSetupRequest'; -export * from './paymentSetupResponse'; -export * from './paymentVerificationRequest'; -export * from './paymentVerificationResponse'; -export * from './recurring'; -export * from './recurringDetail'; -export * from './redirect'; -export * from './sDKEphemPubKey'; -export * from './serviceError'; -export * from './shopperInput'; -export * from './split'; -export * from './splitAmount'; -export * from './storedDetails'; -export * from './subInputDetail'; -export * from './threeDS2RequestData'; -export * from './threeDSecureData'; diff --git a/src/typings/checkout/inputDetail.ts b/src/typings/checkout/inputDetail.ts deleted file mode 100644 index 44aec9c..0000000 --- a/src/typings/checkout/inputDetail.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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/checkout/installments.ts b/src/typings/checkout/installments.ts deleted file mode 100644 index 071d601..0000000 --- a/src/typings/checkout/installments.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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 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; - - 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 deleted file mode 100644 index 3798a85..0000000 --- a/src/typings/checkout/item.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/checkout/lineItem.ts b/src/typings/checkout/lineItem.ts deleted file mode 100644 index c2b8761..0000000 --- a/src/typings/checkout/lineItem.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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/checkout/merchantDevice.ts b/src/typings/checkout/merchantDevice.ts deleted file mode 100644 index d69af1e..0000000 --- a/src/typings/checkout/merchantDevice.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 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/checkout/merchantRiskIndicator.ts b/src/typings/checkout/merchantRiskIndicator.ts deleted file mode 100644 index 7cbc2e6..0000000 --- a/src/typings/checkout/merchantRiskIndicator.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * 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 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/checkout/name.ts b/src/typings/checkout/name.ts deleted file mode 100644 index 938da52..0000000 --- a/src/typings/checkout/name.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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 Name { - /** - * The first name. - */ - 'firstName': string; - /** - * 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 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 enum GenderEnum { - MALE = 'MALE', - FEMALE = 'FEMALE', - UNKNOWN = 'UNKNOWN' - } -} diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts deleted file mode 100644 index 66476df..0000000 --- a/src/typings/checkout/paymentMethod.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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/checkout/paymentMethodACH.ts b/src/typings/checkout/paymentMethodACH.ts deleted file mode 100644 index cc76e2a..0000000 --- a/src/typings/checkout/paymentMethodACH.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodACH { - /** - * Must be set to **ach**. - */ - 'type': string; - /** - * The bank account, from which the funds should be deducted. - */ - 'bankAccount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "bankAccount", - "baseName": "bankAccount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodACH.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodAmazonPay.ts b/src/typings/checkout/paymentMethodAmazonPay.ts deleted file mode 100644 index 4a0a9e5..0000000 --- a/src/typings/checkout/paymentMethodAmazonPay.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodAmazonPay { - /** - * Must be set to **androidpay**. - */ - 'type': string; - /** - * The stringified and base64 encoded paymentData retrieved from the Amazon framework. - */ - 'amazonPayToken': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "amazonPayToken", - "baseName": "amazonPayToken", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodAmazonPay.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodAndroidPay.ts b/src/typings/checkout/paymentMethodAndroidPay.ts deleted file mode 100644 index f672089..0000000 --- a/src/typings/checkout/paymentMethodAndroidPay.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodAndroidPay { - /** - * Must be set to **androidpay**. - */ - 'type': string; - /** - * The stringified and base64 encoded paymentData retrieved from the Android framework. - */ - 'androidpayToken': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "androidpayToken", - "baseName": "androidpay.token", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodAndroidPay.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodApplePay.ts b/src/typings/checkout/paymentMethodApplePay.ts deleted file mode 100644 index 64b7888..0000000 --- a/src/typings/checkout/paymentMethodApplePay.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodApplePay { - /** - * Must be set to **applepay**. - */ - 'type': string; - /** - * The stringified and base64 encoded paymentData retrieved from the Apple framework. - */ - 'applepayToken': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "applepayToken", - "baseName": "applepay.token", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodApplePay.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodCard.ts b/src/typings/checkout/paymentMethodCard.ts deleted file mode 100644 index 2cb89da..0000000 --- a/src/typings/checkout/paymentMethodCard.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 PaymentMethodCard { - /** - * Must be set to **scheme**. - */ - 'type': 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 - */ - '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 year. Format: 4 digits. For example: 2020 - */ - 'expiryYear': string; - /** - * The name of the cardholder, as printed on the card. - */ - 'holderName': string; - /** - * The card number (4-19 characters). Do not use any separators. - */ - 'number': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "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": "number", - "baseName": "number", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodCard.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodDotpay.ts b/src/typings/checkout/paymentMethodDotpay.ts deleted file mode 100644 index ddc774d..0000000 --- a/src/typings/checkout/paymentMethodDotpay.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodDotpay { - /** - * Must be set to **dotpay**. - */ - 'type': string; - /** - * The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodDotpay.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodDragonpayEBanking.ts b/src/typings/checkout/paymentMethodDragonpayEBanking.ts deleted file mode 100644 index e1b3281..0000000 --- a/src/typings/checkout/paymentMethodDragonpayEBanking.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodDragonpayEBanking { - /** - * Must be set to **dragonpay_ebanking**. - */ - 'type': string; - /** - * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodDragonpayEBanking.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodDragonpayOtcBanking.ts b/src/typings/checkout/paymentMethodDragonpayOtcBanking.ts deleted file mode 100644 index 27cdd33..0000000 --- a/src/typings/checkout/paymentMethodDragonpayOtcBanking.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodDragonpayOtcBanking { - /** - * Must be set to **dragonpay_otc_banking**. - */ - 'type': string; - /** - * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodDragonpayOtcBanking.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts b/src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts deleted file mode 100644 index debe0d6..0000000 --- a/src/typings/checkout/paymentMethodDragonpayOtcNonBanking.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodDragonpayOtcNonBanking { - /** - * Must be set to **dragonpay_otc_non_banking**. - */ - 'type': string; - /** - * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodDragonpayOtcNonBanking.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts b/src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts deleted file mode 100644 index 162e1dd..0000000 --- a/src/typings/checkout/paymentMethodDragonpayOtcPhilippines.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodDragonpayOtcPhilippines { - /** - * Must be set to **dragonpay_otc_philippines**. - */ - 'type': string; - /** - * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodDragonpayOtcPhilippines.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodGiropay.ts b/src/typings/checkout/paymentMethodGiropay.ts deleted file mode 100644 index b729c23..0000000 --- a/src/typings/checkout/paymentMethodGiropay.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodGiropay { - /** - * Must be set to **giropay**. - */ - 'type': string; - /** - * The bank identifier code (BIC) of the selected issuing bank. - */ - 'bic': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "bic", - "baseName": "bic", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodGiropay.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodGroup.ts b/src/typings/checkout/paymentMethodGroup.ts deleted file mode 100644 index 29888dc..0000000 --- a/src/typings/checkout/paymentMethodGroup.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/checkout/paymentMethodIDeal.ts b/src/typings/checkout/paymentMethodIDeal.ts deleted file mode 100644 index 9983869..0000000 --- a/src/typings/checkout/paymentMethodIDeal.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodIDeal { - /** - * Must be set to **dotpay**. - */ - 'type': string; - /** - * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDeal issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodIDeal.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts b/src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts deleted file mode 100644 index 3657660..0000000 --- a/src/typings/checkout/paymentMethodLianLianPayEbankingCredit.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodLianLianPayEbankingCredit { - /** - * Must be set to **lianlianpay_ebanking_credit**. - */ - 'type': string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodLianLianPayEbankingCredit.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts b/src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts deleted file mode 100644 index 75402c8..0000000 --- a/src/typings/checkout/paymentMethodLianLianPayEbankingDebit.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodLianLianPayEbankingDebit { - /** - * Must be set to **lianlianpay_ebanking_debit**. - */ - 'type': string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodLianLianPayEbankingDebit.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts b/src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts deleted file mode 100644 index 9efcd16..0000000 --- a/src/typings/checkout/paymentMethodLianLianPayEbankingEnterprise.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodLianLianPayEbankingEnterprise { - /** - * Must be set to **lianlianpay_ebanking_enterprise**. - */ - 'type': string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodLianLianPayEbankingEnterprise.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts b/src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts deleted file mode 100644 index fa27bc6..0000000 --- a/src/typings/checkout/paymentMethodMOLpayEBankingMalaysia.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodMOLpayEBankingMalaysia { - /** - * Must be set to **molpay_ebanking_fpx_MY**. - */ - 'type': string; - /** - * The MOLpay issuer value of the shopper\'s selected bank. Set this to an **id** of a MOLpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodMOLpayEBankingMalaysia.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts b/src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts deleted file mode 100644 index 1e86027..0000000 --- a/src/typings/checkout/paymentMethodMOLpayEBankingThailand.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodMOLpayEBankingThailand { - /** - * Must be set to **molpay_ebanking_TH**. - */ - 'type': string; - /** - * The MOLpay issuer value of the shopper\'s selected bank. Set this to an **id** of a MOLpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodMOLpayEBankingThailand.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts b/src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts deleted file mode 100644 index ee83762..0000000 --- a/src/typings/checkout/paymentMethodMOLpayEBankingVietnam.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodMOLpayEBankingVietnam { - /** - * Must be set to **molpay_ebanking_VN**. - */ - 'type': string; - /** - * The MOLpay issuer value of the shopper\'s selected bank. Set this to an **id** of a MOLpay issuer to preselect it. - */ - 'issuer': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "issuer", - "baseName": "issuer", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodMOLpayEBankingVietnam.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodPayWithGoogle.ts b/src/typings/checkout/paymentMethodPayWithGoogle.ts deleted file mode 100644 index 890a13a..0000000 --- a/src/typings/checkout/paymentMethodPayWithGoogle.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 PaymentMethodPayWithGoogle { - /** - * Must be set to **paywithgoogle**. - */ - 'type'?: string; - /** - * The stringified and base64 encoded paymentData retrieved from the Google framework. - */ - 'paywithgoogleToken': string; - /** - * The stringified and base64 encoded paymentData retrieved from the Google framework. - */ - 'googlePayToken': string; - /** - * The card type provided by the shopper. - */ - 'googlePayCardNetwork': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "paywithgoogleToken", - "baseName": "paywithgoogle.token", - "type": "string" - }, - { - "name": "googlePayToken", - "baseName": "googlePayToken", - "type": "string" - }, - { - "name": "googlePayCardNetwork", - "baseName": "googlePayCardNetwork", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodPayWithGoogle.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodQIWIWallet.ts b/src/typings/checkout/paymentMethodQIWIWallet.ts deleted file mode 100644 index 7627750..0000000 --- a/src/typings/checkout/paymentMethodQIWIWallet.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 PaymentMethodQIWIWallet { - /** - * Must be set to **qiwiwallet**. - */ - 'type': string; - /** - * The shopper\'s telephone number prefix. - */ - 'qiwiwalletTelephoneNumberPrefix': string; - /** - * The shopper\'s telephone number. - */ - 'qiwiwalletTelephoneNumber': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "qiwiwalletTelephoneNumberPrefix", - "baseName": "qiwiwallet.telephoneNumberPrefix", - "type": "string" - }, - { - "name": "qiwiwalletTelephoneNumber", - "baseName": "qiwiwallet.telephoneNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodQIWIWallet.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodSamsungpay.ts b/src/typings/checkout/paymentMethodSamsungpay.ts deleted file mode 100644 index 08ef95b..0000000 --- a/src/typings/checkout/paymentMethodSamsungpay.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodSamsungpay { - /** - * Must be set to **samsungpay**. - */ - 'type': string; - /** - * The stringified and base64 encoded paymentData retrieved from the Samsung framework. - */ - 'samsungpayToken': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "samsungpayToken", - "baseName": "samsungpay.token", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodSamsungpay.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodSchemeGiftCard.ts b/src/typings/checkout/paymentMethodSchemeGiftCard.ts deleted file mode 100644 index 225fbec..0000000 --- a/src/typings/checkout/paymentMethodSchemeGiftCard.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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 PaymentMethodSchemeGiftCard { - /** - * Must be set to **scheme**. - */ - 'type': 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 - */ - '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 year. Format: 4 digits. For example: 2020 - */ - 'expiryYear': string; - /** - * The name of the cardholder, as printed on the card. - */ - 'holderName': string; - /** - * The card number (4-19 characters). Do not use any separators. - */ - 'number': string; - /** - * The encrypted [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 - */ - 'encryptedSecurityCode': string; - /** - * The encrypted card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November - */ - 'encryptedExpiryMonth': string; - /** - * The encrypted card expiry year. Format: 4 digits. For example: 2020 - */ - 'encryptedExpiryYear': string; - /** - * The encrypted card number (4-19 characters). Do not use any separators. - */ - 'encryptedCardNumber': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "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": "number", - "baseName": "number", - "type": "string" - }, - { - "name": "encryptedSecurityCode", - "baseName": "encryptedSecurityCode", - "type": "string" - }, - { - "name": "encryptedExpiryMonth", - "baseName": "encryptedExpiryMonth", - "type": "string" - }, - { - "name": "encryptedExpiryYear", - "baseName": "encryptedExpiryYear", - "type": "string" - }, - { - "name": "encryptedCardNumber", - "baseName": "encryptedCardNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodSchemeGiftCard.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodSepaDirectDebit.ts b/src/typings/checkout/paymentMethodSepaDirectDebit.ts deleted file mode 100644 index 194fdea..0000000 --- a/src/typings/checkout/paymentMethodSepaDirectDebit.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 PaymentMethodSepaDirectDebit { - /** - * Must be set to **sepadirectdebit**. - */ - 'type': string; - /** - * The shopper\'s international bank account number (IBAN). - */ - 'sepaIbanNumber': string; - /** - * The name on the SEPA bank account. - */ - 'sepaOwnerName': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "sepaIbanNumber", - "baseName": "sepa.ibanNumber", - "type": "string" - }, - { - "name": "sepaOwnerName", - "baseName": "sepa.ownerName", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodSepaDirectDebit.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodVipps.ts b/src/typings/checkout/paymentMethodVipps.ts deleted file mode 100644 index 63dfdaa..0000000 --- a/src/typings/checkout/paymentMethodVipps.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 PaymentMethodVipps { - /** - * Must be set to **vipps**. - */ - 'type': string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PaymentMethodVipps.attributeTypeMap; - } -} - diff --git a/src/typings/checkout/paymentMethodsGroup.ts b/src/typings/checkout/paymentMethodsGroup.ts deleted file mode 100644 index d6fc5dc..0000000 --- a/src/typings/checkout/paymentMethodsGroup.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts deleted file mode 100644 index dd789d2..0000000 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ /dev/null @@ -1,129 +0,0 @@ -/** - * 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 { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices'; - -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'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices; - /** - * 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/other-3ds-flows/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": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices" - }, - { - "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/checkout/paymentMethodsResponse.ts b/src/typings/checkout/paymentMethodsResponse.ts deleted file mode 100644 index 1923c8c..0000000 --- a/src/typings/checkout/paymentMethodsResponse.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts deleted file mode 100644 index af0bf88..0000000 --- a/src/typings/checkout/paymentRequest.ts +++ /dev/null @@ -1,508 +0,0 @@ -/** - * 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 { AccountInfo } from './accountInfo'; -import { Address } from './address'; -import { Amount } from './amount'; -import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices'; -import { ApplicationInfo } from './applicationInfo'; -import { BrowserInfo } from './browserInfo'; -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 { Split } from './split'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; -import { ThreeDSecureData } from './threeDSecureData'; - -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'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices; - '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/other-3ds-flows/authentication-only), and not the payment authorisation. - */ - 'threeDSAuthenticationOnly'?: boolean; - /** - * 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": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices" - }, - { - "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 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 deleted file mode 100644 index 08a804c..0000000 --- a/src/typings/checkout/paymentResponse.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). * **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/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts deleted file mode 100644 index e1130a2..0000000 --- a/src/typings/checkout/paymentSetupRequest.ts +++ /dev/null @@ -1,466 +0,0 @@ -/** - * 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 { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices'; -import { ApplicationInfo } from './applicationInfo'; -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'; - -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'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices; - /** - * 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/other-3ds-flows/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": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServices" - }, - { - "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/checkout/paymentSetupResponse.ts b/src/typings/checkout/paymentSetupResponse.ts deleted file mode 100644 index b1f61d5..0000000 --- a/src/typings/checkout/paymentSetupResponse.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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/checkout/paymentVerificationRequest.ts b/src/typings/checkout/paymentVerificationRequest.ts deleted file mode 100644 index 4116da5..0000000 --- a/src/typings/checkout/paymentVerificationRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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/checkout/paymentVerificationResponse.ts b/src/typings/checkout/paymentVerificationResponse.ts deleted file mode 100644 index d3d2544..0000000 --- a/src/typings/checkout/paymentVerificationResponse.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * 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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). * **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/checkout/recurring.ts b/src/typings/checkout/recurring.ts deleted file mode 100644 index b8ed9ed..0000000 --- a/src/typings/checkout/recurring.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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 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-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; - /** - * 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 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 deleted file mode 100644 index 54ffc06..0000000 --- a/src/typings/checkout/recurringDetail.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * 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/checkout/redirect.ts b/src/typings/checkout/redirect.ts deleted file mode 100644 index 4652ae3..0000000 --- a/src/typings/checkout/redirect.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * 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/checkout/sDKEphemPubKey.ts b/src/typings/checkout/sDKEphemPubKey.ts deleted file mode 100644 index 44c697f..0000000 --- a/src/typings/checkout/sDKEphemPubKey.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 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/checkout/serviceError.ts b/src/typings/checkout/serviceError.ts deleted file mode 100644 index 60c18cc..0000000 --- a/src/typings/checkout/serviceError.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/checkout/shopperInput.ts b/src/typings/checkout/shopperInput.ts deleted file mode 100644 index b8cb7dd..0000000 --- a/src/typings/checkout/shopperInput.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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/checkout/shopperInteractionDevice.ts b/src/typings/checkout/shopperInteractionDevice.ts deleted file mode 100644 index bebda32..0000000 --- a/src/typings/checkout/shopperInteractionDevice.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 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/checkout/split.ts b/src/typings/checkout/split.ts deleted file mode 100644 index 0d4ec0e..0000000 --- a/src/typings/checkout/split.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * 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 { 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/checkout/splitAmount.ts b/src/typings/checkout/splitAmount.ts deleted file mode 100644 index d8d9472..0000000 --- a/src/typings/checkout/splitAmount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 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/checkout/storedDetails.ts b/src/typings/checkout/storedDetails.ts deleted file mode 100644 index d219eaf..0000000 --- a/src/typings/checkout/storedDetails.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * 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/checkout/storedPaymentMethod.ts b/src/typings/checkout/storedPaymentMethod.ts deleted file mode 100644 index abf1bd4..0000000 --- a/src/typings/checkout/storedPaymentMethod.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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/checkout/subInputDetail.ts b/src/typings/checkout/subInputDetail.ts deleted file mode 100644 index 1a1b2ac..0000000 --- a/src/typings/checkout/subInputDetail.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * 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/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts deleted file mode 100644 index 5ab5600..0000000 --- a/src/typings/checkout/threeDS2RequestData.ts +++ /dev/null @@ -1,233 +0,0 @@ -/** - * 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 { DeviceRenderOptions } from './deviceRenderOptions'; -import { SDKEphemPubKey } from './sDKEphemPubKey'; - -export class ThreeDS2RequestData { - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/checkout/threeDSecureData.ts b/src/typings/checkout/threeDSecureData.ts deleted file mode 100644 index bdf00d4..0000000 --- a/src/typings/checkout/threeDSecureData.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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 ThreeDSecureData { - /** - * 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 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 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; - /** - * 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 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/checkoutUtility.ts b/src/typings/checkoutUtility.ts new file mode 100644 index 0000000..22e6f82 --- /dev/null +++ b/src/typings/checkoutUtility.ts @@ -0,0 +1,46 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of Checkout Utility: v1 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace ICheckoutUtility { + export interface CheckoutUtilityRequest { + /** + * The list of origin domains, for which origin keys are requested. + */ + originDomains: string[]; + } + export interface CheckoutUtilityResponse { + /** + * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. + */ + originKeys?: { + }; + } + namespace Post { + export type RequestBody = ICheckoutUtility.CheckoutUtilityRequest; + namespace Responses { + export type $200 = ICheckoutUtility.CheckoutUtilityResponse; + } + } +} diff --git a/src/typings/checkoutUtility/checkoutUtilityRequest.ts b/src/typings/checkoutUtility/checkoutUtilityRequest.ts deleted file mode 100755 index 59d0630..0000000 --- a/src/typings/checkoutUtility/checkoutUtilityRequest.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Adyen Checkout Utility Service - * A web service containing utility functions available for merchants integrating with Checkout APIs. ## Authentication Each request to the Checkout Utility 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/v1/originKeys ``` - * - * OpenAPI spec version: 1 - * Contact: support@adyen.com - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - -export interface CheckoutUtilityRequest { - /** - * The list of origin domains, for which origin keys are requested. - */ - originDomains: Array; -} \ No newline at end of file diff --git a/src/typings/checkoutUtility/checkoutUtilityResponse.ts b/src/typings/checkoutUtility/checkoutUtilityResponse.ts deleted file mode 100755 index 21a1128..0000000 --- a/src/typings/checkoutUtility/checkoutUtilityResponse.ts +++ /dev/null @@ -1,20 +0,0 @@ - - -/** - * Adyen Checkout Utility Service - * A web service containing utility functions available for merchants integrating with Checkout APIs. ## Authentication Each request to the Checkout Utility 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/v1/originKeys ``` - * - * OpenAPI spec version: 1 - * Contact: support@adyen.com - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - -export interface CheckoutUtilityResponse { - /** - * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. - */ - originKeys?: any; -} \ No newline at end of file diff --git a/src/typings/checkoutUtility/index.ts b/src/typings/checkoutUtility/index.ts deleted file mode 100755 index 87f19de..0000000 --- a/src/typings/checkoutUtility/index.ts +++ /dev/null @@ -1,4 +0,0 @@ - - -export * from './checkoutUtilityRequest'; -export * from './checkoutUtilityResponse'; diff --git a/src/typings/constants/apiConstants.ts b/src/typings/constants/apiConstants.ts deleted file mode 100644 index 63ec681..0000000 --- a/src/typings/constants/apiConstants.ts +++ /dev/null @@ -1,83 +0,0 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * - * Adyen NodeJS API Library - * - * Copyright (c) 2019 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - -export const TRANSACTION_NOT_PERMITTED = "Transaction Not Permitted"; -export const CVC_DECLINED = "CVC Declined"; -export const RESTRICTED_CARD = "Restricted Card"; -export const PAYMENT_DETAIL_NOT_FOUND = "803 PaymentDetail not found"; -export const REFUSED = "Refused"; - -export const REFUSAL_REASON_RAW = "refusalReasonRaw"; -export const PAYMENT_METHOD = "paymentMethod"; -export const EXPIRY_DATE = "expiryDate"; -export const CARD_BIN = "cardBin"; -export const CARD_HOLDER_NAME = "cardHolderName"; -export const CARD_SUMMARY = "cardSummary"; -export const THREE_D_OFFERERED = "threeDOffered"; -export const THREE_D_AUTHENTICATED = "threeDAuthenticated"; -export const AVS_RESULT = "avsResult"; -export const PAYMENT_TOKEN = "payment.token"; -export const FRAUD_RESULT_TYPE = "fraudResultType"; -export const FRAUD_MANUAL_REVIEW = "fraudManualReview"; -export const AUTH_CODE = "authCode"; - -export const BOLETO_BARCODE_REFERENCE = "boletobancario.barCodeReference"; -export const BOLETO_DATA = "boletobancario.data"; -export const BOLETO_DUE_DATE = "boletobancario.dueDate"; -export const BOLETO_URL = "boletobancario.url"; -export const BOLETO_EXPIRATION_DATE = "boletobancario.expirationDate"; - -export const MULTIBANCO_ENTITY = "comprafacil.entity"; -export const MULTIBANCO_AMOUNT = "comprafacil.amount"; -export const MULTIBANCO_DEADLINE = "comprafacil.deadline"; -export const MULTIBANCO_REFERENCE = "comprafacil.reference"; - -export const HMAC_SIGNATURE = "hmacSignature"; - -export const JSON = "card.encrypted.json"; - -export const BOLETO_SANTANDER = "boletobancario_santander"; - -export const NUMBER = "number"; -export const EXPIRY_MONTH = "expiryMonth"; -export const EXPIRY_YEAR = "expiryYear"; -export const CVC = "cvc"; -export const ENCRYPTED_CARD_NUMBER = "encryptedCardNumber"; -export const ENCRYPTED_EXPIRY_MONTH = "encryptedExpiryMonth"; -export const ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear"; -export const ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode"; -export const METHOD_TYPE = "type"; -export const HOLDER_NAME = "holderName"; -export const RECURRING_DETAIL_REFERENCE = "recurringDetailReference"; -export const STORE_DETAILS = "storeDetails"; - -export const MD = "MD"; -export const PAREQ = "PaReq"; - -export const TYPE_SCHEME = "scheme"; - -export const IDEMPOTENCY_KEY = "Idempotency-Key"; -export const ACCEPT_CHARSET = "Accept-Charset"; -export const USER_AGENT = "User-Agent"; -export const METHOD_POST = "POST"; -export const CONTENT_TYPE = "Content-Type"; -export const API_KEY = "X-API-Key"; -export const APPLICATION_JSON_TYPE = "application/json"; diff --git a/src/typings/enums/environment.ts b/src/typings/enums/environment.ts index 6d1fa7f..8cc29bd 100644 --- a/src/typings/enums/environment.ts +++ b/src/typings/enums/environment.ts @@ -19,4 +19,5 @@ * See the LICENSE file for more info. */ -export type Environment = "LIVE" | "TEST"; +declare type Environment = "LIVE" | "TEST" + diff --git a/src/typings/enums/vatCategory.ts b/src/typings/enums/vatCategory.ts index 25bb15e..1df3b68 100644 --- a/src/typings/enums/vatCategory.ts +++ b/src/typings/enums/vatCategory.ts @@ -18,10 +18,8 @@ * This file is open source and available under the MIT license. * See the LICENSE file for more info. */ -enum VatCategory { +declare enum VatCategory { HIGH = "High", LOW = "Low", NONE = "None", } - -export default VatCategory; diff --git a/src/typings/marketPayAccount.ts b/src/typings/marketPayAccount.ts new file mode 100644 index 0000000..809a42b --- /dev/null +++ b/src/typings/marketPayAccount.ts @@ -0,0 +1,1339 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of MarketPay Account: v5 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IMarketPayAccount { + export interface Account { + /** + * The code of the account. + */ + accountCode?: string; + /** + * The beneficiary of the account. + */ + beneficiaryAccount?: string; + /** + * The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user. + */ + beneficiaryMerchantReference?: string; + /** + * A description of the account. + */ + description?: string; + /** + * A set of key and value pairs for general use by the merchant. + * The keys do not have specific names and may be used for storing miscellaneous data as desired. + * > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + */ + metadata?: { + }; + /** + * The account's payout schedule. + */ + payoutSchedule?: IMarketPayAccount.PayoutScheduleResponse; + /** + * The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ + status?: string; + } + export interface AccountEvent { + /** + * The event. + * >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. + * For more information, refer to [Verification checks](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks). + */ + event: "InactivateAccount" | "RefundNotPaidOutTransfers"; + /** + * The date on which the event will take place. + */ + executionDate: string; // date-time + /** + * The reason why this event has been created. + */ + reason: string; + } + export interface AccountHolderDetails { + /** + * The address of the account holder. + */ + address?: IMarketPayAccount.ViasAddress; + /** + * Each of the bank accounts associated with the account holder. + * > Each array entry should represent one bank account. + * > For comprehensive detail regarding the required `BankAccountDetail` fields, please refer to the [KYC Verification documentation](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks). + */ + bankAccountDetails?: IMarketPayAccount.BankAccountDetail[]; + /** + * Details applicable to `Business` legal entities. + * Populated only if the account holder's legal entity is of type `Business`. + * > Required when being used in a `/createAccountHolder` request in which the legal entity is `Business`. + */ + businessDetails?: IMarketPayAccount.BusinessDetails; + /** + * The email address of the account holder. + */ + email: string; + /** + * The phone number of the account holder provided as a single string. It will be handled as a landline phone. + * **Examples:** "0031 6 11 22 33 44", "+316/1122-3344", "(0031) 611223344" + */ + fullPhoneNumber: string; + /** + * Details applicable to `Individual` legal entities. + * Populated only if the account holder's legal entity is of type `Individual`. + * > Required when being used in a `/createAccountHolder` request in which the legal entity is `Individual`. + */ + individualDetails?: IMarketPayAccount.IndividualDetails; + /** + * The Merchant Category Code of the account holder. + * > If not specified in the request, this will be derived from the platform account (which is configured by Adyen). + */ + merchantCategoryCode?: string; + /** + * A set of key and value pairs for general use by the account holder or merchant. + * The keys do not have specific names and may be used for storing miscellaneous data as desired. + * > The values being stored have a maximum length of eighty (80) characters and will be truncated if necessary. + * > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + */ + metadata?: { + }; + /** + * Each of the card tokens associated with the account holder. + * > Each array entry should represent one card token. + * > For comprehensive detail regarding the required `CardToken` fields, please refer to the [KYC Verification documentation](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks). + */ + payoutMethods?: IMarketPayAccount.PayoutMethod[]; + /** + * The URL of the website of the account holder. + */ + webAddress: string; + } + export interface AccountHolderStatus { + /** + * A list of events scheduled for the account holder. + */ + events: IMarketPayAccount.AccountEvent[]; + /** + * The payout state of the account holder. + */ + payoutState: IMarketPayAccount.AccountPayoutState; + /** + * The processing state of the account holder. + */ + processingState: IMarketPayAccount.AccountProcessingState; + /** + * The status of the account holder. + * >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ + status: "Active" | "Closed" | "Inactive" | "Suspended"; + /** + * The reason why the status was assigned to the account holder. + */ + statusReason: string; + } + export interface AccountPayoutState { + /** + * Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts. + */ + allowPayout: boolean; + /** + * The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform). If the `disabled` field is true, this field can be used to explain why. + */ + disableReason: string; + /** + * Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors. + */ + disabled: boolean; + /** + * The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen. + */ + notAllowedReason: string; + /** + * The maximum amount that payouts are limited to. Only applies if payouts are allowed but limited. + */ + payoutLimit: IMarketPayAccount.Amount; + /** + * The payout tier that the account holder occupies. + */ + tierNumber: number; // int32 + } + export interface AccountProcessingState { + /** + * The reason why processing has been disabled. + */ + disableReason: string; + /** + * Indicates whether the processing of payments is allowed. + */ + disabled: boolean; + /** + * The lower bound of the processing tier (i.e., an account holder must have processed at least this amount of money in order to be placed into this tier). + */ + processedFrom: IMarketPayAccount.Amount; + /** + * The upper bound of the processing tier (i.e., an account holder must have processed less than this amount of money in order to be placed into this tier). + */ + processedTo: IMarketPayAccount.Amount; + /** + * The processing tier that the account holder occupies. + */ + tierNumber: number; // int32 + } + export interface Amount { + /** + * 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; // int64 + } + export interface BankAccountDetail { + /** + * The bank account number (without separators). + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + accountNumber?: string; + /** + * The type of bank account. + * Only applicable to bank accounts held in the USA. + * The permitted values are: `checking`, `savings`. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + accountType?: string; + /** + * The name of the bank account. + */ + bankAccountName?: string; + /** + * Merchant reference to the bank account. + */ + bankAccountReference?: string; + /** + * The unique identifier (UUID) of the Bank Account. + * >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. + * + * >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. + * + * >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. + * + * >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + * + */ + bankAccountUUID?: string; + /** + * The bank identifier code. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankBicSwift?: string; + /** + * The city in which the bank branch is located. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankCity?: string; + /** + * The bank code of the banking institution with which the bank account is registered. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankCode?: string; + /** + * The name of the banking institution with which the bank account is held. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankName?: string; + /** + * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: + * * United States - Routing number + * * United Kingdom - Sort code + * * Germany - Bankleitzahl + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + branchCode?: string; + /** + * The check code of the bank account. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + checkCode?: string; + /** + * The two-letter country code in which the bank account is registered. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + countryCode?: string; + /** + * The currency in which the bank account deals. + * >The permitted currency codes are defined in ISO-4217 (e.g. 'EUR'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + currencyCode?: string; + /** + * The international bank account number. + * >The IBAN standard is defined in ISO-13616. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + iban?: string; + /** + * The city of residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerCity?: string; + /** + * The country code of the country of residence of the bank account owner. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerCountryCode?: string; + /** + * The date of birth of the bank account owner. + * + */ + ownerDateOfBirth?: string; + /** + * The house name or number of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerHouseNumberOrName?: string; + /** + * The name of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerName?: string; + /** + * The country code of the country of nationality of the bank account owner. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerNationality?: string; + /** + * The postal code of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerPostalCode?: string; + /** + * The state of residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerState?: string; + /** + * The street name of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerStreet?: string; + /** + * If set to true, the bank account is a primary account. + */ + primaryAccount?: boolean; + /** + * The tax ID number. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + taxId?: string; + /** + * The URL to be used for bank account verification. + * This may be generated on bank account creation. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + urlForVerification?: string; + } + export interface BusinessDetails { + /** + * The registered name of the company (if it differs from the legal name of the company). + */ + doingBusinessAs?: string; + /** + * The jurisdiction of incorporation of the company. + * >Two (2) characters for a business in the USA or Canada, or a maximum of three (3) characters for an address in all other countries, or 'FEDERAL' + */ + incorporatedAt?: string; + /** + * The legal name of the company. + */ + legalBusinessName?: string; + /** + * The registration number of the company. + */ + registrationNumber?: string; + /** + * Each of the shareholders associated with the company. + * Each array entry should represent one shareholder. + */ + shareholders?: IMarketPayAccount.ShareholderContact[]; + /** + * The tax ID of the company. + */ + taxId?: string; + } + export interface CloseAccountHolderRequest { + /** + * The code of the Account Holder to be closed. + */ + accountHolderCode: string; + } + export interface CloseAccountHolderResponse { + /** + * The new status of the Account Holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface CloseAccountRequest { + /** + * The code of account to be closed. + */ + accountCode: string; + } + export interface CloseAccountResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The new status of the account. + * >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ + status: "Active" | "Closed" | "Inactive" | "Suspended"; + } + export interface CreateAccountHolderRequest { + /** + * The desired code of the prospective account holder. + * > Must be between three (3) and fifty (50) characters long. Only letters, digits, and hyphens (-) are permitted. + */ + accountHolderCode: string; + /** + * The details of the prospective account holder. + */ + accountHolderDetails: IMarketPayAccount.AccountHolderDetails; + /** + * If set to true, an account with the default options is created for this account holder. + * **Default Value:** true + */ + createDefaultAccount?: boolean; + /** + * A description of the prospective account holder. + */ + description?: string; + /** + * The entity type. + * Permitted values: `Business`, `Individual` + * + * If an account holder is 'Business', then `accountHolderDetails.businessDetails` must be provided, as well as at least one entry in the `accountHolderDetails.businessDetails.shareholders` list. + * + * If an account holder is 'Individual', then `accountHolderDetails.individualDetails` must be provided. + */ + legalEntity: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals. + */ + primaryCurrency?: string; + /** + * The starting [processing tier](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks#tiers) for the prospective account holder. + */ + processingTier?: number; // int32 + } + export interface CreateAccountHolderResponse { + /** + * The code of a new account created for the account holder. + */ + accountCode?: string; + /** + * The code of the new account holder. + */ + accountHolderCode: string; + /** + * Details of the new account holder. + */ + accountHolderDetails: IMarketPayAccount.AccountHolderDetails; + /** + * The status of the new account holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * The description of the new account holder. + */ + description?: string; + /** + * A list of fields that caused the `/createAccountHolder` request to fail. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The type of legal entity of the new account holder. + */ + legalEntity: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals. + */ + primaryCurrency?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The details of KYC Verification of the account holder. + */ + verification: IMarketPayAccount.KYCVerificationResult; + } + export interface CreateAccountRequest { + /** + * The code of Account Holder under which to create the account. + */ + accountHolderCode: string; + /** + * A description of the account. + */ + description?: string; + /** + * A set of key and value pairs for general use by the merchant. + * The keys do not have specific names and may be used for storing miscellaneous data as desired. + * > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + */ + metadata?: { + }; + /** + * The payout schedule of the prospective account. + * >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. + */ + payoutSchedule?: "BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT" | "BIWEEKLY_ON_1ST_AND_15TH_AT_NOON" | "DAILY" | "DAILY_6PM" | "DAILY_AU" | "DAILY_EU" | "DAILY_US" | "DEFAULT" | "EVERY_6_HOURS_FROM_MIDNIGHT" | "HOLD" | "MONTHLY" | "WEEKLY" | "WEEKLY_ON_TUE_FRI_MIDNIGHT" | "YEARLY"; + /** + * The reason for the payout schedule choice. + * >Required if the payoutSchedule is `HOLD`. + */ + payoutScheduleReason?: string; + } + export interface CreateAccountResponse { + /** + * The code of the new account. + */ + accountCode: string; + /** + * The code of the account holder. + */ + accountHolderCode: string; + /** + * The description of the account. + */ + description?: string; + /** + * A list of fields that caused the `/createAccount` request to fail. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + metadata?: { + [name: string]: string; + }; + /** + * The payout schedule of the account. + */ + payoutSchedule?: IMarketPayAccount.PayoutScheduleResponse; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The status of the account. + * >Permitted values: `Active`. + */ + status: "Active" | "Closed" | "Inactive" | "Suspended"; + } + export interface DeleteBankAccountRequest { + /** + * The code of the Account Holder from which to delete the Bank Account(s). + */ + accountHolderCode: string; + /** + * The code(s) of the Bank Accounts to be deleted. + */ + bankAccountUUIDs: string[]; + } + export interface DeletePayoutMethodRequest { + /** + * The code of the account holder, from which to delete the payout methods. + */ + accountHolderCode: string; + /** + * The codes of the payout methods to be deleted. + */ + payoutMethodCodes: string[]; + } + export interface DeleteShareholderRequest { + /** + * The code of the Account Holder from which to delete the Shareholders. + */ + accountHolderCode: string; + /** + * The code(s) of the Shareholders to be deleted. + */ + shareholderCodes: string[]; + } + export interface DocumentDetail { + /** + * The code of account holder, to which the document applies. + */ + accountHolderCode: string; + /** + * The unique ID of the Bank Account to which the document applies. + * >Required if the documentType is `BANK_STATEMENT` (i.e., a document is being submitted in order to verify a bank account). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on when a document should be submitted in order to verify a bank account. + */ + bankAccountUUID?: string; + /** + * Description of the document. + */ + description?: string; + /** + * The type of a document. Permitted values: + * * `BANK_STATEMENT` denotes an image containing a bank statement or other document proving ownership of a specific bank account. + * * `PASSPORT` denotes an image containing the identity page(s) of a passport. + * * `ID_CARD_FRONT` denotes an image containing only the front of the ID card. In order for a document to be usable, both the `ID_CARD_FRONT` and `ID_CARD_BACK` must be submitted. + * * `ID_CARD_BACK` denotes an image containing only the back of the ID card. In order for a document to be usable, both the `ID_CARD_FRONT` and `ID_CARD_BACK` must be submitted. + * * `DRIVING_LICENCE_FRONT` denotes an image containing only the front of the driving licence. In order for a document to be usable, both the `DRIVING_LICENCE_FRONT` and `DRIVING_LICENCE_BACK` must be submitted. + * * `DRIVING_LICENCE_BACK` denotes an image containing only the back of the driving licence. In order for a document to be usable, both the `DRIVING_LICENCE_FRONT` and `DRIVING_LICENCE_FRONT` must be submitted. + * + * >Please refer to [Verification checks](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks) for details on when each document type should be submitted. + */ + documentType: "BANK_STATEMENT" | "BSN" | "COMPANY_REGISTRATION_SCREENING" | "DRIVING_LICENCE" | "DRIVING_LICENCE_BACK" | "DRIVING_LICENCE_FRONT" | "ID_CARD" | "ID_CARD_BACK" | "ID_CARD_FRONT" | "PASSPORT" | "SSN" | "SUPPORTING_DOCUMENTS"; + /** + * Filename of the document. + */ + filename: string; + /** + * The code of the shareholder, to which the document applies. + * >Required if the account holder referred to by the `accountHolderCode` has a `legalEntity` of type `Business` and the `documentType` is either `PASSPORT`, `ID_CARD_FRONT`, `ID_CARD_BACK`, `DRIVING_LICENCE_FRONT`, `DRIVING_LICENCE_BACK` (i.e. a document is being submitted in order to verify a shareholder). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on when a document should be submitted in order to verify a shareholder. + */ + shareholderCode?: string; + } + export interface ErrorFieldType { + /** + * The validation error code. + */ + errorCode?: number; // int32 + /** + * A description of the validation error. + */ + errorDescription?: string; + /** + * The type of error field. + */ + fieldType?: IMarketPayAccount.FieldType; + } + export interface FieldType { + /** + * The full name of the property. + */ + field?: string; + /** + * The type of the field. + */ + fieldName?: "accountCode" | "accountHolderCode" | "accountHolderDetails" | "accountNumber" | "accountStateType" | "accountStatus" | "accountType" | "address" | "bankAccount" | "bankAccountCode" | "bankAccountName" | "bankAccountUUID" | "bankBicSwift" | "bankCity" | "bankCode" | "bankName" | "bankStatement" | "branchCode" | "businessContact" | "cardToken" | "checkCode" | "city" | "country" | "countryCode" | "currency" | "currencyCode" | "dateOfBirth" | "description" | "destinationAccountCode" | "document" | "documentExpirationDate" | "documentIssuerCountry" | "documentIssuerState" | "documentName" | "documentNumber" | "documentType" | "doingBusinessAs" | "drivingLicence" | "drivingLicenceBack" | "drivingLicense" | "email" | "firstName" | "fullPhoneNumber" | "gender" | "hopWebserviceUser" | "houseNumberOrName" | "iban" | "idCard" | "idCardBack" | "idCardFront" | "idNumber" | "identityDocument" | "incorporatedAt" | "individualDetails" | "lastName" | "legalBusinessName" | "legalEntity" | "legalEntityType" | "merchantAccount" | "merchantCategoryCode" | "merchantReference" | "microDeposit" | "name" | "nationality" | "originalReference" | "ownerCity" | "ownerCountryCode" | "ownerHouseNumberOrName" | "ownerName" | "ownerPostalCode" | "ownerState" | "ownerStreet" | "passport" | "passportNumber" | "payoutMethodCode" | "personalData" | "phoneCountryCode" | "phoneNumber" | "postalCode" | "primaryCurrency" | "reason" | "registrationNumber" | "returnUrl" | "schedule" | "shareholder" | "shareholderCode" | "socialSecurityNumber" | "sourceAccountCode" | "stateOrProvince" | "status" | "store" | "storeDetail" | "storeName" | "storeReference" | "street" | "taxId" | "tier" | "tierNumber" | "transferCode" | "unknown" | "value" | "virtualAccount" | "visaNumber" | "webAddress"; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + shareholderCode?: string; + } + export interface GenericResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface GetAccountHolderRequest { + /** + * The code of the account of which to retrieve the details. + * > Required if no `accountHolderCode` is provided. + */ + accountCode?: string; + /** + * The code of the account holder of which to retrieve the details. + * > Required if no `accountCode` is provided. + */ + accountHolderCode?: string; + /** + * True if the request should return the account holder details + */ + showDetails?: boolean; + } + export interface GetAccountHolderResponse { + /** + * The code of the account holder. + */ + accountHolderCode: string; + /** + * Details of the account holder. + */ + accountHolderDetails: IMarketPayAccount.AccountHolderDetails; + /** + * The status of the account holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * A list of the accounts under the account holder. + */ + accounts?: IMarketPayAccount.Account[]; + /** + * The description of the account holder. + */ + description?: string; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The legal entity of the account holder. + */ + legalEntity: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals. + */ + primaryCurrency?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The time that shows how up to date is the information in the response. + */ + systemUpToDateTime?: string; // date-time + /** + * The details of KYC Verification of the account holder. + */ + verification: IMarketPayAccount.KYCVerificationResult; + } + export interface GetAccountHolderStatusResponse { + /** + * The code of the Account Holder. + */ + accountHolderCode: string; + /** + * The status of the Account Holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface GetUploadedDocumentsRequest { + /** + * The code of the Account Holder for which to retrieve the documents. + */ + accountHolderCode: string; + /** + * The code of the Bank Account for which to retrieve the documents. + */ + bankAccountUUID?: string; + /** + * The code of the Shareholder for which to retrieve the documents. + */ + shareholderCode?: string; + } + export interface GetUploadedDocumentsResponse { + /** + * A list of the documents and their details. + */ + documentDetails?: IMarketPayAccount.DocumentDetail[]; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface IndividualDetails { + /** + * The name of the individual. + * >Make sure your account holder registers using the name shown on their Photo ID. + */ + name?: IMarketPayAccount.ViasName; + /** + * Personal information of the individual. + */ + personalData?: IMarketPayAccount.ViasPersonalData; + } + export interface KYCBankAccountCheckResult { + /** + * The unique ID of the bank account to which the check applies. + */ + bankAccountUUID: string; + /** + * A list of the checks and their statuses. + */ + checks: IMarketPayAccount.KYCCheckStatusData[]; + } + export interface KYCCheckResult { + /** + * A list of the checks and their statuses. + */ + checks: IMarketPayAccount.KYCCheckStatusData[]; + } + export interface KYCCheckStatusData { + /** + * A list of the fields required for execution of the check. + */ + requiredFields: string[]; + /** + * The status of the check. + * >Permitted Values: `DATA_PROVIDED`, `PASSED`, `PENDING`, `AWAITING_DATA`, `RETRY_LIMIT_REACHED`, `INVALID_DATA`, `FAILED`. + */ + status: "AWAITING_DATA" | "DATA_PROVIDED" | "FAILED" | "INVALID_DATA" | "PASSED" | "PENDING" | "PENDING_REVIEW" | "RETRY_LIMIT_REACHED" | "UNCHECKED"; + /** + * A summary of the execution of the check. + */ + summary: IMarketPayAccount.KYCCheckSummary; + /** + * The type of check. + * >Permitted Values: `COMPANY_VERIFICATION`, `IDENTITY_VERIFICATION`, `PASSPORT_VERIFICATION`, `BANK_ACCOUNT_VERIFICATION`, `NONPROFIT_VERIFICATION`. + */ + type: "BANK_ACCOUNT_VERIFICATION" | "COMPANY_VERIFICATION" | "IDENTITY_VERIFICATION" | "NONPROFIT_VERIFICATION" | "PASSPORT_VERIFICATION"; + } + export interface KYCCheckSummary { + /** + * The code of the check. + */ + kycCheckCode?: number; // int32 + /** + * A description of the check. + */ + kycCheckDescription?: string; + } + export interface KYCShareholderCheckResult { + /** + * A list of the checks and their statuses. + */ + checks: IMarketPayAccount.KYCCheckStatusData[]; + /** + * The code of the shareholder to which the check applies. + */ + shareholderCode: string; + } + export interface KYCVerificationResult { + /** + * The result(s) of the checks on the account holder. + */ + accountHolder: IMarketPayAccount.KYCCheckResult; + /** + * The result(s) of the checks on the bank account(s). + */ + bankAccounts: IMarketPayAccount.KYCBankAccountCheckResult[]; + /** + * The result(s) of the checks on the shareholder(s). + */ + shareholders: IMarketPayAccount.KYCShareholderCheckResult[]; + } + export interface PayoutMethod { + merchantAccount: string; + payoutMethodCode?: string; + payoutMethodType?: "CardToken"; + recurringDetailReference: string; + shopperReference: string; + } + export interface PayoutScheduleResponse { + /** + * The date of the next scheduled payout. + */ + nextScheduledPayout: string; // date-time + /** + * The payout schedule of the account. + * >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. + */ + schedule: "BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT" | "BIWEEKLY_ON_1ST_AND_15TH_AT_NOON" | "DAILY" | "DAILY_6PM" | "DAILY_AU" | "DAILY_EU" | "DAILY_US" | "DEFAULT" | "EVERY_6_HOURS_FROM_MIDNIGHT" | "HOLD" | "MONTHLY" | "WEEKLY" | "WEEKLY_ON_TUE_FRI_MIDNIGHT" | "YEARLY"; + } + export interface PerformVerificationRequest { + /** + * The code of the account holder to verify. + */ + accountHolderCode: string; + /** + * The state required for the account holder. + * > Permitted values: `Processing`, `Payout`. + */ + accountStateType: "LimitedPayout" | "LimitedProcessing" | "LimitlessPayout" | "LimitlessProcessing" | "Payout" | "Processing"; + /** + * The tier required for the account holder. + */ + tier: number; // int32 + } + export interface PersonalDocumentData { + /** + * The expiration date of the document. + * The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). + */ + expirationDate?: string; + /** + * The two-character country code of the issuer. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + */ + issuerCountry?: string; + /** + * The state issued the document (if applicable) + */ + issuerState?: string; + /** + * The number of the document. Delete the given type if the value empty. + */ + number: string; + /** + * The type of the document. More then one item pert type does not allowed. + * Valid values: ID, PASSPORT, VISA, DRIVINGLICENSE + */ + type: "DRIVINGLICENSE" | "ID" | "PASSPORT" | "SOCIALSECURITY" | "VISA"; + } + namespace Post { + export type RequestBody = IMarketPayAccount.UploadDocumentRequest; + namespace Responses { + export type $200 = IMarketPayAccount.UpdateAccountHolderResponse; + } + } + export interface ShareholderContact { + /** + * The address of the contact. + */ + address?: IMarketPayAccount.ViasAddress; + /** + * The e-mail address of the contact. + */ + email?: string; + /** + * The phone number of the contact provided as a single string. It will be handled as a landline phone. + * **Examples:** "0031 6 11 22 33 44", "+316/1122-3344", "(0031) 611223344" + */ + fullPhoneNumber?: string; + /** + * The name of the contact. + */ + name?: IMarketPayAccount.ViasName; + /** + * Personal data of the Shareholder. + */ + personalData?: IMarketPayAccount.ViasPersonalData; + /** + * The phone number of the contact. + */ + phoneNumber?: IMarketPayAccount.ViasPhoneNumber; + /** + * The unique identifier (UUID) of the Shareholder. + * >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** + * + * >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** + * + * >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** + * + * >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** + * + */ + shareholderCode?: string; + /** + * Merchant reference to the Shareholder. + */ + shareholderReference?: string; + /** + * The URL of the website of the contact. + */ + webAddress?: string; + } + export interface SuspendAccountHolderRequest { + /** + * The code of the account holder to be suspended. + */ + accountHolderCode: string; + } + export interface SuspendAccountHolderResponse { + /** + * The new status of the Account Holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface UnSuspendAccountHolderRequest { + /** + * The code of the account holder to be reinstated. + */ + accountHolderCode: string; + } + export interface UnSuspendAccountHolderResponse { + /** + * The new status of the Account Holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface UpdateAccountHolderRequest { + /** + * The code of the Account Holder to be updated. + */ + accountHolderCode: string; + /** + * The details to which the Account Holder should be updated. + * + * Required if a processingTier is not provided. + */ + accountHolderDetails?: IMarketPayAccount.AccountHolderDetails; + /** + * The description to which the Account Holder should be updated. + */ + description?: string; + /** + * The entity type. + * Permitted values: `Business`, `Individual` + * + * If an account holder is 'Business', then `accountHolderDetails.businessDetails` must be provided, as well as at least one entry in the `accountHolderDetails.businessDetails.shareholders` list. + * + * If an account holder is 'Individual', then `accountHolderDetails.individualDetails` must be provided. + */ + legalEntity?: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The primary three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), to which the account holder should be updated. + */ + primaryCurrency?: string; + /** + * The processing tier to which the Account Holder should be updated. + * >The processing tier can not be lowered through this request. + * + * >Required if accountHolderDetails are not provided. + */ + processingTier?: number; // int32 + } + export interface UpdateAccountHolderResponse { + /** + * The code of the account holder. + */ + accountHolderCode?: string; + /** + * Details of the account holder. + */ + accountHolderDetails?: IMarketPayAccount.AccountHolderDetails; + /** + * The new status of the account holder. + */ + accountHolderStatus: IMarketPayAccount.AccountHolderStatus; + /** + * The description of the account holder. + */ + description?: string; + /** + * in case the account holder has not been updated, contains account holder fields, that did not pass the validation. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + /** + * The legal entity of the account holder. + */ + legalEntity: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals. + */ + primaryCurrency?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The details of KYC Verification of the account holder. + */ + verification: IMarketPayAccount.KYCVerificationResult; + } + export interface UpdateAccountHolderStateRequest { + /** + * The code of the Account Holder on which to update the state. + */ + accountHolderCode: string; + /** + * If true, disable the requested state. If false, enable the requested state. + */ + disable: boolean; + /** + * The reason that the state is being updated. + * >Required if the state is being disabled. + */ + reason?: string; + /** + * The state to be updated. + * >Permitted values are: `Processing`, `Payout` + */ + stateType: "LimitedPayout" | "LimitedProcessing" | "LimitlessPayout" | "LimitlessProcessing" | "Payout" | "Processing"; + } + export interface UpdateAccountRequest { + /** + * The code of the account to update. + */ + accountCode: string; + /** + * A description of the account. + */ + description?: string; + /** + * A set of key and value pairs for general use by the merchant. + * The keys do not have specific names and may be used for storing miscellaneous data as desired. + * > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + */ + metadata?: { + }; + /** + * The details of the payout schedule, to which the account should be updated. + */ + payoutSchedule?: IMarketPayAccount.UpdatePayoutScheduleRequest; + } + export interface UpdateAccountResponse { + /** + * The code of the account. + */ + accountCode: string; + /** + * The description of the account. + */ + description?: string; + /** + * A list of fields that caused the `/updateAccount` request to fail. + */ + invalidFields?: IMarketPayAccount.ErrorFieldType[]; + metadata?: { + [name: string]: string; + }; + /** + * The payout schedule of the account. + */ + payoutSchedule: IMarketPayAccount.PayoutScheduleResponse; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface UpdatePayoutScheduleRequest { + /** + * Direction on how to handle any payouts that have already been scheduled. + * Permitted values: + * * `CLOSE` will close the existing batch of payouts. + * * `UPDATE` will reschedule the existing batch to the new schedule. + * * `NOTHING` (**default**) will allow the payout to proceed. + */ + action?: "CLOSE" | "NOTHING" | "UPDATE"; + /** + * The reason for the payout schedule update. + * > This field is required when the `schedule` parameter is set to `HOLD`. + */ + reason?: string; + /** + * The payout schedule to which the account is to be updated. + * Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. + * `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur. + */ + schedule: "BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT" | "BIWEEKLY_ON_1ST_AND_15TH_AT_NOON" | "DAILY" | "DAILY_6PM" | "DAILY_AU" | "DAILY_EU" | "DAILY_US" | "DEFAULT" | "EVERY_6_HOURS_FROM_MIDNIGHT" | "HOLD" | "MONTHLY" | "WEEKLY" | "WEEKLY_ON_TUE_FRI_MIDNIGHT" | "YEARLY"; + } + export interface UploadDocumentRequest { + /** + * The content of the document as represented by a Base64-encoded string. + * + * To learn about requirements, see [Bank account check](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks/bank-account-check#requirements) and [Photo ID check](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks/photo-id-check#requirements). + */ + documentContent: string; // byte + /** + * Details of the document being submitted. + */ + documentDetail: IMarketPayAccount.DocumentDetail; + } + export interface ViasAddress { + /** + * The name of the city. + * >Required if either `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. + */ + 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 `country` as `ZZ`. + */ + country: 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; + /** + * 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; + /** + * 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; + } + export interface ViasName { + /** + * The first name. + */ + firstName: string; + /** + * The gender. + * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + gender: "MALE" | "FEMALE" | "UNKNOWN"; + /** + * The name's infix, if applicable. + * >A maximum length of twenty (20) characters is imposed. + */ + infix?: string; + /** + * The last name. + */ + lastName: string; + } + export interface ViasPersonalData { + /** + * The date of birth of the person. + * The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). + */ + dateOfBirth?: string; + /** + * Key value pairs of document type and identify numbers + */ + documentData?: IMarketPayAccount.PersonalDocumentData[]; + /** + * The nationality of the person represented by a two-character country code. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + */ + nationality?: string; + } + export interface ViasPhoneNumber { + /** + * The two-character country code of the phone number. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + */ + phoneCountryCode: string; + /** + * The phone number. + * >The inclusion of the phone number country code is not necessary. + */ + phoneNumber: string; + /** + * The type of the phone number. + * >The following values are permitted: `Landline`, `Mobile`, `SIP`, `Fax`. + */ + phoneType?: "Fax" | "Landline" | "Mobile" | "SIP"; + } +} diff --git a/src/typings/marketPayFund.ts b/src/typings/marketPayFund.ts new file mode 100644 index 0000000..660beac --- /dev/null +++ b/src/typings/marketPayFund.ts @@ -0,0 +1,615 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of MarketPay Fund: v5 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IMarketPayFund { + export interface AccountDetailBalance { + /** + * The code of the account that holds the balance. + */ + accountCode?: string; + /** + * Details of the balance held by the account. + */ + detailBalance?: IMarketPayFund.DetailBalance; + } + export interface AccountHolderBalanceRequest { + /** + * The code of the Account Holder of which to retrieve the balance. + */ + accountHolderCode: string; + } + export interface AccountHolderBalanceResponse { + /** + * A list of each account and their balances. + */ + balancePerAccount?: IMarketPayFund.AccountDetailBalance[]; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The total balance of the account holder. + */ + totalBalance?: IMarketPayFund.DetailBalance; + } + export interface AccountHolderTransactionListRequest { + /** + * The code of the account holder that owns the account(s) of which retrieve the transaction list. + */ + accountHolderCode: string; + /** + * A list of accounts to include in the transaction list. If left blank, the last fifty (50) transactions for all accounts of the account holder will be included. + */ + transactionListsPerAccount?: IMarketPayFund.TransactionListForAccount[]; + /** + * A list of statuses to include in the transaction list. If left blank, all transactions will be included. + * >Permitted values: + * >* `PendingCredit` - a pending balance credit. + * >* `CreditFailed` - a pending credit failure; the balance will not be credited. + * >* `Credited` - a credited balance. + * >* `PendingDebit` - a pending balance debit (e.g., a refund). + * >* `DebitFailed` - a pending debit failure; the balance will not be debited. + * >* `Debited` - a debited balance (e.g., a refund). + * >* `DebitReversedReceived` - a pending refund reversal. + * >* `DebitedReversed` - a reversed refund. + * >* `ChargebackReceived` - a received chargeback request. + * >* `Chargeback` - a processed chargeback. + * >* `ChargebackReversedReceived` - a pending chargeback reversal. + * >* `ChargebackReversed` - a reversed chargeback. + * >* `Converted` - converted. + * >* `ManualCorrected` - manual booking/adjustment by Adyen. + * >* `Payout` - a payout. + * >* `PayoutReversed` - a reversed payout. + * >* `PendingFundTransfer` - a pending transfer of funds from one account to another. + * >* `FundTransfer` - a transfer of funds from one account to another. + */ + transactionStatuses?: ("Chargeback" | "ChargebackCorrection" | "ChargebackCorrectionReceived" | "ChargebackReceived" | "ChargebackReversed" | "ChargebackReversedReceived" | "Converted" | "CreditFailed" | "CreditReversed" | "CreditReversedReceived" | "Credited" | "DebitFailed" | "DebitReversedReceived" | "Debited" | "DebitedReversed" | "FundTransfer" | "FundTransferReversed" | "ManualCorrected" | "Payout" | "PayoutReversed" | "PendingCredit" | "PendingDebit" | "PendingFundTransfer" | "SecondChargeback" | "SecondChargebackReceived")[]; + } + export interface AccountHolderTransactionListResponse { + /** + * A list of the transactions. + */ + accountTransactionLists?: IMarketPayFund.AccountTransactionList[]; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface AccountTransactionList { + /** + * The code of the account. + */ + accountCode?: string; + /** + * Indicates whether there is a next page of transactions available. + */ + hasNextPage?: boolean; + /** + * The list of transactions. + */ + transactions?: IMarketPayFund.Transaction[]; + } + export interface Amount { + /** + * 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; // int64 + } + export interface BankAccountDetail { + /** + * The bank account number (without separators). + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + accountNumber?: string; + /** + * The type of bank account. + * Only applicable to bank accounts held in the USA. + * The permitted values are: `checking`, `savings`. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + accountType?: string; + /** + * The name of the bank account. + */ + bankAccountName?: string; + /** + * Merchant reference to the bank account. + */ + bankAccountReference?: string; + /** + * The unique identifier (UUID) of the Bank Account. + * >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. + * + * >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. + * + * >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. + * + * >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + * + */ + bankAccountUUID?: string; + /** + * The bank identifier code. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankBicSwift?: string; + /** + * The city in which the bank branch is located. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankCity?: string; + /** + * The bank code of the banking institution with which the bank account is registered. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankCode?: string; + /** + * The name of the banking institution with which the bank account is held. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankName?: string; + /** + * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: + * * United States - Routing number + * * United Kingdom - Sort code + * * Germany - Bankleitzahl + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + branchCode?: string; + /** + * The check code of the bank account. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + checkCode?: string; + /** + * The two-letter country code in which the bank account is registered. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + countryCode?: string; + /** + * The currency in which the bank account deals. + * >The permitted currency codes are defined in ISO-4217 (e.g. 'EUR'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + currencyCode?: string; + /** + * The international bank account number. + * >The IBAN standard is defined in ISO-13616. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + iban?: string; + /** + * The city of residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerCity?: string; + /** + * The country code of the country of residence of the bank account owner. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerCountryCode?: string; + /** + * The date of birth of the bank account owner. + * + */ + ownerDateOfBirth?: string; + /** + * The house name or number of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerHouseNumberOrName?: string; + /** + * The name of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerName?: string; + /** + * The country code of the country of nationality of the bank account owner. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerNationality?: string; + /** + * The postal code of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerPostalCode?: string; + /** + * The state of residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerState?: string; + /** + * The street name of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerStreet?: string; + /** + * If set to true, the bank account is a primary account. + */ + primaryAccount?: boolean; + /** + * The tax ID number. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + taxId?: string; + /** + * The URL to be used for bank account verification. + * This may be generated on bank account creation. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + urlForVerification?: string; + } + export interface DetailBalance { + /** + * The list of balances held by the account. + */ + balance?: IMarketPayFund.Amount[]; + /** + * The list of on hold balances held by the account. + */ + onHoldBalance?: IMarketPayFund.Amount[]; + /** + * The list of pending balances held by the account. + */ + pendingBalance?: IMarketPayFund.Amount[]; + } + export interface ErrorFieldType { + /** + * The validation error code. + */ + errorCode?: number; // int32 + /** + * A description of the validation error. + */ + errorDescription?: string; + /** + * The type of error field. + */ + fieldType?: IMarketPayFund.FieldType; + } + export interface FieldType { + /** + * The full name of the property. + */ + field?: string; + /** + * The type of the field. + */ + fieldName?: "accountCode" | "accountHolderCode" | "accountHolderDetails" | "accountNumber" | "accountStateType" | "accountStatus" | "accountType" | "address" | "bankAccount" | "bankAccountCode" | "bankAccountName" | "bankAccountUUID" | "bankBicSwift" | "bankCity" | "bankCode" | "bankName" | "bankStatement" | "branchCode" | "businessContact" | "cardToken" | "checkCode" | "city" | "country" | "countryCode" | "currency" | "currencyCode" | "dateOfBirth" | "description" | "destinationAccountCode" | "document" | "documentExpirationDate" | "documentIssuerCountry" | "documentIssuerState" | "documentName" | "documentNumber" | "documentType" | "doingBusinessAs" | "drivingLicence" | "drivingLicenceBack" | "drivingLicense" | "email" | "firstName" | "fullPhoneNumber" | "gender" | "hopWebserviceUser" | "houseNumberOrName" | "iban" | "idCard" | "idCardBack" | "idCardFront" | "idNumber" | "identityDocument" | "incorporatedAt" | "individualDetails" | "lastName" | "legalBusinessName" | "legalEntity" | "legalEntityType" | "merchantAccount" | "merchantCategoryCode" | "merchantReference" | "microDeposit" | "name" | "nationality" | "originalReference" | "ownerCity" | "ownerCountryCode" | "ownerHouseNumberOrName" | "ownerName" | "ownerPostalCode" | "ownerState" | "ownerStreet" | "passport" | "passportNumber" | "payoutMethodCode" | "personalData" | "phoneCountryCode" | "phoneNumber" | "postalCode" | "primaryCurrency" | "reason" | "registrationNumber" | "returnUrl" | "schedule" | "shareholder" | "shareholderCode" | "socialSecurityNumber" | "sourceAccountCode" | "stateOrProvince" | "status" | "store" | "storeDetail" | "storeReference" | "street" | "taxId" | "tier" | "tierNumber" | "transferCode" | "unknown" | "value" | "virtualAccount" | "visaNumber" | "webAddress"; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + shareholderCode?: string; + } + export interface PayoutAccountHolderRequest { + /** + * The code of the account from which the payout is to be made. + */ + accountCode: string; + /** + * The code of the Account Holder who owns the account from which the payout is to be made. + * The Account Holder is the party to which the payout will be made. + */ + accountHolderCode: string; + /** + * The amount to pay out. + */ + amount: IMarketPayFund.Amount; + /** + * The unique ID of the Bank Account held by the Account Holder to which the payout is to be made. + * If left blank, a bank account is automatically selected. + */ + bankAccountUUID?: string; + /** + * A description of the payout. Maximum 35 characters. + * Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,'+ ";** + */ + description?: string; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + merchantReference?: string; + /** + * The unique ID of the payout method held by the Account Holder to which the payout is to be made. + * If left blank, a payout instrument is automatically selected. + */ + payoutMethodCode?: string; + } + export interface PayoutAccountHolderResponse { + /** + * The unique ID of the Bank Account to which the payout was made. + */ + bankAccountUUID: string; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions. + */ + merchantReference?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + namespace Post { + export type RequestBody = IMarketPayFund.TransferFundsRequest; + namespace Responses { + export type $200 = IMarketPayFund.TransferFundsResponse; + } + } + export interface RefundFundsTransferRequest { + /** + * The amount to be transferred. + */ + amount: IMarketPayFund.Amount; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + merchantReference?: string; + /** + * A PSP reference of the original fund transfer. + */ + originalReference: string; + } + export interface RefundFundsTransferResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The value supplied by the executing user when initiating the transfer refund; may be used to link multiple transactions. + */ + merchantReference?: string; + message?: string; + /** + * A PSP reference of the original fund transfer. + */ + originalReference?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface RefundNotPaidOutTransfersRequest { + /** + * The code of the account from which to perform the refund(s). + */ + accountCode: string; + /** + * The code of the Account Holder which owns the account from which to perform the refund(s). + */ + accountHolderCode: string; + } + export interface RefundNotPaidOutTransfersResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface SetupBeneficiaryRequest { + /** + * The destination account code. + */ + destinationAccountCode: string; + /** + * A value that can be supplied at the discretion of the executing user. + */ + merchantReference: string; + /** + * The benefactor account. + */ + sourceAccountCode: string; + } + export interface SetupBeneficiaryResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface Transaction { + /** + * The amount of the transaction. + */ + amount?: IMarketPayFund.Amount; + /** + * The details of the bank account to where a payout was made. + */ + bankAccountDetail?: IMarketPayFund.BankAccountDetail; + /** + * The merchant reference of a related capture. + */ + captureMerchantReference?: string; + /** + * The psp reference of a related capture. + */ + capturePspReference?: string; + /** + * The date on which the transaction was performed. + */ + creationDate?: string; // date-time + /** + * A description of the transaction. + */ + description?: string; + /** + * The code of the account to which funds were credited during an outgoing fund transfer. + */ + destinationAccountCode?: string; + /** + * The psp reference of the related dispute. + */ + disputePspReference?: string; + /** + * The reason code of a dispute. + */ + disputeReasonCode?: string; + /** + * The merchant reference of a transaction. + */ + merchantReference?: string; + /** + * The psp reference of the related authorisation or transfer. + */ + paymentPspReference?: string; + /** + * The psp reference of the related payout. + */ + payoutPspReference?: string; + /** + * The psp reference of a transaction. + */ + pspReference?: string; + /** + * The code of the account from which funds were debited during an incoming fund transfer. + */ + sourceAccountCode?: string; + /** + * The status of the transaction. + * >Permitted values: `PendingCredit`, `CreditFailed`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`. + */ + transactionStatus?: "Chargeback" | "ChargebackCorrection" | "ChargebackCorrectionReceived" | "ChargebackReceived" | "ChargebackReversed" | "ChargebackReversedReceived" | "Converted" | "CreditFailed" | "CreditReversed" | "CreditReversedReceived" | "Credited" | "DebitFailed" | "DebitReversedReceived" | "Debited" | "DebitedReversed" | "FundTransfer" | "FundTransferReversed" | "ManualCorrected" | "Payout" | "PayoutReversed" | "PendingCredit" | "PendingDebit" | "PendingFundTransfer" | "SecondChargeback" | "SecondChargebackReceived"; + /** + * The transfer code of the transaction. + */ + transferCode?: string; + } + export interface TransactionListForAccount { + /** + * The account for which to retrieve the transactions. + */ + accountCode: string; + /** + * The page of transactions to retrieve. + * Each page lists fifty (50) transactions. The most recent transactions are included on page 1. + */ + page: number; // int32 + } + export interface TransferFundsRequest { + /** + * The amount to be transferred. + */ + amount: IMarketPayFund.Amount; + /** + * The code of the account to which the funds are to be credited. + * >The state of the Account Holder of this account must be Active. + */ + destinationAccountCode: string; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + merchantReference?: string; + /** + * The code of the account from which the funds are to be debited. + * >The state of the Account Holder of this account must be Active and allow payouts. + */ + sourceAccountCode: string; + /** + * The code related to the type of transfer being performed. + * >The permitted codes differ for each platform account and are defined in their service level agreement. + */ + transferCode: string; + } + export interface TransferFundsResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayFund.ErrorFieldType[]; + /** + * The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions. + */ + merchantReference?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } +} diff --git a/src/typings/marketPayHostedOnboardingPage.ts b/src/typings/marketPayHostedOnboardingPage.ts new file mode 100644 index 0000000..958a001 --- /dev/null +++ b/src/typings/marketPayHostedOnboardingPage.ts @@ -0,0 +1,96 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of MarketPay Hosted Onboarding Page: v1 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IMarketPayHostedOnboardingPage { + export interface ErrorFieldType { + /** + * The validation error code. + */ + errorCode?: number; // int32 + /** + * A description of the validation error. + */ + errorDescription?: string; + /** + * The type of error field. + */ + fieldType?: IMarketPayHostedOnboardingPage.FieldType; + } + export interface FieldType { + /** + * The full name of the property. + */ + field?: string; + /** + * The type of the field. + */ + fieldName?: "accountCode" | "accountHolderCode" | "accountHolderDetails" | "accountNumber" | "accountStateType" | "accountStatus" | "accountType" | "address" | "bankAccount" | "bankAccountCode" | "bankAccountName" | "bankAccountUUID" | "bankBicSwift" | "bankCity" | "bankCode" | "bankName" | "bankStatement" | "branchCode" | "businessContact" | "cardToken" | "checkCode" | "city" | "country" | "countryCode" | "currency" | "currencyCode" | "dateOfBirth" | "description" | "destinationAccountCode" | "document" | "documentExpirationDate" | "documentIssuerCountry" | "documentIssuerState" | "documentName" | "documentNumber" | "documentType" | "doingBusinessAs" | "drivingLicence" | "drivingLicenceBack" | "drivingLicense" | "email" | "firstName" | "fullPhoneNumber" | "gender" | "hopWebserviceUser" | "houseNumberOrName" | "iban" | "idCard" | "idCardBack" | "idCardFront" | "idNumber" | "identityDocument" | "incorporatedAt" | "individualDetails" | "lastName" | "legalBusinessName" | "legalEntity" | "legalEntityType" | "merchantAccount" | "merchantCategoryCode" | "merchantReference" | "microDeposit" | "name" | "nationality" | "originalReference" | "ownerCity" | "ownerCountryCode" | "ownerHouseNumberOrName" | "ownerName" | "ownerPostalCode" | "ownerState" | "ownerStreet" | "passport" | "passportNumber" | "payoutMethodCode" | "personalData" | "phoneCountryCode" | "phoneNumber" | "postalCode" | "primaryCurrency" | "reason" | "registrationNumber" | "returnUrl" | "schedule" | "shareholder" | "shareholderCode" | "socialSecurityNumber" | "sourceAccountCode" | "stateOrProvince" | "status" | "store" | "storeDetail" | "storeReference" | "street" | "taxId" | "tier" | "tierNumber" | "transferCode" | "unknown" | "value" | "virtualAccount" | "visaNumber" | "webAddress"; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + shareholderCode?: string; + } + export interface GetOnboardingUrlRequest { + /** + * The account holder code you provided when you created the account holder. + */ + accountHolderCode: string; + /** + * The URL where the sub-merchant will be redirected back to after they complete the onboarding, or if their session times out. Maximum length of 500 characters. If you don't provide this, the sub-merchant will be redirected back to the default return URL configured in your platform account. + */ + returnUrl?: string; + } + export interface GetOnboardingUrlResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayHostedOnboardingPage.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The URL to the Hosted Onboarding Page where you should redirect your sub-merchant. This URL must be used within 15 seconds and can only be used once. + */ + redirectUrl?: string; + /** + * The result code. + */ + resultCode?: string; + /** + * Indicates whether the request is processed synchronously or asynchronously. Depending on the request's platform settings, the following scenarios may be applied: + * * **sync:** The processing of the request is immediately attempted; it may result in an error if the providing service is unavailable. + * * **async:** The request is queued and will be executed when the providing service is available in the order in which the requests are received. + * * **asyncOnError:** The processing of the request is immediately attempted, but if the providing service is unavailable, the request is scheduled in a queue. + */ + submittedAsync: boolean; + } + namespace Post { + export type RequestBody = IMarketPayHostedOnboardingPage.GetOnboardingUrlRequest; + namespace Responses { + export type $200 = IMarketPayHostedOnboardingPage.GetOnboardingUrlResponse; + } + } +} diff --git a/src/typings/marketPayNotificationConfiguration.ts b/src/typings/marketPayNotificationConfiguration.ts new file mode 100644 index 0000000..9b97bef --- /dev/null +++ b/src/typings/marketPayNotificationConfiguration.ts @@ -0,0 +1,249 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of MarketPay Notification Configuration: v5 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IMarketPayNotificationConfiguration { + export interface CreateNotificationConfigurationRequest { + /** + * Details of the prospective notification subscription configuration. + */ + configurationDetails: IMarketPayNotificationConfiguration.NotificationConfigurationDetails; + } + export interface DeleteNotificationConfigurationRequest { + /** + * A list of IDs of the notification subscription configurations to be deleted. + */ + notificationIds: number /* int64 */ []; + } + export type EmptyRequest = any; + export interface ErrorFieldType { + /** + * The validation error code. + */ + errorCode?: number; // int32 + /** + * A description of the validation error. + */ + errorDescription?: string; + /** + * The type of error field. + */ + fieldType?: IMarketPayNotificationConfiguration.FieldType; + } + export interface ExchangeMessage { + messageCode?: string; + messageDescription?: string; + } + export interface FieldType { + /** + * The full name of the property. + */ + field?: string; + /** + * The type of the field. + */ + fieldName?: "accountCode" | "accountHolderCode" | "accountHolderDetails" | "accountNumber" | "accountStateType" | "accountStatus" | "accountType" | "address" | "bankAccount" | "bankAccountCode" | "bankAccountName" | "bankAccountUUID" | "bankBicSwift" | "bankCity" | "bankCode" | "bankName" | "bankStatement" | "branchCode" | "businessContact" | "cardToken" | "checkCode" | "city" | "country" | "countryCode" | "currency" | "currencyCode" | "dateOfBirth" | "description" | "destinationAccountCode" | "document" | "documentExpirationDate" | "documentIssuerCountry" | "documentIssuerState" | "documentName" | "documentNumber" | "documentType" | "doingBusinessAs" | "drivingLicence" | "drivingLicenceBack" | "drivingLicense" | "email" | "firstName" | "fullPhoneNumber" | "gender" | "hopWebserviceUser" | "houseNumberOrName" | "iban" | "idCard" | "idCardBack" | "idCardFront" | "idNumber" | "identityDocument" | "incorporatedAt" | "individualDetails" | "lastName" | "legalBusinessName" | "legalEntity" | "legalEntityType" | "merchantAccount" | "merchantCategoryCode" | "merchantReference" | "microDeposit" | "name" | "nationality" | "originalReference" | "ownerCity" | "ownerCountryCode" | "ownerHouseNumberOrName" | "ownerName" | "ownerPostalCode" | "ownerState" | "ownerStreet" | "passport" | "passportNumber" | "payoutMethodCode" | "personalData" | "phoneCountryCode" | "phoneNumber" | "postalCode" | "primaryCurrency" | "reason" | "registrationNumber" | "returnUrl" | "schedule" | "shareholder" | "shareholderCode" | "socialSecurityNumber" | "sourceAccountCode" | "stateOrProvince" | "status" | "store" | "storeDetail" | "storeReference" | "street" | "taxId" | "tier" | "tierNumber" | "transferCode" | "unknown" | "value" | "virtualAccount" | "visaNumber" | "webAddress"; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + shareholderCode?: string; + } + export interface GenericResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayNotificationConfiguration.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface GetNotificationConfigurationListResponse { + /** + * Details of the notification subscription configurations. + */ + configurations: IMarketPayNotificationConfiguration.NotificationConfigurationDetails[]; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayNotificationConfiguration.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface GetNotificationConfigurationRequest { + /** + * The ID of the notification subscription configuration whose details are to be retrieved. + */ + notificationId: number; // int64 + } + export interface GetNotificationConfigurationResponse { + /** + * Details of the notification subscription configuration. + */ + configurationDetails: IMarketPayNotificationConfiguration.NotificationConfigurationDetails; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayNotificationConfiguration.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface NotificationConfigurationDetails { + /** + * Indicates whether the notification subscription is active. + */ + active?: boolean; + /** + * The API version of the notification to send. + */ + apiVersion?: number; // int32 + /** + * A description of the notification subscription configuration. + * >Required when creating a configuration, forbidden when updating a configuration. + */ + description?: string; + /** + * The types of events whose notifications apply to this configuration. + */ + eventConfigs: IMarketPayNotificationConfiguration.NotificationEventConfiguration[]; + /** + * A string with which to salt the notification(s) before hashing. If this field is provided, a hash value will be included under the notification header `HmacSignature` and the hash protocol will be included under the notification header `Protocol`. A notification body along with its `hmacSignatureKey` and `Protocol` can be used to calculate a hash value; matching this hash value with the `HmacSignature` will ensure that the notification body has not been tampered with or corrupted. + * + * >Must be a 32-byte hex-encoded string (i.e. a string containing 64 hexadecimal characters; e.g. "b0ea55c2fe60d4d1d605e9c385e0e7f7e6cafbb939ce07010f31a327a0871f27"). + * + * The omission of this field will preclude the provision of the `HmacSignature` and `Protocol` headers in notification(s). + */ + hmacSignatureKey?: string; + /** + * The ID of the configuration. + * >Required if updating an existing configuration, ignored during the creation of a configuration. + */ + notificationId?: number; // int64 + /** + * The password to use when accessing the notifyURL with the specified username. + */ + notifyPassword?: string; + /** + * The URL to which the notifications are to be sent. + */ + notifyURL: string; + /** + * The username to use when accessing the notifyURL. + */ + notifyUsername?: string; + /** + * The SSL protocol employed by the endpoint. + * >Permitted values: `SSL`, `SSLInsecureCiphers`, `TLS`, `TLSv10`, `TLSv10InsecureCiphers`, `TLSv11`, `TLSv12`. + */ + sslProtocol?: "SSL" | "SSLInsecureCiphers" | "TLS" | "TLSv10" | "TLSv10InsecureCiphers" | "TLSv11" | "TLSv12"; + } + export interface NotificationEventConfiguration { + /** + * The type of event triggering the notification. + * >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE`, `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + eventType: "ACCOUNT_CLOSED" | "ACCOUNT_CREATED" | "ACCOUNT_HOLDER_CREATED" | "ACCOUNT_HOLDER_LIMIT_REACHED" | "ACCOUNT_HOLDER_PAYOUT" | "ACCOUNT_HOLDER_STATUS_CHANGE" | "ACCOUNT_HOLDER_STORE_STATUS_CHANGE" | "ACCOUNT_HOLDER_UPCOMING_DEADLINE" | "ACCOUNT_HOLDER_UPDATED" | "ACCOUNT_HOLDER_VERIFICATION" | "ACCOUNT_UPDATED" | "BENEFICIARY_SETUP" | "COMPENSATE_NEGATIVE_BALANCE" | "DIRECT_DEBIT_INITIATED" | "PAYMENT_FAILURE" | "REPORT_AVAILABLE" | "SCHEDULED_REFUNDS" | "TRANSFER_FUNDS" | "TRANSFER_FUNDS_REFUND"; + /** + * Indicates whether the specified eventType is to be sent to the endpoint or all events other than the specified eventType (and other specified eventTypes) are to be sent. + * >Permitted values: `INCLUDE`, `EXCLUDE`. + * >- `INCLUDE`: send the specified eventType. + * >- `EXCLUDE`: send all eventTypes other than the specified eventType (and other eventTypes marked with `EXCLUDE`). + */ + includeMode: "EXCLUDE" | "INCLUDE"; + } + namespace Post { + export type RequestBody = IMarketPayNotificationConfiguration.UpdateNotificationConfigurationRequest; + namespace Responses { + export type $200 = IMarketPayNotificationConfiguration.GetNotificationConfigurationResponse; + } + } + export interface TestNotificationConfigurationRequest { + /** + * The event types to test. If left blank, then all of the configured event types will be tested. + * >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + eventTypes?: ("ACCOUNT_CLOSED" | "ACCOUNT_CREATED" | "ACCOUNT_HOLDER_CREATED" | "ACCOUNT_HOLDER_LIMIT_REACHED" | "ACCOUNT_HOLDER_PAYOUT" | "ACCOUNT_HOLDER_STATUS_CHANGE" | "ACCOUNT_HOLDER_STORE_STATUS_CHANGE" | "ACCOUNT_HOLDER_UPCOMING_DEADLINE" | "ACCOUNT_HOLDER_UPDATED" | "ACCOUNT_HOLDER_VERIFICATION" | "ACCOUNT_UPDATED" | "BENEFICIARY_SETUP" | "COMPENSATE_NEGATIVE_BALANCE" | "DIRECT_DEBIT_INITIATED" | "PAYMENT_FAILURE" | "REPORT_AVAILABLE" | "SCHEDULED_REFUNDS" | "TRANSFER_FUNDS" | "TRANSFER_FUNDS_REFUND")[]; + /** + * The ID of the notification subscription configuration to be tested. + */ + notificationId: number; // int64 + } + export interface TestNotificationConfigurationResponse { + /** + * Any error messages encountered. + */ + errorMessages?: string[]; + /** + * The event types that were tested. + * >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + eventTypes: ("ACCOUNT_CLOSED" | "ACCOUNT_CREATED" | "ACCOUNT_HOLDER_CREATED" | "ACCOUNT_HOLDER_LIMIT_REACHED" | "ACCOUNT_HOLDER_PAYOUT" | "ACCOUNT_HOLDER_STATUS_CHANGE" | "ACCOUNT_HOLDER_STORE_STATUS_CHANGE" | "ACCOUNT_HOLDER_UPCOMING_DEADLINE" | "ACCOUNT_HOLDER_UPDATED" | "ACCOUNT_HOLDER_VERIFICATION" | "ACCOUNT_UPDATED" | "BENEFICIARY_SETUP" | "COMPENSATE_NEGATIVE_BALANCE" | "DIRECT_DEBIT_INITIATED" | "PAYMENT_FAILURE" | "REPORT_AVAILABLE" | "SCHEDULED_REFUNDS" | "TRANSFER_FUNDS" | "TRANSFER_FUNDS_REFUND")[]; + /** + * The notification message and related response messages. + */ + exchangeMessages: IMarketPayNotificationConfiguration.ExchangeMessage[]; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayNotificationConfiguration.ErrorFieldType[]; + /** + * The ID of the notification subscription configuration. + */ + notificationId: number; // int64 + /** + * A list of messages describing the testing steps. + */ + okMessages: string[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface UpdateNotificationConfigurationRequest { + /** + * Details of the notification subscription configuration to be updated. + */ + configurationDetails: IMarketPayNotificationConfiguration.NotificationConfigurationDetails; + } +} diff --git a/src/typings/marketPayNotifications.ts b/src/typings/marketPayNotifications.ts new file mode 100644 index 0000000..cf22c87 --- /dev/null +++ b/src/typings/marketPayNotifications.ts @@ -0,0 +1,1804 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of MarketPay Notifications: v5 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IMarketPayNotifications { + export interface AccountCloseNotification { + /** + * The details of the Account update. + */ + content: IMarketPayNotifications.CloseAccountResponse; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountCreateNotification { + /** + * The details of the account creation. + */ + content: IMarketPayNotifications.CreateAccountResponse; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountEvent { + /** + * The event. + * >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. + * For more information, refer to [Verification checks](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks). + */ + event: "InactivateAccount" | "RefundNotPaidOutTransfers"; + /** + * The date on which the event will take place. + */ + executionDate: string; // date-time + /** + * The reason why this event has been created. + */ + reason: string; + } + export interface AccountHolderCreateNotification { + /** + * The details of the account holder creation. + */ + content: IMarketPayNotifications.CreateAccountHolderResponse; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderDetails { + /** + * The address of the account holder. + */ + address?: IMarketPayNotifications.ViasAddress; + /** + * Each of the bank accounts associated with the account holder. + * > Each array entry should represent one bank account. + * > For comprehensive detail regarding the required `BankAccountDetail` fields, please refer to the [KYC Verification documentation](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks). + */ + bankAccountDetails?: IMarketPayNotifications.BankAccountDetail[]; + /** + * Details applicable to `Business` legal entities. + * Populated only if the account holder's legal entity is of type `Business`. + * > Required when being used in a `/createAccountHolder` request in which the legal entity is `Business`. + */ + businessDetails?: IMarketPayNotifications.BusinessDetails; + /** + * The email address of the account holder. + */ + email: string; + /** + * The phone number of the account holder provided as a single string. It will be handled as a landline phone. + * **Examples:** "0031 6 11 22 33 44", "+316/1122-3344", "(0031) 611223344" + */ + fullPhoneNumber: string; + /** + * Details applicable to `Individual` legal entities. + * Populated only if the account holder's legal entity is of type `Individual`. + * > Required when being used in a `/createAccountHolder` request in which the legal entity is `Individual`. + */ + individualDetails?: IMarketPayNotifications.IndividualDetails; + /** + * The Merchant Category Code of the account holder. + * > If not specified in the request, this will be derived from the platform account (which is configured by Adyen). + */ + merchantCategoryCode?: string; + /** + * A set of key and value pairs for general use by the account holder or merchant. + * The keys do not have specific names and may be used for storing miscellaneous data as desired. + * > The values being stored have a maximum length of eighty (80) characters and will be truncated if necessary. + * > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + */ + metadata?: { + }; + /** + * Each of the card tokens associated with the account holder. + * > Each array entry should represent one card token. + * > For comprehensive detail regarding the required `CardToken` fields, please refer to the [KYC Verification documentation](https://docs.adyen.com/marketpay/onboarding-and-verification/verification-checks). + */ + payoutMethods?: IMarketPayNotifications.PayoutMethod[]; + /** + * The URL of the website of the account holder. + */ + webAddress: string; + } + export interface AccountHolderPayoutNotification { + /** + * Details of the payout to the Account Holder. + */ + content: IMarketPayNotifications.AccountHolderPayoutNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderPayoutNotificationContent { + /** + * The code of the account from which the payout was made. + */ + accountCode: string; + /** + * The code of the Account Holder to which the payout was made. + */ + accountHolderCode: string; + /** + * payout amount + */ + amount?: IMarketPayNotifications.Amount; + /** + * payout amounts (per currency) + */ + amounts?: IMarketPayNotifications.Amount[]; + /** + * Details of the Bank Account to which the payout was made. + */ + bankAccountDetail?: IMarketPayNotifications.BankAccountDetail; + /** + * A description of the payout. + */ + description?: string; + /** + * The estimated date of arrival. + */ + estimatedArrivalDate?: IMarketPayNotifications.LocalDate; + /** + * Invalid fields list. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * merchant reference + */ + merchantReference?: string; + /** + * payout status + */ + status?: IMarketPayNotifications.OperationStatus; + } + export interface AccountHolderStatus { + /** + * A list of events scheduled for the account holder. + */ + events: IMarketPayNotifications.AccountEvent[]; + /** + * The payout state of the account holder. + */ + payoutState: IMarketPayNotifications.AccountPayoutState; + /** + * The processing state of the account holder. + */ + processingState: IMarketPayNotifications.AccountProcessingState; + /** + * The status of the account holder. + * >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ + status: "Active" | "Closed" | "Inactive" | "Suspended"; + /** + * The reason why the status was assigned to the account holder. + */ + statusReason: string; + } + export interface AccountHolderStatusChangeNotification { + /** + * The details of the Account Holder status change. + */ + content?: IMarketPayNotifications.AccountHolderStatusChangeNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderStatusChangeNotificationContent { + /** + * The code of the account holder. + */ + accountHolderCode: string; + /** + * in case the account holder has not been updated, contains account holder fields, that did not pass the validation. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The new status of the account holder. + */ + newStatus: IMarketPayNotifications.AccountHolderStatus; + /** + * The former status of the account holder. + */ + oldStatus: IMarketPayNotifications.AccountHolderStatus; + /** + * The reason for the status change. + */ + reason: string; + } + export interface AccountHolderStoreStatusChangeNotification { + /** + * The details of the Account Holder Store status change. + */ + content?: IMarketPayNotifications.AccountHolderStoreStatusChangeNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderStoreStatusChangeNotificationContent { + /** + * The code of the account holder. + */ + accountHolderCode: string; + /** + * In case the store status has not been updated, contains fields that did not pass the validation. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The new status of the account holder. + */ + newStatus: "Active" | "Closed" | "Inactive" | "InactiveWithModifications" | "Pending"; + /** + * The former status of the account holder. + */ + oldStatus: "Active" | "Closed" | "Inactive" | "InactiveWithModifications" | "Pending"; + /** + * The reason for the status change. + */ + reason: string; + /** + * Alphanumeric identifier of the store. + */ + store: string; + /** + * Store store reference. + */ + storeReference: string; + } + export interface AccountHolderUpcomingDeadlineNotification { + /** + * The details of the upcoming event. + */ + content?: IMarketPayNotifications.AccountHolderUpcomingDeadlineNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderUpcomingDeadlineNotificationContent { + /** + * The code of the account holder whom the event refers to. + */ + accountHolderCode?: string; + /** + * The event name that will be trigger if no action is taken. + */ + event?: "AccessPii" | "CloseAccount" | "CloseStores" | "DeleteBankAccounts" | "DeletePayoutInstrumentTokens" | "DeletePayoutMethods" | "DeleteShareholders" | "InactivateAccount" | "RecalculateAccountStatusAndProcessingTier" | "RefundNotPaidOutTransfers" | "ResolveEvents" | "SaveAccountHolder" | "SaveKYCCheckStatus" | "SuspendAccount" | "UnSuspendAccount" | "UpdateAccountHolderState" | "Verification"; + /** + * The execution date scheduled for the event. + */ + executionDate?: IMarketPayNotifications.LocalDate; + /** + * The reason that leads to scheduling of the event. + */ + reason?: string; + } + export interface AccountHolderUpdateNotification { + /** + * The details of the Account Holder update. + */ + content: IMarketPayNotifications.UpdateAccountHolderResponse; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderVerificationNotification { + /** + * The details of the Account Holder verification. + */ + content: IMarketPayNotifications.AccountHolderVerificationNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface AccountHolderVerificationNotificationContent { + /** + * The code of the account holder. + */ + accountHolderCode: string; + /** + * The unique ID of the bank account that has been verified. + */ + bankAccountUUID?: string; + /** + * Information on the verification status + */ + kycCheckStatusData?: IMarketPayNotifications.KYCCheckStatusData; + /** + * The code of the shareholder that has been verified. + */ + shareholderCode?: string; + } + export interface AccountPayoutState { + /** + * Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts. + */ + allowPayout: boolean; + /** + * The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform). If the `disabled` field is true, this field can be used to explain why. + */ + disableReason: string; + /** + * Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors. + */ + disabled: boolean; + /** + * The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen. + */ + notAllowedReason: string; + /** + * The maximum amount that payouts are limited to. Only applies if payouts are allowed but limited. + */ + payoutLimit: IMarketPayNotifications.Amount; + /** + * The payout tier that the account holder occupies. + */ + tierNumber: number; // int32 + } + export interface AccountProcessingState { + /** + * The reason why processing has been disabled. + */ + disableReason: string; + /** + * Indicates whether the processing of payments is allowed. + */ + disabled: boolean; + /** + * The lower bound of the processing tier (i.e., an account holder must have processed at least this amount of money in order to be placed into this tier). + */ + processedFrom: IMarketPayNotifications.Amount; + /** + * The upper bound of the processing tier (i.e., an account holder must have processed less than this amount of money in order to be placed into this tier). + */ + processedTo: IMarketPayNotifications.Amount; + /** + * The processing tier that the account holder occupies. + */ + tierNumber: number; // int32 + } + export interface AccountUpdateNotification { + /** + * The details of the Account update. + */ + content: IMarketPayNotifications.UpdateAccountResponse; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface Amount { + /** + * 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; // int64 + } + export interface BankAccountDetail { + /** + * The bank account number (without separators). + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + accountNumber?: string; + /** + * The type of bank account. + * Only applicable to bank accounts held in the USA. + * The permitted values are: `checking`, `savings`. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + accountType?: string; + /** + * The name of the bank account. + */ + bankAccountName?: string; + /** + * Merchant reference to the bank account. + */ + bankAccountReference?: string; + /** + * The unique identifier (UUID) of the Bank Account. + * >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. + * + * >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. + * + * >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. + * + * >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + * + */ + bankAccountUUID?: string; + /** + * The bank identifier code. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankBicSwift?: string; + /** + * The city in which the bank branch is located. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankCity?: string; + /** + * The bank code of the banking institution with which the bank account is registered. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankCode?: string; + /** + * The name of the banking institution with which the bank account is held. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + bankName?: string; + /** + * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: + * * United States - Routing number + * * United Kingdom - Sort code + * * Germany - Bankleitzahl + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + branchCode?: string; + /** + * The check code of the bank account. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + checkCode?: string; + /** + * The two-letter country code in which the bank account is registered. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + countryCode?: string; + /** + * The currency in which the bank account deals. + * >The permitted currency codes are defined in ISO-4217 (e.g. 'EUR'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + currencyCode?: string; + /** + * The international bank account number. + * >The IBAN standard is defined in ISO-13616. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + iban?: string; + /** + * The city of residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerCity?: string; + /** + * The country code of the country of residence of the bank account owner. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerCountryCode?: string; + /** + * The date of birth of the bank account owner. + * + */ + ownerDateOfBirth?: string; + /** + * The house name or number of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerHouseNumberOrName?: string; + /** + * The name of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerName?: string; + /** + * The country code of the country of nationality of the bank account owner. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerNationality?: string; + /** + * The postal code of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerPostalCode?: string; + /** + * The state of residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerState?: string; + /** + * The street name of the residence of the bank account owner. + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + ownerStreet?: string; + /** + * If set to true, the bank account is a primary account. + */ + primaryAccount?: boolean; + /** + * The tax ID number. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + taxId?: string; + /** + * The URL to be used for bank account verification. + * This may be generated on bank account creation. + * + * >Refer to the [Onboarding and verification](https://docs.adyen.com/marketpay/onboarding-and-verification) section for details on field requirements. + */ + urlForVerification?: string; + } + export interface BeneficiarySetupNotification { + /** + * Details of the beneficiary setup. + */ + content: IMarketPayNotifications.BeneficiarySetupNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface BeneficiarySetupNotificationContent { + /** + * The code of the beneficiary account. + */ + destinationAccountCode: string; + /** + * The code of the beneficiary Account Holder. + */ + destinationAccountHolderCode: string; + /** + * A listing of the invalid fields which have caused the Setup Beneficiary request to fail. If this is empty, the Setup Beneficiary request has succeeded. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The reference provided by the merchant. + */ + merchantReference?: string; + /** + * The code of the benefactor account. + */ + sourceAccountCode: string; + /** + * The code of the benefactor Account Holder. + */ + sourceAccountHolderCode: string; + /** + * The date on which the beneficiary was set up and funds transferred from benefactor to beneficiary. + */ + transferDate: string; // date-time + } + export interface BusinessDetails { + /** + * The registered name of the company (if it differs from the legal name of the company). + */ + doingBusinessAs?: string; + /** + * The jurisdiction of incorporation of the company. + * >Two (2) characters for a business in the USA or Canada, or a maximum of three (3) characters for an address in all other countries, or 'FEDERAL' + */ + incorporatedAt?: string; + /** + * The legal name of the company. + */ + legalBusinessName?: string; + /** + * The registration number of the company. + */ + registrationNumber?: string; + /** + * Each of the shareholders associated with the company. + * Each array entry should represent one shareholder. + */ + shareholders?: IMarketPayNotifications.ShareholderContact[]; + /** + * The tax ID of the company. + */ + taxId?: string; + } + export interface CloseAccountResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The new status of the account. + * >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ + status: "Active" | "Closed" | "Inactive" | "Suspended"; + } + export interface CompensateNegativeBalanceNotification { + /** + * Details of the negative balance compensation. + */ + content?: IMarketPayNotifications.CompensateNegativeBalanceNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface CompensateNegativeBalanceNotificationContent { + /** + * A list of the negative balances compensated. + */ + records: IMarketPayNotifications.CompensateNegativeBalanceNotificationRecord[]; + } + export interface CompensateNegativeBalanceNotificationRecord { + /** + * The code of the account whose negative balance has been compensated. + */ + accountCode: string; + /** + * The amount compensated. + */ + amount: IMarketPayNotifications.Amount; + /** + * The date on which the compensation took place. + */ + transferDate: string; // date-time + } + export interface CreateAccountHolderResponse { + /** + * The code of a new account created for the account holder. + */ + accountCode?: string; + /** + * The code of the new account holder. + */ + accountHolderCode: string; + /** + * Details of the new account holder. + */ + accountHolderDetails: IMarketPayNotifications.AccountHolderDetails; + /** + * The status of the new account holder. + */ + accountHolderStatus: IMarketPayNotifications.AccountHolderStatus; + /** + * The description of the new account holder. + */ + description?: string; + /** + * A list of fields that caused the `/createAccountHolder` request to fail. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The type of legal entity of the new account holder. + */ + legalEntity: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals. + */ + primaryCurrency?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The details of KYC Verification of the account holder. + */ + verification: IMarketPayNotifications.KYCVerificationResult; + } + export interface CreateAccountResponse { + /** + * The code of the new account. + */ + accountCode: string; + /** + * The code of the account holder. + */ + accountHolderCode: string; + /** + * The description of the account. + */ + description?: string; + /** + * A list of fields that caused the `/createAccount` request to fail. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + metadata?: { + [name: string]: string; + }; + /** + * The payout schedule of the account. + */ + payoutSchedule?: IMarketPayNotifications.PayoutScheduleResponse; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The status of the account. + * >Permitted values: `Active`. + */ + status: "Active" | "Closed" | "Inactive" | "Suspended"; + } + export interface DirectDebitInitiatedNotification { + /** + * Details of the direct debit. + */ + content?: IMarketPayNotifications.DirectDebitInitiatedNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface DirectDebitInitiatedNotificationContent { + /** + * The code of the account. + */ + accountCode: string; + /** + * The amount to be debited from the funding account. + */ + amount: IMarketPayNotifications.Amount; + /** + * The date of the debit initiation. + */ + debitInitiationDate?: IMarketPayNotifications.LocalDate; + /** + * The code of the merchant account. + */ + merchantAccountCode: string; + /** + * Direct debit status. + */ + status?: IMarketPayNotifications.OperationStatus; + } + export interface ErrorFieldType { + /** + * The validation error code. + */ + errorCode?: number; // int32 + /** + * A description of the validation error. + */ + errorDescription?: string; + /** + * The type of error field. + */ + fieldType?: IMarketPayNotifications.FieldType; + } + export interface FieldType { + /** + * The full name of the property. + */ + field?: string; + /** + * The type of the field. + */ + fieldName?: "accountCode" | "accountHolderCode" | "accountHolderDetails" | "accountNumber" | "accountStateType" | "accountStatus" | "accountType" | "address" | "bankAccount" | "bankAccountCode" | "bankAccountName" | "bankAccountUUID" | "bankBicSwift" | "bankCity" | "bankCode" | "bankName" | "bankStatement" | "branchCode" | "businessContact" | "cardToken" | "checkCode" | "city" | "country" | "countryCode" | "currency" | "currencyCode" | "dateOfBirth" | "description" | "destinationAccountCode" | "document" | "documentExpirationDate" | "documentIssuerCountry" | "documentIssuerState" | "documentName" | "documentNumber" | "documentType" | "doingBusinessAs" | "drivingLicence" | "drivingLicenceBack" | "drivingLicense" | "email" | "firstName" | "fullPhoneNumber" | "gender" | "hopWebserviceUser" | "houseNumberOrName" | "iban" | "idCard" | "idCardBack" | "idCardFront" | "idNumber" | "identityDocument" | "incorporatedAt" | "individualDetails" | "lastName" | "legalBusinessName" | "legalEntity" | "legalEntityType" | "merchantAccount" | "merchantCategoryCode" | "merchantReference" | "microDeposit" | "name" | "nationality" | "originalReference" | "ownerCity" | "ownerCountryCode" | "ownerHouseNumberOrName" | "ownerName" | "ownerPostalCode" | "ownerState" | "ownerStreet" | "passport" | "passportNumber" | "payoutMethodCode" | "personalData" | "phoneCountryCode" | "phoneNumber" | "postalCode" | "primaryCurrency" | "reason" | "registrationNumber" | "returnUrl" | "schedule" | "shareholder" | "shareholderCode" | "socialSecurityNumber" | "sourceAccountCode" | "stateOrProvince" | "status" | "store" | "storeDetail" | "storeReference" | "street" | "taxId" | "tier" | "tierNumber" | "transferCode" | "unknown" | "value" | "virtualAccount" | "visaNumber" | "webAddress"; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + shareholderCode?: string; + } + export interface IndividualDetails { + /** + * The name of the individual. + * >Make sure your account holder registers using the name shown on their Photo ID. + */ + name?: IMarketPayNotifications.ViasName; + /** + * Personal information of the individual. + */ + personalData?: IMarketPayNotifications.ViasPersonalData; + } + export interface KYCBankAccountCheckResult { + /** + * The unique ID of the bank account to which the check applies. + */ + bankAccountUUID: string; + /** + * A list of the checks and their statuses. + */ + checks: IMarketPayNotifications.KYCCheckStatusData[]; + } + export interface KYCCheckResult { + /** + * A list of the checks and their statuses. + */ + checks: IMarketPayNotifications.KYCCheckStatusData[]; + } + export interface KYCCheckStatusData { + /** + * A list of the fields required for execution of the check. + */ + requiredFields: string[]; + /** + * The status of the check. + * >Permitted Values: `UNCHECKED`, `DATA_PROVIDED`, `PASSED`, `PENDING`, `AWAITING_DATA`, `RETRY_LIMIT_REACHED`, `INVALID_DATA`, `FAILED`. + */ + status: "AWAITING_DATA" | "DATA_PROVIDED" | "FAILED" | "INVALID_DATA" | "PASSED" | "PENDING" | "PENDING_REVIEW" | "RETRY_LIMIT_REACHED" | "UNCHECKED"; + /** + * A summary of the execution of the check. + */ + summary: IMarketPayNotifications.KYCCheckSummary; + /** + * The type of check. + * >Permitted Values: `COMPANY_VERIFICATION`, `IDENTITY_VERIFICATION`, `PASSPORT_VERIFICATION`, `BANK_ACCOUNT_VERIFICATION`, `NONPROFIT_VERIFICATION`. + */ + type: "BANK_ACCOUNT_VERIFICATION" | "COMPANY_VERIFICATION" | "IDENTITY_VERIFICATION" | "NONPROFIT_VERIFICATION" | "PASSPORT_VERIFICATION"; + } + export interface KYCCheckSummary { + /** + * The code of the check. + */ + kycCheckCode?: number; // int32 + /** + * A description of the check. + */ + kycCheckDescription?: string; + } + export interface KYCShareholderCheckResult { + /** + * A list of the checks and their statuses. + */ + checks: IMarketPayNotifications.KYCCheckStatusData[]; + /** + * The code of the shareholder to which the check applies. + */ + shareholderCode: string; + } + export interface KYCVerificationResult { + /** + * The result(s) of the checks on the account holder. + */ + accountHolder: IMarketPayNotifications.KYCCheckResult; + /** + * The result(s) of the checks on the bank account(s). + */ + bankAccounts: IMarketPayNotifications.KYCBankAccountCheckResult[]; + /** + * The result(s) of the checks on the shareholder(s). + */ + shareholders: IMarketPayNotifications.KYCShareholderCheckResult[]; + } + export interface LocalDate { + month?: number; // int32 + year?: number; // int32 + } + export interface Message { + /** + * The message code. + */ + code?: string; + /** + * The message text. + */ + text?: string; + } + export interface NotificationErrorContainer { + /** + * The Adyen code that is mapped to the error message. + */ + errorCode?: string; + /** + * A short explanation of the issue. + */ + message?: string; + } + export interface NotificationResponse { + /** + * Set this property to **[accepted]** to acknowledge that you received a notification from Adyen. + */ + notificationResponse: string; + } + export interface OperationStatus { + /** + * The message regarding the operation status. + */ + message?: IMarketPayNotifications.Message; + /** + * The status code. + */ + statusCode?: string; + } + export interface PaymentFailureNotification { + /** + * The details of the payment failure. + */ + content: IMarketPayNotifications.PaymentFailureNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface PaymentFailureNotificationContent { + /** + * Missing or invalid fields that caused the payment error. + */ + errorFields: IMarketPayNotifications.ErrorFieldType[]; + /** + * The error message. + */ + errorMessage: IMarketPayNotifications.Message; + } + export interface PayoutMethod { + merchantAccount: string; + payoutMethodCode?: string; + payoutMethodType?: "CardToken"; + recurringDetailReference: string; + shopperReference: string; + } + export interface PayoutScheduleResponse { + /** + * The date of the next scheduled payout. + */ + nextScheduledPayout: string; // date-time + /** + * The payout schedule of the account. + * >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. + */ + schedule: "BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT" | "BIWEEKLY_ON_1ST_AND_15TH_AT_NOON" | "DAILY" | "DAILY_6PM" | "DAILY_US" | "DEFAULT" | "EVERY_6_HOURS_FROM_MIDNIGHT" | "HOLD" | "MONTHLY" | "WEEKLY" | "WEEKLY_ON_TUE_FRI_MIDNIGHT" | "YEARLY"; + } + export interface PersonalDocumentData { + /** + * The expiration date of the document. + * The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). + */ + expirationDate?: string; + /** + * The two-character country code of the issuer. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + */ + issuerCountry?: string; + /** + * The state issued the document (if applicable) + */ + issuerState?: string; + /** + * The number of the document. Delete the given type if the value empty. + */ + number: string; + /** + * The type of the document. More then one item pert type does not allowed. + * Valid values: ID, PASSPORT, VISA, DRIVINGLICENSE + */ + type: "DRIVINGLICENSE" | "ID" | "PASSPORT" | "SOCIALSECURITY" | "VISA"; + } + namespace Post { + export type RequestBody = IMarketPayNotifications.TransferFundsNotification; + namespace Responses { + export type $200 = IMarketPayNotifications.NotificationResponse; + } + } + export interface RefundFundsTransferNotification { + /** + * Details of the fund transfer refund. + */ + content: IMarketPayNotifications.RefundFundsTransferNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface RefundFundsTransferNotificationContent { + /** + * The amount to be refunded. + */ + amount: IMarketPayNotifications.Amount; + /** + * Invalid fields list. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + merchantReference?: string; + /** + * A PSP reference of the original fund transfer. + */ + originalReference: string; + /** + * The status of the fund transfer refund. + */ + status?: IMarketPayNotifications.OperationStatus; + } + export interface RefundResult { + /** + * The transaction that has been refunded. + */ + originalTransaction: IMarketPayNotifications.Transaction; + /** + * The reference of the refund. + */ + pspReference: string; + /** + * The response indicating if the refund has been received for processing. + */ + response?: string; + } + export interface ReportAvailableNotification { + /** + * Details of the report. + */ + content: IMarketPayNotifications.ReportAvailableNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface ReportAvailableNotificationContent { + /** + * The code of the Account to which the report applies. + */ + accountCode?: string; + /** + * The type of Account to which the report applies. + */ + accountType?: string; + /** + * The date of the event to which the report applies. + */ + eventDate?: string; // date-time + /** + * The URL at which the report can be accessed. + */ + remoteAccessUrl?: string; + /** + * Indicates whether the event resulted in a success. + */ + success?: boolean; + } + export interface ScheduledRefundsNotification { + /** + * Details of the scheduling of the refunds. + */ + content: IMarketPayNotifications.ScheduledRefundsNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface ScheduledRefundsNotificationContent { + /** + * The code of the account. + */ + accountCode: string; + /** + * The code of the Account Holder. + */ + accountHolderCode: string; + /** + * Invalid fields list. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The most recent payout (after which all transactions were scheduled to be refunded). + */ + lastPayout: IMarketPayNotifications.Transaction; + /** + * A list of the refunds that have been scheduled and their results. + */ + refundResults: IMarketPayNotifications.RefundResult[]; + } + export interface ShareholderContact { + /** + * The address of the contact. + */ + address?: IMarketPayNotifications.ViasAddress; + /** + * The e-mail address of the contact. + */ + email?: string; + /** + * The phone number of the contact provided as a single string. It will be handled as a landline phone. + * **Examples:** "0031 6 11 22 33 44", "+316/1122-3344", "(0031) 611223344" + */ + fullPhoneNumber?: string; + /** + * The name of the contact. + */ + name?: IMarketPayNotifications.ViasName; + /** + * Personal data of the Shareholder. + */ + personalData?: IMarketPayNotifications.ViasPersonalData; + /** + * The phone number of the contact. + */ + phoneNumber?: IMarketPayNotifications.ViasPhoneNumber; + /** + * The unique identifier (UUID) of the Shareholder. + * >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** + * + * >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** + * + * >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** + * + * >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.** + * + */ + shareholderCode?: string; + /** + * Merchant reference to the Shareholder. + */ + shareholderReference?: string; + /** + * The URL of the website of the contact. + */ + webAddress?: string; + } + export interface Transaction { + /** + * The amount of the transaction. + */ + amount?: IMarketPayNotifications.Amount; + /** + * The details of the bank account to where a payout was made. + */ + bankAccountDetail?: IMarketPayNotifications.BankAccountDetail; + /** + * The merchant reference of a related capture. + */ + captureMerchantReference?: string; + /** + * The psp reference of a related capture. + */ + capturePspReference?: string; + /** + * The date on which the transaction was performed. + */ + creationDate?: string; // date-time + /** + * A description of the transaction. + */ + description?: string; + /** + * The code of the account to which funds were credited during an outgoing fund transfer. + */ + destinationAccountCode?: string; + /** + * The psp reference of the related dispute. + */ + disputePspReference?: string; + /** + * The reason code of a dispute. + */ + disputeReasonCode?: string; + /** + * The merchant reference of a transaction. + */ + merchantReference?: string; + /** + * The psp reference of the related authorisation or transfer. + */ + paymentPspReference?: string; + /** + * The psp reference of the related payout. + */ + payoutPspReference?: string; + /** + * The psp reference of a transaction. + */ + pspReference?: string; + /** + * The code of the account from which funds were debited during an incoming fund transfer. + */ + sourceAccountCode?: string; + /** + * The status of the transaction. + * >Permitted values: `PendingCredit`, `CreditFailed`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`. + */ + transactionStatus?: "Chargeback" | "ChargebackCorrection" | "ChargebackCorrectionReceived" | "ChargebackReceived" | "ChargebackReversed" | "ChargebackReversedReceived" | "Converted" | "CreditFailed" | "CreditReversed" | "CreditReversedReceived" | "Credited" | "DebitFailed" | "DebitReversedReceived" | "Debited" | "DebitedReversed" | "FundTransfer" | "FundTransferReversed" | "ManualCorrected" | "Payout" | "PayoutReversed" | "PendingCredit" | "PendingDebit" | "PendingFundTransfer" | "SecondChargeback" | "SecondChargebackReceived"; + /** + * The transfer code of the transaction. + */ + transferCode?: string; + } + export interface TransferFundsNotification { + /** + * Details of the fund transfer. + */ + content: IMarketPayNotifications.TransferFundsNotificationContent; + /** + * Error information of failed request. No value provided here if no error occurred on processing. + */ + error?: IMarketPayNotifications.NotificationErrorContainer; + /** + * The date and time when an event has been completed. + */ + eventDate: string; // date-time + /** + * The event type of the notification. + */ + eventType: string; + /** + * The user or process that has triggered the notification. + */ + executingUserKey: string; + /** + * Indicates whether the notification originated from the live environment or the test environment. If true, the notification originated from the live environment. If false, the notification originated from the test environment. + */ + live: boolean; + /** + * The PSP reference of the request from which the notification originates. + */ + pspReference: string; + } + export interface TransferFundsNotificationContent { + /** + * The amount transferred. + */ + amount: IMarketPayNotifications.Amount; + /** + * The code of the Account to which funds were credited. + */ + destinationAccountCode: string; + /** + * Invalid fields list. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The reference provided by the merchant. + */ + merchantReference?: string; + /** + * The code of the Account from which funds were debited. + */ + sourceAccountCode: string; + /** + * The status of the fund transfer. + */ + status?: IMarketPayNotifications.OperationStatus; + /** + * The transfer code. + */ + transferCode: string; + } + export interface UpdateAccountHolderResponse { + /** + * The code of the account holder. + */ + accountHolderCode?: string; + /** + * Details of the account holder. + */ + accountHolderDetails?: IMarketPayNotifications.AccountHolderDetails; + /** + * The new status of the account holder. + */ + accountHolderStatus: IMarketPayNotifications.AccountHolderStatus; + /** + * The description of the account holder. + */ + description?: string; + /** + * in case the account holder has not been updated, contains account holder fields, that did not pass the validation. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + /** + * The legal entity of the account holder. + */ + legalEntity: "Business" | "Individual" | "NonProfit" | "PublicCompany"; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals. + */ + primaryCurrency?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + /** + * The details of KYC Verification of the account holder. + */ + verification: IMarketPayNotifications.KYCVerificationResult; + } + export interface UpdateAccountResponse { + /** + * The code of the account. + */ + accountCode: string; + /** + * The description of the account. + */ + description?: string; + /** + * A list of fields that caused the `/updateAccount` request to fail. + */ + invalidFields?: IMarketPayNotifications.ErrorFieldType[]; + metadata?: { + [name: string]: string; + }; + /** + * The payout schedule of the account. + */ + payoutSchedule: IMarketPayNotifications.PayoutScheduleResponse; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + pspReference: string; + /** + * The result code. + */ + resultCode?: string; + } + export interface ViasAddress { + /** + * The name of the city. + * >Required if either `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. + */ + 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 `country` as `ZZ`. + */ + country: 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; + /** + * 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; + /** + * 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; + } + export interface ViasName { + /** + * The first name. + */ + firstName: string; + /** + * The gender. + * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + gender: "MALE" | "FEMALE" | "UNKNOWN"; + /** + * The name's infix, if applicable. + * >A maximum length of twenty (20) characters is imposed. + */ + infix?: string; + /** + * The last name. + */ + lastName: string; + } + export interface ViasPersonalData { + /** + * The date of birth of the person. + * The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). + */ + dateOfBirth?: string; + /** + * Key value pairs of document type and identify numbers + */ + documentData?: IMarketPayNotifications.PersonalDocumentData[]; + /** + * The nationality of the person represented by a two-character country code. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + */ + nationality?: string; + } + export interface ViasPhoneNumber { + /** + * The two-character country code of the phone number. + * >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL'). + */ + phoneCountryCode: string; + /** + * The phone number. + * >The inclusion of the phone number country code is not necessary. + */ + phoneNumber: string; + /** + * The type of the phone number. + * >The following values are permitted: `Landline`, `Mobile`, `SIP`, `Fax`. + */ + phoneType?: "Fax" | "Landline" | "Mobile" | "SIP"; + } +} diff --git a/src/typings/nexo.ts b/src/typings/nexo.ts index 28bca19..ed4ddd8 100644 --- a/src/typings/nexo.ts +++ b/src/typings/nexo.ts @@ -1,3 +1,24 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + // Generated using typescript-generator version 2.14.505 on 2019-06-06 08:35:05. import {ApplicationInfo} from "./applicationInfo"; diff --git a/src/typings/notification.ts b/src/typings/notification.ts index 05a15f9..05fba00 100644 --- a/src/typings/notification.ts +++ b/src/typings/notification.ts @@ -1,3 +1,24 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + // To parse this data: // // import { Convert, Notification } from "./file"; diff --git a/src/typings/payments.ts b/src/typings/payments.ts new file mode 100644 index 0000000..1504721 --- /dev/null +++ b/src/typings/payments.ts @@ -0,0 +1,3162 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of Payments: v51 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IPayments { + export interface 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?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Date when the shopper's account was last changed. + */ + accountChangeDate?: string; // date-time + /** + * Indicator for the length of time since the shopper's account was last updated. + * Allowed values: + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + accountChangeIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Date when the shopper's account was created. + */ + accountCreationDate?: string; // date-time + /** + * Indicates the type of account. For example, for a multi-account card product. + * Allowed values: + * * notApplicable + * * credit + * * debit + */ + accountType?: "notApplicable" | "credit" | "debit"; + /** + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + addCardAttemptsDay?: number; // int32 + /** + * Date the selected delivery address was first used. + */ + deliveryAddressUsageDate?: string; // date-time + /** + * Indicator for the length of time since this delivery address was first used. + * Allowed values: + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + deliveryAddressUsageIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * 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?: string; // date-time + /** + * Indicator when the shopper has changed their password. + * Allowed values: + * * notApplicable + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + passwordChangeIndicator?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + pastTransactionsDay?: number; // int32 + /** + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + pastTransactionsYear?: number; // int32 + /** + * Date this payment method was added to the shopper's account. + */ + paymentAccountAge?: string; // date-time + /** + * 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?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Number of successful purchases in the last six months. + */ + purchasesLast6Months?: number; // int32 + /** + * Whether suspicious activity was recorded on this account. + */ + suspiciousActivity?: boolean; + /** + * Shopper's work phone number (including the country code). + */ + workPhone?: string; + } + export interface 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; + /** + * Indicates the [exemption type](https://docs-admin.is.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: + * * **lowValue** + * * **secureCorporate** + * * **trustedBeneficiary** + * * **transactionRiskAnalysis** + */ + scaExemption?: string; + } + export interface AdditionalDataAirline { + /** + * Passenger name, initials, and a title. + * * Format: last name + first name or initials + title. + * * Example: *FLYER / MARY MS*. + * * minLength: 1 + * * maxLength: 49 + */ + "airline.passenger_name"?: 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 + */ + "airline.computerized_reservation_system"?: 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 + */ + "airline.airline_code"?: string; + /** + * The ticket's unique identifier. + * * minLength: 1 + * * maxLength: 150 + */ + "airline.ticket_number"?: 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 + */ + "airline.flight_date"?: string; + /** + * Reference number; alphanumeric. + * * minLength: 0 + * * maxLength: 20 + */ + "airline.customer_reference_number"?: string; + /** + * Address of the place/agency that issued the ticket. + * * minLength: 0 + * * maxLength: 16 + */ + "airline.ticket_issue_address"?: 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 + */ + "airline.airline_designator_code"?: string; + /** + * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. + * * minLength: 1 + * * maxLength: 8 + */ + "airline.travel_agency_code"?: string; + /** + * The name of the travel agency. + * * minLength: 1 + * * maxLength: 25 + */ + "airline.travel_agency_name"?: string; + /** + * 2-letter agency plan identifier; alphabetical. + * * minLength: 2 + * * maxLength: 2 + */ + "airline.agency_plan_name"?: string; + /** + * Reference number for the invoice, issued by the agency. + * * minLength: 1 + * * maxLength: 6 + */ + "airline.agency_invoice_number"?: 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 + */ + "airline.boarding_fee"?: 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 + */ + "airline.leg.depart_airport"?: string; + /** + * The flight identifier. + * * minLength: 1 + * * maxLength: 5 + */ + "airline.leg.flight_number"?: 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 + */ + "airline.leg.carrier_code"?: string; + /** + * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. + * * minLength: 1 + * * maxLength: 7 + */ + "airline.leg.fare_base_code"?: 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 + */ + "airline.leg.class_of_travel"?: 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 + */ + "airline.leg.stop_over_code"?: 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 + */ + "airline.leg.destination_code"?: 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 + */ + "airline.leg.date_of_travel"?: 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 + */ + "airline.leg.depart_tax"?: string; + /** + * Passenger first name/given name. + * > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + "airline.passenger.first_name"?: string; + /** + * Passenger last name/family name. + * > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + "airline.passenger.last_name"?: 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 + */ + "airline.passenger.traveller_type"?: string; + /** + * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the '+' and '-' signs. + * * minLength: 3 + * * maxLength: 30 + */ + "airline.passenger.telephone_number"?: string; + /** + * Date of birth of the passenger. + * + * Date format: `yyyy-MM-dd` + * * minLength: 10 + * * maxLength: 10 + */ + "airline.passenger.date_of_birth"?: string; + } + export interface AdditionalDataCarRental { + /** + * The rental agreement number associated with this car rental. + * * Format: Alphanumeric + * * maxLength: 14 + */ + "carRental.rentalAgreementNumber"?: string; + /** + * The name of the person renting the car. + * * Format: Alphanumeric + * * maxLength: 26 + */ + "carRental.renterName"?: string; + /** + * The city where the car must be returned. + * * Format: Alphanumeric + * * maxLength: 18 + */ + "carRental.returnCity"?: string; + /** + * The state or province where the car must be returned. + * * Format: Alphanumeric + * * maxLength: 3 + */ + "carRental.returnStateProvince"?: string; + /** + * The country where the car must be returned. + * * Format: Alphanumeric + * * maxLength: 2 + */ + "carRental.returnCountry"?: string; + /** + * Agency code, phone number, or address abbreviation + * * Format: Alphanumeric + * * maxLength: 10 + */ + "carRental.returnLocationId"?: string; + /** + * The last date to return the car by. + * * Date format: `yyyyMMdd` + */ + "carRental.returnDate"?: string; + /** + * Pick-up date. + * * Date format: `yyyyMMdd` + */ + "carRental.checkOutDate"?: string; + /** + * The customer service phone number of the car rental company. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "carRental.customerServiceTollFreeNumber"?: string; + /** + * Daily rental rate. + * * Format: Alphanumeric + * * maxLength: 12 + */ + "carRental.rate"?: string; + /** + * Specifies whether the given rate is applied daily or weekly. + * * D - Daily rate. + * * W - Weekly rate. + */ + "carRental.rateIndicator"?: string; + /** + * The location from which the car is rented. + * * Format: Alphanumeric + * * maxLength: 18 + */ + "carRental.locationCity"?: string; + /** + * Pick-up date. + * * Date format: `yyyyMMdd` + */ + "carRental.locationStateProvince"?: string; + /** + * The customer service phone number of the car rental company. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "carRental.locationCountry"?: string; + /** + * Daily rental rate. + * * Format: Alphanumeric + * * maxLength: 12 + */ + "carRental.rentalClassId"?: string; + /** + * Specifies whether the given rate is applied daily or weekly. + * * D - Daily rate. + * * W - Weekly rate. + */ + "carRental.daysRented"?: 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 + */ + "carRental.taxExemptIndicator"?: 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 + */ + "travelEntertainmentAuthData.market"?: string; + /** + * Number of nights. This should be included in the auth message. + * * Format: Numeric + * * maxLength: 2 + */ + "travelEntertainmentAuthData.duration"?: string; + /** + * Any fuel charges associated with the rental. + * * Format: Numeric + * * maxLength: 12 + */ + "carRental.fuelCharges"?: string; + /** + * Any insurance charges associated with the rental. + * * Format: Numeric + * * maxLength: 12 + */ + "carRental.insuranceCharges"?: string; + /** + * Indicates if the customer was a "no-show" (neither keeps nor cancels their booking). + * * 0 - Not applicable. + * * 1 - Customer was a no show. + */ + "carRental.noShowIndicator"?: string; + /** + * Charge associated with not returning a vehicle to the original rental location. + */ + "carRental.oneWayDropOffCharges"?: string; + } + export interface 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; + } + export interface AdditionalDataLevel23 { + /** + * Customer code, if supplied by a customer. + * Encoding: ASCII. + * Max length: 25 characters. + * > Required for Level 2 and Level 3 data. + */ + "enhancedSchemeData.customerReference"?: 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. + */ + "enhancedSchemeData.totalTaxAmount"?: number; + /** + * Shipping amount, in minor units. + * + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.freightAmount"?: number; + /** + * Duty amount, in minor units. + * + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.dutyAmount"?: number; + /** + * The postal code of a destination address. + * + * Encoding: ASCII. + * Max length: 10 characters. + * > Required for American Express. + */ + "enhancedSchemeData.destinationPostalCode"?: string; + /** + * Destination state or province code. + * + * Encoding: ASCII.Max length: 3 characters. + */ + "enhancedSchemeData.destinationStateProvinceCode"?: string; + /** + * The postal code of a "ship-from" address. + * + * Encoding: ASCII. + * Max length: 10 characters. + */ + "enhancedSchemeData.shipFromPostalCode"?: string; + /** + * Destination country code. + * + * Encoding: ASCII. + * Max length: 3 characters. + */ + "enhancedSchemeData.destinationCountryCode"?: string; + /** + * Order date. + * * Format: `ddMMyy` + * + * Encoding: ASCII. + * Max length: 6 characters. + */ + "enhancedSchemeData.orderDate"?: string; + /** + * Item commodity code. + * Encoding: ASCII. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"?: string; + /** + * Item description. + * Encoding: ASCII. + * Max length: 26 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].description"?: string; + /** + * Product code. + * Encoding: ASCII. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].productCode"?: string; + /** + * Quantity, specified as an integer value. + * Value must be greater than 0. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].quantity"?: number; + /** + * Item unit of measurement. + * Encoding: ASCII. + * Max length: 3 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"?: string; + /** + * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"?: number; + /** + * Discount amount, in minor units. + * + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"?: number; + /** + * Total amount, in minor units. + * For example, 2000 means USD 20.00. + * Max length: 12 characters. + */ + "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"?: number; + } + export interface AdditionalDataLodging { + /** + * The toll free phone number for the hotel/lodgings. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "lodging.customerServiceTollFreeNumber"?: string; + /** + * The arrival date. + * * Date format: `yyyyMMdd` + */ + "lodging.checkInDate"?: string; + /** + * The departure date. + * * Date format: `yyyyMMdd` + */ + "lodging.checkOutDate"?: string; + /** + * Card acceptor’s internal invoice or billing ID reference number. + * * Format: Alphanumeric + * * maxLength: 25 + */ + "lodging.folioNumber"?: string; + /** + * Identifies specific lodging property location by its local phone number. + * * Format: Alphanumeric + * * maxLength: 17 + */ + "lodging.propertyPhoneNumber"?: string; + /** + * The rate of the room. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.room1.rate"?: string; + /** + * The total amount of tax to be paid. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.room1.tax"?: string; + /** + * Total number of nights the room will be rented. + * * Format: Numeric + * * maxLength: 4 + */ + "lodging.room1.numberOfNights"?: 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 + */ + "lodging.fireSafetyActIndicator"?: 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 + */ + "travelEntertainmentAuthData.market"?: string; + /** + * Number of nights. This should be included in the auth message. + * * Format: Numeric + * * maxLength: 2 + */ + "travelEntertainmentAuthData.duration"?: string; + /** + * The folio cash advances. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.folioCashAdvances"?: string; + /** + * Any charges for food and beverages associated with the booking. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.foodBeverageCharges"?: 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 + */ + "lodging.noShowIndicator"?: string; + /** + * Prepaid expenses for the booking. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.prepaidExpenses"?: string; + /** + * Total tax amount. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.totalTax"?: string; + /** + * Total room tax amount. + * * Format: Numeric + * * maxLength: 12 + */ + "lodging.totalRoomTax"?: string; + } + export interface AdditionalDataModifications { + /** + * This is the installment option selected by the shopper. It is required only if specified by the user. + */ + "installmentPaymentData.selectedInstallmentOption"?: string; + } + export interface 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. + */ + "openinvoicedata.numberOfLines"?: 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. + */ + "openinvoicedata.merchantData"?: string; + /** + * Required for the Klarna account, identifying an installment plan. Include Klarna’s `pclassid` for the installment plan. + */ + "openinvoicedata.installmentConfigurationKey"?: string; + /** + * The three-character ISO currency code. + */ + "openinvoicedata.line[itemNr].currencyCode"?: string; + /** + * A text description of the product the invoice line refers to. + */ + "openinvoicedata.line[itemNr].description"?: string; + /** + * The price for one item in the invoice line, represented in minor units. + * + * The due amount for the item, VAT excluded. + */ + "openinvoicedata.line[itemNr].itemAmount"?: number; + /** + * The VAT due for one item in the invoice line, represented in minor units. + */ + "openinvoicedata.line[itemNr].itemVatAmount"?: number; + /** + * The VAT percentage for one item in the invoice line, represented in minor units. + * + * For example, 19% VAT is specified as 1900. + */ + "openinvoicedata.line[itemNr].itemVatPercentage"?: number; + /** + * A unique id for this item. Required for RatePay if the description of each item is not unique. + */ + "openinvoicedata.line[itemNr].itemId"?: string; + /** + * The number of units purchased of a specific product. + */ + "openinvoicedata.line[itemNr].numberOfItems"?: number; + /** + * The country-specific VAT category a product falls under. + * + * Allowed values: + * * High + * * Low + * * None. + */ + "openinvoicedata.line[itemNr].vatCategory"?: string; + } + export interface AdditionalDataRatepay { + /** + * Amount the customer has to pay each month. + */ + "ratepay.installmentAmount"?: number; + /** + * Amount of the last installment. + */ + "ratepay.lastInstallmentAmount"?: number; + /** + * Interest rate of this installment. Double + */ + "ratepay.interestRate"?: number; + /** + * Calendar day of the first payment. + */ + "ratepay.paymentFirstday"?: number; + /** + * Identification name or number for the invoice, defined by the merchant. + */ + "ratepaydata.invoiceId"?: string; + /** + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + */ + "ratepaydata.invoiceDate"?: string; + /** + * Date the merchant delivered the goods to the customer. + */ + "ratepaydata.deliveryDate"?: string; + /** + * Date by which the customer must settle the payment. + */ + "ratepaydata.dueDate"?: string; + } + export interface 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. + */ + "retry.chainAttemptNumber"?: 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. + */ + "retry.orderAttemptNumber"?: 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. + */ + "retry.skipRetry"?: boolean; + } + export interface 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. + */ + "riskdata.deliveryMethod"?: 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). + */ + "riskdata.accountCreationDate"?: 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). + */ + "riskdata.shopperAccountCreationDate"?: 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). + */ + "riskdata.externalRiskScore"?: 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). + */ + "riskdata.externalSuspectedFraud"?: string; + /** + * A code corresponding to a telecom network operator + * + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + "riskdata.operatorCode"?: 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). + */ + "riskdata.operatorCountry"?: { + }; + /** + * 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). + */ + "riskdata.operatorName"?: string; + /** + * Product code of a telecom product. + * + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + "riskdata.operatorProductCode"?: 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. + */ + "riskdata.paymentMethod"?: string; + /** + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules) for visacheckout, masterpass, and paywithgoogle. + */ + "riskdata.paymentDataSource"?: 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). + */ + "riskdata.previousSuccessfulOrders"?: 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). + */ + "riskdata.referralMethod"?: 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). + */ + "riskdata.referrerUserName"?: string; + /** + * The id of the risk profile to use instead of the merchant account's currently set risk profile. + */ + "riskdata.riskProfileId"?: 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). + */ + "riskdata.secondaryPhoneNumber"?: { + }; + /** + * Name of the shipping method. + * + * Used in [Custom risk checks](https://docs.adyen.com/risk-management/configure-custom-risk-rules). + */ + "riskdata.shippingMethod"?: 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). + */ + "riskdata.shopperCountry"?: 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). + */ + "riskdata.simDistributor"?: 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). + */ + "riskdata.userName"?: 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). + */ + "riskdata.userStatus"?: 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). + */ + "riskdata.browserLanguage"?: string; + /** + * ID of the item. + */ + "riskdata.basket.item[itemNr].itemID"?: string; + /** + * A text description of the product the invoice line refers to. + */ + "riskdata.basket.item[itemNr].productTitle"?: string; + /** + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + "riskdata.basket.item[itemNr].amountPerItem"?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + "riskdata.basket.item[itemNr].currency"?: string; + /** + * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + */ + "riskdata.basket.item[itemNr].upc"?: string; + /** + * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + */ + "riskdata.basket.item[itemNr].sku"?: string; + /** + * Brand of the item. + */ + "riskdata.basket.item[itemNr].brand"?: string; + /** + * Manufacturer of the item. + */ + "riskdata.basket.item[itemNr].manufacturer"?: string; + /** + * Category of the item. + */ + "riskdata.basket.item[itemNr].category"?: string; + /** + * Color of the item. + */ + "riskdata.basket.item[itemNr].color"?: string; + /** + * Size of the item. + */ + "riskdata.basket.item[itemNr].size"?: string; + /** + * Quantity of the item purchased. + */ + "riskdata.basket.item[itemNr].quantity"?: string; + /** + * Email associated with the given product in the basket (usually in electronic gift cards). + */ + "riskdata.basket.item[itemNr].receiverEmail"?: string; + /** + * Code of the promotion. + */ + "riskdata.promotions.promotion[itemNr].promotionCode"?: string; + /** + * Name of the promotion. + */ + "riskdata.promotions.promotion[itemNr].promotionName"?: string; + /** + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"?: 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. + */ + "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"?: string; + } + export interface AdditionalDataRiskStandalone { + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 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. + */ + "risk.token"?: 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. + */ + "PayPal.ProtectionEligibility"?: string; + /** + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + */ + "PayPal.PayerId"?: string; + /** + * Unique transaction ID of the payment. + */ + "PayPal.TransactionId"?: string; + /** + * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. + */ + "PayPal.CountryCode"?: string; + /** + * Shopper's first name. + */ + "PayPal.FirstName"?: string; + /** + * Shopper's last name. + */ + "PayPal.LastName"?: string; + /** + * Shopper's phone number. + */ + "PayPal.Phone"?: string; + /** + * Shopper's email. + */ + "PayPal.EmailId"?: string; + } + export interface AdditionalDataTemporaryServices { + /** + * Customer code, if supplied by a customer. + * * Encoding: ASCII + * * maxLength: 25 + */ + "enhancedSchemeData.customerReference"?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00 + * * maxLength: 12 + */ + "enhancedSchemeData.totalTaxAmount"?: string; + /** + * Name or ID associated with the individual working in a temporary capacity. + * * maxLength: 40 + */ + "enhancedSchemeData.employeeName"?: string; + /** + * Description of the job or task of the individual working in a temporary capacity. + * * maxLength: 40 + */ + "enhancedSchemeData.jobDescription"?: string; + /** + * Date for the beginning of the pay period. + * * Format: ddMMyy + * * maxLength: 6 + */ + "enhancedSchemeData.tempStartDate"?: string; + /** + * Date of the end of the billing cycle. + * * Format: ddMMyy + * * maxLength: 6 + */ + "enhancedSchemeData.tempWeekEnding"?: string; + /** + * Name of the individual requesting temporary services. + * * maxLength: 40 + */ + "enhancedSchemeData.requestName"?: string; + /** + * Amount of time worked during a normal operation for the task or job. + * * maxLength: 7 + */ + "enhancedSchemeData.regularHoursWorked"?: string; + /** + * Amount paid per regular hours worked, minor units. + * * maxLength: 7 + */ + "enhancedSchemeData.regularHoursRate"?: string; + } + export interface AdditionalDataWallets { + /** + * The Android Pay token retrieved from the SDK. + */ + "androidpay.token"?: string; + /** + * The Mastercard Masterpass Transaction ID retrieved from the SDK. + */ + "masterpass.transactionId"?: string; + /** + * The Apple Pay token retrieved from the SDK. + */ + "payment.token"?: string; + /** + * The Google Pay token retrieved from the SDK. + */ + "paywithgoogle.token"?: string; + /** + * The Samsung Pay token retrieved from the SDK. + */ + "samsungpay.token"?: string; + /** + * The Visa Checkout Call ID retrieved from the SDK. + */ + "visacheckout.callId"?: string; + } + export interface Address { + /** + * The name of the city. + */ + city: 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; + /** + * 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; + /** + * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in 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`. + */ + street: string; + } + export interface Amount { + /** + * 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; // int64 + } + export interface ApplicationInfo { + /** + * Adyen-developed software, such as libraries and plugins, used to interact with the Adyen API. For example, Magento plugin, Java API library, etc. + */ + adyenLibrary?: IPayments.CommonField; + /** + * Adyen-developed software to get payment details. For example, Checkout SDK, Secured Fields SDK, etc. + */ + adyenPaymentSource?: IPayments.CommonField; + /** + * Third-party developed platform used to initiate payment requests. For example, Magento, Zuora, etc. + */ + externalPlatform?: IPayments.ExternalPlatform; + /** + * Merchant developed software, such as cashier application, used to interact with the Adyen API. + */ + merchantApplication?: IPayments.CommonField; + /** + * Merchant device information. + */ + merchantDevice?: IPayments.MerchantDevice; + /** + * Shopper interaction device, such as terminal, mobile device or web browser, to initiate payment requests. + */ + shopperInteractionDevice?: IPayments.ShopperInteractionDevice; + } + export interface AuthenticationResultRequest { + /** + * The merchant account identifier, with which the authentication was processed. + */ + merchantAccount: string; + /** + * The pspReference identifier for the transaction. + */ + pspReference: string; + } + export interface AuthenticationResultResponse { + /** + * The result of the 3D Secure authentication. + */ + threeDS1Result?: IPayments.ThreeDS1Result; + /** + * The result of the 3D Secure 2 authentication. + */ + threeDS2Result?: IPayments.ThreeDS2Result; + } + export interface BankAccount { + /** + * The bank account number (without separators). + */ + bankAccountNumber?: string; + /** + * The bank city. + */ + bankCity?: 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 [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; + /** + * 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 bank account holder's tax ID. + */ + taxId?: string; + } + export interface BrowserInfo { + /** + * 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; // int32 + /** + * 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; // int32 + /** + * The total width of the shopper's device screen in pixels. + */ + screenWidth: number; // int32 + /** + * Time difference between UTC time and the shopper's browser local time, in minutes. + */ + timeZoneOffset: number; // int32 + /** + * The user agent value of the shopper's browser. + */ + userAgent: string; + } + export interface Card { + /** + * 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 year. + * Format: 4 digits. For example: 2020 + */ + expiryYear: 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 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 year component of the start date (for some UK debit cards only). + */ + startYear?: string; + } + export interface 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; + } + export interface DeviceRenderOptions { + /** + * Supported SDK interface types. + * Allowed values: + * * Native + * * Html + * * both + */ + sdkInterface?: "Html" | "Native" | "both"; + /** + * UI types supported for displaying specific challenges. + * Allowed values: + * * text + * * singleSelect + * * outOfBand + * * otherHtml + * * multiSelect + */ + sdkUiType?: ("multiSelect" | "otherHtml" | "outOfBand" | "singleSelect" | "text")[]; + } + export interface 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; + } + export interface ForexQuote { + /** + * The account name. + */ + account?: string; + /** + * The account type. + */ + accountType?: string; + /** + * The base amount. + */ + baseAmount?: IPayments.Amount; + /** + * The base points. + */ + basePoints: number; // int32 + /** + * The buy rate. + */ + buy?: IPayments.Amount; + /** + * The interbank amount. + */ + interbank?: IPayments.Amount; + /** + * The reference assigned to the forex quote request. + */ + reference?: string; + /** + * The sell rate. + */ + sell?: IPayments.Amount; + /** + * The signature to validate the integrity. + */ + signature?: string; + /** + * The source of the forex quote. + */ + source?: string; + /** + * The type of forex. + */ + type?: string; + /** + * The date until which the forex quote is valid. + */ + validTill: string; // date-time + } + export interface FraudCheckResult { + /** + * The fraud score generated by the risk check. + */ + accountScore: number; // int32 + /** + * The ID of the risk check. + */ + checkId: number; // int32 + /** + * The name of the risk check. + */ + name: string; + } + export interface FraudResult { + /** + * The total fraud score generated by the risk checks. + */ + accountScore: number; // int32 + /** + * The result of the individual risk checks. + */ + results?: IPayments.FraudCheckResult[]; + } + export interface 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; // int32 + } + export interface 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; + } + export interface 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?: "shipToBillingAddress" | "shipToVerifiedAddress" | "shipToNewAddress" | "shipToStore" | "digitalGoods" | "goodsNotShipped" | "other"; + /** + * 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?: "electronicDelivery" | "sameDayShipping" | "overnightShipping" | "twoOrMoreDaysShipping"; + /** + * The amount of prepaid or gift cards used for this purchase. + */ + giftCardAmount?: IPayments.Amount; + /** + * Number of individual prepaid or gift cards used for this purchase. + */ + giftCardCount?: number; // int32 + /** + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + preOrderDate?: string; // date-time + /** + * 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; + } + export interface ModificationRequest { + /** + * This field contains additional data, which may be required for a particular modification request. + * + * The additionalData object consists of entries, each of which includes the key and value. + */ + additionalData?: IPayments.AdditionalDataCommon | IPayments.AdditionalDataModifications | IPayments.AdditionalData3DSecure | IPayments.AdditionalDataAirline | IPayments.AdditionalDataCarRental | IPayments.AdditionalDataLevel23 | IPayments.AdditionalDataLodging | IPayments.AdditionalDataOpenInvoice | IPayments.AdditionalDataRatepay | IPayments.AdditionalDataRetry | IPayments.AdditionalDataRisk | IPayments.AdditionalDataRiskStandalone | IPayments.AdditionalDataTemporaryServices | IPayments.AdditionalDataWallets; + /** + * The merchant account that is used to process the payment. + */ + merchantAccount: string; + /** + * The amount that needs to be captured/refunded. Required for `/capture` and `/refund`, not allowed for `/cancel`. The `currency` must match the currency used in authorisation, the `value` must be smaller than or equal to the authorised amount. + */ + modificationAmount?: IPayments.Amount; + /** + * Authentication data produced by an MPI (Mastercard SecureCode or Verified By Visa). + */ + mpiData?: IPayments.ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + originalMerchantReference?: string; + /** + * The original pspReference of the payment to modify. + * This reference is returned in: + * * authorisation response + * * authorisation notification + */ + originalReference: string; + /** + * Optionally, you can specify your reference for the payment modification. This reference is visible in Customer Area and in reports. + * Maximum length: 80 characters. + */ + reference?: string; + /** + * The details of how the payment should be split when distributing a payment to a Marketpay Marketplace and its Accounts. + */ + splits?: IPayments.Split[]; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + tenderReference?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + uniqueTerminalId?: string; + } + export interface ModificationResult { + /** + * This field contains additional data, which may be returned in a particular modification response. + */ + additionalData?: { + }; + /** + * 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?: string; + /** + * Indicates if the modification request has been received for processing. + */ + response?: "[capture-received]" | "[cancel-received]" | "[refund-received]" | "[cancelOrRefund-received]"; + } + export interface Name { + /** + * The first name. + */ + firstName: string; + /** + * The gender. + * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + gender: "MALE" | "FEMALE" | "UNKNOWN"; + /** + * The name's infix, if applicable. + * >A maximum length of twenty (20) characters is imposed. + */ + infix?: string; + /** + * The last name. + */ + lastName: string; + } + export interface PaymentRequest { + /** + * Shopper account information for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + accountInfo?: IPayments.AccountInfo; + /** + * If you want a [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) request to use a non-zero value, assign this value to `additionalAmount` (while the amount must be still set to 0 to trigger BIN or card verification). + * Required to be in the same currency as the `amount`. + */ + additionalAmount?: IPayments.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. + */ + additionalData?: IPayments.AdditionalDataCommon | IPayments.AdditionalData3DSecure | IPayments.AdditionalDataAirline | IPayments.AdditionalDataCarRental | IPayments.AdditionalDataLevel23 | IPayments.AdditionalDataLodging | IPayments.AdditionalDataOpenInvoice | IPayments.AdditionalDataRatepay | IPayments.AdditionalDataRetry | IPayments.AdditionalDataRisk | IPayments.AdditionalDataRiskStandalone | IPayments.AdditionalDataTemporaryServices | IPayments.AdditionalDataWallets; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount: IPayments.Amount; + /** + * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). + */ + applicationInfo?: IPayments.ApplicationInfo; + /** + * The details of the bank account, from which the payment should be made. + * > Either `bankAccount` or `card` field must be provided in a payment request. + */ + bankAccount?: IPayments.BankAccount; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: IPayments.Address; + /** + * The shopper's browser information. + * > For 3D Secure 2 transactions, `browserInfo` is required for `channel` **web** (or `deviceChannel` **browser**). + */ + browserInfo?: IPayments.BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + captureDelayHours?: number; // int32 + /** + * A container for card data. + * > Either `bankAccount` or `card` field must be provided in a payment request. + */ + card?: IPayments.Card; + /** + * The shopper's date of birth. + * + * Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + dateOfBirth?: string; // date-time + /** + * The forex quote as returned in the response of the forex service. + */ + dccQuote?: IPayments.ForexQuote; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: IPayments.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?: string; // date-time + /** + * 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?: "NaturalPerson" | "CompanyName"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: IPayments.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; + /** + * Additional risk fields for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + merchantRiskIndicator?: IPayments.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?: { + }; + /** + * Authentication data produced by an MPI (Mastercard SecureCode or Verified By Visa). + */ + mpiData?: IPayments.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; + /** + * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/classic-integration/recurring-payments). + */ + recurring?: IPayments.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?: "CardOnFile" | "Subscription" | "UnscheduledCardOnFile"; + /** + * 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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 full name and gender (if specified). + */ + shopperName?: IPayments.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?: IPayments.Split[]; + /** + * The physical store, for which this payment is processed. + */ + store?: string; + /** + * The shopper's telephone number. + */ + telephoneNumber?: string; + /** + * Request fields for 3D Secure 2. + */ + threeDS2RequestData?: IPayments.ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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 PaymentRequest3d { + /** + * Shopper account information for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + accountInfo?: IPayments.AccountInfo; + /** + * If you want a [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) request to use a non-zero value, assign this value to `additionalAmount` (while the amount must be still set to 0 to trigger BIN or card verification). + * Required to be in the same currency as the `amount`. + */ + additionalAmount?: IPayments.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. + */ + additionalData?: IPayments.AdditionalDataCommon | IPayments.AdditionalData3DSecure | IPayments.AdditionalDataAirline | IPayments.AdditionalDataCarRental | IPayments.AdditionalDataLevel23 | IPayments.AdditionalDataLodging | IPayments.AdditionalDataOpenInvoice | IPayments.AdditionalDataRatepay | IPayments.AdditionalDataRetry | IPayments.AdditionalDataRisk | IPayments.AdditionalDataRiskStandalone | IPayments.AdditionalDataTemporaryServices | IPayments.AdditionalDataWallets; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount?: IPayments.Amount; + /** + * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). + */ + applicationInfo?: IPayments.ApplicationInfo; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: IPayments.Address; + /** + * The shopper's browser information. + * > For 3D Secure 2 transactions, `browserInfo` is required for `channel` **web** (or `deviceChannel` **browser**). + */ + browserInfo?: IPayments.BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + captureDelayHours?: number; // int32 + /** + * The shopper's date of birth. + * + * Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + dateOfBirth?: string; // date-time + /** + * The forex quote as returned in the response of the forex service. + */ + dccQuote?: IPayments.ForexQuote; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: IPayments.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?: string; // date-time + /** + * 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; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: IPayments.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 payment session identifier returned by the card issuer. + */ + md: 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; + /** + * Additional risk fields for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + merchantRiskIndicator?: IPayments.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?: { + }; + /** + * 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; + /** + * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + */ + paResponse: string; + /** + * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/classic-integration/recurring-payments). + */ + recurring?: IPayments.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?: "CardOnFile" | "Subscription" | "UnscheduledCardOnFile"; + /** + * 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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 full name and gender (if specified). + */ + shopperName?: IPayments.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?: IPayments.Split[]; + /** + * The physical store, for which this payment is processed. + */ + store?: string; + /** + * The shopper's telephone number. + */ + telephoneNumber?: string; + /** + * Request fields for 3D Secure 2. + */ + threeDS2RequestData?: IPayments.ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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 PaymentRequest3ds2 { + /** + * Shopper account information for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + accountInfo?: IPayments.AccountInfo; + /** + * If you want a [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) request to use a non-zero value, assign this value to `additionalAmount` (while the amount must be still set to 0 to trigger BIN or card verification). + * Required to be in the same currency as the `amount`. + */ + additionalAmount?: IPayments.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. + */ + additionalData?: IPayments.AdditionalDataCommon | IPayments.AdditionalData3DSecure | IPayments.AdditionalDataAirline | IPayments.AdditionalDataCarRental | IPayments.AdditionalDataLevel23 | IPayments.AdditionalDataLodging | IPayments.AdditionalDataOpenInvoice | IPayments.AdditionalDataRatepay | IPayments.AdditionalDataRetry | IPayments.AdditionalDataRisk | IPayments.AdditionalDataRiskStandalone | IPayments.AdditionalDataTemporaryServices | IPayments.AdditionalDataWallets; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount: IPayments.Amount; + /** + * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). + */ + applicationInfo?: IPayments.ApplicationInfo; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: IPayments.Address; + /** + * The shopper's browser information. + * > For 3D Secure 2 transactions, `browserInfo` is required for `channel` **web** (or `deviceChannel` **browser**). + */ + browserInfo?: IPayments.BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + captureDelayHours?: number; // int32 + /** + * The shopper's date of birth. + * + * Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + dateOfBirth?: string; // date-time + /** + * The forex quote as returned in the response of the forex service. + */ + dccQuote?: IPayments.ForexQuote; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: IPayments.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?: string; // date-time + /** + * 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; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: IPayments.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; + /** + * Additional risk fields for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + merchantRiskIndicator?: IPayments.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?: { + }; + /** + * 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; + /** + * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/classic-integration/recurring-payments). + */ + recurring?: IPayments.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?: "CardOnFile" | "Subscription" | "UnscheduledCardOnFile"; + /** + * 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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 full name and gender (if specified). + */ + shopperName?: IPayments.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?: IPayments.Split[]; + /** + * The physical store, for which this payment is processed. + */ + store?: string; + /** + * The shopper's telephone number. + */ + telephoneNumber?: string; + /** + * Request fields for 3D Secure 2. + */ + threeDS2RequestData?: IPayments.ThreeDS2RequestData; + /** + * Thre ThreeDS2Result that was returned in the final CRes. + */ + threeDS2Result?: IPayments.ThreeDS2Result; + /** + * The ThreeDS2Token that was returned in the /authorise call. + */ + threeDS2Token?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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 PaymentResult { + /** + * 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?: IPayments.ResponseAdditionalDataCommon | IPayments.ResponseAdditionalDataBillingAddress | IPayments.ResponseAdditionalDataCard | IPayments.ResponseAdditionalDataDeliveryAddress | IPayments.ResponseAdditionalDataInstallments; + /** + * 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; + /** + * Includes the currency of the conversion and the value of the transaction. + * > 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). + */ + dccAmount?: IPayments.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; + /** + * The fraud result properties of the payment. + */ + fraudResult?: IPayments.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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). + * * **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?: "AuthenticationFinished" | "Authorised" | "Cancelled" | "ChallengeShopper" | "Error" | "IdentifyShopper" | "Pending" | "PresentToShopper" | "Received" | "RedirectShopper" | "Refused"; + } + namespace Post { + export type RequestBody = IPayments.ModificationRequest; + namespace Responses { + export type $200 = IPayments.ModificationResult; + } + } + export interface 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-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?: "ONECLICK" | "RECURRING" | "PAYOUT"; + /** + * A descriptive name for this detail. + */ + recurringDetailName?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + recurringExpiry?: string; // date-time + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + recurringFrequency?: string; + /** + * The name of the token service. + */ + tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; + } + export interface ResponseAdditionalDataBillingAddress { + /** + * The billing address city passed in the payment request. + */ + "billingAddress.city"?: string; + /** + * The billing address country passed in the payment request. + * + * Example: NL + */ + "billingAddress.country"?: string; + /** + * The billing address house number or name passed in the payment request. + */ + "billingAddress.houseNumberOrName"?: string; + /** + * The billing address postal code passed in the payment request. + * + * Example: 1011 DJ + */ + "billingAddress.postalCode"?: string; + /** + * The billing address state or province passed in the payment request. + * + * Example: NH + */ + "billingAddress.stateOrProvince"?: string; + /** + * The billing address street passed in the payment request. + */ + "billingAddress.street"?: string; + } + export interface ResponseAdditionalDataCard { + /** + * The Bank Identification Number of a credit card, which is the first six digits of a card number. + * + * Example: 521234 + */ + cardBin?: string; + /** + * The cardholder name passed in the payment request. + */ + cardHolderName?: string; + /** + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + */ + cardIssuingBank?: string; + /** + * The country where the card was issued. + * + * Example: US + */ + cardIssuingCountry?: string; + /** + * The currency in which the card is issued, if this information is available. + * + * Example: USD + */ + cardIssuingCurrency?: string; + /** + * The card payment method used for the transaction. + * + * Example: amex + */ + cardPaymentMethod?: string; + /** + * The last four digits of a card number. + * > Returned only in case of a card payment. + */ + cardSummary?: string; + } + export interface ResponseAdditionalDataCommon { + /** + * The name of the Adyen acquirer account. + * + * Example: PayPalSandbox_TestAcquirer + * > Only relevant for PayPal transactions. + */ + acquirerAccountCode?: string; + /** + * The name of the acquirer processing the payment request. + * + * Example: TestPmmAcquirer + */ + acquirerCode?: string; + /** + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. + * + * Example: 7C9N3FNBKT9 + */ + acquirerReference?: string; + /** + * The Adyen alias of the card. + * + * Example: H167852639363479 + */ + alias?: string; + /** + * The type of the card alias. + * + * Example: Default + */ + aliasType?: string; + /** + * 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. + * + * Example: 58747 + */ + authCode?: string; + /** + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + authorisedAmountCurrency?: string; + /** + * Value of the amount authorised. + * + * This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + */ + authorisedAmountValue?: string; + /** + * The AVS result code of the payment, which provides information about the outcome of the AVS check. + * + * For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + */ + avsResult?: string; + /** + * Raw AVS result received from the acquirer, where available. + * + * Example: D + */ + avsResultRaw?: string; + /** + * BIC of a bank account. + * + * Example: TESTNL01 + * > Only relevant for SEPA Direct Debit transactions. + */ + bic?: string; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + */ + dsTransID?: string; + /** + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. + * + * Example: 02 + */ + eci?: string; + /** + * The expiry date on the card. + * + * Example: 6/2016 + * > Returned only in case of a card payment. + */ + expiryDate?: string; + /** + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. + * + * Example: EUR + */ + extraCostsCurrency?: string; + /** + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + */ + extraCostsValue?: string; + /** + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + */ + "fraudCheck-[itemNr]-[FraudCheckname]"?: string; + /** + * Information regarding the funding type of the card. The possible return values are: + * * CHARGE + * * CREDIT + * * DEBIT + * * PREPAID + * * PREPAID_RELOADABLE + * * PREPAID_NONRELOADABLE + * * DEFFERED_DEBIT + * > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. + * + * For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional 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 "Y" or "D". + */ + fundsAvailability?: string; + /** + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either "Refused", "Restricted Card", "Transaction Not Permitted", "Not supported" or "DeclinedNon Generic" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to "Not Supported". + * + * Possible values: + * * 3D Secure Mandated + * * ContAuth Not Supported + * * CVC Mandated + * * Ecommerce Not Allowed + * * Crossborder Not Supported + * * Card Updated + * * Low Authrate Bin + * * Non-reloadable prepaid card + */ + inferredRefusalReason?: string; + /** + * The issuing country of the card based on the BIN list that Adyen maintains. + * + * Example: JP + */ + issuerCountry?: string; + /** + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. + * + * This contains either the Mastercard Trace ID or the Visa Transaction ID. + */ + networkTxReference?: string; + /** + * The owner name of a bank account. + * + * Only relevant for SEPA Direct Debit transactions. + */ + ownerName?: string; + /** + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + */ + paymentAccountReference?: string; + /** + * The Adyen sub-variant of the payment method used for the payment request. + * + * For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). + * + * Example: mcpro + */ + paymentMethodVariant?: 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) + */ + payoutEligible?: string; + } + export interface ResponseAdditionalDataDeliveryAddress { + /** + * The delivery address city passed in the payment request. + */ + "deliveryAddress.city"?: string; + /** + * The delivery address country passed in the payment request. + * + * Example: NL + */ + "deliveryAddress.country"?: string; + /** + * The delivery address house number or name passed in the payment request. + */ + "deliveryAddress.houseNumberOrName"?: string; + /** + * The delivery address postal code passed in the payment request. + * + * Example: 1011 DJ + */ + "deliveryAddress.postalCode"?: string; + /** + * The delivery address state or province passed in the payment request. + * + * Example: NH + */ + "deliveryAddress.stateOrProvince"?: string; + /** + * The delivery address street passed in the payment request. + */ + "deliveryAddress.street"?: string; + } + export interface ResponseAdditionalDataInstallments { + /** + * The number of installments that the payment amount should be charged with. + * + * Example: 5 + * > Only relevant for card payments in countries that support installments. + */ + "installments.value"?: string; + /** + * Type of installment. The value of `installmentType` should be **IssuerFinanced**. + */ + "installmentPaymentData.installmentType"?: string; + /** + * Possible values: + * * PayInInstallmentsOnly + * * PayInFullOnly + * * PayInFullOrInstallments + */ + "installmentPaymentData.paymentOptions"?: string; + /** + * Total number of installments possible for this payment. + */ + "installmentPaymentData.option[itemNr].numberOfInstallments"?: string; + /** + * Interest rate for the installment period. + */ + "installmentPaymentData.option[itemNr].interestRate"?: string; + /** + * Installment fee amount in minor units. + */ + "installmentPaymentData.option[itemNr].installmentFee"?: string; + /** + * Annual interest rate. + */ + "installmentPaymentData.option[itemNr].annualPercentageRate"?: string; + /** + * First Installment Amount in minor units. + */ + "installmentPaymentData.option[itemNr].firstInstallmentAmount"?: string; + /** + * Subsequent Installment Amount in minor units. + */ + "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"?: string; + /** + * Minimum number of installments possible for this payment. + */ + "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"?: string; + /** + * Maximum number of installments possible for this payment. + */ + "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"?: string; + /** + * Total amount in minor units. + */ + "installmentPaymentData.option[itemNr].totalAmountDue"?: string; + } + export interface 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; + } + export interface 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; + } + export interface Split { + /** + * The account to which this split applies. + * + * >Required if the type is `MarketPlace`. + */ + account?: string; + /** + * The amount of this split. + */ + amount: IPayments.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`, `BalanceAccount`. + */ + type: "BalanceAccount" | "Commission" | "Default" | "MarketPlace" | "PaymentFee" | "VAT" | "Verification"; + } + export interface 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; // int64 + } + export interface ThreeDS1Result { + /** + * The cardholder authentication value (base64 encoded). + */ + cavv?: string; + /** + * The CAVV algorithm used. + */ + cavvAlgorithm?: string; + /** + * 3D Secure Electronic Commerce Indicator (ECI). + */ + eci?: string; + /** + * The authentication response from the ACS. + */ + threeDAuthenticatedResponse?: string; + /** + * Whether 3D Secure was offered or not. + */ + threeDOfferedResponse?: string; + /** + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + */ + xid?: string; + } + export interface ThreeDS2RequestData { + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate"; + /** + * The environment of the shopper. + * Allowed values: + * * `app` + * * `browser` + */ + deviceChannel: string; + /** + * Display options for the 3D Secure 2 SDK. + * Optional and only for `deviceChannel` **app**. + */ + deviceRenderOptions?: IPayments.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/other-3ds-flows/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/other-3ds-flows/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; + /** + * The `sdkEphemPubKey` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. + */ + sdkEphemPubKey?: IPayments.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; // int32 + /** + * 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/other-3ds-flows/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/other-3ds-flows/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?: "goodsOrServicePurchase" | "checkAcceptance" | "accountFunding" | "quasiCashTransaction" | "prepaidActivationAndLoad"; + /** + * 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 ThreeDS2Result { + /** + * The `authenticationValue` value as defined in the 3D Secure 2 specification. + */ + authenticationValue?: string; + /** + * The algorithm used by the ACS to calculate the authentication value, only for CartesBancaires integrations. + */ + cavvAlgorithm?: string; + /** + * The `dsTransID` value as defined in the 3D Secure 2 specification. + */ + dsTransID?: string; + /** + * The `eci` value as defined in the 3D Secure 2 specification. + */ + eci?: string; + /** + * The `messageVersion` value as defined in the 3D Secure 2 specification. + */ + messageVersion?: string; + /** + * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + */ + threeDSServerTransID?: string; + /** + * The `timestamp` value of the 3D Secure 2 authentication. + */ + timestamp?: string; + /** + * The `transStatus` value as defined in the 3D Secure 2 specification. + */ + transStatus?: string; + /** + * The `transStatusReason` value as defined in the 3D Secure 2 specification. + */ + transStatusReason?: string; + /** + * The `whiteListStatus` value as defined in the 3D Secure 2 specification. + */ + whiteListStatus?: string; + } + export interface ThreeDS2ResultRequest { + /** + * The merchant account identifier, with which you want to process the transaction. + */ + merchantAccount: string; + /** + * The pspReference returned in the /authorise call. + */ + pspReference: string; + } + export interface ThreeDS2ResultResponse { + /** + * The result of the 3D Secure 2 authentication. + */ + threeDS2Result?: IPayments.ThreeDS2Result; + } + export interface ThreeDSecureData { + /** + * 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?: "Y" | "N" | "U" | "A"; + /** + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + cavv?: string; // byte + /** + * 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 the `ARes`. The possible values are **A** or **Y** for a frictionless flow, or **C** for a challenge flow. + */ + directoryResponse?: "A" | "C" | "D" | "I" | "N" | "R" | "U" | "Y"; + /** + * 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 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; // byte + } +} diff --git a/src/typings/payments/accountInfo.ts b/src/typings/payments/accountInfo.ts deleted file mode 100644 index ec31ed4..0000000 --- a/src/typings/payments/accountInfo.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/additionalData3DSecure.ts b/src/typings/payments/additionalData3DSecure.ts deleted file mode 100644 index c178b42..0000000 --- a/src/typings/payments/additionalData3DSecure.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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; - /** - * Indicates the [exemption type](https://docs-admin.is.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** - */ - 'scaExemption'?: 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" - }, - { - "name": "scaExemption", - "baseName": "scaExemption", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalData3DSecure.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataAirline.ts b/src/typings/payments/additionalDataAirline.ts deleted file mode 100644 index 470be7b..0000000 --- a/src/typings/payments/additionalDataAirline.ts +++ /dev/null @@ -1,267 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index 80caa8d..0000000 --- a/src/typings/payments/additionalDataCarRental.ts +++ /dev/null @@ -1,231 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index 9de1c5a..0000000 --- a/src/typings/payments/additionalDataCommon.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index 04abd5d..0000000 --- a/src/typings/payments/additionalDataLevel23.ts +++ /dev/null @@ -1,177 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index 96ea473..0000000 --- a/src/typings/payments/additionalDataLodging.ts +++ /dev/null @@ -1,177 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/additionalDataModifications.ts b/src/typings/payments/additionalDataModifications.ts deleted file mode 100644 index 198fff9..0000000 --- a/src/typings/payments/additionalDataModifications.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 AdditionalDataModifications { - /** - * This is the installment option selected by the shopper. It is required only if specified by the user. - */ - 'installmentPaymentDataSelectedInstallmentOption'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "installmentPaymentDataSelectedInstallmentOption", - "baseName": "installmentPaymentData.selectedInstallmentOption", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataModifications.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataOpenInvoice.ts b/src/typings/payments/additionalDataOpenInvoice.ts deleted file mode 100644 index 5bc4f43..0000000 --- a/src/typings/payments/additionalDataOpenInvoice.ts +++ /dev/null @@ -1,123 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index df0ae02..0000000 --- a/src/typings/payments/additionalDataRatepay.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index ac2def1..0000000 --- a/src/typings/payments/additionalDataRetry.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index 26ce278..0000000 --- a/src/typings/payments/additionalDataRisk.ts +++ /dev/null @@ -1,384 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index ed8046e..0000000 --- a/src/typings/payments/additionalDataRiskStandalone.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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: D - */ - '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 deleted file mode 100644 index 33d7f77..0000000 --- a/src/typings/payments/additionalDataTemporaryServices.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index a0374ed..0000000 --- a/src/typings/payments/additionalDataWallets.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 deleted file mode 100644 index 8f6940a..0000000 --- a/src/typings/payments/address.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 Address { - /** - * The name of the city. - */ - 'city': 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; - /** - * 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; - /** - * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in 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`. - */ - '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 deleted file mode 100644 index dfa7e7e..0000000 --- a/src/typings/payments/amount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 Amount { - /** - * 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; - - 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 deleted file mode 100644 index 1cb8547..0000000 --- a/src/typings/payments/applicationInfo.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/authenticationResultRequest.ts b/src/typings/payments/authenticationResultRequest.ts deleted file mode 100644 index ab447ed..0000000 --- a/src/typings/payments/authenticationResultRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 AuthenticationResultRequest { - /** - * The merchant account identifier, with which the authentication was processed. - */ - 'merchantAccount': string; - /** - * The pspReference identifier for the transaction. - */ - 'pspReference': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "pspReference", - "baseName": "pspReference", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AuthenticationResultRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/authenticationResultResponse.ts b/src/typings/payments/authenticationResultResponse.ts deleted file mode 100644 index 1cb9997..0000000 --- a/src/typings/payments/authenticationResultResponse.ts +++ /dev/null @@ -1,38 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { ThreeDS1Result } from './threeDS1Result'; -import { ThreeDS2Result } from './threeDS2Result'; - -export class AuthenticationResultResponse { - 'threeDS1Result'?: ThreeDS1Result; - 'threeDS2Result'?: ThreeDS2Result; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "threeDS1Result", - "baseName": "threeDS1Result", - "type": "ThreeDS1Result" - }, - { - "name": "threeDS2Result", - "baseName": "threeDS2Result", - "type": "ThreeDS2Result" - } ]; - - static getAttributeTypeMap() { - return AuthenticationResultResponse.attributeTypeMap; - } -} - diff --git a/src/typings/payments/avs.ts b/src/typings/payments/avs.ts deleted file mode 100644 index 62e60af..0000000 --- a/src/typings/payments/avs.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * 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 deleted file mode 100644 index 31e602d..0000000 --- a/src/typings/payments/bankAccount.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 BankAccount { - /** - * The bank account number (without separators). - */ - 'bankAccountNumber'?: string; - /** - * The bank city. - */ - 'bankCity'?: 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 [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; - /** - * 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 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 deleted file mode 100644 index 3dbd95f..0000000 --- a/src/typings/payments/browserInfo.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 BrowserInfo { - /** - * 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; - /** - * 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/payments/card.ts b/src/typings/payments/card.ts deleted file mode 100644 index 1492e01..0000000 --- a/src/typings/payments/card.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 Card { - /** - * 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 year. Format: 4 digits. For example: 2020 - */ - 'expiryYear': 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 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 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 deleted file mode 100644 index 1a2a1c0..0000000 --- a/src/typings/payments/checkoutPaymentsAction.ts +++ /dev/null @@ -1,225 +0,0 @@ -/** - * 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 deleted file mode 100644 index 1d36454..0000000 --- a/src/typings/payments/commonField.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/company.ts b/src/typings/payments/company.ts deleted file mode 100644 index 57437d6..0000000 --- a/src/typings/payments/company.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 deleted file mode 100644 index 039aad2..0000000 --- a/src/typings/payments/configuration.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 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 deleted file mode 100644 index 953bb28..0000000 --- a/src/typings/payments/createPaymentLinkRequest.ts +++ /dev/null @@ -1,152 +0,0 @@ -/** - * 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 deleted file mode 100644 index 701f66e..0000000 --- a/src/typings/payments/createPaymentLinkResponse.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * 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 deleted file mode 100644 index 01ee7f0..0000000 --- a/src/typings/payments/detailsRequest.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index b67f32b..0000000 --- a/src/typings/payments/deviceRenderOptions.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/externalPlatform.ts b/src/typings/payments/externalPlatform.ts deleted file mode 100644 index 0a2db41..0000000 --- a/src/typings/payments/externalPlatform.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/forexQuote.ts b/src/typings/payments/forexQuote.ts deleted file mode 100644 index 182d82f..0000000 --- a/src/typings/payments/forexQuote.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ForexQuote { - /** - * The account name. - */ - 'account'?: string; - /** - * The account type. - */ - 'accountType'?: string; - 'baseAmount'?: Amount; - /** - * The base points. - */ - 'basePoints': number; - 'buy'?: Amount; - 'interbank'?: Amount; - /** - * The reference assigned to the forex quote request. - */ - 'reference'?: string; - 'sell'?: Amount; - /** - * The signature to validate the integrity. - */ - 'signature'?: string; - /** - * The source of the forex quote. - */ - 'source'?: string; - /** - * The type of forex. - */ - 'type'?: string; - /** - * 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 deleted file mode 100644 index edb124b..0000000 --- a/src/typings/payments/fraudCheckResult.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 FraudCheckResult { - /** - * The fraud score generated by the risk check. - */ - 'accountScore': number; - /** - * The ID of the risk check. - */ - 'checkId': number; - /** - * 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 deleted file mode 100644 index b100e9b..0000000 --- a/src/typings/payments/fraudResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { FraudCheckResult } from './fraudCheckResult'; - -export class FraudResult { - /** - * The total fraud score generated by the risk checks. - */ - 'accountScore': number; - /** - * 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/index.ts b/src/typings/payments/index.ts deleted file mode 100755 index c5fb220..0000000 --- a/src/typings/payments/index.ts +++ /dev/null @@ -1,28 +0,0 @@ -export * from './accountInfo'; -export * from './address'; -export * from './amount'; -export * from './bankAccount'; -export * from './browserInfo'; -export * from './card'; -export * from './deviceRenderOptions'; -export * from './forexQuote'; -export * from './fraudCheckResult'; -export * from './fraudResult'; -export * from './installments'; -export * from './merchantRiskIndicator'; -export * from './modificationRequest'; -export * from './modificationResult'; -export * from './name'; -export * from './paymentRequest'; -export * from './paymentRequest3d'; -export * from './paymentRequest3ds2'; -export * from './paymentResult'; -export * from './recurring'; -export * from './sDKEphemPubKey'; -export * from './split'; -export * from './splitAmount'; -export * from './threeDS2RequestData'; -export * from './threeDS2Result'; -export * from './threeDS2ResultRequest'; -export * from './threeDS2ResultResponse'; -export * from './threeDSecureData'; diff --git a/src/typings/payments/inputDetail.ts b/src/typings/payments/inputDetail.ts deleted file mode 100644 index 44aec9c..0000000 --- a/src/typings/payments/inputDetail.ts +++ /dev/null @@ -1,107 +0,0 @@ -/** - * 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 deleted file mode 100644 index afebcf1..0000000 --- a/src/typings/payments/installments.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 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; - - 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 deleted file mode 100644 index 3798a85..0000000 --- a/src/typings/payments/item.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 deleted file mode 100644 index c2b8761..0000000 --- a/src/typings/payments/lineItem.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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 deleted file mode 100644 index a9155a4..0000000 --- a/src/typings/payments/merchantDevice.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/merchantRiskIndicator.ts b/src/typings/payments/merchantRiskIndicator.ts deleted file mode 100644 index 195d2e3..0000000 --- a/src/typings/payments/merchantRiskIndicator.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/modificationRequest.ts b/src/typings/payments/modificationRequest.ts deleted file mode 100644 index 22fb692..0000000 --- a/src/typings/payments/modificationRequest.ts +++ /dev/null @@ -1,112 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { AnyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class ModificationRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: AnyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount'?: Amount; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference': string; - /** - * Optionally, you can specify your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * The details of how the payment should be split when distributing a payment to a Marketpay Marketplace and its Accounts. - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "additionalData", - "baseName": "additionalData", - "type": "AnyOfAdditionalDataCommonAdditionalDataModificationsAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" - }, - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ModificationRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/modificationResult.ts b/src/typings/payments/modificationResult.ts deleted file mode 100644 index 7175f08..0000000 --- a/src/typings/payments/modificationResult.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ModificationResult { - /** - * This field contains additional data, which may be returned in a particular modification response. - */ - 'additionalData'?: object; - /** - * 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'?: string; - /** - * Indicates if the modification request has been received for processing. - */ - 'response'?: ModificationResult.ResponseEnum; - - 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": "ModificationResult.ResponseEnum" - } ]; - - static getAttributeTypeMap() { - return ModificationResult.attributeTypeMap; - } -} - -export namespace ModificationResult { - export enum ResponseEnum { - CaptureReceived = '[capture-received]', - CancelReceived = '[cancel-received]', - RefundReceived = '[refund-received]', - CancelOrRefundReceived = '[cancelOrRefund-received]' - } -} diff --git a/src/typings/payments/name.ts b/src/typings/payments/name.ts deleted file mode 100644 index 085262e..0000000 --- a/src/typings/payments/name.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 Name { - /** - * The first name. - */ - 'firstName': string; - /** - * 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 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 enum GenderEnum { - MALE = 'MALE', - FEMALE = 'FEMALE', - UNKNOWN = 'UNKNOWN' - } -} diff --git a/src/typings/payments/paymentMethod.ts b/src/typings/payments/paymentMethod.ts deleted file mode 100644 index 66476df..0000000 --- a/src/typings/payments/paymentMethod.ts +++ /dev/null @@ -1,104 +0,0 @@ -/** - * 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 deleted file mode 100644 index 29888dc..0000000 --- a/src/typings/payments/paymentMethodGroup.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index d6fc5dc..0000000 --- a/src/typings/payments/paymentMethodsGroup.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index 917b9b5..0000000 --- a/src/typings/payments/paymentMethodsRequest.ts +++ /dev/null @@ -1,141 +0,0 @@ -/** - * 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 deleted file mode 100644 index 1923c8c..0000000 --- a/src/typings/payments/paymentMethodsResponse.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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 deleted file mode 100644 index 317c798..0000000 --- a/src/typings/payments/paymentRequest.ts +++ /dev/null @@ -1,441 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { AccountInfo } from './accountInfo'; -import { Address } from './address'; -import { Amount } from './amount'; -import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; -import { ApplicationInfo } from './applicationInfo'; -import { BankAccount } from './bankAccount'; -import { BrowserInfo } from './browserInfo'; -import { Card } from './card'; -import { ForexQuote } from './forexQuote'; -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 PaymentRequest { - '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. - */ - 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; - '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'?: 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: 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'?: 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. 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; - /** - * 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/other-3ds-flows/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; - - 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": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" - }, - { - "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": "PaymentRequest.EntityTypeEnum" - }, - { - "name": "fraudOffset", - "baseName": "fraudOffset", - "type": "number" - }, - { - "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": "PaymentRequest.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": "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": "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 PaymentRequest.attributeTypeMap; - } -} - -export namespace PaymentRequest { - 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/paymentRequest3d.ts b/src/typings/payments/paymentRequest3d.ts deleted file mode 100644 index 17cf7a2..0000000 --- a/src/typings/payments/paymentRequest3d.ts +++ /dev/null @@ -1,416 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { AccountInfo } from './accountInfo'; -import { Address } from './address'; -import { Amount } from './amount'; -import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; -import { ApplicationInfo } from './applicationInfo'; -import { BrowserInfo } from './browserInfo'; -import { ForexQuote } from './forexQuote'; -import { Installments } from './installments'; -import { MerchantRiskIndicator } from './merchantRiskIndicator'; -import { Name } from './name'; -import { Recurring } from './recurring'; -import { Split } from './split'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; - -export class PaymentRequest3d { - '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. - */ - 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; - 'amount'?: Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - 'captureDelayHours'?: number; - /** - * 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; - /** - * 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 payment session identifier returned by the card issuer. - */ - 'md': 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; - /** - * 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; - /** - * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. - */ - 'paResponse': 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'?: PaymentRequest3d.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'?: PaymentRequest3d.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/other-3ds-flows/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; - - 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": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" - }, - { - "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": "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": "fraudOffset", - "baseName": "fraudOffset", - "type": "number" - }, - { - "name": "installments", - "baseName": "installments", - "type": "Installments" - }, - { - "name": "mcc", - "baseName": "mcc", - "type": "string" - }, - { - "name": "md", - "baseName": "md", - "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": "orderReference", - "baseName": "orderReference", - "type": "string" - }, - { - "name": "paResponse", - "baseName": "paResponse", - "type": "string" - }, - { - "name": "recurring", - "baseName": "recurring", - "type": "Recurring" - }, - { - "name": "recurringProcessingModel", - "baseName": "recurringProcessingModel", - "type": "PaymentRequest3d.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": "PaymentRequest3d.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 PaymentRequest3d.attributeTypeMap; - } -} - -export namespace PaymentRequest3d { - 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/paymentRequest3ds2.ts b/src/typings/payments/paymentRequest3ds2.ts deleted file mode 100644 index 09b6922..0000000 --- a/src/typings/payments/paymentRequest3ds2.ts +++ /dev/null @@ -1,414 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { AccountInfo } from './accountInfo'; -import { Address } from './address'; -import { Amount } from './amount'; -import { AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets } from './anyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets'; -import { ApplicationInfo } from './applicationInfo'; -import { BrowserInfo } from './browserInfo'; -import { ForexQuote } from './forexQuote'; -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 { ThreeDS2Result } from './threeDS2Result'; - -export class PaymentRequest3ds2 { - '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. - */ - 'additionalData'?: AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets; - 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - 'captureDelayHours'?: number; - /** - * 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; - /** - * 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: 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; - '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'?: PaymentRequest3ds2.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'?: PaymentRequest3ds2.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; - 'threeDS2Result'?: ThreeDS2Result; - /** - * The ThreeDS2Token that was returned in the /authorise call. - */ - 'threeDS2Token'?: string; - /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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; - - 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": "AnyOfAdditionalDataCommonAdditionalData3DSecureAdditionalDataAirlineAdditionalDataCarRentalAdditionalDataLevel23AdditionalDataLodgingAdditionalDataOpenInvoiceAdditionalDataRatepayAdditionalDataRetryAdditionalDataRiskAdditionalDataRiskStandaloneAdditionalDataTemporaryServicesAdditionalDataWallets" - }, - { - "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": "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": "fraudOffset", - "baseName": "fraudOffset", - "type": "number" - }, - { - "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": "orderReference", - "baseName": "orderReference", - "type": "string" - }, - { - "name": "recurring", - "baseName": "recurring", - "type": "Recurring" - }, - { - "name": "recurringProcessingModel", - "baseName": "recurringProcessingModel", - "type": "PaymentRequest3ds2.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": "PaymentRequest3ds2.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": "threeDS2Result", - "baseName": "threeDS2Result", - "type": "ThreeDS2Result" - }, - { - "name": "threeDS2Token", - "baseName": "threeDS2Token", - "type": "string" - }, - { - "name": "threeDSAuthenticationOnly", - "baseName": "threeDSAuthenticationOnly", - "type": "boolean" - }, - { - "name": "totalsGroup", - "baseName": "totalsGroup", - "type": "string" - }, - { - "name": "trustedShopper", - "baseName": "trustedShopper", - "type": "boolean" - } ]; - - static getAttributeTypeMap() { - return PaymentRequest3ds2.attributeTypeMap; - } -} - -export namespace PaymentRequest3ds2 { - 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 deleted file mode 100644 index 191f727..0000000 --- a/src/typings/payments/paymentResponse.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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/paymentResult.ts b/src/typings/payments/paymentResult.ts deleted file mode 100644 index eb7663d..0000000 --- a/src/typings/payments/paymentResult.ts +++ /dev/null @@ -1,135 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { AnyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments } from './anyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments'; -import { FraudResult } from './fraudResult'; - -export class PaymentResult { - /** - * 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'?: AnyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments; - /** - * 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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). * **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'?: PaymentResult.ResultCodeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "additionalData", - "baseName": "additionalData", - "type": "AnyOfResponseAdditionalDataCommonResponseAdditionalDataBillingAddressResponseAdditionalDataCardResponseAdditionalDataDeliveryAddressResponseAdditionalDataInstallments" - }, - { - "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": "PaymentResult.ResultCodeEnum" - } ]; - - static getAttributeTypeMap() { - return PaymentResult.attributeTypeMap; - } -} - -export namespace PaymentResult { - 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 deleted file mode 100644 index 560bb4f..0000000 --- a/src/typings/payments/paymentSetupRequest.ts +++ /dev/null @@ -1,480 +0,0 @@ -/** - * 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 deleted file mode 100644 index b1f61d5..0000000 --- a/src/typings/payments/paymentSetupResponse.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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 deleted file mode 100644 index 4116da5..0000000 --- a/src/typings/payments/paymentVerificationRequest.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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 deleted file mode 100644 index fe0b7bb..0000000 --- a/src/typings/payments/paymentVerificationResponse.ts +++ /dev/null @@ -1,125 +0,0 @@ -/** - * 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 deleted file mode 100644 index a602773..0000000 --- a/src/typings/payments/recurring.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 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-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; - /** - * 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 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 deleted file mode 100644 index 54ffc06..0000000 --- a/src/typings/payments/recurringDetail.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * 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 deleted file mode 100644 index 4652ae3..0000000 --- a/src/typings/payments/redirect.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * 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/responseAdditionalDataBillingAddress.ts b/src/typings/payments/responseAdditionalDataBillingAddress.ts deleted file mode 100644 index f5d9eb7..0000000 --- a/src/typings/payments/responseAdditionalDataBillingAddress.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ResponseAdditionalDataBillingAddress { - /** - * The billing address city passed in the payment request. - */ - 'billingAddressCity'?: string; - /** - * The billing address country passed in the payment request. Example: NL - */ - 'billingAddressCountry'?: string; - /** - * The billing address house number or name passed in the payment request. - */ - 'billingAddressHouseNumberOrName'?: string; - /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - */ - 'billingAddressPostalCode'?: string; - /** - * The billing address state or province passed in the payment request. Example: NH - */ - 'billingAddressStateOrProvince'?: string; - /** - * The billing address street passed in the payment request. - */ - 'billingAddressStreet'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "billingAddressCity", - "baseName": "billingAddress.city", - "type": "string" - }, - { - "name": "billingAddressCountry", - "baseName": "billingAddress.country", - "type": "string" - }, - { - "name": "billingAddressHouseNumberOrName", - "baseName": "billingAddress.houseNumberOrName", - "type": "string" - }, - { - "name": "billingAddressPostalCode", - "baseName": "billingAddress.postalCode", - "type": "string" - }, - { - "name": "billingAddressStateOrProvince", - "baseName": "billingAddress.stateOrProvince", - "type": "string" - }, - { - "name": "billingAddressStreet", - "baseName": "billingAddress.street", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataBillingAddress.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataCard.ts b/src/typings/payments/responseAdditionalDataCard.ts deleted file mode 100644 index b287719..0000000 --- a/src/typings/payments/responseAdditionalDataCard.ts +++ /dev/null @@ -1,87 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ResponseAdditionalDataCard { - /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Example: 521234 - */ - 'cardBin'?: string; - /** - * The cardholder name passed in the payment request. - */ - 'cardHolderName'?: string; - /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. - */ - 'cardIssuingBank'?: string; - /** - * The country where the card was issued. Example: US - */ - 'cardIssuingCountry'?: string; - /** - * The currency in which the card is issued, if this information is available. Example: USD - */ - 'cardIssuingCurrency'?: string; - /** - * The card payment method used for the transaction. Example: amex - */ - 'cardPaymentMethod'?: string; - /** - * The last four digits of a card number. > Returned only in case of a card payment. - */ - 'cardSummary'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "cardBin", - "baseName": "cardBin", - "type": "string" - }, - { - "name": "cardHolderName", - "baseName": "cardHolderName", - "type": "string" - }, - { - "name": "cardIssuingBank", - "baseName": "cardIssuingBank", - "type": "string" - }, - { - "name": "cardIssuingCountry", - "baseName": "cardIssuingCountry", - "type": "string" - }, - { - "name": "cardIssuingCurrency", - "baseName": "cardIssuingCurrency", - "type": "string" - }, - { - "name": "cardPaymentMethod", - "baseName": "cardPaymentMethod", - "type": "string" - }, - { - "name": "cardSummary", - "baseName": "cardSummary", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataCard.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataCommon.ts b/src/typings/payments/responseAdditionalDataCommon.ts deleted file mode 100644 index a58c6db..0000000 --- a/src/typings/payments/responseAdditionalDataCommon.ts +++ /dev/null @@ -1,258 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ResponseAdditionalDataCommon { - /** - * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. - */ - 'acquirerAccountCode'?: string; - /** - * The name of the acquirer processing the payment request. Example: TestPmmAcquirer - */ - 'acquirerCode'?: string; - /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 - */ - 'acquirerReference'?: string; - /** - * The Adyen alias of the card. Example: H167852639363479 - */ - 'alias'?: string; - /** - * The type of the card alias. Example: Default - */ - 'aliasType'?: string; - /** - * 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. Example: 58747 - */ - 'authCode'?: string; - /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - 'authorisedAmountCurrency'?: string; - /** - * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - 'authorisedAmountValue'?: string; - /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - */ - 'avsResult'?: string; - /** - * Raw AVS result received from the acquirer, where available. Example: D - */ - 'avsResultRaw'?: string; - /** - * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. - */ - 'bic'?: string; - /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. - */ - 'dsTransID'?: string; - /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 - */ - 'eci'?: string; - /** - * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. - */ - 'expiryDate'?: string; - /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR - */ - 'extraCostsCurrency'?: string; - /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. - */ - 'extraCostsValue'?: string; - /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. - */ - 'fraudCheckItemNrFraudCheckname'?: string; - /** - * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional 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 \"Y\" or \"D\". - */ - 'fundsAvailability'?: string; - /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card - */ - 'inferredRefusalReason'?: string; - /** - * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP - */ - 'issuerCountry'?: string; - /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. - */ - 'networkTxReference'?: string; - /** - * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. - */ - 'ownerName'?: string; - /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - */ - 'paymentAccountReference'?: string; - /** - * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro - */ - 'paymentMethodVariant'?: 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) - */ - 'payoutEligible'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "acquirerAccountCode", - "baseName": "acquirerAccountCode", - "type": "string" - }, - { - "name": "acquirerCode", - "baseName": "acquirerCode", - "type": "string" - }, - { - "name": "acquirerReference", - "baseName": "acquirerReference", - "type": "string" - }, - { - "name": "alias", - "baseName": "alias", - "type": "string" - }, - { - "name": "aliasType", - "baseName": "aliasType", - "type": "string" - }, - { - "name": "authCode", - "baseName": "authCode", - "type": "string" - }, - { - "name": "authorisedAmountCurrency", - "baseName": "authorisedAmountCurrency", - "type": "string" - }, - { - "name": "authorisedAmountValue", - "baseName": "authorisedAmountValue", - "type": "string" - }, - { - "name": "avsResult", - "baseName": "avsResult", - "type": "string" - }, - { - "name": "avsResultRaw", - "baseName": "avsResultRaw", - "type": "string" - }, - { - "name": "bic", - "baseName": "bic", - "type": "string" - }, - { - "name": "dsTransID", - "baseName": "dsTransID", - "type": "string" - }, - { - "name": "eci", - "baseName": "eci", - "type": "string" - }, - { - "name": "expiryDate", - "baseName": "expiryDate", - "type": "string" - }, - { - "name": "extraCostsCurrency", - "baseName": "extraCostsCurrency", - "type": "string" - }, - { - "name": "extraCostsValue", - "baseName": "extraCostsValue", - "type": "string" - }, - { - "name": "fraudCheckItemNrFraudCheckname", - "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", - "type": "string" - }, - { - "name": "fundingSource", - "baseName": "fundingSource", - "type": "string" - }, - { - "name": "fundsAvailability", - "baseName": "fundsAvailability", - "type": "string" - }, - { - "name": "inferredRefusalReason", - "baseName": "inferredRefusalReason", - "type": "string" - }, - { - "name": "issuerCountry", - "baseName": "issuerCountry", - "type": "string" - }, - { - "name": "networkTxReference", - "baseName": "networkTxReference", - "type": "string" - }, - { - "name": "ownerName", - "baseName": "ownerName", - "type": "string" - }, - { - "name": "paymentAccountReference", - "baseName": "paymentAccountReference", - "type": "string" - }, - { - "name": "paymentMethodVariant", - "baseName": "paymentMethodVariant", - "type": "string" - }, - { - "name": "payoutEligible", - "baseName": "payoutEligible", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataCommon.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataDeliveryAddress.ts b/src/typings/payments/responseAdditionalDataDeliveryAddress.ts deleted file mode 100644 index 92123d3..0000000 --- a/src/typings/payments/responseAdditionalDataDeliveryAddress.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ResponseAdditionalDataDeliveryAddress { - /** - * The delivery address city passed in the payment request. - */ - 'deliveryAddressCity'?: string; - /** - * The delivery address country passed in the payment request. Example: NL - */ - 'deliveryAddressCountry'?: string; - /** - * The delivery address house number or name passed in the payment request. - */ - 'deliveryAddressHouseNumberOrName'?: string; - /** - * The delivery address postal code passed in the payment request. Example: 1011 DJ - */ - 'deliveryAddressPostalCode'?: string; - /** - * The delivery address state or province passed in the payment request. Example: NH - */ - 'deliveryAddressStateOrProvince'?: string; - /** - * The delivery address street passed in the payment request. - */ - 'deliveryAddressStreet'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "deliveryAddressCity", - "baseName": "deliveryAddress.city", - "type": "string" - }, - { - "name": "deliveryAddressCountry", - "baseName": "deliveryAddress.country", - "type": "string" - }, - { - "name": "deliveryAddressHouseNumberOrName", - "baseName": "deliveryAddress.houseNumberOrName", - "type": "string" - }, - { - "name": "deliveryAddressPostalCode", - "baseName": "deliveryAddress.postalCode", - "type": "string" - }, - { - "name": "deliveryAddressStateOrProvince", - "baseName": "deliveryAddress.stateOrProvince", - "type": "string" - }, - { - "name": "deliveryAddressStreet", - "baseName": "deliveryAddress.street", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataDeliveryAddress.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataInstallments.ts b/src/typings/payments/responseAdditionalDataInstallments.ts deleted file mode 100644 index 92685d4..0000000 --- a/src/typings/payments/responseAdditionalDataInstallments.ts +++ /dev/null @@ -1,132 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ResponseAdditionalDataInstallments { - /** - * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. - */ - 'installmentsValue'?: string; - /** - * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - */ - 'installmentPaymentDataInstallmentType'?: string; - /** - * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - */ - 'installmentPaymentDataPaymentOptions'?: string; - /** - * Total number of installments possible for this payment. - */ - 'installmentPaymentDataOptionItemNrNumberOfInstallments'?: string; - /** - * Interest rate for the installment period. - */ - 'installmentPaymentDataOptionItemNrInterestRate'?: string; - /** - * Installment fee amount in minor units. - */ - 'installmentPaymentDataOptionItemNrInstallmentFee'?: string; - /** - * Annual interest rate. - */ - 'installmentPaymentDataOptionItemNrAnnualPercentageRate'?: string; - /** - * First Installment Amount in minor units. - */ - 'installmentPaymentDataOptionItemNrFirstInstallmentAmount'?: string; - /** - * Subsequent Installment Amount in minor units. - */ - 'installmentPaymentDataOptionItemNrSubsequentInstallmentAmount'?: string; - /** - * Minimum number of installments possible for this payment. - */ - 'installmentPaymentDataOptionItemNrMinimumNumberOfInstallments'?: string; - /** - * Maximum number of installments possible for this payment. - */ - 'installmentPaymentDataOptionItemNrMaximumNumberOfInstallments'?: string; - /** - * Total amount in minor units. - */ - 'installmentPaymentDataOptionItemNrTotalAmountDue'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "installmentsValue", - "baseName": "installments.value", - "type": "string" - }, - { - "name": "installmentPaymentDataInstallmentType", - "baseName": "installmentPaymentData.installmentType", - "type": "string" - }, - { - "name": "installmentPaymentDataPaymentOptions", - "baseName": "installmentPaymentData.paymentOptions", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", - "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrInterestRate", - "baseName": "installmentPaymentData.option[itemNr].interestRate", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrInstallmentFee", - "baseName": "installmentPaymentData.option[itemNr].installmentFee", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", - "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", - "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", - "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", - "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", - "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", - "type": "string" - }, - { - "name": "installmentPaymentDataOptionItemNrTotalAmountDue", - "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataInstallments.attributeTypeMap; - } -} - diff --git a/src/typings/payments/sDKEphemPubKey.ts b/src/typings/payments/sDKEphemPubKey.ts deleted file mode 100644 index e10698a..0000000 --- a/src/typings/payments/sDKEphemPubKey.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/serviceError.ts b/src/typings/payments/serviceError.ts deleted file mode 100644 index 60c18cc..0000000 --- a/src/typings/payments/serviceError.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 deleted file mode 100644 index b8cb7dd..0000000 --- a/src/typings/payments/shopperInput.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * 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 deleted file mode 100644 index 613f6db..0000000 --- a/src/typings/payments/shopperInteractionDevice.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/split.ts b/src/typings/payments/split.ts deleted file mode 100644 index f81f8ef..0000000 --- a/src/typings/payments/split.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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`. - */ - '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/payments/splitAmount.ts b/src/typings/payments/splitAmount.ts deleted file mode 100644 index 1e7d857..0000000 --- a/src/typings/payments/splitAmount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/payments/storedDetails.ts b/src/typings/payments/storedDetails.ts deleted file mode 100644 index d219eaf..0000000 --- a/src/typings/payments/storedDetails.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * 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 deleted file mode 100644 index abf1bd4..0000000 --- a/src/typings/payments/storedPaymentMethod.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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 deleted file mode 100644 index 1a1b2ac..0000000 --- a/src/typings/payments/subInputDetail.ts +++ /dev/null @@ -1,79 +0,0 @@ -/** - * 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/threeDS1Result.ts b/src/typings/payments/threeDS1Result.ts deleted file mode 100644 index ce56856..0000000 --- a/src/typings/payments/threeDS1Result.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ThreeDS1Result { - /** - * The cardholder authentication value (base64 encoded). - */ - 'cavv'?: string; - /** - * The CAVV algorithm used. - */ - 'cavvAlgorithm'?: string; - /** - * 3D Secure Electronic Commerce Indicator (ECI). - */ - 'eci'?: string; - /** - * The authentication response from the ACS. - */ - 'threeDAuthenticatedResponse'?: string; - /** - * Whether 3D Secure was offered or not. - */ - 'threeDOfferedResponse'?: string; - /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. - */ - 'xid'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "cavv", - "baseName": "cavv", - "type": "string" - }, - { - "name": "cavvAlgorithm", - "baseName": "cavvAlgorithm", - "type": "string" - }, - { - "name": "eci", - "baseName": "eci", - "type": "string" - }, - { - "name": "threeDAuthenticatedResponse", - "baseName": "threeDAuthenticatedResponse", - "type": "string" - }, - { - "name": "threeDOfferedResponse", - "baseName": "threeDOfferedResponse", - "type": "string" - }, - { - "name": "xid", - "baseName": "xid", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ThreeDS1Result.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDS2RequestData.ts b/src/typings/payments/threeDS2RequestData.ts deleted file mode 100644 index 2935317..0000000 --- a/src/typings/payments/threeDS2RequestData.ts +++ /dev/null @@ -1,233 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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/payments/threeDS2Result.ts b/src/typings/payments/threeDS2Result.ts deleted file mode 100644 index 6a174a4..0000000 --- a/src/typings/payments/threeDS2Result.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ThreeDS2Result { - /** - * The `authenticationValue` value as defined in the 3D Secure 2 specification. - */ - 'authenticationValue'?: string; - /** - * The algorithm used by the ACS to calculate the authentication value, only for CartesBancaires integrations. - */ - 'cavvAlgorithm'?: string; - /** - * The `dsTransID` value as defined in the 3D Secure 2 specification. - */ - 'dsTransID'?: string; - /** - * The `eci` value as defined in the 3D Secure 2 specification. - */ - 'eci'?: string; - /** - * The `messageVersion` value as defined in the 3D Secure 2 specification. - */ - 'messageVersion'?: string; - /** - * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - */ - 'threeDSServerTransID'?: string; - /** - * The `timestamp` value of the 3D Secure 2 authentication. - */ - 'timestamp'?: string; - /** - * The `transStatus` value as defined in the 3D Secure 2 specification. - */ - 'transStatus'?: string; - /** - * The `transStatusReason` value as defined in the 3D Secure 2 specification. - */ - 'transStatusReason'?: string; - /** - * The `whiteListStatus` value as defined in the 3D Secure 2 specification. - */ - 'whiteListStatus'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "authenticationValue", - "baseName": "authenticationValue", - "type": "string" - }, - { - "name": "cavvAlgorithm", - "baseName": "cavvAlgorithm", - "type": "string" - }, - { - "name": "dsTransID", - "baseName": "dsTransID", - "type": "string" - }, - { - "name": "eci", - "baseName": "eci", - "type": "string" - }, - { - "name": "messageVersion", - "baseName": "messageVersion", - "type": "string" - }, - { - "name": "threeDSServerTransID", - "baseName": "threeDSServerTransID", - "type": "string" - }, - { - "name": "timestamp", - "baseName": "timestamp", - "type": "string" - }, - { - "name": "transStatus", - "baseName": "transStatus", - "type": "string" - }, - { - "name": "transStatusReason", - "baseName": "transStatusReason", - "type": "string" - }, - { - "name": "whiteListStatus", - "baseName": "whiteListStatus", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ThreeDS2Result.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDS2ResultRequest.ts b/src/typings/payments/threeDS2ResultRequest.ts deleted file mode 100644 index a27c2c8..0000000 --- a/src/typings/payments/threeDS2ResultRequest.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ThreeDS2ResultRequest { - /** - * The merchant account identifier, with which you want to process the transaction. - */ - 'merchantAccount': string; - /** - * The pspReference returned in the /authorise call. - */ - 'pspReference': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "pspReference", - "baseName": "pspReference", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ThreeDS2ResultRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDS2ResultResponse.ts b/src/typings/payments/threeDS2ResultResponse.ts deleted file mode 100644 index 54f6b79..0000000 --- a/src/typings/payments/threeDS2ResultResponse.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 { ThreeDS2Result } from './threeDS2Result'; - -export class ThreeDS2ResultResponse { - 'threeDS2Result'?: ThreeDS2Result; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "threeDS2Result", - "baseName": "threeDS2Result", - "type": "ThreeDS2Result" - } ]; - - static getAttributeTypeMap() { - return ThreeDS2ResultResponse.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDSecureData.ts b/src/typings/payments/threeDSecureData.ts deleted file mode 100644 index be2c3f1..0000000 --- a/src/typings/payments/threeDSecureData.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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/v51/authorise ``` - * - * 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 ThreeDSecureData { - /** - * 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 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 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; - /** - * 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 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 deleted file mode 100644 index e2458d8..0000000 --- a/src/typings/payout/accountInfo.ts +++ /dev/null @@ -1,235 +0,0 @@ -/** - * 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 deleted file mode 100644 index 52f0a46..0000000 --- a/src/typings/payout/address.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 Address { - /** - * The name of the city. - */ - 'city': 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; - /** - * 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; - /** - * 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`. - */ - '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 deleted file mode 100644 index abf1740..0000000 --- a/src/typings/payout/amount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 Amount { - /** - * 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; - - 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 deleted file mode 100644 index 67b9c12..0000000 --- a/src/typings/payout/applicationInfo.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * 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 deleted file mode 100644 index 8fbab4c..0000000 --- a/src/typings/payout/bankAccount.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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 BankAccount { - /** - * The bank account number (without separators). - */ - 'bankAccountNumber'?: string; - /** - * The bank city. - */ - 'bankCity'?: 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 [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; - /** - * 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 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 deleted file mode 100644 index 703e74d..0000000 --- a/src/typings/payout/browserInfo.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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 BrowserInfo { - /** - * 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; - /** - * 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 deleted file mode 100644 index e2ddcb6..0000000 --- a/src/typings/payout/card.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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 Card { - /** - * 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 year. Format: 4 digits. For example: 2020 - */ - 'expiryYear': 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 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 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 deleted file mode 100644 index 1d9d71c..0000000 --- a/src/typings/payout/commonField.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 deleted file mode 100644 index 643c2dd..0000000 --- a/src/typings/payout/deviceRenderOptions.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** - * 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 deleted file mode 100644 index 139e855..0000000 --- a/src/typings/payout/externalPlatform.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index 5a92b6b..0000000 --- a/src/typings/payout/forexQuote.ts +++ /dev/null @@ -1,121 +0,0 @@ -/** - * 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 ForexQuote { - /** - * The account name. - */ - 'account'?: string; - /** - * The account type. - */ - 'accountType'?: string; - 'baseAmount'?: Amount; - /** - * The base points. - */ - 'basePoints': number; - 'buy'?: Amount; - 'interbank'?: Amount; - /** - * The reference assigned to the forex quote request. - */ - 'reference'?: string; - 'sell'?: Amount; - /** - * The signature to validate the integrity. - */ - 'signature'?: string; - /** - * The source of the forex quote. - */ - 'source'?: string; - /** - * The type of forex. - */ - 'type'?: string; - /** - * 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 deleted file mode 100644 index 083418d..0000000 --- a/src/typings/payout/fraudCheckResult.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 FraudCheckResult { - /** - * The fraud score generated by the risk check. - */ - 'accountScore': number; - /** - * The ID of the risk check. - */ - 'checkId': number; - /** - * 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 deleted file mode 100644 index 1c8583c..0000000 --- a/src/typings/payout/fraudResult.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** - * 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 { FraudCheckResult } from './fraudCheckResult'; - -export class FraudResult { - /** - * The total fraud score generated by the risk checks. - */ - 'accountScore': number; - /** - * 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 deleted file mode 100644 index 8d31e8b..0000000 --- a/src/typings/payout/fundSource.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * 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 { 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; - } -} - diff --git a/src/typings/payout/index.ts b/src/typings/payout/index.ts deleted file mode 100755 index b76c54b..0000000 --- a/src/typings/payout/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -export * from './address'; -export * from './amount'; -export * from './bankAccount'; -export * from './browserInfo'; -export * from './card'; -export * from './forexQuote'; -export * from './fraudCheckResult'; -export * from './fraudResult'; -export * from './fundSource'; -export * from './installments'; -export * from './modifyRequest'; -export * from './modifyResponse'; -export * from './name'; -export * from './payoutRequest'; -export * from './payoutResponse'; -export * from './recurring'; -export * from './storeDetailAndSubmitRequest'; -export * from './storeDetailAndSubmitResponse'; -export * from './storeDetailRequest'; -export * from './storeDetailResponse'; -export * from './submitRequest'; -export * from './submitResponse'; -export * from './threeDSecureData'; diff --git a/src/typings/payout/installments.ts b/src/typings/payout/installments.ts deleted file mode 100644 index d521dfa..0000000 --- a/src/typings/payout/installments.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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 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; - - 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 deleted file mode 100644 index 3c77d48..0000000 --- a/src/typings/payout/merchantDevice.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index 4f72816..0000000 --- a/src/typings/payout/merchantRiskIndicator.ts +++ /dev/null @@ -1,120 +0,0 @@ -/** - * 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 deleted file mode 100644 index 24f99c0..0000000 --- a/src/typings/payout/modifyRequest.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 ModifyRequest { - /** - * 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 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 deleted file mode 100644 index f72bd53..0000000 --- a/src/typings/payout/modifyResponse.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 ModifyResponse { - /** - * 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; - /** - * 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 deleted file mode 100644 index 489ccfc..0000000 --- a/src/typings/payout/name.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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 Name { - /** - * The first name. - */ - 'firstName': string; - /** - * 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 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 enum GenderEnum { - MALE = 'MALE', - FEMALE = 'FEMALE', - UNKNOWN = 'UNKNOWN' - } -} diff --git a/src/typings/payout/payoutRequest.ts b/src/typings/payout/payoutRequest.ts deleted file mode 100644 index b9795a9..0000000 --- a/src/typings/payout/payoutRequest.ts +++ /dev/null @@ -1,447 +0,0 @@ -/** - * 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 { 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; - - 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 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 deleted file mode 100644 index 5cb8cac..0000000 --- a/src/typings/payout/payoutResponse.ts +++ /dev/null @@ -1,134 +0,0 @@ -/** - * 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'; -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; - - 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 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 deleted file mode 100644 index 43fb7ab..0000000 --- a/src/typings/payout/recurring.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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 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-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; - /** - * 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 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 deleted file mode 100644 index 4498c11..0000000 --- a/src/typings/payout/sDKEphemPubKey.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 deleted file mode 100644 index 9e003f8..0000000 --- a/src/typings/payout/shopperInteractionDevice.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * 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 deleted file mode 100644 index ac8dab9..0000000 --- a/src/typings/payout/split.ts +++ /dev/null @@ -1,77 +0,0 @@ -/** - * 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 deleted file mode 100644 index 1fc399e..0000000 --- a/src/typings/payout/splitAmount.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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 deleted file mode 100644 index 901356e..0000000 --- a/src/typings/payout/storeDetailAndSubmitRequest.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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 { 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; - - 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 enum EntityTypeEnum { - NaturalPerson = 'NaturalPerson', - Company = 'Company' - } -} diff --git a/src/typings/payout/storeDetailAndSubmitResponse.ts b/src/typings/payout/storeDetailAndSubmitResponse.ts deleted file mode 100644 index 1853f13..0000000 --- a/src/typings/payout/storeDetailAndSubmitResponse.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 StoreDetailAndSubmitResponse { - /** - * 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; - /** - * 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; - - 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 deleted file mode 100644 index 85c38e9..0000000 --- a/src/typings/payout/storeDetailRequest.ts +++ /dev/null @@ -1,155 +0,0 @@ -/** - * 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 { 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; - - 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 enum EntityTypeEnum { - NaturalPerson = 'NaturalPerson', - Company = 'Company' - } -} diff --git a/src/typings/payout/storeDetailResponse.ts b/src/typings/payout/storeDetailResponse.ts deleted file mode 100644 index a5250aa..0000000 --- a/src/typings/payout/storeDetailResponse.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 StoreDetailResponse { - /** - * 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; - /** - * 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; - - 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 deleted file mode 100644 index 0baaca6..0000000 --- a/src/typings/payout/submitRequest.ts +++ /dev/null @@ -1,159 +0,0 @@ -/** - * 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'; -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; - - 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 enum EntityTypeEnum { - NaturalPerson = 'NaturalPerson', - Company = 'Company' - } -} diff --git a/src/typings/payout/submitResponse.ts b/src/typings/payout/submitResponse.ts deleted file mode 100644 index 620f344..0000000 --- a/src/typings/payout/submitResponse.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 SubmitResponse { - /** - * 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; - /** - * 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; - - 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 deleted file mode 100644 index 2b37b7c..0000000 --- a/src/typings/payout/threeDS2RequestData.ts +++ /dev/null @@ -1,233 +0,0 @@ -/** - * 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 deleted file mode 100644 index d1dd278..0000000 --- a/src/typings/payout/threeDSecureData.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * 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 ThreeDSecureData { - /** - * 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 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 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; - /** - * 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 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/payouts.ts b/src/typings/payouts.ts new file mode 100644 index 0000000..adfafc4 --- /dev/null +++ b/src/typings/payouts.ts @@ -0,0 +1,1479 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of Payouts: v51 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IPayouts { + export interface 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?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Date when the shopper's account was last changed. + */ + accountChangeDate?: string; // date-time + /** + * Indicator for the length of time since the shopper's account was last updated. + * Allowed values: + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + accountChangeIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Date when the shopper's account was created. + */ + accountCreationDate?: string; // date-time + /** + * Indicates the type of account. For example, for a multi-account card product. + * Allowed values: + * * notApplicable + * * credit + * * debit + */ + accountType?: "notApplicable" | "credit" | "debit"; + /** + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + addCardAttemptsDay?: number; // int32 + /** + * Date the selected delivery address was first used. + */ + deliveryAddressUsageDate?: string; // date-time + /** + * Indicator for the length of time since this delivery address was first used. + * Allowed values: + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + deliveryAddressUsageIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * 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?: string; // date-time + /** + * Indicator when the shopper has changed their password. + * Allowed values: + * * notApplicable + * * thisTransaction + * * lessThan30Days + * * from30To60Days + * * moreThan60Days + */ + passwordChangeIndicator?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + pastTransactionsDay?: number; // int32 + /** + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + pastTransactionsYear?: number; // int32 + /** + * Date this payment method was added to the shopper's account. + */ + paymentAccountAge?: string; // date-time + /** + * 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?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; + /** + * Number of successful purchases in the last six months. + */ + purchasesLast6Months?: number; // int32 + /** + * Whether suspicious activity was recorded on this account. + */ + suspiciousActivity?: boolean; + /** + * Shopper's work phone number (including the country code). + */ + workPhone?: string; + } + export interface Address { + /** + * The name of the city. + */ + city: 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; + /** + * 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; + /** + * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in 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`. + */ + street: string; + } + export interface Amount { + /** + * 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; // int64 + } + export interface ApplicationInfo { + /** + * Adyen-developed software, such as libraries and plugins, used to interact with the Adyen API. For example, Magento plugin, Java API library, etc. + */ + adyenLibrary?: IPayouts.CommonField; + /** + * Adyen-developed software to get payment details. For example, Checkout SDK, Secured Fields SDK, etc. + */ + adyenPaymentSource?: IPayouts.CommonField; + /** + * Third-party developed platform used to initiate payment requests. For example, Magento, Zuora, etc. + */ + externalPlatform?: IPayouts.ExternalPlatform; + /** + * Merchant developed software, such as cashier application, used to interact with the Adyen API. + */ + merchantApplication?: IPayouts.CommonField; + /** + * Merchant device information. + */ + merchantDevice?: IPayouts.MerchantDevice; + /** + * Shopper interaction device, such as terminal, mobile device or web browser, to initiate payment requests. + */ + shopperInteractionDevice?: IPayouts.ShopperInteractionDevice; + } + export interface BankAccount { + /** + * The bank account number (without separators). + */ + bankAccountNumber?: string; + /** + * The bank city. + */ + bankCity?: 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 [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; + /** + * 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 bank account holder's tax ID. + */ + taxId?: string; + } + export interface BrowserInfo { + /** + * 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; // int32 + /** + * 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; // int32 + /** + * The total width of the shopper's device screen in pixels. + */ + screenWidth: number; // int32 + /** + * Time difference between UTC time and the shopper's browser local time, in minutes. + */ + timeZoneOffset: number; // int32 + /** + * The user agent value of the shopper's browser. + */ + userAgent: string; + } + export interface Card { + /** + * 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 year. + * Format: 4 digits. For example: 2020 + */ + expiryYear: 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 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 year component of the start date (for some UK debit cards only). + */ + startYear?: string; + } + export interface 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; + } + export interface DeviceRenderOptions { + /** + * Supported SDK interface types. + * Allowed values: + * * Native + * * Html + * * both + */ + sdkInterface?: "Html" | "Native" | "both"; + /** + * UI types supported for displaying specific challenges. + * Allowed values: + * * text + * * singleSelect + * * outOfBand + * * otherHtml + * * multiSelect + */ + sdkUiType?: ("multiSelect" | "otherHtml" | "outOfBand" | "singleSelect" | "text")[]; + } + export interface 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; + } + export interface ForexQuote { + /** + * The account name. + */ + account?: string; + /** + * The account type. + */ + accountType?: string; + /** + * The base amount. + */ + baseAmount?: IPayouts.Amount; + /** + * The base points. + */ + basePoints: number; // int32 + /** + * The buy rate. + */ + buy?: IPayouts.Amount; + /** + * The interbank amount. + */ + interbank?: IPayouts.Amount; + /** + * The reference assigned to the forex quote request. + */ + reference?: string; + /** + * The sell rate. + */ + sell?: IPayouts.Amount; + /** + * The signature to validate the integrity. + */ + signature?: string; + /** + * The source of the forex quote. + */ + source?: string; + /** + * The type of forex. + */ + type?: string; + /** + * The date until which the forex quote is valid. + */ + validTill: string; // date-time + } + export interface FraudCheckResult { + /** + * The fraud score generated by the risk check. + */ + accountScore: number; // int32 + /** + * The ID of the risk check. + */ + checkId: number; // int32 + /** + * The name of the risk check. + */ + name: string; + } + export interface FraudResult { + /** + * The total fraud score generated by the risk checks. + */ + accountScore: number; // int32 + /** + * The result of the individual risk checks. + */ + results?: IPayouts.FraudCheckResult[]; + } + export interface FundSource { + /** + * a map of name/value pairs for passing in additional/industry-specific data + */ + additionalData?: { + }; + /** + * the address where to send the invoice + */ + billingAddress?: IPayouts.Address; + /** + * a representation of a (credit or debit) card + */ + card?: IPayouts.Card; + /** + * the email address of the person + */ + shopperEmail?: string; + /** + * the name of the person + */ + shopperName?: IPayouts.Name; + /** + * the telephone number of the person + */ + telephoneNumber?: string; + } + export interface 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; // int32 + } + export interface 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; + } + export interface 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?: "shipToBillingAddress" | "shipToVerifiedAddress" | "shipToNewAddress" | "shipToStore" | "digitalGoods" | "goodsNotShipped" | "other"; + /** + * 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?: "electronicDelivery" | "sameDayShipping" | "overnightShipping" | "twoOrMoreDaysShipping"; + /** + * The amount of prepaid or gift cards used for this purchase. + */ + giftCardAmount?: IPayouts.Amount; + /** + * Number of individual prepaid or gift cards used for this purchase. + */ + giftCardCount?: number; // int32 + /** + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + preOrderDate?: string; // date-time + /** + * 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; + } + export interface ModifyRequest { + /** + * This field contains additional data, which may be required for a particular payout request. + */ + additionalData?: { + }; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + merchantAccount: string; + /** + * The PSP reference received in the `/submitThirdParty` response. + */ + originalReference: string; + } + export interface ModifyResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + additionalData?: { + }; + /** + * 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; + } + export interface Name { + /** + * The first name. + */ + firstName: string; + /** + * The gender. + * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + gender: "MALE" | "FEMALE" | "UNKNOWN"; + /** + * The name's infix, if applicable. + * >A maximum length of twenty (20) characters is imposed. + */ + infix?: string; + /** + * The last name. + */ + lastName: string; + } + export interface PayoutRequest { + /** + * Shopper account information for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + accountInfo?: IPayouts.AccountInfo; + /** + * If you want a [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) request to use a non-zero value, assign this value to `additionalAmount` (while the amount must be still set to 0 to trigger BIN or card verification). + * Required to be in the same currency as the `amount`. + */ + additionalAmount?: IPayouts.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?: { + }; + /** + * The amount information for the transaction. For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). + */ + amount: IPayouts.Amount; + /** + * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). + */ + applicationInfo?: IPayouts.ApplicationInfo; + /** + * The details of the bank account, from which the payment should be made. + * > Either `bankAccount` or `card` field must be provided in a payment request. + */ + bankAccount?: IPayouts.BankAccount; + /** + * The address where to send the invoice. + * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. + */ + billingAddress?: IPayouts.Address; + /** + * The shopper's browser information. + * > For 3D Secure 2 transactions, `browserInfo` is required for `channel` **web** (or `deviceChannel` **browser**). + */ + browserInfo?: IPayouts.BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + captureDelayHours?: number; // int32 + /** + * A container for card data. + * > Either `bankAccount` or `card` field must be provided in a payment request. + */ + card?: IPayouts.Card; + /** + * The shopper's date of birth. + * + * Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + dateOfBirth?: string; // date-time + /** + * The forex quote as returned in the response of the forex service. + */ + dccQuote?: IPayouts.ForexQuote; + /** + * The address where the purchased goods should be delivered. + */ + deliveryAddress?: IPayouts.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?: string; // date-time + /** + * 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?: "NaturalPerson" | "CompanyName"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * The person or entity funding the money. + */ + fundSource?: IPayouts.FundSource; + /** + * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/installment-payments). + */ + installments?: IPayouts.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; + /** + * Additional risk fields for 3D Secure 2. + * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. + */ + merchantRiskIndicator?: IPayouts.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?: { + }; + /** + * Authentication data produced by an MPI (Mastercard SecureCode or Verified By Visa). + */ + mpiData?: IPayouts.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; + /** + * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/classic-integration/recurring-payments). + */ + recurring?: IPayouts.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?: "CardOnFile" | "Subscription" | "UnscheduledCardOnFile"; + /** + * 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?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; + /** + * 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 full name and gender (if specified). + */ + shopperName?: IPayouts.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?: IPayouts.Split[]; + /** + * The physical store, for which this payment is processed. + */ + store?: string; + /** + * The shopper's telephone number. + */ + telephoneNumber?: string; + /** + * Request fields for 3D Secure 2. + */ + threeDS2RequestData?: IPayouts.ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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 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?: { + }; + /** + * 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; + /** + * Includes the currency of the conversion and the value of the transaction. + * > 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). + */ + dccAmount?: IPayouts.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; + /** + * The fraud result properties of the payment. + */ + fraudResult?: IPayouts.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, refer to [Result codes](https://docs.adyen.com/checkout/payment-result-codes). + * * **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?: "AuthenticationFinished" | "Authorised" | "Cancelled" | "ChallengeShopper" | "Error" | "IdentifyShopper" | "Pending" | "PresentToShopper" | "Received" | "RedirectShopper" | "Refused"; + } + namespace Post { + export type RequestBody = IPayouts.SubmitRequest; + namespace Responses { + export type $200 = IPayouts.SubmitResponse; + } + } + export interface 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-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?: "ONECLICK" | "RECURRING" | "PAYOUT"; + /** + * A descriptive name for this detail. + */ + recurringDetailName?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + recurringExpiry?: string; // date-time + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + recurringFrequency?: string; + /** + * The name of the token service. + */ + tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; + } + export interface 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; + } + export interface 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; + } + export interface Split { + /** + * The account to which this split applies. + * + * >Required if the type is `MarketPlace`. + */ + account?: string; + /** + * The amount of this split. + */ + amount: IPayouts.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`, `BalanceAccount`. + */ + type: "BalanceAccount" | "Commission" | "Default" | "MarketPlace" | "PaymentFee" | "VAT" | "Verification"; + } + export interface 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; // int64 + } + export interface StoreDetailAndSubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + additionalData?: { + }; + /** + * A container object for the payable amount information of the transaction. + */ + amount: IPayouts.Amount; + /** + * A container for bank account data. + * > This field is mandatory if `card` is not provided. + */ + bank?: IPayouts.BankAccount; + /** + * The billing address. + */ + billingAddress?: IPayouts.Address; + /** + * A container for card data. + * > This field is mandatory if `bank` is not provided. + */ + card?: IPayouts.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: string; // date-time + /** + * The type of the entity the payout is processed for. + */ + entityType: "NaturalPerson" | "Company"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * 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; + /** + * A container for the type of recurring contract to be retrieved. + * + * The recurring.contract must be set to `PAYOUT` + */ + recurring: IPayouts.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; + /** + * The shopper's name. + * + * When the `entityType` is `Company`, the `shopperName.lastName` must contain the company name. + */ + shopperName?: IPayouts.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 StoreDetailAndSubmitResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + additionalData?: { + }; + /** + * A new reference to uniquely identify this request. + */ + pspReference: 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; + } + export interface StoreDetailRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + additionalData?: { + }; + /** + * A container for bank account data. + * > This field is mandatory if `card` is not provided. + */ + bank?: IPayouts.BankAccount; + /** + * The billing address. + */ + billingAddress?: IPayouts.Address; + /** + * A container for card data. + * > This field is mandatory if `bank` is not provided. + */ + card?: IPayouts.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: string; // date-time + /** + * The type of the entity the payout is processed for. + */ + entityType: "NaturalPerson" | "Company"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * 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; + /** + * A container for the type of recurring contract to be retrieved. + * + * The recurring.contract must be set to `PAYOUT` + */ + recurring: IPayouts.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; + /** + * The shopper's name. + * + * When the `entityType` is `Company`, the `shopperName.lastName` must contain the company name. + */ + shopperName?: IPayouts.Name; + /** + * The shopper's reference for the payment transaction. + */ + shopperReference: string; + /** + * The shopper's social security number. + */ + socialSecurityNumber?: string; + } + export interface StoreDetailResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + additionalData?: { + }; + /** + * 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 result code of the transaction. `Success` indicates that the details were stored successfully. + */ + resultCode: string; + } + export interface SubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + additionalData?: { + }; + /** + * A container object for the payable amount information of the transaction. + */ + amount: IPayouts.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?: string; // date-time + /** + * 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?: "NaturalPerson" | "Company"; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + fraudOffset?: number; // int32 + /** + * 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; + /** + * A container for the type of recurring contract to be retrieved. + * + * The `recurring.contract` must be set to "PAYOUT". + */ + recurring: IPayouts.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; + /** + * The shopper's name. + * + * In case the `entityType` is `Company`, the `shopperName.lastName` must contain the company name. + * + * > This field is required to update the existing `shopperName` associated with a recurring contract. + */ + shopperName?: IPayouts.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 SubmitResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + additionalData?: { + }; + /** + * A new reference to uniquely identify this request. + */ + pspReference: 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; + } + export interface ThreeDS2RequestData { + /** + * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/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/other-3ds-flows/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/other-3ds-flows/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?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate"; + /** + * The environment of the shopper. + * Allowed values: + * * `app` + * * `browser` + */ + deviceChannel: string; + /** + * Display options for the 3D Secure 2 SDK. + * Optional and only for `deviceChannel` **app**. + */ + deviceRenderOptions?: IPayouts.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/other-3ds-flows/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/other-3ds-flows/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; + /** + * The `sdkEphemPubKey` value as received from the 3D Secure 2 SDK. + * Required for `deviceChannel` set to **app**. + */ + sdkEphemPubKey?: IPayouts.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; // int32 + /** + * 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/other-3ds-flows/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/other-3ds-flows/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?: "goodsOrServicePurchase" | "checkAcceptance" | "accountFunding" | "quasiCashTransaction" | "prepaidActivationAndLoad"; + /** + * 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 ThreeDSecureData { + /** + * 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?: "Y" | "N" | "U" | "A"; + /** + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + cavv?: string; // byte + /** + * 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 the `ARes`. The possible values are **A** or **Y** for a frictionless flow, or **C** for a challenge flow. + */ + directoryResponse?: "A" | "C" | "D" | "I" | "N" | "R" | "U" | "Y"; + /** + * 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 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; // byte + } +} diff --git a/src/typings/recurring.ts b/src/typings/recurring.ts new file mode 100644 index 0000000..ac3ca15 --- /dev/null +++ b/src/typings/recurring.ts @@ -0,0 +1,383 @@ + +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Version of Recurring: v49 + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + + +declare namespace IRecurring { + export interface Address { + /** + * The name of the city. + */ + city: 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; + /** + * 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; + /** + * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in 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`. + */ + street: string; + } + export interface BankAccount { + /** + * The bank account number (without separators). + */ + bankAccountNumber?: string; + /** + * The bank city. + */ + bankCity?: 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 [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; + /** + * 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 bank account holder's tax ID. + */ + taxId?: string; + } + export interface Card { + /** + * 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 year. + * Format: 4 digits. For example: 2020 + */ + expiryYear: 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 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 year component of the start date (for some UK debit cards only). + */ + startYear?: string; + } + export interface 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; + /** + * 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 shopper. + * + * This `shopperReference` must be the same as the `shopperReference` used in the initial payment. + */ + shopperReference: string; + } + export interface 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; + } + export interface Name { + /** + * The first name. + */ + firstName: string; + /** + * The gender. + * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. + */ + gender: "MALE" | "FEMALE" | "UNKNOWN"; + /** + * The name's infix, if applicable. + * >A maximum length of twenty (20) characters is imposed. + */ + infix?: string; + /** + * The last name. + */ + lastName: string; + } + namespace Post { + export type RequestBody = IRecurring.ScheduleAccountUpdaterRequest; + namespace Responses { + export type $200 = IRecurring.ScheduleAccountUpdaterResult; + } + } + export interface 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-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?: "ONECLICK" | "RECURRING" | "PAYOUT"; + /** + * A descriptive name for this detail. + */ + recurringDetailName?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + recurringExpiry?: string; // date-time + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + recurringFrequency?: string; + /** + * The name of the token service. + */ + tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; + } + 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. + */ + additionalData?: { + }; + /** + * 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; + /** + * A container for bank account data. + */ + bank?: IRecurring.BankAccount; + /** + * The billing address. + */ + billingAddress?: IRecurring.Address; + /** + * A container for card data. + */ + card?: IRecurring.Card; + /** + * Types of recurring contracts. + */ + contractTypes?: string[]; + /** + * The date when the recurring details were created. + */ + creationDate?: string; // date-time + /** + * 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/development-resources/paymentmethodvariant). + */ + paymentMethodVariant?: string; + /** + * The reference that uniquely identifies the recurring detail. + */ + recurringDetailReference: string; + /** + * The name of the shopper. + */ + shopperName?: IRecurring.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; + } + export interface RecurringDetailsRequest { + /** + * The merchant account identifier you want to process the (transaction) request with. + */ + merchantAccount: string; + /** + * A container for the type of a recurring contract to be retrieved. + * + * The contract value needs to match the contract value submitted in the payment transaction used to create a recurring contract. + * However, if `ONECLICK,RECURRING` is the original contract definition in the initial payment, then `contract` should take either `ONECLICK` or `RECURRING`, depending on whether or not you want the shopper to enter their card's security code when they finalize their purchase. + */ + recurring?: IRecurring.Recurring; + /** + * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). + */ + shopperReference: string; + } + export interface RecurringDetailsResult { + /** + * The date when the recurring details were created. + */ + creationDate?: string; // date-time + /** + * Payment details stored for recurring payments. + */ + details?: IRecurring.RecurringDetail[]; + /** + * 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; + } + export interface ScheduleAccountUpdaterRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + additionalData?: { + }; + /** + * A container for credit card data. + * + * Optional if `shopperReference` and `selectedRecurringDetailReference` are provided. + */ + card?: IRecurring.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; + } + export interface 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; + } +} diff --git a/src/typings/recurring/address.ts b/src/typings/recurring/address.ts deleted file mode 100644 index 120a753..0000000 --- a/src/typings/recurring/address.ts +++ /dev/null @@ -1,78 +0,0 @@ -/** - * 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 Address { - /** - * The name of the city. - */ - 'city': 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; - /** - * 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; - /** - * 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`. - */ - '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 deleted file mode 100644 index 441f330..0000000 --- a/src/typings/recurring/bankAccount.ts +++ /dev/null @@ -1,105 +0,0 @@ -/** - * 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 BankAccount { - /** - * The bank account number (without separators). - */ - 'bankAccountNumber'?: string; - /** - * The bank city. - */ - 'bankCity'?: 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 [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; - /** - * 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 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 deleted file mode 100644 index ddd9cff..0000000 --- a/src/typings/recurring/card.ts +++ /dev/null @@ -1,96 +0,0 @@ -/** - * 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 Card { - /** - * 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 year. Format: 4 digits. For example: 2020 - */ - 'expiryYear': 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 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 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 deleted file mode 100644 index 860edec..0000000 --- a/src/typings/recurring/disableRequest.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * 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 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; - /** - * 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 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 deleted file mode 100644 index 037aa5f..0000000 --- a/src/typings/recurring/disableResult.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * 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 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; - - 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/index.ts b/src/typings/recurring/index.ts deleted file mode 100755 index 452cdd4..0000000 --- a/src/typings/recurring/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from './address'; -export * from './bankAccount'; -export * from './card'; -export * from './disableRequest'; -export * from './disableResult'; -export * from './name'; -export * from './recurring'; -export * from './recurringDetail'; -export * from './recurringDetailsRequest'; -export * from './recurringDetailsResult'; diff --git a/src/typings/recurring/name.ts b/src/typings/recurring/name.ts deleted file mode 100644 index 8046d00..0000000 --- a/src/typings/recurring/name.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * 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 Name { - /** - * The first name. - */ - 'firstName': string; - /** - * 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 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 enum GenderEnum { - MALE = 'MALE', - FEMALE = 'FEMALE', - UNKNOWN = 'UNKNOWN' - } -} diff --git a/src/typings/recurring/recurring.ts b/src/typings/recurring/recurring.ts deleted file mode 100644 index e367928..0000000 --- a/src/typings/recurring/recurring.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * 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 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-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; - /** - * 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 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 deleted file mode 100644 index 4cb077d..0000000 --- a/src/typings/recurring/recurringDetail.ts +++ /dev/null @@ -1,151 +0,0 @@ -/** - * 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 { 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; - } -} - diff --git a/src/typings/recurring/recurringDetailsRequest.ts b/src/typings/recurring/recurringDetailsRequest.ts deleted file mode 100644 index 3107e5b..0000000 --- a/src/typings/recurring/recurringDetailsRequest.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * 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 { Recurring } from './recurring'; - -export class RecurringDetailsRequest { - /** - * 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; - - 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 deleted file mode 100644 index 70f6c74..0000000 --- a/src/typings/recurring/recurringDetailsResult.ts +++ /dev/null @@ -1,61 +0,0 @@ -/** - * 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 { RecurringDetail } from './recurringDetail'; - -export class RecurringDetailsResult { - /** - * The date when the recurring details were created. - */ - 'creationDate'?: Date; - /** - * Payment details stored for recurring payments. - */ - 'details'?: Array; - /** - * 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; - - 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 deleted file mode 100644 index a32c9a9..0000000 --- a/src/typings/recurring/scheduleAccountUpdaterRequest.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * 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 deleted file mode 100644 index 41ca0a3..0000000 --- a/src/typings/recurring/scheduleAccountUpdaterResult.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * 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/src/typings/requestOptions.d.ts b/src/typings/requestOptions.d.ts new file mode 100644 index 0000000..e0c9eaa --- /dev/null +++ b/src/typings/requestOptions.d.ts @@ -0,0 +1,28 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + +// Generated using typescript-generator version 2.14.505 on 2019-06-03 16:13:35. +declare namespace IRequest { + export type Options = HttpsRequestOptions & { + idempotencyKey?: string; + } +} + diff --git a/src/typings/requestOptions.ts b/src/typings/requestOptions.ts deleted file mode 100644 index 1a42488..0000000 --- a/src/typings/requestOptions.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Generated using typescript-generator version 2.14.505 on 2019-06-03 16:13:35. - -import {RequestOptions as HttpsRequestOptions} from "https"; - -export type RequestOptions = HttpsRequestOptions & { - idempotencyKey?: string; -} - diff --git a/src/typings/terminal.ts b/src/typings/terminal.ts index 224098a..f995295 100644 --- a/src/typings/terminal.ts +++ b/src/typings/terminal.ts @@ -1,3 +1,24 @@ +/* + * ###### + * ###### + * ############ ####( ###### #####. ###### ############ ############ + * ############# #####( ###### #####. ###### ############# ############# + * ###### #####( ###### #####. ###### ##### ###### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### + * ###### ###### #####( ###### #####. ###### ##### ##### ###### + * ############# ############# ############# ############# ##### ###### + * ############ ############ ############# ############ ##### ###### + * ###### + * ############# + * ############ + * + * Adyen NodeJS API Library + * + * Copyright (c) 2019 Adyen B.V. + * This file is open source and available under the MIT license. + * See the LICENSE file for more info. + */ + // To parse this data: // // import { Convert, TerminalApiRequest, TerminalApiResponse, TerminalApiSecuredRequest, TerminalApiSecuredResponse, NexoDerivedKey, SaleToPoiSecuredMessage, SecurityKey, SecurityTrailer, SaleToPoiRequest, SaleToPoiResponse, MessageHeader, AbortRequest, BalanceInquiryRequest, BatchRequest, CardAcquisitionRequest, AdminRequest, DiagnosisRequest, DisplayRequest, EnableServiceRequest, EventNotification, GetTotalsRequest, InputRequest, InputUpdate, LoginRequest, LogoutRequest, LoyaltyRequest, PaymentRequest, PinRequest, PrintRequest, CardReaderInitRequest, CardReaderApduRequest, CardReaderPowerOffRequest, ReconciliationRequest, ReversalRequest, SoundRequest, StoredValueRequest, TransactionStatusRequest, TransmitRequest, ContentInformation, BalanceInquiryResponse, BatchResponse, CardAcquisitionResponse, AdminResponse, DiagnosisResponse, DisplayResponse, EnableServiceResponse, GetTotalsResponse, InputResponse, LoginResponse, LogoutResponse, LoyaltyResponse, PaymentResponse, PinResponse, PrintResponse, CardReaderInitResponse, CardReaderApduResponse, CardReaderPowerOffResponse, ReconciliationResponse, ReversalResponse, SoundResponse, StoredValueResponse, TransactionStatusResponse, TransmitResponse, MessageReference, DisplayOutput, PaymentAccountReq, LoyaltyAccountReq, TransactionToPerform, SaleData, CardAcquisitionTransaction, TotalFilter, InputData, OutputContent, MenuEntry, SaleSoftware, SaleTerminalData, LoyaltyTransaction, LoyaltyData, PaymentTransaction, PaymentData, CardholderPin, PrintOutput, OriginalPoiTransaction, CustomerOrder, SoundContent, StoredValueData, EnvelopedData, AuthenticatedData, SignedData, DigestedData, NamedKeyEncryptedData, Response, PaymentAccountStatus, LoyaltyAccountStatus, PerformedTransaction, PoiData, PaymentInstrumentData, LoyaltyAccount, PoiStatus, HostStatus, OutputResult, TransactionTotals, InputResult, PoiSystemData, LoyaltyResult, PaymentReceipt, PaymentResult, TrackData, IccResetData, StoredValueResult, RepeatedMessageResponse, TransactionIdentification, LoyaltyAccountId, SponsoredMerchant, SaleToIssuerData, PredefinedContent, OutputText, OutputBarcode, SaleProfile, TransactionConditions, SaleItem, LoyaltyAmount, AmountsReq, Instalment, StoredValueAccountId, EncryptedContent, AlgorithmIdentifier, EncapsulatedContent, Signer, PaymentAcquirerData, CardData, CheckData, MobileData, CashHandlingDevice, PaymentTotals, LoyaltyTotals, Input, PoiSoftware, PoiTerminalData, LoyaltyAcquirerData, Rebates, AmountsResp, CurrencyConversion, CapturedSignature, StoredValueAccountStatus, RepeatedResponseMessageBody, Parameter, SignerIdentifier, SensitiveCardData, AllowedProduct, PaymentToken, Geolocation, SensitiveMobileData, CoinsOrBills, PoiProfile, SaleItemRebate, Amount, AreaSize, SignaturePoint, IssuerAndSerialNumber, GeographicCoordinates, UtmCoordinates, Issuer, RelativeDistinguishedName, MessageClassType, MessageCategoryType, MessageType, ServicesEnabledType, TransactionActionType, EventToNotifyType, TotalDetailsType, TokenRequestedType, CustomerOrderReqType, PinRequestType, PinFormatType, ForceEntryModeType, ReconciliationType, ReversalReasonType, ResponseModeType, SoundActionType, DocumentQualifierType, ContentType, EntryModeType, DeviceType, InfoQualifyType, AccountType, LoyaltyHandlingType, PaymentType, InputCommandType, OutputFormatType, MenuEntryTagType, SaleCapabilitiesType, TerminalEnvironmentType, LoyaltyTransactionType, SoundFormatType, StoredValueTransactionType, VersionType, ResultType, ErrorConditionType, LoyaltyUnitType, PaymentInstrumentType, GlobalStatusType, PrinterStatusType, AuthenticationMethodType, TrackFormatType, IdentificationType, IdentificationSupportType, ColorType, CharacterWidthType, CharacterHeightType, CharacterStyleType, AlignmentType, BarcodeType, ServiceProfilesType, GenericProfileType, UnitOfMeasureType, InstalmentType, PeriodUnitType, StoredValueAccountType, AlgorithmType, CheckTypeCodeType, TransactionType, PoiCapabilitiesType } from "./file"; diff --git a/src/utils/hmacValidator.ts b/src/utils/hmacValidator.ts index 571658d..547e9b6 100644 --- a/src/utils/hmacValidator.ts +++ b/src/utils/hmacValidator.ts @@ -1,13 +1,12 @@ import {createHmac} from "crypto"; import {NotificationRequestItem} from "../typings/notification"; -import {HMAC_SIGNATURE} from "../typings/constants/apiConstants"; - +import {ApiConstants} from "../constants/apiConstants"; type DataToSign = NotificationRequestItem | { [key: string]: string } class HmacValidator { public static HMAC_SHA256_ALGORITHM = "sha256"; - public static DATA_SEPARATOR = ":" + public static DATA_SEPARATOR = ":"; public calculateHmac(data: string | NotificationRequestItem, key: string): string { const dataString = typeof data !== "string" ? this.getDataToSign(data) : data; @@ -17,7 +16,7 @@ class HmacValidator { public validateHMAC(notificationRequestItem: NotificationRequestItem, key: string): boolean { const expectedSign = this.calculateHmac(notificationRequestItem, key); - const merchantSign = notificationRequestItem.additionalData[HMAC_SIGNATURE]; + const merchantSign = notificationRequestItem.additionalData[ApiConstants.HMAC_SIGNATURE]; return expectedSign === merchantSign; } diff --git a/yarn.lock b/yarn.lock index 08677cf..a50fb3d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1213,10 +1213,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.4": - version "11.15.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-11.15.4.tgz#2c8d58f726cfbbd9b76d179475fd386d650a2fda" - integrity sha512-z7deEbNOPcS7pb7uyaZhbITh18ruGghYh86VmUL2zJPKeu9tEAqF0goQH0dhWamHoBJpkyWroNxPZjzNvbYVCw== +"@types/node@^13.1.4": + version "13.1.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.4.tgz#4cfd90175a200ee9b02bd6b1cd19bc349741607e" + integrity sha512-Lue/mlp2egZJoHXZr4LndxDAd7i/7SQYhV0EjWfb/a4/OZ6tuVwMCVPiwkU5nsEipxEf7hmkSU7Em5VQ8P5NGA== "@types/stack-utils@^1.0.1": version "1.0.1" From ef269b7ab12897ae2756427d8cbd3e85619e664c Mon Sep 17 00:00:00 2001 From: Ricardo Ambrogi Date: Wed, 8 Jan 2020 14:03:23 +0100 Subject: [PATCH 53/53] update endpoint version (#212) --- src/client.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client.ts b/src/client.ts index d3ae5c4..1a37c81 100644 --- a/src/client.ts +++ b/src/client.ts @@ -54,18 +54,18 @@ class Client { public static HPP_LIVE = "https://live.adyen.com/hpp"; public static MARKETPAY_ENDPOINT_TEST = "https://cal-test.adyen.com/cal/services"; public static MARKETPAY_ENDPOINT_LIVE = "https://cal-live.adyen.com/cal/services"; - public static API_VERSION = "v49"; - public static RECURRING_API_VERSION = "v30"; - public static MARKETPAY_ACCOUNT_API_VERSION = "v4"; - public static MARKETPAY_FUND_API_VERSION = "v3"; - public static MARKETPAY_NOTIFICATION_API_VERSION = "v1"; + public static API_VERSION = "v51"; + public static RECURRING_API_VERSION = "v49"; + public static MARKETPAY_ACCOUNT_API_VERSION = "v5"; + public static MARKETPAY_FUND_API_VERSION = "v5"; + public static MARKETPAY_NOTIFICATION_API_VERSION = "v5"; public static LIB_NAME = "adyen-node-api-library"; public static LIB_VERSION: string = version; public static CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout"; public static CHECKOUT_ENDPOINT_LIVE_SUFFIX = "-checkout-live.adyenpayments.com/checkout"; public static CHECKOUT_API_VERSION = "v51"; public static BIN_LOOKUP_PAL_SUFFIX = "/pal/servlet/BinLookup/"; - public static BIN_LOOKUP_API_VERSION = "v40"; + public static BIN_LOOKUP_API_VERSION = "v50"; public static CHECKOUT_UTILITY_API_VERSION = "v1"; public static TERMINAL_API_ENDPOINT_TEST = "https://terminal-api-test.adyen.com"; public static TERMINAL_API_ENDPOINT_LIVE = "https://terminal-api-live.adyen.com";