--[[
  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
  
  Generated by: https://openapi-generator.tech
]]

-- order class
local order = {}
local order_mt = {
	__name = "order";
	__index = order;
}

local function cast_order(t)
	return setmetatable(t, order_mt)
end

local function new_order(id, pet_id, quantity, ship_date, status, complete)
	return cast_order({
		["id"] = id;
		["petId"] = pet_id;
		["quantity"] = quantity;
		["shipDate"] = ship_date;
		["status"] = status;
		["complete"] = complete;
	})
end

return {
	cast = cast_order;
	new = new_order;
}
