Support specifying Adjustment state for fetch requests

I've made a few small changes to support specifying Adjustment state for fetch requests. 

I also increased the visibility of doGET because with this visibility I would have been able to append the state parameter to a fetch URL without modifying the client code at all. 
http://stackoverflow.com/questions/1532461/stringbuilder-vs-string-concatenation-in-tostring-in-java


On 10 July 2014 11:11, Pierre-Alexandre Meyer <notifications@github.com>
wrote:

> In src/main/java/com/ning/billing/recurly/RecurlyClient.java:
>
> > @@ -202,8 +202,12 @@ public void closeAccount(final String accountCode) {
> >      // Account adjustments
> >
> >      public Adjustments getAccountAdjustments(final String accountCode, final Adjustments.AdjustmentType type) {
> > -        return doGET(Account.ACCOUNT_RESOURCE + "/" + accountCode + Adjustments.ADJUSTMENTS_RESOURCE + (type != null ? "?type=" + type.getType() : ""),
> > -                     Adjustments.class);
> > +        return getAccountAdjustments(accountCode,type,null);
> > +    }
> > +    public Adjustments getAccountAdjustments(final String accountCode, final Adjustments.AdjustmentType type,final Adjustments.AdjustmentState state) {
> > +        final String url = new StringBuilder().append(Account.ACCOUNT_RESOURCE).append("/").append(accountCode).append(Adjustments.ADJUSTMENTS_RESOURCE )
>
> Why did you switch to StringBuilder in d94ed92
> <https://github.com/killbilling/recurly-java-library/commit/d94ed92>?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/killbilling/recurly-java-library/pull/38/files#r14745723>
> .
>