fineract_sdk
Version:
Wrapper around fineract api.
594 lines (593 loc) • 44.5 kB
TypeScript
/**
* Apache Fineract
* Apache Fineract is a secure, multi-tenanted microfinance platform The goal of the Apache Fineract API is to empower developers to build apps on top of the Apache Fineract Platform<br>The [reference app](https://cui.fineract.dev) (username: mifos, password: password) works on the same demo tenant as the interactive links in this documentation - The API is organized around [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) - Find out more about Apache Fineract [here](/fineract-provider/api-docs/apiLive.htm#top) - You can [Try The API From Your Browser](/fineract-provider/api-docs/apiLive.htm#interact) - The Generic Options are available [here](/fineract-provider/api-docs/apiLive.htm#genopts) - Find out more about [Updating Dates and Numbers](/fineract-provider/api-docs/apiLive.htm#dates_and_numbers) - For the Authentication and the Basic of HTTP and HTTPS refer [here](/fineract-provider/api-docs/apiLive.htm#authentication_overview) - Check about ERROR codes [here](/fineract-provider/api-docs/apiLive.htm#errors) Please refer to the [old documentation](/fineract-provider/api-docs/apiLive.htm) for any documentation queries
*
* The version of the OpenAPI document: 1.5.0-66-gffae7d4-dirty
* Contact: dev@fineract.apache.org
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AxiosPromise, AxiosInstance } from 'axios';
import { Configuration } from '../configuration';
import { RequestArgs, BaseAPI } from '../base';
import { DeleteLoansLoanIdResponse } from '../models';
import { FormDataContentDisposition } from '../models';
import { GetLoansLoanIdResponse } from '../models';
import { GetLoansResponse } from '../models';
import { GetLoansTemplateResponse } from '../models';
import { PostLoansLoanIdRequest } from '../models';
import { PostLoansLoanIdResponse } from '../models';
import { PostLoansRequest } from '../models';
import { PostLoansResponse } from '../models';
import { PutLoansLoanIdRequest } from '../models';
import { PutLoansLoanIdResponse } from '../models';
/**
* LoansApi - axios parameter creator
* @export
*/
export declare const LoansApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* It calculates the loan repayment Schedule Submits a new loan application Mandatory Fields: clientId, productId, principal, loanTermFrequency, loanTermFrequencyType, loanType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyId, expectedDisbursementDate, submittedOnDate, loanType Optional Fields: graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged, linkAccountId, allowPartialPeriodInterestCalcualtion, fixedEmiAmount, maxOutstandingLoanBalance, disbursementData, graceOnArrearsAgeing, createStandingInstructionAtDisbursement (requires linkedAccountId if set to true) Additional Mandatory Fields if interest recalculation is enabled for product and Rest frequency not same as repayment period: recalculationRestFrequencyDate Additional Mandatory Fields if interest recalculation with interest/fee compounding is enabled for product and compounding frequency not same as repayment period: recalculationCompoundingFrequencyDate Additional Mandatory Field if Entity-Datatable Check is enabled for the entity of type loan: datatables
* @summary Calculate loan repayment schedule | Submit a new Loan Application
* @param {PostLoansRequest} postLoansRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateLoanScheduleOrSubmitLoanApplication: (postLoansRequest: PostLoansRequest, command?: string, options?: any) => Promise<RequestArgs>;
/**
* Note: Only loans in \"Submitted and awaiting approval\" status can be deleted.
* @summary Delete a Loan Application
* @param {number} loanId loanId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteLoanApplication: (loanId: number, options?: any) => Promise<RequestArgs>;
/**
*
* @param {number} glimId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGlimRepaymentTemplate: (glimId: number, options?: any) => Promise<RequestArgs>;
/**
*
* @param {number} [officeId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLoanRepaymentTemplate: (officeId?: number, dateFormat?: string, options?: any) => Promise<RequestArgs>;
/**
*
* @param {number} [officeId]
* @param {number} [staffId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLoansTemplate: (officeId?: number, staffId?: number, dateFormat?: string, options?: any) => Promise<RequestArgs>;
/**
* Approve GLIM Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the GLIM application Undo GLIM Application Approval: Undoes the GLIM Application Approval Reject GLIM Application: Mandatory Fields: rejectedOnDate Allows you to reject the GLIM application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal
* @summary Approve GLIM Application | Undo GLIM Application Approval | Reject GLIM Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} glimId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
glimStateTransitions: (glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any) => Promise<RequestArgs>;
/**
* Loan application can only be modified when in \'Submitted and pending approval\' state. Once the application is approved, the details cannot be changed using this method.
* @summary Modify a loan application
* @param {number} loanId loanId
* @param {PutLoansLoanIdRequest} putLoansLoanIdRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
modifyLoanApplication: (loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, options?: any) => Promise<RequestArgs>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postLoanRepaymentTemplate: (file?: any, locale?: string, dateFormat?: string, options?: any) => Promise<RequestArgs>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postLoanTemplate: (file?: any, locale?: string, dateFormat?: string, options?: any) => Promise<RequestArgs>;
/**
* The list capability of loans can support pagination and sorting. Example Requests: loans loans?fields=accountNo loans?offset=10&limit=50 loans?orderBy=accountNo&sortOrder=DESC
* @summary List Loans
* @param {string} [sqlSearch] sqlSearch
* @param {string} [externalId] externalId
* @param {number} [offset] offset
* @param {number} [limit] limit
* @param {string} [orderBy] orderBy
* @param {string} [sortOrder] sortOrder
* @param {string} [accountNo] accountNo
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveAll27: (sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, options?: any) => Promise<RequestArgs>;
/**
*
* @param {number} loanId loanId
* @param {string} [templateType] templateType
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveApprovalTemplate: (loanId: number, templateType?: string, options?: any) => Promise<RequestArgs>;
/**
* Note: template=true parameter doesn\'t apply to this resource.Example Requests: loans/1 loans/1?fields=id,principal,annualInterestRate loans/1?associations=all loans/1?associations=all&exclude=guarantors loans/1?fields=id,principal,annualInterestRate&associations=repaymentSchedule,transactions
* @summary Retrieve a Loan
* @param {number} loanId loanId
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveLoan: (loanId: number, staffInSelectedOfficeOnly?: boolean, options?: any) => Promise<RequestArgs>;
/**
* Approve Loan Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the loan application Recover Loan Guarantee: Recovers the loan guarantee Undo Loan Application Approval: Undoes the Loan Application Approval Assign a Loan Officer: Allows you to assign Loan Officer for existing Loan. Unassign a Loan Officer: Allows you to unassign the Loan Officer. Reject Loan Application: Mandatory Fields: rejectedOnDate Allows you to reject the loan application Applicant Withdraws from Loan Application: Mandatory Fields: withdrawnOnDate Allows the applicant to withdraw the loan application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal Showing request and response for Assign a Loan Officer
* @summary Approve Loan Application | Recover Loan Guarantee | Undo Loan Application Approval | Assign a Loan Officer | Unassign a Loan Officer | Reject Loan Application | Applicant Withdraws from Loan Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} loanId loanId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
stateTransitions: (loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any) => Promise<RequestArgs>;
/**
* This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Requests: loans/template?templateType=individual&clientId=1 loans/template?templateType=individual&clientId=1&productId=1
* @summary Retrieve Loan Details Template
* @param {number} [clientId] clientId
* @param {number} [groupId] groupId
* @param {number} [productId] productId
* @param {string} [templateType] templateType
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {boolean} [activeOnly] activeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
template10: (clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, options?: any) => Promise<RequestArgs>;
};
/**
* LoansApi - functional programming interface
* @export
*/
export declare const LoansApiFp: (configuration?: Configuration) => {
/**
* It calculates the loan repayment Schedule Submits a new loan application Mandatory Fields: clientId, productId, principal, loanTermFrequency, loanTermFrequencyType, loanType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyId, expectedDisbursementDate, submittedOnDate, loanType Optional Fields: graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged, linkAccountId, allowPartialPeriodInterestCalcualtion, fixedEmiAmount, maxOutstandingLoanBalance, disbursementData, graceOnArrearsAgeing, createStandingInstructionAtDisbursement (requires linkedAccountId if set to true) Additional Mandatory Fields if interest recalculation is enabled for product and Rest frequency not same as repayment period: recalculationRestFrequencyDate Additional Mandatory Fields if interest recalculation with interest/fee compounding is enabled for product and compounding frequency not same as repayment period: recalculationCompoundingFrequencyDate Additional Mandatory Field if Entity-Datatable Check is enabled for the entity of type loan: datatables
* @summary Calculate loan repayment schedule | Submit a new Loan Application
* @param {PostLoansRequest} postLoansRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostLoansResponse>>;
/**
* Note: Only loans in \"Submitted and awaiting approval\" status can be deleted.
* @summary Delete a Loan Application
* @param {number} loanId loanId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteLoanApplication(loanId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteLoansLoanIdResponse>>;
/**
*
* @param {number} glimId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGlimRepaymentTemplate(glimId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
/**
*
* @param {number} [officeId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
*
* @param {number} [officeId]
* @param {number} [staffId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
* Approve GLIM Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the GLIM application Undo GLIM Application Approval: Undoes the GLIM Application Approval Reject GLIM Application: Mandatory Fields: rejectedOnDate Allows you to reject the GLIM application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal
* @summary Approve GLIM Application | Undo GLIM Application Approval | Reject GLIM Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} glimId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostLoansLoanIdResponse>>;
/**
* Loan application can only be modified when in \'Submitted and pending approval\' state. Once the application is approved, the details cannot be changed using this method.
* @summary Modify a loan application
* @param {number} loanId loanId
* @param {PutLoansLoanIdRequest} putLoansLoanIdRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PutLoansLoanIdResponse>>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postLoanRepaymentTemplate(file?: any, locale?: string, dateFormat?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postLoanTemplate(file?: any, locale?: string, dateFormat?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
/**
* The list capability of loans can support pagination and sorting. Example Requests: loans loans?fields=accountNo loans?offset=10&limit=50 loans?orderBy=accountNo&sortOrder=DESC
* @summary List Loans
* @param {string} [sqlSearch] sqlSearch
* @param {string} [externalId] externalId
* @param {number} [offset] offset
* @param {number} [limit] limit
* @param {string} [orderBy] orderBy
* @param {string} [sortOrder] sortOrder
* @param {string} [accountNo] accountNo
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoansResponse>>;
/**
*
* @param {number} loanId loanId
* @param {string} [templateType] templateType
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveApprovalTemplate(loanId: number, templateType?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
/**
* Note: template=true parameter doesn\'t apply to this resource.Example Requests: loans/1 loans/1?fields=id,principal,annualInterestRate loans/1?associations=all loans/1?associations=all&exclude=guarantors loans/1?fields=id,principal,annualInterestRate&associations=repaymentSchedule,transactions
* @summary Retrieve a Loan
* @param {number} loanId loanId
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoansLoanIdResponse>>;
/**
* Approve Loan Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the loan application Recover Loan Guarantee: Recovers the loan guarantee Undo Loan Application Approval: Undoes the Loan Application Approval Assign a Loan Officer: Allows you to assign Loan Officer for existing Loan. Unassign a Loan Officer: Allows you to unassign the Loan Officer. Reject Loan Application: Mandatory Fields: rejectedOnDate Allows you to reject the loan application Applicant Withdraws from Loan Application: Mandatory Fields: withdrawnOnDate Allows the applicant to withdraw the loan application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal Showing request and response for Assign a Loan Officer
* @summary Approve Loan Application | Recover Loan Guarantee | Undo Loan Application Approval | Assign a Loan Officer | Unassign a Loan Officer | Reject Loan Application | Applicant Withdraws from Loan Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} loanId loanId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostLoansLoanIdResponse>>;
/**
* This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Requests: loans/template?templateType=individual&clientId=1 loans/template?templateType=individual&clientId=1&productId=1
* @summary Retrieve Loan Details Template
* @param {number} [clientId] clientId
* @param {number} [groupId] groupId
* @param {number} [productId] productId
* @param {string} [templateType] templateType
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {boolean} [activeOnly] activeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLoansTemplateResponse>>;
};
/**
* LoansApi - factory interface
* @export
*/
export declare const LoansApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* It calculates the loan repayment Schedule Submits a new loan application Mandatory Fields: clientId, productId, principal, loanTermFrequency, loanTermFrequencyType, loanType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyId, expectedDisbursementDate, submittedOnDate, loanType Optional Fields: graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged, linkAccountId, allowPartialPeriodInterestCalcualtion, fixedEmiAmount, maxOutstandingLoanBalance, disbursementData, graceOnArrearsAgeing, createStandingInstructionAtDisbursement (requires linkedAccountId if set to true) Additional Mandatory Fields if interest recalculation is enabled for product and Rest frequency not same as repayment period: recalculationRestFrequencyDate Additional Mandatory Fields if interest recalculation with interest/fee compounding is enabled for product and compounding frequency not same as repayment period: recalculationCompoundingFrequencyDate Additional Mandatory Field if Entity-Datatable Check is enabled for the entity of type loan: datatables
* @summary Calculate loan repayment schedule | Submit a new Loan Application
* @param {PostLoansRequest} postLoansRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, options?: any): AxiosPromise<PostLoansResponse>;
/**
* Note: Only loans in \"Submitted and awaiting approval\" status can be deleted.
* @summary Delete a Loan Application
* @param {number} loanId loanId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteLoanApplication(loanId: number, options?: any): AxiosPromise<DeleteLoansLoanIdResponse>;
/**
*
* @param {number} glimId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGlimRepaymentTemplate(glimId: number, options?: any): AxiosPromise<string>;
/**
*
* @param {number} [officeId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, options?: any): AxiosPromise<void>;
/**
*
* @param {number} [officeId]
* @param {number} [staffId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, options?: any): AxiosPromise<void>;
/**
* Approve GLIM Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the GLIM application Undo GLIM Application Approval: Undoes the GLIM Application Approval Reject GLIM Application: Mandatory Fields: rejectedOnDate Allows you to reject the GLIM application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal
* @summary Approve GLIM Application | Undo GLIM Application Approval | Reject GLIM Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} glimId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any): AxiosPromise<PostLoansLoanIdResponse>;
/**
* Loan application can only be modified when in \'Submitted and pending approval\' state. Once the application is approved, the details cannot be changed using this method.
* @summary Modify a loan application
* @param {number} loanId loanId
* @param {PutLoansLoanIdRequest} putLoansLoanIdRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, options?: any): AxiosPromise<PutLoansLoanIdResponse>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postLoanRepaymentTemplate(file?: any, locale?: string, dateFormat?: string, options?: any): AxiosPromise<string>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postLoanTemplate(file?: any, locale?: string, dateFormat?: string, options?: any): AxiosPromise<string>;
/**
* The list capability of loans can support pagination and sorting. Example Requests: loans loans?fields=accountNo loans?offset=10&limit=50 loans?orderBy=accountNo&sortOrder=DESC
* @summary List Loans
* @param {string} [sqlSearch] sqlSearch
* @param {string} [externalId] externalId
* @param {number} [offset] offset
* @param {number} [limit] limit
* @param {string} [orderBy] orderBy
* @param {string} [sortOrder] sortOrder
* @param {string} [accountNo] accountNo
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, options?: any): AxiosPromise<GetLoansResponse>;
/**
*
* @param {number} loanId loanId
* @param {string} [templateType] templateType
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveApprovalTemplate(loanId: number, templateType?: string, options?: any): AxiosPromise<string>;
/**
* Note: template=true parameter doesn\'t apply to this resource.Example Requests: loans/1 loans/1?fields=id,principal,annualInterestRate loans/1?associations=all loans/1?associations=all&exclude=guarantors loans/1?fields=id,principal,annualInterestRate&associations=repaymentSchedule,transactions
* @summary Retrieve a Loan
* @param {number} loanId loanId
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, options?: any): AxiosPromise<GetLoansLoanIdResponse>;
/**
* Approve Loan Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the loan application Recover Loan Guarantee: Recovers the loan guarantee Undo Loan Application Approval: Undoes the Loan Application Approval Assign a Loan Officer: Allows you to assign Loan Officer for existing Loan. Unassign a Loan Officer: Allows you to unassign the Loan Officer. Reject Loan Application: Mandatory Fields: rejectedOnDate Allows you to reject the loan application Applicant Withdraws from Loan Application: Mandatory Fields: withdrawnOnDate Allows the applicant to withdraw the loan application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal Showing request and response for Assign a Loan Officer
* @summary Approve Loan Application | Recover Loan Guarantee | Undo Loan Application Approval | Assign a Loan Officer | Unassign a Loan Officer | Reject Loan Application | Applicant Withdraws from Loan Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} loanId loanId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any): AxiosPromise<PostLoansLoanIdResponse>;
/**
* This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Requests: loans/template?templateType=individual&clientId=1 loans/template?templateType=individual&clientId=1&productId=1
* @summary Retrieve Loan Details Template
* @param {number} [clientId] clientId
* @param {number} [groupId] groupId
* @param {number} [productId] productId
* @param {string} [templateType] templateType
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {boolean} [activeOnly] activeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, options?: any): AxiosPromise<GetLoansTemplateResponse>;
};
/**
* LoansApi - object-oriented interface
* @export
* @class LoansApi
* @extends {BaseAPI}
*/
export declare class LoansApi extends BaseAPI {
/**
* It calculates the loan repayment Schedule Submits a new loan application Mandatory Fields: clientId, productId, principal, loanTermFrequency, loanTermFrequencyType, loanType, numberOfRepayments, repaymentEvery, repaymentFrequencyType, interestRatePerPeriod, amortizationType, interestType, interestCalculationPeriodType, transactionProcessingStrategyId, expectedDisbursementDate, submittedOnDate, loanType Optional Fields: graceOnPrincipalPayment, graceOnInterestPayment, graceOnInterestCharged, linkAccountId, allowPartialPeriodInterestCalcualtion, fixedEmiAmount, maxOutstandingLoanBalance, disbursementData, graceOnArrearsAgeing, createStandingInstructionAtDisbursement (requires linkedAccountId if set to true) Additional Mandatory Fields if interest recalculation is enabled for product and Rest frequency not same as repayment period: recalculationRestFrequencyDate Additional Mandatory Fields if interest recalculation with interest/fee compounding is enabled for product and compounding frequency not same as repayment period: recalculationCompoundingFrequencyDate Additional Mandatory Field if Entity-Datatable Check is enabled for the entity of type loan: datatables
* @summary Calculate loan repayment schedule | Submit a new Loan Application
* @param {PostLoansRequest} postLoansRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
calculateLoanScheduleOrSubmitLoanApplication(postLoansRequest: PostLoansRequest, command?: string, options?: any): Promise<import("axios").AxiosResponse<PostLoansResponse>>;
/**
* Note: Only loans in \"Submitted and awaiting approval\" status can be deleted.
* @summary Delete a Loan Application
* @param {number} loanId loanId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
deleteLoanApplication(loanId: number, options?: any): Promise<import("axios").AxiosResponse<DeleteLoansLoanIdResponse>>;
/**
*
* @param {number} glimId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
getGlimRepaymentTemplate(glimId: number, options?: any): Promise<import("axios").AxiosResponse<string>>;
/**
*
* @param {number} [officeId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
getLoanRepaymentTemplate(officeId?: number, dateFormat?: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
/**
*
* @param {number} [officeId]
* @param {number} [staffId]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
getLoansTemplate(officeId?: number, staffId?: number, dateFormat?: string, options?: any): Promise<import("axios").AxiosResponse<void>>;
/**
* Approve GLIM Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the GLIM application Undo GLIM Application Approval: Undoes the GLIM Application Approval Reject GLIM Application: Mandatory Fields: rejectedOnDate Allows you to reject the GLIM application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal
* @summary Approve GLIM Application | Undo GLIM Application Approval | Reject GLIM Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} glimId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
glimStateTransitions(glimId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any): Promise<import("axios").AxiosResponse<PostLoansLoanIdResponse>>;
/**
* Loan application can only be modified when in \'Submitted and pending approval\' state. Once the application is approved, the details cannot be changed using this method.
* @summary Modify a loan application
* @param {number} loanId loanId
* @param {PutLoansLoanIdRequest} putLoansLoanIdRequest
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
modifyLoanApplication(loanId: number, putLoansLoanIdRequest: PutLoansLoanIdRequest, options?: any): Promise<import("axios").AxiosResponse<PutLoansLoanIdResponse>>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
postLoanRepaymentTemplate(file?: FormDataContentDisposition, locale?: string, dateFormat?: string, options?: any): Promise<import("axios").AxiosResponse<string>>;
/**
*
* @param {FormDataContentDisposition} [file]
* @param {string} [locale]
* @param {string} [dateFormat]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
postLoanTemplate(file?: FormDataContentDisposition, locale?: string, dateFormat?: string, options?: any): Promise<import("axios").AxiosResponse<string>>;
/**
* The list capability of loans can support pagination and sorting. Example Requests: loans loans?fields=accountNo loans?offset=10&limit=50 loans?orderBy=accountNo&sortOrder=DESC
* @summary List Loans
* @param {string} [sqlSearch] sqlSearch
* @param {string} [externalId] externalId
* @param {number} [offset] offset
* @param {number} [limit] limit
* @param {string} [orderBy] orderBy
* @param {string} [sortOrder] sortOrder
* @param {string} [accountNo] accountNo
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
retrieveAll27(sqlSearch?: string, externalId?: string, offset?: number, limit?: number, orderBy?: string, sortOrder?: string, accountNo?: string, options?: any): Promise<import("axios").AxiosResponse<GetLoansResponse>>;
/**
*
* @param {number} loanId loanId
* @param {string} [templateType] templateType
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
retrieveApprovalTemplate(loanId: number, templateType?: string, options?: any): Promise<import("axios").AxiosResponse<string>>;
/**
* Note: template=true parameter doesn\'t apply to this resource.Example Requests: loans/1 loans/1?fields=id,principal,annualInterestRate loans/1?associations=all loans/1?associations=all&exclude=guarantors loans/1?fields=id,principal,annualInterestRate&associations=repaymentSchedule,transactions
* @summary Retrieve a Loan
* @param {number} loanId loanId
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
retrieveLoan(loanId: number, staffInSelectedOfficeOnly?: boolean, options?: any): Promise<import("axios").AxiosResponse<GetLoansLoanIdResponse>>;
/**
* Approve Loan Application: Mandatory Fields: approvedOnDate Optional Fields: approvedLoanAmount and expectedDisbursementDate Approves the loan application Recover Loan Guarantee: Recovers the loan guarantee Undo Loan Application Approval: Undoes the Loan Application Approval Assign a Loan Officer: Allows you to assign Loan Officer for existing Loan. Unassign a Loan Officer: Allows you to unassign the Loan Officer. Reject Loan Application: Mandatory Fields: rejectedOnDate Allows you to reject the loan application Applicant Withdraws from Loan Application: Mandatory Fields: withdrawnOnDate Allows the applicant to withdraw the loan application Disburse Loan: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the Loan Disburse Loan To Savings Account: Mandatory Fields: actualDisbursementDate Optional Fields: transactionAmount and fixedEmiAmount Disburses the loan to Saving Account Undo Loan Disbursal: Undoes the Loan Disbursal Showing request and response for Assign a Loan Officer
* @summary Approve Loan Application | Recover Loan Guarantee | Undo Loan Application Approval | Assign a Loan Officer | Unassign a Loan Officer | Reject Loan Application | Applicant Withdraws from Loan Application | Disburse Loan Disburse Loan To Savings Account | Undo Loan Disbursal
* @param {number} loanId loanId
* @param {PostLoansLoanIdRequest} postLoansLoanIdRequest
* @param {string} [command] command
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
stateTransitions(loanId: number, postLoansLoanIdRequest: PostLoansLoanIdRequest, command?: string, options?: any): Promise<import("axios").AxiosResponse<PostLoansLoanIdResponse>>;
/**
* This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Requests: loans/template?templateType=individual&clientId=1 loans/template?templateType=individual&clientId=1&productId=1
* @summary Retrieve Loan Details Template
* @param {number} [clientId] clientId
* @param {number} [groupId] groupId
* @param {number} [productId] productId
* @param {string} [templateType] templateType
* @param {boolean} [staffInSelectedOfficeOnly] staffInSelectedOfficeOnly
* @param {boolean} [activeOnly] activeOnly
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof LoansApi
*/
template10(clientId?: number, groupId?: number, productId?: number, templateType?: string, staffInSelectedOfficeOnly?: boolean, activeOnly?: boolean, options?: any): Promise<import("axios").AxiosResponse<GetLoansTemplateResponse>>;
}