package com.jeesharp.business.modules.finance.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 结算/退款/分账所需的业务子单只读摘要，跨业态统一结构。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@Schema(description = "业务子单结算摘要")
public class PaySettleBizOrderSnapshot {

    @Schema(description = "业务子单主键")
    private String bizOrderId;

    @Schema(description = "业务子单编号（展示用，可空）")
    private String orderNo;

    @Schema(description = "商户租户ID")
    private String tenantId;

    @Schema(description = "子单实付金额")
    private BigDecimal payAmount;

    @Schema(description = "子单总金额")
    private BigDecimal totalAmount;

    @Schema(description = "合并支付批次ID；商城合单为 mall_pay_batch.id，其他业态通常与 bizOrderId 相同")
    private String payBatchId;

    @Schema(description = "合并支付批次编号（仅 MALL_ORDER 有值，展示用）")
    private String batchNo;
}
