zhanglin
2023-07-20 cde69bd6e9ce00b22df3690d85ea295459e3b168
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
package com.ruoyi.order.tools.request.ecommerce.profitsharing;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
/**
 * <pre>
 * 1、此功能仅针对分账接收方。 2、分账动账金额变动后,微信会把相关变动结果发送给需要实时关注的分账接收方。
 * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_6.shtml
 * </pre>
 */
@Data
@EqualsAndHashCode
@JsonIgnoreProperties()
public class ProfitSharingNotifyRequest {
    /**
     * <pre>
     * 字段名:通知ID
     * 变量名:id
     * 是否必填:是
     * 类型:string[1,32]
     * 描述:
     *  通知的唯一ID 
     *  示例值:EV-2018022511223320873 
     * </pre>
     */
    @JsonProperty(value = "id")
    private String id;
 
    /**
     * <pre>
     * 字段名:通知创建时间
     * 变量名:create_time
     * 是否必填:是
     * 类型:string[1,16]
     * 描述:
     *  通知创建的时间,遵循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年5月20日 13点29分35秒。
     *  示例值:2018-06-08T10:34:56+08:00 
     * </pre>
     */
    @JsonProperty(value = "create_time")
    private String createTime;
 
    /**
     * <pre>
     * 字段名:通知类型
     * 变量名:event_type
     * 是否必填:是
     * 类型:string[1,32]
     * 描述:
     *  通知的类型: 
     *  TRANSACTION.SUCCESS:分账
     *  TRANSACTION.SUCCESS:分账回退
     *  示例值:TRANSACTION.SUCCESS 
     * </pre>
     */
    @JsonProperty(value = "event_type")
    private String eventType;
 
    /**
     * <pre>
     * 字段名:通知简要说明
     * 变量名:summary
     * 是否必填:是
     * 类型:string[1,16]
     * 描述:
     *  通知简要说明 
     *  示例值:分账 
     * </pre>
     */
    @JsonProperty(value = "summary")
    private String summary;
 
    /**
     * <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>
         * 字段名:加密前的对象类型
         * 变量名:original_type
         * 是否必填:是
         * 类型:string[1,32]
         * 描述:
         *  加密前的对象类型,分账动账通知的类型为profitsharing 
         *  示例值:profitsharing 
         * </pre>
         */
        @JsonProperty(value = "original_type")
        private String originalType;
 
        /**
         * <pre>
         * 字段名:数据密文
         * 变量名:ciphertext
         * 是否必填:是
         * 类型:string[1,1048576]
         * 描述:
         *  Base64编码后的开启/停用结果数据密文
         *  示例值:fdasFDGAWDWflkja484w 
         * </pre>
         */
        @JsonProperty(value = "ciphertext")
        private String ciphertext;
 
        /**
         * <pre>
         * 字段名:附加数据
         * 变量名:associated_data
         * 是否必填:否
         * 类型:string[1,16]
         * 描述:
         *  附加数据
         *  示例值:adsacfseewfsdSFDS 
         * </pre>
         */
        @JsonProperty(value = "associated_data")
        private String associatedData;
 
        /**
         * <pre>
         * 字段名:随机串
         * 变量名:nonce
         * 是否必填:是
         * 类型:string[1,16]
         * 描述:
         *  加密使用的随机串 
         *  示例值:fdasflkja484w 
         * </pre>
         */
        @JsonProperty(value = "nonce")
        private String nonce;
 
    }
 
}