Skip to content

Commit

Permalink
PISHPS-282: renamed directory, refactored credit-card openapi v3 docu…
Browse files Browse the repository at this point in the history
…mentation (#765)

* PISHPS-282: added openapi v3 documentation for store-api and admin-api

* PISHPS-282: removed /api/ and /store-api from routes, documented credit-card endpoints and renamed directory

* PISHPS-282: removed duplicated openapi v3 json files
  • Loading branch information
m-muxfeld-diw authored Jun 25, 2024
1 parent 286b1bb commit 68dc57e
Show file tree
Hide file tree
Showing 43 changed files with 321 additions and 371 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/support/request": {
"/_action/mollie/support/request": {
"post": {
"summary": "Submit Support Request to Mollie",
"description": "Submits a support request to Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/order/payment-url": {
"/_action/mollie/order/payment-url": {
"post": {
"summary": "Generate Mollie Order Payment URL",
"description": "Creates a payment URL for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/payment-method/update-methods": {
"/_action/mollie/payment-method/update-methods": {
"get": {
"summary": "Update Mollie Payment Methods",
"description": "Updates the payment methods for Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/refund/list": {
"/_action/mollie/refund/list": {
"post": {
"summary": "List Refund Items for Mollie Order",
"description": "Retrieves a list of refund items for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/refund-manager/data": {
"/_action/mollie/refund-manager/data": {
"post": {
"summary": "Get Refund Manager Data",
"description": "Retrieves refund manager data for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/mollie/refund/order": {
"/mollie/refund/order": {
"post": {
"summary": "Process Refund for Mollie Order",
"description": "Processes a refund for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/refund": {
"/_action/mollie/refund": {
"post": {
"summary": "Process Refund for Mollie Order",
"description": "Processes a refund for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/refund/total": {
"/_action/mollie/refund/total": {
"post": {
"summary": "Get Total Refund Information",
"description": "Retrieves the total refund information for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/mollie/ship/order": {
"/mollie/ship/order": {
"post": {
"summary": "Ship Order via Mollie",
"description": "Ships an order via Mollie with tracking information.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/ship/status": {
"/_action/mollie/ship/status": {
"post": {
"summary": "Retrieve Mollie Order Shipping Status",
"description": "Retrieves the shipping status for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/ship/total": {
"/_action/mollie/ship/total": {
"post": {
"summary": "Retrieve Total Shipping Information",
"description": "Retrieves the total shipping information for a Mollie order.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/subscriptions/cancel": {
"/_action/mollie/subscriptions/cancel": {
"post": {
"summary": "Cancel Mollie Subscription",
"description": "Cancels a subscription in Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/subscriptions/pause": {
"/_action/mollie/subscriptions/pause": {
"post": {
"summary": "Pause Mollie Subscription",
"description": "Pauses a subscription in Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/subscriptions/resume": {
"/_action/mollie/subscriptions/resume": {
"post": {
"summary": "Resume Mollie Subscription",
"description": "Resumes a paused subscription in Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/_action/mollie/subscriptions/skip": {
"/_action/mollie/subscriptions/skip": {
"post": {
"summary": "Skip Mollie Subscription",
"description": "Skips the next scheduled payment for a subscription in Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/mollie/webhook/subscription/{swSubscriptionId}/mandate/update": {
"/mollie/webhook/subscription/{swSubscriptionId}/mandate/update": {
"get": {
"summary": "Handle Mollie Subscription Mandate Update Webhook Notification (GET)",
"operationId": "handleMollieSubscriptionMandateUpdateWebhookGet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/mollie/webhook/subscription/{swSubscriptionId}": {
"/mollie/webhook/subscription/{swSubscriptionId}": {
"get": {
"summary": "Handle Mollie Subscription Webhook Notification (GET)",
"operationId": "handleMollieSubscriptionWebhookGet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/mollie/webhook/subscription/{swSubscriptionId}/renew": {
"/mollie/webhook/subscription/{swSubscriptionId}/renew": {
"get": {
"summary": "Handle Mollie Subscription Renewal Webhook Notification (GET)",
"operationId": "handleMollieSubscriptionRenewalWebhookGet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/api/mollie/webhook/{swTransactionId}": {
"/mollie/webhook/{swTransactionId}": {
"post": {
"summary": "Handle Mollie Webhook Notification",
"description": "Handles incoming webhook notifications from Mollie.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/add-product": {
"/mollie/applepay/add-product": {
"post": {
"summary": "Add Product for Apple Pay",
"operationId": "addProductForApplePay",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/validate/createPaymentSession": {
"/mollie/applepay/validate/createPaymentSession": {
"post": {
"summary": "Validate and Create Apple Pay Payment Session",
"operationId": "validateAndCreateApplePayPaymentSession",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/enabled": {
"/mollie/applepay/enabled": {
"get": {
"summary": "Check Apple Pay Integration Enabled Status",
"operationId": "checkApplePayEnabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/id": {
"/mollie/applepay/id": {
"get": {
"summary": "Retrieve Apple Pay ID",
"operationId": "retrieveApplePayId",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/shipping-methods": {
"/mollie/applepay/shipping-methods": {
"post": {
"summary": "Retrieve Apple Pay Shipping Methods",
"operationId": "retrieveApplePayShippingMethods",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/pay": {
"/mollie/applepay/pay": {
"post": {
"summary": "Initiate Apple Pay Payment",
"operationId": "initiateApplePayPayment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/restore-cart": {
"/mollie/applepay/restore-cart": {
"post": {
"summary": "Restore Apple Pay Cart",
"operationId": "restoreApplePayCart",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0.0"
},
"paths": {
"/store-api/mollie/applepay/shipping-method": {
"/mollie/applepay/shipping-method": {
"post": {
"summary": "Select Apple Pay Shipping Method",
"operationId": "selectApplePayShippingMethod",
Expand Down
109 changes: 109 additions & 0 deletions src/Resources/Schema/StoreApi/credit-card-get-mandates.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"openapi": "3.0.3",
"info": {
"title": "Mollie API",
"description": "API for Mollie payment integration.",
"version": "1.0.0"
},
"paths": {
"/mollie/mandates/{customerId}": {
"get": {
"summary": "Get Customer Mandates",
"description": "Retrieves a list of mandates for the specified customer.",
"operationId": "getCustomerMandates",
"parameters": [
{
"name": "customerId",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "The ID of the customer whose mandates are being retrieved."
}
],
"responses": {
"200": {
"description": "A list of customer mandates.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/mandate"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"CreditCardDetailStruct": {
"type": "object",
"properties": {
"cardNumber": {
"type": "string"
},
"expiryDate": {
"type": "string"
}
}
},
"mandate": {
"type": "object",
"properties": {
"resource": {
"type": "string",
"nullable": true
},
"id": {
"type": "string",
"nullable": true
},
"mode": {
"type": "string",
"nullable": true
},
"status": {
"type": "string",
"nullable": true
},
"method": {
"type": "string",
"nullable": true
},
"details": {
"$ref": "#/components/schemas/CreditCardDetailStruct"
},
"customerId": {
"type": "string",
"nullable": true
},
"mandateReference": {
"type": "string",
"nullable": true
},
"signatureDate": {
"type": "string",
"nullable": true
},
"createdAt": {
"type": "string",
"nullable": true
},
"beingUsedForSubscription": {
"type": "boolean"
}
},
"required": [
"details",
"beingUsedForSubscription"
]
}
}
}
}
Loading

0 comments on commit 68dc57e

Please sign in to comment.