Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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");
 }
Esempio n. 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);
  }
Esempio n. 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);
  }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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);
 }
Esempio n. 8
0
 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");
 }
Esempio n. 9
0
  public static Object getAllCodes(
      final RequestSpecification requestSpec, final ResponseSpecification responseSpec) {

    return Utils.performServerGet(
        requestSpec, responseSpec, CODE_URL + "?" + Utils.TENANT_IDENTIFIER, "");
  }
Esempio n. 10
0
 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");
 }
Esempio n. 11
0
 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, "");
 }