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

import com.jeesharp.framework.pojo.vo.BaseInfoVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 商户应收账详情 VO。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "商户应收账详情VO")
public class MerchantReceivableInfoVO extends BaseInfoVO {

    @Schema(description = "应收流水号")
    private String receivableNo;

    @Schema(description = "流水类型")
    private String entryType;

    @Schema(description = "流水类型名称")
    private String entryTypeName;

    @Schema(description = "财务支付单ID")
    private String financePayOrderId;

    @Schema(description = "合并支付批次ID")
    private String payBatchId;

    @Schema(description = "合并支付批次编号")
    private String batchNo;

    @Schema(description = "商城子订单ID")
    private String mallOrderId;

    @Schema(description = "商城子订单编号")
    private String orderNo;

    @Schema(description = "关联退款单ID")
    private String payRefundOrderId;

    @Schema(description = "业务场景")
    private String bizScene;

    @Schema(description = "子单商户租户ID")
    private String merchantTenantId;

    @Schema(description = "结算模式")
    private String settleMode;

    @Schema(description = "微信 transaction_id")
    private String transactionId;

    @Schema(description = "原支付商户单号")
    private String outTradeNo;

    @Schema(description = "基数金额（元）")
    private BigDecimal baseAmount;

    @Schema(description = "佣金比例")
    private BigDecimal commissionRate;

    @Schema(description = "平台佣金金额（元）")
    private BigDecimal commissionAmount;

    @Schema(description = "商户应收金额（元）")
    private BigDecimal merchantAmount;

    @Schema(description = "业务发生时间")
    private LocalDateTime bizTime;
}
