UNPKG

fineract-typescript-client

Version:
1,139 lines 4.34 MB
/* tslint:disable */ /* eslint-disable */ /** * Apache Fineract REST API * 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. The [reference app](https://cui.fineract.dev) (username: mifos, password: password) works on the same demo tenant as the interactive links in this documentation. Until we complete the new REST API documentation you still have the legacy documentation available [here](https://fineract.apache.org/docs/legacy/). Please check [the current Fineract documentation](https://fineract.apache.org/docs/current/) for more information. * * The version of the OpenAPI document: 1.13.0-SNAPSHOT * 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 globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; // @ts-ignore import { BASE_PATH, BaseAPI, operationServerMap } from './base'; export const BusinessDateResponseTypeEnum = { BusinessDate: 'BUSINESS_DATE', CobDate: 'COB_DATE' }; export const BusinessDateUpdateRequestTypeEnum = { BusinessDate: 'BUSINESS_DATE', CobDate: 'COB_DATE' }; export const BusinessDateUpdateResponseTypeEnum = { BusinessDate: 'BUSINESS_DATE', CobDate: 'COB_DATE' }; export const ChargeFeeOnMonthDayMonthEnum = { January: 'JANUARY', February: 'FEBRUARY', March: 'MARCH', April: 'APRIL', May: 'MAY', June: 'JUNE', July: 'JULY', August: 'AUGUST', September: 'SEPTEMBER', October: 'OCTOBER', November: 'NOVEMBER', December: 'DECEMBER' }; export const ExternalTransferDataStatusEnum = { Active: 'ACTIVE', ActiveIntermediate: 'ACTIVE_INTERMEDIATE', Declined: 'DECLINED', Pending: 'PENDING', PendingIntermediate: 'PENDING_INTERMEDIATE', Buyback: 'BUYBACK', BuybackIntermediate: 'BUYBACK_INTERMEDIATE', Cancelled: 'CANCELLED' }; export const ExternalTransferDataSubStatusEnum = { BalanceZero: 'BALANCE_ZERO', BalanceNegative: 'BALANCE_NEGATIVE', SamedayTransfers: 'SAMEDAY_TRANSFERS', UserRequested: 'USER_REQUESTED', Unsold: 'UNSOLD' }; export const FilterDataOperatorEnum = { Eq: 'EQ', Neq: 'NEQ', Gte: 'GTE', Lte: 'LTE', Gt: 'GT', Lt: 'LT', Like: 'LIKE', Nlike: 'NLIKE', Btw: 'BTW', Nbtw: 'NBTW', In: 'IN', Nin: 'NIN', Null: 'NULL', Nnull: 'NNULL' }; export const FinancialActivityDataMappedGLAccountTypeEnum = { Asset: 'ASSET', Liability: 'LIABILITY', Equity: 'EQUITY', Income: 'INCOME', Expense: 'EXPENSE' }; export const GetSavingsAccountTransactionsPageItemEntryTypeEnum = { Credit: 'CREDIT', Debit: 'DEBIT' }; export const GetTellersResponseStatusEnum = { Invalid: 'INVALID', Pending: 'PENDING', Active: 'ACTIVE', Inactive: 'INACTIVE', Closed: 'CLOSED' }; export const InterestPeriodMcRoundingModeEnum = { Up: 'UP', Down: 'DOWN', Ceiling: 'CEILING', Floor: 'FLOOR', HalfUp: 'HALF_UP', HalfDown: 'HALF_DOWN', HalfEven: 'HALF_EVEN', Unnecessary: 'UNNECESSARY' }; export const InteropIdentifierRequestDataIdTypeEnum = { Msisdn: 'MSISDN', Email: 'EMAIL', PersonalId: 'PERSONAL_ID', Business: 'BUSINESS', Device: 'DEVICE', AccountId: 'ACCOUNT_ID', Iban: 'IBAN', Alias: 'ALIAS', Bban: 'BBAN' }; export const InteropQuoteRequestDataAmountTypeEnum = { Send: 'SEND', Receive: 'RECEIVE' }; export const InteropQuoteRequestDataTransactionRoleEnum = { Payer: 'PAYER', Payee: 'PAYEE' }; export const InteropQuoteResponseDataStateEnum = { Accepted: 'ACCEPTED', Rejected: 'REJECTED' }; export const InteropTransactionDataTransactionTypeEnum = { Invalid: 'INVALID', Deposit: 'DEPOSIT', Withdrawal: 'WITHDRAWAL', InterestPosting: 'INTEREST_POSTING', WithdrawalFee: 'WITHDRAWAL_FEE', AnnualFee: 'ANNUAL_FEE', WaiveCharges: 'WAIVE_CHARGES', PayCharge: 'PAY_CHARGE', DividendPayout: 'DIVIDEND_PAYOUT', Accrual: 'ACCRUAL', InitiateTransfer: 'INITIATE_TRANSFER', ApproveTransfer: 'APPROVE_TRANSFER', WithdrawTransfer: 'WITHDRAW_TRANSFER', RejectTransfer: 'REJECT_TRANSFER', WrittenOff: 'WRITTEN_OFF', OverdraftInterest: 'OVERDRAFT_INTEREST', WithholdTax: 'WITHHOLD_TAX', Escheat: 'ESCHEAT', AmountHold: 'AMOUNT_HOLD', AmountRelease: 'AMOUNT_RELEASE' }; export const InteropTransactionRequestDataTransactionRoleEnum = { Payer: 'PAYER', Payee: 'PAYEE' }; export const InteropTransactionRequestResponseDataStateEnum = { Accepted: 'ACCEPTED', Rejected: 'REJECTED' }; export const InteropTransactionTypeDataInitiatorEnum = { Payer: 'PAYER', Payee: 'PAYEE' }; export const InteropTransactionTypeDataInitiatorTypeEnum = { Consumer: 'CONSUMER', Agent: 'AGENT', Business: 'BUSINESS', Device: 'DEVICE' }; export const InteropTransactionTypeDataScenarioEnum = { Deposit: 'DEPOSIT', Withdrawal: 'WITHDRAWAL', Transfer: 'TRANSFER', Payment: 'PAYMENT', Refund: 'REFUND' }; export const InteropTransferRequestDataTransactionRoleEnum = { Payer: 'PAYER', Payee: 'PAYEE' }; export const InteropTransferResponseDataStateEnum = { Accepted: 'ACCEPTED', Rejected: 'REJECTED' }; export const LoanAccountLockLockOwnerEnum = { LoanCobChunkProcessing: 'LOAN_COB_CHUNK_PROCESSING', LoanInlineCobProcessing: 'LOAN_INLINE_COB_PROCESSING' }; export const LoanAccountLockNewLockOwnerEnum = { LoanCobChunkProcessing: 'LOAN_COB_CHUNK_PROCESSING', LoanInlineCobProcessing: 'LOAN_INLINE_COB_PROCESSING' }; export const LoanProductAccountingRuleEnum = { None: 'NONE', CashBased: 'CASH BASED', AccrualPeriodic: 'ACCRUAL PERIODIC', AccrualUpfront: 'ACCRUAL UPFRONT' }; export const LoanProductInterestPeriodFrequencyTypeEnum = { Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS', Years: 'YEARS', WholeTerm: 'WHOLE_TERM', Invalid: 'INVALID' }; export const LoanProductRepaymentStartDateTypeEnum = { Invalid: 'INVALID', DisbursementDate: 'DISBURSEMENT_DATE', SubmittedOnDate: 'SUBMITTED_ON_DATE' }; export const LoanProductBorrowerCycleVariationDataLoanProductParamTypeEnum = { Invalid: 'INVALID', Principal: 'PRINCIPAL', Interestrate: 'INTERESTRATE', Repayment: 'REPAYMENT' }; export const LoanProductBorrowerCycleVariationDataLoanProductValueConditionTypeEnum = { Invalid: 'INVALID', Equal: 'EQUAL', Greaterthan: 'GREATERTHAN' }; export const LoanProductBorrowerCycleVariationsParamTypeEnum = { Invalid: 'INVALID', Principal: 'PRINCIPAL', Interestrate: 'INTERESTRATE', Repayment: 'REPAYMENT' }; export const LoanProductBorrowerCycleVariationsValueConditionTypeEnum = { Invalid: 'INVALID', Equal: 'EQUAL', Greaterthan: 'GREATERTHAN' }; export const LoanProductCreditAllocationRuleAllocationTypesEnum = { Penalty: 'PENALTY', Fee: 'FEE', Principal: 'PRINCIPAL', Interest: 'INTEREST' }; export const LoanProductCreditAllocationRuleTransactionTypeEnum = { Chargeback: 'CHARGEBACK' }; export const LoanProductInterestRecalculationDetailsCompoundingFrequencyTypeEnum = { Invalid: 'INVALID', SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD', Daily: 'DAILY', Weekly: 'WEEKLY', Monthly: 'MONTHLY' }; export const LoanProductInterestRecalculationDetailsPreCloseInterestCalculationStrategyEnum = { None: 'NONE', TillPreClosureDate: 'TILL_PRE_CLOSURE_DATE', TillRestFrequencyDate: 'TILL_REST_FREQUENCY_DATE' }; export const LoanProductInterestRecalculationDetailsRestFrequencyTypeEnum = { Invalid: 'INVALID', SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD', Daily: 'DAILY', Weekly: 'WEEKLY', Monthly: 'MONTHLY' }; export const LoanProductMinimumRepaymentScheduleRelatedDetailAmortizationMethodEnum = { EqualPrincipal: 'EQUAL_PRINCIPAL', EqualInstallments: 'EQUAL_INSTALLMENTS', Invalid: 'INVALID' }; export const LoanProductMinimumRepaymentScheduleRelatedDetailDaysInYearCustomStrategyEnum = { FullLeapYear: 'FULL_LEAP_YEAR', Feb29PeriodOnly: 'FEB_29_PERIOD_ONLY' }; export const LoanProductMinimumRepaymentScheduleRelatedDetailInterestCalculationPeriodMethodEnum = { Daily: 'DAILY', SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD', Invalid: 'INVALID' }; export const LoanProductMinimumRepaymentScheduleRelatedDetailInterestMethodEnum = { DecliningBalance: 'DECLINING_BALANCE', Flat: 'FLAT', Invalid: 'INVALID' }; export const LoanProductMinimumRepaymentScheduleRelatedDetailInterestPeriodFrequencyTypeEnum = { Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS', Years: 'YEARS', WholeTerm: 'WHOLE_TERM', Invalid: 'INVALID' }; export const LoanProductMinimumRepaymentScheduleRelatedDetailRepaymentPeriodFrequencyTypeEnum = { Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS', Years: 'YEARS', WholeTerm: 'WHOLE_TERM', Invalid: 'INVALID' }; export const LoanProductPaymentAllocationRuleAllocationTypesEnum = { PastDuePenalty: 'PAST_DUE_PENALTY', PastDueFee: 'PAST_DUE_FEE', PastDuePrincipal: 'PAST_DUE_PRINCIPAL', PastDueInterest: 'PAST_DUE_INTEREST', DuePenalty: 'DUE_PENALTY', DueFee: 'DUE_FEE', DuePrincipal: 'DUE_PRINCIPAL', DueInterest: 'DUE_INTEREST', InAdvancePenalty: 'IN_ADVANCE_PENALTY', InAdvanceFee: 'IN_ADVANCE_FEE', InAdvancePrincipal: 'IN_ADVANCE_PRINCIPAL', InAdvanceInterest: 'IN_ADVANCE_INTEREST' }; export const LoanProductPaymentAllocationRuleFutureInstallmentAllocationRuleEnum = { NextInstallment: 'NEXT_INSTALLMENT', LastInstallment: 'LAST_INSTALLMENT', NextLastInstallment: 'NEXT_LAST_INSTALLMENT', Reamortization: 'REAMORTIZATION' }; export const LoanProductPaymentAllocationRuleTransactionTypeEnum = { Default: 'DEFAULT', Repayment: 'REPAYMENT', DownPayment: 'DOWN_PAYMENT', MerchantIssuedRefund: 'MERCHANT_ISSUED_REFUND', PayoutRefund: 'PAYOUT_REFUND', GoodwillCredit: 'GOODWILL_CREDIT', ChargeRefund: 'CHARGE_REFUND', ChargeAdjustment: 'CHARGE_ADJUSTMENT', WaiveInterest: 'WAIVE_INTEREST', ChargePayment: 'CHARGE_PAYMENT', RefundForActiveLoan: 'REFUND_FOR_ACTIVE_LOAN', InterestPaymentWaiver: 'INTEREST_PAYMENT_WAIVER', InterestRefund: 'INTEREST_REFUND', CapitalizedIncomeAdjustment: 'CAPITALIZED_INCOME_ADJUSTMENT' }; export const LoanProductRelatedDetailAmortizationMethodEnum = { EqualPrincipal: 'EQUAL_PRINCIPAL', EqualInstallments: 'EQUAL_INSTALLMENTS', Invalid: 'INVALID' }; export const LoanProductRelatedDetailBuyDownFeeCalculationTypeEnum = { Flat: 'FLAT' }; export const LoanProductRelatedDetailBuyDownFeeIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const LoanProductRelatedDetailBuyDownFeeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const LoanProductRelatedDetailCapitalizedIncomeCalculationTypeEnum = { Flat: 'FLAT' }; export const LoanProductRelatedDetailCapitalizedIncomeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const LoanProductRelatedDetailCapitalizedIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const LoanProductRelatedDetailChargeOffBehaviourEnum = { Regular: 'REGULAR', ZeroInterest: 'ZERO_INTEREST', AccelerateMaturity: 'ACCELERATE_MATURITY' }; export const LoanProductRelatedDetailDaysInYearCustomStrategyEnum = { FullLeapYear: 'FULL_LEAP_YEAR', Feb29PeriodOnly: 'FEB_29_PERIOD_ONLY' }; export const LoanProductRelatedDetailInterestCalculationPeriodMethodEnum = { Daily: 'DAILY', SameAsRepaymentPeriod: 'SAME_AS_REPAYMENT_PERIOD', Invalid: 'INVALID' }; export const LoanProductRelatedDetailInterestMethodEnum = { DecliningBalance: 'DECLINING_BALANCE', Flat: 'FLAT', Invalid: 'INVALID' }; export const LoanProductRelatedDetailInterestPeriodFrequencyTypeEnum = { Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS', Years: 'YEARS', WholeTerm: 'WHOLE_TERM', Invalid: 'INVALID' }; export const LoanProductRelatedDetailLoanScheduleProcessingTypeEnum = { Horizontal: 'HORIZONTAL', Vertical: 'VERTICAL' }; export const LoanProductRelatedDetailLoanScheduleTypeEnum = { Cumulative: 'CUMULATIVE', Progressive: 'PROGRESSIVE' }; export const LoanProductRelatedDetailRepaymentPeriodFrequencyTypeEnum = { Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS', Years: 'YEARS', WholeTerm: 'WHOLE_TERM', Invalid: 'INVALID' }; export const LoanProductRelatedDetailSupportedInterestRefundTypesEnum = { MerchantIssuedRefund: 'MERCHANT_ISSUED_REFUND', PayoutRefund: 'PAYOUT_REFUND' }; export const LoanTransactionRelationDataRelationTypeEnum = { Invalid: 'INVALID', Chargeback: 'CHARGEBACK', ChargeAdjustment: 'CHARGE_ADJUSTMENT', Replayed: 'REPLAYED', Related: 'RELATED', Adjustment: 'ADJUSTMENT' }; export const PostLoanProductsRequestBuyDownFeeCalculationTypeEnum = { Flat: 'FLAT' }; export const PostLoanProductsRequestBuyDownFeeIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const PostLoanProductsRequestBuyDownFeeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const PostLoanProductsRequestCapitalizedIncomeCalculationTypeEnum = { Flat: 'FLAT' }; export const PostLoanProductsRequestCapitalizedIncomeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const PostLoanProductsRequestCapitalizedIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const PostLoansRequestBuyDownFeeCalculationTypeEnum = { Flat: 'FLAT' }; export const PostLoansRequestBuyDownFeeIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const PostLoansRequestBuyDownFeeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const PostLoansRequestCapitalizedIncomeCalculationTypeEnum = { Flat: 'FLAT' }; export const PostLoansRequestCapitalizedIncomeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const PostLoansRequestDaysInYearCustomStrategyEnum = { FullLeapYearFeb29PeriodOnly: 'FULL_LEAP_YEAR, FEB_29_PERIOD_ONLY' }; export const PostLoansRequestDaysInYearTypeEnum = {}; export const PostTellersRequestStatusEnum = { Invalid: 'INVALID', Pending: 'PENDING', Active: 'ACTIVE', Inactive: 'INACTIVE', Closed: 'CLOSED' }; export const PutLoanProductsProductIdRequestBuyDownFeeCalculationTypeEnum = { Flat: 'FLAT' }; export const PutLoanProductsProductIdRequestBuyDownFeeIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const PutLoanProductsProductIdRequestBuyDownFeeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const PutLoanProductsProductIdRequestCapitalizedIncomeCalculationTypeEnum = { Flat: 'FLAT' }; export const PutLoanProductsProductIdRequestCapitalizedIncomeStrategyEnum = { EqualAmortization: 'EQUAL_AMORTIZATION' }; export const PutLoanProductsProductIdRequestCapitalizedIncomeTypeEnum = { Fee: 'FEE', Interest: 'INTEREST' }; export const PutTellersRequestStatusEnum = { Invalid: 'INVALID', Pending: 'PENDING', Active: 'ACTIVE', Inactive: 'INACTIVE', Closed: 'CLOSED' }; export const ResultsetColumnHeaderDataColumnDisplayTypeEnum = { Text: 'TEXT', String: 'STRING', Integer: 'INTEGER', Float: 'FLOAT', Decimal: 'DECIMAL', Date: 'DATE', Time: 'TIME', Datetime: 'DATETIME', Boolean: 'BOOLEAN', Binary: 'BINARY', Codelookup: 'CODELOOKUP', Codevalue: 'CODEVALUE' }; export const ResultsetColumnHeaderDataColumnTypeEnum = { Bit: 'BIT', Boolean: 'BOOLEAN', Smallint: 'SMALLINT', Tinyint: 'TINYINT', Integer: 'INTEGER', Mediumint: 'MEDIUMINT', Bigint: 'BIGINT', Real: 'REAL', Float: 'FLOAT', Double: 'DOUBLE', Numeric: 'NUMERIC', Decimal: 'DECIMAL', Serial: 'SERIAL', Smallserial: 'SMALLSERIAL', Bigserial: 'BIGSERIAL', Money: 'MONEY', Char: 'CHAR', Varchar: 'VARCHAR', Longvarchar: 'LONGVARCHAR', Text: 'TEXT', Tinytext: 'TINYTEXT', Mediumtext: 'MEDIUMTEXT', Longtext: 'LONGTEXT', Json: 'JSON', Date: 'DATE', Time: 'TIME', TimeWithTimezone: 'TIME_WITH_TIMEZONE', Timestamp: 'TIMESTAMP', Datetime: 'DATETIME', TimestampWithTimezone: 'TIMESTAMP_WITH_TIMEZONE', Interval: 'INTERVAL', Binary: 'BINARY', Varbinary: 'VARBINARY', Longvarbinary: 'LONGVARBINARY', Bytea: 'BYTEA', Blob: 'BLOB', Tinyblob: 'TINYBLOB', Mediumblob: 'MEDIUMBLOB', Longblob: 'LONGBLOB' }; export const SavingsAccountTransactionDataEntryTypeEnum = { Credit: 'CREDIT', Debit: 'DEBIT' }; export const SavingsAccountTransactionEnumDataEntryTypeEnum = { Credit: 'CREDIT', Debit: 'DEBIT' }; export const SavingsAccountTransactionEnumDataTransactionTypeEnumEnum = { Invalid: 'INVALID', Deposit: 'DEPOSIT', Withdrawal: 'WITHDRAWAL', InterestPosting: 'INTEREST_POSTING', WithdrawalFee: 'WITHDRAWAL_FEE', AnnualFee: 'ANNUAL_FEE', WaiveCharges: 'WAIVE_CHARGES', PayCharge: 'PAY_CHARGE', DividendPayout: 'DIVIDEND_PAYOUT', Accrual: 'ACCRUAL', InitiateTransfer: 'INITIATE_TRANSFER', ApproveTransfer: 'APPROVE_TRANSFER', WithdrawTransfer: 'WITHDRAW_TRANSFER', RejectTransfer: 'REJECT_TRANSFER', WrittenOff: 'WRITTEN_OFF', OverdraftInterest: 'OVERDRAFT_INTEREST', WithholdTax: 'WITHHOLD_TAX', Escheat: 'ESCHEAT', AmountHold: 'AMOUNT_HOLD', AmountRelease: 'AMOUNT_RELEASE' }; export const SortOrderDirectionEnum = { Asc: 'ASC', Desc: 'DESC' }; export const StandingInstructionDataFromAccountTypeEnum = { Invalid: 'INVALID', Loan: 'LOAN', Savings: 'SAVINGS' }; export const StandingInstructionDataInstructionTypeEnum = { Invalid: 'INVALID', Fixed: 'FIXED', Dues: 'DUES' }; export const StandingInstructionDataRecurrenceFrequencyEnum = { Days: 'DAYS', Weeks: 'WEEKS', Months: 'MONTHS', Years: 'YEARS', WholeTerm: 'WHOLE_TERM', Invalid: 'INVALID' }; export const StandingInstructionDataRecurrenceTypeEnum = { Invalid: 'INVALID', Periodic: 'PERIODIC', AsPerDues: 'AS_PER_DUES' }; export const StandingInstructionDataToAccountTypeEnum = { Invalid: 'INVALID', Loan: 'LOAN', Savings: 'SAVINGS' }; export const StandingInstructionDataTransferTypeEnum = { Invalid: 'INVALID', AccountTransfer: 'ACCOUNT_TRANSFER', LoanRepayment: 'LOAN_REPAYMENT', ChargePayment: 'CHARGE_PAYMENT', InterestTransfer: 'INTEREST_TRANSFER', LoanDownPayment: 'LOAN_DOWN_PAYMENT' }; export const TellerDataStatusEnum = { Invalid: 'INVALID', Pending: 'PENDING', Active: 'ACTIVE', Inactive: 'INACTIVE', Closed: 'CLOSED' }; /** * * @export * @enum {string} */ export const TransactionType = { Disbursement: 'disbursement', Repayment: 'repayment', Waiver: 'waiver', RepaymentAtDisbursement: 'repaymentAtDisbursement', WriteOff: 'writeOff', MarkedForRescheduling: 'markedForRescheduling', RecoveryRepayment: 'recoveryRepayment', WaiveCharges: 'waiveCharges', Accrual: 'accrual', InitiateTransfer: 'initiateTransfer', ApproveTransfer: 'approveTransfer', WithdrawTransfer: 'withdrawTransfer', RejectTransfer: 'rejectTransfer', Refund: 'refund', ChargePayment: 'chargePayment', IncomePosting: 'incomePosting', CreditBalanceRefund: 'creditBalanceRefund', MerchantIssuedRefund: 'merchantIssuedRefund', PayoutRefund: 'payoutRefund', GoodwillCredit: 'goodwillCredit', ChargeRefund: 'chargeRefund', Chargeback: 'chargeback', ChargeAdjustment: 'chargeAdjustment', ChargeOff: 'chargeOff', DownPayment: 'downPayment', ReAge: 'reAge', ReAmortize: 'reAmortize', InterestPaymentWaiver: 'interestPaymentWaiver', AccrualActivity: 'accrualActivity', InterestRefund: 'interestRefund', AccrualAdjustment: 'accrualAdjustment', CapitalizedIncome: 'capitalizedIncome', CapitalizedIncomeAmortization: 'capitalizedIncomeAmortization', CapitalizedIncomeAdjustment: 'capitalizedIncomeAdjustment', ContractTermination: 'contractTermination', CapitalizedIncomeAmortizationAdjustment: 'capitalizedIncomeAmortizationAdjustment', BuyDownFeeAmortization: 'buyDownFeeAmortization', BuyDownFeeAmortizationAdjustment: 'buyDownFeeAmortizationAdjustment' }; /** * AccountNumberFormatApi - axios parameter creator * @export */ export const AccountNumberFormatApiAxiosParamCreator = function (configuration) { return { /** * Note: Account numbers created while this format was active would remain unchanged. * @summary Delete an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} */ _delete: async (accountNumberFormatId, options = {}) => { // verify required parameter 'accountNumberFormatId' is not null or undefined assertParamExists('_delete', 'accountNumberFormatId', accountNumberFormatId); const localVarPath = `/v1/accountnumberformats/{accountNumberFormatId}` .replace(`{${"accountNumberFormatId"}}`, encodeURIComponent(String(accountNumberFormatId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Note: You may associate a single Account number format for a given account type Mandatory Fields for Account number formats accountType * @summary Create an Account number format * @param {PostAccountNumberFormatsRequest} [postAccountNumberFormatsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ create: async (postAccountNumberFormatsRequest, options = {}) => { const localVarPath = `/v1/accountnumberformats`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = serializeDataIfNeeded(postAccountNumberFormatsRequest, localVarRequestOptions, configuration); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Example Requests: accountnumberformats accountnumberformats?fields=accountType,prefixType * @summary List Account number formats * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveAll3: async (options = {}) => { const localVarPath = `/v1/accountnumberformats`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Example Requests: accountnumberformats/1 accountnumberformats/1?template=true accountnumberformats/1?fields=accountType,prefixType * @summary Retrieve an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveOne: async (accountNumberFormatId, options = {}) => { // verify required parameter 'accountNumberFormatId' is not null or undefined assertParamExists('retrieveOne', 'accountNumberFormatId', accountNumberFormatId); const localVarPath = `/v1/accountnumberformats/{accountNumberFormatId}` .replace(`{${"accountNumberFormatId"}}`, encodeURIComponent(String(accountNumberFormatId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * 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 Value Lists Example Request: accountnumberformats/template * @summary Retrieve Account number format Template * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveTemplate2: async (options = {}) => { const localVarPath = `/v1/accountnumberformats/template`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Update an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {PutAccountNumberFormatsRequest} putAccountNumberFormatsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ update1: async (accountNumberFormatId, putAccountNumberFormatsRequest, options = {}) => { // verify required parameter 'accountNumberFormatId' is not null or undefined assertParamExists('update1', 'accountNumberFormatId', accountNumberFormatId); // verify required parameter 'putAccountNumberFormatsRequest' is not null or undefined assertParamExists('update1', 'putAccountNumberFormatsRequest', putAccountNumberFormatsRequest); const localVarPath = `/v1/accountnumberformats/{accountNumberFormatId}` .replace(`{${"accountNumberFormatId"}}`, encodeURIComponent(String(accountNumberFormatId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers); localVarRequestOptions.data = serializeDataIfNeeded(putAccountNumberFormatsRequest, localVarRequestOptions, configuration); return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, }; }; /** * AccountNumberFormatApi - functional programming interface * @export */ export const AccountNumberFormatApiFp = function (configuration) { const localVarAxiosParamCreator = AccountNumberFormatApiAxiosParamCreator(configuration); return { /** * Note: Account numbers created while this format was active would remain unchanged. * @summary Delete an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async _delete(accountNumberFormatId, options) { var _a, _b, _c; const localVarAxiosArgs = await localVarAxiosParamCreator._delete(accountNumberFormatId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountNumberFormatApi._delete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Note: You may associate a single Account number format for a given account type Mandatory Fields for Account number formats accountType * @summary Create an Account number format * @param {PostAccountNumberFormatsRequest} [postAccountNumberFormatsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async create(postAccountNumberFormatsRequest, options) { var _a, _b, _c; const localVarAxiosArgs = await localVarAxiosParamCreator.create(postAccountNumberFormatsRequest, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountNumberFormatApi.create']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Example Requests: accountnumberformats accountnumberformats?fields=accountType,prefixType * @summary List Account number formats * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveAll3(options) { var _a, _b, _c; const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveAll3(options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountNumberFormatApi.retrieveAll3']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Example Requests: accountnumberformats/1 accountnumberformats/1?template=true accountnumberformats/1?fields=accountType,prefixType * @summary Retrieve an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveOne(accountNumberFormatId, options) { var _a, _b, _c; const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOne(accountNumberFormatId, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountNumberFormatApi.retrieveOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * 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 Value Lists Example Request: accountnumberformats/template * @summary Retrieve Account number format Template * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveTemplate2(options) { var _a, _b, _c; const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveTemplate2(options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountNumberFormatApi.retrieveTemplate2']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Update an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {PutAccountNumberFormatsRequest} putAccountNumberFormatsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ async update1(accountNumberFormatId, putAccountNumberFormatsRequest, options) { var _a, _b, _c; const localVarAxiosArgs = await localVarAxiosParamCreator.update1(accountNumberFormatId, putAccountNumberFormatsRequest, options); const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0; const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AccountNumberFormatApi.update1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, }; }; /** * AccountNumberFormatApi - factory interface * @export */ export const AccountNumberFormatApiFactory = function (configuration, basePath, axios) { const localVarFp = AccountNumberFormatApiFp(configuration); return { /** * Note: Account numbers created while this format was active would remain unchanged. * @summary Delete an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} */ _delete(accountNumberFormatId, options) { return localVarFp._delete(accountNumberFormatId, options).then((request) => request(axios, basePath)); }, /** * Note: You may associate a single Account number format for a given account type Mandatory Fields for Account number formats accountType * @summary Create an Account number format * @param {PostAccountNumberFormatsRequest} [postAccountNumberFormatsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ create(postAccountNumberFormatsRequest, options) { return localVarFp.create(postAccountNumberFormatsRequest, options).then((request) => request(axios, basePath)); }, /** * Example Requests: accountnumberformats accountnumberformats?fields=accountType,prefixType * @summary List Account number formats * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveAll3(options) { return localVarFp.retrieveAll3(options).then((request) => request(axios, basePath)); }, /** * Example Requests: accountnumberformats/1 accountnumberformats/1?template=true accountnumberformats/1?fields=accountType,prefixType * @summary Retrieve an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveOne(accountNumberFormatId, options) { return localVarFp.retrieveOne(accountNumberFormatId, options).then((request) => request(axios, basePath)); }, /** * 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 Value Lists Example Request: accountnumberformats/template * @summary Retrieve Account number format Template * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveTemplate2(options) { return localVarFp.retrieveTemplate2(options).then((request) => request(axios, basePath)); }, /** * * @summary Update an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {PutAccountNumberFormatsRequest} putAccountNumberFormatsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ update1(accountNumberFormatId, putAccountNumberFormatsRequest, options) { return localVarFp.update1(accountNumberFormatId, putAccountNumberFormatsRequest, options).then((request) => request(axios, basePath)); }, }; }; /** * AccountNumberFormatApi - object-oriented interface * @export * @class AccountNumberFormatApi * @extends {BaseAPI} */ export class AccountNumberFormatApi extends BaseAPI { /** * Note: Account numbers created while this format was active would remain unchanged. * @summary Delete an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountNumberFormatApi */ _delete(accountNumberFormatId, options) { return AccountNumberFormatApiFp(this.configuration)._delete(accountNumberFormatId, options).then((request) => request(this.axios, this.basePath)); } /** * Note: You may associate a single Account number format for a given account type Mandatory Fields for Account number formats accountType * @summary Create an Account number format * @param {PostAccountNumberFormatsRequest} [postAccountNumberFormatsRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountNumberFormatApi */ create(postAccountNumberFormatsRequest, options) { return AccountNumberFormatApiFp(this.configuration).create(postAccountNumberFormatsRequest, options).then((request) => request(this.axios, this.basePath)); } /** * Example Requests: accountnumberformats accountnumberformats?fields=accountType,prefixType * @summary List Account number formats * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountNumberFormatApi */ retrieveAll3(options) { return AccountNumberFormatApiFp(this.configuration).retrieveAll3(options).then((request) => request(this.axios, this.basePath)); } /** * Example Requests: accountnumberformats/1 accountnumberformats/1?template=true accountnumberformats/1?fields=accountType,prefixType * @summary Retrieve an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountNumberFormatApi */ retrieveOne(accountNumberFormatId, options) { return AccountNumberFormatApiFp(this.configuration).retrieveOne(accountNumberFormatId, options).then((request) => request(this.axios, this.basePath)); } /** * 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 Value Lists Example Request: accountnumberformats/template * @summary Retrieve Account number format Template * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountNumberFormatApi */ retrieveTemplate2(options) { return AccountNumberFormatApiFp(this.configuration).retrieveTemplate2(options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Update an Account number format * @param {number} accountNumberFormatId accountNumberFormatId * @param {PutAccountNumberFormatsRequest} putAccountNumberFormatsRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccountNumberFormatApi */ update1(accountNumberFormatId, putAccountNumberFormatsRequest, options) { return AccountNumberFormatApiFp(this.configuration).update1(accountNumberFormatId, putAccountNumberFormatsRequest, options).then((request) => request(this.axios, this.basePath)); } } /** * AccountTransfersApi - axios parameter creator * @export */ export const AccountTransfersApiAxiosParamCreator = function (configuration) { return { /** * Ability to create new transfer of monetary funds from one account to another. * @summary Create new Transfer * @param {AccountTransferRequest} accountTransferRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ create4: async (accountTransferRequest, options = {}) => { // verify required parameter 'accountTransferRequest' is not null or undefined assertParamExists('create4', 'accountTransferRequest', accountTransferRequest); const localVarPath = `/v1/accounttransfers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options); const localVarHeaderParameter = {}; const localVarQueryParameter = {}; // authentication basicAuth required // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration); // authentication tenantid required await setApiKeyToObject(localVarHeaderParameter, "fineract-platform-tenantid", configuration); localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers =