public Status<Credit> CreditNewBankAccount(int amount, BankAccount bankAccount, Dictionary<string, string> meta = null, string description = null) { if (string.IsNullOrWhiteSpace(bankAccount.Name)) throw new ArgumentNullException("BankAccount.Name"); if (string.IsNullOrWhiteSpace(bankAccount.AccountNumber)) throw new ArgumentNullException("BankAccount.AccountNumber"); if (string.IsNullOrWhiteSpace(bankAccount.RoutingNumber)) throw new ArgumentNullException("BankAccount.RoutingNumber"); return this.Service.Credit.CreateNewBank(CreditsUri, amount, bankAccount.Name, bankAccount.AccountNumber, bankAccount.RoutingNumber, bankAccount.Type.ToString().ToLower(), meta, description); }
public Status<BankAccount> CreateBankAccount(BankAccount bankAccount) { return this.BankAccount.Create(this.BaseUrl + "/v1/bank_accounts", bankAccount.Name, bankAccount.AccountNumber, bankAccount.RoutingNumber, bankAccount.Type, bankAccount.Meta); }
public Status<BankAccount> CreateBankAccount(BankAccount bankAccount) { if (string.IsNullOrWhiteSpace(bankAccount.Name)) throw new ArgumentNullException("BankAccount.Name"); if (string.IsNullOrWhiteSpace(bankAccount.AccountNumber)) throw new ArgumentNullException("BankAccount.AccountNumber"); if (string.IsNullOrWhiteSpace(bankAccount.RoutingNumber)) throw new ArgumentNullException("BankAccount.RoutingNumber"); return this.Service.BankAccount.Create(BankAccountsUri, bankAccount.Name, bankAccount.AccountNumber, bankAccount.RoutingNumber, bankAccount.Type, bankAccount.Meta); }