package com.gingersoft.gsa.delivery_pick_mode.data.model.bean

import com.google.gson.annotations.SerializedName

class HistoryOrderBean(
        @SerializedName("data")
        val `data`: Data,
        @SerializedName("success")
        var success: Boolean,
        @SerializedName("sysTime")
        val sysTime: Long) {

    class Data(
            @SerializedName("count")
            val count: Int,
            @SerializedName("list")
            val list: ArrayList<OrderItem>) {

        class OrderItem(
                @SerializedName("addressDetail")
                val addressDetail: String,
                @SerializedName("createTime")
                val createTime: String,
                @SerializedName("id")
                val id: Int,
                @SerializedName("orderNo")
                val orderNo: String,
                @SerializedName("orderPayType")
                val orderPayType: Int,
                @SerializedName("payType")
                val payType: Int,
                @SerializedName("orderStatus")
                val orderStatus: Int,
                @SerializedName("orderType")
                val orderType: Int,
                @SerializedName("phone")
                val phone: String,
                @SerializedName("reasonDesc")
                val reasonDesc: String,
                @SerializedName("receiver")
                val `receiver`: String,
                @SerializedName("status")
                val status: Int, //退款状态
                @SerializedName("takeFoodCode")
                val takeFoodCode: String,
                @SerializedName("takeTime")
                val takeTime: String,
                @SerializedName("totalAmount")
                val totalAmount: Double,
                @SerializedName("trkNo")
                val trkNo: String
        )
    }
}


//class HistoryOrderBean {

//    /**
//     * success : true
//     * sysTime : 1587026350363
//     * data : [{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)15:30~16:00","PHONE":"18995813316","orderPayType":1,"ORDER_NO":"26201551325454427","STATUS":4,"PAY_AMOUNT":60,"Id":4350992,"CREATE_TIME":"Mar 27, 2020 3:23:45 PM","takeFoodCode":"0036","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)立即","PHONE":"13554770615","orderPayType":1,"ORDER_NO":"26200681304157037","STATUS":4,"PAY_AMOUNT":60,"Id":4348789,"CREATE_TIME":"Mar 27, 2020 12:27:21 PM","takeFoodCode":"0035","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)立即","PHONE":"13554770615","orderPayType":1,"ORDER_NO":"26200221368356841","STATUS":4,"PAY_AMOUNT":46,"Id":4348785,"CREATE_TIME":"Mar 27, 2020 12:27:07 PM","takeFoodCode":"0034","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:30~13:00","PHONE":"13554770615","orderPayType":1,"ORDER_NO":"26201371328853396","STATUS":4,"PAY_AMOUNT":44.9,"Id":4348780,"CREATE_TIME":"Mar 27, 2020 12:26:44 PM","takeFoodCode":"0033","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:00~12:30","PHONE":"13554770615","orderPayType":1,"ORDER_NO":"26203051303752129","STATUS":4,"PAY_AMOUNT":44.9,"Id":4348467,"CREATE_TIME":"Mar 27, 2020 11:47:59 AM","takeFoodCode":"0032","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"嘟嘟嘟1","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:00~12:30","PHONE":"15073379600","orderPayType":1,"ORDER_NO":"26201611370358516","STATUS":4,"PAY_AMOUNT":9999,"Id":4348434,"CREATE_TIME":"Mar 27, 2020 11:42:35 AM","takeFoodCode":"0031","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:00~12:30","PHONE":"13554770615","orderPayType":1,"ORDER_NO":"26201341375950995","STATUS":4,"PAY_AMOUNT":44.9,"Id":4348392,"CREATE_TIME":"Mar 27, 2020 11:35:35 AM","takeFoodCode":"0030","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"嘟嘟嘟1","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:00~12:30","PHONE":"15073379600","orderPayType":1,"ORDER_NO":"26200871312851078","STATUS":4,"PAY_AMOUNT":9999,"Id":4348287,"CREATE_TIME":"Mar 27, 2020 11:18:44 AM","takeFoodCode":"0029","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"嘟嘟嘟1","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:00~12:30","PHONE":"15073379600","orderPayType":1,"ORDER_NO":"26202231360959188","STATUS":4,"PAY_AMOUNT":9999,"Id":4348114,"CREATE_TIME":"Mar 27, 2020 10:43:53 AM","takeFoodCode":"0028","order_type":7,"RECEIVER":""},{"MEMBER_NAME":"Li","ADDRESS_DETAIL":"","takeTime":"03-27 (週五)12:00~12:30","PHONE":"13554770615","orderPayType":1,"ORDER_NO":"26200591367856595","STATUS":4,"PAY_AMOUNT":46,"Id":4347838,"CREATE_TIME":"Mar 27, 2020 9:51:13 AM","takeFoodCode":"0027","order_type":7,"RECEIVER":""},{"sumnum":1827}]
//     */
//    var success: Boolean = false
//    var sysTime: Long = 0
//    var data: ArrayList<DataBean>? = null
//
//    class DataBean {
//        /**
//         * MEMBER_NAME : Li
//         * ADDRESS_DETAIL :
//         * takeTime : 03-27 (週五)15:30~16:00
//         * PHONE : 18995813316
//         * orderPayType : 1
//         * ORDER_NO : 26201551325454427
//         * STATUS : 4
//         * PAY_AMOUNT : 60.0
//         * Id : 4350992
//         * CREATE_TIME : Mar 27, 2020 3:23:45 PM
//         * takeFoodCode : 0036
//         * order_type : 7
//         * RECEIVER :
//         * sumnum : 1827
//         */
//
//        var MEMBER_NAME: String? = null
//        var ADDRESS_DETAIL: String? = null
//        var takeTime: String? = null
//        var PHONE: String? = null
//        var orderPayType: Int = 0
//        var ORDER_NO: String? = null
//        var STATUS: Int = 0
//        var PAY_AMOUNT: Double = 0.toDouble()
//        var Id: Int = 0
//        var CREATE_TIME: String? = null
//        var takeFoodCode: String? = null
//        var order_type: Int = 0
//        var RECEIVER: String? = null
//        var sumnum: Int = 0
//    }
//}