package com.sckw.order.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 贸易订单结算
 */
@Getter
@Setter
@ToString
public class TradeOrderSettlePara implements Serializable {

    @Serial
    private static final long serialVersionUID = 6909518527687999256L;

    /**
     * 贸易订单id
     */
    @JsonProperty("tOrderId")
    @NotNull(message = "贸易订单id不能为空")
    private Long tOrderId;

    /**
     * 累计装货量
     */
    private BigDecimal loadAmount;
    /**
     * 累计卸货量
     */
    private BigDecimal unloadAmount;
}
