コード例 #1
0
        public async Task <SingleTraderCreditProviderWithdrawResponse> WithdrawAsync(SingleTraderCreditProviderWithdrawRequest request, CancellationToken cancellation)
        {
            var response = new SingleTraderCreditProviderWithdrawResponse();
            var sr       = await ApplyAsync(new SingleTraderCreditProviderApplyRequest
            {
                UserName  = request.UserName,
                Amount    = -request.Amount,
                Info      = request.Info,
                AuditCode = "CRD_WTHDRW"
            }, cancellation);

            response.Copy(sr);

            return(response);
        }
コード例 #2
0
        public SingleTraderCreditProviderWithdrawResponse Withdraw(SingleTraderCreditProviderWithdrawRequest request)
        {
            var response = new SingleTraderCreditProviderWithdrawResponse();
            var sr       = Apply(new SingleTraderCreditProviderApplyRequest
            {
                UserName  = request.UserName,
                Amount    = -request.Amount,
                Info      = request.Info,
                AuditCode = "CRD_WTHDRW"
            });

            response.Copy(sr);

            return(response);
        }