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

class OrderDetails {

    /**
     * success : true
     * sysTime : 1585823531720
     * data : [{"Order_ID":50349,"NUMBER":1,"MEMBER_NAME":"忆逝1","PRICE":88,"discount_amount":0,"PHONE":"15728241877","ORDER_NO":"26202811401145744","Lunchbox":0,"remark":"","pid":0,"PRODUCT_NAME":[{"odsId":"1650249","PRICE":"88.0","num":"1","pid":"0","PRODUCT_NAME":"脆炸粟米蟹肉餅"}],"odsId":1650249,"addressDetail":"香港長沙灣青山道479 - 479A號麗昌工廠大廈 704 室及 802 室(接待處於 704 室蘋果迷你倉 - 荔枝角 (麗昌分店)分店","DELIVERY_CHARGE":0,"order_from":7,"sender":"","SEND_TIME":"盡快送達 18:27","PAY_AMOUNT":88,"ID":50349,"CREATE_TIME":"2020-04-02 17:57:29.0","takeFoodCode":"0","RECEIVER":"張學友 先生","TOTAL_AMOUNT":"88.0"}]
     */

    private var success: Boolean = false
    private var sysTime: Long = 0
    private var data: List<DataBean>? = null

    fun isSuccess(): Boolean {
        return success
    }

    fun setSuccess(success: Boolean) {
        this.success = success
    }

    fun getSysTime(): Long {
        return sysTime
    }

    fun setSysTime(sysTime: Long) {
        this.sysTime = sysTime
    }

    fun getData(): List<DataBean>? {
        return data
    }

    fun setData(data: List<DataBean>) {
        this.data = data
    }

    class DataBean {
        /**
         * Order_ID : 50349
         * NUMBER : 1
         * MEMBER_NAME : 忆逝1
         * PRICE : 88.0
         * discount_amount : 0.0
         * PHONE : 15728241877
         * ORDER_NO : 26202811401145744
         * Lunchbox : 0.0
         * remark :
         * pid : 0
         * PRODUCT_NAME : [{"odsId":"1650249","PRICE":"88.0","num":"1","pid":"0","PRODUCT_NAME":"脆炸粟米蟹肉餅"}]
         * odsId : 1650249
         * addressDetail : 香港長沙灣青山道479 - 479A號麗昌工廠大廈 704 室及 802 室(接待處於 704 室蘋果迷你倉 - 荔枝角 (麗昌分店)分店
         * DELIVERY_CHARGE : 0.0
         * order_from : 7
         * sender :
         * SEND_TIME : 盡快送達 18:27
         * PAY_AMOUNT : 88.0
         * ID : 50349
         * CREATE_TIME : 2020-04-02 17:57:29.0
         * takeFoodCode : 0
         * RECEIVER : 張學友 先生
         * TOTAL_AMOUNT : 88.0
         */

        var Order_ID: Int = 0
        var NUMBER: Int = 0
        var MEMBER_NAME: String? = null
        var PRICE: Double = 0.toDouble()
        var discount_amount: Double = 0.toDouble()
        var PHONE: String? = null
        var ORDER_NO: String? = null
        var Lunchbox: Double = 0.toDouble()
        var remark: String? = null
        var pid: Int = 0
        var odsId: Int = 0
        var addressDetail: String? = null
        var DELIVERY_CHARGE: Double = 0.toDouble()
        var order_from: Int = 0
        var sender: String? = null
        var SEND_TIME: String? = null
        var PAY_AMOUNT: Double = 0.toDouble()
        var ID: Int = 0
        var CREATE_TIME: String? = null
        var takeFoodCode: String? = null
        var RECEIVER: String? = null
        var TOTAL_AMOUNT: String? = null
        var PRODUCT_NAME: List<PRODUCTNAMEBean>? = null

        class PRODUCTNAMEBean {
            /**
             * odsId : 1650249
             * PRICE : 88.0
             * num : 1
             * pid : 0
             * PRODUCT_NAME : 脆炸粟米蟹肉餅
             */

            var odsId: String? = null
            var price: String? = null
            var num: String? = null
            var pid: String? = null
            var producT_NAME: String? = null
        }
    }
}