diff --git a/.eslintrc.js b/.eslintrc.js
index 405dcbe..c34a5f7 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
const path = require('path');
module.exports = {
diff --git a/config.ts b/config.ts
index d6b5585..dbdd6a9 100644
--- a/config.ts
+++ b/config.ts
@@ -1 +1,20 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import "jest-ts-auto-mock"
\ No newline at end of file
diff --git a/jest.config.js b/jest.config.js
index 839e124..e1e0f5f 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
- * Adyen Node API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/__mocks__/base.ts b/src/__mocks__/base.ts
index b3809f8..3071386 100644
--- a/src/__mocks__/base.ts
+++ b/src/__mocks__/base.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/__mocks__/checkout/paymentMethodsSuccess.ts b/src/__mocks__/checkout/paymentMethodsSuccess.ts
index 4b5be63..0e7085f 100644
--- a/src/__mocks__/checkout/paymentMethodsSuccess.ts
+++ b/src/__mocks__/checkout/paymentMethodsSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentMethodsSuccess = JSON.stringify({
paymentMethods: [
diff --git a/src/__mocks__/checkout/paymentSessionErrorInvalidData422.ts b/src/__mocks__/checkout/paymentSessionErrorInvalidData422.ts
index 4da9847..d99e951 100644
--- a/src/__mocks__/checkout/paymentSessionErrorInvalidData422.ts
+++ b/src/__mocks__/checkout/paymentSessionErrorInvalidData422.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentSessionError = {
statusCode: 422,
diff --git a/src/__mocks__/checkout/paymentSessionSucess.ts b/src/__mocks__/checkout/paymentSessionSucess.ts
index ef54a17..e491a6a 100644
--- a/src/__mocks__/checkout/paymentSessionSucess.ts
+++ b/src/__mocks__/checkout/paymentSessionSucess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentSessionSuccess = {
paymentSession: "eyJjaGVja291dHNob3BwZXJCYXNlVXJsIjoiaHR0cHM6XC9cL2NoZWNrb3V0c2asdHBlci10ZXN0LmFkeWVuLmNvbVwvY2hlY2tvdXRzaG9wcGVyXC8iLCJkaXNhYmxlUmVjdXJyaW5nRGV0YWlsVXJsIjoiaHR0cHM6XC9cL2NoZWNrb3V0c2hvcHBlci10ZXN0LmFkeWVuLmNvbVwvY2hlY2tvdXRzaG9wcGVyXC9zZXJ2aWNlc1wvUGF5bWVudEluaXRpYXRpb25cL3YxXC9kaXNhYmxlUmVjdXJyaW5nRGV0YWlsIiwiZ2VuZXJhdGlvbnRpbWUiOiIyMDE4LTA2LTIyVDE0OjMxOjI1WiIsImluaXRpYXRpb25VcmwiOiJodHRwczpcL1wvY2hlY2tvdXRzaG9wcGVyL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sInR5cGUiOiJ5b3VyZ2lmdCJ9XSwicHVibGljS2V5IjoiMTAwMDF8QkNBREY4MjU3RTE4QTFBODlBQ0M0MTQ5RDBGQzMyNEU5ODMxNUMyNDA1RDc1NUU1MDRENjY0QjJDMUM3MUE2MzhCOUQxMkZEMjkwRTEyQTA0QkIxRTZCMkRBM0YzN0M1NTJEMDExQ0ZCQUJCQ0M4NDgwNkFCQjc4RUQxNjU3OERFRDk2NDQ4Q0I4QjU0MTM5RkQ3QzcyRjkwQzA4NkMzNkFFNzdFNjlFOTE3MUEzQTBENTIwRDAyMTM2MzcyNjNFMEM1REY5NjREQUQ4RDc5N0VCMURENkU1NEFENjY5RDYwQUFDMjU1NUUwQzhCRTIyNzNGODk4NDQ3M0U3NkVFNzM4N0ZFQzBFNzFCODM2ODQ0Qjg0MDZBQzkwNTk0OUZCODhGQzY4RThGMDE4NjYzMkYxRURCNEM5QjVCODg4RUY1QzU3RERFMTEzN0JCRjM2RjY1NEU0N0U1NzFGQkM4ODgyOENCRTk0MzhENzQyRjNDMDkyQUQ1RkYzRTYyQUNBRDI1MjQ2RUE0M0QyMkNGQzhBRTE0NDE5NzY3ODY3RDJDNjBEQ0JBNkFDOTIwMDhEMEQ4ODM0QkVBMTExN0FFMzQ3RjMxMkQ2QzAxQzU3Q0I0MkFERDNENEQ2MkUzNzI3QTNDRThBQTFGMDlCRjZCNzk2QTBBMzc0MUJDNDgxMTEifQ==",
diff --git a/src/__mocks__/checkout/paymentmethodsErrorForbidden403.ts b/src/__mocks__/checkout/paymentmethodsErrorForbidden403.ts
index 4148465..c4da22e 100644
--- a/src/__mocks__/checkout/paymentmethodsErrorForbidden403.ts
+++ b/src/__mocks__/checkout/paymentmethodsErrorForbidden403.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const paymentMethodsError = {
errorCode: "901",
errorType: "security",
diff --git a/src/__mocks__/checkout/paymentsDetailsErrorInvalidData422.ts b/src/__mocks__/checkout/paymentsDetailsErrorInvalidData422.ts
index 5e0294d..5c97b5d 100644
--- a/src/__mocks__/checkout/paymentsDetailsErrorInvalidData422.ts
+++ b/src/__mocks__/checkout/paymentsDetailsErrorInvalidData422.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentDetailsError = {
statusCode: 422,
diff --git a/src/__mocks__/checkout/paymentsDetailsSuccess.ts b/src/__mocks__/checkout/paymentsDetailsSuccess.ts
index 07e264c..f590668 100644
--- a/src/__mocks__/checkout/paymentsDetailsSuccess.ts
+++ b/src/__mocks__/checkout/paymentsDetailsSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentDetailsSuccess = JSON.stringify({
pspReference: "8515232733321252",
diff --git a/src/__mocks__/checkout/paymentsErrorInvalidData422.ts b/src/__mocks__/checkout/paymentsErrorInvalidData422.ts
index bfd0b3c..6965e14 100644
--- a/src/__mocks__/checkout/paymentsErrorInvalidData422.ts
+++ b/src/__mocks__/checkout/paymentsErrorInvalidData422.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentsError = JSON.stringify({
statusCode: 422,
diff --git a/src/__mocks__/checkout/paymentsResultErrorInvalidDataPayload422.ts b/src/__mocks__/checkout/paymentsResultErrorInvalidDataPayload422.ts
index d481e84..fa0a7a7 100644
--- a/src/__mocks__/checkout/paymentsResultErrorInvalidDataPayload422.ts
+++ b/src/__mocks__/checkout/paymentsResultErrorInvalidDataPayload422.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentsResultError = JSON.stringify({
statusCode: 422,
diff --git a/src/__mocks__/checkout/paymentsResultMultibancoSuccess.ts b/src/__mocks__/checkout/paymentsResultMultibancoSuccess.ts
index 8af5b09..9d371ee 100644
--- a/src/__mocks__/checkout/paymentsResultMultibancoSuccess.ts
+++ b/src/__mocks__/checkout/paymentsResultMultibancoSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentsResultMultibancoSuccess = {
additionalData: {
diff --git a/src/__mocks__/checkout/paymentsResultSucess.ts b/src/__mocks__/checkout/paymentsResultSucess.ts
index 2a0c454..3b0401c 100644
--- a/src/__mocks__/checkout/paymentsResultSucess.ts
+++ b/src/__mocks__/checkout/paymentsResultSucess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentsResultSuccess = JSON.stringify({
pspReference: "8535253563623704",
diff --git a/src/__mocks__/checkout/paymentsSuccess.ts b/src/__mocks__/checkout/paymentsSuccess.ts
index 885c86d..751b86e 100644
--- a/src/__mocks__/checkout/paymentsSuccess.ts
+++ b/src/__mocks__/checkout/paymentsSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* tslint:disable */
export const paymentsSuccess = JSON.stringify({
additionalData: {
diff --git a/src/__mocks__/checkoutUtility/originkeysSuccess.ts b/src/__mocks__/checkoutUtility/originkeysSuccess.ts
index f1a69e0..77b85aa 100644
--- a/src/__mocks__/checkoutUtility/originkeysSuccess.ts
+++ b/src/__mocks__/checkoutUtility/originkeysSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const originKeysSuccess = JSON.stringify({
originKeys: {
"https://www.your-domain1.com": "pub.v2.7814286629520534.aHR0cHM6Ly93d3cueW91ci1kb21haW4xLmNvbQ.UEwIBmW9-c_uXo5wSEr2w8Hz8hVIpujXPHjpcEse3xI",
diff --git a/src/__mocks__/recurring/disableSuccess.ts b/src/__mocks__/recurring/disableSuccess.ts
index 6ec96ca..9dde20a 100644
--- a/src/__mocks__/recurring/disableSuccess.ts
+++ b/src/__mocks__/recurring/disableSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const disableSuccess = {
response: "[detail-successfully-disabled]",
};
diff --git a/src/__mocks__/recurring/listRecurringDetailsSuccess.ts b/src/__mocks__/recurring/listRecurringDetailsSuccess.ts
index f7941d4..d25aa32 100644
--- a/src/__mocks__/recurring/listRecurringDetailsSuccess.ts
+++ b/src/__mocks__/recurring/listRecurringDetailsSuccess.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const listRecurringDetailsSuccess = {
creationDate: "2017-03-01T10:53:11.000",
details: [
diff --git a/src/__mocks__/terminalApi/async.ts b/src/__mocks__/terminalApi/async.ts
index 7dd7f71..f8d897a 100644
--- a/src/__mocks__/terminalApi/async.ts
+++ b/src/__mocks__/terminalApi/async.ts
@@ -1 +1,20 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const asyncRes = "ok";
diff --git a/src/__mocks__/terminalApi/local.ts b/src/__mocks__/terminalApi/local.ts
index b15b361..beccea7 100644
--- a/src/__mocks__/terminalApi/local.ts
+++ b/src/__mocks__/terminalApi/local.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const localSecuredRes = JSON.stringify({
SaleToPOIResponse: {
MessageHeader: {
diff --git a/src/__mocks__/terminalApi/sync.ts b/src/__mocks__/terminalApi/sync.ts
index 2dbaab3..9188644 100644
--- a/src/__mocks__/terminalApi/sync.ts
+++ b/src/__mocks__/terminalApi/sync.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export const syncRes = JSON.stringify({
SaleToPOIResponse: {
MessageHeader: {
diff --git a/src/__tests__/binLookup.spec.ts b/src/__tests__/binLookup.spec.ts
index 937e560..9eaaf9b 100644
--- a/src/__tests__/binLookup.spec.ts
+++ b/src/__tests__/binLookup.spec.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/__tests__/checkServerIdentity.spec.ts b/src/__tests__/checkServerIdentity.spec.ts
index 6e92f39..b1b73dc 100644
--- a/src/__tests__/checkServerIdentity.spec.ts
+++ b/src/__tests__/checkServerIdentity.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/* eslint-disable @typescript-eslint/camelcase */
import checkServerIdentity from "../helpers/checkServerIdentity";
diff --git a/src/__tests__/checkout.spec.ts b/src/__tests__/checkout.spec.ts
index e526244..b68c351 100644
--- a/src/__tests__/checkout.spec.ts
+++ b/src/__tests__/checkout.spec.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/__tests__/checkoutUtility.spec.ts b/src/__tests__/checkoutUtility.spec.ts
index a498a58..5a2e34a 100644
--- a/src/__tests__/checkoutUtility.spec.ts
+++ b/src/__tests__/checkoutUtility.spec.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/__tests__/hmacValidator.spec.ts b/src/__tests__/hmacValidator.spec.ts
index 31c375e..bb0ef46 100644
--- a/src/__tests__/hmacValidator.spec.ts
+++ b/src/__tests__/hmacValidator.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import HmacValidator from "../utils/hmacValidator";
import {AdditionalData, NotificationRequestItem} from "../typings/notification/models";
import {ApiConstants} from "../constants/apiConstants";
diff --git a/src/__tests__/httpClient.spec.ts b/src/__tests__/httpClient.spec.ts
index 6d06f76..b332c95 100644
--- a/src/__tests__/httpClient.spec.ts
+++ b/src/__tests__/httpClient.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import nock, {Interceptor} from "nock";
import Client from "../client";
import Checkout from "../services/checkout";
diff --git a/src/__tests__/notification.spec.ts b/src/__tests__/notification.spec.ts
index cb7d6b6..53b766a 100644
--- a/src/__tests__/notification.spec.ts
+++ b/src/__tests__/notification.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import authorisationTrue from "../__mocks__/notification/authorisationTrue.json";
import captureTrue from "../__mocks__/notification/captureTrue.json";
import captureFalse from "../__mocks__/notification/captureFalse.json";
diff --git a/src/__tests__/payout.spec.ts b/src/__tests__/payout.spec.ts
index ca42425..1a78db2 100644
--- a/src/__tests__/payout.spec.ts
+++ b/src/__tests__/payout.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import nock from "nock";
import {createClient} from "../__mocks__/base";
import Payout from "../services/payout";
diff --git a/src/__tests__/platforms.spec.ts b/src/__tests__/platforms.spec.ts
index 44eee5d..3a5b72b 100644
--- a/src/__tests__/platforms.spec.ts
+++ b/src/__tests__/platforms.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import nock from "nock";
import {createMock} from "ts-auto-mock";
import {createBasicAuthClient} from "../__mocks__/base";
diff --git a/src/__tests__/recurring.spec.ts b/src/__tests__/recurring.spec.ts
index 084854c..94b0675 100644
--- a/src/__tests__/recurring.spec.ts
+++ b/src/__tests__/recurring.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import nock from "nock";
import {createClient} from "../__mocks__/base";
import {disableSuccess} from "../__mocks__/recurring/disableSuccess";
diff --git a/src/__tests__/terminalCloudAPI.spec.ts b/src/__tests__/terminalCloudAPI.spec.ts
index a7ec173..fef6ffc 100644
--- a/src/__tests__/terminalCloudAPI.spec.ts
+++ b/src/__tests__/terminalCloudAPI.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import nock from "nock";
import {createClient, createTerminalAPIPaymentRequest, createTerminalAPIRefundRequest} from "../__mocks__/base";
import {asyncRes} from "../__mocks__/terminalApi/async";
diff --git a/src/__tests__/terminalLocalAPI.spec.ts b/src/__tests__/terminalLocalAPI.spec.ts
index 0ebcbd2..edef33e 100644
--- a/src/__tests__/terminalLocalAPI.spec.ts
+++ b/src/__tests__/terminalLocalAPI.spec.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import nock from "nock";
import {createClient, createTerminalAPIPaymentRequest} from "../__mocks__/base";
import {localEncRes, localSecuredRes, wrongEncRes} from "../__mocks__/terminalApi/local";
diff --git a/src/apiKeyAuthenticatedService.ts b/src/apiKeyAuthenticatedService.ts
index 4670827..b999a97 100644
--- a/src/apiKeyAuthenticatedService.ts
+++ b/src/apiKeyAuthenticatedService.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/client.ts b/src/client.ts
index 9e1efdf..6deeaed 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/config.ts b/src/config.ts
index 31210cc..f8ceb40 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/constants/apiConstants.ts b/src/constants/apiConstants.ts
index 4c3147e..6a093f9 100644
--- a/src/constants/apiConstants.ts
+++ b/src/constants/apiConstants.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/constants/nexoConstants.ts b/src/constants/nexoConstants.ts
index dc6d1a8..72a039b 100644
--- a/src/constants/nexoConstants.ts
+++ b/src/constants/nexoConstants.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/helpers/checkServerIdentity.ts b/src/helpers/checkServerIdentity.ts
index 15f6eec..3bf1ce2 100644
--- a/src/helpers/checkServerIdentity.ts
+++ b/src/helpers/checkServerIdentity.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import {PeerCertificate} from "tls";
export default function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined {
diff --git a/src/helpers/getJsonResponse.ts b/src/helpers/getJsonResponse.ts
index 132934a..e365617 100644
--- a/src/helpers/getJsonResponse.ts
+++ b/src/helpers/getJsonResponse.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/helpers/setApplicationInfo.ts b/src/helpers/setApplicationInfo.ts
index b609991..07b2415 100644
--- a/src/helpers/setApplicationInfo.ts
+++ b/src/helpers/setApplicationInfo.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import {ApplicationInfo} from "../typings/applicationInfo";
interface AppInfo { applicationInfo?: ApplicationInfo }
diff --git a/src/httpClient/clientInterface.ts b/src/httpClient/clientInterface.ts
index 4b2be9f..4eda203 100644
--- a/src/httpClient/clientInterface.ts
+++ b/src/httpClient/clientInterface.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/httpClient/httpClientException.ts b/src/httpClient/httpClientException.ts
index 93fac67..44f51ae 100644
--- a/src/httpClient/httpClientException.ts
+++ b/src/httpClient/httpClientException.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
@@ -22,9 +20,9 @@
import {IncomingHttpHeaders} from "http";
interface ExceptionInterface {
- message: string;
- statusCode?: number;
- errorCode?: string;
+ message: string;
+ statusCode?: number;
+ errorCode?: string;
responseHeaders?: IncomingHttpHeaders;
responseBody?: string;
}
diff --git a/src/httpClient/httpURLConnectionClient.ts b/src/httpClient/httpURLConnectionClient.ts
index 9fae409..daee3ac 100644
--- a/src/httpClient/httpURLConnectionClient.ts
+++ b/src/httpClient/httpURLConnectionClient.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/index.ts b/src/index.ts
index 48e245e..bed8105 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/notification/notificationRequest.ts b/src/notification/notificationRequest.ts
index 9a4839c..75f44ca 100644
--- a/src/notification/notificationRequest.ts
+++ b/src/notification/notificationRequest.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/security/exception/invalidSecurityKeyException.ts b/src/security/exception/invalidSecurityKeyException.ts
index c1518e8..9fbdf98 100644
--- a/src/security/exception/invalidSecurityKeyException.ts
+++ b/src/security/exception/invalidSecurityKeyException.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/security/nexoCrypto.ts b/src/security/nexoCrypto.ts
index f94d1b1..a6d7fe5 100644
--- a/src/security/nexoCrypto.ts
+++ b/src/security/nexoCrypto.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/security/nexoDerivedKeyGenerator.ts b/src/security/nexoDerivedKeyGenerator.ts
index 44149d9..1a0d48d 100644
--- a/src/security/nexoDerivedKeyGenerator.ts
+++ b/src/security/nexoDerivedKeyGenerator.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/service.ts b/src/service.ts
index 8e0417e..fbb5e19 100644
--- a/src/service.ts
+++ b/src/service.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/binLookup.ts b/src/services/binLookup.ts
index 2546ff2..438b640 100644
--- a/src/services/binLookup.ts
+++ b/src/services/binLookup.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/checkout.ts b/src/services/checkout.ts
index bea5a78..e78b4f0 100644
--- a/src/services/checkout.ts
+++ b/src/services/checkout.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/checkoutUtility.ts b/src/services/checkoutUtility.ts
index 881a7ee..7556442 100644
--- a/src/services/checkoutUtility.ts
+++ b/src/services/checkoutUtility.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/exception/apiException.ts b/src/services/exception/apiException.ts
index f8e584c..33e4271 100644
--- a/src/services/exception/apiException.ts
+++ b/src/services/exception/apiException.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/exception/nexoCryptoException.ts b/src/services/exception/nexoCryptoException.ts
index 95b4f94..708f1ce 100644
--- a/src/services/exception/nexoCryptoException.ts
+++ b/src/services/exception/nexoCryptoException.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/index.ts b/src/services/index.ts
index 3a9f06d..10b238c 100644
--- a/src/services/index.ts
+++ b/src/services/index.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/modification.ts b/src/services/modification.ts
index 18730a2..8a518ff 100644
--- a/src/services/modification.ts
+++ b/src/services/modification.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/payout.ts b/src/services/payout.ts
index 0b96d96..0ea7024 100644
--- a/src/services/payout.ts
+++ b/src/services/payout.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/platforms.ts b/src/services/platforms.ts
index 8a47a72..64f466d 100644
--- a/src/services/platforms.ts
+++ b/src/services/platforms.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/recurring.ts b/src/services/recurring.ts
index 3da7687..32a3399 100644
--- a/src/services/recurring.ts
+++ b/src/services/recurring.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource.ts b/src/services/resource.ts
index de0024b..25ff4c9 100644
--- a/src/services/resource.ts
+++ b/src/services/resource.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/binLookup/get3dsAvailability.ts b/src/services/resource/binLookup/get3dsAvailability.ts
index 51b90c2..de5400f 100644
--- a/src/services/resource/binLookup/get3dsAvailability.ts
+++ b/src/services/resource/binLookup/get3dsAvailability.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/binLookup/getCostEstimate.ts b/src/services/resource/binLookup/getCostEstimate.ts
index 59b8346..c64f568 100644
--- a/src/services/resource/binLookup/getCostEstimate.ts
+++ b/src/services/resource/binLookup/getCostEstimate.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkout/paymentLinks.ts b/src/services/resource/checkout/paymentLinks.ts
index d87978f..e460cfd 100644
--- a/src/services/resource/checkout/paymentLinks.ts
+++ b/src/services/resource/checkout/paymentLinks.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkout/paymentMethods.ts b/src/services/resource/checkout/paymentMethods.ts
index 847b090..a45fa02 100644
--- a/src/services/resource/checkout/paymentMethods.ts
+++ b/src/services/resource/checkout/paymentMethods.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkout/paymentSession.ts b/src/services/resource/checkout/paymentSession.ts
index 42f82ce..f4f4093 100644
--- a/src/services/resource/checkout/paymentSession.ts
+++ b/src/services/resource/checkout/paymentSession.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkout/payments.ts b/src/services/resource/checkout/payments.ts
index 93acf42..2243cf8 100644
--- a/src/services/resource/checkout/payments.ts
+++ b/src/services/resource/checkout/payments.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkout/paymentsDetails.ts b/src/services/resource/checkout/paymentsDetails.ts
index 317c464..46f29bd 100644
--- a/src/services/resource/checkout/paymentsDetails.ts
+++ b/src/services/resource/checkout/paymentsDetails.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkout/paymentsResult.ts b/src/services/resource/checkout/paymentsResult.ts
index 949a207..f3bb007 100644
--- a/src/services/resource/checkout/paymentsResult.ts
+++ b/src/services/resource/checkout/paymentsResult.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/checkoutUtility/originKeys.ts b/src/services/resource/checkoutUtility/originKeys.ts
index 6f623c4..5562484 100644
--- a/src/services/resource/checkoutUtility/originKeys.ts
+++ b/src/services/resource/checkoutUtility/originKeys.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/modification/adjustAuthorisation.ts b/src/services/resource/modification/adjustAuthorisation.ts
index 3cdb3d6..5037b6c 100644
--- a/src/services/resource/modification/adjustAuthorisation.ts
+++ b/src/services/resource/modification/adjustAuthorisation.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/modification/cancel.ts b/src/services/resource/modification/cancel.ts
index e7f4398..c91e5ac 100644
--- a/src/services/resource/modification/cancel.ts
+++ b/src/services/resource/modification/cancel.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/modification/cancelOrRefund.ts b/src/services/resource/modification/cancelOrRefund.ts
index e3e4d9e..7197182 100644
--- a/src/services/resource/modification/cancelOrRefund.ts
+++ b/src/services/resource/modification/cancelOrRefund.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/modification/capture.ts b/src/services/resource/modification/capture.ts
index 246fee1..03afe8a 100644
--- a/src/services/resource/modification/capture.ts
+++ b/src/services/resource/modification/capture.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/modification/refund.ts b/src/services/resource/modification/refund.ts
index 0a937b7..bb22c43 100644
--- a/src/services/resource/modification/refund.ts
+++ b/src/services/resource/modification/refund.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/modification/technicalCancel.ts b/src/services/resource/modification/technicalCancel.ts
index 7f5d7f7..e276ae7 100644
--- a/src/services/resource/modification/technicalCancel.ts
+++ b/src/services/resource/modification/technicalCancel.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/payout/confirmThirdParty.ts b/src/services/resource/payout/confirmThirdParty.ts
index c23997a..9084d36 100644
--- a/src/services/resource/payout/confirmThirdParty.ts
+++ b/src/services/resource/payout/confirmThirdParty.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/payout/declineThirdParty.ts b/src/services/resource/payout/declineThirdParty.ts
index 6deb68e..3e2a81b 100644
--- a/src/services/resource/payout/declineThirdParty.ts
+++ b/src/services/resource/payout/declineThirdParty.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/payout/payout.ts b/src/services/resource/payout/payout.ts
index 57b687d..e3893f0 100644
--- a/src/services/resource/payout/payout.ts
+++ b/src/services/resource/payout/payout.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/payout/storeDetail.ts b/src/services/resource/payout/storeDetail.ts
index 9bb101e..3f90df2 100644
--- a/src/services/resource/payout/storeDetail.ts
+++ b/src/services/resource/payout/storeDetail.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/payout/storeDetailAndSubmitThirdParty.ts b/src/services/resource/payout/storeDetailAndSubmitThirdParty.ts
index fc0f312..8d2a01c 100644
--- a/src/services/resource/payout/storeDetailAndSubmitThirdParty.ts
+++ b/src/services/resource/payout/storeDetailAndSubmitThirdParty.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/payout/submitThirdParty.ts b/src/services/resource/payout/submitThirdParty.ts
index 8fd74a6..b011621 100644
--- a/src/services/resource/payout/submitThirdParty.ts
+++ b/src/services/resource/payout/submitThirdParty.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/recurring/disable.ts b/src/services/resource/recurring/disable.ts
index 178439f..0f49705 100644
--- a/src/services/resource/recurring/disable.ts
+++ b/src/services/resource/recurring/disable.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/recurring/listRecurringDetails.ts b/src/services/resource/recurring/listRecurringDetails.ts
index ad70c55..d7aaac4 100644
--- a/src/services/resource/recurring/listRecurringDetails.ts
+++ b/src/services/resource/recurring/listRecurringDetails.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/terminal/cloud/async.ts b/src/services/resource/terminal/cloud/async.ts
index 7c35187..bdc6024 100644
--- a/src/services/resource/terminal/cloud/async.ts
+++ b/src/services/resource/terminal/cloud/async.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/terminal/cloud/sync.ts b/src/services/resource/terminal/cloud/sync.ts
index b86073f..1371ebf 100644
--- a/src/services/resource/terminal/cloud/sync.ts
+++ b/src/services/resource/terminal/cloud/sync.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/resource/terminal/local/localRequest.ts b/src/services/resource/terminal/local/localRequest.ts
index 661b9a6..3774449 100644
--- a/src/services/resource/terminal/local/localRequest.ts
+++ b/src/services/resource/terminal/local/localRequest.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/terminalCloudAPI.ts b/src/services/terminalCloudAPI.ts
index 303f409..4f1927c 100644
--- a/src/services/terminalCloudAPI.ts
+++ b/src/services/terminalCloudAPI.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts
index 171b42a..4d6dfd3 100644
--- a/src/services/terminalLocalAPI.ts
+++ b/src/services/terminalLocalAPI.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/amount.ts b/src/typings/amount.ts
index cde2075..13cdf26 100644
--- a/src/typings/amount.ts
+++ b/src/typings/amount.ts
@@ -11,11 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/apiError.ts b/src/typings/apiError.ts
index efaff1f..5b505c1 100644
--- a/src/typings/apiError.ts
+++ b/src/typings/apiError.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/applicationInfo.ts b/src/typings/applicationInfo.ts
index 99350be..13e8257 100644
--- a/src/typings/applicationInfo.ts
+++ b/src/typings/applicationInfo.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/binLookup.ts b/src/typings/binLookup.ts
index ff7bb17..d823d1b 100644
--- a/src/typings/binLookup.ts
+++ b/src/typings/binLookup.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of BinLookup: v50
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -31,7 +27,7 @@ declare namespace IBinLookup {
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
@@ -65,11 +61,11 @@ declare namespace IBinLookup {
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)
@@ -94,11 +90,11 @@ declare namespace IBinLookup {
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)
@@ -137,13 +133,13 @@ declare namespace IBinLookup {
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;
@@ -166,7 +162,7 @@ declare namespace IBinLookup {
/**
* 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).
@@ -227,7 +223,7 @@ declare namespace IBinLookup {
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;
@@ -290,7 +286,7 @@ declare namespace IBinLookup {
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.
*/
additionalData?: {
diff --git a/src/typings/checkout.ts b/src/typings/checkout.ts
index 466c7b1..ffc23a0 100644
--- a/src/typings/checkout.ts
+++ b/src/typings/checkout.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Checkout: v52
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -155,10 +151,10 @@ declare namespace ICheckout {
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**
+ * * **lowValue**
+ * * **secureCorporate**
+ * * **trustedBeneficiary**
+ * * **transactionRiskAnalysis**
*/
scaExemption?: string;
}
@@ -295,7 +291,7 @@ declare namespace ICheckout {
* * J: business class
* * Y: economy class
* * W: premium economy
- *
+ *
* Limitations:
* * minLength: 1
* * maxLength: 1
@@ -305,7 +301,7 @@ declare namespace ICheckout {
* 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
@@ -321,7 +317,7 @@ declare namespace ICheckout {
*/
"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
@@ -346,7 +342,7 @@ declare namespace ICheckout {
"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
@@ -360,7 +356,7 @@ declare namespace ICheckout {
"airline.passenger.telephone_number"?: string;
/**
* Date of birth of the passenger.
- *
+ *
* Date format: `yyyy-MM-dd`
* * minLength: 10
* * maxLength: 10
@@ -463,7 +459,7 @@ declare namespace ICheckout {
"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
@@ -507,7 +503,7 @@ declare namespace ICheckout {
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.
@@ -515,19 +511,19 @@ declare namespace ICheckout {
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;
@@ -537,7 +533,7 @@ declare namespace ICheckout {
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.
@@ -547,7 +543,7 @@ declare namespace ICheckout {
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.
@@ -564,7 +560,7 @@ declare namespace ICheckout {
"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.
@@ -572,21 +568,21 @@ declare namespace ICheckout {
"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.
@@ -594,20 +590,20 @@ declare namespace ICheckout {
"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.
*/
@@ -615,7 +611,7 @@ declare namespace ICheckout {
/**
* Order date.
* * Format: `ddMMyy`
- *
+ *
* Encoding: ASCII.
* Max length: 6 characters.
*/
@@ -657,7 +653,7 @@ declare namespace ICheckout {
"enhancedSchemeData.itemDetailLine[itemNr].unitPrice"?: number;
/**
* Discount amount, in minor units.
- *
+ *
* For example, 2000 means USD 20.00.
* Max length: 12 characters.
*/
@@ -748,7 +744,7 @@ declare namespace ICheckout {
"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
@@ -776,19 +772,19 @@ declare namespace ICheckout {
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;
@@ -802,7 +798,7 @@ declare namespace ICheckout {
"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;
@@ -812,7 +808,7 @@ declare namespace ICheckout {
"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;
@@ -826,7 +822,7 @@ declare namespace ICheckout {
"openinvoicedata.line[itemNr].numberOfItems"?: number;
/**
* Required for AfterPay. The country-specific VAT category a product falls under.
- *
+ *
* Allowed values:
* * High
* * Low
@@ -960,7 +956,7 @@ declare namespace ICheckout {
"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;
@@ -1142,7 +1138,7 @@ declare namespace ICheckout {
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
@@ -1180,7 +1176,7 @@ declare namespace ICheckout {
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.
@@ -1211,7 +1207,7 @@ declare namespace ICheckout {
bic?: string;
/**
* Country code where the bank is located.
- *
+ *
* A valid value is an ISO two-character country code (e.g. 'NL').
*/
countryCode?: string;
@@ -1458,7 +1454,7 @@ declare namespace ICheckout {
avs?: ICheckout.Avs;
/**
* Determines whether the cardholder name should be provided or not.
- *
+ *
* Permitted values:
* * NONE
* * OPTIONAL
@@ -1477,7 +1473,7 @@ declare namespace ICheckout {
export interface CreatePaymentLinkRequest {
/**
* List of payments methods to be presented to the shopper. To refer to payment methods, use their `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods).
- *
+ *
* Example: `"allowedPaymentMethods":["ideal","giropay"]`
*/
allowedPaymentMethods?: string[];
@@ -1492,7 +1488,7 @@ declare namespace ICheckout {
billingAddress?: ICheckout.Address;
/**
* List of payments methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods).
- *
+ *
* Example: `"blockedPaymentMethods":["ideal","giropay"]`
*/
blockedPaymentMethods?: string[];
@@ -1730,7 +1726,7 @@ declare namespace ICheckout {
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
@@ -2256,13 +2252,13 @@ declare namespace ICheckout {
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 `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods).
- *
+ *
* Example: `"allowedPaymentMethods":["ideal","giropay"]`
*/
allowedPaymentMethods?: string[];
@@ -2272,7 +2268,7 @@ declare namespace ICheckout {
amount?: ICheckout.Amount;
/**
* List of payments methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods).
- *
+ *
* Example: `"blockedPaymentMethods":["ideal","giropay"]`
*/
blockedPaymentMethods?: string[];
@@ -2335,7 +2331,7 @@ declare namespace ICheckout {
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;
@@ -2363,7 +2359,7 @@ declare namespace ICheckout {
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
@@ -2380,14 +2376,14 @@ declare namespace ICheckout {
conversionId?: string;
/**
* 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
@@ -2401,9 +2397,9 @@ declare namespace ICheckout {
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
@@ -2479,7 +2475,7 @@ declare namespace ICheckout {
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;
@@ -2502,7 +2498,7 @@ declare namespace ICheckout {
* * `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";
/**
@@ -2551,7 +2547,7 @@ declare namespace ICheckout {
/**
* 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).
@@ -2619,7 +2615,7 @@ declare namespace ICheckout {
*/
amount?: ICheckout.Amount;
/**
- * Contains `threeds2.fingerprint` or `threeds2.challengeToken` values to be used in further calls to `/payments/details` endpoint.
+ * Contains `threeds2.fingerprint` or `threeds2.challengeToken` values to be used in further calls to `/payments/details` endpoint.
*/
authentication?: {
};
@@ -2648,7 +2644,7 @@ declare namespace ICheckout {
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;
@@ -2658,7 +2654,7 @@ declare namespace ICheckout {
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;
@@ -2668,7 +2664,7 @@ declare namespace ICheckout {
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.
@@ -2686,13 +2682,13 @@ declare namespace ICheckout {
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 `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods).
- *
+ *
* Example: `"allowedPaymentMethods":["ideal","giropay"]`
*/
allowedPaymentMethods?: string[];
@@ -2711,7 +2707,7 @@ declare namespace ICheckout {
billingAddress?: ICheckout.Address;
/**
* List of payments methods to be hidden from the shopper. To refer to payment methods, use their `paymentMethod.type` from [Payment methods overview](https://docs.adyen.com/payment-methods).
- *
+ *
* Example: `"blockedPaymentMethods":["ideal","giropay"]`
*/
blockedPaymentMethods?: string[];
@@ -2721,7 +2717,7 @@ declare namespace ICheckout {
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
@@ -2742,14 +2738,14 @@ declare namespace ICheckout {
conversionId?: string;
/**
* 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
@@ -2763,9 +2759,9 @@ declare namespace ICheckout {
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
@@ -2828,7 +2824,7 @@ declare namespace ICheckout {
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;
@@ -2882,7 +2878,7 @@ declare namespace ICheckout {
/**
* 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).
@@ -2929,7 +2925,7 @@ declare namespace ICheckout {
threeDSAuthenticationOnly?: boolean;
/**
* The token obtained when initializing the SDK.
- *
+ *
* > This parameter is required for iOS and Android; not required for Web.
*/
token?: string;
@@ -2973,13 +2969,13 @@ declare namespace ICheckout {
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;
@@ -2989,7 +2985,7 @@ declare namespace ICheckout {
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.
@@ -3100,7 +3096,7 @@ declare namespace ICheckout {
};
/**
* The web method that you must use to access the redirect URL.
- *
+ *
* Possible values: GET, POST.
*/
method?: "GET" | "POST";
@@ -3116,7 +3112,7 @@ declare namespace ICheckout {
"billingAddress.city"?: string;
/**
* The billing address country passed in the payment request.
- *
+ *
* Example: NL
*/
"billingAddress.country"?: string;
@@ -3126,13 +3122,13 @@ declare namespace ICheckout {
"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;
@@ -3144,7 +3140,7 @@ declare namespace ICheckout {
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;
@@ -3158,19 +3154,19 @@ declare namespace ICheckout {
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;
@@ -3183,32 +3179,32 @@ declare namespace ICheckout {
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;
@@ -3216,7 +3212,7 @@ declare namespace ICheckout {
* 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;
@@ -3226,25 +3222,25 @@ declare namespace ICheckout {
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.
*/
@@ -3255,20 +3251,20 @@ declare namespace ICheckout {
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;
@@ -3290,27 +3286,27 @@ declare namespace ICheckout {
* * 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
* * Closed Account
@@ -3325,7 +3321,7 @@ declare namespace ICheckout {
inferredRefusalReason?: string;
/**
* The issuing country of the card based on the BIN list that Adyen maintains.
- *
+ *
* Example: JP
*/
issuerCountry?: string;
@@ -3336,13 +3332,13 @@ declare namespace ICheckout {
mcBankNetReferenceNumber?: 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;
@@ -3352,19 +3348,19 @@ declare namespace ICheckout {
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)
@@ -3374,7 +3370,7 @@ declare namespace ICheckout {
payoutEligible?: string;
/**
* The response code from the Real Time Account Updater service.
- *
+ *
* Possible return values are:
* * CardChanged
* * CardExpiryChanged
@@ -3388,7 +3384,7 @@ declare namespace ICheckout {
receiptFreeText?: string;
/**
* The `pspReference`, of the first recurring payment that created the recurring detail.
- *
+ *
* This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team.
*/
"recurring.firstPspReference"?: string;
@@ -3398,57 +3394,57 @@ declare namespace ICheckout {
"recurring.recurringDetailReference"?: string;
/**
* If the payment is referred, this field is set to true.
- *
+ *
* This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions.
- *
+ *
* Example: true
*/
referred?: string;
/**
* Raw refusal reason received from the acquirer, where available.
- *
+ *
* Example: AUTHORISED
*/
refusalReasonRaw?: string;
/**
* The shopper interaction type of the payment request.
- *
+ *
* Example: Ecommerce
*/
shopperInteraction?: string;
/**
* The shopperReference passed in the payment request.
- *
+ *
* Example: AdyenTestShopperXX
*/
shopperReference?: string;
/**
* The terminal ID used in a point-of-sale payment.
- *
+ *
* Example: 06022622
*/
terminalId?: string;
/**
* A Boolean value indicating whether 3DS authentication was completed on this payment.
- *
+ *
* Example: true
*/
threeDAuthenticated?: string;
/**
* The raw 3DS authentication result from the card issuer.
- *
+ *
* Example: N
*/
threeDAuthenticatedResponse?: string;
/**
* A Boolean value indicating whether 3DS was offered for this payment.
- *
+ *
* Example: true
*/
threeDOffered?: string;
/**
* The raw enrollment result from the 3DS directory services of the card schemes.
- *
+ *
* Example: Y
*/
threeDOfferedResponse?: string;
@@ -3463,7 +3459,7 @@ declare namespace ICheckout {
visaTransactionId?: string;
/**
* The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field.
- *
+ *
* Example: ODgxNDc2MDg2MDExODk5MAAAAAA=
*/
xid?: string;
@@ -3475,7 +3471,7 @@ declare namespace ICheckout {
"deliveryAddress.city"?: string;
/**
* The delivery address country passed in the payment request.
- *
+ *
* Example: NL
*/
"deliveryAddress.country"?: string;
@@ -3485,13 +3481,13 @@ declare namespace ICheckout {
"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;
@@ -3503,7 +3499,7 @@ declare namespace ICheckout {
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.
*/
@@ -3573,31 +3569,31 @@ declare namespace ICheckout {
export interface ResponseAdditionalDataPayPal {
/**
* The status of the buyer's PayPal account.
- *
+ *
* Example: unverified
*/
paypalPayerStatus?: string;
/**
* The buyer's country of residence.
- *
+ *
* Example: NL
*/
paypalPayerResidenceCountry?: string;
/**
* The buyer's PayPal ID.
- *
+ *
* Example: LF5HCWWBRV2KL
*/
paypalPayerId?: string;
/**
* The buyer's PayPal account email address.
- *
+ *
* Example: paypaltest@adyen.com
*/
paypalEmail?: string;
/**
* The eligibility for PayPal Seller Protection for this payment.
- *
+ *
* Example: Ineligible
*/
paypalProtectionEligibility?: string;
@@ -3605,7 +3601,7 @@ declare namespace ICheckout {
export interface ResponseAdditionalDataSepa {
/**
* The transaction signature date.
- *
+ *
* Format: yyyy-MM-dd
*/
"sepadirectdebit.dateOfSignature"?: string;
@@ -3619,7 +3615,7 @@ declare namespace ICheckout {
* * First: (FRST) Initial/first collection in a series of direct debit instructions.
* * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor.
* * Final: (FNAL) Last/final collection in a series of direct debit instructions.
- *
+ *
* Example: OOFF
*/
"sepadirectdebit.sequenceType"?: string;
@@ -3656,7 +3652,7 @@ declare namespace ICheckout {
export interface ShopperInput {
/**
* Specifies visibility of billing address fields.
- *
+ *
* Permitted values:
* * editable
* * hidden
@@ -3665,7 +3661,7 @@ declare namespace ICheckout {
billingAddress?: "editable" | "hidden" | "readOnly";
/**
* Specifies visibility of delivery address fields.
- *
+ *
* Permitted values:
* * editable
* * hidden
@@ -3674,7 +3670,7 @@ declare namespace ICheckout {
deliveryAddress?: "editable" | "hidden" | "readOnly";
/**
* Specifies visibility of personal details.
- *
+ *
* Permitted values:
* * editable
* * hidden
@@ -3699,7 +3695,7 @@ declare namespace ICheckout {
export interface Split {
/**
* The account to which this split applies.
- *
+ *
* >Required if the type is `MarketPlace`.
*/
account?: string;
@@ -3713,13 +3709,13 @@ declare namespace ICheckout {
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";
@@ -3727,13 +3723,13 @@ declare namespace ICheckout {
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
@@ -3841,7 +3837,7 @@ declare namespace ICheckout {
* * `requestNoChallenge`
* * `requestChallenge`
* * `requestChallengeAsMandate`
- *
+ *
*/
challengeIndicator?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate";
/**
@@ -3931,7 +3927,7 @@ declare namespace ICheckout {
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";
@@ -3945,7 +3941,7 @@ declare namespace ICheckout {
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";
diff --git a/src/typings/checkoutUtility.ts b/src/typings/checkoutUtility.ts
index 22e6f82..336467b 100644
--- a/src/typings/checkoutUtility.ts
+++ b/src/typings/checkoutUtility.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Checkout Utility: v1
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
diff --git a/src/typings/enums/environment.ts b/src/typings/enums/environment.ts
index 8cc29bd..d6caffa 100644
--- a/src/typings/enums/environment.ts
+++ b/src/typings/enums/environment.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/enums/vatCategory.ts b/src/typings/enums/vatCategory.ts
index 1df3b68..bdfe50f 100644
--- a/src/typings/enums/vatCategory.ts
+++ b/src/typings/enums/vatCategory.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/index.ts b/src/typings/index.ts
index f14a08b..8d14bab 100644
--- a/src/typings/index.ts
+++ b/src/typings/index.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
///
///
///
diff --git a/src/typings/marketPayAccount.ts b/src/typings/marketPayAccount.ts
index 809a42b..37d4e26 100644
--- a/src/typings/marketPayAccount.ts
+++ b/src/typings/marketPayAccount.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of MarketPay Account: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -207,7 +203,7 @@ declare namespace IMarketPayAccount {
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
@@ -222,7 +218,7 @@ declare namespace IMarketPayAccount {
* 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;
@@ -237,13 +233,13 @@ declare namespace IMarketPayAccount {
/**
* 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;
/**
@@ -253,19 +249,19 @@ declare namespace IMarketPayAccount {
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;
@@ -279,28 +275,28 @@ declare namespace IMarketPayAccount {
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;
@@ -312,13 +308,13 @@ declare namespace IMarketPayAccount {
/**
* 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;
/**
@@ -334,7 +330,7 @@ declare namespace IMarketPayAccount {
/**
* 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;
@@ -359,14 +355,14 @@ declare namespace IMarketPayAccount {
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;
@@ -377,7 +373,7 @@ declare namespace IMarketPayAccount {
*/
doingBusinessAs?: string;
/**
- * The jurisdiction of incorporation of the company.
+ * 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;
@@ -470,9 +466,9 @@ declare namespace IMarketPayAccount {
/**
* 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";
@@ -634,7 +630,7 @@ declare namespace IMarketPayAccount {
/**
* 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;
@@ -650,7 +646,7 @@ declare namespace IMarketPayAccount {
* * `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";
@@ -661,7 +657,7 @@ declare namespace IMarketPayAccount {
/**
* 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;
@@ -1002,13 +998,13 @@ declare namespace IMarketPayAccount {
/**
* 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;
/**
@@ -1075,7 +1071,7 @@ declare namespace IMarketPayAccount {
accountHolderCode: string;
/**
* The details to which the Account Holder should be updated.
- *
+ *
* Required if a processingTier is not provided.
*/
accountHolderDetails?: IMarketPayAccount.AccountHolderDetails;
@@ -1086,9 +1082,9 @@ declare namespace IMarketPayAccount {
/**
* 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";
@@ -1099,7 +1095,7 @@ declare namespace IMarketPayAccount {
/**
* 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
@@ -1240,7 +1236,7 @@ declare namespace IMarketPayAccount {
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
diff --git a/src/typings/marketPayFund.ts b/src/typings/marketPayFund.ts
index 660beac..9122bd0 100644
--- a/src/typings/marketPayFund.ts
+++ b/src/typings/marketPayFund.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of MarketPay Fund: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -134,7 +130,7 @@ declare namespace IMarketPayFund {
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
@@ -149,7 +145,7 @@ declare namespace IMarketPayFund {
* 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;
@@ -164,13 +160,13 @@ declare namespace IMarketPayFund {
/**
* 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;
/**
@@ -180,19 +176,19 @@ declare namespace IMarketPayFund {
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;
@@ -206,28 +202,28 @@ declare namespace IMarketPayFund {
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;
@@ -239,13 +235,13 @@ declare namespace IMarketPayFund {
/**
* 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;
/**
@@ -261,7 +257,7 @@ declare namespace IMarketPayFund {
/**
* 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;
@@ -286,14 +282,14 @@ declare namespace IMarketPayFund {
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;
diff --git a/src/typings/marketPayHostedOnboardingPage.ts b/src/typings/marketPayHostedOnboardingPage.ts
index 958a001..c0ace31 100644
--- a/src/typings/marketPayHostedOnboardingPage.ts
+++ b/src/typings/marketPayHostedOnboardingPage.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of MarketPay Hosted Onboarding Page: v1
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
diff --git a/src/typings/marketPayNotificationConfiguration.ts b/src/typings/marketPayNotificationConfiguration.ts
index 32bb9d5..e691fce 100644
--- a/src/typings/marketPayNotificationConfiguration.ts
+++ b/src/typings/marketPayNotificationConfiguration.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of MarketPay Notification Configuration: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -145,9 +141,9 @@ declare namespace IMarketPayNotificationConfiguration {
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;
diff --git a/src/typings/marketPayNotifications.ts b/src/typings/marketPayNotifications.ts
index cf22c87..1b7e16c 100644
--- a/src/typings/marketPayNotifications.ts
+++ b/src/typings/marketPayNotifications.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of MarketPay Notifications: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -604,7 +600,7 @@ declare namespace IMarketPayNotifications {
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
@@ -619,7 +615,7 @@ declare namespace IMarketPayNotifications {
* 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;
@@ -634,13 +630,13 @@ declare namespace IMarketPayNotifications {
/**
* 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;
/**
@@ -650,19 +646,19 @@ declare namespace IMarketPayNotifications {
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;
@@ -676,28 +672,28 @@ declare namespace IMarketPayNotifications {
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;
@@ -709,13 +705,13 @@ declare namespace IMarketPayNotifications {
/**
* 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;
/**
@@ -731,7 +727,7 @@ declare namespace IMarketPayNotifications {
/**
* 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;
@@ -756,14 +752,14 @@ declare namespace IMarketPayNotifications {
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;
@@ -834,7 +830,7 @@ declare namespace IMarketPayNotifications {
*/
doingBusinessAs?: string;
/**
- * The jurisdiction of incorporation of the company.
+ * 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;
@@ -1498,13 +1494,13 @@ declare namespace IMarketPayNotifications {
/**
* 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;
/**
diff --git a/src/typings/nexo.ts b/src/typings/nexo.ts
index ed4ddd8..606aa24 100644
--- a/src/typings/nexo.ts
+++ b/src/typings/nexo.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/notification/additionalData.ts b/src/typings/notification/additionalData.ts
index 3e24d1d..5ebf954 100644
--- a/src/typings/notification/additionalData.ts
+++ b/src/typings/notification/additionalData.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/**
* Notification API
* Definition of Notification API Schema
diff --git a/src/typings/notification/amount.ts b/src/typings/notification/amount.ts
index eeae27e..b1f63f5 100644
--- a/src/typings/notification/amount.ts
+++ b/src/typings/notification/amount.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/**
* Notification API
* Definition of Notification API Schema
diff --git a/src/typings/notification/models.ts b/src/typings/notification/models.ts
index e14fbf2..1817945 100644
--- a/src/typings/notification/models.ts
+++ b/src/typings/notification/models.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export * from './additionalData';
export * from './amount';
export * from './notification';
diff --git a/src/typings/notification/notification.ts b/src/typings/notification/notification.ts
index d6f27af..8804442 100644
--- a/src/typings/notification/notification.ts
+++ b/src/typings/notification/notification.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/**
* Notification API
* Definition of Notification API Schema
diff --git a/src/typings/notification/notificationItem.ts b/src/typings/notification/notificationItem.ts
index 2f7262a..667e45a 100644
--- a/src/typings/notification/notificationItem.ts
+++ b/src/typings/notification/notificationItem.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/**
* Notification API
* Definition of Notification API Schema
diff --git a/src/typings/notification/notificationRequestItem.ts b/src/typings/notification/notificationRequestItem.ts
index 5eac79a..dc07c0d 100644
--- a/src/typings/notification/notificationRequestItem.ts
+++ b/src/typings/notification/notificationRequestItem.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
/**
* Notification API
* Definition of Notification API Schema
diff --git a/src/typings/payments.ts b/src/typings/payments.ts
index aa5f770..f757525 100644
--- a/src/typings/payments.ts
+++ b/src/typings/payments.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Payments: v52
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -155,10 +151,10 @@ declare namespace IPayments {
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**
+ * * **lowValue**
+ * * **secureCorporate**
+ * * **trustedBeneficiary**
+ * * **transactionRiskAnalysis**
*/
scaExemption?: string;
}
@@ -295,7 +291,7 @@ declare namespace IPayments {
* * J: business class
* * Y: economy class
* * W: premium economy
- *
+ *
* Limitations:
* * minLength: 1
* * maxLength: 1
@@ -305,7 +301,7 @@ declare namespace IPayments {
* 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
@@ -321,7 +317,7 @@ declare namespace IPayments {
*/
"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
@@ -346,7 +342,7 @@ declare namespace IPayments {
"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
@@ -360,7 +356,7 @@ declare namespace IPayments {
"airline.passenger.telephone_number"?: string;
/**
* Date of birth of the passenger.
- *
+ *
* Date format: `yyyy-MM-dd`
* * minLength: 10
* * maxLength: 10
@@ -463,7 +459,7 @@ declare namespace IPayments {
"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
@@ -507,7 +503,7 @@ declare namespace IPayments {
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.
@@ -515,19 +511,19 @@ declare namespace IPayments {
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;
@@ -537,7 +533,7 @@ declare namespace IPayments {
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.
@@ -547,7 +543,7 @@ declare namespace IPayments {
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.
@@ -564,7 +560,7 @@ declare namespace IPayments {
"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.
@@ -572,21 +568,21 @@ declare namespace IPayments {
"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.
@@ -594,20 +590,20 @@ declare namespace IPayments {
"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.
*/
@@ -615,7 +611,7 @@ declare namespace IPayments {
/**
* Order date.
* * Format: `ddMMyy`
- *
+ *
* Encoding: ASCII.
* Max length: 6 characters.
*/
@@ -657,7 +653,7 @@ declare namespace IPayments {
"enhancedSchemeData.itemDetailLine[itemNr].unitPrice"?: number;
/**
* Discount amount, in minor units.
- *
+ *
* For example, 2000 means USD 20.00.
* Max length: 12 characters.
*/
@@ -748,7 +744,7 @@ declare namespace IPayments {
"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
@@ -782,19 +778,19 @@ declare namespace IPayments {
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;
@@ -808,7 +804,7 @@ declare namespace IPayments {
"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;
@@ -818,7 +814,7 @@ declare namespace IPayments {
"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;
@@ -832,7 +828,7 @@ declare namespace IPayments {
"openinvoicedata.line[itemNr].numberOfItems"?: number;
/**
* Required for AfterPay. The country-specific VAT category a product falls under.
- *
+ *
* Allowed values:
* * High
* * Low
@@ -966,7 +962,7 @@ declare namespace IPayments {
"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;
@@ -1148,7 +1144,7 @@ declare namespace IPayments {
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
@@ -1222,7 +1218,7 @@ declare namespace IPayments {
bic?: string;
/**
* Country code where the bank is located.
- *
+ *
* A valid value is an ISO two-character country code (e.g. 'NL').
*/
countryCode?: string;
@@ -1452,7 +1448,7 @@ declare namespace IPayments {
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
@@ -1525,7 +1521,7 @@ declare namespace IPayments {
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;
@@ -1613,12 +1609,12 @@ declare namespace IPayments {
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`.
+ * 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;
@@ -1656,7 +1652,7 @@ declare namespace IPayments {
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
@@ -1670,9 +1666,9 @@ declare namespace IPayments {
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
@@ -1750,7 +1746,7 @@ declare namespace IPayments {
* * `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";
/**
@@ -1761,7 +1757,7 @@ declare namespace IPayments {
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.
@@ -1788,7 +1784,7 @@ declare namespace IPayments {
/**
* 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).
@@ -1854,12 +1850,12 @@ declare namespace IPayments {
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`.
+ * 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;
@@ -1887,7 +1883,7 @@ declare namespace IPayments {
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
@@ -1901,9 +1897,9 @@ declare namespace IPayments {
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
@@ -1970,7 +1966,7 @@ declare namespace IPayments {
* * `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";
/**
@@ -1981,7 +1977,7 @@ declare namespace IPayments {
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.
@@ -2008,7 +2004,7 @@ declare namespace IPayments {
/**
* 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).
@@ -2074,12 +2070,12 @@ declare namespace IPayments {
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`.
+ * 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;
@@ -2107,7 +2103,7 @@ declare namespace IPayments {
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
@@ -2121,9 +2117,9 @@ declare namespace IPayments {
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
@@ -2182,7 +2178,7 @@ declare namespace IPayments {
* * `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";
/**
@@ -2193,7 +2189,7 @@ declare namespace IPayments {
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.
@@ -2220,7 +2216,7 @@ declare namespace IPayments {
/**
* 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).
@@ -2322,25 +2318,25 @@ declare namespace IPayments {
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.
@@ -2395,7 +2391,7 @@ declare namespace IPayments {
"billingAddress.city"?: string;
/**
* The billing address country passed in the payment request.
- *
+ *
* Example: NL
*/
"billingAddress.country"?: string;
@@ -2405,13 +2401,13 @@ declare namespace IPayments {
"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;
@@ -2423,7 +2419,7 @@ declare namespace IPayments {
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;
@@ -2437,19 +2433,19 @@ declare namespace IPayments {
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;
@@ -2462,32 +2458,32 @@ declare namespace IPayments {
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;
@@ -2495,7 +2491,7 @@ declare namespace IPayments {
* 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;
@@ -2505,25 +2501,25 @@ declare namespace IPayments {
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.
*/
@@ -2534,20 +2530,20 @@ declare namespace IPayments {
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;
@@ -2569,27 +2565,27 @@ declare namespace IPayments {
* * 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
* * Closed Account
@@ -2604,7 +2600,7 @@ declare namespace IPayments {
inferredRefusalReason?: string;
/**
* The issuing country of the card based on the BIN list that Adyen maintains.
- *
+ *
* Example: JP
*/
issuerCountry?: string;
@@ -2615,13 +2611,13 @@ declare namespace IPayments {
mcBankNetReferenceNumber?: 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;
@@ -2631,19 +2627,19 @@ declare namespace IPayments {
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)
@@ -2653,7 +2649,7 @@ declare namespace IPayments {
payoutEligible?: string;
/**
* The response code from the Real Time Account Updater service.
- *
+ *
* Possible return values are:
* * CardChanged
* * CardExpiryChanged
@@ -2667,7 +2663,7 @@ declare namespace IPayments {
receiptFreeText?: string;
/**
* The `pspReference`, of the first recurring payment that created the recurring detail.
- *
+ *
* This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team.
*/
"recurring.firstPspReference"?: string;
@@ -2677,57 +2673,57 @@ declare namespace IPayments {
"recurring.recurringDetailReference"?: string;
/**
* If the payment is referred, this field is set to true.
- *
+ *
* This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions.
- *
+ *
* Example: true
*/
referred?: string;
/**
* Raw refusal reason received from the acquirer, where available.
- *
+ *
* Example: AUTHORISED
*/
refusalReasonRaw?: string;
/**
* The shopper interaction type of the payment request.
- *
+ *
* Example: Ecommerce
*/
shopperInteraction?: string;
/**
* The shopperReference passed in the payment request.
- *
+ *
* Example: AdyenTestShopperXX
*/
shopperReference?: string;
/**
* The terminal ID used in a point-of-sale payment.
- *
+ *
* Example: 06022622
*/
terminalId?: string;
/**
* A Boolean value indicating whether 3DS authentication was completed on this payment.
- *
+ *
* Example: true
*/
threeDAuthenticated?: string;
/**
* The raw 3DS authentication result from the card issuer.
- *
+ *
* Example: N
*/
threeDAuthenticatedResponse?: string;
/**
* A Boolean value indicating whether 3DS was offered for this payment.
- *
+ *
* Example: true
*/
threeDOffered?: string;
/**
* The raw enrollment result from the 3DS directory services of the card schemes.
- *
+ *
* Example: Y
*/
threeDOfferedResponse?: string;
@@ -2742,7 +2738,7 @@ declare namespace IPayments {
visaTransactionId?: string;
/**
* The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field.
- *
+ *
* Example: ODgxNDc2MDg2MDExODk5MAAAAAA=
*/
xid?: string;
@@ -2754,7 +2750,7 @@ declare namespace IPayments {
"deliveryAddress.city"?: string;
/**
* The delivery address country passed in the payment request.
- *
+ *
* Example: NL
*/
"deliveryAddress.country"?: string;
@@ -2764,13 +2760,13 @@ declare namespace IPayments {
"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;
@@ -2782,7 +2778,7 @@ declare namespace IPayments {
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.
*/
@@ -2852,31 +2848,31 @@ declare namespace IPayments {
export interface ResponseAdditionalDataPayPal {
/**
* The status of the buyer's PayPal account.
- *
+ *
* Example: unverified
*/
paypalPayerStatus?: string;
/**
* The buyer's country of residence.
- *
+ *
* Example: NL
*/
paypalPayerResidenceCountry?: string;
/**
* The buyer's PayPal ID.
- *
+ *
* Example: LF5HCWWBRV2KL
*/
paypalPayerId?: string;
/**
* The buyer's PayPal account email address.
- *
+ *
* Example: paypaltest@adyen.com
*/
paypalEmail?: string;
/**
* The eligibility for PayPal Seller Protection for this payment.
- *
+ *
* Example: Ineligible
*/
paypalProtectionEligibility?: string;
@@ -2884,7 +2880,7 @@ declare namespace IPayments {
export interface ResponseAdditionalDataSepa {
/**
* The transaction signature date.
- *
+ *
* Format: yyyy-MM-dd
*/
"sepadirectdebit.dateOfSignature"?: string;
@@ -2898,7 +2894,7 @@ declare namespace IPayments {
* * First: (FRST) Initial/first collection in a series of direct debit instructions.
* * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor.
* * Final: (FNAL) Last/final collection in a series of direct debit instructions.
- *
+ *
* Example: OOFF
*/
"sepadirectdebit.sequenceType"?: string;
@@ -2938,7 +2934,7 @@ declare namespace IPayments {
export interface Split {
/**
* The account to which this split applies.
- *
+ *
* >Required if the type is `MarketPlace`.
*/
account?: string;
@@ -2952,13 +2948,13 @@ declare namespace IPayments {
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";
@@ -2966,13 +2962,13 @@ declare namespace IPayments {
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
@@ -3023,7 +3019,7 @@ declare namespace IPayments {
* * `requestNoChallenge`
* * `requestChallenge`
* * `requestChallengeAsMandate`
- *
+ *
*/
challengeIndicator?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate";
/**
@@ -3171,7 +3167,7 @@ declare namespace IPayments {
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";
@@ -3185,7 +3181,7 @@ declare namespace IPayments {
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";
diff --git a/src/typings/payouts.ts b/src/typings/payouts.ts
index 3cd0551..bd12f99 100644
--- a/src/typings/payouts.ts
+++ b/src/typings/payouts.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Payouts: v52
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -155,10 +151,10 @@ declare namespace IPayouts {
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**
+ * * **lowValue**
+ * * **secureCorporate**
+ * * **trustedBeneficiary**
+ * * **transactionRiskAnalysis**
*/
scaExemption?: string;
}
@@ -295,7 +291,7 @@ declare namespace IPayouts {
* * J: business class
* * Y: economy class
* * W: premium economy
- *
+ *
* Limitations:
* * minLength: 1
* * maxLength: 1
@@ -305,7 +301,7 @@ declare namespace IPayouts {
* 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
@@ -321,7 +317,7 @@ declare namespace IPayouts {
*/
"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
@@ -346,7 +342,7 @@ declare namespace IPayouts {
"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
@@ -360,7 +356,7 @@ declare namespace IPayouts {
"airline.passenger.telephone_number"?: string;
/**
* Date of birth of the passenger.
- *
+ *
* Date format: `yyyy-MM-dd`
* * minLength: 10
* * maxLength: 10
@@ -463,7 +459,7 @@ declare namespace IPayouts {
"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
@@ -507,7 +503,7 @@ declare namespace IPayouts {
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.
@@ -515,19 +511,19 @@ declare namespace IPayouts {
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;
@@ -537,7 +533,7 @@ declare namespace IPayouts {
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.
@@ -547,7 +543,7 @@ declare namespace IPayouts {
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.
@@ -564,7 +560,7 @@ declare namespace IPayouts {
"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.
@@ -572,21 +568,21 @@ declare namespace IPayouts {
"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.
@@ -594,20 +590,20 @@ declare namespace IPayouts {
"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.
*/
@@ -615,7 +611,7 @@ declare namespace IPayouts {
/**
* Order date.
* * Format: `ddMMyy`
- *
+ *
* Encoding: ASCII.
* Max length: 6 characters.
*/
@@ -657,7 +653,7 @@ declare namespace IPayouts {
"enhancedSchemeData.itemDetailLine[itemNr].unitPrice"?: number;
/**
* Discount amount, in minor units.
- *
+ *
* For example, 2000 means USD 20.00.
* Max length: 12 characters.
*/
@@ -748,7 +744,7 @@ declare namespace IPayouts {
"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
@@ -782,19 +778,19 @@ declare namespace IPayouts {
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;
@@ -808,7 +804,7 @@ declare namespace IPayouts {
"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;
@@ -818,7 +814,7 @@ declare namespace IPayouts {
"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;
@@ -832,7 +828,7 @@ declare namespace IPayouts {
"openinvoicedata.line[itemNr].numberOfItems"?: number;
/**
* Required for AfterPay. The country-specific VAT category a product falls under.
- *
+ *
* Allowed values:
* * High
* * Low
@@ -966,7 +962,7 @@ declare namespace IPayouts {
"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;
@@ -1148,7 +1144,7 @@ declare namespace IPayouts {
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
@@ -1202,7 +1198,7 @@ declare namespace IPayouts {
bic?: string;
/**
* Country code where the bank is located.
- *
+ *
* A valid value is an ISO two-character country code (e.g. 'NL').
*/
countryCode?: string;
@@ -1459,7 +1455,7 @@ declare namespace IPayouts {
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
@@ -1589,12 +1585,12 @@ declare namespace IPayouts {
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`.
+ * 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.
*/
additionalData?: IPayouts.AdditionalDataCommon | IPayouts.AdditionalDataModifications | IPayouts.AdditionalData3DSecure | IPayouts.AdditionalDataAirline | IPayouts.AdditionalDataCarRental | IPayouts.AdditionalDataLevel23 | IPayouts.AdditionalDataLodging | IPayouts.AdditionalDataOpenInvoice | IPayouts.AdditionalDataRatepay | IPayouts.AdditionalDataRetry | IPayouts.AdditionalDataRisk | IPayouts.AdditionalDataRiskStandalone | IPayouts.AdditionalDataTemporaryServices | IPayouts.AdditionalDataWallets;
@@ -1632,7 +1628,7 @@ declare namespace IPayouts {
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
@@ -1646,9 +1642,9 @@ declare namespace IPayouts {
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
@@ -1730,7 +1726,7 @@ declare namespace IPayouts {
* * `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";
/**
@@ -1741,7 +1737,7 @@ declare namespace IPayouts {
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.
@@ -1768,7 +1764,7 @@ declare namespace IPayouts {
/**
* 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).
@@ -1863,25 +1859,25 @@ declare namespace IPayouts {
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.
@@ -1964,7 +1960,7 @@ declare namespace IPayouts {
export interface Split {
/**
* The account to which this split applies.
- *
+ *
* >Required if the type is `MarketPlace`.
*/
account?: string;
@@ -1978,13 +1974,13 @@ declare namespace IPayouts {
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";
@@ -1992,13 +1988,13 @@ declare namespace IPayouts {
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
@@ -2048,13 +2044,13 @@ declare namespace IPayouts {
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;
@@ -2064,7 +2060,7 @@ declare namespace IPayouts {
reference: string;
/**
* The name of the brand to make a payout to.
- *
+ *
* For Paysafecard it must be set to `paysafecard`.
*/
selectedBrand?: string;
@@ -2074,7 +2070,7 @@ declare namespace IPayouts {
shopperEmail: string;
/**
* The shopper's name.
- *
+ *
* When the `entityType` is `Company`, the `shopperName.lastName` must contain the company name.
*/
shopperName?: IPayouts.Name;
@@ -2111,7 +2107,7 @@ declare namespace IPayouts {
refusalReason?: string;
/**
* The response:
- *
+ *
* * In case of success is payout-submit-received.
* * In case of an error, an informational message is returned.
*/
@@ -2158,19 +2154,19 @@ declare namespace IPayouts {
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;
@@ -2180,7 +2176,7 @@ declare namespace IPayouts {
shopperEmail: string;
/**
* The shopper's name.
- *
+ *
* When the `entityType` is `Company`, the `shopperName.lastName` must contain the company name.
*/
shopperName?: IPayouts.Name;
@@ -2229,16 +2225,16 @@ declare namespace IPayouts {
/**
* 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 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
@@ -2255,15 +2251,15 @@ declare namespace IPayouts {
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;
@@ -2273,7 +2269,7 @@ declare namespace IPayouts {
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;
@@ -2283,9 +2279,9 @@ declare namespace IPayouts {
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;
@@ -2343,7 +2339,7 @@ declare namespace IPayouts {
* * `requestNoChallenge`
* * `requestChallenge`
* * `requestChallengeAsMandate`
- *
+ *
*/
challengeIndicator?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate";
/**
@@ -2433,7 +2429,7 @@ declare namespace IPayouts {
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";
@@ -2447,7 +2443,7 @@ declare namespace IPayouts {
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";
diff --git a/src/typings/platformsAccount.ts b/src/typings/platformsAccount.ts
index d7d3301..8f7fff5 100644
--- a/src/typings/platformsAccount.ts
+++ b/src/typings/platformsAccount.ts
@@ -12,12 +12,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Platforms Account: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/platformsFund.ts b/src/typings/platformsFund.ts
index bbba651..da1bef3 100644
--- a/src/typings/platformsFund.ts
+++ b/src/typings/platformsFund.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Platforms Fund: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
-
+
declare namespace IPlatformsFund {
export interface AccountDetailBalance {
@@ -134,7 +130,7 @@ declare namespace IPlatformsFund {
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
@@ -149,7 +145,7 @@ declare namespace IPlatformsFund {
* 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;
@@ -164,13 +160,13 @@ declare namespace IPlatformsFund {
/**
* 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;
/**
@@ -180,19 +176,19 @@ declare namespace IPlatformsFund {
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;
@@ -206,28 +202,28 @@ declare namespace IPlatformsFund {
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;
@@ -239,13 +235,13 @@ declare namespace IPlatformsFund {
/**
* 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;
/**
@@ -261,7 +257,7 @@ declare namespace IPlatformsFund {
/**
* 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;
@@ -286,14 +282,14 @@ declare namespace IPlatformsFund {
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;
diff --git a/src/typings/platformsHostedOnboardingPage.ts b/src/typings/platformsHostedOnboardingPage.ts
index f504ec8..bfb5106 100644
--- a/src/typings/platformsHostedOnboardingPage.ts
+++ b/src/typings/platformsHostedOnboardingPage.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Platforms Hosted Onboarding Page: v1
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
-
+
declare namespace IPlatformsHostedOnboardingPage {
export interface ErrorFieldType {
diff --git a/src/typings/platformsNotificationConfiguration.ts b/src/typings/platformsNotificationConfiguration.ts
index 6af6017..2879253 100644
--- a/src/typings/platformsNotificationConfiguration.ts
+++ b/src/typings/platformsNotificationConfiguration.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Platforms Notification Configuration: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
-
+
declare namespace IPlatformsNotificationConfiguration {
export interface CreateNotificationConfigurationRequest {
@@ -145,9 +141,9 @@ declare namespace IPlatformsNotificationConfiguration {
eventConfigs: IPlatformsNotificationConfiguration.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;
diff --git a/src/typings/platformsNotifications.ts b/src/typings/platformsNotifications.ts
index 772ed71..77d7488 100644
--- a/src/typings/platformsNotifications.ts
+++ b/src/typings/platformsNotifications.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Platforms Notifications: v5
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
-
+
declare namespace IPlatformsNotifications {
export interface AccountCloseNotification {
@@ -608,7 +604,7 @@ declare namespace IPlatformsNotifications {
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
@@ -623,7 +619,7 @@ declare namespace IPlatformsNotifications {
* 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;
@@ -638,13 +634,13 @@ declare namespace IPlatformsNotifications {
/**
* 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;
/**
@@ -654,19 +650,19 @@ declare namespace IPlatformsNotifications {
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;
@@ -680,28 +676,28 @@ declare namespace IPlatformsNotifications {
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;
@@ -713,13 +709,13 @@ declare namespace IPlatformsNotifications {
/**
* 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;
/**
@@ -735,7 +731,7 @@ declare namespace IPlatformsNotifications {
/**
* 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;
@@ -760,14 +756,14 @@ declare namespace IPlatformsNotifications {
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;
@@ -1501,13 +1497,13 @@ declare namespace IPlatformsNotifications {
/**
* 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;
/**
diff --git a/src/typings/recurring.ts b/src/typings/recurring.ts
index ac3ca15..b9d175d 100644
--- a/src/typings/recurring.ts
+++ b/src/typings/recurring.ts
@@ -12,16 +12,12 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Version of Recurring: v49
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 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 {
@@ -76,7 +72,7 @@ declare namespace IRecurring {
bic?: string;
/**
* Country code where the bank is located.
- *
+ *
* A valid value is an ISO two-character country code (e.g. 'NL').
*/
countryCode?: string;
@@ -150,7 +146,7 @@ declare namespace IRecurring {
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
@@ -163,13 +159,13 @@ declare namespace IRecurring {
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;
@@ -236,20 +232,20 @@ declare namespace IRecurring {
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;
@@ -309,7 +305,7 @@ declare namespace IRecurring {
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.
*/
@@ -345,7 +341,7 @@ declare namespace IRecurring {
};
/**
* A container for credit card data.
- *
+ *
* Optional if `shopperReference` and `selectedRecurringDetailReference` are provided.
*/
card?: IRecurring.Card;
@@ -359,13 +355,13 @@ declare namespace IRecurring {
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;
diff --git a/src/typings/requestOptions.ts b/src/typings/requestOptions.ts
index 3bd4dfd..d409fcc 100644
--- a/src/typings/requestOptions.ts
+++ b/src/typings/requestOptions.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/typings/terminal.ts b/src/typings/terminal.ts
index f995295..33607a1 100644
--- a/src/typings/terminal.ts
+++ b/src/typings/terminal.ts
@@ -11,10 +11,8 @@
* ######
* #############
* ############
- *
* Adyen NodeJS API Library
- *
- * Copyright (c) 2019 Adyen B.V.
+ * Copyright (c) 2020 Adyen B.V.
* This file is open source and available under the MIT license.
* See the LICENSE file for more info.
*/
diff --git a/src/utils/hmacValidator.ts b/src/utils/hmacValidator.ts
index 2399ceb..ae7206b 100644
--- a/src/utils/hmacValidator.ts
+++ b/src/utils/hmacValidator.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
import {createHmac} from "crypto";
import {NotificationRequestItem} from "../typings/notification/models";
import {ApiConstants} from "../constants/apiConstants";
diff --git a/src/utils/index.ts b/src/utils/index.ts
index b721982..6b462fe 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1 +1,20 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
export { default as hmacValidator } from "./hmacValidator";
\ No newline at end of file
diff --git a/src/utils/mergeDeep.ts b/src/utils/mergeDeep.ts
index 3451d58..a3209e7 100644
--- a/src/utils/mergeDeep.ts
+++ b/src/utils/mergeDeep.ts
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
// 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
diff --git a/webpack.config.js b/webpack.config.js
index 4282589..3f8df15 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,3 +1,22 @@
+/*
+ * ######
+ * ######
+ * ############ ####( ###### #####. ###### ############ ############
+ * ############# #####( ###### #####. ###### ############# #############
+ * ###### #####( ###### #####. ###### ##### ###### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
+ * ###### ###### #####( ###### #####. ###### ##### ##### ######
+ * ############# ############# ############# ############# ##### ######
+ * ############ ############ ############# ############ ##### ######
+ * ######
+ * #############
+ * ############
+ * Adyen NodeJS API Library
+ * Copyright (c) 2020 Adyen B.V.
+ * This file is open source and available under the MIT license.
+ * See the LICENSE file for more info.
+ */
+
const path = require("path");
module.exports = {