// Path: src/main/java/cc/bitbank/entity/enums/OrderType.java
// @JsonDeserialize(using = OrderTypeDeserializer.class)
// public enum OrderType {
//     LIMIT("limit"),
//     MARKET("market"),
//     STOP("stop"),
//     STOP_LIMIT("stop_limit");
// 
//     private final String type;
// 
//     OrderType(final String type) {
//         this.type = type;
//     }
// 
//     public String getCode() {
//         return this.type;
//     }
// }


import cc.bitbank.entity.enums.OrderType;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
package cc.bitbank.deserializer;



/**
 * Created by tanaka on 2017/04/12.
 */
public class OrderTypeDeserializer extends JsonDeserializer<Object> {
    @Override
// Path: src/main/java/cc/bitbank/entity/enums/OrderType.java
// @JsonDeserialize(using = OrderTypeDeserializer.class)
// public enum OrderType {
//     LIMIT("limit"),
//     MARKET("market"),
//     STOP("stop"),
//     STOP_LIMIT("stop_limit");
// 
//     private final String type;
// 
//     OrderType(final String type) {
//         this.type = type;
//     }
// 
//     public String getCode() {
//         return this.type;
//     }
// }


// Path: src/main/java/cc/bitbank/deserializer/OrderTypeDeserializer.java
import cc.bitbank.entity.enums.OrderType;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;

package cc.bitbank.deserializer;



/**
 * Created by tanaka on 2017/04/12.
 */
public class OrderTypeDeserializer extends JsonDeserializer<Object> {
    @Override
    public OrderType deserialize(JsonParser jp, DeserializationContext dc) throws IOException {