package cn.superdesk.uniorder.openapicall.thirdpart.szhtxx.paperInvoice.dto.response.SID1SingleBilling;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2022/4/25 7:32 下午
 * @UpdateUser: linjinyu
 * @UpdateDate: 2022/4/25 7:32 下午
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@Data
public class SID1SingleBillingResponseBodyEncmsgVo implements Serializable {

    @JsonProperty("retcode")
    @JSONField(name = "retcode")
    private String returnCode;
    @JsonProperty("retmsg")
    @JSONField(name = "retmsg")
    private String returnMsg;

    @JsonProperty("SID")
    @JSONField(name = "SID")
    private String sid;


    @ApiModelProperty("开具的金额")
    @JsonProperty("InfoAmount")
    @JSONField(name = "InfoAmount")
    private BigDecimal infoAmount;
    @ApiModelProperty("开具的税额")
    @JsonProperty("InfoTaxAmount")
    @JSONField(name = "InfoTaxAmount")
    private BigDecimal infoTaxAmount;

    @JsonProperty("InfoTypeCode")
    @JSONField(name = "InfoTypeCode")
    private String infoTypeCode;
    @JsonProperty("InfoNumber")
    @JSONField(name = "InfoNumber")
    private String infoNumber;
    @ApiModelProperty("(格式:yyyy-mm-dd)//开票日期")
    @JsonProperty("InfoDate")
    @JSONField(name = "InfoDate")
    private String infoDate;

    @JsonProperty("Cipher")
    @JSONField(name = "Cipher")
    private String cipher;
    @JsonProperty("Sign")
    @JSONField(name = "Sign")
    private String sign;
    @JsonProperty("CheckCode")
    @JSONField(name = "CheckCode")
    private String checkCode;


    @ApiModelProperty("上一张发票种类")
    private String hisInfoKind;
    @ApiModelProperty("上一张发票号码")
    private String hisInfoNumber;
    @ApiModelProperty("上一张发票代码")
    private String hisInfoTypeCode;

    @JsonProperty("ListFlag")
    @JSONField(name = "ListFlag")
    private Integer listFlag;
    private String cancelFlag;

    private String nsrsbh;
    private String kpfwqh;
    private String kpdh;

    @JsonProperty("deviceNO")
    @JSONField(name = "deviceNO")
    private String deviceNo;

    private String ofdpreviewurl;
    private String ofddownloadurl;
    private String ofdstream;

//    {"SID":"1","hisInfoKind":"0","Cipher":"","InfoAmount":65.48,"retcode":"4011","retmsg":"发票填开成功。","InfoNumber":"06560155","InfoDate":"2022-04-25 19:11:34","hisInfoNumber":"","Sign":"","CheckCode":"","InfoTaxAmount":8.51,"hisInfoTypeCode":"","ListFlag":0,"InfoTypeCode":"1100192130","nsrsbh":"440301999999122","cancelFlag":"0","kpfwqh":"0","kpdh":"0","deviceNO":"661101965942","ofdpreviewurl":"","ofddownloadurl":"","ofdstream":""}
//    {"SID":"1","hisInfoKind":"0","Cipher":"","InfoAmount":65.48,"retcode":"4011","retmsg":"开票成功（该销售单据编号的发票已开具）","InfoNumber":"06560155","InfoDate":"2022-04-25 19:11:34","hisInfoNumber":"","Sign":"","CheckCode":"","InfoTaxAmount":8.51,"hisInfoTypeCode":"","ListFlag":0,"InfoTypeCode":"1100192130","nsrsbh":"440301999999122","deviceNO":"661101965942","kpfwqh":"0","kpdh":"0"}

//    {
//        "SID": "1",
//        "hisInfoKind": "0",
//        "Cipher": "",
//        "InfoAmount": 65.48,
//        "retcode": "4011",
//        "retmsg": "发票填开成功。",
//        "InfoNumber": "06560155",
//        "InfoDate": "2022-04-25 19:11:34",
//        "hisInfoNumber": "",
//        "Sign": "",
//        "CheckCode": "",
//        "InfoTaxAmount": 8.51,
//        "hisInfoTypeCode": "",
//        "ListFlag": 0,
//        "InfoTypeCode": "1100192130",
//        "nsrsbh": "440301999999122",
//        "cancelFlag": "0",
//        "kpfwqh": "0",
//        "kpdh": "0",
//        "deviceNO": "661101965942",
//        "ofdpreviewurl": "",
//        "ofddownloadurl": "",
//        "ofdstream": ""
//    }

    /**
     * SID : 1
     * hisInfoKind : 0
     * Cipher :
     * InfoAmount : 65.48
     * retcode : 4011
     * retmsg : 发票填开成功。
     * InfoNumber : 06560155
     * InfoDate : 2022-04-25 19:11:34
     * hisInfoNumber :
     * Sign :
     * CheckCode :
     * InfoTaxAmount : 8.51
     * hisInfoTypeCode :
     * ListFlag : 0
     * InfoTypeCode : 1100192130
     * nsrsbh : 440301999999122
     * cancelFlag : 0
     * kpfwqh : 0
     * kpdh : 0
     * deviceNO : 661101965942
     * ofdpreviewurl :
     * ofddownloadurl :
     * ofdstream :
     */
}
