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

import com.jeesharp.framework.pojo.vo.BaseListVO;
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 ProfitSharingOrderListVO extends BaseListVO {

    @Schema(description = "分账请求单号")
    private String sharingNo;

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

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

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

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

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

    @Schema(description = "分账接收方子商户号")
    private String subMchId;

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

    @Schema(description = "锁定支付基数（元）")
    private BigDecimal payAmount;

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

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

    @Schema(description = "分账状态")
    private String status;

    @Schema(description = "分账状态名称")
    private String statusName;

    @Schema(description = "微信分账单号")
    private String wxOrderId;

    @Schema(description = "是否已完结分账：0-否 1-是")
    private Integer finishStatus;

    @Schema(description = "分账成功时间")
    private LocalDateTime sharingTime;

    @Schema(description = "渠道错误说明")
    private String errorMsg;
}
