package com.xinelu.applet.vo.wechatpaymentinfo.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Description 微信只顾回调密文参数实体类
 * @Author 纪寒
 * @Date 2022-10-20 14:10:15
 * @Version 1.0
 */
@NoArgsConstructor
@Data
public class WeChatPayNotifyCiphertextVO implements Serializable {
    private static final long serialVersionUID = -3000851624508762861L;

    @JsonProperty("id")
    private String id;

    @JsonProperty("create_time")
    private String createTime;

    @JsonProperty("resource_type")
    private String resourceType;

    @JsonProperty("event_type")
    private String eventType;

    @JsonProperty("summary")
    private String summary;

    @JsonProperty("resource")
    private ResourceDTO resource;

    @NoArgsConstructor
    @Data
    public static class ResourceDTO {

        @JsonProperty("original_type")
        private String originalType;

        @JsonProperty("algorithm")
        private String algorithm;

        @JsonProperty("ciphertext")
        private String ciphertext;

        @JsonProperty("associated_data")
        private String associatedData;

        @JsonProperty("nonce")
        private String nonce;
    }
}
