sunpengfei
2025-11-19 7b47c91bcf89d667a5c99cfafe0d899280f7fbe3
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
using MediatR;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace ApiTools.Core
{
    /// <summary>
    /// 提交渠道钱包转账
    /// </summary>
    [Resource([EnumResourceController.UserServerChannelWallet])]
    public class SubmitChannelWalletTransferCommand : IRequest<SubmitChannelWalletTransferCommandResult>
    {
        /// <summary>
        /// 外部钱包Id
        /// </summary>
        public string OutWalletId { get; set; }
 
        /// <summary>
        /// 外部订单号
        /// </summary>
        public string OutCode { get; set; }
 
        /// <summary>
        /// 外部操作人Id
        /// </summary>
        public string OutOperatorId { get; set; }
 
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OperatorTime { get; set; }
 
        /// <summary>
        /// 外部收款人Id
        /// </summary>
        public string OutReceiveId { get; set; }
 
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amount { get; set; }
 
        /// <summary>
        /// 收款人姓名
        /// </summary>
        public string ReceiveName { get; set; }
 
        /// <summary>
        /// 收款人身份证号
        /// </summary>
        public string ReceiveIdentity { get; set; }
 
        /// <summary>
        /// 收款账户
        /// </summary>
        public string ReceiveAccount { get; set; }
 
        /// <summary>
        /// 收款人开户行
        /// </summary>
        public string ReceiveBank { get; set; }
 
        /// <summary>
        /// 收款人支行
        /// </summary>
        public string ReceiveBankBranch { get; set; }
 
        /// <summary>
        /// 币种
        /// </summary>
        public string Currency { get; set; }
 
        /// <summary>
        /// 用途
        /// </summary>
        public string Purpose { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
 
    }
 
    public class SubmitChannelWalletTransferCommandResult
    {
        /// <summary>
        /// 交易Id
        /// </summary>
        public Guid Id { get; set; }
 
        /// <summary>
        /// 订单号
        /// </summary>
        public string Code { get; set; }
 
        /// <summary>
        /// 状态
        /// </summary>
        public EnumWalletTransactionStatus TransactionStatus { get; set; }
 
        /// <summary>
        /// 查询到的订单状态为FAIL失败或REFUND退票时,返回错误代码
        /// </summary>
        public string ErrorCode { get; set; }
 
        /// <summary>
        /// 查询到的订单状态为FAIL失败或REFUND退票时,返回具体的原因。
        /// </summary>
        public string FailReason { get; set; }
 
    }
}