Skip to content

Commit

Permalink
Changed Funding Sources by Id to return single object
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Greathouse committed Sep 5, 2012
1 parent 1ab7cfd commit 743b4e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Src/DwollaAPI/FundingSourcesListingResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ public class FundingSourcesListingResult

[JsonProperty("ProcessingType")]
public BankProcessingType BankProcessingType { get; set; }

[JsonProperty("Balance")]
public decimal? Balance { get; set; }
}
}
4 changes: 2 additions & 2 deletions Src/DwollaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public IEnumerable<FundingSourcesListingResult> FundingSources(string accessToke
return GetResponseData<IEnumerable<FundingSourcesListingResult>>(request);
}

public IEnumerable<FundingSourcesListingResult> FundingSourcesDetails(string accessToken, string fundingSourceId)
public FundingSourcesListingResult FundingSourcesDetails(string accessToken, string fundingSourceId)
{
if (String.IsNullOrEmpty(accessToken))
throw new ArgumentNullException("accessToken");
Expand All @@ -497,7 +497,7 @@ public IEnumerable<FundingSourcesListingResult> FundingSourcesDetails(string acc
nvc.Add("oauth_token", accessToken);

var request = WebRequest.Create(string.Format("{0}/fundingsources/{1}{2}", BaseUrl, fundingSourceId, ToQueryString(nvc)));
return GetResponseData<IEnumerable<FundingSourcesListingResult>>(request);
return GetResponseData<FundingSourcesListingResult>(request);
}

private static string ToQueryString(NameValueCollection nvc)
Expand Down

0 comments on commit 743b4e6

Please sign in to comment.