package com.yc.ship.module.product.api.dto;

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

import java.math.BigDecimal;
import java.util.List;

@Schema(description = "减库存请求参数")
@Data
public class ReduceStockReqDTO {

    @Schema(description = "订单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long orderId;

    @Schema(description = "旧订单ID,用于还库存", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long oldOrderId;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer orderStatus;
    private Integer oldOrderStatus;

    @Schema(description = "航次ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long voyageId;

    @Schema(description = "1：分销商，2：门店", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer type;

    @Schema(description = "分销商ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long distributorId;

    @Schema(description = "门店ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long storeId;

    @Schema(description = "当前订单使用的房间数量")
    private BigDecimal useRoomNum;

    @Schema(description = "订单使用房间列表")
    List<OrderRoomUseDTO> orderRoomList;
    List<OrderRoomUseDTO> oldOrderRoomList;

}
