/* * StoreApi.h * * */ #ifndef StoreApi_H_ #define StoreApi_H_ #include "ApiClient.h" #include #include #include "Order.h" namespace io { namespace swagger { namespace client { namespace api { using namespace io::swagger::client::model; class StoreApi { public: StoreApi( std::shared_ptr apiClient ); virtual ~StoreApi(); /// /// Delete purchase order by ID /// /// /// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors /// /// ID of the order that needs to be deleted pplx::task deleteOrder(utility::string_t orderId); /// /// Returns pet inventories by status /// /// /// Returns a map of status codes to quantities /// pplx::task> getInventory(); /// /// Find purchase order by ID /// /// /// For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions /// /// ID of pet that needs to be fetched pplx::task> getOrderById(int64_t orderId); /// /// Place an order for a pet /// /// /// /// /// order placed for purchasing the pet pplx::task> placeOrder(std::shared_ptr body); protected: std::shared_ptr m_ApiClient; }; } } } } #endif /* StoreApi_H_ */