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); }
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); }