package com.izouma.nineth.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.izouma.nineth.enums.DivStatus;
import com.izouma.nineth.enums.OrderStatus;
import com.izouma.nineth.enums.PayMethod;
import io.swagger.annotations.ApiModel;
import lombok.Data;

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


@Data
@ApiModel("待分账记录")
public class DivMoneyDTO {


    @ExcelProperty("分账ID")
    private String id;

    @ExcelProperty("订单ID")
    private String orderId;


    @ExcelProperty("用户ID")
    private String userId;

    /**
     * 支付平台关联标识
     */
    @ExcelProperty("会员ID")
    private String memberId;


    @ExcelProperty("分账总金额")
    private BigDecimal totalAmount;

    @ExcelProperty("分账金额")
    private BigDecimal amount;

    @ExcelProperty("分账比例")
    private Integer ratio;

    @ExcelProperty("剩余金额")
    private BigDecimal restAmount;

    @ExcelProperty("是否承担手续费")
    private Integer feeFlag;

    @ExcelProperty("状态")
    private DivStatus status;

    @ExcelProperty("创建时间")
    private LocalDateTime createdAt;


    @ExcelProperty("处理时间")
    private LocalDateTime processTime;

    //-----------其他属性
    @ExcelProperty("订单号")
    private String orderNo;
    @ExcelProperty("订单流水")
    private String transactionId;

    @ExcelProperty("订单名称")
    private String orderName;

    @ExcelProperty("订单总金额")
    private BigDecimal totalPrice;

    @ExcelProperty("订单状态")
    private OrderStatus orderStatus;

    @ExcelProperty("支付方式")
    private PayMethod payMethod;

    @ExcelProperty("支付平台")
    private String payPlatform;

    @ExcelProperty("分账银行名称")
    private String bankName;

    @ExcelProperty("分账银行卡号")
    private String bankNo;

    @ExcelProperty("分账手机号")
    private String phone;

    @ExcelProperty("分账真实姓名")
    private String realName;



}
