package com.jeesharp.business.modules.finance.merchantreceivable.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 商户应收账 Excel 导出行结构。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@Schema(description = "商户应收账导出VO")
public class MerchantReceivableExportVO {

    @ExcelProperty("应收流水号")
    private String receivableNo;

    @ExcelProperty("流水类型")
    private String entryTypeName;

    @ExcelProperty("子订单编号")
    private String orderNo;

    @ExcelProperty("批次编号")
    private String batchNo;

    @ExcelProperty("商户租户ID")
    private String merchantTenantId;

    @ExcelProperty("基数金额")
    private BigDecimal baseAmount;

    @ExcelProperty("佣金比例")
    private BigDecimal commissionRate;

    @ExcelProperty("平台佣金")
    private BigDecimal commissionAmount;

    @ExcelProperty("商户应收")
    private BigDecimal merchantAmount;

    @ExcelProperty("微信单号")
    private String transactionId;

    @ExcelProperty(value = "业务时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime bizTime;
}
