Skip to content

Instantly share code, notes, and snippets.

@lupos
Created December 6, 2012 19:51
Show Gist options
  • Save lupos/4227727 to your computer and use it in GitHub Desktop.
Save lupos/4227727 to your computer and use it in GitHub Desktop.
/// <summary>
/// PUT https://api.balancedpayments.com/v1/marketplaces/:marketplace_id/accounts/:account_id
/// curl https://api.balancedpayments.com/v1/marketplaces/TEST-MP365nSS4SNSrrlMeJXI7LUC/accounts \
/// -u 657c523c3b8e11e2a893026ba7cd33d0: \
/// </summary>
/// <param name="bankAccountUri">-d "bank_account_uri=/v1/bank_accounts/BA3HRAcWctcPl1Yy18lOXHUb"</param>
/// <returns></returns>
public Account AddBankToAccount(string bankAccountUri, string account_id)
{
Require.Argument("bank_account_uri", bankAccountUri);
var request = new RestRequest(Method.PUT) { Resource = "v1/marketplaces/" + _marketPlace + "/accounts/" + account_id};
request.AddParameter("bank_account_uri", bankAccountUri, ParameterType.GetOrPost);
return Execute<Account>(request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment