zhengyuxuan
2025-04-03 06f7ccdea12e211d05f6eef75e6e2fb4b493377c
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace LifePayment.Domain
{
    public class OrderChangedBzContentInput
    {
        /// <summary>
        /// 商户端的唯一订单号
        /// </summary>
        [JsonProperty("out_biz_no", NullValueHandling = NullValueHandling.Ignore)]
        public string OutBizNo
        {
            get;
            set;
        }
 
        /// <summary>
        /// 销售产品码,商家和支付宝签约的产品码。 STD_RED_PACKET:现金红包; TRANS_ACCOUNT_NO_PWD:单笔无密转账
        /// </summary>
        [JsonProperty("product_code", NullValueHandling = NullValueHandling.Ignore)]
        public string ProductCode
        {
            get;
            set;
        }
 
        /// <summary>
        /// 描述特定的业务场景,如果传递了out_biz_no则该字段为必传。可取的业务场景如下: PERSONAL_PAY:C2C现金红包-发红包; PERSONAL_COLLECTION:C2C现金红包-领红包; REFUND:C2C现金红包-红包退回; DIRECT_TRANSFER:B2C现金红包、单笔无密转账
        /// </summary>
        [JsonProperty("biz_scene", NullValueHandling = NullValueHandling.Ignore)]
        public string BizScene
        {
            get;
            set;
        }
 
        /// <summary>
        /// 请求来源的接口
        /// </summary>
        [JsonProperty("origin_interface", NullValueHandling = NullValueHandling.Ignore)]
        public string OriginInterface
        {
            get;
            set;
        }
 
        /// <summary>
        /// 支付宝转账单据号
        /// </summary>
        [JsonProperty("order_id", NullValueHandling = NullValueHandling.Ignore)]
        public string OrderId
        {
            get;
            set;
        }
 
        /// <summary>
        /// 转账单据状态。可能出现的状态如下: SUCCESS:转账成功; WAIT_PAY:等待支付; CLOSED:订单超时关闭; REFUND:退票; DEALING:转账到银行卡处理中;
        /// FAIL:转账失败; alipay.fund.trans.app.pay涉及的状态: WAIT_PAY SUCCESS CLOSED alipay.fund.trans.uni.transfer、alipay.fund.trans.refund涉及的状态:SUCCESS REFUND DEALING FAIL 不同的转账接口涉及不同的单据状态,以实际场景为准
        /// </summary>
        [JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
        public string Status
        {
            get;
            set;
        }
 
        /// <summary>
        /// 资金订单的操作类型, CREATE-创建; FINISH- 订单处理已完结 CLOSE-超时关闭 ;
        /// </summary>
        [JsonProperty("action_type", NullValueHandling = NullValueHandling.Ignore)]
        public string ActionType
        {
            get;
            set;
        }
 
        /// <summary>
        /// 转账金额,单位元
        /// </summary>
        [JsonProperty("trans_amount", NullValueHandling = NullValueHandling.Ignore)]
        public string TransAmount
        {
            get;
            set;
        }
 
        /// <summary>
        /// 金融机构发起签约类、支付类、差错类业务时,应为每笔业务分配唯一的交易流水号。31位交易流水号组成规则为:
        /// “8位日期”+“16位序列号”+“1位预留位”+“6位控制位”,其中: a)“8位日期”为系统当前日期,ISODate格式:“YYYYMMDD” b)
        /// “16位序列号”由金融机构生成,金融机构应确保该值在网联当日唯一 c)“1位预留位”由平台分配 d)“6位控制位”由金融机构通过平台获取 例如:2023052993044491260542090100400
        /// </summary>
        [JsonProperty("settle_serial_no", NullValueHandling = NullValueHandling.Ignore)]
        public string SettleSerialNo
        {
            get;
            set;
        }
 
        /// <summary>
        /// 失败子单具体状态
        /// </summary>
        [JsonProperty("sub_order_status", NullValueHandling = NullValueHandling.Ignore)]
        public string SubOrderStatus
        {
            get;
            set;
        }
 
        /// <summary>
        /// 特殊场景提供,当子单出现异常导致主单失败或者退款时,会提供此字段,用于透出子单具体的错误场景
        /// </summary>
        [JsonProperty("sub_order_error_code", NullValueHandling = NullValueHandling.Ignore)]
        public string SubOrderErrorCode
        {
            get;
            set;
        }
 
        /// <summary>
        /// 特殊场景提供,当子单出现异常导致主单失败或者退款时,会提供此字段,用于透出子单具体的错误场景
        /// </summary>
        [JsonProperty("sub_order_fail_reason", NullValueHandling = NullValueHandling.Ignore)]
        public string SubOrderFailReason
        {
            get;
            set;
        }
 
        /// <summary>
        /// 支付宝支付资金流水号,仅当转账成功才会返回该参数
        /// </summary>
        [JsonProperty("pay_fund_order_id", NullValueHandling = NullValueHandling.Ignore)]
        public string PayFundOrderId
        {
            get;
            set;
        }
 
        /// <summary>
        /// 支付完成时间
        /// </summary>
        [JsonProperty("pay_date", NullValueHandling = NullValueHandling.Ignore)]
        public string PayDate
        {
            get;
            set;
        }
 
        /// <summary>
        /// 自动退款时间
        /// </summary>
        [JsonProperty("refund_date", NullValueHandling = NullValueHandling.Ignore)]
        public string RefundDate
        {
            get;
            set;
        }
 
        /// <summary>
        /// 无忧收场景下的受理单号
        /// </summary>
        [JsonProperty("entrust_order_id", NullValueHandling = NullValueHandling.Ignore)]
        public string EntrustOrderId
        {
            get;
            set;
        }
    }
 
    public class FundOrderChangedInput
    {
        /// <summary>
        /// 通知ID
        /// </summary>
        [JsonProperty("notify_id", NullValueHandling = NullValueHandling.Ignore)]
        public string NotifyId
        {
            get;
            set;
        }
 
        /// <summary>
        /// 消息发送时的服务端时间
        /// </summary>
        [JsonProperty("utc_timestamp", NullValueHandling = NullValueHandling.Ignore)]
        public string UtcTimestamp
        {
            get;
            set;
        }
 
        /// <summary>
        /// 消息接口名称
        /// </summary>
        [JsonProperty("msg_method", NullValueHandling = NullValueHandling.Ignore)]
        public string MsgMethod
        {
            get;
            set;
        }
 
        /// <summary>
        /// 消息接受方的应用id
        /// </summary>
        [JsonProperty("app_id", NullValueHandling = NullValueHandling.Ignore)]
        public string AppId
        {
            get;
            set;
        }
 
        /// <summary>
        /// 版本号(1.1版本为标准消息)
        /// </summary>
        [JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
        public string Version
        {
            get;
            set;
        }
 
        /// <summary>
        /// 消息报文
        /// </summary>
        [JsonProperty("biz_content", NullValueHandling = NullValueHandling.Ignore)]
        public OrderChangedBzContentInput BizContent
        {
            get;
            set;
        }
 
        /// <summary>
        /// 签名
        /// </summary>
        [JsonProperty("sign", NullValueHandling = NullValueHandling.Ignore)]
        public string Sign
        {
            get;
            set;
        }
 
        /// <summary>
        /// 签名类型
        /// </summary>
        [JsonProperty("sign_type", NullValueHandling = NullValueHandling.Ignore)]
        public string SignType
        {
            get;
            set;
        }
 
        /// <summary>
        /// 编码集,该字符集为验签和解密所需要的字符集
        /// </summary>
        [JsonProperty("charset", NullValueHandling = NullValueHandling.Ignore)]
        public string Charset
        {
            get;
            set;
        }
    }
}