code: public CreditPayments getCreditPayments(final String accountCode, final QueryParams params) {
          final String path = Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + CreditPayments.CREDIT_PAYMENTS_RESOURCE;
          return doGET(path, CreditPayments.class, params);
      }
docs: Get Credit Payments for a given account
  <p>
  Returns information about all credit payments.
  
  @param accountCode The account code to filter
  @param params {@link QueryParams}
  @return CreditPayments on success, null otherwise