package com.dy.pipIrrSell.wechatpay.dto; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; /** * @author ZhuBaoMin * @date 2024-03-06 13:54 * @LastEditTime 2024-03-06 13:54 * @Description 支付和退款通知接收对象 */ @Data @Schema(name = "支付和退款回调对象") public class OrderNotify { public static final long serialVersionUID = 202402291431001L; /** * 通知ID */ private String id; /** * 通知创建时间 */ private String create_time; /** * 通知类型 * 支付成功通知的类型为:TRANSACTION.SUCCESS */ private String event_type; /** * 通知数据类型 * 支付成功通知为:encrypt-resource */ private String resource_type; /** * 通知数据 */ private NotifyResource resource; /** * 回调摘要,退款通知无此属性 */ private String summary; @Data public class NotifyResource { /** * 加密算法类型 * 仅支持AEAD_AES_256_GCM */ private String algorithm; /** * 数据密文 */ private String ciphertext; /** * 附加数据 */ public String associated_data; /** * 原始类型 * 原始回调类型为:transaction */ private String original_type; /** * 随机串 */ private String nonce; } }