package com.xhpc.evcs.cdjgpc.dto;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.Data;

import javax.persistence.Column;

/**
 * @author yuyang
 * @date 2023-09-27 10:41
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
        "StartChargeSeq",
        "ConnectorID",
        "TotalPower",
        "TotalMoney",
        "TaxiOrder",
        "SubsidyMoney",
        "SettlementMoney"
})
@Data
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
        setterVisibility = JsonAutoDetect.Visibility.NONE, creatorVisibility = JsonAutoDetect.Visibility.NONE)
public class CDNotificationOrderSettlementInfoRequest {

    /**
     * 充电订单号
     */
    @JsonProperty("StartChargeSeq")
    public String startChargeSeq;

    /**
     * 充电设备接口 编码
     */
    @JsonProperty("ConnectorID")
    public String connectorID;

    /**
     * 累计充电量
     */
    @JsonProperty("TotalPower")
    @Column(columnDefinition = "Decimal(10,2)")
    public Double totalPower;

    /**
     * 累计总金额
     */
    @JsonProperty("TotalMoney")
    @Column(columnDefinition = "Decimal(10,2)")
    public Double totalMoney;

    /**
     * 是否出租车订单
     */
    @JsonProperty("TaxiOrder")
    public Integer taxiOrder;

    /**
     * 补贴金额
     */
    @JsonProperty("SubsidyMoney")
    @Column(columnDefinition = "Decimal(10,2)")
    public Double subsidyMoney;

    /**
     * 结算金额
     */
    @JsonProperty("SettlementMoney")
    @Column(columnDefinition = "Decimal(10,2)")
    public Double settlementMoney;
}
