{
  "openapi": "3.0.3",
  "info": {
    "title": "POS Payment Status Endpoint",
    "description": "Endpoint to check the status of a POS payment.",
    "version": "1.0.0"
  },
  "paths": {
    "/mollie/pos/{orderId}/{molliePaymentId}/status": {
      "get": {
        "tags": [
          "Mollie",
          "POS"
        ],
        "summary": "Check POS Payment Status",
        "operationId": "checkPosPaymentStatus",
        "parameters": [
          {
            "name": "orderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The ID of the order."
          },
          {
            "name": "molliePaymentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The ID of the Mollie payment."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the POS payment status.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ready": {
                      "type": "boolean",
                      "description": "Indicates if the payment is ready."
                    },
                    "redirectUrl": {
                      "type": "string",
                      "description": "URL to redirect to after the payment is ready."
                    },
                    "success": {
                      "type": "boolean",
                      "description": "Indicates if the payment was successful."
                    }
                  },
                  "required": ["ready", "redirectUrl", "success"]
                },
                "example": {
                  "ready": true,
                  "redirectUrl": "https://example.com/redirect",
                  "success": true
                }
              }
            }
          }
        }
      }
    }
  }
}
