상속: IBalancedServiceObject
예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }