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

import com.jeesharp.business.modules.mall.entity.MallMemberAddress;
import com.jeesharp.business.modules.mall.enums.MallDeliveryTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 商城结算定价请求（试算/下单共用）。
 *
 * @author jeesharp
 * @since 2026-06-10
 */
@Data
@Schema(description = "商城结算定价请求")
public class MallCheckoutPricingRequest {

    private String memberId;

    private MallDeliveryTypeEnum deliveryType;

    private MallMemberAddress address;

    private List<MallOrderSubmitLineDTO> items = new ArrayList<>();

    @Schema(description = "平台券 app_member_coupon.id")
    private String platformMemberCouponId;

    @Schema(description = "兼容旧字段：未传 platformMemberCouponId 时按券归属解析")
    private String legacyMemberCouponId;

    private List<MallMerchantCouponDTO> merchantCoupons = new ArrayList<>();
}
