package com.ruoyi.order.tools.request.pay.combine;
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
|
/**
|
* <pre>
|
* 微信支付通过支付通知接口将用户支付成功消息通知给商户
|
* 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pay/combine/chapter3_7.shtml
|
* </pre>
|
*/
|
@Data
|
@EqualsAndHashCode
|
@JsonIgnoreProperties()
|
public class CombineTransactionsNotifyRequest {
|
/**
|
* <pre>
|
* 字段名:通知ID
|
* 变量名:id
|
* 是否必填:是
|
* 类型:string[1,36]
|
* 描述:
|
* 通知的唯一ID
|
* 示例值:EV-2018022511223320873
|
* </pre>
|
*/
|
@JsonProperty(value = "id")
|
private String id;
|
|
/**
|
* <pre>
|
* 字段名:通知创建时间
|
* 变量名:create_time
|
* 是否必填:是
|
* 类型:string[1,32]
|
* 描述:
|
* 通知创建的时间, 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示北京时间2015年05月20日13点29分35秒。
|
* 示例值:2015-05-20T13:29:35+08:00
|
* </pre>
|
*/
|
@JsonProperty(value = "create_time")
|
private String createTime;
|
|
/**
|
* <pre>
|
* 字段名:通知类型
|
* 变量名:event_type
|
* 是否必填:是
|
* 类型:string[1,32]
|
* 描述:
|
* 通知的类型,支付成功通知的类型为TRANSACTION.SUCCESS
|
* 示例值:TRANSACTION.SUCCESS
|
* </pre>
|
*/
|
@JsonProperty(value = "event_type")
|
private String eventType;
|
|
/**
|
* <pre>
|
* 字段名:通知数据类型
|
* 变量名:resource_type
|
* 是否必填:是
|
* 类型:string[1,32]
|
* 描述:
|
* 通知的资源数据类型,支付成功通知为encrypt-resource
|
* 示例值:encrypt-resource
|
* </pre>
|
*/
|
@JsonProperty(value = "resource_type")
|
private String resourceType;
|
|
/**
|
* <pre>
|
* 字段名:+通知数据
|
* 变量名:resource
|
* 是否必填:是
|
* 类型:object
|
* 描述:
|
* 通知资源数据
|
* json格式,见示例
|
* </pre>
|
*/
|
@JsonProperty(value = "resource")
|
private Resource resource;
|
|
@EqualsAndHashCode
|
@Data
|
@JsonIgnoreProperties()
|
public static class Resource {
|
/**
|
* <pre>
|
* 字段名:加密算法类型
|
* 变量名:algorithm
|
* 是否必填:是
|
* 类型:string[1,32]
|
* 描述:
|
* 对开启结果数据进行加密的加密算法,目前只支持AEAD_AES_256_GCM
|
* 示例值:AEAD_AES_256_GCM
|
* </pre>
|
*/
|
@JsonProperty(value = "algorithm")
|
private String algorithm;
|
|
/**
|
* <pre>
|
* 字段名:数据密文
|
* 变量名:ciphertext
|
* 是否必填:是
|
* 类型:string[1,1048576]
|
* 描述:
|
* Base64编码后的开启/停用结果数据密文
|
* 示例值:sadsadsadsad
|
* </pre>
|
*/
|
@JsonProperty(value = "ciphertext")
|
private String ciphertext;
|
|
/**
|
* <pre>
|
* 字段名:附加数据
|
* 变量名:associated_data
|
* 是否必填:否
|
* 类型:string[1,16]
|
* 描述:
|
* 附加数据
|
* 示例值:fdasfwqewlkja484w
|
* </pre>
|
*/
|
@JsonProperty(value = "associated_data")
|
private String associatedData;
|
|
/**
|
* <pre>
|
* 字段名:随机串
|
* 变量名:nonce
|
* 是否必填:是
|
* 类型:string[1,16]
|
* 描述:
|
* 加密使用的随机串
|
* 示例值:fdasflkja484w
|
* </pre>
|
*/
|
@JsonProperty(value = "nonce")
|
private String nonce;
|
|
}
|
|
}
|