package com.jeesharp.business.modules.mall.vo;

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

import java.util.ArrayList;
import java.util.List;

/**
 * 小程序商城提交订单成功后的返回体，便于前端继续调预支付。
 *
 * @author jeesharp
 * @since 2026-05-15
 */
@Data
@Schema(description = "商城提交订单结果")
public class MallOrderSubmitResultVO {

    @Schema(description = "合并支付批次主键（预支付请优先使用）")
    private String batchId;

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

    @Schema(description = "商城订单主键（兼容：单店时为唯一子单；多店时为首个子单）")
    private String orderId;

    @Schema(description = "本批次全部子单主键")
    private List<String> orderIds = new ArrayList<>();

    @Schema(description = "订单编号（兼容字段，同 orderId 对应子单）")
    private String orderNo;

    @Schema(description = "订单总金额（含运费）字符串，两位小数")
    private String totalAmount;

    @Schema(description = "应付金额字符串，两位小数")
    private String payAmount;
}
