package com.yonge.cooleshow.tenant.vo;

import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单详情表
 * 2022-12-20 19:09:34
 */
@ApiModel(value = "UserPaymentOrderDetailVo对象", description = "订单详情表查询视图对象")
public class UserPaymentOrderDetailVo {

    @Data
    @ApiModel(" UserPaymentOrderDetail-订单详情表")
    public static class UserPaymentOrderDetail {

		@ApiModelProperty("主键ID")
        private Long id;

		@ApiModelProperty("支付订单ID")
        private Long userPaymentOrderId;

		@ApiModelProperty("订单号")
        private String orderNo;

		@ApiModelProperty("商品类型:  VIP、开通会员 ")
        private String goodsType;

		@ApiModelProperty("商品名称")
        private String goodsName;

		@ApiModelProperty("商品图片")
        private String goodsUrl;

        @ApiModelProperty("商品Id")
        private String goodsId;

        @ApiModelProperty("商品来源")
        private String goodsSource;

		@ApiModelProperty("原价")
        private BigDecimal originalPrice;

		@ApiModelProperty("现价")
        private BigDecimal currentPrice;

		@ApiModelProperty("实付现金")
        private BigDecimal paymentCashAmount;

		@ApiModelProperty("优惠金额")
        private BigDecimal paymentCouponAmount;

		@ApiModelProperty("商品数量")
        private Integer goodsNum;

		@ApiModelProperty("更新时间")
        private Date updateTime;

		@ApiModelProperty("下单时间")
        private Date createTime;

        public String jsonString() {
            return JSON.toJSONString(this);
        }

        public static UserPaymentOrderDetail from(String json) {
            return JSON.parseObject(json, UserPaymentOrderDetail.class);
        }
    }

}
