package cn.common.interaction.req.wx.wxpay;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.*;

/**
 * @author Singer create by Singer email:singer-coder@qq.com
 * @packageName cn.common.interaction.req.wx.wxpay
 * @Description: 微信V3支付回调的Resource字段
 * @date 2021-02-05
 */
@Data
public class WxV3PayCallPackResource implements Serializable {

    private static final long serialVersionUID = 4942576898815755649L;


    /**
      * 对开启结果数据进行加密的加密算法，目前只支持AEAD_AES_256_GCM
      */
    private String algorithm;


    /**
     * Base64编码后的开启/停用结果数据密文
     */
    @JSONField(name = "ciphertext")
    private String 	cipherText;


    /**
     * 附加数据
     */
    @JSONField(name = "associated_data")
    private String 	associatedData;


    /**
     * 原始类型
     */
    @JSONField(name = "original_type")
    private String 	originalType;

    /**
     * 加密使用的随机串
     */
    @JSONField(name = "nonce")
    private String 	nonce;

}
