// Path: src/main/java/cc/bitbank/entity/enums/OrderSide.java
// @JsonDeserialize(using = OrderSideDeserializer.class)
// public enum OrderSide {
//     BUY("buy"),
//     SELL("sell");
// 
//     private final String side;
// 
//     OrderSide(final String side) {
//         this.side = side;
//     }
// 
//     public String getCode() {
//         return this.side;
//     }
// }
// 
// 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.OrderSide;
import cc.bitbank.entity.enums.OrderType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
package cc.bitbank.entity;



/**
 * Created by tanaka on 2017/04/12.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Order extends Data {
    @JsonProperty("order_id")
    public long orderId;
    public String pair;
    public OrderSide side;
// Path: src/main/java/cc/bitbank/entity/enums/OrderSide.java
// @JsonDeserialize(using = OrderSideDeserializer.class)
// public enum OrderSide {
//     BUY("buy"),
//     SELL("sell");
// 
//     private final String side;
// 
//     OrderSide(final String side) {
//         this.side = side;
//     }
// 
//     public String getCode() {
//         return this.side;
//     }
// }
// 
// 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/entity/Order.java
import cc.bitbank.entity.enums.OrderSide;
import cc.bitbank.entity.enums.OrderType;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;

package cc.bitbank.entity;



/**
 * Created by tanaka on 2017/04/12.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Order extends Data {
    @JsonProperty("order_id")
    public long orderId;
    public String pair;
    public OrderSide side;
    public OrderType type;