public Object getLoanDetail(
     final RequestSpecification requestSpec,
     final ResponseSpecification responseSpec,
     final Integer loanID,
     final String param) {
   final String URL =
       "/mifosng-provider/api/v1/loans/" + loanID + "?associations=all&" + Utils.TENANT_IDENTIFIER;
   return Utils.performServerGet(requestSpec, responseSpec, URL, param);
 }
 public HashMap getLoanSummary(
     final RequestSpecification requestSpec,
     final ResponseSpecification responseSpec,
     final Integer loanID) {
   final String URL =
       "/mifosng-provider/api/v1/loans/" + loanID + "?associations=all&" + Utils.TENANT_IDENTIFIER;
   final HashMap response = Utils.performServerGet(requestSpec, responseSpec, URL, "summary");
   return response;
 }
 public static HashMap getStatusOfFixedDepositAccount(
     final RequestSpecification requestSpec,
     final ResponseSpecification responseSpec,
     final String fixedDepositAccountID) {
   final String GET_STATUS_OF_FIXED_DEPOSIT_ACCOUNT_URL =
       FIXED_DEPOSIT_ACCOUNT_URL + "/" + fixedDepositAccountID + "?" + Utils.TENANT_IDENTIFIER;
   return Utils.performServerGet(
       requestSpec, responseSpec, GET_STATUS_OF_FIXED_DEPOSIT_ACCOUNT_URL, "status");
 }
Example #4
0
  public static Object getCodeById(
      final RequestSpecification requestSpec,
      final ResponseSpecification responseSpec,
      final Integer codeId,
      final String jsonAttributeToGetback) {

    return Utils.performServerGet(
        requestSpec,
        responseSpec,
        CODE_URL + "/" + codeId + "?" + Utils.TENANT_IDENTIFIER,
        jsonAttributeToGetback);
  }
Example #5
0
  public static Object getCodeValuesForCode(
      final RequestSpecification requestSpec,
      final ResponseSpecification responseSpec,
      final Integer codeId,
      final String jsonAttributeToGetback) {

    return Utils.performServerGet(
        requestSpec,
        responseSpec,
        CODE_VALUE_URL.replace("[codeId]", codeId.toString()) + "?" + Utils.TENANT_IDENTIFIER,
        jsonAttributeToGetback);
  }
 public HashMap getPrepayAmount(
     final RequestSpecification requestSpec,
     final ResponseSpecification responseSpec,
     final Integer loanID) {
   final String URL =
       "/mifosng-provider/api/v1/loans/"
           + loanID
           + "/transactions/template?command=prepayLoan&"
           + Utils.TENANT_IDENTIFIER;
   final HashMap response = Utils.performServerGet(requestSpec, responseSpec, URL, "");
   return response;
 }
 public Object getLoanProductDetail(
     final RequestSpecification requestSpec,
     final ResponseSpecification responseSpec,
     final Integer loanProductId,
     final String jsonAttributeToGetBack) {
   final String URL =
       "/mifosng-provider/api/v1/loanproducts/"
           + loanProductId
           + "?associations=all&"
           + Utils.TENANT_IDENTIFIER;
   return Utils.performServerGet(requestSpec, responseSpec, URL, jsonAttributeToGetBack);
 }
 public ArrayList getLoanRepaymentSchedule(
     final RequestSpecification requestSpec,
     final ResponseSpecification responseSpec,
     final Integer loanID) {
   final String URL =
       "/mifosng-provider/api/v1/loans/"
           + loanID
           + "?associations=repaymentSchedule&"
           + Utils.TENANT_IDENTIFIER;
   final HashMap response =
       Utils.performServerGet(requestSpec, responseSpec, URL, "repaymentSchedule");
   return (ArrayList) response.get("periods");
 }
Example #9
0
  public static Object getAllCodes(
      final RequestSpecification requestSpec, final ResponseSpecification responseSpec) {

    return Utils.performServerGet(
        requestSpec, responseSpec, CODE_URL + "?" + Utils.TENANT_IDENTIFIER, "");
  }
 public Integer getLoanOfficerId(final String loanId) {
   final String GET_LOAN_URL =
       "/mifosng-provider/api/v1/loans/" + loanId + "?" + Utils.TENANT_IDENTIFIER;
   return Utils.performServerGet(
       this.requestSpec, this.responseSpec, GET_LOAN_URL, "loanOfficerId");
 }
 public ArrayList getLoanCharges(final Integer loanId) {
   final String GET_LOAN_CHARGES_URL =
       "/mifosng-provider/api/v1/loans/" + loanId + "/charges?" + Utils.TENANT_IDENTIFIER;
   return Utils.performServerGet(requestSpec, responseSpec, GET_LOAN_CHARGES_URL, "");
 }