package shop.alien.entity.store.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 店铺端购买记录
 */
@Data
@ApiModel("平台会员卡订单明细")
public class PlatformShopMembershipOrderItemVo {

    @ApiModelProperty("订单ID")
    private Integer id;

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

    @ApiModelProperty("方案名称")
    private String planName;

    @ApiModelProperty("时长（月）")
    private Integer durationMonths;

    @ApiModelProperty("实付金额（元）")
    private BigDecimal payAmount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("本笔权益开始")
    private Date validityStart;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("本笔权益结束")
    private Date validityEnd;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("支付/下单时间")
    private Date purchaseTime;

    @ApiModelProperty("支付状态文案")
    private String payStatusText;

    @ApiModelProperty("支付方式")
    private String paymentMethod;
}
