// 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;
//     }
// }


import cc.bitbank.entity.enums.OrderSide;
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.
 */
public class Transactions extends Data {

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Transaction {
        @JsonProperty("transaction_id")
        private long transactionId;

        private OrderSide side;

        private String price;

        private String amount;

        @JsonProperty("executed_at")
        private Date executedAt;

        public String toString() {
            return "[Transaction] transaction_id " + transactionId + ", side " + side + ", price " + price + ", amount " +
                    amount + ", executed_at " + executedAt;
        }

        public Long getTransactionId() {
            return transactionId;
        }

// 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/Transactions.java
import cc.bitbank.entity.enums.OrderSide;
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.
 */
public class Transactions extends Data {

    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Transaction {
        @JsonProperty("transaction_id")
        private long transactionId;

        private OrderSide side;

        private String price;

        private String amount;

        @JsonProperty("executed_at")
        private Date executedAt;

        public String toString() {
            return "[Transaction] transaction_id " + transactionId + ", side " + side + ", price " + price + ", amount " +
                    amount + ", executed_at " + executedAt;
        }

        public Long getTransactionId() {
            return transactionId;
        }

        public OrderSide getSide() {