diff --git a/pom.xml b/pom.xml index 021de8e..f837676 100644 --- a/pom.xml +++ b/pom.xml @@ -11,17 +11,16 @@ UTF-8 11 - 3.8.1 - 1.8.5 - 1.6.2 - 4.12.0 - 2.8.9 - 3.18.0 + 3.16.0 + 1.9.0 + 1.6.16 + 5.5.0 + 2.14.0 + 3.20.0 1.3.2 - 5.10.3 + 5.14.4 3.0.2 - 2.0.45 - 7.7.0 + 7.25.0 ch.datatrans @@ -75,6 +74,12 @@ ${junit-version} test + + org.junit.jupiter + junit-jupiter-engine + ${junit-version} + test + @@ -99,7 +104,7 @@ - ${project.basedir}/src/main/resources/datatrans-openapi-specification-${datatrans-json-api.version}.json + ${project.basedir}/src/main/resources/openapi.json java @@ -129,6 +134,25 @@ + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.1 + + + add-generated-sources + generate-sources + + add-source + + + + ${project.build.directory}/generated-sources/openapi/src/main/java + + + + + diff --git a/src/main/resources/datatrans-openapi-specification-2.0.45.json b/src/main/resources/datatrans-openapi-specification-2.0.45.json deleted file mode 100644 index 5b50d70..0000000 --- a/src/main/resources/datatrans-openapi-specification-2.0.45.json +++ /dev/null @@ -1,11132 +0,0 @@ -{ - "openapi": "3.0.1", - "info": { - "title": "Datatrans API Reference", - "description": "Welcome to the Datatrans API reference.\nThis document is meant to be used in combination with https://docs.datatrans.ch.\nAll the parameters used in the curl and web samples are described here.\nReach out to support@datatrans.ch if something is missing or unclear.\n\nLast updated: 10.07.24 - 12:13 UTC\n\n# Payment Process\nThe following steps describe how transactions are processed with Datatrans.\nWe separate payments in three categories: Customer-initiated payments, merchant-initiated payments and after the payment.\n\n## Customer Initiated Payments\nWe have three integrations available: [Redirect](https://docs.datatrans.ch/docs/redirect-lightbox),\n[Lightbox](https://docs.datatrans.ch/docs/redirect-lightbox) and [Secure Fields](https://docs.datatrans.ch/docs/secure-fields).\n\n### Redirect & Lightbox\n- Send the required parameters to initialize a `transactionId` to the [init](#operation/init) endpoint.\n- Let the customer proceed with the payment by redirecting them to the correct link - or showing them your payment form.\n - Redirect: Redirect the browser to the following URL structure\n ```\n https://pay.sandbox.datatrans.com/v1/start/transactionId\n ```\n - Lightbox: Load the JavaScript library and initialize the payment form:\n ```js\n