UNPKG

fineract_sdk

Version:

Wrapper around fineract api.

80 lines (79 loc) 6.29 kB
/** * 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 { BatchResponse } from '../models'; import { PostBatchesRequest } from '../models'; /** * BatchAPIApi - axios parameter creator * @export */ export declare const BatchAPIApiAxiosParamCreator: (configuration?: Configuration) => { /** * The Apache Fineract Batch API is also capable of executing all the requests in a single transaction, by setting a Query Parameter, \"enclosingTransaction=true\". So, if one or more of the requests in a batch returns an erroneous response all of the Data base transactions made by other successful requests will be rolled back. If there has been a rollback in a transaction then a single response will be provided, with a \'400\' status code and a body consisting of the error details of the first failed request. * @summary Batch requests in a single transaction * @param {PostBatchesRequest} postBatchesRequest * @param {boolean} [enclosingTransaction] enclosingTransaction * @param {*} [options] Override http request option. * @throws {RequiredError} */ handleBatchRequests: (postBatchesRequest: PostBatchesRequest, enclosingTransaction?: boolean, options?: any) => Promise<RequestArgs>; }; /** * BatchAPIApi - functional programming interface * @export */ export declare const BatchAPIApiFp: (configuration?: Configuration) => { /** * The Apache Fineract Batch API is also capable of executing all the requests in a single transaction, by setting a Query Parameter, \"enclosingTransaction=true\". So, if one or more of the requests in a batch returns an erroneous response all of the Data base transactions made by other successful requests will be rolled back. If there has been a rollback in a transaction then a single response will be provided, with a \'400\' status code and a body consisting of the error details of the first failed request. * @summary Batch requests in a single transaction * @param {PostBatchesRequest} postBatchesRequest * @param {boolean} [enclosingTransaction] enclosingTransaction * @param {*} [options] Override http request option. * @throws {RequiredError} */ handleBatchRequests(postBatchesRequest: PostBatchesRequest, enclosingTransaction?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchResponse>>; }; /** * BatchAPIApi - factory interface * @export */ export declare const BatchAPIApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * The Apache Fineract Batch API is also capable of executing all the requests in a single transaction, by setting a Query Parameter, \"enclosingTransaction=true\". So, if one or more of the requests in a batch returns an erroneous response all of the Data base transactions made by other successful requests will be rolled back. If there has been a rollback in a transaction then a single response will be provided, with a \'400\' status code and a body consisting of the error details of the first failed request. * @summary Batch requests in a single transaction * @param {PostBatchesRequest} postBatchesRequest * @param {boolean} [enclosingTransaction] enclosingTransaction * @param {*} [options] Override http request option. * @throws {RequiredError} */ handleBatchRequests(postBatchesRequest: PostBatchesRequest, enclosingTransaction?: boolean, options?: any): AxiosPromise<BatchResponse>; }; /** * BatchAPIApi - object-oriented interface * @export * @class BatchAPIApi * @extends {BaseAPI} */ export declare class BatchAPIApi extends BaseAPI { /** * The Apache Fineract Batch API is also capable of executing all the requests in a single transaction, by setting a Query Parameter, \"enclosingTransaction=true\". So, if one or more of the requests in a batch returns an erroneous response all of the Data base transactions made by other successful requests will be rolled back. If there has been a rollback in a transaction then a single response will be provided, with a \'400\' status code and a body consisting of the error details of the first failed request. * @summary Batch requests in a single transaction * @param {PostBatchesRequest} postBatchesRequest * @param {boolean} [enclosingTransaction] enclosingTransaction * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BatchAPIApi */ handleBatchRequests(postBatchesRequest: PostBatchesRequest, enclosingTransaction?: boolean, options?: any): Promise<import("axios").AxiosResponse<BatchResponse>>; }