/**
 * 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.
 */

package io.swagger.client.model
import play.api.libs.json._
import java.time.OffsetDateTime

case class Order (
                  id: Option[Long],
                  petId: Option[Long],
                  quantity: Option[Int],
                  shipDate: Option[OffsetDateTime],
                  status:  Option[OrderStatusEnum.OrderStatusEnum],
                  complete: Option[Boolean]
)

object Order {
implicit val format: Format[Order] = Json.format
}

object OrderStatusEnum extends Enumeration {
  val   placed, approved, delivered = Value
  type OrderStatusEnum = Value
  implicit val format: Format[Value] = Format(Reads.enumNameReads(this), Writes.enumNameWrites[OrderStatusEnum.type])
}
