package com.pizza.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pizza.jackson.OrderStatusJacksonDeSerializer;
import com.pizza.jackson.OrderStatusJacksonSerializer;

@JsonSerialize(using = OrderStatusJacksonSerializer.class)
@JsonDeserialize(using = OrderStatusJacksonDeSerializer.class)
public enum OrderStatus {

	OPEN("Open"),
	SUBMITTED("Submitted"),
	CLOSED("Closed")
	;
	
	private final String pretty;
	
	private OrderStatus(String pretty) {
		this.pretty = pretty;
	}
	
	public String getPretty() {
		return pretty;
	}

}

@@ -431,45 +431,45 @@
 ),%0A%09
-SUBMITTED(%22Submitted%22),%0A%09CLOSED(%22Clos
+ORDERED(%22Ordered%22),%0A%09RECEIVED(%22Receiv
 ed%22)

change order statuses