package com.erp.order.settlement.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;

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

/**
 * 结算数据传输对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SettlementDTO {

    private Long id;
    private String settlementNo;
    private Long orderId;
    private String orderShortId;
    private String platformOrderSn;
    private String platform;
    private Long shopId;
    private String shopName;
    private BigDecimal orderAmount;
    private BigDecimal discountAmount;
    private BigDecimal freight;
    private BigDecimal totalAmount;
    private BigDecimal platformFee;
    private BigDecimal platformCommissionRate;
    private BigDecimal settlementAmount;
    private String settlementStatus;
    private Long settlementPeriodId;
    private LocalDateTime settlementDate;
    private LocalDateTime paymentTime;
    private LocalDateTime deliveryTime;
    private LocalDateTime confirmTime;
    private LocalDateTime confirmSettlementTime;
    private String remark;

    /** 创建时间 */
    private LocalDateTime createdAt;
    /** 更新时间 */
    private LocalDateTime updatedAt;
}
