package com.izouma.jiashanxia.dto;

import com.izouma.jiashanxia.domain.Package;
import com.izouma.jiashanxia.domain.User;
import com.izouma.jiashanxia.enums.OrderInfoStatus;
import com.izouma.jiashanxia.enums.PayMethod;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "订单")
public class OrderInfoVO {
    private Long id;

    private Long userId;

    @ApiModelProperty(value = "支付方式")
    private PayMethod payMethod;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime paidAt;

    @ApiModelProperty(value = "订单状态")
    private OrderInfoStatus status;

    @ApiModelProperty(value = "订单号")
    private String orderNumber;

    @ApiModelProperty(value = "交易单号")
    private String transactionId;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "充值套餐")
    private Long packageId;

    @ApiModelProperty(value = "价钱")
    private BigDecimal price;

    private User user;

    private Package aPackage;

    private LocalDateTime createdAt;

    private List<PackageGoodsDTO> goods;
}
