/**
 * OpenAPI Petstore
 * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
 *
 * OpenAPI spec version: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QVariantMap>
#include <QDebug>

#include "OAIStoreApiHandler.h"
#include "OAIStoreApiRequest.h"

namespace OpenAPI {

OAIStoreApiHandler::OAIStoreApiHandler(){

}

OAIStoreApiHandler::~OAIStoreApiHandler(){

}

void OAIStoreApiHandler::deleteOrder(QString order_id) {
    Q_UNUSED(order_id);
    auto reqObj = qobject_cast<OAIStoreApiRequest*>(sender());
    if( reqObj != nullptr ) 
    { 
        
        reqObj->deleteOrderResponse();
    }    
}
void OAIStoreApiHandler::getInventory() {
    auto reqObj = qobject_cast<OAIStoreApiRequest*>(sender());
    if( reqObj != nullptr ) 
    { 
        QMap<QString, qint32> res;
        reqObj->getInventoryResponse(res);
    }    
}
void OAIStoreApiHandler::getOrderById(qint64 order_id) {
    Q_UNUSED(order_id);
    auto reqObj = qobject_cast<OAIStoreApiRequest*>(sender());
    if( reqObj != nullptr ) 
    { 
        OAIOrder res;
        reqObj->getOrderByIdResponse(res);
    }    
}
void OAIStoreApiHandler::placeOrder(OAIOrder body) {
    Q_UNUSED(body);
    auto reqObj = qobject_cast<OAIStoreApiRequest*>(sender());
    if( reqObj != nullptr ) 
    { 
        OAIOrder res;
        reqObj->placeOrderResponse(res);
    }    
}


}
