From 159513ec65ea6921a95af9f05be870bb790822e1 Mon Sep 17 00:00:00 2001 From: Christian Dangl Date: Mon, 16 Oct 2023 09:26:27 +0200 Subject: [PATCH] NTR: add missing mandate routes to swagger docs --- tests/Swagger/mollie-headless.yaml | 58 ++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/tests/Swagger/mollie-headless.yaml b/tests/Swagger/mollie-headless.yaml index 6f6fdbd1a..3b36ae125 100644 --- a/tests/Swagger/mollie-headless.yaml +++ b/tests/Swagger/mollie-headless.yaml @@ -163,6 +163,26 @@ paths: "200": description: "successful operation" + /store-api/mollie/creditcard/store-mandate-id/{customerId}/{mandateId}: + post: + tags: + - "Credit Card" + summary: "Save the mandate id that should be used for the upcoming credit card payment." + security: + - AccessKey: [ ] + - AccessToken: [ ] + parameters: + - name: "customerId" + in: "path" + description: "Shopware Customer ID" + required: true + - name: "mandateId" + in: "path" + description: "Mandate ID from the Mollie that should be used for the payment." + required: true + responses: + "200": + description: "successful operation" /store-api/mollie/ideal/issuers: get: @@ -599,6 +619,44 @@ paths: "200": description: "successful operation" + /store-api/mollie/mandates/{customerId}: + get: + tags: + - "Mandates" + summary: "Gets all available mandates of the provided customer" + security: + - AccessKey: [ ] + - AccessToken: [ ] + parameters: + - name: "customerId" + in: "path" + description: "Shopware Customer ID" + required: true + responses: + "200": + description: "successful operation" + + /store-api/mollie/mandate/revoke/{customerId}/{mandateId}: + post: + tags: + - "Mandates" + summary: "Revokes and deletes the saved card with the provided mandate ID inside Mollie" + security: + - AccessKey: [ ] + - AccessToken: [ ] + parameters: + - name: "customerId" + in: "path" + description: "Shopware Customer ID" + required: true + - name: "mandateId" + in: "path" + description: "Mandate ID from the Mollie that should be removed." + required: true + responses: + "200": + description: "successful operation" + /api/mollie/webhook/{transactionId}: post: tags: