package com.ypsx.yppos.http.data.request

import com.ypsx.yppos.http.data.bean.*

data class InsertOrderRequest(
    var activitys: List<OrderActivityResponse>? = null,
    var coupon: CouponInfoResponse?=null,

    var createTime: String,
    var creatorId: String,
    var creatorName: String,


    var einvoiceQrcodeUrl: String? = null,
    var memberId: String? = null,
    var mobile: String? = null,
    var orderNo: String,

    var posId: String,
    var storeId: String,
    var status: String,
    var roundPrice: Double = 0.0,//舍分金额
    var remark: String? = null,
    var products: List<InsertOrderProductDTO>,


    //订单应该支付的金额，等于商品行的成交价*数量
    var totalAmount: Double,
    //商品行特价优惠总金额(不算调订单级优惠)
    var promotionOnSaleTotal: Double,
//订单级满减优惠金额
    var discountTotal: Double,
    // 订单实际支付的金额=totalAmount-discountTotal
    var payAmount: Double,
//找零金额
    var changeAmount: Double = 0.0,//找零金额
    var payments: List<OrderPayment>? =null



)
