mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 03:46:09 +00:00
[C++] [Client] Added cpp-oatpp-client (#21711)
* Added cpp-oatpp-client. * Updated pipelines. * Should match formatting now. * Moved includes around. * Ran doc generator.
This commit is contained in:
59
samples/client/petstore/cpp-oatpp/model/Order.hpp
Normal file
59
samples/client/petstore/cpp-oatpp/model/Order.hpp
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* The version of the OpenAPI document: 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.
|
||||
*/
|
||||
/*
|
||||
* Order.h
|
||||
*
|
||||
* An order for a pets from the pet store
|
||||
*/
|
||||
|
||||
#ifndef Order_H_
|
||||
#define Order_H_
|
||||
|
||||
|
||||
#include "oatpp/core/macro/codegen.hpp"
|
||||
#include "oatpp/core/Types.hpp"
|
||||
|
||||
namespace org::openapitools::client::model
|
||||
{
|
||||
|
||||
/* Begin DTO code-generation */
|
||||
#include OATPP_CODEGEN_BEGIN(DTO)
|
||||
|
||||
/**
|
||||
* Message Data-Transfer-Object
|
||||
*/
|
||||
class Order : public oatpp::DTO {
|
||||
|
||||
DTO_INIT(Order, DTO /* Extends */)
|
||||
|
||||
DTO_FIELD(oatpp::Int64, id);
|
||||
DTO_FIELD(oatpp::Boolean, idIsSet);
|
||||
DTO_FIELD(oatpp::Int64, petId);
|
||||
DTO_FIELD(oatpp::Boolean, petIdIsSet);
|
||||
DTO_FIELD(oatpp::Int32, quantity);
|
||||
DTO_FIELD(oatpp::Boolean, quantityIsSet);
|
||||
DTO_FIELD(oatpp::String, shipDate);
|
||||
DTO_FIELD(oatpp::Boolean, shipDateIsSet);
|
||||
DTO_FIELD(oatpp::String, status);
|
||||
DTO_FIELD(oatpp::Boolean, statusIsSet);
|
||||
DTO_FIELD(oatpp::Boolean, complete);
|
||||
DTO_FIELD(oatpp::Boolean, completeIsSet);
|
||||
|
||||
};
|
||||
|
||||
/* End DTO code-generation */
|
||||
#include OATPP_CODEGEN_END(DTO)
|
||||
|
||||
|
||||
} // namespace org::openapitools::client::model
|
||||
|
||||
#endif /* Order_H_ */
|
||||
Reference in New Issue
Block a user